Files
STTracker/apps/web/src/theme.css
T

617 lines
36 KiB
CSS

/* STTracker app theme. Tokens are DESIGN.md's, verbatim; derived values sit below them. */
@font-face {
font-family: "Inter";
src: url("./fonts/inter-latin-wght-normal.woff2") format("woff2");
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
/* Gelasio (OFL), official variable fonts from github.com/google/fonts ofl/gelasio, unmodified. */
@font-face {
font-family: "Gelasio";
src: url("./fonts/gelasio-wght.ttf") format("truetype");
font-weight: 400 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Gelasio";
src: url("./fonts/gelasio-italic-wght.ttf") format("truetype");
font-weight: 400 700;
font-style: italic;
font-display: swap;
}
:root {
/* DESIGN.md */
--surface-0: #17152b;
--surface-1: #1e1b36;
--surface-2: #262247;
--surface-3: #2d2852;
--text: #ece9ff;
--text-muted: #a9a3d6;
--text-faint: #8d87c2;
--accent: #6d5dfc;
--rating: #fbbf24;
--warn: #f97316;
--ok: #34d399;
--media-books: #6b3fa0;
--media-audio: #2f6b58;
--media-games: #c1652f;
--media-film: #344b7a;
--media-music: #a33b62;
/* Derived (from the approved mockup) */
--nav-text: #b8b3e0;
--pill-text: #c9c4f0;
--dash: #4b4485;
--focus: #9d92ff;
--warn-bg: #3a2a1a;
--warn-line: #f9731666;
--warn-text: #fde2c8;
--on-warn: #1c0f04; /* white on --warn is 2.8:1; this is 6.4:1 */
--review-text: #e3e0fb;
--draft-stripes: repeating-linear-gradient(45deg, #3a356b 0 6px, #2d2852 6px 12px);
--r-control: 8px;
--r-box: 10px;
--r-pill: 999px;
--r-cover: 4px;
--font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
--font-review: "Gelasio", Georgia, "Times New Roman", serif;
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; }
body {
background: var(--surface-1);
color: var(--text);
font-family: var(--font-ui);
font-size: 0.9rem;
line-height: 1.45;
font-feature-settings: "cv11", "ss01";
-webkit-font-smoothing: antialiased;
caret-color: var(--text);
}
::selection { background: #6d5dfc80; color: #fff; }
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
button:disabled { cursor: default; opacity: 0.55; }
a { color: inherit; text-decoration: none; }
a.text-link, .text-link { color: var(--focus); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tabular { font-variant-numeric: tabular-nums; }
svg.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
/* ---------- Controls ---------- */
.input, .select, .textarea {
width: 100%;
background: var(--surface-3);
border: 1px solid transparent;
border-radius: var(--r-control);
padding: 8px 11px;
color: var(--text);
transition: border-color 0.15s, background 0.15s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--dash); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--focus); }
.select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.btn {
display: inline-flex; align-items: center; gap: 6px;
border-radius: var(--r-control); padding: 7px 13px; font-size: 0.82rem; font-weight: 500;
background: var(--surface-3); color: var(--text);
transition: background 0.15s;
}
.btn:hover:not(:disabled) { background: #3a346a; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #7c6dff; }
.btn.ghost { background: transparent; color: var(--text-muted); padding: 5px 8px; }
.btn.ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.btn.small { padding: 4px 9px; font-size: 0.76rem; }
.field { display: grid; gap: 5px; }
.field > span { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.hint { font-size: 0.76rem; color: var(--text-faint); }
.error-text { font-size: 0.8rem; color: #ffb4a8; }
.box .hint, .box .error-text { margin-top: 6px; }
/* ---------- Auth screens ---------- */
.auth {
min-height: 100%;
display: grid; place-items: center;
padding: 40px 20px;
background:
radial-gradient(60rem 40rem at 85% -10%, #6d5dfc22, transparent 60%),
radial-gradient(40rem 30rem at -10% 110%, #fbbf2412, transparent 60%),
var(--surface-0);
}
.auth-card { width: min(400px, 100%); }
.auth .logo { font-size: 1.15rem; margin: 0 0 28px; }
.auth h1 { font-size: 1.6rem; line-height: 1.2; font-weight: 650; letter-spacing: -0.015em; text-wrap: balance; }
.auth .lede { color: var(--text-muted); margin: 8px 0 26px; max-width: 42ch; }
.auth form { display: grid; gap: 14px; }
.auth form .btn.primary { justify-content: center; padding: 10px 14px; font-size: 0.9rem; margin-top: 6px; }
.auth .alt { margin-top: 22px; color: var(--text-muted); font-size: 0.85rem; }
.form-error { background: #3a1d24; border: 1px solid #f8717155; color: #ffd4d4; border-radius: var(--r-control); padding: 9px 12px; font-size: 0.84rem; }
/* ---------- Shell ---------- */
.logo { font-weight: 700; font-size: 1.05rem; color: var(--rating); letter-spacing: -0.01em; display: inline-block; }
.shell { display: grid; grid-template-columns: 190px minmax(0, 1fr); height: 100%; }
.side {
background: var(--surface-0); padding: 20px 14px 14px;
display: flex; flex-direction: column; overflow-y: auto;
}
.side .logo { margin: 0 8px 20px; }
.side nav { display: flex; flex-direction: column; gap: 1px; }
.nav {
padding: 7px 10px; border-radius: var(--r-control); color: var(--nav-text);
display: flex; justify-content: space-between; align-items: center; gap: 8px;
transition: background 0.15s, color 0.15s;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav:hover { background: #221f40; color: var(--text); }
.nav[aria-current="page"] { background: var(--surface-3); color: #fff; }
.nav .count { background: var(--warn); color: var(--on-warn); font-weight: 650; border-radius: var(--r-pill); font-size: 0.72rem; padding: 1px 7px; line-height: 1.4; }
.nav .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.nav .dot.paused { background: var(--dash); }
.nav .name { overflow: hidden; text-overflow: ellipsis; }
.grp { color: var(--text-faint); font-size: 0.78rem; margin: 18px 10px 6px; font-weight: 500; }
.side-foot { margin-top: auto; padding: 14px 10px 0; display: grid; gap: 2px; font-size: 0.8rem; }
.side-foot .who { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot button { justify-self: start; color: var(--text-faint); padding: 2px 0; }
.side-foot button:hover { color: var(--text); }
.main { min-width: 0; height: 100%; overflow: hidden; }
/* ---------- Library ---------- */
.library { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: 100%; }
.list-pane { border-right: 1px solid var(--surface-3); display: flex; flex-direction: column; min-height: 0; }
.list-tools { padding: 18px 16px 10px; display: grid; gap: 12px; }
.search { position: relative; }
.search .icon { position: absolute; left: 11px; top: 50%; translate: 0 -50%; color: var(--text-muted); pointer-events: none; }
.search .input { padding-left: 33px; }
.quick { position: relative; }
.quick .input {
background: transparent; border: 1px dashed var(--dash); color: var(--pill-text); padding-left: 32px;
}
.quick .input::placeholder { color: var(--pill-text); }
.quick .input:hover { border-color: #6a62b0; }
.quick .input:focus-visible { border-style: solid; border-color: var(--rating); background: #221f40; }
.quick .plus { position: absolute; left: 11px; top: 50%; translate: 0 -50%; color: var(--rating); pointer-events: none; }
.quick .plus .icon { stroke-width: 2.25; }
.chips { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding: 2px 24px 2px 2px; margin: -2px -16px -2px -2px; mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip {
flex: none; border-radius: var(--r-pill); padding: 3px 10px; font-size: 0.76rem;
background: transparent; color: var(--text-muted); border: 1px solid var(--surface-3);
transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--dash); }
.chip[aria-pressed="true"] { background: var(--surface-3); color: #fff; border-color: var(--surface-3); }
.chip.draft-chip[aria-pressed="true"] { color: var(--rating); border-color: #fbbf2466; background: #fbbf2414; }
.filters { display: grid; gap: 6px; }
.list { list-style: none; overflow-y: auto; flex: 1; padding-bottom: 12px; }
.row {
display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center;
padding: 9px 16px; transition: background 0.12s;
}
.row:hover { background: #24204a; }
.row[aria-current="page"] { background: var(--surface-3); }
.row:focus-visible { outline-offset: -2px; border-radius: 0; }
.row .title { font-size: 0.88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.row .meta { color: var(--text-muted); font-size: 0.76rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .end { display: flex; align-items: center; gap: 8px; }
.row .stars { font-size: 0.75rem; }
.flag { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.flag.active { background: var(--accent); }
.draft { font-size: 0.7rem; color: var(--rating); border: 1px solid #fbbf2466; border-radius: 4px; padding: 1px 5px; line-height: 1.35; }
.stars { color: var(--rating); letter-spacing: 2px; white-space: nowrap; }
.list-note { padding: 18px 16px; color: var(--text-muted); font-size: 0.85rem; display: grid; gap: 10px; justify-items: start; }
.list-note strong { color: var(--text); font-weight: 600; }
.more { margin: 10px 16px; }
.skeleton .cover, .skeleton .bar { background: var(--surface-2); }
.skeleton .bar { height: 10px; border-radius: 4px; width: 70%; }
.skeleton .bar + .bar { width: 40%; margin-top: 7px; height: 8px; }
@media (prefers-reduced-motion: no-preference) {
.skeleton { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
}
/* ---------- Covers ---------- */
.cover { width: 40px; height: 56px; border-radius: 3px; overflow: hidden; flex: none; background: var(--surface-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.is-draft { background: var(--draft-stripes); }
.cover.large { width: 110px; height: 160px; border-radius: 5px; box-shadow: 0 6px 20px #0006; }
.cover.small { width: 28px; height: 40px; border-radius: 3px; }
/* ---------- Detail ---------- */
.detail-pane { overflow-y: auto; min-width: 0; position: relative; }
.detail { padding: 22px 26px 40px; max-width: 980px; }
.detail-empty { height: 100%; display: grid; place-items: center; padding: 40px; text-align: center; color: var(--text-muted); }
.detail-empty p { max-width: 34ch; }
.detail-empty strong { display: block; color: var(--text); font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.back { display: none; }
.det-head { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; }
.det-head h1 { font-size: 1.45rem; line-height: 1.2; font-weight: 650; letter-spacing: -0.012em; text-wrap: balance; }
.det-head .m { color: var(--text-muted); margin: 4px 0 12px; }
.det-head .draft { margin-left: 8px; vertical-align: 3px; }
.det-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.det-controls .select { width: auto; padding-top: 5px; padding-bottom: 5px; font-size: 0.82rem; }
.det-tools { margin-left: auto; display: flex; gap: 4px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.pill { background: var(--surface-3); padding: 3px 4px 3px 10px; border-radius: var(--r-pill); font-size: 0.76rem; color: var(--pill-text); display: inline-flex; align-items: center; gap: 2px; }
.pill button { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--text-muted); }
.pill button:hover { background: #ffffff14; color: var(--text); }
.pill button .icon { width: 11px; height: 11px; stroke-width: 2.25; }
.tag-input { background: transparent; border: 1px dashed var(--dash); border-radius: var(--r-pill); padding: 2px 10px; font-size: 0.76rem; width: 96px; color: var(--pill-text); }
.tag-input::placeholder { color: var(--text-muted); }
.tag-input:focus-visible { outline: none; border-style: solid; border-color: var(--focus); width: 150px; }
/* Rating control */
.rating { display: inline-flex; align-items: center; gap: 2px; border-radius: 6px; padding: 2px; cursor: pointer; }
.rating svg { width: 20px; height: 20px; display: block; }
.rating .empty { fill: none; stroke: #6a62b0; stroke-width: 1.4; }
.rating .full { fill: var(--rating); stroke: var(--rating); stroke-width: 1.4; }
.rating-clear { margin-left: 6px; font-size: 0.74rem; color: var(--text-faint); padding: 2px 4px; border-radius: 4px; }
.rating-clear:hover { color: var(--text); }
.rating-number { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.82rem; }
.rating-number .input { width: 72px; padding: 5px 8px; }
/* Change alert */
.alert {
margin: 18px 0 14px; background: var(--warn-bg); border: 1px solid var(--warn-line);
border-radius: var(--r-box); padding: 11px 14px; display: flex; gap: 12px; align-items: center;
}
.alert p { flex: 1; color: var(--warn-text); font-size: 0.85rem; line-height: 1.4; }
.alert p b { font-weight: 650; }
.alert .btn { background: var(--warn); color: var(--on-warn); font-weight: 600; border-radius: 6px; padding: 6px 12px; font-size: 0.8rem; white-space: nowrap; }
.alert .btn:hover { background: #fb8a3c; }
/* Boxes */
.det-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.alert + .det-grid, .alert + .link-box { margin-top: 0; }
.box { background: var(--surface-2); border-radius: var(--r-box); padding: 12px 14px; min-width: 0; }
.box.wide { grid-column: 1 / -1; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; min-height: 22px; }
.box h2 { font-size: 0.78rem; color: var(--text-faint); font-weight: 600; }
.box .r { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; font-size: 0.84rem; }
.box .r > :first-child { color: var(--text-muted); }
.box .r > :last-child { text-align: right; }
.box .r .x { opacity: 0; transition: opacity 0.15s; }
.box .r:hover .x, .box .r .x:focus-visible { opacity: 1; }
@media (hover: none) { .box .r .x { opacity: 1; } }
.box .empty-line { color: var(--text-muted); font-size: 0.84rem; }
.box form { display: grid; gap: 10px; margin-top: 8px; }
.box form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.box form .actions { display: flex; gap: 6px; }
.box .input, .box .select { padding: 6px 9px; font-size: 0.84rem; }
.box .search .input { padding-left: 33px; }
.copy + .copy { border-top: 1px solid var(--surface-3); margin-top: 6px; padding-top: 6px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumb { width: 58px; height: 44px; border-radius: 4px; background-color: var(--surface-3); background-size: cover; background-position: center; display: grid; place-items: center; font-size: 0.66rem; color: var(--text-muted); overflow: hidden; text-align: center; padding: 2px; }
.thumb.upload { border: 1px dashed var(--dash); background: transparent; color: var(--text-muted); cursor: pointer; }
.thumb.upload:hover { color: var(--text); border-color: #6a62b0; }
.thumb.upload:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.src { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.84rem; }
.src i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.src i.paused { background: var(--dash); }
.children { list-style: none; }
.children a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 5px 6px; margin: 0 -6px; border-radius: 6px; font-size: 0.84rem; }
.children a:hover { background: var(--surface-3); }
.children .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.children .s { color: var(--text-muted); font-size: 0.76rem; margin-left: 8px; }
.children .stars { font-size: 0.72rem; }
.review textarea {
width: 100%; min-height: 7.5em; resize: vertical; background: transparent; border: 1px solid transparent;
border-radius: var(--r-control); padding: 6px 8px; margin: -6px -8px -4px; width: calc(100% + 16px);
font-family: var(--font-review); font-size: 0.95rem; line-height: 1.55; color: var(--review-text);
}
.review textarea::placeholder { color: var(--text-faint); font-style: italic; }
.review textarea:hover { border-color: var(--surface-3); }
.review textarea:focus-visible { outline: none; border-color: var(--focus); background: #211d40; }
.saved { font-size: 0.74rem; color: var(--text-faint); }
.custom { display: grid; gap: 10px; }
.custom .checks { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.84rem; }
.custom label.inline { display: inline-flex; gap: 6px; align-items: center; font-size: 0.84rem; }
input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
/* Link to catalogue */
.link-box { margin: 18px 0 14px; border: 1px solid #fbbf2440; background: #fbbf240a; }
.link-box p { color: var(--text-muted); font-size: 0.84rem; max-width: 70ch; }
.link-box .results { list-style: none; margin-top: 10px; display: grid; gap: 4px; }
.link-box .results li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 6px; border-radius: 6px; font-size: 0.84rem; }
.link-box .results li:hover { background: var(--surface-3); }
.link-box .results .m { color: var(--text-muted); font-size: 0.76rem; }
.link-box .results .acts { display: flex; gap: 4px; }
.link-box .search { margin-top: 12px; max-width: 420px; }
.sub { font-size: 0.74rem; color: var(--text-faint); font-weight: 600; margin-top: 12px; }
/* History drawer */
.drawer {
position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); z-index: 20;
background: var(--surface-0); border-left: 1px solid var(--surface-3);
box-shadow: -18px 0 40px #0008; display: flex; flex-direction: column;
}
@media (prefers-reduced-motion: no-preference) {
.drawer { animation: drawer-in 0.32s var(--ease-out); }
@keyframes drawer-in { from { translate: 24px 0; opacity: 0; } }
}
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 12px; }
.drawer h2 { font-size: 1rem; font-weight: 650; }
.drawer ol { list-style: none; overflow-y: auto; padding: 0 20px 24px; }
.drawer li { border-top: 1px solid var(--surface-3); padding: 12px 0; display: grid; gap: 6px; }
.drawer .when { display: flex; justify-content: space-between; gap: 10px; font-size: 0.78rem; color: var(--text-muted); }
.drawer .who { color: var(--text); font-weight: 550; }
.drawer dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; font-size: 0.8rem; }
.drawer dt { color: var(--text-faint); }
.drawer dd { overflow-wrap: anywhere; }
.drawer dd s { color: var(--text-faint); text-decoration-color: #8d87c299; }
.drawer .arrow { color: var(--text-faint); margin: 0 4px; }
/* Placeholder pages */
.page { padding: 28px 32px; max-width: 60ch; }
.page h1 { font-size: 1.3rem; font-weight: 650; margin-bottom: 8px; }
.page p { color: var(--text-muted); }
.boot { height: 100%; display: grid; place-items: center; background: var(--surface-0); }
/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
.library { grid-template-columns: 320px minmax(0, 1fr); }
.det-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
.shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
.side { flex-direction: row; align-items: center; gap: 4px; padding: 10px 12px; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid var(--surface-3); scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.side .logo { margin: 0 10px 0 4px; }
.side nav { flex-direction: row; }
.side .grp, .side .src-nav, .side-foot .who { display: none; }
.side-foot { margin: 0 0 0 auto; padding: 0 4px; }
.side-foot button { white-space: nowrap; }
.library { grid-template-columns: 1fr; }
.library.has-selection .list-pane { display: none; }
.library:not(.has-selection) .detail-pane { display: none; }
.list-pane { border-right: 0; }
.back { display: inline-flex; margin: 0 0 14px -8px; }
.detail { padding: 16px 16px 40px; }
.det-head { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
.cover.large { width: 84px; height: 122px; }
.det-head h1 { font-size: 1.2rem; }
.det-tools { margin-left: 0; }
.alert { flex-direction: column; align-items: stretch; }
.box form .two { grid-template-columns: 1fr; }
}
/* =====================================================================================
Task 18 screens: Changes, Sources, Log, Lists, Owned, Settings, About
===================================================================================== */
/* ---------- Load errors ---------- */
.load-error { padding: 18px 0; color: var(--text-muted); display: grid; gap: 10px; justify-items: start; }
.stale-banner {
display: flex; align-items: center; gap: 10px; justify-content: space-between;
background: #3a1d24; border: 1px solid #f8717144; color: #ffd4d4;
border-radius: var(--r-control); padding: 6px 6px 6px 12px; font-size: 0.8rem; margin: 0 0 12px;
}
.stale-banner .btn.ghost { color: #ffd4d4; }
.stale-banner.in-list { margin: 4px 16px 8px; }
/* ---------- Screen frame ---------- */
.screen { height: 100%; overflow-y: auto; }
.screen-inner { padding: 26px 32px 64px; max-width: 900px; }
.screen-head { margin-bottom: 20px; }
.screen-head h1 { font-size: 1.35rem; line-height: 1.2; font-weight: 650; letter-spacing: -0.012em; text-wrap: balance; }
.screen-head .lede { color: var(--text-muted); margin-top: 5px; max-width: 64ch; }
.screen-head.with-action { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.section { margin-top: 30px; }
.section > h2, .section-head h2 { font-size: 0.95rem; font-weight: 650; letter-spacing: -0.005em; }
.section > .hint, .section-head + .hint { margin: 4px 0 12px; max-width: 64ch; display: block; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.empty-state { padding: 34px 0 12px; max-width: 46ch; color: var(--text-muted); }
.empty-state strong { display: block; color: var(--text); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.empty-state .btn { margin-top: 14px; }
.filter-note { font-size: 0.84rem; color: var(--text-muted); margin: -6px 0 18px; }
.filter-note b { color: var(--text); font-weight: 600; }
.more-note { margin-top: 14px; }
.btn.primary-soft { background: #6d5dfc33; color: #ded9ff; }
.btn.primary-soft:hover:not(:disabled) { background: #6d5dfc55; }
.btn.danger { color: #ffb4a8; }
.btn.danger:hover:not(:disabled) { background: #4a1f2a; color: #ffd4d4; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 550; padding: 1px 8px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--pill-text); white-space: nowrap; }
.badge.ok::before, .badge.off::before, .badge.bad::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: #34d39914; }
.badge.off { color: var(--text-muted); }
.badge.bad { color: #ffb4a8; background: #f8717114; }
.secret-once {
margin-top: 12px; border: 1px solid #fbbf2455; background: #fbbf240d; border-radius: var(--r-control);
padding: 10px 12px; display: grid; gap: 8px;
}
.secret-once p { font-size: 0.8rem; color: var(--text-muted); }
.secret-once .copy-row { display: flex; gap: 8px; align-items: center; }
.secret-once code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.82rem; color: var(--rating); background: var(--surface-0); padding: 6px 9px; border-radius: 6px; }
/* ---------- Changes ---------- */
.run-group { margin-top: 26px; }
.run-group:first-of-type { margin-top: 6px; }
.run-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 0.78rem; font-weight: 500; color: var(--text-faint); margin-bottom: 8px; }
.run-head .who { color: var(--text-muted); font-weight: 600; }
.changes { list-style: none; display: grid; gap: 10px; }
.change { background: var(--surface-2); border-radius: var(--r-box); padding: 13px 16px 14px; display: grid; gap: 8px; }
.change.skeleton { height: 128px; }
.change-skeleton { display: grid; gap: 10px; }
.change-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.change .kind { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; color: #fdba74; }
.change .kind::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.change-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; color: var(--text-muted); }
.change-title a, .change-title b { color: var(--text); font-weight: 600; }
.change-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.change .when { flex: none; font-size: 0.74rem; color: var(--text-faint); }
.change-msg { color: var(--warn-text); font-size: 0.86rem; }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--surface-3); border-radius: var(--r-control); overflow: hidden; }
.diff > div { background: #221e40; padding: 8px 12px; min-width: 0; }
.diff dt { font-size: 0.72rem; color: var(--text-faint); font-weight: 600; margin-bottom: 2px; }
.diff dd { font-size: 0.86rem; overflow-wrap: anywhere; }
.diff .was dd { color: var(--text-muted); }
.diff .now dd { color: var(--text); }
.diff dd.stars { color: var(--rating); font-size: 0.8rem; }
.change-actions { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 2px; }
@media (max-width: 860px) {
.screen-inner { padding: 18px 16px 48px; }
.diff { grid-template-columns: 1fr; }
.change-top { flex-wrap: wrap; }
.change-title { white-space: normal; }
}
/* ---------- Forms (shared by the new screens) ---------- */
.field > label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.field .req { color: var(--text-faint); font-weight: 400; }
.inline-check { display: inline-flex; gap: 8px; align-items: center; font-size: 0.84rem; color: var(--text); }
.form-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.stack-form { display: grid; gap: 12px; }
.ok-text { font-size: 0.8rem; color: var(--ok); }
.box-text { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 10px; max-width: 60ch; }
.muted-val { color: var(--text-muted); }
.back-link { margin: 0 0 10px -8px; }
/* ---------- Sources ---------- */
.conn-list { list-style: none; display: grid; gap: 2px; margin-top: 10px; }
.conn-row {
display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr) auto;
gap: 14px; align-items: center; padding: 10px 12px; margin: 0 -12px; border-radius: var(--r-control);
transition: background 0.12s;
}
.conn-row:hover { background: var(--surface-2); }
.conn-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-meta { color: var(--text-muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plugin-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.plugin { background: var(--surface-2); border-radius: var(--r-box); padding: 13px 14px; display: grid; gap: 6px; align-content: start; }
.plugin.open { grid-column: 1 / -1; }
.plugin-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.plugin h3 { font-size: 0.92rem; font-weight: 600; }
.plugin-types { font-size: 0.76rem; color: var(--text-muted); margin-top: 1px; }
.plugin-does { font-size: 0.76rem; color: var(--text-faint); }
.connect-form { display: grid; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--surface-3); max-width: 520px; }
.src-sub { display: flex; gap: 10px; align-items: center; }
.head-actions { display: flex; gap: 6px; flex: none; }
.src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.src-grid .box .r label { color: var(--text-muted); }
.src-grid .box .r .select { width: auto; padding: 4px 28px 4px 9px; font-size: 0.82rem; }
.src-grid .box .hint { display: block; }
.import-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.file-pick input { font-size: 0.8rem; color: var(--text-muted); max-width: 100%; }
.file-pick input::file-selector-button {
font: inherit; font-size: 0.8rem; color: var(--text); background: var(--surface-3); border: 0;
border-radius: var(--r-control); padding: 6px 11px; margin-right: 10px; cursor: pointer;
}
.file-pick input::file-selector-button:hover { background: #3a346a; }
.runs { list-style: none; display: grid; }
.run { padding: 9px 0; border-top: 1px solid var(--surface-3); display: grid; gap: 4px; }
.run:first-child { border-top: 0; padding-top: 2px; }
.run-line { display: flex; gap: 10px; align-items: center; font-size: 0.84rem; }
.run-mode { flex: 1; }
.run-when { color: var(--text-faint); font-size: 0.76rem; }
.run-counts { font-size: 0.78rem; color: var(--text-muted); }
.run details summary { font-size: 0.76rem; color: var(--text-faint); cursor: pointer; width: max-content; }
.run details summary:hover { color: var(--text); }
.run pre { margin-top: 6px; max-height: 220px; overflow: auto; font-size: 0.74rem; line-height: 1.5; color: var(--text-muted); background: var(--surface-0); padding: 8px 10px; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.danger-zone { background: transparent; border: 1px solid var(--surface-3); }
/* ---------- Modal (device sign-in) ---------- */
.modal {
margin: auto; width: min(440px, calc(100vw - 32px)); border: 1px solid var(--surface-3); border-radius: 14px;
background: var(--surface-1); color: var(--text); padding: 22px 22px 18px; box-shadow: 0 24px 60px #000a;
}
.modal::backdrop { background: #0b0916b8; }
@media (prefers-reduced-motion: no-preference) {
.modal[open] { animation: modal-in 0.28s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; translate: 0 8px; } }
}
.modal h2 { font-size: 1.05rem; font-weight: 650; }
.modal .lede { color: var(--text-muted); margin: 6px 0 16px; font-size: 0.86rem; }
.device-code { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--surface-0); border-radius: var(--r-box); padding: 14px 16px; }
.device-code .code { font-size: 1.7rem; font-weight: 650; letter-spacing: 0.14em; color: var(--rating); }
.device-link { margin-top: 12px; width: 100%; justify-content: center; padding: 9px 14px; }
.waiting { margin-top: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 18px; }
@media (max-width: 860px) {
.src-grid { grid-template-columns: 1fr; }
.screen-head.with-action { flex-direction: column; }
.conn-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
.conn-row .conn-meta { grid-column: 1; }
.conn-row .badge { grid-row: 1; grid-column: 2; }
}
/* ---------- Log ---------- */
.screen-inner.narrow { max-width: 720px; }
.log-month { margin-top: 22px; }
.log-month h2 { font-size: 0.78rem; font-weight: 600; color: var(--text-faint); margin-bottom: 4px; position: sticky; top: 0; background: var(--surface-1); padding: 6px 0; z-index: 1; }
.log { list-style: none; }
.log-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 10px; margin: 0 -10px; border-radius: var(--r-control); }
a.log-row { transition: background 0.12s; }
a.log-row:hover { background: var(--surface-2); }
.log-main { min-width: 0; display: grid; }
.log-title { font-size: 0.88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-meta { font-size: 0.76rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-stars { font-size: 0.72rem; }
.log-when { font-size: 0.76rem; color: var(--text-faint); white-space: nowrap; }
.listen-cover { display: grid; place-items: center; background: color-mix(in srgb, var(--media-music) 55%, var(--surface-2)); color: #f6d3e1; }
.listen-cover .icon { width: 14px; height: 14px; }
.log-row.skeleton .bar { background: var(--surface-2); height: 10px; border-radius: 4px; width: 60%; }
.log-row.skeleton .bar + .bar { width: 35%; margin-top: 6px; height: 8px; }
.log-row.skeleton .cover { background: var(--surface-2); }
.more-btn { margin-top: 18px; }
/* ---------- Lists ---------- */
.pane-title { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; }
.new-list { display: grid; gap: 8px; }
.new-list-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kind-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip[aria-checked="true"] { background: var(--surface-3); color: #fff; border-color: var(--surface-3); }
.list-row { grid-template-columns: 10px minmax(0, 1fr) auto; }
.kind-mark { width: 8px; height: 8px; border-radius: 2px; background: var(--dash); }
.kind-mark.k-grouping { background: var(--rating); border-radius: 50%; }
.kind-mark.k-thread { background: transparent; border: 1.5px dashed var(--pill-text); border-radius: 50%; }
.list-head { display: grid; gap: 8px; margin-bottom: 18px; }
.title-input, .desc-input {
background: transparent; border: 1px solid transparent; border-radius: var(--r-control); color: var(--text);
margin: 0 -8px; padding: 2px 8px; width: calc(100% + 16px); transition: border-color 0.15s, background 0.15s;
}
.title-input { font-size: 1.45rem; font-weight: 650; letter-spacing: -0.012em; line-height: 1.25; }
.desc-input { resize: vertical; color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }
.desc-input::placeholder { color: var(--text-faint); }
.title-input:hover, .desc-input:hover { border-color: var(--surface-3); }
.title-input:focus-visible, .desc-input:focus-visible { outline: none; border-color: var(--focus); background: #211d40; }
.list-head .det-controls .m { color: var(--text-muted); font-size: 0.82rem; }
.items { list-style: none; display: grid; gap: 2px; }
.item { display: grid; grid-template-columns: 22px 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 8px; margin: 0 -8px; border-radius: var(--r-control); }
.item:hover { background: var(--surface-2); }
.item .pos { color: var(--text-faint); font-size: 0.8rem; text-align: right; }
.item-main { min-width: 0; display: grid; }
.item-main .t { font-size: 0.88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-main .m { font-size: 0.76rem; color: var(--text-muted); }
.item-acts { display: flex; gap: 2px; opacity: 0.55; transition: opacity 0.15s; }
.item:hover .item-acts, .item-acts:focus-within { opacity: 1; }
@media (hover: none) { .item-acts { opacity: 1; } }
.icon-btn { width: 28px; height: 28px; padding: 0; justify-content: center; }
.list-empty { padding: 6px 0 4px; }
.add-work { margin-top: 18px; }
.add-work .results { list-style: none; margin-top: 10px; display: grid; gap: 2px; }
.add-work .results li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px 6px; border-radius: 6px; font-size: 0.84rem; }
.add-work .results li:hover { background: var(--surface-3); }
.add-work .results .m { color: var(--text-muted); font-size: 0.76rem; }
.add-work .search { max-width: 420px; }
.list-foot { margin-top: 28px; }