:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --paper: #f6f7f3;
  --surface: #fff;
  --ink: #182922;
  --muted: #52665b;
  --line: #d9e0d9;
  --accent: #075647;
  --radius: 14px;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; line-height: 1.48; }
a { color: var(--accent); text-underline-offset: .17em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #147cc0; outline-offset: 3px; }
::selection { background: #ffed95; color: var(--ink); }
.skip { position: absolute; z-index: 2; left: 1rem; top: -6rem; background: white; padding: .5rem 1rem; }
.skip:focus { top: .6rem; }
.masthead { background: #102e28; color: white; border-bottom: 3px solid #e4c840; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 1160px; min-height: 72px; padding: 12px 32px; margin-inline: auto; }
.brand { display: inline-flex; gap: 13px; align-items: center; color: white; font-size: 17px; font-weight: 650; text-decoration: none; letter-spacing: -.025em; }
.brand img { flex: none; display: block; }
.brand span { padding-left: 14px; border-left: 1px solid #668077; }
.account { display: flex; align-items: center; gap: 18px; min-width: 0; }
.account-email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dbe8e1; font-size: 13px; }
.logout { background: transparent; color: #fff; border: 1px solid #72877f; border-radius: 7px; padding: .4rem .8rem; font-size: 13px; font-weight: 600; }
.logout:hover { background: #24473d; }
.page { max-width: 1160px; margin-inline: auto; padding: clamp(32px, 5vw, 66px) 32px 80px; }
.page-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 26px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 650; line-height: 1.1; letter-spacing: -.053em; }
h2 { font-size: 20px; font-weight: 650; line-height: 1.25; letter-spacing: -.026em; }
.zone { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
code, .hostname, .secret { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.zone code { color: var(--accent); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 350px); align-items: start; gap: 22px; }
.projects, .tools { display: grid; gap: 14px; min-width: 0; }
.projects:only-child { grid-column: 1 / -1; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.project { padding: 22px 24px 0; overflow: hidden; }
.project-heading { display: flex; align-items: start; gap: 16px; justify-content: space-between; }
.project-heading > div { min-width: 0; }
.project-title { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.project-title:hover { text-decoration: underline; }
.hostname { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.project-owner { margin: 16px 0 19px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.project-owner strong { font-weight: 600; }
.subtext { color: var(--muted); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.empty { padding: 27px 25px; }
.empty .subtext { margin-top: 8px; }
.project-access { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 3px auto; border: solid #576c61; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
details[open] > summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.tool summary { padding: 18px 20px; font-size: 16px; font-weight: 600; }
.project-access summary { padding: 13px 0; font-size: 14px; font-weight: 600; }
.counter { font-size: 11px; font-weight: 600; background: #edf2ed; color: #425b4f; border-radius: 5px; min-width: 19px; text-align: center; padding: 1px 5px; }
.disclosure { display: grid; gap: 14px; padding-bottom: 20px; }
.tool .disclosure { padding-inline: 20px; }
.manual-key { border-top: 1px solid var(--line); }
.tool .manual-key summary { font-size: 14px; padding: 12px 0 0; }
.manual-key[open] > div { padding-top: 12px; }
.device-code { background: #eff3ee; color: var(--ink); border-radius: 8px; text-align: center; font: 650 26px/1.4 ui-monospace, monospace; letter-spacing: .07em; margin: 12px 0 20px; padding: 10px 8px; }
.device-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.device-actions .primary { margin-top: 0; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--ink); font-weight: 600; min-width: 0; }
input:not([type="hidden"]) { width: 100%; min-width: 0; border: 1px solid #b0c0b5; border-radius: 8px; background: white; color: var(--ink); padding: .65rem .78rem; min-height: 42px; font-size: 15px; font-weight: 400; }
input::placeholder { color: #68786f; }
input[type="file"] { font-size: 13px; padding: .4rem; }
input[type="file"]::file-selector-button { color: var(--ink); background: #eef2ef; border: 0; border-radius: 4px; padding: .4rem .5rem; margin-right: .35rem; cursor: pointer; }
.hint { margin-top: -9px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.inline-form { display: flex; align-items: flex-end; gap: 10px; }
.inline-form > label { flex: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: white; color: var(--accent); border: 1px solid #a8b9ad; border-radius: 8px; min-height: 42px; padding: .56rem .95rem; font-weight: 600; font-size: 14px; text-decoration: none; line-height: 1.3; }
.button:hover { background: #eef4ee; }
.button-small { flex: none; min-height: 34px; padding: .4rem .64rem; font-size: 13px; }
.primary { color: #fff; border-color: #075647; background: #075647; }
.primary:hover { background: #064437; }
.entries { list-style: none; padding: 0; margin: 0; }
.entries li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.entries li form { flex: none; }
.entries li small { display: block; color: var(--muted); margin-top: 2px; }
.entries li strong { font-weight: 600; }
.text-button { color: #8d3530; padding: 5px; border: 0; background: transparent; font-size: 13px; }
.text-button:hover { text-decoration: underline; }
.auth-page { width: min(100% - 32px, 420px); margin: clamp(44px, 13vh, 130px) auto 36px; }
.login { padding: clamp(22px, 4vw, 34px); }
.login h1 { font-size: 30px; letter-spacing: -.04em; }
.login .subtext { margin-top: 9px; margin-bottom: 23px; }
.login .primary { margin-top: 4px; }
.status-code { display: block; color: var(--muted); font: 13px/1.5 ui-monospace, monospace; margin-bottom: 10px; }
.notice { padding: 12px 16px; border: 1px solid; border-radius: 9px; margin-bottom: 18px; font-size: 14px; overflow-wrap: anywhere; }
.notice-success { background: #ecf7ef; color: #235641; border-color: #c4dfc9; }
.notice-error { background: #fff2ee; color: #883e32; border-color: #f1cec1; }
.one-time { padding: 20px 24px; margin-bottom: 20px; border-left: 4px solid var(--accent); display: grid; gap: 10px; }
.secret[readonly] { font-size: 13px; }
@media (max-width: 800px) {
  .workspace { grid-template-columns: 1fr; }
  .tools { grid-row: 2; }
}
@media (max-width: 550px) {
  .masthead-inner { min-height: 60px; padding: 9px 17px; gap: 9px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand span { padding-left: 9px; }
  .account { gap: 7px; }
  .account-email { display: none; }
  .page { padding: 32px 15px; }
  .page-heading { margin-bottom: 18px; }
  .project { padding: 18px 16px 0; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .button-small { min-height: 39px; }
}
