:root { font-family: "Segoe UI", system-ui, sans-serif; color: #193238; background: #eef4f3; font-size: 16px; color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
header { background: #192e31; color: white; }
.bar { min-height: 4.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: .75rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; font-size: 1.35rem; font-weight: 700; margin-right: auto; }
.mark { display: grid; place-items: center; background: #00695f; color: white; border-radius: .55rem; width: 2.2rem; height: 2.2rem; font-size: .9rem; }
main { padding-block: 2rem 4rem; }
h1 { margin: 0 0 1.25rem; font-size: clamp(1.65rem, 4vw, 2.35rem); letter-spacing: -.035em; }
h2 { margin: 0 0 1.1rem; font-size: 1.2rem; }
p { margin: .3rem 0; }
.card { background: white; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid #d0e0de; border-radius: .8rem; min-width: 0; }
.narrow { max-width: 28rem; margin: 2rem auto; }
.columns, .fields, .metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.columns { align-items: start; }
.metrics { margin-bottom: 1rem; }
.metric { padding: 1rem; border-radius: .65rem; background: #dcebe8; }
.metric strong { display: block; font-size: 1.3rem; }
form { display: grid; gap: .95rem; }
label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
input, select, button, .download { font: inherit; }
input:not([type=checkbox]), select { width: 100%; padding: .6rem .7rem; min-height: 2.6rem; border: 1px solid #acbfbd; border-radius: .4rem; background: white; color: inherit; }
button, .download { border: 1px solid #00695f; border-radius: .45rem; background: #00695f; color: white; padding: .55rem .85rem; font-weight: 600; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .5; cursor: default; }
.secondary { color: #005e55; background: white; }
.danger { color: #8e2727; border-color: #d9aaaa; background: white; }
:focus-visible { outline: 3px solid #36958d; outline-offset: 2px; }
.profile-actions, .checks, .row-actions { display: flex; gap: .55rem; align-items: end; flex-wrap: wrap; }
.checks label { display: flex; align-items: center; }
fieldset { min-width: 0; margin: 0; padding: .8rem; border: 1px solid #d0e0de; border-radius: .45rem; display: grid; gap: .75rem; }
legend { font-weight: 600; }
.order-field { display: grid; gap: .35rem; }
.order-field label { display: flex; align-items: center; }
.sheet-preview { margin: 0; color: #4d6568; font-size: .9rem; }
.sheet-preview canvas { display: block; width: 100%; height: auto; background: #eef4f3; border-radius: .45rem; cursor: crosshair; }
.sheet-preview figcaption { margin-top: .35rem; }
.profile-actions label { flex: 1 1 10rem; }
.history { margin-top: 1rem; }
.list { display: grid; gap: .75rem; overflow-wrap: anywhere; }
.entry { border-top: 1px solid #d0e0de; padding-top: .7rem; }
.job-choice { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .5rem; cursor: pointer; }
.muted, .details { color: #4d6568; }
.details { font-size: .9rem; }
#status { background: #dcebe8; border-radius: .5rem; padding: .8rem; margin-bottom: 1rem; }
#status.error { background: #f6e0df; color: #842525; }
@media (max-width: 46rem) { .columns { grid-template-columns: 1fr; } }
.print-settings, .order-settings { display: grid; gap: .85rem; }
.orders { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
@media (max-width: 46rem) { .orders { position: static; max-height: none; } }

#job-form > details > summary { cursor: pointer; }
#job-form > details[open] > summary { margin-bottom: .65rem; }
