:root {
  color-scheme: light;
  --bg: #f8f7fc;
  --paper: #fff;
  --ink: #201a36;
  --muted: #675f7a;
  --line: #eae6f2;
  --primary: #6748d4;
  --primary-dark: #5636c0;
  --lilac: #eee8ff;
  --lilac-ink: #6241ce;
  --mint: #dff4eb;
  --mint-ink: #247c60;
  --peach: #ffecdf;
  --peach-ink: #a95124;
  --blue: #e6efff;
  --blue-ink: #365fa4;
  --shadow: 0 14px 38px #28154f0a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button, a, input, textarea, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--primary); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
.icon { width: 21px; height: 21px; flex: none; }
.loading { padding: 3rem; text-align: center; color: var(--muted); }
.layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 18px 16px; background: var(--paper); border-right: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.15rem; font-weight: 780; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; }
.brand-mark img { display: block; }
.sidebar .brand { margin: 0 0 43px 5px; }
.sidebar nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 12px; color: var(--muted); font-weight: 650; border-radius: 11px; }
.nav-link:hover { color: var(--primary-dark); background: #f5f1ff; }
.nav-link.active { color: var(--primary-dark); background: var(--lilac); }
.sidebar-bottom { margin-top: auto; }
.member-box { margin: 15px 0; padding: 14px 13px; background: #f8f5ff; border: 1px solid #eee8fa; border-radius: 13px; }
.member-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 650; font-size: .875rem; margin-bottom: 12px; }
.member-label .icon { width: 17px; height: 17px; }
.avatar-row { display: flex; gap: 6px; }
.avatar { display: inline-grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: .77rem; font-weight: 780; }
.user-kg { background: var(--lilac); color: var(--lilac-ink); }
.user-nv { background: var(--mint); color: var(--mint-ink); }
.user-kk { background: var(--peach); color: var(--peach-ink); }
.account { padding: 13px 2px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.account .icon-button { margin-left: auto; }
.workspace { min-width: 0; }
.topbar { display: flex; min-height: 72px; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: #ffffffc9; padding: 12px clamp(18px, 3vw, 44px); }
.breadcrumbs, .top-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.breadcrumbs > span:first-child { font-weight: 680; }
.breadcrumbs strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crumb-divider, .top-date { color: var(--muted); }
.top-date { white-space: nowrap; gap: 7px; display: flex; align-items: center; font-size: .875rem; }
.top-date .icon { width: 17px; height: 17px; }
.mobile-account { display: none; }
#content { max-width: 1320px; margin-inline: auto; padding: 32px clamp(18px, 3vw, 44px) 54px; }
.hero { position: relative; min-height: 239px; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 29px clamp(24px, 3.4vw, 48px); border-radius: 23px; background: linear-gradient(116deg, #5735c3 2%, #6949d4 53%, #8972e7 100%); color: white; }
.hero-content { position: relative; z-index: 1; }
.hero-date { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; font-size: .875rem; font-weight: 650; color: #f0e8ff; }
.hero-date::first-letter { text-transform: uppercase; }
.hero-date .icon { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.065em; line-height: 1.05; }
.hero p { color: #f3eeff; margin-top: 9px; line-height: 1.5; }
.hero-button { margin-top: 21px; background: white; color: var(--primary-dark); }
.hero-button:hover { background: #eee8ff; }
.hero-decoration, .login-decoration { position: absolute; pointer-events: none; width: 310px; height: 250px; }
.hero-decoration { right: clamp(1px, 5vw, 100px); top: 50%; transform: translateY(-50%); }
.orbit { position: absolute; border: 1px solid #ffffff35; border-radius: 50%; width: 282px; height: 282px; top: -15px; right: 4px; }
.orbit-two { width: 222px; height: 222px; top: 15px; right: 34px; }
.orbit-three { width: 342px; height: 342px; top: -45px; right: -26px; }
.decor-tile { position: absolute; display: grid; place-items: center; color: white; border: 1px solid #ffffff62; box-shadow: 0 16px 35px #2e175e38; }
.decor-house { width: 126px; height: 126px; top: 56px; right: 78px; background: #ffffff28; border-radius: 34px; transform: rotate(-10deg); }
.decor-house .icon { width: 64px; height: 64px; stroke-width: 1.2; }
.decor-check { width: 53px; height: 53px; bottom: 44px; right: 43px; background: #daf6e8; color: var(--mint-ink); border-radius: 15px; transform: rotate(12deg); }
.decor-check .icon { width: 28px; height: 28px; }
.decor-spark { width: 43px; height: 43px; top: 45px; right: 41px; border-radius: 12px; background: #ffead7; color: var(--peach-ink); transform: rotate(13deg); }
.tile { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; flex: none; }
.tone-lilac { background: var(--lilac); color: var(--lilac-ink); }
.tone-mint { background: var(--mint); color: var(--mint-ink); }
.tone-peach { background: var(--peach); color: var(--peach-ink); }
.tone-blue { background: var(--blue); color: var(--blue-ink); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.stat { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.stat > span:last-child { display: grid; gap: 3px; }
.stat strong { font-size: 1.46rem; line-height: 1; letter-spacing: -.035em; }
.stat > span > span { font-size: .875rem; color: var(--muted); }
.stat:hover, .topic-card:hover { border-color: #d5c7f9; box-shadow: var(--shadow); }
.section { margin-top: 33px; }
.section-heading, .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.section-heading h2 { font-size: 1.45rem; letter-spacing: -.035em; }
.text-link { color: var(--primary-dark); font-weight: 690; white-space: nowrap; font-size: .9rem; }
.text-link:hover { text-decoration: underline; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.topic-card { display: flex; flex-direction: column; min-width: 0; min-height: 180px; padding: 17px 17px 12px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.topic-card h3 { font-size: 1.05rem; margin: 13px 0 5px; }
.topic-card p, .page-heading p { color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.topic-card p { font-size: .9rem; flex: 1; margin-bottom: 13px; }
.topic-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; border-top: 1px solid var(--line); padding-top: 7px; color: var(--muted); font-size: .81rem; }
.topic-meta .avatar, .block-footer .avatar { width: 24px; height: 24px; font-size: .63rem; }
.page-heading { min-height: 76px; margin-bottom: 24px; flex-wrap: wrap; }
.page-heading h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.056em; line-height: 1.08; }
.page-heading p { margin-top: 8px; }
.topic-heading-name { display: flex; gap: 15px; align-items: center; min-width: 0; }
.topic-heading-name > .tile { width: 58px; height: 58px; border-radius: 16px; }
.topic-heading-name > .tile .icon { width: 27px; height: 27px; }
.heading-actions { display: flex; align-items: center; gap: 7px; }
.heading-actions .icon-button { background: white; border: 1px solid var(--line); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; gap: 7px; border: 1px solid transparent; border-radius: 10px; padding: 8px 14px; font-size: .9rem; font-weight: 720; line-height: 1.2; }
.button .icon { width: 17px; height: 17px; }
.primary { background: var(--primary); color: white; }
.primary:hover { background: var(--primary-dark); }
.secondary, .subtle { background: #f6f2fc; color: var(--primary-dark); }
.secondary:hover, .subtle:hover { background: var(--lilac); }
.danger { background: #b32843; color: white; }
.danger:hover { background: #972039; }
.icon-button { display: inline-grid; place-items: center; background: transparent; border: 0; color: var(--muted); border-radius: 8px; width: 36px; height: 36px; flex: none; }
.icon-button:hover { color: var(--primary-dark); background: var(--lilac); }
.icon-button .icon { width: 17px; height: 17px; }
.empty { display: grid; justify-items: center; text-align: center; background: white; border: 1px dashed #d9cfee; border-radius: 17px; padding: 36px 18px; }
.empty h3 { margin-top: 13px; font-size: 1.15rem; }
.empty p { margin: 6px 0 1px; max-width: 380px; color: var(--muted); line-height: 1.5; }
.empty .button { margin-top: 15px; }
.block-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 15px; }
.block, .task-list { background: white; border: 1px solid var(--line); border-radius: 17px; padding: 16px; }
.block-head { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.block-head h2 { font-size: 1.13rem; line-height: 1.2; margin-top: 2px; }
.block-type { color: var(--muted); font-size: .81rem; }
.block-actions, .item-actions { display: flex; margin-left: auto; }
.block-actions .icon-button, .item-actions .icon-button { width: 31px; height: 34px; }
.block-footer { display: flex; align-items: center; gap: 7px; margin-top: 15px; padding-top: 10px; color: var(--muted); font-size: .81rem; border-top: 1px solid var(--line); }
.block-hint { font-size: .875rem; color: var(--muted); margin: 9px 0; }
.progress-wrap { display: flex; align-items: center; gap: 9px; font-size: .82rem; color: var(--muted); margin: 3px 0 8px; }
.progress-wrap progress { flex: 1; accent-color: var(--primary); height: 8px; border: 0; border-radius: 10px; color: var(--primary); appearance: none; background: var(--lilac); overflow: hidden; }
.progress-wrap progress::-webkit-progress-bar { background: var(--lilac); }
.progress-wrap progress::-webkit-progress-value { background: var(--primary); }
.progress-wrap progress::-moz-progress-bar { background: var(--primary); }
.items { list-style: none; margin: 0 0 9px; padding: 0; }
.task-list.items { margin: 0; padding: 4px 13px; }
.item-row { display: flex; align-items: center; gap: 9px; min-height: 45px; padding: 5px 0; border-top: 1px solid var(--line); }
.item-row:first-child { border-top: 0; }
.item-main { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.item-text, .poll-text { overflow-wrap: anywhere; }
.completed .item-text { text-decoration: line-through; color: var(--muted); }
.item-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .81rem; color: var(--muted); }
.item-meta .avatar { width: 24px; height: 24px; font-size: .62rem; }
.item-meta a { color: var(--primary-dark); }
.item-meta a:hover { text-decoration: underline; }
.due { display: inline-flex; align-items: center; gap: 4px; }
.due .icon { width: 14px; height: 14px; }
.overdue { color: #a92b4a; font-weight: 700; }
.checkbox { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; border: 1px solid #b9aecb; background: white; color: white; padding: 0; flex: none; }
.checkbox .icon { width: 17px; height: 17px; }
.checkbox[aria-checked="true"] { background: var(--primary); border-color: var(--primary); }
.item-bullet { width: 7px; height: 7px; margin: 0 7px; border-radius: 50%; background: var(--mint-ink); flex: none; }
.poll-options { display: grid; gap: 7px; }
.poll-option { position: relative; isolation: isolate; display: flex; align-items: center; gap: 7px; width: 100%; padding: 9px 10px; min-height: 43px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; text-align: left; }
.poll-option:hover, .poll-option.picked { border-color: #ae9bea; }
.poll-option strong { margin-left: auto; color: var(--primary-dark); }
.poll-fill { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; appearance: none; border: 0; background: transparent; }
.poll-fill::-webkit-progress-bar { background: transparent; }
.poll-fill::-webkit-progress-value { background: var(--lilac); }
.poll-fill::-moz-progress-bar { background: var(--lilac); }
.poll-indicator { display: grid; flex: none; place-items: center; width: 19px; height: 19px; border: 1px solid #b9aecb; border-radius: 50%; }
.picked .poll-indicator { background: var(--primary); border-color: var(--primary); color: white; }
.poll-indicator .icon { width: 13px; height: 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; padding: 5px; width: fit-content; margin: 0 0 14px; border: 1px solid var(--line); background: white; border-radius: 12px; }
.filters button { border: 0; background: transparent; color: var(--muted); font-weight: 650; padding: 8px 10px; border-radius: 8px; font-size: .875rem; }
.filters button[aria-pressed="true"] { background: var(--lilac); color: var(--primary-dark); }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(350px, 1fr) minmax(360px, .86fr); background: white; }
.login-intro { position: relative; min-height: 600px; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 44px clamp(34px, 6vw, 105px); background: linear-gradient(140deg, #5532b8, #6a4fd6 58%, #8870e5); color: white; }
.login-intro .brand { position: absolute; left: clamp(34px, 6vw, 105px); top: 38px; }
.login-intro .brand-mark { border: 1px solid #ffffff60; border-radius: 15px; }
.intro-copy { z-index: 1; position: relative; margin-bottom: 140px; }
.intro-copy h1 { font-size: clamp(3.25rem, 8vw, 7rem); line-height: .96; letter-spacing: -.074em; max-width: 6ch; }
.intro-copy em { font-style: normal; color: #dfd4ff; }
.intro-copy p { max-width: 260px; line-height: 1.5; font-size: 1.08rem; margin-top: 20px; color: #f4eeff; }
.login-decoration { bottom: -2px; right: 18px; transform: scale(1.16); transform-origin: right bottom; }
.login-panel { display: grid; place-items: center; padding: 44px 24px; }
.login-form { width: min(100%, 365px); }
.login-lock { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--primary); background: var(--lilac); margin-bottom: 18px; }
.login-form h2 { font-size: 2.15rem; letter-spacing: -.055em; }
.login-form > p:not(.form-error) { color: var(--muted); margin: 7px 0 24px; line-height: 1.5; }
.profiles, .type-field, .color-field { padding: 0; margin: 0 0 16px; border: 0; }
fieldset legend, .field > span { padding: 0; margin-bottom: 7px; font-size: .88rem; font-weight: 680; }
.profile-options, .type-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.profile-options label, .swatch, .type-options label { position: relative; cursor: pointer; }
.profile-options label { display: grid; justify-items: center; gap: 6px; border: 1px solid var(--line); padding: 10px; border-radius: 11px; font-size: .85rem; font-weight: 650; color: var(--muted); }
.profile-options label:has(:checked) { border-color: var(--primary); background: #f9f5ff; color: var(--primary-dark); }
.profile-options input, .type-options input, .swatch input { opacity: 0; width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; cursor: pointer; }
.profile-options label:has(:focus-visible), .type-options label:has(:focus-visible), .swatch:has(:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
.login-submit { width: 100%; margin-top: 1px; }
.field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 15px; }
.field input, .field textarea, .field select { width: 100%; min-height: 43px; padding: 9px 10px; border-radius: 8px; border: 1px solid #dcd5e8; background: white; color: var(--ink); }
.field textarea { resize: vertical; min-height: 78px; }
.field select { appearance: none; padding-right: 29px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-error { color: #a92b4a; font-size: .875rem; margin: 9px 0 14px; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
dialog { width: min(470px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: white; box-shadow: 0 28px 95px #25125055; }
dialog::backdrop { background: #26174777; }
.modal-form { padding: 21px 22px; }
.dialog-heading { display: flex; gap: 9px; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.dialog-heading h2 { font-size: 1.4rem; letter-spacing: -.035em; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 15px; }
.type-options label span { display: flex; min-height: 55px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid transparent; border-radius: 8px; padding: 5px 2px; text-align: center; font-size: .82rem; font-weight: 700; }
.type-options label:has(:checked) span { border-color: currentColor; }
.type-options .icon { width: 18px; height: 18px; }
.swatches { display: flex; gap: 8px; }
.swatch { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; }
.swatch span { display: none; }
.swatch:has(:checked) span { display: grid; }
.delete-copy { color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
#toast { position: fixed; z-index: 10; bottom: 15px; right: 15px; padding: 12px 15px; border-radius: 10px; max-width: min(410px, calc(100% - 30px)); background: var(--ink); color: white; box-shadow: var(--shadow); visibility: hidden; }
#toast.visible { visibility: visible; }
@media (max-width: 1030px) {
  .layout { grid-template-columns: 188px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .hero-decoration { right: 4px; }
  .block-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .layout { display: block; padding-bottom: 67px; }
  .sidebar { position: fixed; z-index: 4; top: auto; bottom: 0; width: 100%; height: auto; padding: 5px 10px max(5px, env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); }
  .sidebar .brand, .sidebar-bottom { display: none; }
  .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-link { min-height: 51px; padding: 6px 3px; flex-direction: column; gap: 3px; font-size: .85rem; }
  .nav-link .icon { width: 18px; height: 18px; }
  .topbar { min-height: 53px; padding-block: 7px; }
  .mobile-account { display: flex; align-items: center; gap: 3px; }
  #content { padding-top: 20px; padding-bottom: 20px; }
  .hero-decoration { transform: translateY(-50%) scale(.8); transform-origin: right center; right: -13px; }
  .login-screen { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-intro { padding: 19px 24px; min-height: auto; }
  .login-intro .brand { position: relative; inset: auto; }
  .intro-copy { margin: 15px 0 4px; }
  .intro-copy h1 { display: none; }
  .intro-copy p { margin: 0; max-width: 290px; font-size: .96rem; }
  .login-decoration { display: none; }
  .login-panel { padding: 28px 20px; align-items: start; }
}
@media (max-width: 520px) {
  .top-date { display: none; }
  .hero { min-height: 205px; padding: 20px 16px; border-radius: 17px; }
  .hero-decoration { right: -38px; opacity: .42; transform: translateY(-50%) scale(.62); }
  .stats { gap: 6px; margin-top: 10px; }
  .stat { padding: 9px 6px; gap: 6px; align-items: flex-start; flex-direction: column; border-radius: 10px; }
  .stat .tile { width: 33px; height: 33px; border-radius: 9px; }
  .stat .tile .icon { width: 17px; height: 17px; }
  .stat > span > span { font-size: .83rem; }
  .section { margin-top: 24px; }
  .topic-grid { grid-template-columns: 1fr; gap: 8px; }
  .topic-card { min-height: 0; padding: 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; }
  .topic-card .tile { grid-row: 1 / 4; width: 37px; height: 37px; }
  .topic-card h3 { margin: 0 0 3px; }
  .topic-card p { margin-bottom: 0; }
  .topic-card p:empty { display: none; }
  .topic-meta { grid-column: 2; border: 0; min-height: 23px; padding-top: 3px; }
  .page-heading { margin-bottom: 16px; }
  .block { padding: 12px; }
  .item-actions { flex-direction: column; }
  .item-actions .icon-button { height: 29px; }
}
