:root {
  font: 15px/1.55 'Segoe UI', system-ui, sans-serif;
  color: #182728;
  background: #f6f7f4;
  --text-muted: #516464;
  --line: #dbe3dd;
  --panel: #fff;
  --accent: #16644e;
  --accent-hover: #0f503d;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid #297c65; outline-offset: 3px; }
.skip { position: fixed; left: 1rem; top: .7rem; padding: .5rem; background: white; z-index: 2; }
.skip:not(:focus) { clip-path: inset(50%); }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; letter-spacing: -.035em; margin-bottom: .55rem; }
h2 { font-size: 1.18rem; letter-spacing: -.01em; margin-bottom: .65rem; }
p { margin-bottom: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .48rem; background: #21735a; color: white; font-size: .86rem; }
.gate { min-height: 100dvh; display: grid; align-content: center; justify-items: center; padding: 2rem 1rem; }
.gate-card { width: min(100%, 32rem); padding: clamp(1.35rem, 4vw, 2.6rem); background: var(--panel); border: 1px solid var(--line); border-radius: .85rem; box-shadow: 0 .65rem 2.4rem #192f2010; }
.gate-card .brand { margin-bottom: 1.7rem; }
.muted, .empty { color: var(--text-muted); }
.muted { max-width: 68ch; }
.empty { padding: 1rem; border: 1px dashed var(--line); border-radius: .55rem; }
.shell { min-height: 100dvh; display: grid; grid-template-columns: 14rem minmax(0, 1fr); }
.sidebar { background: #132c29; color: #e5f4ed; padding: 1.2rem .9rem; }
.sidebar .brand { margin: 0 .4rem 1.7rem; }
.sidebar nav { display: flex; flex-direction: column; gap: .3rem; }
.sidebar nav a { padding: .55rem .65rem; color: inherit; text-decoration: none; border-radius: .42rem; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { background: #245045; }
.sidebar :focus-visible { outline-color: #88e4c4; }
.content { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem clamp(1rem, 4vw, 2.8rem); background: var(--panel); border-bottom: 1px solid var(--line); }
.workspace { max-width: 74rem; margin: 0 auto; padding: clamp(1rem, 4vw, 2.8rem); }
.heading { margin-bottom: 1.45rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: .65rem; padding: clamp(.85rem, 2.5vw, 1.25rem); margin-bottom: 1rem; }
.panel form { max-width: 36rem; }
.field { display: grid; gap: .25rem; margin-bottom: .85rem; color: #304743; font-weight: 600; }
input:not([type='checkbox']), select, textarea { width: 100%; min-width: 0; padding: .58rem .68rem; background: white; color: #182728; border: 1px solid #bacac1; border-radius: .43rem; }
input[readonly] { background: #f1f5f2; }
.check { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: .85rem; }
.check input { margin-top: .35rem; }
.primary, .secondary { border: 1px solid transparent; border-radius: .4rem; padding: .46rem .82rem; font-weight: 600; cursor: pointer; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-hover); }
.secondary { background: white; border-color: var(--line); color: #21403a; }
.secondary:hover { background: #eef5f0; }
button:disabled { cursor: wait; opacity: .62; }
.form-status { font-size: .94rem; font-weight: 600; color: #8a2925; }
.form-status:empty { display: none; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.gate-card > .row { margin-top: .9rem; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
td, th { border-bottom: 1px solid var(--line); padding: .57rem .62rem; vertical-align: top; overflow-wrap: anywhere; }
th { font-size: .85rem; color: var(--text-muted); }
td:first-child, th:first-child { padding-left: 0; }
tr:last-child td { border-bottom: 0; }
.layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.layout .panel { margin-bottom: 0; }
.secret { overflow-wrap: anywhere; display: block; padding: .65rem; margin-bottom: 1rem; border: 1px solid var(--line); background: #f4f7f5; border-radius: .4rem; }
.panel > summary { cursor: pointer; font-weight: 650; }
.setting-content { margin-top: 1rem; }
.save-status { display: block; margin-bottom: .45rem; color: var(--accent); }
.save-status:empty { display: none; }
@media (max-width: 44rem) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { padding: .65rem .9rem; }
  .sidebar .brand { margin: 0 .35rem .6rem; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .topbar { padding-block: .65rem; }
}
