:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  --ink: #192c25;
  --muted: #506359;
  --line: #d5dfd9;
  --page: #f2f5f1;
  --surface: #fff;
  --accent: #165541;
  --accent-quiet: #dceee3;
  --dark: #14352b;
  --danger: #8a3029;
  accent-color: var(--accent);
  caret-color: var(--accent);
  scrollbar-color: #879c8f var(--page);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.5; }
::selection { background: #bee0ca; color: var(--dark); }
a { color: var(--accent); text-underline-offset: .24em; }
button, input, select { font: inherit; }
button, input, select, a { outline-offset: .22rem; }
:focus-visible { outline: .14rem solid #27815f; }
.skip { position: fixed; z-index: 1; top: .75rem; left: .75rem; padding: .65rem; background: var(--surface); translate: 0 -180%; }
.skip:focus { translate: 0; }
.topbar { background: var(--dark); color: #f0f7f1; }
.topbar-inner, main { max-width: 76rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.topbar-inner { min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.identity, #account, .actions, .headline, .detail-head, .section-head { display: flex; align-items: center; gap: .75rem; }
.identity { font-weight: 760; letter-spacing: .025em; }
.logo { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1px solid #9ac9ad; border-radius: .45rem; color: #e0f4e5; }
.product, .connection { font-size: .84rem; color: #bbd5c5; font-weight: 500; letter-spacing: 0; }
.product { padding-left: .7rem; border-left: 1px solid #608574; }
main { padding-block: clamp(1.5rem, 5vw, 3.4rem) 4rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.05rem, 5vw, 3.25rem); line-height: 1.08; letter-spacing: -.037em; font-weight: 730; }
h2 { font-size: 1.42rem; line-height: 1.18; letter-spacing: -.025em; }
h3 { font-size: 1rem; font-weight: 740; }
p { max-width: 68ch; }
p + p, h1 + p, h2 + p, h3 + p { margin-top: .45rem; }
.headline, .detail-head, .section-head { justify-content: space-between; }
.headline { margin-bottom: 1.55rem; }
.headline p, .hint, small, .subtle, .empty, .login p { color: var(--muted); }
small, .hint { font-size: .86rem; }
button { min-height: 2.55rem; padding: .43rem .82rem; border: 1px solid #a9baaf; border-radius: .48rem; color: var(--ink); background: var(--surface); cursor: pointer; font-weight: 650; }
button:hover:not(:disabled) { background: #e8f0ea; }
button:disabled { cursor: default; opacity: .56; }
.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.primary:hover:not(:disabled) { background: #0e4937; }
.danger { color: var(--danger); border-color: #b9857b; }
.topbar .plain { background: transparent; color: #f0f7f1; border-color: #7a9b88; }
.topbar .plain:hover { background: #285241; }
.workspace { display: grid; grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.1rem); align-items: start; }
.project-rail h2 { font-size: .85rem; letter-spacing: 0; padding: .58rem .6rem .65rem; color: var(--muted); }
#projects { display: grid; gap: .25rem; }
.project { text-align: left; background: transparent; border-color: transparent; min-width: 0; overflow-wrap: anywhere; }
.project span, .project small { display: block; }
.project[aria-current="true"] { background: var(--accent-quiet); border-color: #a3bdae; color: var(--dark); }
#detail, .login { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: .85rem; }
.login { max-width: 29rem; margin: clamp(.5rem, 7vw, 4.8rem) auto; padding: clamp(1rem, 5vw, 2.35rem); }
.login h1 { font-size: 2.15rem; }
.login form { display: grid; gap: .5rem; margin-block: 1.4rem .4rem; }
.login form button { margin-top: .38rem; }
#login-error { color: var(--danger); min-height: 1.5em; }
.detail-head, .section, .empty { padding: clamp(1rem, 3vw, 1.55rem); }
.detail-head { align-items: start; border-bottom: 1px solid var(--line); }
.detail-head h2 { font-size: clamp(1.36rem, 3vw, 1.94rem); overflow-wrap: anywhere; }
.detail-head a { flex: none; }
.detail-head p { overflow-wrap: anywhere; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { align-items: start; margin-bottom: .7rem; }
.section-head h3 { font-size: 1.1rem; letter-spacing: -.012em; }
.actions { gap: .48rem; flex-wrap: wrap; margin-top: .72rem; }
.chip { display: inline-block; border-radius: 1.2rem; padding: .2rem .62rem; background: #e9eee9; color: #334b3d; font-size: .83rem; font-weight: 720; }
.chip.good { color: #174c39; background: #dbede1; }
.chip.bad { color: #752d25; background: #f7e4df; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25rem 1rem; margin: .15rem 0 .6rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
code, time { font-variant-numeric: tabular-nums; }
code { font-family: ui-monospace, monospace; font-size: .84em; overflow-wrap: anywhere; }
form label { font-weight: 620; }
input, select { min-width: 0; width: 100%; min-height: 2.55rem; padding: .45rem .55rem; border: 1px solid #a9baaf; border-radius: .42rem; background: #fff; color: var(--ink); }
.controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: .65rem; }
.controls label { display: grid; align-content: start; gap: .25rem; font-size: .9rem; }
input[type="checkbox"] { width: 1.05rem; min-height: 1.05rem; margin: 0; }
.controls .check { display: flex; align-items: center; }
input[type="file"]::file-selector-button { font: inherit; margin-right: .45rem; color: var(--accent); }
.rows { margin: .6rem 0 0; padding: 0; list-style: none; }
.rows li { padding: .5rem 0; border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .65rem; justify-content: space-between; }
.rows li span { overflow-wrap: anywhere; }
details { margin-top: .8rem; }
summary { color: var(--accent); font-weight: 670; cursor: pointer; }
.notice { padding: .55rem .72rem; margin-bottom: 1rem; background: #e0eee3; color: #234c37; border-radius: .45rem; }
.notice.error { background: #f7e4df; color: #752d25; }
dialog { border: 1px solid var(--line); border-radius: .85rem; width: min(27rem, 90vw); padding: 1.45rem; color: var(--ink); }
dialog::backdrop { background: #122b2375; }
dialog .actions { justify-content: end; }
@media (max-width: 44rem) {
  .workspace { grid-template-columns: 1fr; }
  #projects { display: flex; flex-wrap: wrap; }
  .project { border-color: var(--line); background: var(--surface); }
  .project small { display: none; }
  .project-rail h2 { padding-inline: 0; }
}
@media (max-width: 30rem) {
  .connection, .product { display: none; }
  .detail-head { flex-wrap: wrap; }
  .controls { grid-template-columns: 1fr; }
  .facts { gap: .25rem .55rem; font-size: .9rem; }
}
