/* The portal, in Plinng UI's roles (catalog/brand/design/DESIGN.md): neutral ground, lime for the one primary action,
   forest for focus. No outside font or stylesheet: the CSP allows only this host. */
:root {
  --background: #f4f2ee; --foreground: #151513; --card: #ffffff; --muted: #ebe8e2; --muted-foreground: #5f5b54;
  --primary: #c6f23a; --primary-hover: #b2dc1e; --primary-foreground: #151513; --border: #dedad2; --input: #7d786f;
  --ring: #17362a; --destructive: #b42a1a; --destructive-muted: #fbe4df; --success: #4a6400; --success-muted: #f3fbd9;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground);
       font: 16px/1.5 "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; }
.bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border);
       background: var(--card); }
.brand { font-weight: 700; }
.bar nav a { color: var(--foreground); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.bar nav a[aria-current] { background: var(--muted); }
.out { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.who { color: var(--muted-foreground); }
main { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; display: grid; gap: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px;
        box-shadow: 0 1px 2px rgba(21, 21, 19, .05); }
.narrow { max-width: 420px; width: 100%; margin: 0 auto; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 20px; margin: 0 0 12px; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 4px; font-size: 14px; font-weight: 500; }
input, select, textarea { font: inherit; font-size: 16px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--input);
        border-radius: 10px; background: var(--card); color: var(--foreground); width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px rgba(23, 54, 42, .2); }
button { font: inherit; font-size: 14px; font-weight: 500; min-height: 40px; padding: 8px 16px; border-radius: 10px;
         border: 1px solid var(--border); background: var(--card); color: var(--foreground); cursor: pointer; }
button:hover { background: var(--muted); }
button:active { transform: scale(.98); }
button:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
button.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); min-height: 48px; }
button.primary:hover { background: var(--primary-hover); }
button.link { border: 0; background: none; padding: 0; min-height: 0; text-decoration: underline; }
.help { color: var(--muted-foreground); font-size: 14px; font-weight: 400; margin: 0; }
.notice { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-size: 14px; }
.notice.error { background: var(--destructive-muted); color: var(--destructive); }
.notice.ok { background: var(--success-muted); color: var(--success); }
.result { display: grid; gap: 12px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.copyrow { display: flex; gap: 8px; }
.copyrow input { flex: 1; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 14px; }
dt { color: var(--muted-foreground); }
dd { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted-foreground); font-weight: 500; }
@media (max-width: 520px) { .copyrow { flex-direction: column; } th:nth-child(3), td:nth-child(3) { display: none; } }
