:root {
  font-family: system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #18292a;
  background: #f5f7f6;
  font-size: 16px;
  color-scheme: light;
  --muted: #536662;
  --line: #d9e3df;
  --action: #0f5c4e;
  --surface: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: var(--action); text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }
.layout { width: min(100% - 2rem, 67.5rem); margin-inline: auto; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.brand { color: #163933; font-weight: 730; text-decoration: none; letter-spacing: -0.025em; }
.account { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
main { padding-block: 3rem 4rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 3.35rem); letter-spacing: -0.045em; line-height: 1.14; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; margin-bottom: 1.25rem; }
.welcome { max-width: 34rem; padding-block: 3rem; }
.welcome p { color: var(--muted); margin-block: 1rem 1.7rem; }
.page-title { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.9rem; }
.page-title p { margin-top: 0.65rem; }
.breadcrumb { font-size: 0.875rem; margin-bottom: 1.25rem; color: var(--muted); word-break: break-word; }
.breadcrumb span { padding-inline: 0.35rem; }
.grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.2rem; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 0.8rem; padding: clamp(1rem, 3vw, 1.6rem); }
label { display: block; font-weight: 580; margin-top: 1rem; margin-bottom: 0.35rem; }
input { display: block; width: 100%; padding: 0.6rem 0.7rem; background: white; border: 1px solid #b8cac1; border-radius: 0.35rem; color: inherit; font: inherit; }
input[type=file] { color: var(--muted); }
form > button { margin-top: 1rem; }
.account button, .rows button { margin-top: 0; }
button, .button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; background: var(--action); color: white; border: 1px solid transparent; border-radius: 0.42rem; min-height: 2.5rem; padding: 0.43rem 0.9rem; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; }
button:disabled { opacity: 0.55; cursor: default; }
button:hover:not(:disabled), .button:hover { filter: brightness(0.92); }
.quiet, .secondary { background: var(--surface); border-color: #b8cac1; color: var(--action); }
.quiet { min-height: 2.05rem; padding: 0.25rem 0.6rem; font-size: 0.875rem; }
:focus-visible { outline: 2px solid #117b67; outline-offset: 3px; }
.muted, .hint, .status { color: var(--muted); font-size: 0.875rem; }
.hint, .feedback:not(:empty) { margin-top: 0.55rem; font-size: 0.875rem; }
.error { color: #a0232c; font-size: 0.875rem; overflow-wrap: anywhere; }
.status { text-align: end; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows > li { display: flex; gap: 1rem; justify-content: space-between; align-items: start; padding-block: 0.75rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.rows a { font-weight: 650; }
@media (max-width: 45rem) {
  main { padding-block: 2rem; }
  .grid { grid-template-columns: 1fr; }
}

.publication { background: var(--surface); }
.publication main { padding: 0; display: flex; flex-direction: column; height: 100dvh; }
.publication iframe { border: 0; display: block; width: 100%; flex: 1; }
.publication-direct { align-self: end; padding: 0.4rem 0.8rem; font-size: 0.875rem; }

.header-nav, .site-tabs, .row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.site-tabs {
  margin: 0 0 1.35rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #dce3e8;
}

.site-tabs a[aria-current] {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.grid > div > .panel + .panel {
  margin-top: 1rem;
}

.panel select, .panel textarea {
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  padding: 0.55rem 0.65rem;
  width: 100%;
  border: 1px solid #c9d5de;
  border-radius: 0.35rem;
  background: white;
  color: inherit;
  font: inherit;
}

.panel fieldset {
  margin: 1rem 0;
  border: 1px solid #dce3e8;
  border-radius: 0.35rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.choice input[type="checkbox"] {
  width: auto;
}

.muted.row-detail {
  display: block;
  overflow-wrap: anywhere;
}

.row-actions button {
  max-width: 100%;
}

button.danger {
  background: #9b2828;
  border-color: #9b2828;
  color: white;
}

.generated-secret {
  display: block;
  padding: 0.7rem;
  border: 1px solid #a3b4c1;
  border-radius: 0.35rem;
  overflow-wrap: anywhere;
  font-family: monospace;
}

.generated-secret[hidden] {
  display: none;
}

.archived-sites { margin-top: 1.2rem; }
