body.gateway { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--grass-color-canvas); }
.gateway a, .gateway button, .gateway summary { -webkit-tap-highlight-color: transparent; }
.gateway button, .gateway summary { cursor: pointer; }
.gateway-header { width: min(1120px, 100%); margin-inline: auto; padding: 28px 40px; display: flex; align-items: center; justify-content: space-between; }
.gateway-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--grass-color-text); font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.gateway-brand-product { color: var(--grass-color-brand); margin-left: 3px; }
.gateway-brand-mark { display: grid; place-items: center; height: 36px; width: 36px; border-radius: var(--grass-radius-md); color: var(--grass-color-brand); background: var(--grass-color-brand-soft); }
.gateway-brand-mark .gu-icon { width: 23px; height: 23px; }
.gateway-theme { width: 40px; padding: 0; }
.gateway-theme [class^="gateway-theme-"] { display: flex; }
.gateway-theme .gateway-theme-sun { display: none; }
:root[data-theme="dark"] .gateway-theme .gateway-theme-moon { display: none; }
:root[data-theme="dark"] .gateway-theme .gateway-theme-sun { display: flex; }
.gateway-main { flex: 1; width: min(1040px, 100%); margin: auto; padding: 52px 40px 64px; display: grid; align-content: center; }
.gateway-entry { display: grid; grid-template-columns: 1fr minmax(320px, 400px); align-items: center; gap: 76px; }
.gateway-intro h1 { margin: 18px 0 20px; font-size: clamp(36px, 4vw, 52px); letter-spacing: -.05em; line-height: 1.25; font-weight: 800; }
.gateway-lead { max-width: 360px; color: var(--grass-color-text-muted); font-size: 16px; line-height: 1.8; margin: 0; }
.gateway-features { display: grid; gap: 18px; margin: 38px 0 0; padding: 0; list-style: none; }
.gateway-features li { display: flex; align-items: center; gap: 12px; color: var(--grass-color-text-muted); font-size: 14px; }
.gateway-features .gu-icon { color: var(--grass-color-brand); flex-shrink: 0; }
.gu-card.gateway-card { padding: 36px; border-radius: var(--grass-radius-xl); box-shadow: var(--grass-shadow-md); }
.gateway-card h2 { margin: 24px 0 0; font-size: 24px; line-height: 1.35; letter-spacing: -.025em; }
.gateway-emblem { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--grass-radius-lg); color: var(--grass-color-brand); background: var(--grass-color-brand-soft); }
.gateway-emblem .gu-icon { height: 24px; width: 24px; }
.gateway-description { margin: 12px 0 0; color: var(--grass-color-text-muted); line-height: 1.8; font-size: 14px; overflow-wrap: anywhere; }
.gateway-primary { width: 100%; min-height: 46px; margin-top: 28px; }
.gateway-primary .gu-icon { margin-left: 5px; width: 17px; height: 17px; }
.gateway-note { margin: 14px 0 0; font-size: 12px; line-height: 1.7; color: var(--grass-color-text-muted); text-align: center; }
.gateway-help { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--grass-color-border); font-size: 13px; color: var(--grass-color-text-muted); }
.gateway-help summary { width: fit-content; }
.gateway-help p { margin-bottom: 0; line-height: 1.8; }
.gateway-account, .gateway-message { width: min(480px, 100%); margin: auto; }
.gateway-account-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.gateway-account-details { margin: 26px 0 0; padding: 18px 0; border-block: 1px solid var(--grass-color-border); display: grid; gap: 16px; font-size: 14px; }
.gateway-account-details div { display: flex; justify-content: space-between; gap: 20px; }
.gateway-account-details dt { color: var(--grass-color-text-muted); }
.gateway-account-details dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.gateway-signout { margin-top: 12px; }
.gateway-signout button { width: 100%; min-height: 44px; }
.gateway-message { text-align: center; }
.gateway-message .gateway-emblem { margin: 0 auto 24px; }
.gateway-text-link { display: block; width: fit-content; margin: 18px auto 0; color: var(--grass-color-brand); font-size: 13px; text-decoration: none; }
.gateway-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.gateway-footer { width: min(1120px, 100%); margin-inline: auto; padding: 24px 40px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; line-height: 1.7; color: var(--grass-color-text-subtle); }
.gateway-skip { position: absolute; top: 12px; left: 12px; transform: translateY(-150%); padding: 10px 14px; background: var(--grass-color-surface); color: var(--grass-color-brand); border-radius: var(--grass-radius-sm); z-index: 1; }
.gateway-skip:focus { transform: none; }
.gateway [hidden] { display: none !important; }
@media (max-width: 760px) {
  .gateway-header { padding: 22px 24px; }
  .gateway-main { padding: 28px 24px 40px; }
  .gateway-entry { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 440px; margin-inline: auto; width: 100%; }
  .gateway-intro h1 { font-size: 34px; margin: 12px 0 14px; }
  .gateway-intro h1 br { display: none; }
  .gateway-lead { font-size: 14px; }
  .gateway-features { display: none; }
  .gu-card.gateway-card { padding: 28px; }
  .gateway-footer { padding: 20px 24px; flex-wrap: wrap; justify-content: center; text-align: center; }
}
@media (max-width: 360px) {
  .gateway-header, .gateway-main { padding-inline: 16px; }
  .gu-card.gateway-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .gateway .gu-action { transition: none; }
  .gateway .gu-action:hover { transform: none; }
}
.gateway[data-page="station"] .gateway-main, .gateway[data-page="files"] .gateway-main { align-content: start; padding-top: 32px; }
.station-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:30px; }
.station-heading h1 { margin-top:12px; overflow-wrap:anywhere; }
.station-heading > .gu-action { flex-shrink:0; }
.station-heading-actions { display:flex; gap:10px; flex-wrap:wrap; }
.access-card { padding:28px; margin-bottom:24px; min-width:0; }
.access-card h2 { margin-top:0; font-size:20px; }
.access-form { display:grid; gap:20px; margin-top:24px; text-align:left; }
.access-form > label, .access-created > label { display:grid; gap:8px; font-size:14px; }
.access-form fieldset { margin:0; padding:16px; border:1px solid var(--grass-color-border); border-radius:var(--grass-radius-md); }
.access-form legend { padding:0 6px; font-size:14px; }
.access-choice { display:flex; gap:10px; align-items:center; margin:12px 0; font-size:14px; line-height:1.7; }
.access-choice input { width:18px; height:18px; flex-shrink:0; accent-color:var(--grass-color-brand); }
.access-help { color:var(--grass-color-text-muted); font-size:12px; line-height:1.8; margin:0; }
.access-code { font-family:ui-monospace,monospace; letter-spacing:.15em; text-transform:uppercase; }
.access-created { margin-top:24px; padding:20px; border:1px solid var(--grass-color-border); border-radius:var(--grass-radius-md); overflow-wrap:anywhere; }
.access-created p, .access-list-item p { font-size:13px; line-height:1.8; color:var(--grass-color-text-muted); }
.access-created button { margin-top:12px; }
.access-created a { color:var(--grass-color-brand); text-underline-offset:3px; }
.access-list-heading { display:flex; gap:16px; align-items:center; justify-content:space-between; }
.access-list-heading h2 { margin:0; }
.access-list-item { padding:20px 0; border-bottom:1px solid var(--grass-color-border); overflow-wrap:anywhere; }
.access-list-item h3 { margin:0; font-size:16px; }
.gateway[data-page="access-codes"] .gateway-main { align-content:start; padding-top:32px; }
.station-apps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.station-progress { display:grid; gap:10px; padding-left:24px; margin:18px 0; text-align:left; font-size:13px; line-height:1.6; color:var(--grass-color-text-muted); }
.station-progress [data-state="active"] { color:var(--grass-color-brand); font-weight:600; }
.station-progress [data-state="done"] { color:var(--grass-color-text); }
.station-progress [data-state="done"]::after { content:" ✓"; color:var(--grass-color-brand); }
[data-provision] { margin-bottom:24px; }
[data-provision] .station-progress { grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px 30px; }
.gu-card.station-app { padding:28px; display:flex; align-items:flex-start; flex-direction:column; border-radius:var(--grass-radius-lg); }
.station-app h2 { margin:24px 0 10px; font-size:21px; }
.station-app p { margin:0 0 26px; color:var(--grass-color-text-muted); font-size:14px; line-height:1.8; flex:1; }
.station-app .gu-action { width:100%; gap:8px; }
.gu-card.station-context { margin-top:24px; padding:24px 28px; border-radius:var(--grass-radius-lg); }
.station-context h2 { margin:0 0 8px; font-size:15px; }
.station-context p { margin:0; color:var(--grass-color-text-muted); font-size:13px; line-height:1.8; }
.station-context .station-footnote { margin-top:12px; }
.station-footnote { font-size:12px; line-height:1.8; color:var(--grass-color-text-subtle); margin:20px 0 0; }
.gu-card.station-files { padding:24px; border-radius:var(--grass-radius-lg); min-width:0; }
.station-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.station-toolbar nav { font-size:14px; overflow-wrap:anywhere; }
.station-tools { display:flex; gap:8px; flex-wrap:wrap; }
.station-tools .gu-action { font-size:12px; min-height:36px; padding:8px 12px; }
.station-upload { position:relative; overflow:hidden; }
.station-upload input { position:absolute; inset:0; opacity:0; width:100%; cursor:pointer; }
.station-upload:focus-within { outline:2px solid var(--grass-color-brand); outline-offset:3px; }
.station-path, .station-file-name { padding:0; border:0; background:transparent; color:var(--grass-color-brand); font:inherit; text-align:left; overflow-wrap:anywhere; }
.station-path:hover, .station-file-name:hover, .station-download:hover { text-decoration:underline; text-underline-offset:3px; }
.station-file-status { margin:22px 0 14px; font-size:13px; line-height:1.8; color:var(--grass-color-text-muted); overflow-wrap:anywhere; }
.station-table-wrap { overflow-x:auto; }
.station-file-table { width:100%; border-collapse:collapse; font-size:13px; table-layout:fixed; }
.station-file-table th { text-align:left; color:var(--grass-color-text-muted); font-weight:500; padding:12px 8px; border-block:1px solid var(--grass-color-border); }
.station-file-table td { padding:14px 8px; border-bottom:1px solid var(--grass-color-border); overflow-wrap:anywhere; }
.station-file-table th:nth-child(2) { width:85px; }.station-file-table th:nth-child(3) { width:90px; }
.station-download { color:var(--grass-color-brand); text-decoration:none; white-space:nowrap; }
.station-mkdir { display:flex; align-items:end; gap:10px; flex-wrap:wrap; margin-top:20px; }
.station-mkdir label { display:grid; gap:8px; font-size:13px; }.station-mkdir input { max-width:100%; }
@media(max-width:760px) {
 .station-heading { align-items:flex-start; flex-direction:column; gap:16px; }.station-heading h1 { font-size:27px; }
 .station-apps { grid-template-columns:minmax(0,1fr); gap:16px; }.gu-card.station-app { padding:24px; }
 .station-app h2 { margin-top:18px; }.station-app p { margin-bottom:20px; }.gu-card.station-files { padding:18px; }
 .station-file-table th:nth-child(2) { width:58px; }.station-file-table th:nth-child(3) { width:64px; }
 .station-tools { gap:6px; }.station-tools .gu-action { padding:8px 10px; }
}
.gateway[data-page="work"] .gateway-main, .gateway[data-page="work-terminal"] .gateway-main { align-content:start; padding-top:30px; }
.work-heading { margin-bottom:18px; }
.work-heading h1 { margin:0 0 8px; }
.work-heading .gateway-description { margin:0; }
.work-tools { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.work-board { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:16px; align-items:start; }
.work-panel { padding:22px; min-width:0; }
.work-panel h2 { margin:0 0 8px; font-size:19px; }
.work-projects { grid-row:span 2; }
.work-item { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:14px 0; border-bottom:1px solid var(--grass-color-border); }
.work-item:last-child { border-bottom:0; padding-bottom:0; }
.work-item-text { min-width:0; overflow-wrap:anywhere; }
.work-item h3 { margin:0 0 5px; font-size:15px; }
.work-item p,.work-empty,.work-status { margin:0; color:var(--grass-color-text-muted); font-size:13px; line-height:1.65; }
.work-empty,.work-status { padding:12px 0; }
.work-empty a { color:var(--grass-color-brand); }
.work-item-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.work-item-actions .gu-action { min-height:32px; padding:5px 9px; font-size:12px; }
.work-terminal { height:clamp(300px,65vh,850px); min-width:0; padding:12px; background:#0f1720; border-radius:var(--grass-radius-md); }
[data-work-files-actions] .station-file-table th:nth-child(3) { width:150px; }
.station-file-actions > :not(:first-child) { margin-inline-start:8px; }
@media(max-width:760px) {
  .work-board { grid-template-columns:minmax(0,1fr); }
  .work-projects { grid-row:auto; }
  .work-panel { padding:16px; }
  .station-file-actions > :not(:first-child) { margin-inline-start:0; }
  [data-work-files-actions] .station-file-table th:nth-child(3) { width:68px; }
  .station-file-actions > * { display:block; margin-block:3px; }
}
