:root { color-scheme: light; --ink: #172f45; --muted: #4c6070; --line: #becbd2; --surface: #eef2f4; --paper: #fff; --teal: #006b68; --amber: #875600; --error: #a12424; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 1.35rem; font-weight: 700; }
h2 { font-size: 1.05rem; }
h3 { font-size: 1rem; margin: .8rem 0 .5rem; }
h4 { font-size: .9rem; margin: .4rem 0; }
button, input, select { font: inherit; }
button, select, input { border: 1px solid #879aa6; border-radius: 3px; background: white; color: var(--ink); min-height: 36px; }
button { padding: .4rem .65rem; cursor: pointer; font-weight: 600; }
button:hover:not(:disabled) { background: #e1eeee; border-color: var(--teal); }
button:disabled { opacity: .55; cursor: default; }
button.primary, button[aria-pressed="true"] { background: var(--teal); color: white; border-color: var(--teal); }
input, select { padding: .4rem .5rem; width: 100%; min-width: 0; }
input[type="file"] { padding: .2rem; font-size: .8rem; }
a { color: var(--teal); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #bc6500; outline-offset: 3px; }
input:focus-visible, select:focus-visible { outline-color: var(--teal); }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 3; padding: .7rem; background: white; }
.skip-link:focus { top: 8px; }
.rail { display: grid; grid-template-columns: 1fr auto minmax(210px, 260px); align-items: center; gap: 1.5rem; background: var(--ink); color: white; padding: 1rem 1.5rem; }
.rail p, .rail label { color: #d6e5ec; font-size: .8rem; }
.preset-tools { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: .25rem .5rem; align-items: end; }
.preset-tools label { grid-column: 1 / -1; }
.file-tools label { display: block; margin-bottom: .25rem; }
main { padding: 0 1.5rem 1.5rem; max-width: 1800px; margin: auto; }
.status-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 0; font-size: .85rem; }
.offline-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; }
.offline-controls button { font-size: .78rem; min-height: 32px; padding: .25rem .55rem; }
#offline-status { color: var(--muted); text-align: right; }
.errors:not(:empty) { padding: .7rem; margin: 0 0 .75rem; border: 2px solid var(--error); color: var(--error); background: #fff4f0; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.input-bay, .result-bay { border: 1px solid var(--line); background: var(--paper); min-width: 0; }
.bay-heading { padding: .75rem 1rem; border-bottom: 2px solid var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem; }
.bay-heading span { font-size: .8rem; color: var(--muted); }
#fields { padding: .75rem; max-height: 67vh; overflow: auto; scrollbar-gutter: stable; }
fieldset { min-width: 0; margin: 0 0 .85rem; padding: .6rem; border: 1px solid var(--line); }
legend { padding: 0 .3rem; font-weight: 650; font-size: .9rem; }
.field label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .2rem; }
.field-error { display: block; color: var(--error); font-size: .8rem; }
.field-error:empty { display: none; }
input[aria-invalid="true"] { border: 2px solid var(--error); background: #fff4f0; }
.pair, .rules { display: grid; gap: .65rem; }
.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rules { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hint { color: var(--muted); font-size: .8rem; margin-top: .45rem; }
.participant { border-left: 1px solid var(--teal); }
.participant-head { display: flex; align-items: end; justify-content: space-between; gap: .5rem; }
.participant-head .field { flex: 1; }
.participant-head button, .interval-row button { font-size: .75rem; }
.interval-group { border-top: 1px solid var(--line); margin-top: .7rem; padding-top: .3rem; }
.interval-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .3rem .5rem; margin-bottom: .65rem; }
.interval-row button { grid-column: 2; justify-self: end; min-height: 28px; padding: .15rem .4rem; }
.calculate-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; border-top: 1px solid var(--line); padding: .8rem; background: #e7f2f1; }
.calculate-bar span { font-size: .8rem; }
.result-bay { padding: 0 1rem 1rem; }
.result-bay .bay-heading { margin: 0 -1rem; }
.result-top { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding-top: .8rem; }
#summary { font-size: .85rem; }
.inspection { border-left: 1px solid var(--teal); background: #edf6f5; padding: .5rem .75rem; margin-top: .75rem; }
.inspection h3 { margin: 0 0 .3rem; font-size: .85rem; }
#inspection { font-size: .85rem; overflow-wrap: anywhere; min-height: 2.5em; }
.slot-list { padding-left: 1.8rem; margin: .4rem 0; }
.slot-list li { padding: .15rem 0; }
.slot-list button { width: 100%; text-align: left; font-size: .8rem; font-weight: 500; }
.pager { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: space-between; margin-top: .65rem; font-size: .75rem; }
.pager button { font-size: .75rem; min-height: 32px; }
.timeline { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .78rem; margin-top: .5rem; }
caption { text-align: left; font-weight: 600; padding: .35rem 0; }
th, td { border: 1px solid var(--line); padding: .45rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th { background: #e6edf1; }
td button { font-size: .75rem; min-height: 32px; }
tr.blocked td:nth-child(2) { border-left: 1px solid var(--amber); background: #fff7e7; }
tr.free td:nth-child(2) { border-left: 1px solid var(--teal); background: #edf6f5; }
.empty { padding: .75rem; border: 1px solid var(--amber); background: #fff7e7; }
footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.5rem; border-top: 1px solid var(--line); font-size: .8rem; }
@media (max-width: 1000px) { .rail { grid-template-columns: 1fr 1fr; } .rail > div:first-child { grid-column: 1 / -1; } .workspace { grid-template-columns: 1fr; } #fields { max-height: none; overflow: visible; } }
@media (max-width: 520px) { .rail { display: block; padding: 1rem; } .preset-tools, .file-tools { margin-top: .8rem; } main { padding: 0 .65rem 1rem; } .status-bar { display: block; } .offline-controls { justify-content: flex-start; margin-top: .35rem; } #offline-status { text-align: left; } .pair, .interval-row { grid-template-columns: 1fr; } .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } .interval-row button { grid-column: 1; } .participant-head { align-items: stretch; flex-direction: column; } .result-bay { padding: 0 .65rem .65rem; } .result-bay .bay-heading { margin: 0 -.65rem; } th, td { padding: .3rem; } .slot-list button { overflow-wrap: anywhere; } footer { padding: 1rem; } }
