:root {
  color-scheme: light;
  --paper: #f6f5f1;
  --surface: #fff;
  --ink: #202924;
  --muted: #5a655f;
  --line: #dadcd7;
  --green: #245846;
  --green-hover: #1c4938;
  --error: #a13e32;
  --focus: #b06b17;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--paper); }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1:focus { outline: none; }

.site-header {
  width: min(100% - 64px, 980px);
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { color: var(--ink); font-size: 16px; font-weight: 760; letter-spacing: -.04em; text-decoration: none; }
.header-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: var(--green);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 650;
}
main {
  width: min(100% - 64px, 680px);
  min-height: max(530px, calc(100vh - 76px));
  margin: 0 auto;
  padding: 105px 0 112px;
}
.page { animation: appear .18s ease-out; }
@keyframes appear { from { opacity: .6; transform: translateY(3px); } to { opacity: 1; transform: none; } }
h1 {
  max-width: 23ch;
  margin: 0 0 21px;
  font-size: clamp(30px, 4.2vw, 42px);
  line-height: 1.11;
  letter-spacing: -.045em;
  font-weight: 670;
  overflow-wrap: anywhere;
}
h1.host-title {
  max-width: none;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  letter-spacing: 0;
  word-break: break-word;
}
.operation { display: block; color: var(--green); }
.secret-name {
  display: block;
  margin-top: 8px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(17px, 2.4vw, 21px);
  font-weight: 560;
  line-height: 1.45;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
p { margin: 0; }
.intro { max-width: 48ch; color: var(--muted); font-size: 17px; line-height: 1.55; }
.host {
  margin: 0 0 13px;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.revision { margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 31px; }
.button {
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 680;
  text-decoration: none;
}
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-hover); }
.button-secondary { color: var(--ink); background: transparent; border-color: #aeb5af; }
.button-secondary:hover { background: #eeefea; }
.button-small { min-height: 44px; padding: 0 13px; font-size: 14px; }
.button:disabled { opacity: .55; cursor: wait; }
.field { margin-top: 30px; }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
input, textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #aeb5af;
  border-radius: 5px;
}
input:focus, textarea:focus { border-color: var(--green); outline: 3px solid #24584630; outline-offset: 1px; }
textarea {
  min-height: 104px;
  resize: vertical;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.request-details { margin: 0; border-top: 1px solid var(--line); }
summary { min-height: 48px; padding: 14px 2px 10px; color: var(--green); cursor: pointer; font-size: 14px; font-weight: 650; }
summary::marker { color: var(--green); }
.detail-body { padding: 2px 0 18px; }
.fact-list { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); gap: 10px 20px; margin: 2px 0 0; padding: 0; font-size: 14px; }
.fact-list dt { color: var(--muted); }
.fact-list dd { min-width: 0; margin: 0; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; word-break: break-word; }
.setting-section { margin-top: 34px; }
.setting-section + .setting-section { padding-top: 28px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.3; letter-spacing: -.02em; }
.setting-section > .button { margin-top: 12px; }
.key-preview { display: flex; align-items: center; gap: 12px; }
.key-preview code, .detail-body code { min-width: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; word-break: break-word; }
.key-preview .button { flex: none; }
.field-help, .quiet-copy { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.accepted-prefixes { margin: 8px 0; padding: 0; list-style: none; }
.accepted-prefixes li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.accepted-prefixes code { min-width: 0; padding-top: 10px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.accepted-prefixes button { flex: none; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset:disabled { cursor: not-allowed; }
.status { margin-top: 17px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.status.error { color: var(--error); }
.page h1.error { color: var(--error); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
details + details { border-top: 1px solid var(--line); }
.setting-section details { border-top: 1px solid var(--line); }
.setting-section details:last-child { border-bottom: 1px solid var(--line); }
.reset-settings { margin-top: 20px; border-top: 1px solid var(--line); }
.detail-body .button { margin-top: 12px; }
#settings-controls:disabled button { cursor: not-allowed; }

@media (max-width: 600px) {
  .site-header { width: calc(100% - 40px); height: 64px; }
  main { width: calc(100% - 40px); min-height: max(500px, calc(100vh - 64px)); padding: 70px 0 74px; }
  h1 { margin-bottom: 18px; font-size: clamp(30px, 9vw, 36px); }
  h1.host-title { font-size: 16px; }
  .secret-name { font-size: 18px; }
  .intro { font-size: 16px; }
  .actions { gap: 8px; margin-top: 27px; }
  .actions .button { flex: 1 1 auto; }
  .fact-list { grid-template-columns: minmax(94px, 118px) minmax(0, 1fr); gap: 9px 12px; font-size: 13px; }
  .setting-section { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
