/* Terminal presentation layer. Forms and security state keep their normal semantics. */
:root {
  color-scheme: dark;
  font-family:
    ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 13px;
  color: #d4e6d8;
  background: #080e0b;
  --green: #9cf385;
  --muted: #91aa99;
  --line: #263c2e;
  --ink: #d4e6d8;
  --accent: #9cf385;
  --terminal-panel: #0d1511;
}
body {
  background: #080e0b;
}
::selection {
  background: #9cf385;
  color: #081309;
}
:focus-visible {
  outline: 2px solid #9cf385;
  outline-offset: 3px;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 25px;
  color: #dff9e3;
}
h1::before {
  content: "> ";
  color: var(--accent);
}
h2 {
  font-size: 14px;
}
h3 {
  font-size: 13px;
}
.mono,
.mono-block {
  font-family: inherit;
}
.sidebar {
  background: #0a120d;
  border-right: 1px solid var(--line);
  padding-top: 23px;
  color: #91aa99;
}
.sidebar .brand {
  gap: 8px;
  font-size: 20px;
  letter-spacing: -0.05em;
}
.brand {
  color: #dff9e3;
}
.brand-mark {
  flex: 0 0 28px;
  width: 28px;
  height: 26px;
  border: 1px solid #3a6245;
  border-radius: 2px;
  color: #9cf385;
  background: #112318;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -2px;
}
.brand small,
.sidebar .brand small {
  color: #91aa99;
  border-color: #294432;
  background: transparent;
  border-radius: 1px;
  font-size: 8px;
  letter-spacing: 0.7px;
}
.office-switch {
  border-color: #294432;
  border-radius: 2px;
  background: #101c14;
  padding: 11px 9px;
  margin: 27px 0 23px;
}
.office-switch .office-mark {
  background: #182b1e;
  border-radius: 1px;
  color: #a4dbaa;
  padding: 6px;
}
.office-switch select {
  color: #d4e6d8;
  font-weight: 500;
}
.office-switch option {
  background: #0d1511;
}
.eyebrow,
.nav-label {
  color: #91aa99;
  letter-spacing: 1px;
}
.nav-label::before {
  content: "// ";
  color: #5d8a68;
}
.nav-label {
  padding-left: 9px;
  font-size: 10px;
}
.sidebar nav {
  counter-reset: nav-entry;
}
.nav-item {
  counter-increment: nav-entry;
  padding: 10px 9px;
  gap: 10px;
  border-radius: 0;
  border-left: 2px solid transparent;
  color: #9bb4a3;
  font-size: 12px;
  margin: 2px 0;
}
.nav-item::before {
  content: counter(nav-entry, decimal-leading-zero);
  color: #6c8e77;
  font-size: 10px;
}
.nav-item svg {
  width: 15px;
  height: 15px;
}
.nav-item:hover {
  background: #14251a;
  color: #dff9e3;
}
.nav-item.active {
  background: #14291a;
  color: #b7ffa1;
  border-left-color: #9cf385;
  font-weight: 500;
}
.nav-item.active::before {
  color: #9cf385;
}
.nav-item .nav-count,
.nav-item.active .nav-count {
  background: #1c3322;
  color: #a9c7b2;
  border-radius: 1px;
}
.nav-gap {
  height: 20px;
}
.local-note {
  color: #a1b6a6;
  background: #0e1b12;
  border-color: #294432;
  border-radius: 2px;
  margin: 20px 1px 16px;
  padding: 11px;
}
.local-note strong {
  color: #b7dbbe;
}
.account {
  border-top-color: var(--line);
  padding-left: 2px;
  padding-right: 2px;
}
.account .user-name {
  color: #d4e6d8;
}
.account button {
  color: #a5c3af;
}
.avatar {
  background: #192c1f;
  color: #b7dbbe;
  border: 1px solid #35553e;
  border-radius: 2px;
  font-weight: 500;
}
.topbar {
  background: #0b140e;
  border-bottom-color: #2a4331;
  height: 62px;
  padding-left: 26px;
  padding-right: 26px;
}
.crumb {
  color: #99b2a1;
  gap: 9px;
}
.crumb > svg {
  display: none;
}
.crumb::before {
  content: "aliune@";
  color: #9cf385;
}
.crumb strong {
  color: #c6e4ce;
}
.top-actions {
  gap: 12px;
}
.connection-label {
  color: #a0b6a6;
  font-size: 10px;
}
.connection-label::before {
  content: "[";
  color: #6f8b77;
}
.connection-label::after {
  content: "]";
  color: #6f8b77;
}
.dot {
  background: #9cf385;
  border-radius: 1px;
}
.dot.gray {
  background: #7e9384;
}
.icon-button {
  color: #9bb5a2;
}
.icon-button:hover {
  background: #1a2c20;
  border-radius: 1px;
  color: #bcffad;
}
.main {
  padding-top: 25px;
  padding-left: 26px;
  padding-right: 26px;
}
.page-heading {
  margin-bottom: 23px;
  flex-wrap: wrap;
}
.page-heading > div:first-child {
  min-width: 0;
  flex: 1 1 300px;
}
.page-heading .heading-actions {
  margin-left: auto;
  max-width: 100%;
  flex-shrink: 1;
  flex-wrap: wrap;
}
.page-foot > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.page-heading p {
  color: #a0b4a5;
  font-size: 11px;
  line-height: 1.8;
}
.button {
  color: #c4ddca;
  background: #132019;
  border: 1px solid #3b5943;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  padding: 9px 12px;
}
.button:hover {
  color: #dfffd5;
  background: #1a2e20;
  border-color: #87c47a;
}
.button.primary {
  color: #0b1a0e;
  background: #9cf385;
  border-color: #9cf385;
  font-weight: 650;
}
.button.primary:hover {
  color: #071009;
  background: #b6ffa4;
  border-color: #b6ffa4;
}
.button.danger {
  color: #ffaaa0;
  background: #261813;
  border-color: #6f4136;
}
.button.danger:hover {
  background: #392019;
  border-color: #d97d66;
}
.button.text {
  color: #a4ef94;
  background: transparent;
}
.banner,
.tip,
.security-callout {
  background: #111e16;
  border: 1px solid #304b37;
  border-radius: 2px;
  color: #b2c8b8;
}
.banner {
  padding: 14px 16px;
  margin-bottom: 20px;
}
.banner strong,
.tip strong,
.security-callout strong {
  color: #cef1cc;
}
.banner svg {
  color: #9bcd9f;
}
.banner p {
  color: #a8c1ae;
}
.banner.warn {
  color: #f2d89c;
  background: #201b11;
  border-color: #5a4727;
}
.banner.warn strong,
.banner.warn svg {
  color: #f2c76f;
}
.banner.warn p {
  color: #d7bd8a;
}
.metrics {
  gap: 12px;
  margin-bottom: 20px;
}
.metric,
.card,
.office-card {
  background: var(--terminal-panel);
  border-color: var(--line);
  border-radius: 2px;
  box-shadow: none;
}
.metric {
  padding: 17px;
  border-top: 2px solid #426448;
}
.metric-label {
  color: #adbfaf;
  font-size: 10px;
}
.metric-label svg {
  color: #7da687;
}
.metric-value {
  color: #b9ffa3;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.08em;
}
.metric-note {
  color: #91aa99;
}
.card-head {
  background: #101c14;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 17px;
}
.card-head h2 {
  color: #c1e7bf;
  font-size: 12px;
}
.card-head h2::before {
  content: "[ ";
  color: #6a9772;
}
.card-head h2::after {
  content: " ]";
  color: #6a9772;
}
.card-head p {
  color: #9db3a3;
  font-size: 10px;
}
.card-body {
  padding-left: 18px;
  padding-right: 18px;
}
.card-head:has(+ .table-wrap),
.card-head:has(+ .toolbar) {
  margin-bottom: 0;
}
.badge {
  color: #b1c6b8;
  background: #1b2b21;
  border: 1px solid #314c39;
  border-radius: 1px;
  padding: 3px 6px;
  font-size: 10px;
}
.badge.good {
  color: #b4f39d;
  background: #192c18;
  border-color: #446c38;
}
.badge.warn {
  color: #f0cb7e;
  background: #292113;
  border-color: #634d26;
}
.badge.bad {
  color: #ffaaa0;
  background: #2d1916;
  border-color: #754339;
}
.badge.blue {
  color: #a3d7e8;
  background: #13252a;
  border-color: #345a68;
}
.setup-step,
.network-summary,
.status-row,
.activity + .activity,
.table-footer,
.office-card .office-stats,
.form-actions {
  border-color: var(--line);
}
.step-number {
  background: #14221a;
  color: #aac5b1;
  border-color: #35503e;
  border-radius: 1px;
}
.step-number.done {
  background: #1a301c;
  color: #b6f8a0;
  border-color: #456e3a;
}
.setup-step p,
.network-node,
.status-row p {
  color: #9bb3a1;
}
.network-node .node-icon {
  color: #b0deac;
  background: #15271a;
  border-color: #345a3e;
  border-radius: 2px;
}
.network-node strong,
.network-summary strong {
  color: #c4eac3;
}
.network-summary {
  color: #a1b9a8;
}
.network-line,
.network-line::after {
  background: #53775b;
}
.toolbar {
  padding: 12px 18px;
  background: #0b1510;
}
.search {
  color: #98b5a1;
}
.search input {
  color: #d4e6d8;
  font-family: inherit;
}
input::placeholder,
textarea::placeholder {
  color: #829b8a;
  opacity: 1;
}
.toolbar select {
  border-color: #38563f;
  background: #122018;
  color: #c4ddca;
  border-radius: 1px;
}
.table-wrap {
  scrollbar-color: #44684d #0b140e;
  scrollbar-width: thin;
}
th {
  color: #a8c4b0;
  background: #101d15;
  border-bottom-color: #304c38;
  font-size: 10px;
  padding: 11px 18px;
  text-transform: uppercase;
}
td {
  color: #b0c6b6;
  border-bottom-color: #1f3526;
  padding: 14px 18px;
  font-size: 11px;
}
tbody tr:hover {
  background: #13231a;
}
.type-icon {
  background: #14251a;
  border-color: #304a38;
  border-radius: 1px;
  color: #9fc9a5;
  padding: 7px;
}
.cell-title strong {
  color: #d5e9d8;
  font-weight: 500;
  font-size: 11px;
  max-width: 180px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.cell-title small {
  color: #91aa99;
}
.table-footer {
  color: #91aa99;
  padding-left: 18px;
  padding-right: 18px;
}
.empty .empty-icon,
.activity-icon {
  border-color: #344d3b;
  background: #14231a;
  color: #9abda1;
  border-radius: 2px;
}
.empty h3 {
  color: #bdddc4;
}
.empty p {
  color: #9db4a4;
}
.activity p {
  color: #c0ddc1;
}
.activity small,
.activity time {
  color: #91aa99;
}
.page-foot {
  color: #829b8a;
  font-size: 9px;
  gap: 16px;
  border-top: 1px solid #203428;
  margin-top: 23px;
  padding-top: 14px;
}
.field {
  color: #c6dccb;
  font-size: 11px;
}
.field small {
  color: #91aa99;
}
.field input,
.field select,
.field textarea {
  color: #d9efdd;
  background: #09110c;
  border-color: #3a5842;
  border-radius: 1px;
  padding: 11px 12px;
  font-size: 12px;
  caret-color: #b6ffa4;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #9cf385;
  outline: 1px solid #9cf385;
}
.field.checkbox input {
  accent-color: #9cf385;
}
.error {
  color: #ffaaa0;
  background: #2a1915;
  border-color: #734538;
  border-radius: 1px;
}
.success {
  color: #b7e8a7;
  background: #192c18;
  border-color: #456a39;
  border-radius: 1px;
}
.mono-block {
  color: #b4e9a2;
  background: #080f0b;
  border-color: #38563e;
  border-radius: 1px;
  font-size: 11px;
}
dialog {
  background: #0d1710;
  color: #d4e6d8;
  border-color: #55775a;
  border-radius: 2px;
  box-shadow: 0 20px 100px #000c;
}
dialog::backdrop {
  background: #020703cf;
  backdrop-filter: none;
}
.modal-head {
  background: #132019;
  border-bottom-color: #304b37;
}
.modal-head h2::before {
  content: "> ";
  color: #9cf385;
}
.modal-head p {
  color: #a2baaa;
}
#toast {
  color: #ceefca;
  background: #15281a;
  border-color: #547f4d;
  border-radius: 2px;
  box-shadow: 0 8px 30px #0008;
}
.auth-shell {
  background: #080e0b;
}
.auth-art {
  color: #c6e1c8;
  background: #0c180f;
  border-right: 1px solid #2a4431;
}
.auth-art h1 {
  color: #b6ffa4;
  font-size: clamp(30px, 4vw, 49px);
  letter-spacing: -0.055em;
  line-height: 1.2;
}
.auth-art p,
.auth-feature {
  color: #a8c6ae;
}
.auth-feature svg {
  color: #a4db95;
}
.auth-art .auth-foot {
  color: #89a890;
}
.auth-form h1 {
  font-size: 24px;
  color: #d7f2db;
}
.auth-form {
  position: relative;
}
.auth-form .language-auth {
  position: absolute;
  top: -45px;
  right: 0;
  width: auto;
  float: none;
  margin: 0;
  padding: 7px 10px;
}
.auth-form > p,
.auth-security {
  color: #9bb5a2;
}
.auth-security {
  border-top-color: var(--line);
}
.plain-list,
.office-card p,
.detail-title p,
.data-grid label {
  color: #9fb6a7;
}
.office-card .office-stats {
  color: #9bb3a3;
}
.office-card .office-stats strong {
  color: #c4efb5;
}
.tag {
  border-color: #3b5942;
  color: #b9dbaf;
  background: #16271b;
  border-radius: 1px;
}
.chart-empty {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 32px,
    #1b3022 33px
  );
  color: #91aa99;
}
@media (max-width: 1100px) {
  th,
  td {
    padding-left: 14px;
    padding-right: 14px;
  }
  .cell-title strong {
    max-width: 140px;
  }
  .sidebar .brand {
    font-size: 18px;
    gap: 5px;
  }
  .sidebar .brand small {
    font-size: 7px;
    letter-spacing: 0.5px;
    margin-left: 0;
  }
  .crumb {
    max-width: 65%;
    font-size: 10px;
  }
  .crumb > span:first-of-type {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .connection-label {
    max-width: 185px;
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  .auth-form .language-auth {
    position: static;
    width: fit-content;
    margin: 0 0 20px auto;
    display: flex;
  }
  .button,
  .icon-button {
    min-height: 40px;
  }
  .crumb > span:first-of-type {
    display: none;
  }
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .crumb::before {
    display: none;
  }
  .crumb {
    max-width: 72%;
  }
  .main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .shell.menu-open .sidebar {
    box-shadow: 20px 0 80px #000d;
  }
  .nav-item {
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .auth-art {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .page-foot {
    flex-direction: column;
    gap: 8px;
  }
  .page-heading {
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
