:root {
  color-scheme: light;
  --ink: #152925;
  --muted: #51655d;
  --green: #164d3d;
  --dark: #102e29;
  --line: #d8dfd7;
  --mint: #dff0ce;
  --paper: #f6f7f2;
  --white: #fff;
  font-family: "Inter", "Roboto", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
a { color: var(--green); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #3880b1; outline-offset: 3px; }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3, legend { line-height: 1.19; text-wrap: pretty; }
h1 { font-size: clamp(2.45rem, 4.4vw, 4rem); letter-spacing: -.063em; font-weight: 680; }
h2, legend { font-size: 1.45rem; letter-spacing: -.038em; font-weight: 670; }
h3 { font-size: 1.12rem; letter-spacing: -.022em; }
.skip { position: absolute; left: .75rem; top: -10rem; z-index: 5; background: white; padding: .6rem; }
.skip:focus { top: .5rem; }
.workspace { display: grid; grid-template-columns: 218px minmax(0,1fr); min-height: 100vh; }
.rail { display: flex; flex-direction: column; align-self: start; height: 100dvh; min-height: 32rem; position: sticky; top: 0; background: var(--dark); color: #ebf2e9; padding: 2rem 1.15rem 1.4rem; }
.brand { color: #f2f8ec; font-size: 2.5rem; line-height: 1; font-weight: 820; letter-spacing: -.09em; font-style: italic; text-decoration: none; }
.brand span { letter-spacing: -.08em; }
.rail .brand, .rail-product { margin-left: .6rem; }
.rail-product { margin-top: .7rem; font-size: .8rem; font-weight: 560; color: #c1d2c8; }
.rail-product span { color: #a9bbad; }
.rail nav { display: grid; gap: .3rem; margin-top: 3.2rem; }
.rail nav a { display: flex; align-items: center; gap: .8rem; min-height: 2.8rem; padding: .55rem .7rem; border-radius: .48rem; font-size: .92rem; font-weight: 550; color: #e1eae1; text-decoration: none; }
.rail nav a:hover, .rail nav a:focus-visible { background: #21433a; }
.rail nav a[aria-current] { background: var(--mint); color: var(--dark); }
.glyph { width: .94rem; height: .94rem; display: inline-block; position: relative; flex: none; border: 1.5px solid currentColor; border-radius: 2px; }
.glyph.grid { background: linear-gradient(90deg,transparent 44%,currentColor 45% 53%,transparent 54%), linear-gradient(0deg,transparent 44%,currentColor 45% 53%,transparent 54%); }
.glyph.ring { border-radius: 50%; }
.glyph.ring:after { content: ""; position: absolute; width: 2px; top: .14rem; bottom: .14rem; left: 45%; background: currentColor; }
.glyph.check:after { content: ""; position: absolute; width: .4rem; height: .2rem; top: .23rem; left: .16rem; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.glyph.paper:after { content: ""; position: absolute; inset: 3px 2px; border-block: 1px solid; }
.account { margin-top: auto; border-top: 1px solid #365049; padding: 1rem .6rem 0; display: grid; gap: .65rem; }
.account a, .exit { color: #d2ded3; font-size: .86rem; }
.identity { display: flex; gap: .6rem; align-items: center; overflow-wrap: anywhere; font-size: .87rem; }
.avatar { display: grid; place-items: center; border: 1px solid #597267; border-radius: 50%; width: 1.85rem; height: 1.85rem; flex: none; }
.exit { cursor: pointer; background: transparent; padding: .2rem 0; border: 0; text-decoration: underline; text-underline-offset: .22em; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.15rem; padding: .7rem clamp(1rem,4vw,4.2rem); border-bottom: 1px solid var(--line); font-size: .87rem; color: var(--muted); }
.sep { color: #77867a; margin-inline: .3rem; }
.restricted, .meta, .card-meta, .actions, .card-foot, .section-top { display: flex; gap: .65rem; align-items: center; }
.restricted { font-size: .8rem; color: #385344; white-space: nowrap; }
.restricted i { width: .48rem; height: .48rem; background: #638259; border-radius: 50%; }
.content-wrap { min-width: 0; }
.content-wrap main { max-width: 87rem; margin-inline: auto; padding: clamp(1.6rem,4vw,4.2rem); }
.pagehead { margin-bottom: 2rem; }
.pagehead p, .intro { color: var(--muted); margin-top: .7rem; max-width: 76ch; font-size: 1.03rem; }
.pagehead h1.long-title { font-size: clamp(2rem, 4vw, 3.3rem); max-width: 27ch; }
.pagehead>a { display: inline-block; margin-top: .8rem; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); background: #fbfcf8; border-radius: .75rem; margin-bottom: 2rem; overflow: hidden; }
.stats>div, .stats>a { display: flex; flex-direction: column; gap: .3rem; padding: 1.08rem 1.35rem; color: var(--ink); text-decoration: none; }
.stats>*+* { border-left: 1px solid var(--line); }
.stats span { font-size: .85rem; color: var(--muted); }
.stats strong { font-size: 2rem; font-weight: 650; line-height: 1.2; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.stats b { margin-left: .2rem; }
.stats a:hover { background: #ecf3e6; }
label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .87rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; max-width: 100%; background: white; color: var(--ink); border: 1px solid #95a59b; border-radius: .4rem; padding: .65rem .8rem; min-height: 2.8rem; }
input::placeholder { color: #68776e; }
input[type=checkbox],input[type=radio] { accent-color: var(--green); }
textarea { resize: vertical; }
.filters { display: flex; gap: .8rem; align-items: end; margin-bottom: 2.4rem; flex-wrap: wrap; }
.filters>div { min-width: min(10rem,100%); }
.grow { flex: 1; }
.search-input { position: relative; }
.search-input input { padding-inline-start: 2.55rem!important; }
.search-input i { position: absolute; top: .89rem; left: .95rem; width: .82rem; height: .82rem; border: 1.6px solid #52665a; border-radius: 50%; }
.search-input i:after { content: ""; position: absolute; height: .42rem; width: 1.6px; background: #52665a; transform: rotate(-45deg); top: .59rem; left: .63rem; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; border: 1px solid var(--green); border-radius: .42rem; min-height: 2.8rem; padding: .64rem 1.15rem; font-weight: 650; font-size: .93rem; cursor: pointer; text-decoration: none; }
.primary { color: white; background: var(--green); }
.primary:hover { background: var(--dark); }
.secondary { background: white; color: var(--green); }
.text-link { padding: .65rem .15rem; }
.section-top { justify-content: space-between; margin: 0 0 1rem; }
.section-top>span, .card-meta, .meta, .card-foot { font-size: .82rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.casecard { display: flex; flex-direction: column; gap: 0; padding: 1.25rem; background: white; border: 1px solid #cfdbcf; border-radius: .72rem; text-decoration: none; color: var(--ink); }
.casecard:hover { border-color: #658570; background: #fcfdf9; }
.card-meta, .meta { flex-wrap: wrap; gap: .5rem; }
.card-meta .state { margin-left: auto; }
.code, .small-code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; letter-spacing: .02em; font-size: .77rem; }
.code { display: inline-block; border-radius: .28rem; padding: .2rem .42rem; color: #2b5944; background: #edf3e7; }
.small-code { display: inline-block; color: #526655; }
.state { display: inline-flex; align-items: center; width: fit-content; padding: .15rem .5rem; border-radius: 2rem; color: #485746; background: #edf0e8; font-size: .76rem; font-weight: 600; white-space: normal; }
.state.pending { color: #765117; background: #fbefd3; }
.state.valid { color: #225937; background: #dff1df; }
.casecard h3 { font-size: clamp(1.35rem,2vw,1.8rem); margin-top: 1.45rem; }
.casecard p { margin: .6rem 0 1.3rem; color: var(--muted); }
.card-foot { padding-top: .8rem; margin-top: auto; border-top: 1px solid var(--line); justify-content: space-between; }
.arrow { font-size: 1.25rem; line-height: 1; color: var(--green); }
.empty { grid-column: 1/-1; padding: 1.8rem; background: white; border: 1px dashed var(--line); border-radius: .72rem; }
.empty p { margin: .5rem 0; }
.back { display: inline-block; margin-bottom: 1.5rem; font-size: .9rem; }
.meta { margin-bottom: .6rem; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; font-weight: 600; }
.block { border: 1px solid var(--line); background: white; padding: clamp(1rem,2vw,1.7rem); border-radius: .72rem; margin-bottom: 1.1rem; scroll-margin-top: 1rem; }
.block h2+p, .block h3+p, .block>p, .quote p { margin-top: .5rem; }
.block p, .steps p, td, dd, .row-main { overflow-wrap: anywhere; }
.block>h2:not(:first-child) { margin-top: 1.6rem; }
.steps { padding-left: 1.9rem; margin-bottom: 1.5rem; }
.steps li { border-bottom: 1px solid var(--line); padding: 1rem .3rem; }
.steps li::marker { color: #658366; font-weight: 650; }
.steps p { margin-top: .5rem; }
.steps strong, details p strong { color: var(--green); margin-right: .25rem; }
.quote { border-left: 3px solid #8ca879; background: #f1f6ec; padding: 1rem 1.2rem; }
details { padding: .9rem 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 580; }
details p { margin: .65rem 0 0 1rem; }
.row-link { display: flex; gap: .9rem; align-items: center; padding: 1rem 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.row-link:last-child, details:last-child { border-bottom: 0; }
a.row-link:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.row-main { display: grid; gap: .35rem; flex: 1; }
.row-main>span:not(.small-code) { color: var(--muted); }
dl { margin-top: 1.1rem; }
dt { color: var(--muted); font-weight: 600; font-size: .88rem; margin-top: .8rem; }
dd { margin: .15rem 0 0; }
.actions { flex-wrap: wrap; margin-top: 1.2rem; }
.editor { max-width: 65rem; }
.editor p { margin-top: 1rem; }
.editor button { margin-top: 1rem; }
.editor fieldset { border: 0; margin: 0 0 1.4rem; padding: 0; }
.editor legend { padding: 0; margin-bottom: .85rem; }
.editor #id_samples { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.criterion { display: grid; grid-template-columns: 1fr minmax(8rem,12rem); gap: 1rem; align-items: center; border-top: 1px solid var(--line); padding: .8rem 0; }
.criterion small { color: var(--muted); }
.notice, .errorbox, .errorlist { border-radius: .4rem; padding: .7rem 1rem; margin: 0 0 1rem; }
.notice { color: #17412a; background: #e3f1df; }
.errorbox, .errorlist { color: #792f28; background: #fff0e9; }
.errorlist { list-style: none; }
.table-wrap { overflow: auto; margin-top: .75rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: .75rem; border: 1px solid var(--line); }
th { background: #f1f5ec; }
.guide { line-height: 1.62; }
.guide h2 { margin: 1.8rem 0 .5rem; }
.login-shell { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.login-identity { padding: clamp(2rem,5.5vw,6rem); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; background: var(--dark); color: #f0f6eb; }
.login-identity .brand { font-size: 3rem; }
.login-identity h1 { font-size: clamp(2.7rem,5.2vw,5.8rem); }
.login-identity p, .login-project { color: #c0d3bf; }
.login-project { display: block; margin-bottom: 1rem; }
.dot { color: #b8da90; }
.login-fields { display: grid; align-content: center; padding: clamp(1.5rem,6vw,6rem); }
.login-card { max-width: 26rem; width: 100%; margin-inline: auto; }
.login-card h2 { font-size: 2.25rem; line-height: 1.1; }
.login-card form { margin-top: 2rem; }
.login-card label:not(:first-of-type) { margin-top: 1rem; }
.wide { width: 100%; margin-top: 1.5rem; justify-content: space-between; }
@media(max-width: 980px) { .workspace { grid-template-columns: 180px minmax(0,1fr); } .rail { padding-inline: .8rem; } .cards { grid-template-columns: 1fr; } }
@media(max-width: 720px) {
  .workspace { display: block; }
  .rail { position: static; min-height: auto; height: auto; padding: .8rem 1rem; display: grid; grid-template-columns: auto 1fr auto; gap: .5rem .75rem; align-items: center; }
  .rail .brand, .rail-product { margin: 0; }
  .rail .brand { font-size: 1.85rem; }
  .rail .account { grid-column: 3; grid-row: 1; margin: 0; border: 0; padding: 0; }
  .rail .account .identity { display: none; }
  .rail nav { grid-column: 1/-1; grid-row: 2; margin-top: .35rem; display: flex; flex-wrap: wrap; gap: .2rem; }
  .rail nav a { padding: .4rem .6rem; min-height: 2.1rem; font-size: .82rem; gap: .35rem; }
  .rail .glyph { display: none; }
  .topbar { min-height: 2.7rem; font-size: .75rem; padding: .5rem 1rem; }
  .content-wrap main { padding: 1.5rem 1rem; }
  .pagehead { margin-bottom: 1.35rem; }
  .stats>div,.stats>a { padding: .7rem; }
  .stats span { font-size: .77rem; }
  .stats strong { font-size: 1.55rem; }
  .filters { gap: .5rem; margin-bottom: 1.5rem; }
  .filters .grow { flex-basis: 100%; }
  .filters>div:not(.grow) { flex-grow: 1; min-width: 0; }
  .criterion { grid-template-columns: 1fr; gap: .3rem; }
  .row-link { gap: .5rem; }
  .login-shell { grid-template-columns: 1fr; align-content: start; }
  .login-identity { gap: .7rem; padding: 1.5rem; }
  .login-identity h1 { font-size: 2.2rem; }
  .login-identity h1 br { display: none; }
  .login-identity .brand { font-size: 2rem; }
  .login-project { margin-bottom: .3rem; }
  .login-fields { padding: 2rem 1.5rem; }
}
.public-back { display: inline-block; color: #deefd9; margin-top: .65rem; font-size: .9rem; }
