/* public/src/styles.css */
/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --spacing: .25rem;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::-webkit-file-upload-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    color: inherit;
    border-top-width: 1px;
    height: 0;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    position: relative;
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::-webkit-file-upload-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:-webkit-any([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:-moz-any([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:-webkit-any([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  :where(select:-moz-any([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::-webkit-file-upload-button {
    margin-inline-end: 4px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports ( not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    text-align: inherit;
    min-height: 1lh;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button {
    appearance: button;
  }

  input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::-webkit-file-upload-button {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .z-50 {
    z-index: 50;
  }

  .\!container {
    width: 100% !important;
  }

  @media (min-width: 40rem) {
    .\!container {
      max-width: 40rem !important;
    }
  }

  @media (min-width: 48rem) {
    .\!container {
      max-width: 48rem !important;
    }
  }

  @media (min-width: 64rem) {
    .\!container {
      max-width: 64rem !important;
    }
  }

  @media (min-width: 80rem) {
    .\!container {
      max-width: 80rem !important;
    }
  }

  @media (min-width: 96rem) {
    .\!container {
      max-width: 96rem !important;
    }
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .table {
    display: table;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .items-center {
    align-items:  center;
  }

  .justify-between {
    justify-content: space-between;
  }

  :where(.space-y-3 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .text-right {
    text-align: right;
  }

  .lowercase {
    text-transform: lowercase;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  @media (min-width: 40rem) {
    .sm\:col-span-2 {
      grid-column: span 2 / span 2;
    }
  }
}

:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button, input, select, textarea {
  font: inherit;
}

.focus-ring {
  outline: none;
}

.focus-ring:focus-visible {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

html[data-theme="dark"], .app-root {
  --bg-base: #061b38;
  --bg-outer: radial-gradient(circle at 46% 58%, #0084fff2 0, #0055d2cc 22%, #05224bfa 52%, #041326 100%);
  --surface: #050f2bdb;
  --surface-strong: #07102cf2;
  --surface-soft: #142249bd;
  --surface-hover: #ffffff14;
  --line: #aec7ff33;
  --line-strong: #ccddff57;
  --text: #f8fbff;
  --muted: #a9b7d0;
  --subtle: #74839f;
  --accent: #0b84ff;
  --accent-strong: #0576ff;
  --accent-soft: #0b84ff2e;
  --ok: #00d395;
  --warn: #ffb547;
  --danger: #ff445f;
  --shadow: 0 26px 60px #00082057;
  --focus-ring: #0b84ff5c;
}

.app-root {
  color: var(--text);
  background: var(--bg-base);
  min-height: 100vh;
}

html[data-theme="light"], .app-root.theme-light {
  --bg-base: #eef6ff;
  --bg-outer: radial-gradient(circle at 45% 58%, #3091ff73 0, #cae2ffe6 34%, #eef6ff 68%, #f7fbff 100%);
  --surface: #ffffffd1;
  --surface-strong: #fffffff5;
  --surface-soft: #eef5ffd6;
  --surface-hover: #1259b014;
  --line: #32528429;
  --line-strong: #2048843d;
  --text: #071326;
  --muted: #4b5d78;
  --subtle: #697b96;
  --accent: #0576ff;
  --accent-strong: #0068e5;
  --accent-soft: #0576ff1f;
  --shadow: 0 24px 56px #224e892e;
  --focus-ring: #0576ff47;
}

.app-root:before {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: var(--bg-outer);
  inset: 0;
}

.app-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 22px;
  min-height: 100vh;
  padding: 12px;
}

.vision-sidebar {
  position: sticky;
  display: flex;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: linear-gradient(#070e26f0, #04112be0);
  border-radius: 20px;
  flex-direction: column;
  height: calc(100vh - 24px);
  padding: 26px 16px;
  top: 12px;
}

.theme-light .vision-sidebar {
  background: linear-gradient(#ffffffeb, #e6f1ffd6);
}

.brand-block {
  display: flex;
  border-bottom: 1px solid var(--line);
  align-items:  center;
  gap: 13px;
  padding: 8px 14px 26px;
}

.brand-mark, .page-icon, .panel-icon, .metric-icon, .nav-icon {
  display: grid;
  color: #fff;
  background: linear-gradient(135deg, #0b84ff, #005dff);
  flex: none;
  place-items:  center;
  box-shadow: 0 12px 24px #0065ff42;
}

.brand-mark {
  border-radius: 13px;
  width: 42px;
  height: 42px;
}

.brand-title {
  letter-spacing: .18em;
  font-size: 14px;
  font-weight: 800;
}

.brand-subtitle, .breadcrumb, .panel-header p, .metric-detail, .system-note, .modal-header p {
  color: var(--muted);
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 26px;
}

.nav-item {
  display: flex;
  color: var(--muted);
  text-align: left;
  background: none;
  border: 0;
  border-radius: 14px;
  align-items:  center;
  gap: 14px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  transition: background .16s, color .16s, transform .16s;
  font-size: 14px;
  font-weight: 700;
}

.nav-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.nav-item-active {
  color: var(--text);
  background: #ffffff1f;
}

.theme-light .nav-item-active {
  background: #0576ff1f;
}

.nav-icon {
  border-radius: 10px;
  width: 30px;
  height: 30px;
}

.main-shell {
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 18px;
  min-height: 88px;
  padding: 22px 18px 18px;
}

.page-title-group {
  display: flex;
  align-items:  center;
  gap: 14px;
}

.page-icon {
  border-radius: 14px;
  width: 42px;
  height: 42px;
}

.breadcrumb {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
}

.page-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items:  center;
  gap: 10px;
}

.search-box {
  display: flex;
  border: 1px solid var(--line);
  color: var(--subtle);
  background: #0b0f2a8a;
  border-radius: 14px;
  align-items:  center;
  gap: 10px;
  min-width: 210px;
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.theme-light .search-box {
  background: #ffffffb3;
}

.theme-toggle, .icon-only {
  display: inline-grid;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  place-items:  center;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 14px;
  width: 40px;
  height: 40px;
}

.content-shell {
  padding: 0 18px 28px;
}

.dashboard-stack {
  display: grid;
  gap: 22px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-card, .vision-panel, .modal-panel {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff0a, #ffffff03), var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.metric-card {
  border-radius: 18px;
  min-height: 88px;
  padding: 18px 20px;
}

.metric-card-header {
  display: flex;
  color: var(--muted);
  justify-content: space-between;
  align-items:  center;
  font-size: 13px;
  font-weight: 700;
}

.metric-icon, .panel-icon {
  border-radius: 13px;
  width: 40px;
  height: 40px;
}

.metric-value {
  color: var(--text);
  margin-top: 8px;
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
}

.metric-detail {
  margin-top: 6px;
  font-size: 12px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 22px;
}

.vision-panel {
  overflow: hidden;
  border-radius: 20px;
}

.panel-header {
  display: flex;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items:  center;
  gap: 16px;
  padding: 22px 24px;
}

.panel-header.compact {
  justify-content: flex-start;
  padding: 18px 22px;
}

.panel-title-row {
  display: flex;
  align-items:  center;
  gap: 14px;
}

.panel-icon.small {
  border-radius: 11px;
  width: 32px;
  height: 32px;
}

.panel-header h2 {
  color: var(--text);
  margin: 0;
  font-size: 18px;
  font-weight: 850;
}

.panel-header p {
  margin: 5px 0 0;
  font-size: 13px;
}

.panel-body, .modal-content {
  padding: 22px 24px;
}

.empty-state, .empty-cell {
  color: var(--muted);
  text-align: center;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  padding: 42px 16px;
  font-size: 14px;
}

.table-frame {
  overflow: hidden;
  border-radius: 16px;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  min-width: 640px;
  font-size: 14px;
}

.data-table thead {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
}

.data-table th, .data-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
}

.data-table th {
  font-weight: 800;
}

.data-table td {
  color: var(--text);
  font-weight: 600;
}

.data-table tbody tr:hover {
  background: var(--surface-hover);
}

.empty-cell {
  padding: 42px 10px !important;
  font-weight: 600 !important;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.modal-backdrop {
  position: fixed;
  backdrop-filter: blur(8px);
  background: #000512a8;
  inset: 0;
}

.modal-viewport {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items:  center;
  padding: 18px;
  inset: 0;
}

.modal-panel {
  overflow-y: auto;
  color: var(--text);
  border-radius: 22px;
  width: min(720px, 100%);
  max-height: 88vh;
}

.modal-panel-sm {
  width: min(460px, 100%);
}

.modal-header {
  display: flex;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items:  center;
  padding: 20px 24px;
}

.modal-header.block {
  display: block;
}

.modal-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 850;
}

.modal-header p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.modal-footer {
  display: flex;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 24px;
}

.field-label, .switch-field label {
  display: block;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 750;
}

.required-mark {
  color: var(--danger);
  margin-left: 4px;
}

.form-control, .select-button {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: #090e277a;
  border-radius: 15px;
  width: 100%;
  font-size: 14px;
}

html[data-theme="light"] .form-control, html[data-theme="light"] .select-button {
  background: #ffffffd6;
}

.form-control {
  height: 44px;
  padding: 0 14px;
}

.textarea-control {
  resize: vertical;
  min-height: 104px;
  padding: 12px 14px;
}

.select-wrap {
  position: relative;
}

.select-button {
  display: flex;
  text-align: left;
  justify-content: space-between;
  align-items:  center;
  height: 44px;
  padding: 0 14px;
}

.select-options {
  position: absolute;
  z-index: 20;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  border-radius: 15px;
  width: 100%;
  max-height: 240px;
  margin-top: 8px;
  padding: 6px;
  font-size: 14px;
}

.select-option {
  cursor: pointer;
  color: var(--text);
  border-radius: 11px;
  padding: 10px 12px;
}

.select-option[data-focus] {
  background: var(--accent-soft);
}

.switch-field {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 15px;
  justify-content: space-between;
  align-items:  center;
  min-height: 54px;
  padding: 0 14px;
}

.switch-field label {
  margin: 0;
}

.switch-control {
  position: relative;
  display: inline-flex;
  background: #8292b46b;
  border: 0;
  border-radius: 999px;
  align-items:  center;
  width: 46px;
  height: 24px;
  transition: background .16s;
}

.switch-control span {
  display: inline-block;
  background: #fff;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  transition: transform .16s;
  transform: translateX(4px);
}

.switch-control.switch-on {
  background: var(--accent);
}

.switch-control.switch-on span {
  transform: translateX(24px);
}

.primary-button, .secondary-button, .small-button {
  display: inline-flex;
  border-radius: 13px;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  transition: background .16s, border .16s, color .16s, transform .16s;
  font-weight: 800;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  border: 0;
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  box-shadow: 0 14px 28px #0069ff47;
}

.primary-button:hover, .small-button:hover, .secondary-button:hover {
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: none;
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.small-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: #ffffff0a;
  min-height: 32px;
  padding: 0 11px;
  font-size: 12px;
}

.small-button-danger {
  color: var(--danger);
  background: #ff445f17;
  border-color: #ff445f52;
}

.status-pill, .status-badge {
  display: inline-flex;
  border: 1px solid #0000;
  border-radius: 10px;
  align-items:  center;
  font-size: 12px;
  font-weight: 800;
}

.status-pill {
  min-height: 34px;
  padding: 0 12px;
}

.status-badge {
  padding: 6px 10px;
}

.status-ok {
  color: var(--ok);
  background: #00d39521;
  border-color: #00d39542;
}

.status-danger {
  color: var(--danger);
  background: #ff445f21;
  border-color: #ff445f47;
}

.status-warn {
  color: var(--warn);
  background: #ffb54721;
  border-color: #ffb54747;
}

.status-muted {
  border-color: var(--line);
  color: var(--muted);
  background: #ffffff0a;
}

.status-row {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 15px;
  justify-content: space-between;
  align-items:  center;
  padding: 14px;
}

.status-row > div {
  display: flex;
  color: var(--text);
  align-items:  center;
  gap: 10px;
  font-size: 14px;
  font-weight: 750;
}

.status-value-ok {
  color: var(--ok);
  font-size: 14px;
  font-weight: 850;
}

.status-value-danger, .text-danger {
  color: var(--danger);
}

.text-ok {
  color: var(--ok);
}

.system-note {
  background: #ffffff0d;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12px;
}

.notice {
  display: flex;
  color: var(--text);
  background: #ffb54721;
  border: 1px solid #ffb54752;
  border-radius: 16px;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .vision-sidebar {
    position: static;
    height: auto;
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-grid, .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-grid {
    gap: 12px;
    padding: 8px;
  }

  .topbar, .panel-header, .modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions, .row-actions {
    justify-content: flex-start;
  }

  .overview-grid, .metrics-grid, .form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-item {
    gap: 10px;
    min-height: 42px;
    padding: 0 10px;
    font-size: 13px;
  }

  .search-box {
    min-width: 100%;
  }

  .content-shell {
    padding: 0 8px 22px;
  }

  .panel-body, .modal-content, .form-grid {
    padding: 18px;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-space-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@layer properties {
  @supports ((-webkit-hyphens: none) and ( not (margin-trim: inline))) or ((-moz-orient: inline) and ( not (color:rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-space-y-reverse: 0;
      --tw-border-style: solid;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}
