@font-face {
  font-family: 'Hofio UI';
  src: url('/fonts/hofio-ui.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family: 'Hofio UI', sans-serif;
  color: #25312d;
  background: #fff;
  font-size: 14px;
  font-synthesis: none;
  line-height: 1.5;
  --line: #e3e7e5;
  --muted: #748079;
  --green: #173e34;
  --soft: #f6f8f7;
  --radius: 10px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 3px;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: white;
  color: #34483f;
  font-weight: 600;
  cursor: pointer;
  line-height: 20px;
  white-space: nowrap;
}
button:hover {
  background: #f0f4f2;
  border-color: #bdc9c2;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #225144;
}
.quiet {
  background: var(--soft);
}
.compact {
  min-height: 34px;
  font-size: 12px;
  padding: 6px 12px;
}
.danger {
  color: #963d3d;
}
.icon-button {
  width: 34px;
  min-height: 34px;
  font-size: 24px;
  padding: 0;
  font-weight: 400;
  border: 0;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  font-weight: 600;
  margin-bottom: 8px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: 16px;
}
h3 {
  font-size: 14px;
  margin-bottom: 12px;
}
.muted,
small {
  color: var(--muted);
}
p {
  line-height: 1.6;
  margin-bottom: 16px;
}
.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 32px 16px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.wordmark {
  font-family: Georgia, serif;
  font-size: 30px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 14px 36px;
  text-decoration: none !important;
}
.wordmark span {
  font:
    9px/1.2 'Hofio UI',
    sans-serif;
  letter-spacing: 1.4px;
  color: #7f8d86;
  border-left: 1px solid #cdd5d0;
  padding-left: 12px;
}
.language-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
}
.language-control select {
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 6px 26px 6px 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sidebar-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #94a097;
  margin: 20px 14px 10px;
}
nav a {
  display: block;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 4px;
  color: #5c6962;
  line-height: 20px;
}
nav a:hover {
  background: var(--soft);
  text-decoration: none;
}
nav a.active {
  color: #193e32;
  font-weight: 600;
  background: #edf2ee;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 32px 14px 0;
  font-size: 12px;
  line-height: 1.9;
  color: #59695f;
}
.local-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #417861;
  margin-right: 5px;
}
.sidebar-bottom small {
  font-size: 10px;
  padding-left: 13px;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 36px;
  font-size: 12px;
  color: #7b857f;
}
.topbar strong {
  font-weight: 500;
  color: #4c5a52;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #546359;
}
main {
  width: 100%;
  max-width: 1640px;
  padding: 36px;
  margin: 0 auto;
  flex: 1;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: #839187;
  margin-bottom: 10px;
}
.page-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.metric .label {
  font-size: 12px;
  color: #7e8b82;
}
.metric strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-top: 10px;
}
.metric small {
  display: block;
  font-size: 11px;
  margin-top: 8px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  min-width: 0;
}
.panel-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.panel-header h2 {
  margin: 0;
}
.notice {
  border: 1px solid #e4e7dd;
  background: #fafbf8;
  padding: 14px 18px;
  border-radius: 8px;
  color: #68705c;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.notice strong {
  color: #414e3d;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.toolbar input {
  max-width: 320px;
}
.toolbar select {
  max-width: 280px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.7px;
  color: #87948b;
  padding: 0 12px 14px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 17px 12px;
  border-bottom: 1px solid #edf0ee;
  vertical-align: middle;
  line-height: 1.5;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
tr:last-child td {
  border-bottom: 0;
}
td .name {
  font-weight: 600;
  color: #2a3c31;
}
td small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
td.actions {
  text-align: right;
  white-space: nowrap;
}
td.actions button + button {
  margin-left: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dce6de;
  background: #f1f6f2;
  color: #3c6c4c;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.badge.warn {
  color: #8b6f32;
  background: #fcf9ee;
  border-color: #ebe2c6;
}
.badge.error {
  color: #99554f;
  background: #fdf2ef;
  border-color: #eedbd7;
}
.badge.neutral {
  color: #78847b;
  background: #f6f7f6;
  border-color: #e3e7e4;
}
.text-link {
  border: 0;
  padding: 4px 0;
  min-height: 30px;
  font-size: 12px;
  background: none;
  color: #3b6552;
}
.empty {
  padding: 28px;
  text-align: center;
  color: #89958e;
  line-height: 1.6;
  font-size: 13px;
}
.actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
}
.tabs button {
  border: 0;
  border-radius: 0;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  color: #78847c;
}
.tabs button.active {
  border-color: var(--green);
  color: var(--green);
}
.split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}
.description-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
}
.description-list dt,
.description-list dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #eef0ee;
  line-height: 1.5;
}
.description-list dt {
  color: #7b887f;
  font-size: 12px;
}
.description-list dd {
  text-align: right;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  color: #6e7a73;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #53645a;
  margin: 0 0 18px;
}
input,
select {
  display: block;
  width: 100%;
  height: 42px;
  border: 1px solid #d6ddd8;
  border-radius: 6px;
  background: white;
  color: #2e4035;
  padding: 9px 11px;
  margin-top: 7px;
  min-width: 0;
}
input:focus,
select:focus {
  outline: 2px solid #a4bdae;
  outline-offset: 1px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  font-weight: 400;
}
.check input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--green);
}
.checks {
  max-height: 240px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 12px 0 24px;
}
.checks .check:last-child {
  margin: 0;
}
.error {
  color: #a1463d;
  font-size: 13px;
  line-height: 1.5;
}
dialog {
  width: min(580px, calc(100vw - 32px));
  max-height: 90vh;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  box-shadow: 0 24px 90px #142a2033;
}
dialog::backdrop {
  background: #162c244d;
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font-size: 20px;
  margin: 4px 0 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 6px;
}
.dialog-context {
  background: var(--soft);
  padding: 14px;
  border-radius: 7px;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.dialog-context small {
  display: block;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(500px, 90vw);
  background: #203e30;
  color: white;
  padding: 16px 20px;
  border-radius: 9px;
  font-size: 13px;
  box-shadow: 0 5px 25px #0002;
  z-index: 10;
}
footer {
  border-top: 1px solid #edf0ee;
  padding: 20px 36px;
  font-size: 10px;
  color: #98a299;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fafbf9;
}
.login-card {
  width: 100%;
  max-width: 450px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.login-card .wordmark {
  margin: 0 0 35px;
}
.login-card h1 {
  font-size: 24px;
}
.login-card p {
  font-size: 13px;
}
.login-card form {
  margin-top: 26px;
}
.login-card button {
  width: 100%;
  margin-top: 4px;
}
.login-foot {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 28px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #78877b;
}
.login-foot span {
  display: block;
  font-size: 10px;
  letter-spacing: 0;
  margin-top: 8px;
  color: #94a095;
}
.mfa-qr {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border-radius: 8px;
  background: #fff;
}
.mfa-manual {
  margin: 16px 0;
}
.mfa-manual summary {
  cursor: pointer;
  color: var(--green);
}
.mfa-manual .secret {
  margin-top: 12px;
}
.secret {
  display: block;
  font:
    14px/1.8 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  background: #f1f4f2;
  padding: 12px;
  user-select: all;
}
.checklist {
  line-height: 1.8;
  padding-left: 20px;
  color: #6c7970;
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 194px minmax(0, 1fr);
  }
  main {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 18px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 18px 8px;
  }
  .sidebar .wordmark {
    margin: 0 0 15px;
  }
  .sidebar > .sidebar-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    gap: 5px;
    overflow: auto;
  }
  nav .sidebar-label {
    display: none;
  }
  nav a {
    white-space: nowrap;
    font-size: 12px;
    padding: 10px;
  }
  main {
    padding: 22px 16px;
  }
  .topbar {
    height: 58px;
    padding: 0 16px;
  }
  .topbar > span {
    display: none;
  }
  .top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .page-head {
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 24px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric strong {
    font-size: 26px;
  }
  .panel {
    padding: 18px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input,
  .toolbar select {
    max-width: none;
  }
  .tabs {
    gap: 16px;
    overflow: auto;
  }
  .tabs button {
    font-size: 12px;
    white-space: nowrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  footer {
    padding: 18px;
    flex-direction: column;
    font-size: 9px;
  }
  dialog {
    padding: 22px;
  }
  .login-card {
    padding: 28px;
  }
}
