body {
  background:
    radial-gradient(circle at 78% 4%, rgba(104, 168, 255, .16), transparent 26rem),
    linear-gradient(145deg, #f9fcff 0%, #f2f7ff 52%, #fbfdff 100%);
}

.sidebar {
  border-color: rgba(193, 215, 245, .72);
  background: rgba(250, 253, 255, .86);
  box-shadow: 8px 0 35px rgba(28, 87, 167, .04);
  backdrop-filter: blur(18px);
}

.brand-mark {
  box-shadow: 0 10px 24px rgba(35, 124, 255, .28);
  transform: rotate(-4deg);
}

.nav-item {
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-item:hover { transform: translateX(3px); }
.workspace { position: relative; }
.topbar { padding: 4px 2px; }

.greeting-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff9db, #fff);
  box-shadow: 0 10px 30px rgba(79, 122, 184, .12);
}

.eyebrow,
.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: #73a0dc;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}

.card {
  border-color: rgba(216, 230, 249, .82);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 50px rgba(36, 91, 165, .075);
  backdrop-filter: blur(12px);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover { box-shadow: 0 22px 56px rgba(36, 91, 165, .105); }

.time-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(244, 249, 255, .9));
}

.time-card::after {
  position: absolute;
  top: -80px;
  right: -65px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 143, 255, .13), transparent 68%);
  content: "";
  pointer-events: none;
}

.status-pane > strong { letter-spacing: -.03em; }

.status-pane .status-dot {
  border-color: #eaf0f7;
  background: #a9b9cf;
  transition: .25s;
}

.status-pane.is-active .status-dot {
  border-color: #c9f7e9;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(40, 196, 156, .1);
}

.status-pane.is-active > strong { color: #087f69; }

.outline-button {
  position: relative;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #4093ff, #176cf2);
  box-shadow: 0 10px 22px rgba(35, 124, 255, .24);
  transition: transform .2s ease, box-shadow .2s ease;
}

.outline-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(35, 124, 255, .32);
}

.outline-button.is-active {
  border: 1px solid #f0bdc5;
  color: #d9485f;
  background: #fff;
  box-shadow: none;
}

.outline-button.is-active:hover { color: #fff; background: #df5369; }

.progress-ring {
  box-shadow: 0 18px 45px rgba(35, 124, 255, .14), inset 0 0 0 1px rgba(35, 124, 255, .04);
}

.progress-ring::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  content: "";
}

.metrics article {
  border-color: #e6effc;
  background: linear-gradient(145deg, #fff, #f8fbff);
  transition: transform .18s ease, border-color .18s ease;
}

.metrics article:hover { border-color: #cfe2fc; transform: translateY(-2px); }

.legend {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 99px;
  color: #6d89b3;
  background: #f2f7ff;
  font-size: 10px;
}

.legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2b82fa;
  box-shadow: 0 0 0 4px rgba(43, 130, 250, .1);
}

.chart-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 13px 4px 3px;
}

.chart-summary strong { color: #193e78; font-size: 19px; letter-spacing: -.03em; }
.chart-summary span { color: #92a7c7; font-size: 10px; }
.chart-plot { position: relative; }

.chart .chart-bars {
  height: 100px;
  gap: 3px;
  padding: 12px 3px 14px;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 23px, #edf3fc 24px);
}

.bar-item { position: relative; min-width: 2px; }

.bar-item::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 99px;
  background: #e7eef9;
  content: "";
}

.bar-item i {
  position: relative;
  z-index: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #87bdff, #287ff5);
  box-shadow: 0 3px 8px rgba(35, 124, 255, .16);
  transition: height .35s ease;
}

.bar-item.is-active i { background: linear-gradient(180deg, #5fe0bc, #1cb38e); }
.bar-labels { margin: 5px 0 0; }
.tip { line-height: 1.55; }

.empty-record {
  display: block !important;
  padding: 28px 0 !important;
  text-align: center;
}

.empty-record span { color: #9aacca; }
.task-item, .completed-item { transition: background .18s ease, padding .18s ease; }

.task-item:hover,
.completed-item:hover {
  margin: 0 -8px;
  padding-right: 8px;
  padding-left: 8px;
  border-radius: 9px;
  background: #f8fbff;
}

.clear-data-button {
  margin: 0 16px 14px;
  padding: 8px 10px;
  border: 1px solid #efd9dd;
  border-radius: 9px;
  color: #b26773;
  background: rgba(255, 255, 255, .75);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.clear-data-button:hover {
  border-color: #e8aeb8;
  color: #b9384e;
  background: #fff4f6;
}

.history-card { padding: 22px 25px; }
.history-heading { align-items: flex-end; }
.history-heading p { margin: 5px 0 0; color: #8ca1c2; font-size: 12px; }
.primary-action { color: #fff; background: linear-gradient(135deg, #4093ff, #176cf2); box-shadow: 0 8px 20px rgba(35, 124, 255, .2); }
.primary-action:hover { transform: translateY(-1px); }
.history-list { display: grid; gap: 8px; margin-top: 18px; }

.history-item {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(155px, 1fr) minmax(115px, .7fr) auto;
  gap: 18px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid #e8f0fb;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #f9fbff);
}

.history-date strong,
.history-period strong { display: block; color: #23477d; font-size: 13px; }
.history-date span,
.history-period span { display: block; margin-top: 3px; color: #96a9c7; font-size: 10px; }
.history-duration { color: #153b75; font-size: 13px; text-align: right; }
.history-actions { display: flex; gap: 5px; }
.history-actions button { padding: 5px 8px; border: 0; border-radius: 7px; color: #4f79b5; background: #edf5ff; font: inherit; font-size: 11px; cursor: pointer; }
.history-actions button:hover { color: #fff; background: var(--blue); }
.history-actions button:last-child { color: #b96673; background: #fff2f4; }
.history-actions button:last-child:hover { color: #fff; background: #d9576b; }

.empty-history {
  display: grid;
  justify-items: center;
  padding: 32px 16px;
  border: 1px dashed #dbe8f8;
  border-radius: 12px;
  color: #8fa5c6;
  text-align: center;
}

.empty-history span { font-size: 26px; }
.empty-history strong { margin-top: 5px; color: #5577a8; font-size: 13px; }
.empty-history p { margin: 4px 0 0; font-size: 11px; }
.time-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { min-height: 18px; margin: 12px 0 -8px; color: #ce4359; font-size: 12px; }
#record-dialog { width: min(92vw, 430px); }

@media (max-width: 1500px) {
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .task-column { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .task-card, .completed-card { min-height: 260px; }
}

@media (max-width: 800px) {
  .card { border-radius: 15px; }
  .greeting-icon { width: 43px; height: 43px; }
  .chart-summary { align-items: flex-start; flex-direction: column; gap: 2px; }
  .chart .chart-bars { gap: 2px; }
  .time-card::after { display: none; }
  .clear-data-button { align-self: center; margin: 12px 0 0; }
  .history-card { padding: 18px 16px; }
  .history-item { grid-template-columns: 1fr auto; gap: 10px; }
  .history-period { grid-row: 2; }
  .history-duration { grid-row: 1; grid-column: 2; }
  .history-actions { grid-row: 2; grid-column: 2; }
}
