:root { color-scheme: light; --ink: #162d36; --muted: #49616a; --line: #c9d5d9; --paper: #fff; --canvas: #f3f6f6; --accent: #006957; --accent-hover: #004d40; --danger: #9b2828; --danger-bg: #fff1ef; --success-bg: #e6f4ed; --focus: #9e5100; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 1rem/1.55 "Segoe UI", sans-serif; }
::selection { background: #c2e6da; color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: var(--accent); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { color: var(--accent-hover); }
.topbar { display: flex; align-items: center; gap: 1.25rem; padding: 1rem max(1.25rem, calc((100vw - 1240px) / 2)); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { font-size: 1.25rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.stage { color: var(--muted); font-size: .875rem; }
#logout { margin-left: auto; }
main { max-width: 1240px; margin: 0 auto; padding: 2.25rem 1.25rem 3rem; }
.intro { margin-bottom: 1.5rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .75rem; text-wrap: balance; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 1rem; }
p { margin: .5rem 0 1rem; max-width: 74ch; }
.hint, footer { color: var(--muted); font-size: .875rem; }
#status { min-height: 1.5em; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; border-block: 1px solid var(--line); margin-bottom: 2rem; }
.toolbar > div { width: min(100%, 26rem); }
.toolbar p { margin-bottom: 0; }
.work-layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 3rem; }
.guide { padding-top: 1.5rem; }
.guide p { font-size: .9375rem; }
.guide details { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.task { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.75rem; }
.login { max-width: 28rem; background: var(--paper); padding: 1.75rem; border: 1px solid var(--line); border-radius: 12px; }
.history { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); min-width: 0; }
.history .table-scroll { background: var(--paper); }
.history small { display: block; color: var(--muted); margin-top: .35rem; }
.history td:last-child { min-width: 12rem; }
label { display: block; font-weight: 600; margin: 1rem 0 .375rem; }
input, select, button { font: inherit; }
input, select { width: 100%; min-height: 44px; border: 1px solid #8ca1aa; border-radius: 6px; padding: .55rem .7rem; background: var(--paper); color: var(--ink); caret-color: var(--accent); }
input[type=file] { padding: .6rem; }
input[type=file]::file-selector-button { font: inherit; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 4px; background: var(--canvas); color: var(--ink); margin-right: .75rem; }
input:disabled, select:disabled { background: var(--canvas); color: var(--muted); }
button { min-height: 44px; border: 1px solid transparent; border-radius: 6px; padding: .6rem 1rem; font-weight: 600; cursor: pointer; background: var(--accent); color: #fff; }
button:hover { background: var(--accent-hover); }
button:active { transform: translateY(1px); }
button.secondary, button.quiet { background: var(--paper); color: var(--accent); border-color: var(--line); }
button.secondary:hover, button.quiet:hover { background: #edf5f1; }
button:disabled { opacity: 1; color: #52636b; background: #e3e9eb; border-color: #d3dde0; cursor: not-allowed; transform: none; }
.login button { margin-top: 1.5rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; }
.check input { width: 1.15rem; min-height: 1.15rem; flex-shrink: 0; margin-top: .2rem; accent-color: var(--accent); }
details { padding-block: 1rem; }
summary { cursor: pointer; font-weight: 600; padding-block: .35rem; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.notice { border: 1px solid var(--line); padding: 1rem; border-radius: 6px; overflow-wrap: anywhere; background: var(--canvas); }
.error { color: var(--danger); border-color: #dca09a; background: var(--danger-bg); }
.success { background: var(--success-bg); color: #14533d; border-color: #98c7b0; }
#preview { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 2rem; }
dl { font-size: .875rem; display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .35rem 1rem; }
dt { color: var(--muted); } dd { margin: 0; overflow-wrap: anywhere; }
.table-scroll { overflow: auto; max-height: 36rem; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .875rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: .75rem; background: var(--canvas); font-weight: 600; }
th { text-align: left; background: var(--canvas); white-space: nowrap; }
td, th { padding: .65rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td { min-width: 6rem; max-width: 28rem; overflow-wrap: anywhere; }
tr.invalid td { background: var(--danger-bg); }
td.errors { min-width: 15rem; color: var(--danger); }
td.errors p { margin: 0 0 .35rem; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin: 1rem 0 1.5rem; }
#commit-form { margin-bottom: 1rem; }
footer { max-width: 1240px; margin: auto; padding: 1.25rem; border-top: 1px solid var(--line); }
.skip { position: absolute; top: -5rem; left: 1rem; background: var(--paper); padding: .75rem; z-index: 1; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
@media (max-width: 800px) { .work-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .guide { padding: 0; } .guide details { margin-top: .75rem; } .task { padding: 1.25rem; } main { padding-top: 1.5rem; } }
@media (max-width: 480px) { .topbar { flex-wrap: wrap; gap: .5rem 1rem; } .stage { order: 3; width: 100%; } h1 { font-size: 1.625rem; } .toolbar { flex-direction: column; align-items: stretch; } .toolbar > div { width: 100%; } .columns { grid-template-columns: 1fr; } .actions { flex-direction: column; } .pagination { flex-wrap: wrap; } dl { grid-template-columns: 1fr; gap: .2rem; } dd { margin-bottom: .5rem; } }
