:root {
  color-scheme: light;
  --ink: #132c29;
  --muted: #52645f;
  --rail: #102925;
  --rail-text: #e2f0e9;
  --line: #d6e1dc;
  --paper: #f2f6f3;
  --white: #fff;
  --accent: #0b624e;
  --focus: #19816c;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, select { font: inherit; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
button, .button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: 1.2rem; }

.inside { display: grid; grid-template-columns: minmax(15.5rem, 17rem) minmax(0, 1fr); min-height: 100dvh; }
.rail { background: var(--rail); color: var(--rail-text); display: flex; flex-direction: column; padding: 1.8rem 1.25rem; gap: 2.5rem; }
.brand { color: inherit; display: flex; align-items: center; gap: .7rem; font-weight: 700; text-decoration: none; letter-spacing: -.025em; font-size: 1.09rem; }
.mark { display: inline-grid; place-items: center; flex: 0 0 2rem; height: 2rem; background: #a9ead0; border-radius: .58rem; }
.mark::before { content: ""; width: .97rem; height: .97rem; background: var(--rail); border-radius: .15rem;
  clip-path: polygon(0 0, 44% 0, 44% 44%, 100% 44%, 100% 100%, 56% 100%, 56% 56%, 0 56%); }
.modules, .account-nav { display: grid; gap: .25rem; }
.nav-label { color: #a9c4b9; font-size: .82rem; font-weight: 600; margin: 0 .7rem .4rem; }
.rail nav a { min-height: 2.6rem; padding: .6rem .7rem; display: flex; gap: .6rem; align-items: center; border-radius: .55rem; color: inherit; text-decoration: none; font-size: .95rem; }
.rail nav a:hover { background: #203d36; }
.rail nav a[aria-current] { background: #285348; color: #fff; font-weight: 650; }
.rail a:focus-visible { outline-color: #a9ead0; }
.module-icon { width: .99rem; height: .8rem; display: inline-block; flex-shrink: 0; border: 1.5px solid #a9ead0; border-radius: .16rem; }
.icon-wawi { box-shadow: inset 0 .2rem #a9ead0; }
.icon-dhl { border-left-width: .26rem; }
.icon-rounding { height: .32rem; border-width: 1px; box-shadow: 0 .31rem #a9ead0, 0 -.31rem #a9ead0; }
.account-nav { margin-top: auto; border-top: 1px solid #3b5750; padding-top: .8rem; }
.workspace { min-width: 0; }
.topbar { min-height: 4rem; display: flex; align-items: center; justify-content: flex-end; gap: .85rem; padding: .65rem clamp(1rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); background: var(--white); }
.identity { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.content { max-width: 94rem; margin-inline: auto; padding: clamp(1.1rem, 4vw, 3.5rem); }
.page-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.55rem; border: 1px solid #baccc3; border-radius: .55rem; background: var(--white); color: var(--ink); padding: .52rem .85rem; text-decoration: none; font-weight: 650; line-height: 1.2; }
.button:hover, button:hover { background: #e9f0ec; }
.button.primary, button.primary { color: var(--white); background: var(--accent); border-color: var(--accent); }
.primary:hover { filter: brightness(.93); }
.quiet { border-color: transparent; color: var(--accent); }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: 1.4rem; }
.status-card, .case-card, .form-card { border-radius: .9rem; border: 1px solid var(--line); background: var(--white); }
.status-card { padding: 1.12rem 1.25rem; }
.caption { color: var(--muted); font-weight: 600; font-size: .91rem; margin-bottom: .55rem; }
.status { border-radius: .48rem; padding: .28rem .52rem; display: inline-flex; align-items: center; gap: .45rem; background: #e9efed; color: #364f48; font-weight: 650; font-size: .94rem; }
.status > span { width: .49rem; height: .49rem; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-ok, .status-linked { background: #dcf3e9; color: #145941; }
.status-stale { background: #fff3d6; color: #6a4802; }
.status-unavailable { background: #fae5e1; color: #842b20; }
time { font-weight: 650; }
.unknown, .muted { color: var(--muted); }
.monitor { display: grid; justify-items: start; gap: .55rem; margin-bottom: 1.4rem; }
.case-card { overflow: hidden; }
.case-heading { display: flex; align-items: center; gap: .65rem; padding: 1.05rem 1.22rem; border-bottom: 1px solid var(--line); }
.count { min-width: 1.6rem; text-align: center; background: #e9f2ec; border-radius: .45rem; padding: .15rem .4rem; font-size: .85rem; font-weight: 650; }
.empty { color: var(--muted); padding: 1.5rem 1.22rem; line-height: 1.55; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: .82rem 1.22rem; overflow-wrap: anywhere; }
th { font-size: .9rem; background: #edf4ef; color: #35534b; }
td { font-size: .96rem; border-top: 1px solid var(--line); line-height: 1.48; }
.identifier { font-weight: 700; }
.copy { display: block; min-height: 2.1rem; margin-top: .35rem; padding: .25rem .55rem; font-size: .88rem; }
.cell-label { display: none; }
.feedback { padding: .75rem .95rem; margin-bottom: 1rem; background: #e9f2ec; border: 1px solid var(--line); border-radius: .55rem; }
.feedback.bad { color: #79271e; background: #fcebe8; border-color: #f1c9c2; }
.feedback.good { color: #145941; background: #e1f4eb; border-color: #c6e8da; }
.form-card { max-width: 43rem; padding: clamp(1.1rem, 3vw, 1.55rem); }
.form-card h2 { margin-bottom: 1rem; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.stack { display: grid; gap: .95rem; }
.stack > .primary { justify-self: start; }
label { display: grid; gap: .35rem; font-weight: 650; font-size: .94rem; }
input:not([type="checkbox"], [type="hidden"]), select {
  width: 100%; border: 1px solid #baccc3; border-radius: .5rem; padding: .65rem .7rem; color: var(--ink); background: var(--white); font-weight: 400; font-size: 1rem;
}
select { appearance: none; padding-right: 1.9rem; background:
  linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 1rem) 53% / .34rem .34rem no-repeat,
  linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - .66rem) 53% / .34rem .34rem no-repeat var(--white); }
.hint { color: var(--muted); font-size: .86rem; font-weight: 400; line-height: 1.4; }
fieldset { margin: 0; border: 1px solid var(--line); border-radius: .55rem; padding: .45rem .65rem .65rem; min-width: 0; }
legend { padding: 0 .2rem; font-size: .91rem; font-weight: 650; }
.checks { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.checks label, .check { display: flex; align-items: center; min-height: 2rem; padding-inline: .15rem; }
input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
details, .account-row { border-top: 1px solid var(--line); }
.account-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; padding: .85rem 0; }
.account-row span { color: var(--muted); }
summary { border-radius: .35rem; padding: .85rem 0; cursor: pointer; overflow-wrap: anywhere; }
.edit-form { padding: .15rem 0 .85rem; }
.outside { background: radial-gradient(ellipse at 22% 4%, #254e43 0, transparent 52%), var(--rail); }
.public { display: grid; place-items: center; min-height: 100dvh; padding: 1rem; }
.login { width: min(100%, 27rem); padding: clamp(1.25rem, 6vw, 2.3rem); border-radius: 1.2rem; background: #fbfdfc; box-shadow: 0 1.25rem 3.5rem #061a1555; }
.login .brand { margin-bottom: 1.35rem; }
.login h1 { margin-bottom: 1.4rem; }
.login .primary { justify-self: stretch; margin-top: .15rem; }
.languages { display: flex; gap: .85rem; margin-top: 1.35rem; font-size: .9rem; }
.languages [aria-current] { font-weight: 700; text-decoration: none; }

@media (max-width: 72rem) {
  .inside { grid-template-columns: 14.2rem minmax(0, 1fr); }
  .content { padding: clamp(1rem, 3vw, 2rem); }
  th, td { padding-inline: .7rem; }
}
@media (max-width: 55rem) {
  .inside { display: block; }
  .rail { padding: .85rem 1rem .5rem; gap: .6rem; }
  .nav-label { display: none; }
  .modules, .account-nav { display: flex; flex-wrap: wrap; }
  .account-nav { margin: 0; padding-top: .28rem; }
  .topbar { min-height: 2.9rem; padding-block: .22rem; }
}
@media (max-width: 40rem) {
  .status-grid, .admin-grid { grid-template-columns: 1fr; }
  .status-card { padding: .8rem 1rem; }
  .case-heading, .empty { padding-inline: 1rem; }
  table, tbody, tr, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  tr { padding: .35rem 1rem; }
  tr + tr { border-top: 1px solid var(--line); }
  td { border: 0; padding: .48rem 0; }
  .cell-label { display: block; font-weight: 650; font-size: .88rem; color: var(--muted); margin-bottom: .1rem; }
}
