/* Classic theme. Minimal, calm, high contrast. Nothing moves: no hover effects, no timed effects. */
:root {
  --ink: #18212f; --muted: #556070; --line: #d5dbe4; --page: #f2f4f7; --card: #fff;
  --brand: #12305a; --blue: #1d5bbf; --blue-ink: #fff; --red: #b3261e; --green: #1e6b37;
}
* { box-sizing: border-box; }
html { font-family: "Segoe UI", system-ui, Arial, sans-serif; font-size: 17px; color: var(--ink); background: var(--page); }
body { margin: 0; line-height: 1.45; }

/* Header bar */
header { display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--brand); color: #fff; }
header .app { color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; margin-right: 8px; }
header .mode { background: #fff; color: var(--brand); font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 12px; }
header .spacer { flex: 1; }
header button { background: transparent; color: #fff; border: 1px solid #8fa3c0; min-height: 36px; padding: 5px 14px; }

/* Page */
main { max-width: 1040px; margin: 28px auto; padding: 0 24px; }
h1 { font-size: 1.55rem; margin: 0 0 18px; }
h2 { font-size: 1.15rem; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
a { color: var(--blue); }
p { margin: 8px 0; }

/* Cards: every main block sits on white */
.card, main > form.stack, main > table, main > fieldset, .step, .checklist, .note, .actions {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px; margin: 0 0 18px;
}

/* Controls */
button { font: inherit; font-size: .95rem; min-height: 40px; padding: 7px 18px; border-radius: 6px;
  border: 1px solid #aab4c2; background: #fff; color: var(--ink); cursor: pointer; }
button.primary { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); font-weight: 600; }
button.danger { color: var(--red); border-color: #d9a7a3; }
button:disabled { background: #e9ecf1; color: #8a93a0; border-color: var(--line); cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
input, textarea, select { font: inherit; font-size: 1rem; padding: 8px 10px; border: 1px solid #aab4c2; border-radius: 6px; background: #fff; color: var(--ink); }
textarea { width: 100%; resize: vertical; }
input:disabled, textarea:disabled { background: #f0f2f5; color: var(--muted); }

.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.stack input:not([type=radio]):not([type=file]):not([type=date]) { width: 100%; }
.stack label, .step label { font-weight: 600; margin-top: 12px; font-size: .95rem; }
.stack > button { margin-top: 16px; }
.inline { display: inline; margin: 0 6px 0 0; }
.row { display: flex; gap: 8px; align-items: center; }
.row input { flex: 1; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; }
legend { font-weight: 600; padding: 0 6px; }
.radio { font-weight: 400; margin-right: 18px; }

/* Login */
.login { max-width: 400px; margin: 70px auto 0; }
.login h1 { text-align: center; font-size: 1.35rem; }
.login form.stack > button { width: 100%; }

/* Mode choice and admin home */
.modes-title { text-align: center; margin-top: 50px; color: var(--muted); font-weight: 600; }
.modes { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 16px; }
.big { font-size: 1.35rem; font-weight: 600; padding: 34px 40px; min-width: 280px; border: 1px solid var(--line); background: var(--card); color: var(--brand); border-radius: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 10px 0; }
.tiles a { display: block; padding: 28px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  font-size: 1.2rem; font-weight: 600; color: var(--brand); text-decoration: none; }

/* Tables */
table { border-collapse: collapse; width: 100%; padding: 0; overflow: hidden; }
main > table { padding: 0; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #eef1f5; font-size: .85rem; color: var(--muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
td input { width: 100%; }
td form.inline button { min-height: 32px; padding: 3px 10px; font-size: .85rem; }

/* Status labels */
.status { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 10px; border: 1px solid; }
.status-Draft { color: #4a5565; border-color: #aab4c2; background: #f2f4f7; }
.status-Submitted { color: #7a4a00; border-color: #e0b360; background: #fff6e0; }
.status-Approved { color: var(--green); border-color: #8cc49e; background: #e9f6ee; }

/* Messages */
.error { color: var(--red); font-weight: 600; }
div.error { background: #fdeceb; border: 1px solid #efb5b0; border-radius: 8px; padding: 12px 18px; }
.ok { color: var(--green); font-weight: 600; }
.note { border-color: #efb5b0; background: #fdeceb; }
.meta { color: var(--muted); }
.pre { white-space: pre-wrap; }
.value { margin: 2px 0 8px; padding: 8px 12px; background: #f6f7f9; border: 1px solid var(--line); border-radius: 6px; width: 100%; }
.shot { max-width: 100%; border: 1px solid var(--line); border-radius: 4px; }
.step { margin-top: 14px; }
.saved { color: var(--green); font-weight: 600; min-height: 1.4em; }
.password { font-family: Consolas, monospace; font-size: 1.25rem; background: #f6f7f9; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; }
.password:empty { display: none; }
.checklist { list-style: none; }
.checklist li { margin: 6px 0; }
.checklist ul { list-style: disc; margin: 4px 0 8px; }
.small { font-size: .85rem; color: var(--muted); }
.version-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.version-actions input { width: 170px; }
td.file { word-break: break-all; font-size: .9rem; }
.warn { background: #fff6e0; border: 1px solid #e0b360; border-radius: 8px; padding: 10px 16px; margin: 8px 0 16px; }
