/* HERMES Admin — Aurora Light
   Deliberately distinct from the navy/teal user portal.
   Visual identity does not confer administrator authorization. */
:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: #f5f7fe;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --border: #e1e6f3;
  --text: #18233d;
  --muted: #64748b;
  --primary: #5546e8;
  --primary-hover: #4536cf;
  --primary-tint: #eeedff;
  --blue: #2563eb;
  --shadow: 0 12px 38px rgba(42, 54, 111, .055);
}
* { box-sizing: border-box; }
html { min-width: 0; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 95% 0%, #e8eaff 0%, transparent 38%), var(--page);
  line-height: 1.5;
}
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #357bfa; outline-offset: 3px; }
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
}
.layout > *, .workspace, .workspace header, .mode-control,
.panel, .summary article, .notice, .placeholders > * { min-width: 0; }
.side {
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 29px 18px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.brand {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: .055em;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: #6258a9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
.symbol {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #5b45e8, #3379fa);
  box-shadow: 0 6px 16px rgba(85, 70, 232, .24);
  font-size: 24px;
  font-weight: 900;
}
.section-label, .overline {
  color: #5146ce;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}
.section-label {
  margin: 4px 12px -27px;
  color: #7f8a9f;
}
.side nav { display: grid; gap: 6px; }
.side nav button {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: transparent;
  color: #53637e;
  text-align: left;
  font-weight: 580;
  transition: background .15s ease, color .15s ease;
}
.side nav button:hover { background: #f0f1ff; color: var(--primary); }
.side nav button.selected {
  background: linear-gradient(115deg, #5745e8, #365dcc);
  box-shadow: 0 6px 17px rgba(71, 69, 200, .19);
  color: white;
  font-weight: 730;
}
.side-bottom {
  margin-top: auto;
  padding: 15px 13px;
  border: 1px solid #e4e1fc;
  border-radius: 13px;
  background: #f5f4ff;
  color: #5443c8;
  font-size: 12px;
  font-weight: 750;
}
.side-bottom small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 400;
}
.workspace {
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 44px;
  display: flex;
  flex-direction: column;
}
.admin-ribbon {
  margin: 0 -44px;
  padding: 12px 44px;
  color: white;
  background: linear-gradient(100deg, #5b46e9 0%, #3159d6 85%);
  border-bottom: 1px solid #4546b5;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .13em;
  font-weight: 800;
}
.admin-ribbon span { margin-right: 8px; }
.workspace header {
  min-height: 116px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
h1 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.025em; }
h2 { margin: 8px 0; font-size: 23px; letter-spacing: -.02em; }
.mode-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.mode-indicator {
  background: var(--primary-tint);
  color: #4436b2;
  border: 1px solid #cbc6ff;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 790;
  white-space: nowrap;
}
.mode-indicator::before { content: "◆"; margin-right: 8px; }
.switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: white;
  border: 1px solid #b9b4f6;
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}
.switch-link:hover { background: var(--primary-tint); border-color: var(--primary); }
.notice {
  display: flex;
  gap: 18px;
  margin-top: 35px;
  padding: 21px 23px;
  border-radius: 15px;
  border: 1px solid #d6d4ff;
  background: linear-gradient(110deg, #efedff, #f3f7ff);
}
.notice-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid #8c83ee;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #4d40c3;
  background: #ffffffb8;
  font-weight: 900;
}
.notice strong { color: #332987; font-size: 15px; }
.notice p { margin: 8px 0 0; color: #4d5576; font-size: 13px; line-height: 1.65; }
.summary {
  margin-top: 23px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.summary article, .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: var(--shadow);
}
.summary article {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-top: 3px solid #dddafa;
}
.summary article:nth-child(2) { border-top-color: #a4c4fc; }
.summary article:nth-child(3) { border-top-color: #9d94f6; }
.summary article span, .summary article small { color: var(--muted); font-size: 12px; }
.summary article strong {
  color: var(--text);
  font-size: 20px;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.panel { margin-top: 23px; padding: 30px; }
.panel-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pill, .blocked {
  border: 1px solid #dbd7ff;
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--primary-tint);
  color: #4b3cbc;
  font-size: 12px;
  font-weight: 700;
}
.panel p {
  max-width: 750px;
  color: #526179;
  font-size: 14px;
  line-height: 1.75;
}
.placeholders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 26px;
}
.placeholder {
  padding: 18px;
  border: 1px solid #e0e4f1;
  background: #f9faff;
  border-radius: 12px;
  color: #293653;
  font-size: 13px;
}
.placeholder span { display: block; color: var(--muted); font-size: 11px; margin-top: 7px; }
.footnote {
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.footnote strong { color: #3c4383; }
footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding: 35px 0 22px;
  color: #7b859c;
  font-size: 11px;
}
@media (max-width: 850px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side {
    width: 100%;
    padding: 17px;
    gap: 17px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .side nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .side nav button { min-width: 0; padding: 12px; white-space: normal; }
  .side nav button span { overflow-wrap: anywhere; }
  .section-label, .side-bottom { display: none; }
  .workspace { padding-inline: 18px; }
  .admin-ribbon { margin-inline: -18px; padding-inline: 18px; font-size: 10px; }
  .workspace header { min-height: 0; padding-block: 19px; align-items: flex-start; }
  .mode-control { width: 100%; justify-content: space-between; }
  .summary, .placeholders { grid-template-columns: minmax(0, 1fr); }
  .notice { margin-top: 19px; gap: 13px; }
  .panel { padding: 22px; }
}
@media (max-width: 400px) {
  .side { padding: 13px 12px; }
  .side nav button { padding: 10px; font-size: 12px; }
  .workspace { padding-inline: 14px; }
  .admin-ribbon { margin-inline: -14px; padding-inline: 14px; font-size: 9px; letter-spacing: .08em; }
  .mode-control { align-items: stretch; }
  .mode-indicator, .switch-link { width: 100%; text-align: center; }
  .notice { padding: 18px; }
  .summary article, .panel { padding: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .side nav button { transition: none; }
}

#auth-gate button,#auth-gate a{margin:8px 8px 0 0}#auth-gate input{display:block;max-width:100%;margin-top:12px;padding:12px;border:1px solid #b8c2da;border-radius:10px;font:inherit}#auth-gate code{display:block;overflow-wrap:anywhere;margin-top:12px;font-size:1.05rem}#auth-gate pre{white-space:pre-wrap;user-select:all}
