body { background: var(--paper); }
[hidden] { display: none !important; }
main.wrap { padding-block: 32px 48px; min-height: 60vh; }
.tb-top { justify-content: space-between; }
.small { font-size: 13px; }
#entry { max-width: 420px; margin: 40px auto; display: grid; gap: 14px; }
#entry h1 { font-family: var(--font-head); font-size: 30px; margin: 0; }
#entry .lede { color: var(--ink-soft); margin: 0; }
#loginForm { display: grid; gap: 6px; }
#loginForm input { font-family: var(--font-mono); font-size: 15px; padding: 11px 12px; letter-spacing: .04em; margin-bottom: 8px; }
#loginForm .btn { justify-content: center; padding: 12px; }
.error { color: var(--brick); font-size: 14px; min-height: 20px; margin: 4px 0 0; }
.proj-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.proj-head .ref { font-family: var(--font-mono); font-size: 13px; color: var(--brick); display: block; margin-bottom: 6px; }
.proj-head h1 { font-family: var(--font-head); font-size: 30px; margin: 0 0 4px; text-wrap: balance; }
.proj-head .addr { color: var(--ink-soft); margin: 0; }
.stepper { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-bottom: 10px; }
.stepper div { font-family: var(--font-mono); font-size: 11px; padding: 8px 4px 6px; border-top: 4px solid var(--line); color: var(--steel); overflow-wrap: anywhere; }
.stepper div.done { border-color: var(--blueprint); color: var(--ink-soft); }
.stepper div.cur { border-color: var(--brick); color: var(--ink); font-weight: 500; }
.status-note { background: var(--paper-raised); border: 1px solid var(--line); padding: 14px 16px; margin: 16px 0 28px; color: var(--ink-soft); white-space: pre-wrap; }
.next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); margin-bottom: 32px; }
.next div { background: var(--paper-raised); padding: 14px 16px; min-width: 0; }
.next .l { font-family: var(--font-mono); font-size: 11px; color: var(--steel); }
.next .v { font-family: var(--font-head); font-size: 17px; }
.block { margin-bottom: 36px; }
.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.grid2 > * { min-width: 0; }
.list { display: grid; gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); }
.list > * { background: var(--paper); padding: 12px 16px; }
.doc { display: flex; justify-content: space-between; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
a.doc:hover, a.doc:focus-visible { background: var(--blueprint-soft); outline: none; }
.doc .meta { font-family: var(--font-mono); font-size: 11px; color: var(--steel); white-space: nowrap; }
.upd .d { font-family: var(--font-mono); font-size: 11px; color: var(--steel); }
.upd h4 { margin: 2px 0 4px; font-family: var(--font-head); font-size: 16px; }
.upd p { margin: 0; font-size: 14px; color: var(--ink-soft); white-space: pre-wrap; }
.foot { padding-block: 16px 32px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .grid2, .next { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .swg { grid-template-columns: 150px 1fr; }
  .swg-lhead, .swg-lrow { grid-template-columns: 10px 1fr; }
  .swg-lhead span:not(:first-child), .swg-lrow .swg-d { display: none; }
}

.sw3d { border: 1px solid var(--line-strong); background: var(--paper-raised); }
.sw3d:fullscreen { display: flex; flex-direction: column; }
.sw3d-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border-bottom: 1px solid var(--line); }
.sw3d-bar button { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer; }
.sw3d-bar button:hover, .sw3d-bar button:focus-visible { border-color: var(--blueprint); color: var(--blueprint); outline: none; }
.sw3d-bar button.on { background: var(--ink); color: var(--paper); }
.sw3d-info { font-family: var(--font-mono); font-size: 11px; color: var(--steel); margin-left: auto; }
.sw3d-stage { position: relative; height: min(62vh, 560px); }
.sw3d:fullscreen .sw3d-stage { flex: 1; height: auto; }
.sw3d-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.sw3d-msg { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--steel); }
@media (max-width: 760px) { .sw3d-info { display: none; } .sw3d-stage { height: 50vh; } }
.sw3d-var { display: inline-flex; gap: 6px; padding-right: 8px; margin-right: 2px; border-right: 1px solid var(--line-strong); }
