:root { --fg:#111; --bg:#fff; --muted:#666; --line:#ddd; --soft:#f4f4f4; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color:var(--fg); background:var(--bg); }
* { box-sizing: border-box; }
body { margin:0; line-height:1.5; }
h1 { font-size:20px; margin:0; } h2 { font-size:18px; margin:0 0 12px; } h3 { font-size:15px; margin:20px 0 8px; }
.muted { color:var(--muted); font-weight:400; }
button { font:inherit; padding:8px 14px; border:1px solid var(--fg); background:var(--fg); color:var(--bg); border-radius:6px; cursor:pointer; }
button.ghost { background:transparent; color:var(--fg); }
button.small { padding:4px 10px; font-size:13px; }
button:disabled { opacity:.5; cursor:wait; }
button:focus-visible, input:focus-visible, .drop:focus-within { outline:2px solid var(--fg); outline-offset:2px; }
input { font:inherit; padding:7px 10px; border:1px solid var(--line); border-radius:6px; }
.login { max-width:320px; margin:15vh auto; padding:0 16px; }
.login form { display:grid; gap:10px; margin-top:24px; }
.error { color:#b00020; min-height:1.5em; margin:0; }
.top { display:flex; align-items:center; gap:12px; padding:16px 24px; border-bottom:1px solid var(--line); position:sticky; top:0; background:var(--bg); z-index:1; }
.top #logout { margin-left:auto; }
.pill { font-size:13px; padding:2px 10px; border-radius:99px; border:1px solid var(--line); }
.pill.on { background:var(--fg); color:var(--bg); border-color:var(--fg); }
section { max-width:1000px; margin:0 auto; padding:24px; border-bottom:1px solid var(--line); }
.row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.row label { display:flex; gap:6px; align-items:center; }
.info { display:grid; grid-template-columns:max-content 1fr; gap:4px 16px; margin:0 0 16px; }
.info dt { color:var(--muted); } .info dd { margin:0; word-break:break-all; }
.drop { display:flex; flex-direction:column; align-items:center; gap:4px; padding:28px; border:2px dashed var(--line); border-radius:10px; cursor:pointer; text-align:center; }
.drop.over { border-color:var(--fg); background:var(--soft); }
.grid { list-style:none; padding:0; margin:12px 0 0; display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:10px; }
.grid li { position:relative; aspect-ratio:1; background:var(--soft); border-radius:8px; overflow:hidden; }
.grid img { width:100%; height:100%; object-fit:cover; display:block; }
.grid button { position:absolute; top:6px; right:6px; padding:2px 8px; font-size:13px; background:rgba(255,255,255,.92); color:var(--fg); }
.list { width:100%; border-collapse:collapse; font-size:14px; margin-top:12px; }
.list th, .list td { text-align:left; padding:6px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
.list th { color:var(--muted); font-weight:500; }
.list td:last-child { text-align:right; white-space:nowrap; }
.check { font-size:14px; }
@media (max-width:600px) { section { padding:16px; } .top { padding:12px 16px; } }
.list a.small { font-size:13px; color:var(--fg); margin-right:6px; }
