:root { --ink: #111418; --text: #1f2328; --muted: #646b73; --line: #e3e5e8; --floor: #f4f5f7; --panel: #fff; --ok: #1f7a4a; --ok-t: #e3f4ea; --warn: #8a5a00; --warn-t: #fdf0d5; --info: #1d5fa8; --info-t: #e4eefb; --err: #b42318; --r: 10px; --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
@media (prefers-color-scheme: dark) { :root { --ink: #f2f3f5; --text: #e8eaed; --muted: #a0a6ad; --line: #30353b; --floor: #15181b; --panel: #1d2125; --ok-t: #16342a; --warn-t: #3a2d10; --info-t: #172a40; } }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 var(--font); color: var(--text); background: var(--floor); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
h1 { font-size: 22px; margin: 0 0 10px; } h2 { font-size: 16px; margin: 0 0 10px; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { font-size: 15px; } .who { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px; }
.foot { text-align: center; font-size: 12px; color: var(--muted); padding: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.narrow { max-width: 440px; margin: 40px auto; }
.stack { display: flex; flex-direction: column; gap: 10px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
input, textarea { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; width: 100%; }
.btn { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 8px; padding: 8px 12px; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.btn.ok { border-color: var(--ok); color: var(--ok); } .btn.small { padding: 3px 8px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; }
.muted { color: var(--muted); } .small { font-size: 12px; } .pad { padding: 16px; } .err { color: var(--err); } .right { text-align: right; }
.note { background: var(--info-t); border-radius: 8px; padding: 10px 12px; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--floor); color: var(--muted); }
.pill.ok { background: var(--ok-t); color: var(--ok); } .pill.warn { background: var(--warn-t); color: var(--warn); } .pill.info { background: var(--info-t); color: var(--info); }
.list { display: flex; flex-direction: column; } .row { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-top: 1px solid var(--line); text-decoration: none; }
.row .grow { display: flex; flex-direction: column; }
.grow { flex: 1 1 auto; min-width: 0; } .hrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.thumb { height: 180px; background: var(--floor); border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img, .thumb video { max-width: 100%; max-height: 180px; object-fit: contain; }
.ph { color: var(--muted); font-size: 13px; }
.count { background: var(--err); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.viewer { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.stagebox { flex: 999 1 480px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.frame { position: relative; display: block; width: fit-content; max-width: 100%; margin: 0 auto; cursor: crosshair; }
.frame img, .frame video { display: block; max-width: 100%; max-height: 70vh; }
.side { flex: 1 1 300px; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cmt { border-top: 1px solid var(--line); padding-top: 10px; } .cmt p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply { margin: 8px 0 0 14px; padding-left: 10px; border-left: 2px solid var(--line); }
.pin { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; background: #ff3b30; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); pointer-events: auto; }
.pin.draft { background: var(--ink); color: var(--panel); }
.pin.static { position: static; transform: none; width: 20px; height: 20px; font-size: 11px; }
@media (max-width: 640px) { main { padding: 12px; } .side { max-width: none; } .thumb { height: 140px; } }
.pw { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; } .pw summary { cursor: pointer; color: var(--muted); font-size: 13px; }
