:root {
  --bg: #eeede7;
  --paper: #f8f7f2;
  --surface: #fffdf8;
  --surface-muted: #f3f3ed;
  --line: #d9dbd2;
  --line-strong: #c5c9bf;
  --text: #27302b;
  --muted: #68716a;
  --faint: #8b938c;
  --accent: #27634c;
  --accent-dark: #174533;
  --accent-soft: #e5eee8;
  --blue: #41677a;
  --blue-soft: #e7eff1;
  --amber: #936b2d;
  --amber-soft: #f7efdf;
  --red: #a24b45;
  --red-soft: #f7e9e5;
  --green: #2b724d;
  --green-soft: #e6f1e9;
  --shadow: 0 1px 2px rgba(31, 44, 35, .045);
  --sidebar-width: 224px;
  --radius: 8px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 20px; line-height: 1.3; font-weight: 680; }
h2 { margin-bottom: 5px; font-size: 21px; line-height: 1.3; font-weight: 680; }
h3 { margin-bottom: 3px; font-size: 15px; line-height: 1.35; font-weight: 680; }
small { color: var(--muted); }
code { color: #3d4a42; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: var(--sidebar-width); flex-direction: column; padding: 10px; border-right: 1px solid var(--line); background: var(--bg); }
.brand { display: flex; min-height: 58px; align-items: center; gap: 10px; padding: 8px 9px 12px; border-bottom: 1px solid var(--line); color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { display: inline-grid; width: 33px; height: 33px; flex: 0 0 33px; place-items: center; border: 1px solid #163f2f; border-radius: 8px; background: var(--accent-dark); color: #fff; font-family: var(--mono); font-size: 15px; font-weight: 760; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-size: 15px; font-weight: 700; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.primary-nav { flex: 1; overflow-y: auto; padding: 8px 0 14px; }
.nav-label { margin: 16px 9px 5px; color: var(--faint); font-family: var(--mono); font-size: 9px; font-weight: 650; }
.nav-label:first-child { margin-top: 4px; }
.nav-item { display: flex; min-height: 36px; align-items: center; gap: 9px; margin: 2px 0; padding: 6px 9px; border: 1px solid transparent; border-radius: 7px; color: #59635c; font-size: 13px; font-weight: 560; }
.nav-item > .nav-icon { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; color: #778078; }
.nav-item > .nav-text { min-width: 0; flex: 1; }
.nav-item:hover { border-color: var(--line); background: rgba(255, 253, 248, .65); color: var(--text); }
.nav-item.is-active { border-color: #c7d7cb; background: var(--surface); color: var(--accent-dark); box-shadow: var(--shadow); }
.nav-item.is-active::before { width: 2px; height: 18px; margin-left: -12px; border-radius: 2px; background: var(--accent); content: ""; }
.nav-item.is-active > .nav-icon { color: var(--accent); }
.icon-svg { display: block; width: 17px; height: 17px; }
.sidebar-foot { display: flex; min-height: 53px; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 253, 248, .5); }
.sidebar-foot > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.sidebar-foot strong { color: #526057; font-size: 11px; }
.sidebar-foot small { margin-top: 1px; font-family: var(--mono); font-size: 9px; }
.health-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #3e8b61; box-shadow: 0 0 0 3px #dfebe2; }

.workspace { grid-column: 2; min-width: 0; min-height: calc(100vh - 20px); margin: 10px 10px 10px 0; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); box-shadow: var(--shadow); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 18px; padding: 9px clamp(16px, 2.5vw, 32px); border-bottom: 1px solid var(--line); background: var(--surface); }
.page-heading { min-width: 0; }
.eyebrow { margin-bottom: 3px; color: var(--faint); font-family: var(--mono); font-size: 9px; font-weight: 650; }
.topbar-actions, .identity { display: flex; align-items: center; gap: 8px; }
.identity { padding: 3px 9px 3px 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-muted); }
.identity > span:last-child { display: flex; min-width: 0; flex-direction: column; line-height: 1.2; }
.identity strong { max-width: 120px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
.identity small { margin-top: 2px; font-size: 9px; }
.avatar { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.content { width: min(100%, 1460px); margin: 0 auto; padding: 24px clamp(16px, 2.5vw, 32px) 48px; }
.sidebar-scrim, .topbar .menu-button { display: none; }

.page-intro { display: flex; min-height: 54px; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-intro-copy { max-width: 760px; }
.page-intro p { margin-bottom: 0; color: var(--muted); }
.page-intro .eyebrow { margin-bottom: 5px; color: var(--accent); }
.inline-actions, .row-actions, .form-actions, .inline-form { display: flex; align-items: center; gap: 7px; }
.button { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 650; line-height: 1.2; text-align: center; white-space: nowrap; transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 140ms ease; }
.button:active { transform: translateY(1px); }
.button-primary { border-color: var(--accent-dark); background: var(--accent); color: #fff; }
.button-primary:hover { border-color: #0d3527; background: var(--accent-dark); color: #fff; }
.button-secondary { border-color: var(--line-strong); background: var(--surface); color: #3e4b43; }
.button-secondary:hover { border-color: #aeb7ad; background: var(--surface-muted); color: var(--text); }
.button-quiet { border-color: transparent; background: transparent; color: var(--muted); }
.button-quiet:hover { background: var(--surface-muted); color: var(--text); }
.button-danger { border-color: #dfc4bf; background: var(--surface); color: var(--red); }
.button-danger:hover { background: var(--red-soft); color: #8b332f; }
.button-small { min-height: 29px; padding: 5px 8px; font-size: 11px; }
.button-block { width: 100%; }
.icon-button { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); cursor: pointer; }
.flash, .notice { margin-bottom: 15px; padding: 10px 12px; border: 1px solid; border-radius: 7px; }
.flash-success { border-color: #bdd7c4; background: var(--green-soft); color: #255d3f; }
.flash-error { border-color: #e3c0bb; background: var(--red-soft); color: #873a36; }
.notice-warning { border-color: #ead7b5; background: var(--amber-soft); color: #725323; }
.notice strong { margin-right: 4px; }

.summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.summary-item { min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.summary-item.is-alert { border-color: #e3c8bd; background: #fffaf5; }
.summary-item span, .summary-item strong, .summary-item small { display: block; }
.summary-item span { margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.summary-item strong { overflow-wrap: anywhere; font-family: var(--mono); font-size: 22px; font-weight: 620; line-height: 1.15; }
.summary-item small { margin-top: 5px; font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.metric-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { min-width: 0; padding: 14px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.metric span, .metric small, .metric strong { display: block; }
.metric span { margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.metric strong { overflow-wrap: anywhere; font-family: var(--mono); font-size: 24px; font-weight: 620; line-height: 1.15; }
.metric small { margin-top: 6px; font-size: 10px; }
.metric .metric-code { font-size: 15px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr); gap: 12px; }
.panel, .tool-panel, .log-panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel { align-self: start; overflow: hidden; }
.panel-wide { grid-column: 1; }
.panel-header { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.panel-header p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.panel-header > a { font-size: 11px; font-weight: 650; }
.definition-list { margin: 0; padding: 4px 15px 8px; }
.definition-list > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid #ecece5; }
.definition-list > div:last-child { border-bottom: 0; }
.definition-list dt { color: var(--muted); font-size: 11px; }
.definition-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 620; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid #e9ebe4; vertical-align: middle; text-align: left; }
th { background: var(--surface-muted); color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 650; white-space: nowrap; }
td { min-width: 84px; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfaf5; }
td > small, td > a + small, td > span + small { display: block; max-width: 360px; margin-top: 3px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; }
.primary-cell { color: var(--text); font-weight: 650; }
.code-wrap { display: block; max-width: 380px; white-space: normal; }
.tag { display: inline-flex; padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-muted); color: #536057; font-family: var(--mono); font-size: 9px; font-weight: 680; }
.status { display: inline-flex; min-height: 22px; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid transparent; border-radius: 999px; background: #eef0eb; color: #67716a; font-size: 9px; font-weight: 680; white-space: nowrap; }
.status i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.status-online, .status-succeeded, .status-approved, .status-healthy, .status-active, .status-validated, .status-verified { border-color: #c9dfcf; background: var(--green-soft); color: var(--green); }
.status-running, .status-leased { border-color: #cbdde3; background: var(--blue-soft); color: var(--blue); }
.status-pending, .status-stale, .status-never-seen, .status-unknown, .status-not-configured, .status-not-verifiable, .status-expired { border-color: #e8d8b9; background: var(--amber-soft); color: var(--amber); }
.status-failed, .status-revoked, .status-unreachable, .status-degraded { border-color: #e4c7c1; background: var(--red-soft); color: var(--red); }
.status-offline, .status-canceled { border-color: #dfe2dc; background: #eef0ed; color: #69736d; }

.activity-list, .service-list { display: flex; flex-direction: column; }
.activity-list > a, .activity-row, .service-list > a { display: flex; min-width: 0; align-items: center; gap: 11px; padding: 10px 14px; border-bottom: 1px solid #ecece5; color: var(--text); }
.activity-list > a:last-child, .activity-row:last-child, .service-list > a:last-child { border-bottom: 0; }
.activity-list > a:hover, .service-list > a:hover { background: #faf9f3; }
.activity-list > a > span:nth-child(2), .activity-row > span:nth-child(2), .service-list > a > span:first-child { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.activity-list small, .service-list small { margin-top: 2px; }
.activity-id { width: 40px; color: var(--faint); font-family: var(--mono); font-size: 10px; }
.activity-row .activity-id { width: 145px; }
.service-catalog { display: flex; flex-direction: column; }
.service-item { display: flex; min-width: 0; align-items: center; gap: 11px; padding: 11px 14px; border-bottom: 1px solid #e9ebe4; color: var(--text); }
.service-item:last-child { border-bottom: 0; }
a.service-item:hover { background: #faf9f3; color: var(--text); }
.service-glyph { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border: 1px solid #d5ddd4; border-radius: 7px; background: #f0f4ee; color: var(--accent); font-family: var(--mono); font-size: 9px; font-weight: 740; }
.service-item > span:nth-child(2), .service-main { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.service-item small { margin-top: 2px; }
.service-main code { margin-top: 3px; }
.service-state { display: flex; align-items: flex-end; flex-direction: column; gap: 3px; }
.route-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 16px; list-style: none; }
.route-flow li { position: relative; display: flex; min-width: 0; gap: 8px; padding-right: 18px; }
.route-flow li::after { position: absolute; top: 12px; right: 5px; width: 11px; height: 1px; background: var(--line-strong); content: ""; }
.route-flow li:last-child::after { display: none; }
.route-flow li > span { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 50%; background: var(--accent-dark); color: #fff; font-family: var(--mono); font-size: 9px; }
.route-flow li > div { display: flex; min-width: 0; flex-direction: column; }
.route-flow small { margin-top: 3px; overflow-wrap: anywhere; }

.tool-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.tool-row .tool-panel { flex: 1 1 340px; }
.tool-panel { margin-bottom: 14px; overflow: hidden; }
.tool-panel > summary { min-height: 46px; padding: 12px 14px; cursor: pointer; font-size: 13px; font-weight: 680; }
.tool-panel[open] > summary { border-bottom: 1px solid var(--line); }
.form-stack, .form-grid { padding: 14px; }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compact-form { grid-template-columns: minmax(170px, 1fr) minmax(120px, 190px) auto; align-items: end; }
.form-actions, .span-two { grid-column: 1 / -1; }
label { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: #536057; font-size: 11px; font-weight: 630; }
input, select, textarea { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px; outline: none; background: var(--surface); font-size: 13px; }
textarea { min-height: 120px; resize: vertical; font-family: var(--mono); font-size: 12px; }
input:hover, select:hover, textarea:hover { border-color: #aeb7ad; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(39, 99, 76, .1); }
.toggle-field { flex-direction: row; align-items: center; align-self: end; min-height: 38px; }
.toggle-field input { width: 17px; min-height: 17px; accent-color: var(--accent); }
.optional, .field-note { color: var(--faint); font-size: 10px; font-weight: 450; }
.field-note { margin: -3px 14px 14px; }
.two-column-tools { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 12px; }
.secret-banner { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 16px; margin-bottom: 15px; padding: 14px; border: 1px solid #bdd5c5; border-radius: var(--radius); background: #edf4ee; }
.secret-banner p:last-child { margin-bottom: 0; color: #4c695a; }
.secret-value, .secret-stack { display: flex; min-width: 0; align-items: center; gap: 8px; }
.secret-stack { align-items: stretch; flex-direction: column; }
.secret-value code, .secret-stack > code:first-child { min-width: 0; flex: 1; padding: 9px; border: 1px solid #c2d6c7; border-radius: 6px; background: var(--surface); overflow-wrap: anywhere; }
.policy-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.policy-strip > div { min-width: 0; padding: 11px 13px; border-right: 1px solid #e8e9e2; }
.policy-strip > div:last-child { border-right: 0; }
.policy-strip span, .policy-strip strong { display: block; overflow-wrap: anywhere; }
.policy-strip span { margin-bottom: 4px; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.policy-strip strong { font-size: 11px; }
.log-panel { overflow: hidden; background: #1c2721; border-color: #1c2721; }
.log-lines { margin: 0; padding: 7px 0; list-style: none; }
.log-lines li { display: grid; grid-template-columns: 145px 58px 42px minmax(0, 1fr); gap: 8px; padding: 6px 12px; border-bottom: 1px solid #2d3b33; color: #c1ccc4; font-family: var(--mono); font-size: 11px; }
.log-lines li:last-child { border-bottom: 0; }
.log-lines time { color: #7e9184; }
.log-lines a { color: #91c3aa; }
.log-lines code { color: #dce4dd; white-space: pre-wrap; }
.log-level { color: #9caea2; text-transform: uppercase; }
.log-error { color: #ffaaa4; }
.log-warning { color: #f1c879; }
.settings-list { margin: 0; padding: 0 14px; }
.settings-list > div { display: grid; grid-template-columns: minmax(170px, .5fr) minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid #e9ebe4; }
.settings-list > div:last-child { border-bottom: 0; }
.settings-list dt { color: var(--muted); }
.settings-list dd { min-width: 0; margin: 0; }
.security-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.security-grid > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 14px; border-right: 1px solid #e9ebe4; }
.security-grid > div:last-child { border-right: 0; }
.security-grid span { color: var(--muted); font-size: 11px; }
.setting-state { display: flex; align-items: center; gap: 8px; padding: 14px; }
.empty-state { padding: 30px 14px; color: var(--muted); text-align: center; }
.empty-state::before { display: block; width: 22px; height: 1px; margin: 0 auto 10px; background: var(--line-strong); content: ""; }
.empty-state strong { color: #536057; }
.empty-state p { margin: 5px 0 0; }
.error-state { max-width: 560px; margin: 10vh auto; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; box-shadow: var(--shadow); }
.error-state p:not(.eyebrow) { color: var(--muted); }

.login-body { display: grid; min-height: 100vh; place-items: center; padding: 18px; background: var(--bg); }
.login-card { width: min(420px, 100%); padding: 24px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 24px rgba(31, 44, 35, .06); }
.login-header { margin-bottom: 18px; }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.login-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.login-brand strong { font-size: 15px; }
.login-brand small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.brand-mark-large { width: 38px; height: 38px; flex-basis: 38px; font-size: 17px; }
.login-header h1 { margin: 6px 0 5px; font-size: 21px; }
.login-header > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.login-card .form-stack { padding: 0; gap: 12px; }
.login-card .button-block { min-height: 40px; margin-top: 2px; }
.login-security-note { margin: 16px 0 0; color: var(--faint); font-size: 10px; }

@media (max-width: 1080px) {
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-item:nth-child(4), .summary-item:nth-child(5) { border-top: 0; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .policy-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .policy-strip > div:nth-child(3) { border-right: 0; }
  .policy-strip > div:nth-child(-n + 3) { border-bottom: 1px solid #e8e9e2; }
  .two-column-tools { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-grid > div:nth-child(2) { border-right: 0; }
  .security-grid > div:nth-child(-n + 2) { border-bottom: 1px solid #e9ebe4; }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform 160ms ease; }
  body.menu-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; display: block; visibility: hidden; border: 0; background: rgba(39, 48, 43, .28); opacity: 0; transition: opacity 160ms ease, visibility 160ms ease; }
  body.menu-open .sidebar-scrim { visibility: visible; opacity: 1; }
  .topbar .menu-button { display: grid; }
  .topbar { padding-inline: 13px; }
  .page-heading { flex: 1; }
  .content { padding: 20px 13px 40px; }
  .workspace { min-height: calc(100vh - 12px); margin: 6px; border-radius: 9px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .panel-wide { grid-column: auto; }
  .form-grid, .compact-form { grid-template-columns: 1fr; }
  .route-flow { grid-template-columns: 1fr; gap: 14px; }
  .route-flow li::after { top: 29px; right: auto; left: 12px; width: 1px; height: 10px; }
  .secret-banner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  h1 { font-size: 18px; }
  h2 { font-size: 20px; }
  .topbar-actions .button { padding-inline: 7px; }
  .identity > span:last-child { display: none; }
  .identity { padding: 3px; border: 0; background: transparent; }
  .page-intro { align-items: stretch; flex-direction: column; margin-bottom: 15px; }
  .inline-actions { align-items: stretch; flex-direction: column; }
  .inline-actions .button { width: 100%; }
  .summary-grid, .metric-grid, .metric-grid-three { grid-template-columns: 1fr; }
  .summary-item, .metric { border-top: 1px solid var(--line) !important; }
  .summary-item:first-child, .metric:first-child { border-top: 1px solid var(--line) !important; }
  .metric { padding: 13px 14px; }
  .policy-strip { grid-template-columns: 1fr; }
  .policy-strip > div { border-right: 0 !important; border-bottom: 1px solid #e8e9e2 !important; }
  .policy-strip > div:last-child { border-bottom: 0 !important; }
  .secret-value, .inline-form { align-items: stretch; flex-direction: column; }
  .secret-value .button, .inline-form .button { width: 100%; }
  .security-grid { grid-template-columns: 1fr; }
  .security-grid > div { border-right: 0; border-bottom: 1px solid #e9ebe4; }
  .settings-list > div { grid-template-columns: 1fr; gap: 3px; }
  .login-body { padding: 10px; }
  .login-card { padding: 20px; }
  .log-lines li { grid-template-columns: 1fr; gap: 3px; }
  .log-lines li time, .log-lines li a { display: none; }
  .activity-row .activity-id { width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
