/* Home Maintenance Calendar — toolkityourlife.com/HomeMaintenance/
   Matches the site's look (same base as Receipt Vault): black, Inter + Archivo Black, lime accent. Mobile first.
   Status colors: overdue red · due this week yellow · done green (the site's lime) · warranty/partner blue. */
:root {
  --bg: #000; --bg2: #0b0b0c; --card: #121214; --card2: #18181b; --line: rgba(255,255,255,.12); --line2: rgba(255,255,255,.2);
  --ink: #f4f4f2; --muted: #9a9aa0; --accent: #c9ff3d; --accent-ink: #000;
  --ok: #c9ff3d; --soon: #ffc44d; --bad: #ff6b6b; --none: #77777d; --info: #7cc4ff;
  --r: 14px; --tab-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
html.big { font-size: 112.5%; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 1rem/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 8px);
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255,255,255,.06), transparent 70%); }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg.ic { width: 14px; height: 14px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; background: rgba(0,0,0,.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-nav { flex: 1; min-width: 0; min-height: 38px; display: flex; align-items: center; }
.acct { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px;
  background: rgba(18,18,20,.9); border: 1px solid var(--line); cursor: pointer; font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.acct:hover { border-color: rgba(201,255,61,.6); }
.acct-av { width: 26px; height: 26px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; overflow: hidden; font-size: .8rem; color: var(--muted); }
.acct-av img { width: 100%; height: 100%; object-fit: cover; }
.acct.signed-in .acct-av { background: var(--accent); color: #000; }
.acct-label { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { position: absolute; right: 12px; top: calc(100% + 6px); min-width: 230px; padding: 6px; background: rgba(18,18,20,.97);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.6); }
.acct-menu p { margin: 8px 10px; color: var(--muted); font-size: .82rem; }
.acct-menu button, .acct-menu a { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-decoration: none; cursor: pointer; }
.acct-menu button:hover, .acct-menu a:hover { background: rgba(255,255,255,.07); color: var(--accent); }

/* ---------- layout ---------- */
.view { max-width: 980px; margin: 0 auto; padding: 16px 14px 24px; outline: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font: 400 clamp(1.45rem, 5.5vw, 2.2rem)/1.05 "Archivo Black", "Inter", sans-serif; text-transform: uppercase; letter-spacing: -.01em; }
h1 .accent { color: var(--accent); }
h1.t-h { text-transform: none; font-size: clamp(1.35rem, 5vw, 1.9rem); letter-spacing: 0; overflow-wrap: anywhere; }
h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; }
h2 .count { color: var(--muted); font-weight: 600; font-size: .85rem; margin-left: 4px; }
h2.h-overdue { color: var(--bad); } h2.h-week { color: var(--soon); } h2.h-done { color: var(--ok); } h2.h-info { color: var(--info); }
.sub { color: var(--muted); margin: 6px 0 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spread { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.stack p { margin: 0; }
.section { margin-top: 22px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.card.tight { padding: 10px 12px; }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
.crumbs { margin: 0 0 10px; }
.crumbs a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.crumbs a:hover { color: var(--accent); }
.notes { white-space: pre-wrap; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: #d8d8d6; font-size: .92rem; }
.steps { margin: 10px 0 0; padding-left: 20px; color: #d8d8d6; } .steps li + li { margin-top: 8px; }
.c-overdue { color: var(--bad); } .c-week { color: var(--soon); } .c-done { color: var(--ok); }
@media (min-width: 720px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .view { padding: 22px 20px 28px; }
}

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; font-size: .95rem; }
.btn:hover { border-color: rgba(201,255,61,.6); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: none; }
.btn.danger { color: var(--bad); border-color: rgba(255,107,107,.4); background: none; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .85rem; border-radius: 10px; }
.btn.big { min-height: 52px; padding: 0 22px; font-size: 1.02rem; }
.btn.icon { padding: 0; width: 36px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.big-actions { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .big-actions { grid-template-columns: repeat(3, 1fr); } }
.big-actions .btn { min-height: 76px; flex-direction: column; gap: 6px; font-size: 1rem; border-radius: 16px; }
.big-actions .btn svg { width: 26px; height: 26px; }

label.f { display: block; }
label.f > span, .f-label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
.in, select.in, textarea.in { width: 100%; min-height: 44px; padding: 10px 12px; font-size: 16px; background: #0e0e10; color: var(--ink);
  border: 1px solid var(--line2); border-radius: 10px; }
select.in.sm { width: auto; min-height: 36px; padding: 4px 10px; font-size: 14px; }
textarea.in { min-height: 88px; resize: vertical; }
.in:focus { outline: none; border-color: rgba(201,255,61,.7); box-shadow: 0 0 0 3px rgba(201,255,61,.12); }
.in.flash { animation: flash .9s; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px rgba(201,255,61,.6); } 100% { box-shadow: none; } }
input[type="date"].in { min-width: 0; }
.fgrid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.fgrid .full { grid-column: 1 / -1; }
.fgrid .half { grid-column: 1 / -1; }
@media (min-width: 560px) { .fgrid .half { grid-column: span 1; } }
@media (min-width: 720px) { .fgrid { grid-template-columns: repeat(4, 1fr); } .fgrid .half { grid-column: span 2; } }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 12px; background: #0e0e10; border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; font-weight: 600; font-size: .88rem; }
.seg button[aria-pressed="true"] { background: var(--card2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 240px; overflow: auto; padding: 2px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line2);
  background: #0e0e10; font-size: .88rem; cursor: pointer; max-width: 100%; color: var(--ink); }
.chip:hover { border-color: var(--accent); }
.chip.used { border-color: var(--accent); background: rgba(201,255,61,.1); }
.chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  letter-spacing: .02em; border: 1px solid currentColor; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-overdue { color: var(--bad); } .s-week { color: var(--soon); } .s-done { color: var(--ok); } .s-upcoming { color: #c4c4c8; border-color: var(--line2); }
.s-upcoming::before { background: none; border: 1.5px solid currentColor; } .s-paused { color: var(--none); } .s-info { color: var(--info); } .s-future { color: var(--muted); }
.rc-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- summary tiles ---------- */
.tiles { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); margin-top: 14px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: block; text-align: left; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); cursor: pointer; color: var(--ink); text-decoration: none; }
.tile:hover { border-color: rgba(201,255,61,.6); }
.tile b { display: block; font: 400 1.6rem/1 "Archivo Black", sans-serif; }
.tile b.tile-money { font-size: 1.15rem; line-height: 1.4; }
.tile span { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; }
.tile.t-overdue b { color: var(--bad); } .tile.t-week b { color: var(--soon); } .tile.t-done b { color: var(--ok); }

/* ---------- toolbar ---------- */
.toolbar { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin-top: 16px; }
.toolbar .search { grid-column: 1 / -1; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; pointer-events: none; }
.search .in { padding-left: 38px; }
@media (min-width: 720px) { .toolbar { grid-template-columns: 1fr 200px 200px; } .toolbar .search { grid-column: auto; } }

/* ---------- task rows ---------- */
.list { display: grid; gap: 8px; }
.tk { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px 10px 10px;
  border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tk::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: transparent; }
.tk.st-overdue { border-color: rgba(255,107,107,.38); } .tk.st-overdue::before { background: var(--bad); }
.tk.st-week { border-color: rgba(255,196,77,.32); } .tk.st-week::before { background: var(--soon); }
.tk.st-done::before { background: var(--ok); } .tk.st-info::before { background: var(--info); }
.tk.st-paused { opacity: .65; }
a.tk:hover, .tk:hover { border-color: rgba(201,255,61,.5); }
.tk-check { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line2); background: none; display: grid; place-items: center; cursor: pointer; color: transparent; padding: 0; }
.tk-check svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
button.tk-check:hover, button.tk-check:focus-visible { border-color: var(--ok); color: var(--ok); background: rgba(201,255,61,.08); }
.st-overdue button.tk-check { border-color: rgba(255,107,107,.6); } .st-week button.tk-check { border-color: rgba(255,196,77,.6); }
.tk-check.done { border-color: var(--ok); background: var(--ok); color: #000; cursor: default; }
.tk-check.info { border-color: rgba(124,196,255,.5); color: var(--info); cursor: default; }
.tk-check.info svg { width: 18px; height: 18px; stroke-width: 2; }
.tk-main { min-width: 0; color: inherit; text-decoration: none; display: block; padding: 2px 0; }
.tk-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-weight: 700; overflow: hidden; line-height: 1.25; overflow-wrap: anywhere; }
.tk-meta { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-when { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-decoration: none; color: inherit; }
.tk-date { font-size: .75rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 420px) { .tk-when .badge { font-size: .7rem; padding: 2px 7px; } .tk { grid-template-columns: 40px minmax(0,1fr) auto; } .tk-check { width: 40px; height: 40px; } }
.allclear { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding: 16px; border-radius: var(--r); border: 1px solid rgba(201,255,61,.35); background: rgba(201,255,61,.06); }
.allclear b { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.allclear svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.empty { text-align: center; padding: 34px 18px; border: 1px dashed var(--line2); border-radius: 18px; margin-top: 16px; }
.empty h2 { font: 400 1.25rem "Archivo Black", sans-serif; text-transform: uppercase; }
.empty p { color: var(--muted); max-width: 440px; margin: 8px auto 16px; }

/* ---------- calendar ---------- */
.cal-h { display: flex; align-items: center; gap: 8px; }
.cal-title { flex: 1; text-align: center; font-size: clamp(1.2rem, 5vw, 1.8rem); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 10px; font-size: .78rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
i.c-overdue, .cdots i.c-overdue { background: var(--bad); } i.c-week { background: var(--soon); } i.c-done { background: var(--ok); }
i.c-upcoming, i.c-future { background: none; box-shadow: inset 0 0 0 1.5px var(--muted); } i.c-info { background: var(--info); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cw { text-align: center; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0; }
.cd { min-height: 58px; padding: 4px 3px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px;
  align-items: stretch; text-align: left; cursor: pointer; color: var(--ink); overflow: hidden; }
.cd.pad { background: none; border: 0; cursor: default; }
.cd.today { border-color: var(--accent); }
.cd.today .cd-n { background: var(--accent); color: #000; }
.cd.sel { box-shadow: inset 0 0 0 2px rgba(201,255,61,.7); }
.cd-n { align-self: flex-start; font-size: .78rem; font-weight: 700; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; display: grid; place-items: center; }
.cchip { display: none; font-size: .68rem; line-height: 1.25; padding: 1px 4px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cchip.c-overdue { background: rgba(255,107,107,.22); color: #ffc2c2; } .cchip.c-week { background: rgba(255,196,77,.22); color: #ffe2a6; }
.cchip.c-done { background: rgba(201,255,61,.18); color: #e4ff9c; } .cchip.c-upcoming, .cchip.c-future { box-shadow: inset 0 0 0 1px var(--line2); color: #c4c4c8; }
.cchip.c-info { background: rgba(124,196,255,.18); color: #cfe8ff; }
.cmore { display: none; font-size: .66rem; color: var(--muted); padding-left: 3px; }
.cdots { display: flex; gap: 3px; flex-wrap: wrap; padding: 0 2px; margin-top: auto; }
.cdots i { width: 7px; height: 7px; border-radius: 50%; }
@media (min-width: 640px) {
  .cal { gap: 5px; }
  .cd { min-height: 92px; padding: 6px; }
  .cchip, .cmore { display: block; }
  .cdots { display: none; }
}

/* ---------- rooms ---------- */
.gcards { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 560px) { .gcards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .gcards { grid-template-columns: 1fr 1fr 1fr; } }
.gcard { display: block; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.gcard:hover { border-color: rgba(201,255,61,.5); }
.g-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.02rem; }
.g-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--card2); display: grid; place-items: center; font-size: .9rem; }
.g-meta { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }

/* ---------- detail ---------- */
.dhead { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.supplies { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.supplies li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #0f0f11; border: 1px solid var(--line); }
.supplies .check { min-height: 32px; }
.spec { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--card2); border: 1px solid var(--line); font-size: .82rem; font-variant-numeric: tabular-nums; }
.pairbox { border-left: 3px solid var(--accent); }
.hist { display: grid; gap: 6px; }
.hrow { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.hrow .hmain { min-width: 0; } .hrow .hmain a { color: var(--ink); }
.hcost { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hdot { width: 30px; height: 30px; margin: 0 5px; border-radius: 50%; background: rgba(201,255,61,.15); color: var(--ok); display: grid; place-items: center; }
.hdot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--card2); display: grid; place-items: center; overflow: hidden; color: var(--muted); border: 0; padding: 0; cursor: zoom-in; }
.thumb.sm { width: 40px; height: 40px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- editor ---------- */
.sup { display: grid; gap: 8px; grid-template-columns: 1fr 72px; grid-template-areas: "name qty" "spec spec" "url rm"; padding: 10px; border-radius: 12px; background: #0f0f11; border: 1px solid var(--line); }
.sup + .sup { margin-top: 8px; }
.sup [data-k=name] { grid-area: name; } .sup [data-k=qty] { grid-area: qty; } .sup-spec { grid-area: spec; } .sup [data-k=url] { grid-area: url; }
.sup [data-rm] { grid-area: rm; justify-self: end; align-self: center; }
.sup-spec { display: grid; grid-template-columns: 1fr 44px; gap: 6px; }
.sup-spec .btn { min-height: 44px; width: 44px; }
@media (min-width: 720px) { .sup { grid-template-columns: 1.1fr 1.5fr 64px 1.2fr 36px; grid-template-areas: "name spec qty url rm"; } }
.preview { position: relative; border-radius: 14px; overflow: hidden; background: #0e0e10; border: 1px solid var(--line); }
.preview img { display: block; width: 100%; max-height: min(320px, 32vh); object-fit: contain; }
.prog { height: 8px; border-radius: 999px; background: var(--card2); overflow: hidden; margin-top: 10px; }
.prog > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* ---------- setup ---------- */
.climates { display: grid; gap: 8px; grid-template-columns: 1fr; margin-top: 10px; }
@media (min-width: 640px) { .climates { grid-template-columns: 1fr 1fr; } }
.climate { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); cursor: pointer; color: var(--ink); }
.climate b { display: block; } .climate span { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.climate[aria-pressed="true"] { border-color: var(--accent); background: rgba(201,255,61,.08); box-shadow: inset 0 0 0 1px var(--accent); }
.tpls { display: grid; gap: 6px; margin-top: 10px; }
.tplrow { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.tpl-lab { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.tpl-lab input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.tpl-main { min-width: 0; } .tpl-main b { display: block; font-weight: 600; } .tpl-main span { display: block; }
.tplrow.added { opacity: .6; } .tplrow.off .tpl-main span { color: var(--soon); }
.sticky-cta { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); z-index: 20; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 16px; border-radius: 16px; background: rgba(18,18,20,.95); border: 1px solid var(--line2); box-shadow: 0 12px 40px rgba(0,0,0,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-width: 900px) { .sticky-cta { bottom: 90px; } }

/* ---------- banners ---------- */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); margin-top: 14px;
  background: rgba(201,255,61,.08); border: 1px solid rgba(201,255,61,.35); }
.banner.warn { background: rgba(255,196,77,.08); border-color: rgba(255,196,77,.4); }
.banner.info { background: rgba(124,196,255,.07); border-color: rgba(124,196,255,.35); }
.banner p { margin: 0; }
.banner .row { margin-top: 10px; }
.syncline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; margin-top: 8px; }
.syncline i { width: 8px; height: 8px; border-radius: 50%; background: var(--none); flex: none; }
.syncline.cloud i { background: var(--ok); }
.syncline.off i { background: var(--soon); }
.works { display: flex; flex-wrap: wrap; gap: 8px; }
.works a { font-size: .8rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.works a:hover { color: var(--accent); border-color: rgba(201,255,61,.5); }

/* ---------- sheet / lightbox / toast ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 2147482000; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; background: #0c0c0e; border: 1px solid var(--line); border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(18px + var(--safe-b)); }
.sheet h2 { display: flex; align-items: center; gap: 8px; }
.sheet h2 svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 720px) { .sheet-bg { align-items: center; } .sheet { border-radius: 20px; } }
.sheet.wide { max-width: 980px; padding: 10px; background: #000; }
.sheet.wide img { display: block; width: 100%; height: auto; border-radius: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); transform: translateX(-50%); z-index: 2147482500;
  background: #151515; border: 1px solid var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-size: .9rem; box-shadow: 0 8px 30px rgba(0,0,0,.6); max-width: calc(100vw - 24px); text-align: center; }
.toast.err { border-color: var(--bad); }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(8,8,9,.94); border-top: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted);
  text-decoration: none; font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar .tab-add svg { width: 30px; height: 30px; padding: 4px; border-radius: 50%; background: var(--accent); color: #000; stroke: #000; }
.tab-dot { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--soon); color: #000; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
@media (min-width: 900px) {
  .tabbar { left: 50%; right: auto; bottom: 14px; width: 520px; transform: translateX(-50%); border-radius: 999px; border: 1px solid var(--line); height: 60px; padding: 0; }
  body { padding-bottom: 96px; }
}

/* ---------- ads ---------- */
.ad { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 18px 0; width: 100%; }
.ad-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #666; }
.ad ins, .ad .mn { width: 100%; min-height: 90px; }
.ad-ph { width: 100%; max-width: 970px; min-height: 90px; border: 1px dashed #444; border-radius: 8px; display: grid; place-items: center; color: #777; font-size: 13px; text-align: center; padding: 8px; }

.foot { max-width: 760px; margin: 18px auto 0; padding: 10px 16px 20px; text-align: center; color: #6a6a70; font-size: .78rem; }
.foot a { color: inherit; }
.foot p { margin: 4px 0; }

/* ---------- print ---------- */
.pv { background: #fff; color: #111; border-radius: 12px; padding: 22px; font-size: 13px; line-height: 1.45; }
.pv h1 { color: #111; font-size: 20px; text-transform: none; font-family: "Inter", sans-serif; font-weight: 800; letter-spacing: 0; }
.pv h2 { font-size: 14px; margin: 18px 0 6px; color: #111; }
.pv p { margin: 4px 0; }
.pv table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.pv th, .pv td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #ddd; vertical-align: top; }
.pv th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #555; }
.pv td.num, .pv th.num { text-align: right; white-space: nowrap; }
.pv td.box { width: 22px; font-size: 16px; color: #444; }
.pv .pv-sm { font-size: 11px; color: #555; }
.pv .pv-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px 18px; margin-top: 12px; }
.pv .pv-meta div span { display: block; font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: .05em; }
.pv .pv-meta b { font-size: 16px; }
.pv .pv-foot { margin-top: 18px; font-size: 11px; color: #666; border-top: 1px solid #ddd; padding-top: 8px; }
.pv tr { break-inside: avoid; page-break-inside: avoid; }
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #111 !important; padding: 0 !important; }
  body::before { display: none; }
  [data-noprint], .ad, .toast, .sheet-bg, tyl-nav, .tylp-foot, .noprint, .tk-check, .sticky-cta { display: none !important; }
  .view { max-width: none; padding: 0; }
  .pv { padding: 0; border-radius: 0; }
  body:not(.printing-view) .card, body:not(.printing-view) .tk { background: #fff !important; color: #111 !important; border-color: #ccc !important; }
  body:not(.printing-view) h1, body:not(.printing-view) .spec { color: #111 !important; background: none !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
