@font-face {
  font-family: "Ubuntu Sans";
  src: url("/assets/UbuntuSans.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

body {
  font-size: 14px;
  line-height: 1.45;
}

button, input, textarea, select { font: inherit; color: inherit; }
button, select, input[type="submit"] { cursor: pointer; }
[hidden] { display: none !important; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--kx-color-focus);
  outline-offset: 3px;
}
a { text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 600; }
h1 { font-size: 26px; letter-spacing: -.035em; }
h2 { font-size: 16px; letter-spacing: -.015em; }
h3 { font-size: 13px; }
p { margin: 0; }
svg { flex-shrink: 0; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 5;
  inset: 12px auto auto 12px;
  padding: 12px;
  background: var(--kx-color-surface);
}

.workspace {
  --nav-width: 224px;
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
}
.workspace.is-compact { --nav-width: 72px; }
.sidebar, .mobile-menu {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--kx-color-shell);
  border-inline-end: 1px solid var(--kx-color-line);
  padding: 0 14px 16px;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; min-height: 76px; }
.brand img { object-fit: contain; height: auto; aspect-ratio: 1; }
.brand > span {
  font-size: 12px;
  color: var(--kx-color-text-muted);
  border-inline-start: 1px solid var(--kx-color-line-strong);
  padding-inline-start: 10px;
}
.navigation { display: grid; gap: 20px; padding-top: 13px; }
.navigation-group { display: grid; gap: 3px; }
.navigation-label {
  padding: 0 12px 7px;
  color: var(--kx-color-text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.navigation a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--kx-color-text-soft);
  font-size: 13px;
  font-weight: 450;
}
.navigation a:hover { background: var(--kx-color-surface-subtle); }
.navigation a[aria-current="page"] { background: var(--kx-color-surface); color: var(--kx-color-text); font-weight: 600; }
.navigation a[aria-current="page"] svg { color: var(--kx-color-action-text); }
.sidebar-footer { margin-top: auto; padding: 24px 9px 0; display: grid; gap: 3px; }
.sidebar-footer button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 3px;
  border: 0;
  background: transparent;
  color: var(--kx-color-text-muted);
  font-size: 12px;
}
.sidebar-footer :is(button:hover, button:focus-visible) { color: var(--kx-color-text); }
.theme-moon, .theme-sun { display: inline-flex; }
[data-kaxis-theme="light"] .theme-sun, [data-kaxis-theme="dark"] .theme-moon { display: none; }
.operator {
  display: flex;
  align-items: center;
  gap: 9px;
  border-block-start: 1px solid var(--kx-color-line);
  margin-top: 14px;
  padding-top: 16px;
  font-size: 12px;
}
.operator strong { font-weight: 500; }
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--kx-color-surface);
  font-size: 10px;
  font-weight: 600;
}
.is-compact .sidebar :is(.brand > span, .navigation-label, .navigation a > span, .operator strong, .logout span, [data-theme-toggle] > span:last-child) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.is-compact .brand { padding: 0; justify-content: center; }
.is-compact .brand img { max-width: 44px; }
.is-compact .sidebar-footer { padding-inline: 0; }
.is-compact .sidebar-footer button, .is-compact .operator { justify-content: center; width: 100%; }

.workspace-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 64px;
  padding: 0 32px;
  background: var(--kx-color-shell);
  border-block-end: 1px solid var(--kx-color-line);
}
.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--kx-color-text-muted);
}
.icon-button:hover { background: var(--kx-color-surface); }
.mobile-toggle { display: none; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--kx-color-text-muted);
  font-size: 12px;
}
.breadcrumb svg { width: 13px; height: 13px; }
.breadcrumb strong { color: var(--kx-color-text); font-weight: 500; }
.environment-label { margin-inline-start: auto; color: var(--kx-color-text-muted); font-size: 11px; }
.workspace-content { flex: 1; min-height: 0; width: 100%; max-width: 1728px; margin: 0 auto; padding: 28px 32px 32px; overflow-y: auto; overscroll-behavior: contain; }
.workspace-content > h1 { margin-bottom: 25px; }
.heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 25px; }
.panel { background: var(--kx-color-surface); border: 1px solid var(--kx-color-line); border-radius: 18px; min-width: 0; overflow: hidden; }
.panel-title { padding: 21px 22px 18px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--kx-color-line-strong);
  border-radius: 10px;
  padding: 8px 14px;
  background: var(--kx-color-surface);
  color: var(--kx-color-text);
  font-size: 13px;
  font-weight: 550;
  text-align: center;
}
.button:hover { background: var(--kx-color-surface-subtle); }
.primary, .primary:is(:hover, :active) { background: var(--kx-color-cta); color: var(--kx-color-on-cta); border-color: transparent; }
.primary:focus-visible { outline: 2px solid var(--kx-color-cta-outline); outline-offset: 0; box-shadow: none; }
.quiet-link { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; color: var(--kx-color-text-muted); font-size: 12px; }
.quiet-link:hover { color: var(--kx-color-text); text-decoration: underline; text-underline-offset: 4px; }
.back-link { margin-bottom: 10px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0 22px 18px; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 160px;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--kx-color-line);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--kx-color-text-muted);
}
.search input {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--kx-color-text);
  font-size: 12px;
  line-height: 1.3;
}
.search input::placeholder { color: var(--kx-color-text-muted); }
.search:focus-within { outline: 2px solid var(--kx-color-focus); outline-offset: 2px; }
.search input:focus-visible { outline: none; }
select, .stacked-form :is(input:not([type="hidden"], [type="submit"]), textarea) {
  min-height: 40px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--kx-color-line-strong);
  border-radius: 10px;
  background: var(--kx-color-surface);
}
.row-labels, .record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 25%) 18px;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  min-height: 52px;
}
.row-labels { min-height: 0; background: var(--kx-color-shell); border-block: 1px solid var(--kx-color-line); color: var(--kx-color-text-muted); font-size: 11px; }
.record-list { list-style: none; padding: 0; margin: 0; }
.records .record-list li + li, .record-list .record-row + .record-row { border-top: 1px solid var(--kx-color-line); }
.record-row:is(a):hover, .demand-card:hover { background: var(--kx-color-surface-subtle); }
.record-row > svg { justify-self: end; grid-column: -2; color: var(--kx-color-text-muted); }
.record-row strong, .demand-card strong { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.record-main { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.record-main small, .records-footer, .source-date, .column-empty { color: var(--kx-color-text-muted); font-size: 12px; }
.source-date { margin: -14px 0 16px; }
.pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid var(--kx-color-line);
  border-radius: var(--kx-radius-pill);
  padding: 3px 8px;
  background: var(--kx-color-surface-subtle);
  color: var(--kx-color-text-soft);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.records-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 22px; border-top: 1px solid var(--kx-color-line); }
.records-footer nav, .review-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.loading-indicator { padding: 0 22px 14px; color: var(--kx-color-text-muted); }
.state { display: grid; justify-items: start; gap: 10px; padding: 22px; }
.state p { color: var(--kx-color-text-muted); }
.details { padding: 21px 22px 22px; max-width: 760px; }
.details-list { margin: 0; padding: 8px 0; }
.details-list > div { display: grid; grid-template-columns: minmax(125px, 1fr) minmax(0, 2fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--kx-color-line); }
.details-list dt { color: var(--kx-color-text-muted); }
.details-list dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.stacked-form { display: grid; gap: 16px; }
.details h2 + .stacked-form, .review-actions { margin-top: 16px; }
.stacked-form :is(label, .form-field) { display: grid; gap: 5px; font-size: 13px; text-align: start; }
.stacked-form .primary { justify-self: start; min-height: 44px; }
.feedback { padding: 11px 14px; margin-bottom: 18px; border: 1px solid var(--kx-color-line); border-radius: 10px; background: var(--kx-color-surface); }
.is-error { color: var(--kx-color-danger-soft); }
.is-success { color: var(--kx-color-success-soft); }
.sign-in { display: grid; place-items: center; min-height: 100svh; padding: 32px 20px; }
.sign-in-panel { width: min(100%, 360px); padding: 24px; text-align: center; }
.sign-in-panel > img { object-fit: contain; margin-bottom: 16px; }
.sign-in-panel h1 { font-size: 24px; margin-bottom: 24px; }
.sign-in-panel .primary { justify-self: stretch; min-height: 48px; }
.demand-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.demand-toolbar .filters { flex: 1 1 200px; padding: 0; }
.tabs { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--kx-color-line); border-radius: 12px; background: var(--kx-color-shell); }
.tabs a { padding: 7px 12px; border-radius: 9px; color: var(--kx-color-text-muted); }
.tabs a[aria-current="page"] { background: var(--kx-color-surface); color: var(--kx-color-text); }
.demand-board { display: grid; align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.board-column { padding: 12px; }
.board-column h2 { display: flex; align-items: center; justify-content: space-between; padding: 4px 3px 12px; }
.board-column li + li { margin-top: 8px; }
.demand-card { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px; padding: 10px; border: 1px solid var(--kx-color-line); border-radius: 10px; }
.column-empty { padding: 9px 3px; }
.access-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.access-layout .details { max-width: none; }
.access-history { margin-top: 20px; }
.access-row, .history-row { grid-template-columns: minmax(0, 1fr) minmax(95px, auto); }
.mobile-menu:not([open]) { display: none; }
.consultation-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 560px;
  max-width: calc(100vw - 24px);
  height: 100dvh;
  max-height: 100dvh;
  padding: 32px;
  border: 1px solid var(--kx-color-line);
  border-radius: 18px 0 0 18px;
  background: var(--kx-color-surface);
  color: var(--kx-color-text);
}
.consultation-dialog::backdrop { background: rgb(0 0 0 / .48); }
.consultation-dialog .heading { margin: 0 40px 18px 0; }
.consultation-dialog .heading h2 { font-size: 22px; font-weight: 550; }
.consultation-dialog .details { padding: 0; border: 0; border-radius: 0; }
.detail-close { position: absolute; top: 20px; right: 20px; }
.detail-loading { margin-right: 45px; color: var(--kx-color-text-muted); }

@media (min-width: 761px) and (max-width: 1280px) {
  .workspace { --nav-width: 72px; }
  .sidebar :is(.brand > span, .navigation-label, .navigation a > span, .operator strong, .logout span, [data-theme-toggle] > span:last-child) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .sidebar .brand { padding: 0; justify-content: center; }
  .sidebar .brand img { max-width: 44px; }
  .sidebar .navigation a, .sidebar .sidebar-footer button, .sidebar .operator { justify-content: center; }
  .sidebar .navigation a { padding-inline: 8px; }
  .sidebar .sidebar-footer { padding-inline: 0; }
  .sidebar .sidebar-footer button { width: 100%; }
  .desktop-toggle { display: none; }
  .workspace-content { padding: 24px; }
}

@media (max-width: 760px) {
  .workspace, .workspace.is-compact { grid-template-columns: minmax(0, 1fr); }
  .sidebar, .desktop-toggle { display: none; }
  .mobile-toggle { display: grid; }
  .topbar { padding-inline: 14px; gap: 12px; }
  .workspace-content { padding: 20px 16px 24px; }
  .mobile-menu {
    position: fixed;
    inset: 0 auto 0 0;
    margin: 0;
    padding-top: 6px;
    width: min(280px, calc(100vw - 36px));
    height: 100dvh;
    max-width: none;
    max-height: none;
    color: var(--kx-color-text);
    border: 1px solid var(--kx-color-line);
    border-radius: 0 20px 20px 0;
  }
  .mobile-menu::backdrop { background: rgb(0 0 0 / .35); }
  .consultation-dialog { width: 100vw; max-width: 100vw; border-radius: 0; padding: 24px 20px; }
  .detail-close { top: 14px; right: 12px; }
  .menu-close { position: absolute; right: 9px; top: 12px; }
  .demand-board, .access-layout { grid-template-columns: minmax(0, 1fr); }
  .row-labels, .record-row { padding-inline: 14px; }
  .record-row { grid-template-columns: minmax(0, 1fr) minmax(65px, 34%) 14px; gap: 8px; }
  .access-row, .history-row { grid-template-columns: minmax(0, 1fr) auto; }
  .filters, .panel-title, .records-footer, .details { padding-inline: 14px; }
}
.workspace-content:has(.akrus-board-frame) { padding: 0; overflow: hidden; }
.akrus-board-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
