:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171528;
  background: #f7f6fc;
  --ink: #171528;
  --muted: #59566e;
  --line: #e7e4ef;
  --purple: #6151cf;
  --card: #fbfafd;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 14px; line-height: 1.42; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #7563f2; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(26px, 3.2vw, 37px); line-height: 1.08; letter-spacing: -.045em; }
h2 { font-size: 15px; line-height: 1.35; }
h3 { font-size: 14px; }
small, .muted, .eyebrow { color: var(--muted); }
ul { list-style: none; padding: 0; margin: 0; }
.skip { position: fixed; z-index: 9; top: 8px; left: 8px; color: white; background: var(--purple); padding: 9px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { padding: 17px 15px; background: linear-gradient(170deg, #f8f5fc, #f4f4fa 70%); border-right: 1px solid var(--line); position: sticky; top: 0; align-self: start; max-height: 100dvh; overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 4px 17px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; font-weight: 850; letter-spacing: .015em; }
.brand small { font-size: 10px; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: #6253c6; color: white; font-size: 11px; font-weight: 750; }
.nav-item { display: flex; align-items: center; gap: 8px; min-height: 29px; width: 100%; padding: 4px 8px; border: 0; border-radius: 6px; text-align: left; background: transparent; font-size: 12px; }
.nav-item:hover { background: #ece8fa; }
.nav-item[aria-current] { background: linear-gradient(100deg, #e8e0ff, #d5d0fc); font-weight: 750; }
.nav-item .glyph { width: 17px; }
.nav-group { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.nav-group h2 { padding: 0 8px 4px; font-size: 11px; font-weight: 650; color: var(--muted); }
.nav-group .nav-item { min-height: 25px; }
.status-dot { margin-left: auto; height: 7px; width: 7px; border-radius: 50%; background: #a29bb5; }
.workspace { min-width: 0; background: radial-gradient(ellipse at top center, #fbf8fc, #f8f7fb 65%); }
.mobile-bar { display: none; }
#main { max-width: 1600px; margin-inline: auto; padding: 23px clamp(16px, 3vw, 42px) 35px; min-height: 90dvh; }
.topline, .view-header, .row-between, .card-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.topline { margin-bottom: 6px; }
.topline p { font-size: 13px; }
.topline .meta { display: flex; align-items: center; gap: 11px; text-align: right; }
.view-header { align-items: flex-end; margin-bottom: 18px; }
.view-header p { color: var(--muted); margin-top: 6px; }
.view-header h1 + .subtitle { font-size: 13px; }
.header-actions, .date-tools, .segments { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.header-actions { justify-content: flex-end; }
.eyebrow { font-size: 12px; margin-bottom: 6px; }
.card { min-width: 0; background: linear-gradient(145deg, #fcfbfe, #f9f8fc); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card + .card.stack { margin-top: 12px; }
.card-head { margin-bottom: 9px; justify-content: flex-start; }
.card-head h2 { display: flex; align-items: center; gap: 7px; }
.card-head .card-action { margin-left: auto; }
.glyph { display: inline-grid; place-items: center; flex-shrink: 0; font-family: "Segoe UI Symbol", "Apple Symbols", system-ui, sans-serif; font-weight: 650; font-size: 15px; line-height: 1; color: var(--strong, inherit); }
.tone-violet { --wash: #ece5fd; --strong: #5940d1; }
.tone-rose { --wash: #fbe7ef; --strong: #b92d68; }
.tone-peach { --wash: #faedde; --strong: #9b5100; }
.tone-blue { --wash: #e3eefd; --strong: #1260b8; }
.tone-mint { --wash: #e4f3eb; --strong: #127149; }
.tone-slate { --wash: #efedf5; --strong: #59546d; }
.space-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 13px; }
.space-tile { display: grid; justify-items: center; align-content: center; gap: 6px; padding: 11px 4px; min-height: 102px; border-radius: 13px; background: var(--wash); border: 1px solid #00000005; text-align: center; transition: filter .15s; }
.space-tile:hover, .space-card:hover, .shortcut:hover { filter: brightness(.97); }
.space-tile .glyph { font-size: 24px; margin: 2px 0 3px; }
.space-tile strong { font-size: 13px; }
.space-tile small { font-size: 10px; }
.home-grid, .day-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.day-grid { grid-template-columns: 1fr .95fr 1fr; }
.day-grid > * { min-width: 0; }
.priorities { background: linear-gradient(155deg, #f5effe, #f1ebfb); }
.task-row, .list-row { display: flex; align-items: flex-start; gap: 7px; border-bottom: 1px solid #edeaf3; padding: 7px 0; min-width: 0; }
.list-row { justify-content: space-between; align-items: center; }
.task-row:last-child, .list-row:last-child { border-bottom-color: transparent; }
.task-row input, .habit-check { accent-color: #158251; width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 auto; cursor: pointer; }
.row-title { text-align: left; min-width: 0; border: 0; padding: 0; background: transparent; overflow-wrap: anywhere; font-size: 13px; }
.row-title:hover { color: var(--purple); }
.task-row input:checked + .row-title .task-name { text-decoration: line-through; color: var(--muted); }
.row-title small { display: block; font-size: 11px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; color: #493e79; border: 0; background: transparent; font-size: 12px; text-align: left; }
.text-button:hover { text-decoration: underline; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 8px; border: 1px solid var(--line); padding: 7px 11px; background: #fbfafe; font-size: 12px; font-weight: 650; white-space: nowrap; }
.button:hover, .icon-button:hover { filter: brightness(.97); }
.button.primary { color: white; background: linear-gradient(120deg, #6b55dd, #5749bb); border-color: transparent; }
.button.danger { color: #9e263d; }
.icon-button { width: 31px; height: 31px; padding: 0; font-size: 17px; }
.segments { padding: 2px; background: #efedf6; border-radius: 8px; gap: 2px; }
.segments .button { background: transparent; border-color: transparent; padding: 5px 12px; }
.segments [aria-pressed="true"] { background: #fdfcff; border-color: #e1ddeb; color: #3d316e; }
.event-row { display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 6px; align-items: baseline; padding: 3px 0; font-variant-numeric: tabular-nums; }
.event-row time { font-size: 11px; color: var(--muted); }
.event-chip { display: block; width: 100%; text-align: left; padding: 5px 7px; border: 0; border-radius: 6px; background: var(--wash); color: #262134; font-size: 12px; overflow-wrap: anywhere; }
.event-chip:hover { box-shadow: inset 0 0 0 1px var(--strong); }
.progress-item { padding: 3px 0 8px; font-size: 12px; }
.progress-item .row-between { margin-bottom: 5px; }
.progress-item strong { color: var(--strong, #5342bd); font-size: 11px; }
progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 9px; overflow: hidden; background: #ece9f4; }
progress::-webkit-progress-bar { background: #ece9f4; border-radius: 9px; }
progress::-webkit-progress-value { background: var(--strong, #6e59d0); border-radius: 9px; }
progress::-moz-progress-bar { background: var(--strong, #6e59d0); border-radius: 9px; }
.day-dots { display: flex; justify-content: space-between; gap: 2px; margin-top: 8px; }
.day-dots div { display: grid; justify-items: center; gap: 3px; font-size: 10px; color: var(--muted); }
.day-dots button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #ebe8f3; font-size: 12px; }
.day-dots [aria-pressed="true"] { background: #187c50; color: #fff; }
.amount { font-variant-numeric: tabular-nums; }
.balance { color: #137040; background: #e2f3e9; padding: 1px 5px; border-radius: 4px; font-weight: 750; }
.empty { color: var(--muted); font-size: 13px; padding: 9px 0; }
.note { padding: 8px 0; border-bottom: 1px solid var(--line); }
.note:last-child { border-bottom: 0; }
.note p { font-size: 13px; margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.note .text-button { padding-bottom: 0; }
.note-section + .note-section { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.rank { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 99px; background: #ded4fa; font-size: 11px; flex-shrink: 0; }
.space-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 13px; }
.space-card { display: grid; gap: 8px; min-height: 138px; align-content: space-between; border-radius: 13px; padding: 13px; background: var(--wash); border: 1px solid #00000007; overflow-wrap: anywhere; }
.space-card h2 .glyph, .stat .glyph { font-size: 19px; }
.space-card p { font-size: 13px; }
.space-card small { font-size: 12px; }
.shortcuts, .stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.shortcut { display: grid; justify-items: center; align-content: center; gap: 5px; min-height: 73px; border-radius: 9px; background: var(--wash); padding: 5px; text-align: center; font-size: 12px; overflow-wrap: anywhere; }
.shortcut .glyph { font-size: 19px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.stat { display: flex; align-items: center; gap: 8px; background: var(--wash); padding: 12px; border: 1px solid #00000006; border-radius: 12px; overflow-wrap: anywhere; }
.stat strong { font-size: 20px; line-height: 1.1; }
.stat small { display: block; }
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.calendar { margin-top: 10px; }
.calendar-scroll { overflow: auto; }
.week-grid { min-width: 590px; display: grid; grid-template-columns: 42px repeat(7,minmax(0,1fr)); }
.week-grid-blocks { grid-template-columns: 5.5rem repeat(7,minmax(0,1fr)); }
.week-grid > *, .month-grid > * { padding: 4px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; }
.week-cell { min-height: 35px; }
.week-cell .event-chip + .event-chip, .month-day .event-chip + .event-chip { margin-top: 3px; }
.week-label, .month-label { font-size: 11px; color: var(--muted); text-align: center; }
.date-link { border: 0; background: transparent; padding: 1px 4px; border-radius: 3px; font-weight: 700; }
.date-link:hover, .date-link[aria-current] { background: #e9e2fb; color: #433098; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); min-width: 480px; }
.month-day { min-height: 68px; }
.month-day.outside { background: #f4f2f8; }
.timeline { display: grid; }
.timeline .event-row { min-height: 33px; border-bottom: 1px solid var(--line); }
.timeline .event-chip + .event-chip { margin-top: 3px; }
.timeline-day-name { font-weight: 700; }
.filters { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.filters select { width: auto; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.habit-row { display: grid; grid-template-columns: 1fr minmax(145px, 215px); gap: 8px; align-items: center; padding-bottom: 7px; margin-bottom: 7px; border-bottom: 1px solid var(--line); }
.integration-list { display: grid; gap: 12px; }
.tag { color: #5b4b83; background: #eee7fb; padding: 3px 7px; border-radius: 6px; font-size: 11px; }
dialog { max-width: min(480px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); border: 1px solid var(--line); border-radius: 16px; padding: 19px; background: #fcfbff; color: var(--ink); box-shadow: 0 14px 65px #332a5630; }
dialog::backdrop { background: #22173555; }
.dialog-head, .dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 14px; }
.dialog-head h2 { font-size: 20px; }
.dialog-foot { justify-content: flex-end; margin: 16px 0 0; }
.dialog-foot .danger { margin-right: auto; }
#fields { display: grid; gap: 9px; }
.field { display: grid; gap: 4px; min-width: 0; font-size: 13px; }
.field span { font-weight: 650; }
.field small { font-size: 11px; }
input:not([type="checkbox"]), select, textarea { width: 100%; min-width: 0; border: 1px solid #dfd9eb; background: #fff; color: var(--ink); border-radius: 7px; padding: 7px 8px; }
textarea { resize: vertical; min-height: 85px; }
.toast { position: fixed; z-index: 4; bottom: 16px; right: 16px; max-width: min(380px, calc(100vw - 32px)); background: #362951; color: white; border-radius: 9px; padding: 9px 14px; box-shadow: 0 4px 18px #37284e26; }
.error { color: #9a1d36; margin-top: 7px; }
@media (min-width: 1250px) { .home-grid > .card { padding: 15px 17px; } }
@media (max-width: 1080px) { .layout { grid-template-columns: 164px minmax(0,1fr); } .sidebar { padding-inline: 10px; } #main { padding-inline: 17px; } .card { padding: 11px; } }
@media (max-width: 860px) { .home-grid, .day-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .day-grid > :last-child { grid-column: span 2; } .space-tiles { grid-template-columns: repeat(3,minmax(0,1fr)); } .shortcuts { grid-template-columns: repeat(3,minmax(0,1fr)); } .stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 660px) { .layout { display: block; } .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #f7f3fc; } .sidebar { display: none; position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); } .sidebar.open { display: block; } .sidebar .nav-item { min-height: 39px; } .sidebar .nav-group:first-of-type { display: grid; grid-template-columns: 1fr 1fr; } #main { padding-top: 16px; } .view-header { flex-wrap: wrap; align-items: flex-start; } .header-actions { justify-content: flex-start; } .space-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 430px) { #main { padding-inline: 12px; } .home-grid, .day-grid, .detail-grid, .stack-grid { grid-template-columns: 1fr; } .day-grid > :last-child { grid-column: auto; } .space-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); } .space-card { min-height: 115px; } .space-card p { font-size: 12px; } }
.rank-list { margin: 0; padding: 0; list-style: none; }
.workspace-footer { display: flex; flex-wrap: wrap; gap: 4px 11px; align-items: center; margin-top: 15px; padding: 5px 1px; color: var(--muted); font-size: 11px; }
.workspace-footer .text-button { font-size: 11px; }
.workspace-footer a { margin-left: auto; }
.workspace-footer a:hover { text-decoration: underline; }
.assistant-result { padding: 9px; border-radius: 7px; background: #f0e9fb; overflow-wrap: anywhere; }
@media (max-width: 660px) { .workspace-footer a { margin-left: 0; } }
.install-list { margin: 8px 0 14px; padding-inline-start: 21px; }
.install-list li { margin-bottom: 8px; }
.install-list a, .underlined { text-decoration: underline; text-underline-offset: 2px; color: #493e79; }
#widget-pairing { margin-bottom: 6px; }
.calendar-grid-row { display: contents; }
.week-grid > .calendar-grid-row, .month-grid > .calendar-grid-row { padding: 0; border: 0; }
.calendar-grid-row > * { padding: 4px; min-width: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.week-grid > .calendar-grid-row > :first-child { font-size: 10px; color: var(--muted); }
.week-grid-blocks > .calendar-grid-row > :first-child { font-size: 0.875rem; text-align: left; }
.timeline .event-row > span { font-size: 11px; color: var(--muted); }
.calendar-task { display: flex; align-items: flex-start; gap: 5px; padding: 4px 6px; margin-bottom: 3px; border-radius: 6px; border: 1px solid #dcd3ef; background: #fbf8ff; }
.calendar-task input { flex: 0 0 auto; margin: 2px 0 0; width: 14px; height: 14px; accent-color: #158251; cursor: pointer; }
.calendar-task .row-title { font-size: 12px; }
.calendar-task input:checked + .row-title .task-name { text-decoration: line-through; color: var(--muted); }
.repeat-indicator { margin-left: 4px; color: #6952ad; font-size: 12px; }
.form-section { display: grid; gap: 8px; background: #f6f2fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.form-section > strong { color: #493879; font-size: 13px; }
.schedule-fields { display: grid; gap: 7px; }
.weekday-picker { display: flex; flex-wrap: wrap; gap: 6px 9px; border: 0; padding: 0; margin: 0; }
.weekday-picker legend { margin-bottom: 4px; font-weight: 650; }
.weekday-picker label { display: inline-flex; align-items: center; gap: 3px; }
.form-hint { color: var(--muted); font-size: 12px; }
