/* Hallmark v2.0.0 · shape: app screen · theme: Coral · genre: modern-minimal · signature: календарь проектов с отметкой текущего дня */
/* Critique: project titles stay inside their bands; a compact list keeps short bands legible on phones. */
/* waive 24b: the chart and its compact controls use optical spacing to fit the whole month on narrow screens. */
/* waive 39b: attention and project rows can grow to keep their labels and actions readable. */
/* waive 72: long project names use an ellipsis inside the bar and wrap in the mobile project list. */
:root {
  --font-body: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --paper:#f6f6f2; --surface:#fff; --wash:#f7f8f5; --soft:#eef0eb; --weekend:#f6f7f4;
  --ink:#202a25; --muted:#58645c; --quiet:#647167; --rule:#e4e8e1; --rule-strong:#cdd4ca;
  --primary:#22513e; --primary-hover:#173b2c; --primary-soft:#e7f0e8; --white:#fff;
  --today:#ad442d; --today-soft:#f9e8e0; --warm:#f7eee1; --warm-ink:#74501c;
  --danger:#a33238; --danger-hover:#84252a; --danger-soft:#fbecee;
  --slate:#53645a; --plan:#eaf0e8; --plan-line:#91a68f; --stripe:#c5d3c2;
  --blue:#b0cbe2; --blue-light:#dfecf7; --blue-ink:#254768;
  --green:#a5c39b; --green-light:#e4eedf; --green-ink:#315333;
  --teal:#9accc4; --teal-light:#dcefeb; --teal-ink:#20584f;
  --amber:#e6c992; --amber-light:#f6ead0; --amber-ink:#64461d;
  --rose:#e3b6aa; --rose-light:#f7e3df; --rose-ink:#783e30;
  --shadow:0 2px 4px #253b2810, 0 10px 27px #253b2808;
  --float:0 22px 70px #162c2536; --backdrop:#172d2660; --clear:transparent;
  --focus:#22513e; --radius:19px; --micro:150ms; --short:240ms;
}
* { box-sizing:border-box; }
[hidden] { display:none!important; }
html, body { margin:0; overflow-x:clip; }
body { font: 15px/1.45 var(--font-body); color:var(--ink); background:var(--paper); }
button, input, select, textarea { font:inherit; color:inherit; }
button { cursor:pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline:2px solid var(--focus); outline-offset:3px; }
button[disabled], button[disabled]:hover { background:var(--soft); color:var(--quiet); cursor:default; }
button, .project-band { transition:background-color var(--micro), box-shadow var(--micro), transform var(--micro); }
button:active:not([disabled]) { transform:translateY(1px); }
svg { width:18px; height:18px; flex:none; vertical-align:middle; }
a { color:inherit; }
.skip { position:fixed; z-index:20; top:12px; left:12px; background:var(--surface); padding:10px; transform:translateY(-150%); }
.skip:focus { transform:none; }
.wrap { max-width:1460px; margin-inline:auto; padding-inline:clamp(14px, 4vw, 64px); }
.top { border-bottom:1px solid var(--rule); background:var(--surface); }
.top-inner { min-height:67px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:-.025em; font-size:17px; }
.brand-icon { display:grid; place-items:center; width:35px; height:35px; border-radius:10px; background:var(--primary); color:var(--white); }
.brand-icon svg { width:22px; height:22px; }
.today-date { display:flex; align-items:center; gap:7px; color:var(--primary); background:var(--primary-soft); border-radius:10px; padding:7px 10px; font-size:14px; font-weight:690; }
.brand-divider { color:var(--quiet); font-weight:400; }
.today-date svg { width:16px; height:16px; }
main { padding-block:34px 48px; }
.page-head, .calendar-head, .calendar-nav, .calendar-tools, .card-header, .dialog-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.page-head { margin-bottom:23px; }
h1,h2,h3,p { margin:0; }
h1,h2 { text-wrap:balance; }
h1 { font-size:clamp(31px, 4vw, 47px); letter-spacing:-.061em; line-height:1.07; font-weight:740; overflow-wrap:break-word; }
.page-head p { margin-top:8px; color:var(--muted); }
.button, .icon-button { display:inline-flex; justify-content:center; align-items:center; gap:7px; min-height:44px; border:1px solid var(--rule); background:var(--surface); border-radius:10px; padding:0 13px; white-space:nowrap; font-size:13px; font-weight:620; }
.button:hover, .icon-button:hover { background:var(--soft); }
.primary { background:var(--primary); border-color:var(--primary); color:var(--white); }
.primary:hover { background:var(--primary-hover); }
.button.save-action:disabled { background:var(--surface); color:var(--quiet); }
.button.save-action.is-dirty:not(:disabled) { background:var(--primary-soft); border-color:var(--green-ink); box-shadow:0 0 0 1px var(--green-ink); color:var(--primary); }
.button.save-action.is-dirty:hover:not(:disabled) { background:color-mix(in srgb,var(--primary-soft) 72%,var(--green)); }
.icon-button { min-width:44px; padding:0; }
.icon-button svg { width:15px; height:15px; }
.calendar, .review { background:var(--surface); border:1px solid var(--rule); border-radius:var(--radius); min-width:0; }
.calendar-head { padding:14px 18px; flex-wrap:wrap; }
.calendar-nav, .calendar-tools { justify-content:flex-start; gap:9px; }
.arrows { display:flex; }
.arrows button:first-child { border-radius:10px 0 0 10px; }
.arrows button:last-child { margin-left:-1px; border-radius:0 10px 10px 0; }
.range-name { font-size:21px; letter-spacing:-.05em; line-height:1.16; font-weight:720; margin-left:4px; }
.scale { display:inline-flex; align-items:center; padding:3px; gap:1px; background:var(--soft); border-radius:11px; }
.scale button { border:0; border-radius:8px; background:var(--clear); min-height:38px; padding:0 10px; color:var(--muted); font-size:13px; font-weight:620; }
.scale button:hover { background:var(--wash); }
.scale button[aria-pressed=true] { color:var(--ink); background:var(--surface); box-shadow:var(--shadow); }
.scale button svg { width:15px; height:15px; margin-right:3px; }
.chart { --rail-width:45px; --grip-width:25px; --work-rail:39px; --row-height:52px; --extra-height:36px; display:grid; grid-template-columns:var(--rail-width) minmax(0,1fr) var(--work-rail); position:relative; isolation:isolate; margin:0 18px; border:1px solid var(--rule); border-radius:12px; background:var(--surface); touch-action:pan-y; cursor:grab; user-select:none; }
.chart.panning, .chart.panning button { cursor:grabbing; }
.rail { grid-column:1; grid-row:1 / span 2; border-right:1px solid var(--rule); background:var(--wash); border-radius:11px 0 0 11px; }
.work-rail { grid-column:3; grid-row:1 / span 2; border-left:1px solid var(--rule); background:var(--wash); border-radius:0 11px 11px 0; }
.ticks { grid-column:2; grid-row:1; height:54px; position:relative; border-bottom:1px solid var(--rule-strong); background:var(--wash); font-variant-numeric:tabular-nums; }
.gridlines { grid-column:2; grid-row:2; position:relative; isolation:isolate; min-height:calc(var(--pan-rows, 0)*var(--row-height) + var(--pan-extra-rows, 0)*var(--extra-height)); }
.tick, .grid-cell { position:absolute; inset-block:0; border-left:1px solid var(--rule); }
.tick:first-child, .grid-cell:first-child { border-left:0; }
.tick.weekend,.grid-cell.weekend { background:var(--weekend); }
.tick.major,.grid-cell.major { border-left-color:var(--rule-strong); }
.tick.today-cell,.grid-cell.today-cell { background:var(--today-soft); }
.tick { display:flex; flex-direction:column; justify-content:center; align-items:center; line-height:1.15; gap:3px; color:var(--muted); }
.tick small { font-size:10px; color:var(--quiet); }
.tick b { font-size:13px; font-weight:650; }
.tick.today-cell b,.tick.today-cell small { color:var(--today); }
.row { position:relative; height:var(--row-height); border-bottom:1px solid var(--rule); }
.row.with-extra { height:calc(var(--row-height) + var(--extra-height)); }
.row:last-child { border-bottom:0; }
.row.drop-row { box-shadow:inset 0 2px var(--primary); }
.grip { position:absolute; width:var(--grip-width); left:calc(-1px - var(--rail-width)); top:3px; height:calc(var(--row-height) - 6px); padding:0; color:var(--quiet); border:0; background:var(--clear); cursor:grab; touch-action:pan-y; }
.grip svg { width:15px; height:15px; }
.grip:hover { color:var(--primary); background:var(--soft); }
.row-number, .list-number { color:var(--quiet); font-size:11px; font-weight:450; text-align:center; font-variant-numeric:tabular-nums; }
.row-number { position:absolute; display:grid; place-items:center; width:calc(var(--rail-width) - var(--grip-width)); height:var(--row-height); inset:0 auto auto calc(var(--grip-width) - var(--rail-width) - 1px); }
.row-add { position:absolute; top:4px; left:calc(100% + 2px); width:calc(var(--work-rail) - 4px); height:calc(var(--row-height) - 8px); display:grid; place-items:center; padding:0; border:0; border-radius:8px; background:var(--clear); color:var(--muted); }
.row-add:hover { color:var(--primary); background:var(--primary-soft); }
.row-add svg { width:15px; height:15px; }
.list-number { min-width:16px; }
.now { position:absolute; inset-block:0; z-index:4; width:1px; background:var(--today); pointer-events:none; }
.now::after { content:''; position:absolute; bottom:0; left:-3px; width:7px; height:7px; border-radius:50%; background:var(--today); }
.band { position:absolute; top:9px; height:34px; z-index:2; border-radius:7px; min-width:0; border:1px solid var(--band-edge, var(--plan-line)); color:var(--band-ink, var(--slate)); background:var(--band-light, var(--plan)); display:flex; align-items:center; user-select:none; }
.band.extra-work { top:calc(var(--row-height) - 1px); height:calc(var(--extra-height) - 7px); }
.band:hover, .band:focus-within { z-index:5; box-shadow:0 0 0 2px var(--band-edge, var(--plan-line)); }
.band.dragging { z-index:7; box-shadow:0 0 0 2px var(--focus), var(--shadow); }
.band.clipped-left { border-top-left-radius:0; border-bottom-left-radius:0; }
.band.clipped-right { border-top-right-radius:0; border-bottom-right-radius:0; }
.tone-blue { --solid:var(--blue); --light:var(--blue-light); --tone:var(--blue-ink); }
.tone-green { --solid:var(--green); --light:var(--green-light); --tone:var(--green-ink); }
.tone-teal { --solid:var(--teal); --light:var(--teal-light); --tone:var(--teal-ink); }
.tone-amber { --solid:var(--amber); --light:var(--amber-light); --tone:var(--amber-ink); }
.tone-rose { --solid:var(--rose); --light:var(--rose-light); --tone:var(--rose-ink); }
.band.active,.band.done { --band-edge:var(--solid); --band-light:var(--light); --band-ink:var(--tone); }
.band.planned,.band.paid,.band.due,.band.unpaid {
  --band-edge:color-mix(in srgb,var(--tone) 48%,var(--solid));
  --band-light:var(--light);
  --band-ink:var(--tone);
}
.band.planned { border-style:dashed; }
.band.due,.band.unpaid {
  --hatch:color-mix(in srgb,var(--tone) 22%,var(--light));
  background:repeating-linear-gradient(135deg,var(--band-light) 0 4px,var(--hatch) 4px 5px);
  border-style:dashed;
}
.band.cancelled,.band.paused { opacity:.67; }
.band.cancelled .band-name,.band.paused .band-name { text-decoration:line-through; }
.elapsed { position:absolute; inset:0 auto 0 0; width:var(--elapsed); background:var(--solid); border-radius:6px 0 0 6px; pointer-events:none; }
.elapsed.full { border-radius:6px; }
.band-button { position:relative; z-index:2; width:100%; height:100%; min-width:0; border:0; border-radius:inherit; padding:0 9px; background:var(--clear); display:flex; align-items:center; gap:6px; text-align:left; overflow:hidden; touch-action:pan-y; }
.band-button:active:not([disabled]) { transform:none; }
.band-button { cursor:grab; }
.timeline-readonly .band-button { cursor:pointer; }
.band-button svg { width:14px; height:14px; }
.band-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; font-weight:670; }
.tiny .band-button { justify-content:center; padding:0; }
.tiny .band-button svg { width:min(80%, 14px); }
.tiny .band-name, .tiny .resize { display:none; }
.resize { position:absolute; z-index:3; inset-block:0; width:8px; padding:0; border:0; border-radius:inherit; background:var(--clear); cursor:ew-resize; touch-action:none; }
.resize.start { left:0; }
.resize.end { right:0; }
.resize::after { content:''; position:absolute; width:2px; height:13px; left:3px; top:9px; background:var(--tone); border-radius:2px; opacity:0; }
.band:hover .resize::after,.resize:focus-visible::after { opacity:.45; }
.publication {
  z-index:3; position:absolute; bottom:3px; height:6px;
  border:1px solid var(--tone); border-radius:3px;
  background:color-mix(in srgb,var(--solid) 70%,var(--tone));
  pointer-events:none;
}
.publication.checked { background:var(--tone); }
.recurring .band-button { padding-inline:8px; }
.band.recurring { --repeat-line:color-mix(in srgb,var(--tone) 48%,var(--band-edge,var(--plan-line))); border:1px solid var(--repeat-line); }
.band.recurring::after { content:''; position:absolute; z-index:4; inset:2px; border:1px solid var(--repeat-line); border-radius:inherit; pointer-events:none; }
.repeat-icon { display:grid; place-items:center; margin-left:auto; flex:none; opacity:.72; }
.repeat-icon svg { width:14px; height:14px; }
.tiny .repeat-icon { display:none; }
.recurring:has(.publication) .band-button { padding-bottom:6px; }
.no-rows { display:grid; place-items:center; position:relative; padding:28px 12px; color:var(--muted); }
.pan-toolbar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; margin:6px 18px 0; padding-inline:10px; border-bottom:1px solid var(--rule); }
.pan-toolbar label { color:var(--muted); font-size:12px; font-weight:600; }
.pan-control { position:relative; grid-column:2; width:clamp(170px,37vw,410px); }
.pan-track {
  --pan-center:color-mix(in srgb,var(--quiet) 35%,var(--rule-strong));
  --pan-thumb-mark:linear-gradient(var(--pan-center),var(--pan-center));
  position:relative; min-width:0;
}
.pan-track::before,.pan-track::after {
  content:''; pointer-events:none; position:absolute;
}
.pan-track::before {
  inset:calc(50% - 4px) 0 auto; height:8px; border-radius:4px;
  background:var(--soft); box-shadow:inset 0 0 0 1px var(--rule);
}
.pan-track::after {
  inset:4px auto 4px calc(50% - 1px); width:2px; border-radius:2px;
  background:var(--pan-center); z-index:1;
}
.pan-control:has(> #pan-reset[hidden]) .pan-track { --pan-thumb-mark:none; }
.pan-control:has(> #pan-reset[hidden]) .pan-track::after { z-index:3; }
.pan-reset { position:absolute; padding:0; left:calc(100% + 5px); top:50%; translate:0 -50%; width:36px; height:36px; display:grid; place-items:center; border:0; border-radius:9px; background:var(--clear); color:var(--danger); }
.pan-reset:hover { background:var(--danger-soft); }
.pan-reset svg { width:16px; height:16px; }
.pan-range { --pan-thumb:60px; display:block; position:relative; z-index:2; appearance:none; width:100%; height:38px; margin:0; background:var(--clear); cursor:ew-resize; touch-action:none; }
.pan-range::-webkit-slider-runnable-track { height:8px; background:var(--clear); }
.pan-range::-moz-range-track { height:8px; background:var(--clear); }
.pan-range::-webkit-slider-thumb { appearance:none; height:19px; width:var(--pan-thumb); margin-top:-5.5px; border:1px solid var(--rule-strong); border-radius:10px; background:var(--pan-thumb-mark) center / 2px 9px no-repeat var(--primary-soft); }
.pan-range::-moz-range-thumb { height:19px; width:var(--pan-thumb); border:1px solid var(--rule-strong); border-radius:10px; background:var(--pan-thumb-mark) center / 2px 9px no-repeat var(--primary-soft); }
.pan-range:active::-webkit-slider-thumb { background-color:var(--green); }
.pan-range:active::-moz-range-thumb { background-color:var(--green); }
.pan-dates { justify-self:end; color:var(--muted); text-align:right; font-size:12px; font-variant-numeric:tabular-nums; }
.legend { display:flex; flex-wrap:wrap; align-items:center; gap:9px 19px; padding:14px 19px 15px; color:var(--muted); font-size:12px; }
.legend span { display:flex; align-items:center; gap:6px; }
.swatch { width:15px; height:10px; border-radius:3px; background:var(--green); border:1px solid var(--green); }
.swatch.future { background:var(--green-light); border-color:var(--plan-line); border-style:dashed; }
.swatch.waiting { background:repeating-linear-gradient(135deg,var(--plan),var(--plan) 3px,var(--stripe) 3px,var(--stripe) 4px); border:1px dashed var(--plan-line); }
.swatch.window { background:color-mix(in srgb,var(--teal) 70%,var(--teal-ink)); border-color:var(--teal-ink); }
.swatch.monthly { background:var(--wash); border:3px double var(--slate); }
.swatch.current { width:2px; height:12px; margin-inline:5px; background:var(--today); border:0; }
.subgrid { margin-top:19px; display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); gap:17px; align-items:start; }
.review { padding:15px 18px 8px; }
.card-header { min-height:28px; justify-content:flex-start; margin-bottom:7px; }
.card-header svg { width:17px; height:17px; color:var(--primary); }
h2 { font-size:17px; letter-spacing:-.025em; }
.count { color:var(--muted); font-size:12px; margin-left:auto; }
.list-item { display:flex; align-items:center; gap:10px; min-height:55px; border-top:1px solid var(--rule); }
.list-button { display:flex; align-items:center; gap:9px; text-align:left; flex:1; min-width:0; border:0; align-self:stretch; padding:5px 0; background:var(--clear); }
.list-button:hover .item-name { color:var(--primary); text-decoration:underline; }
.item-icon { display:grid; place-items:center; width:30px; height:30px; flex:none; border-radius:8px; background:var(--light); color:var(--tone); }
.item-icon svg { width:16px; height:16px; }
.item-text { min-width:0; }
.item-name,.item-meta { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.item-name { font-size:13px; font-weight:660; }
.item-meta,.item-dates,.empty-note { color:var(--muted); font-size:12px; }
.attention-stage { display:block; font-size:13px; color:var(--warm-ink); font-weight:690; overflow-wrap:anywhere; }
.status { display:inline-flex; align-items:center; gap:5px; max-width:100%; font-size:12px; font-weight:620; color:var(--muted); }
.status svg { width:13px; height:13px; }
.status-active,.status-done { color:var(--primary); }
.status-due,.status-unpaid { color:var(--warm-ink); }
.status-paid { color:var(--teal-ink); }
.status-planned { color:var(--blue-ink); }
.status-cancelled,.status-paused { color:var(--slate); }
.item-dates { white-space:nowrap; font-variant-numeric:tabular-nums; }
.empty-note { padding:10px 0 13px; border-top:1px solid var(--rule); }
.review .button { min-height:38px; font-size:12px; padding-inline:9px; }
.review .attention { background:var(--warm); border-color:var(--warm); color:var(--warm-ink); }
.review .attention:hover { box-shadow:inset 0 0 0 1px var(--warm-ink); }
.more-projects { border-top:1px solid var(--rule); }
summary { cursor:pointer; padding-block:9px; color:var(--muted); font-size:12px; }
dialog { border:0; border-radius:21px; background:var(--surface); color:var(--ink); box-shadow:var(--float); padding:0; width:min(580px,calc(100% - 24px)); max-height:calc(100dvh - 32px); }
dialog[open] { animation:dialog-in var(--short) cubic-bezier(.18,.65,.3,1) both; }
dialog::backdrop { background:var(--backdrop); backdrop-filter:blur(5px); }
@keyframes dialog-in { from { opacity:0; transform:translateY(9px) scale(.985); } to { opacity:1; transform:none; } }
.dialog-inner { padding:20px 22px; }
.dialog-head { align-items:flex-start; padding-bottom:13px; border-bottom:1px solid var(--rule); margin-bottom:14px; }
.dialog-head h2 { font-size:23px; line-height:1.2; }
.dialog-head > div:first-child { min-width:0; overflow-wrap:anywhere; }
.dialog-head-actions { display:flex; gap:6px; flex:none; }
.dialog-head button { flex:none; }
.close-dialog.flash { animation:close-flash 520ms ease-out; outline:2px solid var(--today); outline-offset:2px; }
@keyframes close-flash { 0%,100% { transform:none; } 28% { transform:scale(1.13); background:var(--today-soft); } 56% { transform:scale(.96); } }
.dialog-stage { font-size:19px; line-height:1.25; margin-bottom:6px; overflow-wrap:anywhere; }
.dialog-context { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; margin:5px 0 12px; color:var(--muted); font-size:13px; }
.project-note { display:flex; gap:9px; align-items:flex-start; padding:9px 12px; margin:0 0 12px; border-left:2px solid var(--rule-strong); background:var(--wash); border-radius:0 8px 8px 0; color:var(--muted); font-size:13px; overflow-wrap:anywhere; }
.project-note svg { color:var(--primary); width:16px; height:16px; margin-top:1px; }
.project-note div { white-space:pre-wrap; }
.project-note strong { display:block; color:var(--ink); }
.dialog-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; border-top:1px solid var(--rule); margin-top:16px; padding-top:12px; }
.order-actions { display:flex; flex-wrap:wrap; gap:6px; }
.danger { color:var(--danger); background:var(--danger-soft); border-color:var(--danger-soft); }
.danger:hover { background:var(--danger); color:var(--white); }
.danger-solid { background:var(--danger); color:var(--white); border-color:var(--danger); }
.danger-solid:hover { background:var(--danger-hover); }
.confirm-panel { padding:10px 12px; margin-bottom:12px; background:var(--warm); border-radius:10px; font-size:13px; }
.confirm-panel .dialog-actions { margin-top:8px; }
.dialog-alert { color:var(--today); font-size:13px; margin-top:9px; }
.dialog-alert:empty { display:none; }
.recurring-dates { padding:10px 12px; background:var(--wash); border-radius:10px; }
.date-field { min-width:0; }
.date-trigger { width:100%; display:flex; gap:10px; align-items:center; text-align:left; min-height:54px; border:1px solid var(--rule-strong); border-radius:11px; background:var(--surface); padding:6px 11px; }
.date-trigger:hover { background:var(--primary-soft); border-color:var(--green); }
.date-trigger > svg:first-child { color:var(--primary); }
.date-trigger > svg:last-child { width:15px; height:15px; margin-left:auto; color:var(--quiet); }
.date-caption { display:block; color:var(--muted); font-size:12px; }
.date-value { display:block; font-size:14px; font-weight:660; font-variant-numeric:tabular-nums; }
.date-dialog { width:min(704px,calc(100% - 24px)); }
.date-dialog::backdrop { backdrop-filter:blur(2px); }
.date-dialog-inner { padding:20px 22px; }
.date-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:10px; }
.date-head h2 { font-size:22px; }
.date-instruction { min-height:20px; margin-bottom:10px; color:var(--muted); font-size:13px; }
.date-months { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; touch-action:pan-y; user-select:none; }
.date-month-nav { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; text-align:center; align-items:center; gap:4px; margin-bottom:2px; }
.date-month-label { min-width:0; font-size:15px; font-weight:670; }
.date-next-mobile { visibility:hidden; }
.date-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); text-align:center; }
.date-week span { color:var(--quiet); font-size:11px; line-height:27px; }
.date-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); grid-auto-rows:40px; row-gap:2px; }
.date-cell { position:relative; isolation:isolate; display:grid; place-items:center; min-width:0; padding:0; border:0; background:var(--clear); border-radius:0; font-size:14px; font-weight:560; font-variant-numeric:tabular-nums; -webkit-tap-highlight-color:var(--clear); }
.date-cell:active:not([disabled]) { transform:none; }
.date-cell:focus-visible { z-index:2; outline-offset:-2px; border-radius:8px; }
.date-cell::after { position:absolute; z-index:-1; content:''; inset:1px; border-radius:10px; }
.date-cell:not(:disabled,.range-start,.range-end):hover::after { background:var(--soft); }
.date-cell:disabled,.date-cell:disabled:hover { background:var(--clear); opacity:.5; }
.date-months:has(.date-month:only-child) { grid-template-columns:minmax(0,1fr); }
.date-cell.in-range { background:var(--primary-soft); }
.date-cell.range-start { border-start-start-radius:10px; border-end-start-radius:10px; }
.date-cell.range-end { border-start-end-radius:10px; border-end-end-radius:10px; }
.date-cell.range-start,.date-cell.range-end { color:var(--white); font-weight:700; }
.date-cell.range-start::after,.date-cell.range-end::after { background:var(--primary); }
.date-cell.date-today:not(.range-start):not(.range-end) { color:var(--today); font-weight:720; }
.date-calendar-footer { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; margin-top:13px; padding-top:12px; border-top:1px solid var(--rule); }
.date-range-preview { font-size:14px; font-weight:650; font-variant-numeric:tabular-nums; }
.date-count { color:var(--muted); font-size:12px; }
.new-icon-control { display:flex; gap:8px; align-items:center; margin-top:4px; }
.new-icon-control select { min-height:42px; width:100%; min-width:0; border:1px solid var(--rule-strong); border-radius:8px; padding:8px 9px; background:var(--surface); }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.full-field { grid-column:1 / -1; }
label { display:block; font-size:13px; font-weight:620; }
label > input:not([type=checkbox]), label > select, label > textarea { display:block; margin-top:4px; min-height:42px; width:100%; min-width:0; border:1px solid var(--rule-strong); border-radius:8px; padding:8px 9px; background:var(--surface); }
input[type=checkbox] { accent-color:var(--primary); vertical-align:middle; }
.checkbox { display:flex; align-items:center; gap:6px; font-weight:520; min-height:36px; }
.checkbox input { margin:0; width:17px; height:17px; flex:none; }
.dialog-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; margin-top:15px; }
.details-list { margin:10px 0; border-top:1px solid var(--rule); }
.detail-row { display:flex; justify-content:space-between; align-items:center; gap:9px; padding:8px 0; border-bottom:1px solid var(--rule); font-size:13px; }
.detail-row span:last-child { color:var(--muted); }
.windows-section { margin-top:16px; }
.windows-head,.window-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.windows-head { justify-content:space-between; }
.windows-head h3 { font-size:16px; }
.window-actions { justify-content:flex-end; flex:none; }
.window-actions .icon-button { min-width:40px; min-height:40px; }
.window-actions .icon-button:hover { color:var(--danger); background:var(--danger-soft); }
.window-row { min-height:48px; }
.window-label { display:flex; align-items:center; gap:8px; flex:1; min-width:0; min-height:44px; padding:4px 6px; border:0; border-radius:8px; background:var(--clear); text-align:left; overflow-wrap:anywhere; }
.window-label:hover { background:var(--soft); }
.window-label svg { width:14px; height:14px; color:var(--muted); }
.window-label strong,.window-label small { display:block; }
.window-label strong { color:var(--ink); }
.window-label small { font-size:12px; }
.window-date-field { margin-top:12px; }
@media (max-width:385px) {
  .window-row { flex-wrap:wrap; row-gap:2px; }
  .window-label { flex-basis:125px; }
  .window-actions { margin-left:auto; }
}
.detail-note { color:var(--muted); font-size:13px; margin-block:8px; }
.dates-preview { color:var(--primary); padding-top:6px; font-size:13px; }
.error { color:var(--today); font-size:13px; margin-top:6px; }
.toast { position:fixed; z-index:10; bottom:20px; left:50%; transform:translateX(-50%); display:flex; gap:10px; align-items:center; width:max-content; max-width:calc(100% - 24px); background:var(--ink); color:var(--white); padding:8px 11px 8px 15px; border-radius:12px; box-shadow:var(--float); }
#details > .toast {
  position:sticky; bottom:8px; left:auto; transform:none; margin:-4px auto 8px;
  box-shadow:var(--shadow);
}
.toast[hidden] { display:none; }
.toast button { color:var(--white); border-color:var(--quiet); background:var(--clear); }
.toast button:hover { background:var(--quiet); }
noscript { display:block; padding:14px; color:var(--muted); }
@media (max-width:880px) {
  .calendar-tools { flex:1; justify-content:flex-end; }
  .tick.minor small { display:none; }
  .tick.minor b { font-size:11px; }
}
@media (max-width:660px) {
  .top-inner { min-height:55px; }
  .top .today-date { font-size:12px; }
  .brand { font-size:15px; }
  .brand-icon { width:31px; height:31px; }
  main { padding-block:23px 26px; }
  .page-head { margin-bottom:15px; }
  .page-head p { font-size:12px; margin-top:5px; }
  .page-head .button { padding-inline:9px; }
  .calendar-head { padding:9px 10px; gap:7px; }
  .calendar-nav { flex:1 1 auto; }
  .calendar-tools { flex:1 1 100%; justify-content:space-between; }
  .range-name { font-size:19px; }
  .scale { width:100%; }
  .scale button { flex:1; padding-inline:4px; }
  .chart { --rail-width:22px; --grip-width:0px; --work-rail:var(--rail-width); --row-height:45px; --extra-height:33px; margin-inline:9px; }
  .grip { display:none; }
  .row-add { left:100%; width:var(--work-rail); top:1px; height:44px; }
  .ticks { height:39px; }
  .tick.daily.minor b,.tick.daily small { display:none; }
  .tick.daily.near-today b { display:none; }
  .tick b { font-size:11px; }
  .tick.daily b { font-size:clamp(9px, 2.3vw, 11px); }
  .band { top:6px; height:32px; }
  .band-button { overflow:clip; }
  .resize { display:none; }
  .pan-toolbar { margin-inline:9px; padding-inline:0; grid-template-columns:minmax(0,1fr) auto; column-gap:8px; }
  .pan-toolbar label { grid-column:1; grid-row:1; }
  .pan-control { grid-column:1 / -1; grid-row:2; width:100%; display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:4px; }
  .pan-reset { position:static; width:44px; height:44px; translate:none; }
  .pan-dates { grid-column:2; grid-row:1; }
  .pan-range { --pan-thumb:66px; height:44px; }
  .pan-range::-webkit-slider-thumb { height:22px; margin-top:-7px; }
  .pan-range::-moz-range-thumb { height:22px; }
  .legend { padding:10px; gap:5px 9px; font-size:11px; }
  .subgrid { grid-template-columns:minmax(0,1fr); gap:12px; margin-top:12px; }
  .review { padding-inline:13px; }
  .item-name { white-space:normal; overflow-wrap:anywhere; }
  .dialog-inner { padding:13px; }
}
@media (max-width:560px) {
  .date-dialog-inner { padding:12px; }
  .date-months { grid-template-columns:minmax(0,1fr); }
  .date-month.secondary { display:none; }
  .date-next-mobile { visibility:visible; }
  .date-days { grid-auto-rows:38px; }
  .date-calendar-footer .button { margin-left:auto; }
}
@media (max-width:385px) {
  .add-word { display:none; }
  .today-date { padding-inline:5px; gap:4px; }
  .today-date svg { width:13px; height:13px; }
  .brand { gap:6px; font-size:13px; }
  .range-name { font-size:17px; }
  .calendar-nav { gap:5px; }
  .calendar-nav .icon-button { min-width:36px; }
  .scale button svg { display:none; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }

.top-actions { display:flex; align-items:center; gap:10px; }
.activity-link { color:var(--ink); text-decoration:none; }
.activity-page { max-width:850px; }
.activity-page .review { margin-bottom:12px; padding-bottom:15px; }
.activity-page h2 { margin:0; font-size:16px; }
.activity-summary table { width:100%; margin-top:8px; border-collapse:collapse; font-size:13px; font-variant-numeric:tabular-nums; }
.activity-summary th, .activity-summary td { padding:8px 5px; border-bottom:1px solid var(--rule); text-align:right; }
.activity-summary th:first-child { padding-left:0; text-align:left; }
.activity-summary :is(th,td):last-child { padding-right:0; }
.activity-summary thead { color:var(--muted); }
.activity-summary tbody th { font-weight:500; }
.activity-summary tbody td { font-weight:620; }
.activity-summary tbody tr:last-child > * { border-bottom:0; }
.activity-events ul { padding:0; margin:12px 0 0; list-style:none; }
.activity-events li { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 16px; padding:10px 0; border-top:1px solid var(--rule); font-size:13px; }
.activity-events time, .activity-events li span { color:var(--muted); }
.readonly-window { padding:4px 6px; min-width:0; overflow-wrap:anywhere; }
.readonly-window small { display:block; font-size:12px; }
.logout-button { white-space:nowrap; }
.logout-button svg { width:18px; height:18px; }
@font-face {
  font-family:'Gaoel';
  src:url('brand/gaoel.ttf') format('truetype');
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
.login-page { min-height:100svh; display:grid; place-items:center; padding:20px; }
.login-panel { width:min(100%, 410px); background:var(--surface); border:1px solid var(--rule);
  border-radius:20px; padding:clamp(20px, 6vw, 32px); }
.login-brand { display:flex; align-items:center; gap:10px; margin-left:-10px; }
.login-brand img { display:block; flex:none; width:64px; height:64px; }
.login-brand-name { display:grid; gap:3px; }
.login-wordmark { font-family:'Gaoel', sans-serif; font-size:24px; line-height:1; }
.login-product { color:var(--muted); font-size:15px; line-height:1.3; }
.login-panel h1 { margin:24px 0 16px; }
.login-panel form { display:grid; gap:14px; }
.login-panel label { display:grid; gap:6px; }
.login-panel input { width:100%; min-height:42px; border:1px solid var(--rule-strong); border-radius:10px; padding:8px 10px; }
.login-panel button { justify-self:start; margin-top:4px; }
body[data-saving] { cursor:progress; }
@media(max-width:450px) {
  .top-actions { gap:4px; }
  .top-actions .activity-link { padding-inline:8px; }
  .logout-text { display:none; }
  .logout-button { padding:0; width:34px; }
}
@media(max-width:380px) {
  .top-actions:has(.activity-link) .today-date { display:none; }
}
