@charset "UTF-8";
:root {
  color-scheme: light;
  --ink: #2d182b;
  --muted: #6f566a;
  --accent: #a12659;
  --line: #ffffffce;
  --glass: #ffffff8f;
  --radius: 27px;
  font-family: "Golos Text", system-ui, sans-serif;
  color: var(--ink);
  background: #fce8ec;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; min-height: 100dvh; background:
  radial-gradient(ellipse at 90% 5%, #f9df9cb8, transparent 37%),
  radial-gradient(ellipse at 51% 27%, #f596b99e, transparent 55%),
  radial-gradient(ellipse at 3% 95%, #edf7c8, transparent 43%),
  linear-gradient(127deg,#fff0ed 8%,#f8d1e8 55%,#fff0e2); background-attachment: fixed; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #a12659; outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .brand { font-family: "Manrope", "Golos Text", sans-serif; margin: 0; }
p { margin: 0; }
svg { width: 20px; height: 20px; display: block; flex: none; }
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; max-width: 1420px; margin: 0 auto; padding: 26px 38px 40px 25px; }
.sidebar { display: flex; flex-direction: column; position: sticky; top: 26px; height: calc(100dvh - 52px); min-height: 400px; padding: 23px 16px 17px; border: 1px solid var(--line); background: #fffafa8c; border-radius: 30px; backdrop-filter: blur(24px); }
.brand { display: flex; align-items: center; margin: 0 8px 45px; font-weight: 800; font-size: 29px; letter-spacing: -.10em; width: fit-content; }
.brand-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 15px; margin-right: 10px; color: #7f194e; font-size: 27px; letter-spacing: 0; background: linear-gradient(145deg,#ffe2a3,#f9a5ce); box-shadow: inset 0 1px 0 #fff9; }
.brand-period { color: var(--accent); }
nav { display: grid; gap: 6px; }
.nav-item, .primary, .secondary, .icon-button, .chip { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; transition: background .18s, transform .18s, box-shadow .18s; }
.nav-item { justify-content: flex-start; padding: 12px; min-height: 48px; font-size: .93rem; color: var(--muted); border-radius: 15px; }
.nav-item[aria-current="page"], .nav-item:hover { color: #7e1d4d; background: #f6d8e5; }
.nav-item[aria-current="page"] { font-weight: 700; }
.side-footer { margin-top: auto; display: flex; align-items: center; gap: 10px; border-top: 1px solid #77405719; padding: 17px 3px 2px; font-size: .86rem; }
.side-footer small { color: var(--muted); display: block; font-size: .75rem; margin-top: 3px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #eddbfb; color: #633478; font-weight: 700; flex: none; }
main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 50px; margin: 4px 0 21px; }
.top-text { display: flex; align-items: center; gap: 10px; font-size: .91rem; color: var(--muted); font-weight: 500; }
.primary, .secondary { min-height: 45px; padding: 0 17px; border-radius: 14px; font-size: .9rem; font-weight: 650; white-space: nowrap; }
.primary { background: #421c39; color: #fff6fa; box-shadow: 0 6px 16px #6b214a22; }
.primary:hover { background: #64234f; transform: translateY(-1px); }
.secondary { background: #fff9; border-color: #fff; }
.secondary:hover, .icon-button:hover, .chip:hover { background: #fff; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 213px; padding: 27px 30px 29px; border: 1px solid #fff9; border-radius: 32px; background:
  radial-gradient(ellipse at 78% 63%, #f672a9 0%, transparent 57%),
  radial-gradient(ellipse at 89% 3%, #ffe18c 3%, transparent 52%),
  radial-gradient(ellipse at 66% 103%, #ffd691 2%, transparent 45%),
  linear-gradient(110deg, #ffe6f1 6%, #fbc0db 61%, #f9c9d1); box-shadow: 0 14px 36px #9b376b12; }
.hero-content { position: relative; max-width: 540px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #6f284e; font-size: .825rem; font-weight: 650; margin-bottom: 12px; }
.hero h1, .page-title { font-size: clamp(2.4rem, 5vw, 4.15rem); font-weight: 800; line-height: 1; letter-spacing: -.082em; }
.hero p { color: #642f50; max-width: 31ch; margin-top: 15px; line-height: 1.5; }
.screen-art, .dialog-art { display: block; flex: none; overflow: hidden; border: 1px solid #fffd; background: #fff7fa; }
.screen-art { width: 111px; height: 109px; border-radius: 25px; transform: rotate(7deg); box-shadow: 5px 10px 25px #74375e2b; }
.screen-art img, .dialog-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-art { position: absolute; z-index: -1; right: 10%; top: 50%; width: 150px; height: 168px; transform: translateY(-50%) rotate(-9deg); border-radius: 35px; box-shadow: 12px 14px 32px #8d386b42; }
.hero-art img { object-position: center 43%; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 15px 0 25px; }
.metric { display: flex; align-items: center; gap: 12px; min-width: 0; border: 1px solid var(--line); padding: 12px 15px; text-align: left; border-radius: 19px; background: var(--glass); }
.metric:hover { background: #fff9; }
.metric strong { display: block; font: 800 1.45rem/1.1 "Manrope",sans-serif; }
.metric small { color: var(--muted); line-height: 1.25; font-size: .85rem; }
.metric-icon, .task-check { display: grid; place-items: center; border-radius: 13px; flex: none; }
.metric-icon { width: 39px; height: 39px; background: #f8dcea; color: #932b61; }
.metric:nth-child(2) .metric-icon { background: #f9e7bd; color: #6d4b12; }
.metric:nth-child(3) .metric-icon { background: #e1edc5; color: #435b21; }
.columns { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); align-items: start; gap: 15px; }
.panel { padding: 21px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(20px); min-width: 0; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 14px; }
h2 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.045em; font-weight: 800; }
.text-link { font-size: .86rem; font-weight: 700; color: #84234e; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.task-list { display: grid; gap: 8px; }
.task { display: flex; gap: 12px; align-items: center; border: 1px solid #fff; border-radius: 17px; background: #fff9; min-width: 0; }
.task:hover { background: #fff; }
.task-check { width: 33px; height: 33px; border: 1px solid #d7bbc9; background: #fef7fb; color: #714e68; margin-left: 11px; }
.task-check:hover, .task-check.done { background: #e5efcd; color: #3d5926; border-color: #b5c69d; }
.task-check.doing { background: #fbe2ef; border-color: #ecbfd7; color: #922c64; }
.task-check svg { width: 16px; height: 16px; }
.task-main { display: block; width: 100%; min-height: 66px; background: none; border: 0; display: flex; align-items: center; text-align: left; padding: 10px 12px 10px 0; gap: 10px; justify-content: space-between; }
.task-main strong { display: block; font-size: .94rem; overflow-wrap: anywhere; }
.task-main small { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 4px; color: var(--muted); font-size: .875rem; }
.task-main small svg { width: 15px; height: 15px; }
.task-main .overdue { color: #a1244a; font-weight: 700; }
.priority { border-radius: 10px; padding: 5px 7px; font-size: .78rem; font-weight: 650; background: #f2e6f2; color: #653557; flex: none; }
.priority.high { background: #f9d9e6; color: #8d2454; }
.priority.low { background: #eaf0d9; color: #4b5c33; }
.capture-icon { padding: 8px; border-radius: 12px; background: #f8d4e7; color: #8e2459; }
.capture p, .muted, .empty { color: var(--muted); line-height: 1.5; }
.capture p { font-size: .92rem; }
.capture form { margin-top: 12px; }
textarea, input, select { width: 100%; padding: 11px 12px; border: 1px solid #e1c6d5; border-radius: 12px; background: #fffafd; }
textarea { resize: vertical; min-height: 86px; }
.capture .primary { margin-top: 8px; width: 100%; }
.capture .secondary { margin-top: 12px; }
.example { color: #7c2450; padding: 0; background: none; border: 0; margin-top: 10px; text-align: left; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.capture-result { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .875rem; margin-top: 8px; }
.page-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 140px; padding: 15px 36px 16px 25px; margin: 0 0 15px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(112deg,#fff7fa,#f7c7dc); }
.doing-banner { background: linear-gradient(111deg,#fff6ee,#f9cfb8 75%,#e7d5f2); }
.history-banner { background: linear-gradient(111deg,#fff6fa,#dce9f3 76%,#eed3e6); }
.reports-banner { background: linear-gradient(111deg,#fff7fa,#f8d2dd 73%,#fbe5bb); }
.page-title { font-size: clamp(2.15rem,4vw,3.5rem); margin: 0; }
.banner-copy { min-width: 0; }
.banner-copy p { margin-top: 8px; color: var(--muted); line-height: 1.4; }
.report-panel { max-width: 740px; }
.report-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.task-form .check-option { display: flex; align-items: center; gap: 8px; min-height: 38px; width: fit-content; }
.check-option input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.report-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.report-actions .muted { font-size: .875rem; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 13px; }
.controls input { flex: 1 1 210px; }
.controls select { width: auto; flex: 0 1 auto; }
.chip { background: #fff9; border-color: #fff; min-height: 38px; padding: 0 12px; border-radius: 21px; font-size: .875rem; }
.chip.active { background: #f5cde0; border-color: #f5cde0; color: #791c49; font-weight: 700; }
.empty { padding: 18px 4px; }
.activity { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.event { display: grid; grid-template-columns: 31px minmax(0,1fr); gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid #7d3d6018; }
.event:last-child { border-bottom: 0; }
.event-icon { background: #f5d9e9; color: #8b275b; border-radius: 10px; display: grid; place-items: center; height: 31px; }
.event-icon svg { width: 16px; height: 16px; }
.event p { overflow-wrap: anywhere; white-space: pre-wrap; margin: 4px 0; }
.event small { color: var(--muted); font-size: .82rem; }
.event button { border: 0; background: none; text-align: left; padding: 0; font-weight: 700; }
dialog { width: min(540px, calc(100% - 22px)); max-height: calc(100dvh - 26px); padding: 21px; border-radius: 24px; border: 1px solid #fff; background: #fff3fa; color: var(--ink); box-shadow: 0 22px 80px #52234652; }
dialog::backdrop { background: #4e203f55; backdrop-filter: blur(6px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; margin-bottom: 15px; }
.dialog-head h2 { flex: 1; overflow-wrap: anywhere; padding-top: 8px; }
.dialog-art { width: 54px; height: 58px; border-radius: 13px; transform: rotate(6deg); }
.alert { margin-top: 9px; color: #9c2549; }
.icon-button { width: 38px; height: 38px; border-color: #fff; border-radius: 12px; background: #fff9; flex: none; }
.task-form { display: grid; gap: 11px; }
.task-form label { display: grid; gap: 5px; font-size: .875rem; font-weight: 600; }
.form-cols { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.task-form :is(input,select,textarea) { min-width: 0; font-size: 1rem; }
.dialog-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.comment-form { margin-bottom: 10px; }
.comment-form .primary { margin-top: 6px; }
#toast { position: fixed; z-index: 5; left: 50%; bottom: 19px; transform: translateX(-50%); background: #421c39; color: white; padding: 11px 15px; max-width: min(86vw,600px); border-radius: 13px; box-shadow: 0 8px 22px #32132a45; }
#toast:empty { display: none; }
@media (max-width: 1050px) {
  .shell { grid-template-columns: 174px minmax(0,1fr); padding: 18px; gap: 18px; }
  .sidebar { top: 18px; height: calc(100dvh - 36px); }
  .columns { grid-template-columns: minmax(0,1fr) minmax(245px,.72fr); }
}
@media (max-width: 800px) {
  .shell { display: block; padding: max(12px,env(safe-area-inset-top)) 13px calc(83px + env(safe-area-inset-bottom)); }
  .sidebar { position: static; height: auto; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; backdrop-filter: none; }
  .brand { margin: 4px 0 10px; font-size: 25px; }
  .brand-icon { width: 32px; height: 32px; border-radius: 11px; font-size: 22px; }
  .side-footer { display: none; }
  nav { position: fixed; bottom: max(8px, env(safe-area-inset-bottom)); left: 10px; right: 10px; display: flex; justify-content: space-around; gap: 3px; padding: 5px; z-index: 2; border: 1px solid #fff; border-radius: 21px; background: #fff6faef; box-shadow: 0 8px 26px #6b214a29; backdrop-filter: blur(20px); }
  .nav-item { flex: 1; justify-content: center; flex-direction: column; gap: 4px; font-size: clamp(.68rem,2.85vw,.76rem); padding: 6px 1px; min-height: 47px; white-space: nowrap; }
  .nav-item svg { width: 18px; height: 18px; }
  .topbar { margin: 0 0 12px; min-height: 43px; }
  .hero { border-radius: 25px; padding: 22px 16px; min-height: 175px; }
  .hero h1 { font-size: clamp(2.35rem,7.8vw,4rem); }
  .hero p { max-width: min(29ch,73%); margin-top: 10px; font-size: .93rem; }
  .hero-art { width: 83px; height: 105px; border-radius: 22px; right: 5%; top: 53%; }
  .page-banner { min-height: 100px; margin-bottom: 10px; padding: 11px 17px 11px 14px; border-radius: 21px; }
  .page-banner .screen-art { width: 68px; height: 73px; border-radius: 16px; }
  .banner-copy p { font-size: .875rem; }
  .report-options { gap: 8px; }
  .metrics { gap: 6px; margin: 9px 0 14px; }
  .metric { padding: 8px; gap: 6px; border-radius: 13px; }
  .metric-icon { width: 27px; height: 27px; border-radius: 8px; }
  .metric-icon svg { width: 15px; height: 15px; }
  .metric strong { font-size: 1.2rem; }
  .metric small { font-size: .75rem; }
  .columns { grid-template-columns: 1fr; gap: 10px; }
  .panel { padding: 14px; border-radius: 21px; }
  #toast { bottom: calc(73px + env(safe-area-inset-bottom)); }
}
@media (max-width: 375px) {
  .hero-art { right: 4%; width: 73px; height: 95px; }
  .report-options { grid-template-columns: 1fr; }
  .metric-icon { display: none; }
  .form-cols { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

body {
  background-image: linear-gradient(123deg,#fff2eddb 6%,#f5cce7d9 55%,#ffecdbbd),
    var(--wall-art, none), radial-gradient(ellipse at 4% 93%,#e6f0c4,transparent 57%);
  background-size: cover, cover, cover;
  background-position: center, center 60%, center;
  background-repeat: no-repeat;
}
body[data-space="home"] {
  background-image: linear-gradient(135deg,#fff2e7e8 10%,#fbe6d7dc 51%,#f4d6eaa8), var(--wall-art, none);
}
.sidebar {
  background-image: linear-gradient(180deg,#fff8fbf6 49%,#fff7fab3 100%),var(--sidebar-art, none);
  background-size: cover, auto 62%;
  background-position: center, center bottom;
  background-repeat: no-repeat;
}
.space-switch { display: flex; width: fit-content; gap: 4px; padding: 4px; border-radius: 17px; border: 1px solid #fff; background: #fff8fb9e; margin: -4px 0 13px; }
.space-tab { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; border-radius: 12px; padding: 8px 13px; min-height: 36px; color: #65485e; font-size: .9rem; }
.space-tab svg { width: 17px; height: 17px; }
.space-tab[aria-pressed="true"] { background: #efd4e9; color: #592448; font-weight: 700; }
[data-space="home"] .space-tab[aria-pressed="true"] { background: #f7dac7; color: #713c32; }
.hero { min-height: 230px; background: linear-gradient(114deg,#fff2f9 1%,#f8d9ed 61%,#ffc7ac); }
.hero-content, .banner-copy { position: relative; z-index: 1; }
.hero h1 { color: #362036; }
.hero-art, .page-banner .screen-art {
  position: absolute; z-index: 0; inset: 0 0 0 auto; width: 66%; height: 100%;
  transform: none; border: 0; border-radius: 0; background: none; box-shadow: none; pointer-events: none;
  mask-image: linear-gradient(90deg,transparent 0%,#000 37%);
}
.hero-art img { object-position: center 58%; }
.page-banner { position: relative; isolation: isolate; overflow: hidden; }
.page-banner .screen-art { width: 54%; mask-image: linear-gradient(90deg,transparent 0%,#000 56%); }
.page-banner .screen-art img { object-position: right 48%; }
.doing-banner .screen-art img { object-position: right 59%; }
.digest-banner { background: linear-gradient(111deg,#fff6fa,#efdcff 70%,#fbe4c8); }
.digest-banner .screen-art img { object-position: right 55%; }
.banner-copy p { max-width: 36ch; }
.capture, .focus-panel, .digest-panel, .digest-available {
  background-image: linear-gradient(115deg,#fffbfded 30%,#fff8fbd6 76%,#fffbfbb6),var(--focus-art, none);
  background-size: cover, cover;
  background-position: center, right bottom;
  background-repeat: no-repeat;
}
.capture { background-image: linear-gradient(115deg,#fffbfdf2 35%,#fff8fbd6 76%,#fffbfbbb),var(--capture-art, none); }
.digest-panel { background-image: linear-gradient(115deg,#fffbfdef 35%,#fff8fbd1 78%,#fffbfbbb),var(--digest-art, none); }
.digest-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
.digest-columns .panel { min-height: 155px; transition: background-color .18s, outline-color .18s; }
.digest-columns .drop-active { outline: 2px solid #a12659; outline-offset: 3px; }
.task[draggable="true"] { cursor: grab; }
.task[draggable="true"] .task-main { min-width: 0; flex: 1; }
.task-plan { display: grid; place-items: center; width: 34px; height: 34px; margin-right: 8px; flex: none; border: 1px solid #ead3e5; border-radius: 11px; color: #852451; background: #fcecf5; }
.task-plan:hover { background: #f3d8e8; }
.task-plan svg { width: 17px; height: 17px; }
.count { padding: 4px 9px; border-radius: 14px; font-size: .85rem; background: #eddbf3; color: #663a71; }
.dialog-head { position: relative; isolation: isolate; overflow: hidden; align-items: center; min-height: 76px; padding: 10px; border-radius: 16px; background: #f7e7f2; }
.dialog-art { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 68%; height: 100%; border: 0; border-radius: 0; transform: none; mask-image: linear-gradient(90deg,transparent,#000 58%); }
.dialog-head h2 { padding-top: 0; }
.deadline-cols { grid-template-columns: repeat(2,minmax(0,1fr)); }
.reminder-hint { font-size: .82rem; }
@media (max-width: 800px) {
  body, body[data-space="home"] { background-size: cover, cover; }
  .sidebar { background: none; }
  .space-switch { margin: 0 0 9px; }
  .space-tab { min-height: 32px; padding: 5px 11px; }
  .hero { min-height: 185px; }
  .hero-art { width: 76%; }
  .hero-art img { object-position: center 62%; }
  .page-banner .screen-art { width: 56%; }
  .nav-item { font-size: clamp(.62rem,2.7vw,.72rem); }
  .digest-columns { grid-template-columns: 1fr; }
  .digest-columns .panel { min-height: 105px; }
  .task[draggable="true"] .task-main { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; }
  .task[draggable="true"] .priority { justify-self: start; }
}
