:root {
  --paper: #eef2f0;
  --ink: #1c2b24;
  --mute: #5c6d64;
  --pine: #2f5d46;
  --line: rgba(28,43,36,.14);
  --serif: "PT Serif", serif;
  --sans: "PT Sans", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.5; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, #f5f7f6, #e4ebe6),
    repeating-linear-gradient(-12deg, transparent, transparent 18px, rgba(28,43,36,.03) 18px, rgba(28,43,36,.03) 19px);
}
a { color: inherit; text-decoration: none; }
.head, .band, .foot, .hero { width: min(1040px, calc(100% - 2rem)); margin-inline: auto; }
.head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0 0; }
.logo, h1, h2, .big { font-family: var(--serif); }
.logo { font-weight: 700; font-size: 1.35rem; }
nav { display: flex; gap: 1.1rem; align-items: center; color: var(--mute); }
.btn {
  display: inline-flex; padding: .55rem 1rem; border: 1px solid var(--ink); font-weight: 700;
}
.btn.dark { background: var(--ink); color: #f5f7f6; margin-top: .4rem; padding: .85rem 1.2rem; }
.hero {
  min-height: calc(100svh - 5rem); display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 2rem; align-items: center; padding: 2rem 0 3rem;
}
.big { font-size: clamp(2.8rem, 6vw, 4.2rem); margin: 0; line-height: .92; }
h1 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 400; max-width: 16ch; margin: .7rem 0; }
.lede { color: var(--mute); max-width: 36ch; margin: 0 0 1.2rem; }
.board { animation: in .9s ease both; }
.slate {
  background: #24352d; color: #e7efe9; padding: 1rem;
  box-shadow: 12px 16px 0 rgba(47,93,70,.35);
}
.slate header { font-family: var(--serif); margin-bottom: .9rem; }
.rows { display: grid; grid-template-columns: 70px 1fr; gap: .55rem .7rem; align-items: center; }
.rows b { display: block; height: 18px; background: linear-gradient(90deg, #3f7a5c, #6aa884); width: 72%; }
.rows b.a { width: 88%; background: linear-gradient(90deg, #8a6a3b, #c4a574); }
.rows b.t { width: 28%; background: #7f9186; }
.slate footer { margin-top: 1rem; font-size: .82rem; color: rgba(231,239,233,.65); }
.band { padding: 3.2rem 0 1rem; }
.band h2 { margin: 0; font-size: 1.85rem; font-weight: 400; }
.band > p { color: var(--mute); max-width: 48ch; }
.band ul { padding: 0; margin: 1.2rem 0 0; list-style: none; }
.band li { border-top: 1px solid var(--line); padding: .85rem 0; color: var(--mute); }
dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1.4rem 0 0; }
dl div { border-top: 2px solid var(--ink); padding-top: .7rem; }
dt { color: var(--mute); font-size: .85rem; }
dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.35rem; }
.foot { display: flex; justify-content: space-between; padding: 3rem 0 2rem; color: var(--mute); }
.ws-body { background: #e2eae5; }
.ws-bar {
  width: min(1180px, calc(100% - 1.2rem)); margin: .8rem auto; display: flex; gap: 1rem; align-items: center;
}
.ws-bar div { flex: 1; display: grid; }
.ws-bar span { color: var(--mute); font-size: .85rem; }
.ws {
  width: min(1180px, calc(100% - 1.2rem)); margin: 0 auto 1rem;
  display: grid; grid-template-columns: 240px 1fr 210px; gap: .7rem;
}
.ws aside, .ws section { background: rgba(255,255,255,.5); border: 1px solid var(--line); padding: .95rem; }
.ws h2 { margin: 0 0 .7rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); font-family: var(--sans); }
#files, #log { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; color: var(--mute); font-size: .9rem; }
#files li, #log li { border-top: 1px solid var(--line); padding-top: .4rem; }
.screen {
  position: relative; aspect-ratio: 16/9; background: #1c2b24; color: #e7efe9; overflow: hidden;
}
.screen::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,.03) 3px, rgba(255,255,255,.03) 4px);
}
#tc { position: absolute; left: .7rem; bottom: .6rem; z-index: 1; font-variant-numeric: tabular-nums; }
.lane { margin-top: .7rem; height: 54px; background: #24352d; position: relative; }
.lane i { position: absolute; top: 10px; height: 14px; background: #3f7a5c; left: 8%; width: 36%; }
.lane i:nth-child(2) { top: 30px; left: 8%; width: 58%; background: #8a6a3b; }
.ph {
  position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; left: 20%;
  animation: move 7s ease-in-out infinite;
}
.legal { width: min(680px, calc(100% - 2rem)); margin: 2rem auto 3rem; color: var(--mute); }
.legal h1 { color: var(--ink); }
@keyframes in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes move { 0%,100% { left: 12%; } 50% { left: 68%; } }
@media (max-width: 900px) {
  .hero, .ws, dl { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  nav a:not(.btn) { display: none; }
}

/* i18n + cabinet */
.lang { display:inline-flex; gap:.15rem; padding:.15rem; border:1px solid rgba(0,0,0,.12); background:rgba(255,255,255,.4); }
.lang button { border:0; background:transparent; font:inherit; font-size:.72rem; text-transform:uppercase; padding:.2rem .35rem; cursor:pointer; opacity:.7; }
.lang button.is-active { background:#111; color:#fff; opacity:1; }
.auth-wrap,.cab-wrap{ width:min(1040px, calc(100% - 2rem)); margin:2rem auto 3rem; }
.auth-card,.cab-card{ background:rgba(255,255,255,.55); border:1px solid rgba(0,0,0,.1); padding:1.25rem; max-width:480px; }
.tabs{ display:flex; gap:.4rem; margin:1rem 0; }
.tabs button{ flex:1; border:1px solid rgba(0,0,0,.12); background:transparent; padding:.6rem; font:inherit; cursor:pointer; }
.tabs button.is-active{ background:#111; color:#fff; }
.auth-card label,.cab-card label{ display:grid; gap:.25rem; margin-bottom:.75rem; font-size:.9rem; }
.auth-card input{ border:1px solid rgba(0,0,0,.18); padding:.65rem .7rem; font:inherit; }
.auth-note{ min-height:1.2em; font-size:.9rem; }
.auth-note[data-state="err"]{ color:#a11; }
.auth-note[data-state="ok"]{ color:#0a7; }
.hint{ font-size:.85rem; opacity:.75; }
.cab-grid{ display:grid; grid-template-columns:1.2fr .8fr; gap:1rem; }
@media (max-width:900px){ .cab-grid{ grid-template-columns:1fr; } }
.projects{ list-style:none; margin:0; padding:0; }
.projects li{ border-top:1px solid rgba(0,0,0,.1); padding:.5rem 0; }
.cab-actions{ display:flex; gap:.6rem; flex-wrap:wrap; margin-top:1rem; }
.stats{ display:grid; gap:.6rem; }
.stats div{ border-top:1px solid rgba(0,0,0,.1); padding-top:.5rem; }
.stats dt{ font-size:.75rem; text-transform:uppercase; letter-spacing:.06em; opacity:.7; }
.stats dd{ margin:.15rem 0 0; font-size:1.15rem; }