/* LWP Best Work 2026 — single stylesheet, no build step. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #18202e;
  --muted: #5f6b7d;
  --line: #dfe3ea;
  --brand: #23306b;
  --brand-ink: #ffffff;
  --brand-soft: #e8ebf7;
  --ok: #17794a;
  --ok-soft: #e3f4ea;
  --warn: #9a5b00;
  --warn-soft: #fdf1dc;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
img, video { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

/* Clickable things show the pointing hand; disabled things say "not allowed". */
a[href], button, [role="button"], summary, select, label:has(input[type="checkbox"]), label:has(input[type="radio"]),
input[type="checkbox"], input[type="radio"], input[type="file"], input[type="submit"] {
  cursor: pointer;
}
button:disabled, [aria-disabled="true"], select:disabled, input:disabled {
  cursor: not-allowed;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }

.topbar { background: var(--brand); color: var(--brand-ink); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; color: inherit; text-decoration: none; margin-right: auto; }
.brand small { font-weight: 400; opacity: .8; }
.topbar a, .topbar button.linklike { color: var(--brand-ink); }
.linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; }

main { padding: 24px 0 48px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.stack > * + * { margin-top: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

label { display: block; font-weight: 600; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: .875rem; font-weight: 400; }
input[type="text"], input[type="url"], input[type="search"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff; color: var(--ink);
}
input[type="file"] { width: 100%; padding: 8px 0; }
textarea { min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(35, 48, 107, .35); outline-offset: 1px;
}
.field + .field { margin-top: 14px; }
.error { color: var(--bad); font-size: .875rem; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 8px; border: 1px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600;
  text-decoration: none; min-height: 44px;
}
.btn:disabled { opacity: .55; }
.btn-ghost { background: #fff; color: var(--brand); }
.btn-danger { background: #fff; color: var(--bad); border-color: var(--bad); }
.btn-kc { background: #0a84ff; border-color: #0a84ff; font-size: 1.05rem; padding: 12px 22px; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .875rem; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.alert { border-radius: 8px; padding: 12px 14px; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-bad { background: var(--bad-soft); color: var(--bad); }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-none { background: #eef0f4; color: var(--muted); }

.slot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.preview { background: #0f1420; border-radius: 8px; overflow: hidden; display: flex; justify-content: center; }
.preview img { max-height: 360px; object-fit: contain; display: block; }
.preview video { width: 100%; max-height: 420px; display: block; }
.filebox { background: var(--brand-soft); border-radius: 8px; padding: 18px; text-align: center; color: var(--brand); font-weight: 600; word-break: break-all; }
.meta { color: var(--muted); font-size: .875rem; }

.progress { height: 10px; background: #e7eaf0; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
[hidden] { display: none !important; }

details.guide summary { font-weight: 600; }
details.guide ul { margin: 8px 0 0; padding-left: 20px; }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: .85rem; }

.filters { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .filters { grid-template-columns: 2fr repeat(4, 1fr) auto; align-items: end; } }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .925rem; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #fafbfc; }

.pagination { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; }

.login-hero { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-hero .card { max-width: 440px; width: 100%; text-align: center; }

.nowrap { white-space: nowrap; }
@media (max-width: 600px) {
  .topbar .wrap { gap: 4px 14px; padding-top: 8px; padding-bottom: 8px; font-size: .9rem; }
  .brand { width: 100%; }
}

@media (max-width: 819px) { form.card .filters { grid-template-columns: 1fr !important; } }
