/* youuu — monochrome dark, matching original Vault theme (near-black, white primary) */
:root {
  --bg: hsl(0, 0%, 5%); --fg: hsl(0, 0%, 95%); --card: hsl(0, 0%, 8%);
  --border: hsl(0, 0%, 15%); --mut: hsl(0, 0%, 60%); --hover: hsl(0, 0%, 12%);
  --danger: hsl(0, 62.8%, 45%);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
#app { display: flex; min-height: 100vh; }
#side { width: 240px; flex-shrink: 0; border-right: 1px solid var(--border); background: var(--card); opacity: .95; padding: 24px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
#side .brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; padding: 0 12px 18px; }
#side nav a, #side .navbtn { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; font-size: 14px; color: var(--mut); background: none; border: none; width: 100%; text-align: left; cursor: pointer; }
#side nav a:hover, #side .navbtn:hover { background: var(--hover); color: var(--fg); }
#side nav a.active { background: rgba(255,255,255,.1); color: var(--fg); font-weight: 500; }
#fetchState { font-size: 12px; color: var(--mut); padding: 8px 12px; }
#jobPanel .job { margin: 4px 12px 12px; border: 1px solid var(--border); background: var(--card); border-radius: 8px; overflow: hidden; }
#jobPanel .jobhead { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; }
#jobPanel .jobhead .x { margin-left: auto; background: none; border: none; color: var(--mut); cursor: pointer; font-size: 12px; }
#jobPanel .pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3b82f6; animation: jpulse 1s infinite; }
@keyframes jpulse { 50% { opacity: .3; } }
#jobPanel .jobrow { display: flex; align-items: center; gap: 8px; padding: 6px 12px; }
#jobPanel .jobtxt { min-width: 0; flex: 1; }
#jobPanel .jobtxt p { margin: 0; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
#jobPanel .jobtxt p.mut { color: var(--mut); font-size: 10px; font-weight: 400; }
#jobPanel .jobtxt p.err { color: var(--danger); font-size: 10px; font-weight: 400; }
#jobPanel .jobtxt p.ok { color: #22c55e; font-size: 10px; font-weight: 400; }
#jobPanel .jobsum { display: flex; gap: 12px; padding: 6px 12px; border-top: 1px solid var(--border); background: rgba(255,255,255,.03); font-size: 10px; font-weight: 500; }
#jobPanel .jobsum .mut { color: var(--mut); } #jobPanel .jobsum .err { color: var(--danger); } #jobPanel .jobsum .ok { color: #22c55e; }
#view { flex: 1; padding: 24px; max-width: 1400px; }
#view h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
#view .sub { font-size: 13px; color: var(--mut); margin-top: 2px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { border: 1px solid var(--border); background: var(--card); border-radius: 8px; overflow: hidden; transition: border-color .2s; }
.card:hover { border-color: hsl(0, 0%, 25%); }
.card .thumb { position: relative; aspect-ratio: 16/9; background: var(--hover); overflow: hidden; display: block; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .badge { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; font-family: Menlo, monospace; }
.card .playov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0); opacity: 0; transition: all .2s; }
.card:hover .playov { background: rgba(0,0,0,.2); opacity: 1; }
.card .playov span { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); color: #000; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.card .body { padding: 12px; }
.card .title { font-size: 14px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.card .meta { font-size: 12px; color: var(--mut); line-height: 1.7; }
.card .del { padding: 6px; border-radius: 6px; color: var(--mut); background: none; border: none; cursor: pointer; }
.card .del:hover { color: var(--danger); background: rgba(255,0,0,.08); }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 96px 0; text-align: center; gap: 16px; }
.empty .ico { width: 64px; height: 64px; border-radius: 16px; background: var(--hover); display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--mut); }
.loginwrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.loginwrap .box { width: 100%; max-width: 384px; display: flex; flex-direction: column; gap: 32px; }
.loginwrap .logo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.loginwrap .logo .mark { width: 64px; height: 64px; background: rgba(255,255,255,.1); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; }
button.primary, .btn { background: var(--fg); color: #000; border: none; border-radius: 6px; padding: 0 16px; height: 48px; font-size: 16px; font-weight: 500; cursor: pointer; width: 100%; }
button.ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
button.ghost:hover { background: var(--hover); }
.ic { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
.ic-sm { width: 14px; height: 14px; flex-shrink: 0; vertical-align: -2px; }
input { background: var(--card); border: 1px solid var(--border); color: var(--fg); border-radius: 6px; height: 48px; padding: 0 12px; font-size: 18px; text-align: center; letter-spacing: .2em; width: 100%; }
#playerWrap { position: fixed; inset: 0; background: rgba(0,0,0,.96); z-index: 10; display: flex; flex-direction: column; padding: 12px; }
#player { width: 100%; max-height: 70vh; background: #000; }
#playerHead { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
#playerMeta { color: var(--mut); font-size: 13px; margin-top: 8px; }
form.inline { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
form.inline input { height: 36px; font-size: 14px; text-align: left; letter-spacing: normal; width: auto; flex: 1; min-width: 180px; }
form.inline button { height: 36px; width: auto; padding: 0 14px; font-size: 14px; }
