@font-face {
  font-family: "Noto Hub";
  src: url("/assets/noto-sans-georgian.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}

@font-face {
  font-family: "Noto Hub";
  src: url("/assets/noto-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --canvas: #eff2ee;
  --surface: #fdfefb;
  --ink: #172b25;
  --muted: #496057;
  --line: #d8e0d8;
  --forest: #13372e;
  --forest-deep: #122a24;
  --leaf: #d9f2ad;
  --radius: 16px;
  font: 1rem / 1.55 "Noto Hub", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--canvas); color: var(--ink); }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .62; cursor: default; }
:focus-visible { outline: 3px solid #426f52; outline-offset: 4px; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .48rem .88rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  font-size: .9rem;
  font-weight: 690;
  line-height: 1.25;
  text-align: center;
}

.button-primary { color: #fff; background: var(--forest); }
.button-primary:hover:enabled { background: #245141; }
.button-outline { color: var(--ink); border-color: #b8c9b9; background: var(--surface); }
.button-outline:hover:enabled { background: #e5eee0; border-color: #8ba48d; }

.wordmark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: .6rem;
  color: inherit;
  font-weight: 820;
  font-size: 1.22rem;
  letter-spacing: -.05em;
  text-decoration: none;
  line-height: 1.1;
}

.brand-mark {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: .6rem;
  background: var(--forest);
  color: var(--leaf);
}

.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.brand-mark::before { top: 8px; width: 23px; height: 18px; }
.brand-mark::after { top: 13px; width: 15px; height: 12px; }
.brand-mark i { position: absolute; bottom: 9px; left: 15px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.entry {
  display: grid;
  min-height: 100svh;
  align-items: center;
  justify-items: center;
  padding: clamp(1rem, 5vw, 3.5rem);
  background: linear-gradient(157deg, var(--forest-deep) 0 37%, var(--canvas) 37.12%);
}

.entry-card {
  width: min(100%, 31rem);
  padding: clamp(1.35rem, 5.5vw, 2.95rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 20px 65px #18362a16;
}

.entry h1 { margin-top: 1.4rem; font-size: clamp(1.6rem, 4vw, 2.35rem); line-height: 1.2; letter-spacing: -.042em; }
.entry-description { margin-top: .65rem; color: var(--muted); }
.entry form { display: grid; gap: .95rem; margin-top: 1.15rem; }
.entry form .button { justify-self: start; }
.field { display: grid; gap: .38rem; font-size: .92rem; font-weight: 650; }
.field input { width: 100%; min-width: 0; min-height: 45px; padding: .56rem .68rem; border: 1px solid #a6baa8; border-radius: .65rem; background: #f8faf6; color: var(--ink); font-size: 1rem; }
.entry #hub-retry { margin-top: .8rem; }

.notice { padding: .67rem .85rem; border: 1px solid #d6e4d0; border-radius: .65rem; background: #e8f0e3; color: #324f40; font-size: .91rem; }
.notice:empty { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
.notice[data-tone="error"] { color: #772d23; border-color: #f0d7d0; background: #fff2ed; }
.notice[data-tone="warning"] { color: #61471c; border-color: #ecdcb7; background: #fbf2dd; }
.entry .notice:not(:empty) { margin-top: 1rem; }
.dashboard > .notice:not(:empty) { margin-top: 1rem; }

.workspace { display: grid; grid-template-columns: minmax(13rem, 15rem) minmax(0, 1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1.7rem; height: 100svh; min-height: 24rem; overflow: auto; padding: 1.75rem 1rem 1rem; background: var(--forest-deep); color: #f7fbf3; }
.sidebar .wordmark { margin-inline-start: .35rem; }
.sidebar .brand-mark { color: var(--forest-deep); background: var(--leaf); }
.sidebar :focus-visible { outline-color: var(--leaf); }
.side-nav { display: grid; width: 100%; gap: .33rem; }
.side-nav a { display: flex; align-items: center; gap: .76rem; min-height: 45px; padding: .52rem .68rem; border: 1px solid transparent; border-radius: .65rem; color: #e3eee2; text-decoration: none; font-size: .92rem; font-weight: 650; }
.side-nav a:hover { background: #26443a; }
.side-nav a[aria-current="location"] { color: var(--leaf); border-color: #3a5c4e; background: #253f35; }
.sidebar-actions { display: flex; gap: .4rem; margin-top: auto; }
.sidebar-control { color: #edf5e9; background: transparent; border-color: #537065; }
.sidebar-control:hover:enabled { background: #27443a; }
#hub-menu { display: none; }
.skip-link { position: fixed; z-index: 2; inset: .7rem auto auto .7rem; padding: .6rem .8rem; border-radius: .55rem; transform: translateY(-180%); background: #fff; color: var(--ink); }
.skip-link:focus { transform: none; }

.nav-icon { display: inline-block; flex: 0 0 16px; width: 16px; height: 16px; opacity: .92; }
.nav-overview { background: linear-gradient(currentColor 0 0) 0 0 / 6px 6px no-repeat, linear-gradient(currentColor 0 0) 100% 0 / 6px 6px no-repeat, linear-gradient(currentColor 0 0) 0 100% / 6px 6px no-repeat, linear-gradient(currentColor 0 0) 100% 100% / 6px 6px no-repeat; }
.nav-systems { border: 1.5px solid; border-radius: 4px; background: linear-gradient(currentColor 0 0) center / 9px 1.5px no-repeat; }
.nav-requests { border: 1.5px solid; border-radius: 3px; background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 3px) center / 8px 7px no-repeat; }
.nav-services { border: 1.5px solid; border-radius: 50%; background: linear-gradient(currentColor 0 0) center / 8px 1.5px no-repeat, linear-gradient(currentColor 0 0) center / 1.5px 8px no-repeat; }

.dashboard { width: min(100%, 92rem); min-width: 0; padding: clamp(1rem, 3.65vw, 3.15rem); }
.dashboard-header { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1.3rem; padding-bottom: 1.15rem; border-bottom: 1px solid var(--line); }
.dashboard-label { margin-bottom: .25rem; color: var(--muted); font-size: .87rem; font-weight: 690; }
.dashboard-header h1 { font-size: clamp(1.9rem, 4.1vw, 3.35rem); line-height: 1.1; letter-spacing: -.055em; }
.dashboard-tools { display: flex; align-items: center; gap: .55rem .8rem; flex-wrap: wrap; }
.snapshot-label { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.snapshot-label time { display: block; margin-top: .17rem; color: var(--ink); font-weight: 650; }

.dashboard-section { margin-top: clamp(1.5rem, 3.25vw, 2.6rem); scroll-margin-block-start: 1rem; }
.dashboard-section h2 { margin-bottom: .75rem; font-size: clamp(1.24rem, 2.6vw, 1.7rem); line-height: 1.25; letter-spacing: -.025em; }
.system-grid, .summary-grid, .service-grid { display: grid; gap: .75rem; }
.system-grid { grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr)); }
.summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.system-card, .summary-card { min-width: 0; padding: clamp(.88rem, 2vw, 1.2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.system-card h3, .summary-card h3 { font-size: 1.02rem; line-height: 1.35; font-weight: 740; }
.system-card p { margin-top: .72rem; color: var(--muted); font-size: .91rem; }
.system-head { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: .55rem .45rem; }
.system-card-primary { color: #f7fbf4; border-color: var(--forest); background: var(--forest); }
.server-details, .summary-list { display: grid; margin-top: .8rem; }
.server-details div, .summary-list div { display: flex; justify-content: space-between; align-items: start; gap: .38rem 1rem; padding: .43rem 0; border-top: 1px solid var(--line); }
.server-details div { border-color: #47675b; }
.server-details dt, .summary-list dt { min-width: 0; color: var(--muted); font-size: .91rem; line-height: 1.4; }
.server-details dt { color: #e0ede0; }
.server-details dd, .summary-list dd { min-width: 0; font-weight: 710; font-variant-numeric: tabular-nums; font-size: .91rem; line-height: 1.4; text-align: end; overflow-wrap: anywhere; }
.server-details dd { flex: 0 0 auto; max-width: 45%; }
.summary-list dd { font-size: 1.05rem; }
.context-link { display: inline-block; width: fit-content; margin-top: .66rem; color: #24523c; font-size: .87rem; font-weight: 690; text-underline-offset: .21em; }
.context-link:hover { color: var(--forest-deep); }

.state { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; max-width: 100%; padding: .2rem .53rem; border-radius: 999px; color: var(--muted); background: #edf1ec; font-size: .79rem; font-weight: 710; line-height: 1.25; }
.state[data-state="on"] { color: #225338; background: #e2efdb; }
.state[data-state="off"] { color: #6b4b21; background: #f4ebd9; }
.state[data-state]::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; content: ""; }
.system-card-primary .state:not([data-state]) { color: #e2f0e5; background: #294e43; }
.system-card-primary .state[data-state="on"] { color: var(--forest); background: var(--leaf); }

.section-title p { margin: -.35rem 0 .85rem; color: var(--muted); font-size: .91rem; }
.service-link { display: flex; align-items: center; min-width: 0; min-height: 59px; padding: .7rem .82rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); font-weight: 690; font-size: .92rem; line-height: 1.3; text-decoration: none; }
.service-link::before { width: 9px; height: 9px; flex: 0 0 9px; margin-inline-end: .56rem; border: 1.5px solid #416f51; border-radius: 3px; content: ""; }
.service-link:hover { color: #295743; border-color: #83a68a; background: #e9f1e4; }

@media (max-width: 1010px) {
  .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-card-primary { grid-column: 1 / -1; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; height: auto; min-height: 0; gap: .68rem .75rem; padding: .8rem 1rem; overflow: visible; }
  .sidebar .wordmark { margin-inline: 0; }
  .side-nav { grid-row: 2; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .side-nav[data-open="false"] { display: none; }
  .side-nav a { gap: .38rem; min-height: 41px; padding: .4rem; font-size: .84rem; }
  .sidebar-actions { grid-column: 2; grid-row: 1; margin: 0; }
  #hub-menu { display: inline-flex; }
}

@media (max-width: 460px) {
  .system-grid, .summary-grid { grid-template-columns: minmax(0, 1fr); }
  .system-card-primary { grid-column: auto; }
  .side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-tools { align-items: start; }
}
