:root {
  --frame: #4a2f1d; --frame2: #633f25; --paper: #f3dfae; --paper2: #e7c98a;
  --ink: #2f1c10; --muted: #7b5a3d; --line: #c9a466; --accent: #3f8a2c;
  --heart: #d8344f; --danger: #b3261e;
  --font-display: 'Trebuchet MS', sans-serif; --font-body: 'Segoe UI', sans-serif;
  --gut: 16px; --rail: 248px; --tabs: 64px;
  color-scheme: light;
}
:root[data-mode="night"] { color-scheme: dark; --heart: #ff6b81; --danger: #ff8a80; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); font: 16px/1.5 var(--font-body);
  background-color: var(--frame);
  /* wood planks */
  background-image: repeating-linear-gradient(180deg, transparent 0 46px, rgb(0 0 0 / .18) 46px 48px),
                    repeating-linear-gradient(90deg, rgb(255 255 255 / .025) 0 3px, transparent 3px 11px);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.boot { color: var(--paper); text-align: center; margin-top: 30vh; font-family: var(--font-display); }
h1, h2, h3, .brand { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; }

/* pixel-framed paper, the one surface treatment used everywhere */
.paper, .lock-card, .tile, .cat, .panel, .widget, .calendar, .skill, .search, .hello, .me-head {
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--line), 0 0 0 3px var(--frame2), 0 0 0 5px rgb(0 0 0 / .35), 0 6px 0 5px rgb(0 0 0 / .18);
}

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4em; padding: .55em 1em; border: 0; text-decoration: none;
  background: var(--paper2); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .18), 0 0 0 2px var(--frame2);
  font-weight: 700; min-height: 44px;
}
.btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgb(0 0 0 / .18), 0 0 0 2px var(--frame2); }
.btn.primary { background: var(--accent); color: #fff; }
:root[data-mode="night"] .btn.primary { color: #10141f; }
.btn.danger { background: transparent; color: var(--danger); box-shadow: 0 0 0 2px var(--danger); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: .35em .8em; font-size: .9rem; }
.btn.on { background: var(--accent); color: #fff; }
.link-btn { background: none; border: 0; padding: .4em 0; text-decoration: underline; color: var(--muted); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.mini-btn { min-width: 36px; min-height: 36px; border: 0; background: var(--paper2); box-shadow: 0 0 0 2px var(--line); font-weight: 700; }
.field { display: grid; gap: 4px; border: 0; padding: 0; margin: 0 0 14px; }
.field > span, .field legend, .sel > span { font-size: .85rem; color: var(--muted); font-weight: 700; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  background: color-mix(in srgb, var(--paper) 70%, #fff 30%); border: 2px solid var(--line); padding: .5em .65em; min-height: 44px; border-radius: 0; width: 100%;
}
:root[data-mode="night"] input:not([type=checkbox]):not([type=radio]), :root[data-mode="night"] select, :root[data-mode="night"] textarea { background: var(--paper2); }
.sel { display: inline-grid; gap: 2px; min-width: 140px; }
.toggle, .check-line { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.toggle input, .check-line input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin-top: 2px; }
.toggle small { display: block; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.fine { font-size: .85rem; color: var(--muted); margin: 8px 0 0; max-width: 70ch; }
.form-err { color: var(--danger); min-height: 1.5em; margin: 0; }
.empty { color: var(--muted); padding: 24px 16px; text-align: center; font-style: italic; }
.empty.small { padding: 8px 0; text-align: left; }
.avatar { font-size: 1.4rem; line-height: 1; }
.avatar.big { font-size: 2.6rem; }

/* ---------- lock ---------- */
.lock { min-height: 100dvh; display: grid; place-items: center; padding: 32px var(--gut); }
.lock-card { width: min(100%, 560px); padding: 28px 24px; }
.lock .brand { font-size: clamp(1.9rem, 6vw, 2.7rem); color: var(--ink); letter-spacing: .01em; }
.lock-sub { color: var(--muted); margin: 6px 0 22px; }
.lock-q { font-size: 1.2rem; margin-bottom: 14px; }
.lock-msg { color: var(--danger); }
.farmers { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
.farmer { width: 100%; display: grid; justify-items: center; gap: 8px; padding: 18px 8px 14px; border: 0; background: var(--paper2);
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / .15), 0 0 0 2px var(--frame2); }
.farmer .avatar { font-size: 2.4rem; }
.farmer-name { font-weight: 700; overflow-wrap: anywhere; }
.farmer:hover { background: color-mix(in srgb, var(--paper2) 80%, var(--accent)); }
.farmer-new { background: transparent; box-shadow: 0 0 0 2px var(--line) inset; color: var(--muted); }
.pin-card { text-align: center; max-width: 360px; }
.lock-card { position: relative; }
.lock-card .back { position: absolute; top: 10px; left: 18px; }
.pin-who { padding-top: 18px; }
.pin-who { display: grid; justify-items: center; gap: 6px; margin-top: 8px; }
.pin-msg { color: var(--muted); min-height: 3em; margin: 8px 0; }
.dots { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.dots i { width: 16px; height: 16px; background: var(--paper2); box-shadow: 0 0 0 2px var(--frame2); }
.dots i.on { background: var(--accent); }
.dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 280px; margin: 0 auto; }
.pad button { min-height: 60px; border: 0; font: 700 1.5rem var(--font-display); background: var(--paper2); box-shadow: inset 0 -4px 0 rgb(0 0 0 / .18), 0 0 0 2px var(--frame2); }
.pad button:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgb(0 0 0 / .18), 0 0 0 2px var(--frame2); }
.pad [data-k="ok"] { background: var(--accent); color: #fff; }
.lock-card.form { position: relative; }
.lock-card.form h2 { margin: 28px 0 18px; font-size: 1.5rem; }
.avatars { display: flex; flex-wrap: wrap; gap: 6px; }
.avatars label { cursor: pointer; }
.avatars input { position: absolute; opacity: 0; }
.avatars span { display: grid; place-items: center; width: 46px; height: 46px; font-size: 1.6rem; background: var(--paper2); }
.avatars input:checked + span { box-shadow: 0 0 0 3px var(--accent); background: var(--paper); }
.avatars input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- shell ---------- */
.shell { min-height: 100dvh; padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom) + 24px); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px var(--gut);
  background: var(--frame2); box-shadow: 0 3px 0 rgb(0 0 0 / .3); color: var(--paper); }
.brand.small { font-size: 1.15rem; text-decoration: none; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f3dfae; }
.date-chip { text-decoration: none; font: 700 .9rem var(--font-display); padding: 6px 10px; background: rgb(0 0 0 / .25); white-space: nowrap; color: #f3dfae;
  box-shadow: inset 0 0 0 2px var(--accent); }
.sync-chip { padding: 2px 8px; border: 2px solid #e0a458; color: #f3dfae; font-size: .8rem; }
.sync-chip[hidden] { display: none; }
.me-chip { display: flex; align-items: center; gap: 6px; text-decoration: none; color: #f3dfae; }
.me-name { font-weight: 700; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail { display: none; }
#view { padding: 22px var(--gut); width: 100%; max-width: 920px; margin: 0 auto; outline: none; min-width: 0; }
.cat > .fine { padding: 0 20px; }
.tabs { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; background: var(--frame2); box-shadow: 0 -3px 0 rgb(0 0 0 / .3);
  padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; min-height: var(--tabs); text-decoration: none; color: #e9d3a3; font-size: .78rem; font-weight: 700; }
.tabs a.on { color: #fff; background: rgb(0 0 0 / .22); box-shadow: inset 0 3px 0 var(--accent); }
.tabs .ico { font-size: 1.3rem; line-height: 1.2; }

@media (max-width: 520px) {
  .me-name { display: none; }
  .brand.small { font-size: 1rem; }
  .two { grid-template-columns: 1fr; }
}
@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: var(--rail) 1fr; grid-template-rows: auto 1fr; padding-bottom: 32px; }
  .topbar { grid-column: 1 / -1; }
  .tabs { display: none; }
  .rail { display: block; position: sticky; top: 56px; align-self: start; height: calc(100dvh - 56px); overflow-y: auto; padding: 18px 10px 18px 14px; }
  .rail a { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 2px 8px; padding: 7px 10px; text-decoration: none; color: #f3dfae; font-weight: 700; }
  .rail a:hover { background: rgb(255 255 255 / .06); }
  .rail a.on { background: rgb(0 0 0 / .28); box-shadow: inset 3px 0 0 var(--accent); }
  .rail .ico { text-align: center; }
  .rail .mini { grid-column: 2; height: 4px; background: rgb(0 0 0 / .35); }
  .rail .mini i { display: block; height: 100%; background: var(--accent); }
  .rail hr { border: 0; border-top: 2px dashed rgb(255 255 255 / .12); margin: 10px 4px; }
  #view { padding: 28px 32px; }
}

/* ---------- home ---------- */
.hello { padding: 20px 22px; margin-bottom: 26px; }
.hello h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.hello p { margin: 6px 0 12px; color: var(--muted); max-width: 60ch; }
.field-wrap { margin: 0 0 30px; }
.sign { display: inline-flex; align-items: baseline; gap: 14px; padding: 10px 18px 12px; background: var(--frame2); color: #f3dfae;
  box-shadow: inset 0 0 0 3px rgb(0 0 0 / .25), 0 4px 0 rgb(0 0 0 / .3); position: relative; margin-left: 8px; }
.sign::before, .sign::after { content: ""; position: absolute; bottom: -22px; width: 6px; height: 22px; background: var(--frame2); }
.sign::before { left: 16px; } .sign::after { right: 16px; }
.sign-t { font: 700 1.1rem var(--font-display); }
.sign-v { font: 700 clamp(2.2rem, 8vw, 3.2rem) var(--font-display); line-height: 1; color: #fff; }
.farm { list-style: none; margin: 18px 0 0; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 10px;
  background: color-mix(in srgb, var(--accent) 14%, #2e1c10); box-shadow: inset 0 0 0 3px rgb(0 0 0 / .25); }
.plot a { display: grid; justify-items: center; text-decoration: none; color: #f6e7c2; padding: 4px 2px 6px; }
.plot a:hover { background: rgb(255 255 255 / .07); }
.plot-svg { width: 64px; height: 64px; image-rendering: pixelated; }
.plot-l { font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.2; }
.plot-v { font: 700 .82rem var(--font-display); opacity: .85; }
.plot.ripe .plot-v { color: #ffe27a; opacity: 1; }
.px-soil { fill: #6d4126; } .px-furrow { fill: #4b2b17; } .px-seed { fill: #e9c97f; }
.px-stem { fill: #3f7a2c; } .px-leaf { fill: #5fae3e; } .px-leaf2 { fill: #7fcf5c; }
.px-bud { fill: #c9e07a; } .px-petal { fill: var(--accent); } .px-core { fill: #ffd84a; }
:root[data-season="Spring"] .px-petal { fill: #f28bb4; }
.field-wrap > .fine { color: #e9d3a3; }
.sec-h { color: #f3dfae; font-size: 1.25rem; margin: 0 0 14px; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.tile { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; padding: 14px 16px; text-decoration: none; height: 100%; align-content: start; }
.tile:hover { background: color-mix(in srgb, var(--paper) 88%, var(--accent)); }
.tile-ico { grid-row: span 2; font-size: 1.8rem; }
.tile-t { font: 700 1.1rem var(--font-display); align-self: end; }
.tile-b { font-size: .85rem; color: var(--muted); }
.tile-n { grid-column: 1 / -1; margin-top: 10px; font-weight: 700; font-size: .9rem; }
.tile .bar { grid-column: 1 / -1; }
.tile.full .tile-n::after { content: " ★"; color: var(--accent); }
.bar { display: block; height: 8px; background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }

/* ---------- category ---------- */
.cat { padding: 0 0 8px; }
.cat-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 20px 20px 16px; border-bottom: 2px dashed var(--line); align-items: center; }
.cat-ico { font-size: 2.2rem; }
.cat-ht h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
.cat-ht p { margin: 2px 0 0; color: var(--muted); }
.cat-prog { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: baseline; }
.cat-prog strong { font: 700 1.6rem var(--font-display); color: var(--accent); }
.cat-prog .bar { grid-column: 1 / -1; height: 10px; }
.controls { padding: 14px 20px; display: grid; gap: 12px; position: sticky; top: 52px; z-index: 5; background: var(--paper); border-bottom: 2px dashed var(--line); }
.ctl-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.search-box input { width: 100%; }
.search-box.big input { font-size: 1.15rem; min-height: 52px; }
.group { padding: 4px 0; }
.group-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 1.05rem; padding: 18px 20px 8px; color: var(--muted); }
.group-h small { font: .82rem var(--font-body); }
.group-h em { margin-left: auto; font: 700 .9rem var(--font-display); font-style: normal; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 52px 1fr; border-top: 1px dashed var(--line); }
.row.ref { grid-template-columns: 1fr; }
.row.ref .row-main { padding-left: 20px; }
.ctl { display: grid; place-items: start center; padding-top: 12px; }
.row-body { min-width: 0; padding-right: 14px; }
.row-main { display: flex; flex-wrap: wrap; gap: 2px 12px; width: 100%; text-align: left; border: 0; background: none; padding: 12px 0 10px; }
.row-main:hover .name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.name { flex-basis: 100%; font-weight: 700; font-size: 1.02rem; }
.spr { width: 24px; height: 24px; object-fit: contain; image-rendering: pixelated; vertical-align: -6px; margin-right: 8px; }
.row.done .spr { opacity: .55; }
.spr.sm { width: 18px; height: 18px; vertical-align: -4px; margin-right: 3px; }
.gift { white-space: nowrap; }
.guide { margin: 0 0 14px; padding: 10px 14px; background: var(--paper2); }
.guide summary { cursor: pointer; font-weight: 700; }
.guide img { display: block; max-width: 100%; margin-top: 10px; image-rendering: pixelated; }
.spr.ic { width: 22px; height: 22px; vertical-align: -6px; margin: 0 2px; }
.row.done .name { color: var(--muted); }
.row.done > .row-body > .row-main .name::after { content: ""; }
.meta { font-size: .86rem; color: var(--muted); }
.meta b { color: var(--ink); font-weight: 700; }
.cat-tag { color: var(--accent); font-weight: 700; }
.badge { font: 700 .78rem var(--font-display); padding: 0 5px; background: var(--paper2); color: var(--ink); vertical-align: 2px; }
.pin-dot { font-size: .8rem; }
.check { width: 30px; height: 30px; border: 0; background: var(--paper2); box-shadow: inset 0 0 0 2px var(--frame2), inset 0 -3px 0 rgb(0 0 0 / .12); display: grid; place-items: center; }
.check.on { background: var(--accent); }
.check.on::after { content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 4px 4px; transform: translateY(-2px) rotate(-45deg); }
:root[data-mode="night"] .check.on::after { border-color: #10141f; }
.ring { --f: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--f) * 360deg), var(--paper2) 0); }
.ring span { width: 28px; height: 28px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font: 700 .68rem var(--font-display); }
.hearts { display: flex; flex-wrap: wrap; gap: 2px; padding-bottom: 10px; margin-top: -4px; }
.heart { width: 28px; height: 28px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.heart::before { content: "♥"; font-size: 1.25rem; line-height: 1; color: var(--line); }
.heart.on::before { color: var(--heart); }
.pips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 12px; }
.pip { width: 24px; height: 24px; border: 0; background: var(--paper2); box-shadow: inset 0 0 0 2px var(--line); }
.pip.on { background: var(--accent); box-shadow: inset 0 0 0 2px rgb(0 0 0 / .2); }
.of { font: 700 .85rem var(--font-display); color: var(--muted); margin-left: 4px; }
.counter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 12px; }
.counter .bar { flex-basis: 100%; margin: 0 0 4px; }
.count-in { width: 6.5em !important; min-height: 36px !important; padding: .2em .4em !important; text-align: right; }
.subs { list-style: none; padding: 0 0 12px; margin: -2px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sub { border: 0; padding: 6px 10px; min-height: 36px; background: var(--paper2); box-shadow: inset 0 0 0 2px var(--line); font-size: .88rem; text-align: left; }
.sub.on { background: var(--accent); color: #fff; box-shadow: none; }
.sub.on::before { content: "✓ "; font-weight: 700; }
:root[data-mode="night"] .sub.on { color: #10141f; }
.tracks { display: inline-block; font-size: .86rem; font-weight: 700; color: var(--accent); padding-bottom: 12px; }
.detail { grid-column: 1 / -1; padding: 4px 20px 18px 52px; display: grid; gap: 12px; justify-items: start; }
.detail dl { margin: 0; display: grid; gap: 6px; width: 100%; }
.detail dl div { display: grid; grid-template-columns: minmax(90px, 140px) 1fr; gap: 10px; }
.detail dt { font-weight: 700; color: var(--muted); font-size: .88rem; }
.detail dd { margin: 0; }
.note { display: grid; gap: 4px; width: 100%; }
.note span { font-size: .85rem; color: var(--muted); font-weight: 700; }
.detail .btn + .btn { margin-left: 0; }
@media (max-width: 520px) {
  .detail { padding-left: 16px; }
  .detail dl div { grid-template-columns: 1fr; gap: 0; }
  .controls { padding: 12px 14px; }
  .cat-head { padding: 16px 14px 14px; }
  .group-h { padding: 16px 14px 8px; }
  .row { grid-template-columns: 46px 1fr; }
}

/* ---------- skills ---------- */
.skills { display: grid; gap: 22px; padding: 18px 20px 12px; }
.skill { padding: 16px 18px; box-shadow: inset 0 0 0 2px var(--line); }
.skill header { display: flex; justify-content: space-between; align-items: baseline; }
.skill h2 { font-size: 1.35rem; }
.lvl { font: 700 1rem var(--font-display); color: var(--accent); }
.pips.lv { margin-top: 10px; }
.pips.lv .pip { width: 28px; height: 28px; }
.pips.lv .pip.mile { box-shadow: inset 0 0 0 2px var(--frame2); }
.tier h3 { font-size: 1rem; margin: 8px 0; }
.tier h3 small { font: .82rem var(--font-body); color: var(--muted); }
.tier.locked { opacity: .55; }
.prof { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.prof-o { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 0; background: var(--paper2); box-shadow: inset 0 0 0 2px var(--line); }
.prof-o span { font-size: .86rem; color: var(--muted); }
.prof-o.on { box-shadow: inset 0 0 0 3px var(--accent); background: color-mix(in srgb, var(--paper2) 75%, var(--accent)); }
.prof-o:disabled { cursor: not-allowed; }
.mastery { margin-top: 10px; }

/* ---------- today ---------- */
.today { display: grid; gap: 26px; }
.calendar { display: grid; grid-template-columns: auto 1fr; gap: 16px 22px; padding: 18px 20px; align-items: center; }
.cal-date { display: grid; justify-items: center; padding: 8px 16px 10px; background: var(--accent); color: #fff; min-width: 108px; box-shadow: inset 0 -4px 0 rgb(0 0 0 / .2); }
:root[data-mode="night"] .cal-date { color: #10141f; }
.cal-date strong { font: 700 3rem var(--font-display); line-height: 1; }
.cal-season { font: 700 1.05rem var(--font-display); }
.cal-ctl { display: grid; gap: 10px; }
.cal-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cal-row select { width: auto; }
.day-in { width: 4.6em !important; }
.year { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); }
.seg { display: inline-flex; box-shadow: 0 0 0 2px var(--line); }
.seg button { border: 0; background: var(--paper2); min-height: 44px; padding: 0 12px; font-weight: 700; }
.seg button.on { background: var(--accent); color: #fff; }
:root[data-mode="night"] .seg button.on { color: #10141f; }
@media (max-width: 520px) { .calendar { grid-template-columns: 1fr; } .cal-date { justify-self: start; } }
.widget { padding: 16px 0 10px; }
.widget > h2 { font-size: 1.15rem; padding: 0 20px 10px; display: flex; gap: 10px; align-items: baseline; }
.widget > h2 em { font: 700 .9rem var(--font-display); font-style: normal; color: var(--accent); }
.widget > .empty, .widget > .fine, .widget > .link-btn { padding-left: 20px; padding-right: 20px; display: block; }

/* ---------- search & me ---------- */
.search { padding: 20px 0 10px; }
.search > h1, .search > .search-box, .search > .fine { margin-left: 20px; margin-right: 20px; display: block; }
.search > h1 { margin-bottom: 14px; font-size: 1.7rem; }
.search #results > .fine { padding: 0 20px 6px; }
.me { display: grid; gap: 24px; }
.me-head { display: flex; gap: 16px; align-items: center; padding: 18px 20px; }
.me-head p { margin: 2px 0 0; color: var(--muted); }
.panel { padding: 18px 20px; display: grid; gap: 8px; justify-items: start; }
.panel h2 { font-size: 1.2rem; margin-bottom: 4px; }
.panel .sel { min-width: 240px; }
.panel .two { width: 100%; }
.log { list-style: none; margin: 0; padding: 0; width: 100%; }
.log li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: .92rem; }
.log time { color: var(--muted); white-space: nowrap; }

/* ---------- toast ---------- */
#toast { position: fixed; z-index: 50; left: 50%; bottom: calc(var(--tabs) + env(safe-area-inset-bottom) + 14px); transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 10px 14px 10px 18px; background: var(--frame2); color: #f3dfae; font-weight: 700;
  box-shadow: 0 0 0 3px var(--accent), 0 6px 0 3px rgb(0 0 0 / .35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-btn { border: 0; background: var(--accent); color: #fff; font-weight: 700; padding: 6px 12px; min-height: 36px; }
@media (min-width: 960px) { #toast { bottom: 24px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
