:root {
  --radius: 0.375rem;
  --background: oklch(0.958 0.006 255);
  --foreground: oklch(0.25 0.03 262);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.25 0.03 262);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.25 0.03 262);
  --primary: oklch(0.47 0.08 186);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.935 0.01 255);
  --secondary-foreground: oklch(0.3 0.035 262);
  --muted: oklch(0.945 0.008 255);
  --muted-foreground: oklch(0.5 0.03 258);
  --accent: oklch(0.94 0.028 186);
  --accent-foreground: oklch(0.36 0.07 186);
  --destructive: oklch(0.56 0.19 30);
  --border: oklch(0.895 0.012 255);
  --input: oklch(0.88 0.012 255);
  --ring: oklch(0.55 0.09 186);
  --chart-1: oklch(0.5 0.085 186);
  --chart-2: oklch(0.5 0.12 270);
  --chart-3: oklch(0.62 0.12 55);
  --chart-4: oklch(0.55 0.03 258);
  --chart-5: oklch(0.78 0.12 80);
  --sidebar: oklch(0.27 0.045 265);
  --sidebar-foreground: oklch(0.93 0.012 260);
  --sidebar-primary: oklch(0.8 0.11 75);
  --sidebar-primary-foreground: oklch(0.25 0.04 265);
  --sidebar-accent: oklch(0.335 0.05 265);
  --sidebar-accent-foreground: oklch(0.99 0 0);
  --sidebar-border: oklch(0.22 0.04 265);
  --sidebar-ring: oklch(0.8 0.11 75);
}

.dark {
  --background: oklch(0.17 0.018 260);
  --foreground: oklch(0.94 0.01 255);
  --card: oklch(0.215 0.02 260);
  --card-foreground: oklch(0.94 0.01 255);
  --popover: oklch(0.23 0.022 260);
  --popover-foreground: oklch(0.94 0.01 255);
  --primary: oklch(0.7 0.1 183);
  --primary-foreground: oklch(0.17 0.02 260);
  --secondary: oklch(0.27 0.022 260);
  --secondary-foreground: oklch(0.94 0.01 255);
  --muted: oklch(0.255 0.02 260);
  --muted-foreground: oklch(0.7 0.02 258);
  --accent: oklch(0.3 0.04 186);
  --accent-foreground: oklch(0.9 0.04 186);
  --destructive: oklch(0.68 0.17 28);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.62 0.09 186);
  --chart-1: oklch(0.7 0.1 183);
  --chart-2: oklch(0.68 0.12 270);
  --chart-3: oklch(0.72 0.12 55);
  --chart-4: oklch(0.65 0.03 258);
  --chart-5: oklch(0.82 0.12 80);
  --sidebar: oklch(0.135 0.02 262);
  --sidebar-foreground: oklch(0.9 0.012 260);
  --sidebar-primary: oklch(0.8 0.11 75);
  --sidebar-primary-foreground: oklch(0.2 0.03 265);
  --sidebar-accent: oklch(0.205 0.03 262);
  --sidebar-accent-foreground: oklch(0.99 0 0);
  --sidebar-border: oklch(1 0 0 / 8%);
  --sidebar-ring: oklch(0.8 0.11 75);
}

:root {
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --ink:var(--foreground);--text:var(--foreground);--teal:var(--primary);--line:var(--border);--soft:var(--muted);--bg:var(--background);--nav:var(--sidebar);
  font-family:var(--font-sans);color:var(--foreground);background:var(--background);
}
body.hedge { font-family:var(--font-sans); color:var(--foreground); background:var(--background); font-feature-settings:"tnum" 1; }
.hedge #app { min-height:100dvh; display:flex; flex-direction:column; }
.he-top-wrap,.he-page-wrap { width:100%; max-width:1600px; margin-inline:auto; }
.he-top-wrap { padding-inline:8px; }
.he-page-wrap { padding-inline:12px; }
.he-header-sticky { position:sticky; z-index:30; top:0; box-shadow:0 1px 2px #0002; }
.he-masthead,.he-module-nav { color:var(--sidebar-foreground); background:var(--sidebar); border-bottom:1px solid var(--sidebar-border); }
.he-masthead .he-top-wrap { height:48px; display:flex; align-items:center; gap:8px; }
.he-top-button,.he-search-launch { appearance:none; display:flex; align-items:center; justify-content:center; gap:8px; height:32px; padding-inline:8px; color:color-mix(in oklch,var(--sidebar-foreground) 86%,transparent); border:1px solid transparent; border-radius:6px; font-size:.8125rem; line-height:1; }
.he-top-button:hover,.he-top-button[aria-expanded=true] { color:var(--sidebar-accent-foreground); background:var(--sidebar-accent); }
.he-brand { display:flex; align-items:center; gap:8px; flex:none; color:var(--sidebar-accent-foreground); }
.he-brand-mark { display:grid; width:28px; height:28px; place-items:center; background:var(--sidebar-primary); color:var(--sidebar-primary-foreground); border-radius:5px; font-size:.8125rem; font-weight:700; }
.he-wordmark { display:none; font-size:.9375rem; font-weight:600; letter-spacing:-.025em; }
.he-wordmark>span { color:var(--sidebar-primary); }
.he-wordmark em { margin-left:4px; color:color-mix(in oklch,var(--sidebar-foreground) 60%,transparent); font-weight:400; font-style:normal; }
.he-masthead-rule { display:none; width:1px; height:20px; flex:none; background:var(--sidebar-border); }
.he-tenant { min-width:0; max-width:280px; }
.he-tenant .he-top-button,.he-search-launch { border-color:var(--sidebar-border); background:color-mix(in oklch,var(--sidebar-accent) 60%,transparent); }
.he-tenant .he-top-button { max-width:100%; overflow:hidden; }
.he-tenant .he-top-button span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500; }
.he-tenant .he-top-button svg { opacity:.72; }
.he-desktop-institute,.he-search-launch>span,.he-search-launch kbd,.he-demo-tag,.he-bell,.he-theme,.he-user-meta {display:none;}
.he-search-launch { margin-left:auto; width:32px; flex:none; color:color-mix(in oklch,var(--sidebar-foreground) 64%,transparent); }
.he-search-launch:hover { border-color:color-mix(in oklch,var(--sidebar-foreground) 40%,transparent); }
.he-search-launch kbd { font:500 .6875rem var(--font-sans); margin-left:auto; padding:3px 5px; border:1px solid var(--sidebar-border); border-radius:4px; background:var(--sidebar); white-space:nowrap; }
.he-top-actions { flex:none; display:flex; align-items:center; gap:2px; }
.he-profile { padding-inline:6px; gap:6px; }
.he-user-mark { width:28px; height:28px; display:grid; place-items:center; color:var(--sidebar-primary-foreground); background:var(--sidebar-primary); font-size:.6875rem; font-weight:600; border-radius:50%; }
.he-user-meta { min-width:0; max-width:190px; text-align:left; }
.he-user-meta strong,.he-user-meta small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.he-user-meta strong {color:var(--sidebar-accent-foreground); font-weight:500; font-size:.75rem;}
.he-user-meta small {color:color-mix(in oklch,var(--sidebar-foreground) 65%,transparent); font-size:.6875rem;}
.he-bell {position:relative; }
.he-bell>span {position:absolute; display:grid; place-items:center; min-width:16px; padding-inline:2px; height:16px; top:1px; right:1px; background:var(--sidebar-primary); color:var(--sidebar-primary-foreground); border-radius:20px; font-size:.625rem; font-weight:700;}
.he-demo-tag {color:var(--sidebar-primary);border:1px solid color-mix(in oklch,var(--sidebar-primary) 45%,transparent);border-radius:3px;font-size:.625rem;text-transform:uppercase;font-weight:600;letter-spacing:.06em;padding:2px 6px;white-space:nowrap;}
.he-popup-anchor,.he-nav-group { position:relative; }
.he-flyout,.he-mega-menu { position:absolute; z-index:45; border:1px solid var(--border); background:var(--popover); color:var(--popover-foreground); box-shadow:0 9px 22px #0002; }
.he-flyout { top:calc(100% + 5px); right:0; min-width:170px; max-width:min(288px,calc(100vw - 18px)); border-radius:6px; padding:4px; }
.he-tenant .he-flyout {right:auto; left:0; width:min(288px,calc(100vw - 78px));}
.he-flyout[hidden],.he-mega-menu[hidden] { display:none; }
.he-flyout p {display:flex; gap:6px; align-items:center; padding:6px 8px; font-size:.75rem; color:var(--muted-foreground);}
.he-flyout .he-account-note {border-top:1px solid var(--border);margin-top:4px;}
.he-flyout button {display:flex;gap:8px;align-items:center;width:100%;border:0;border-radius:4px;padding:7px 8px;text-align:left;font-size:.8125rem;}
.he-flyout button:hover,.he-flyout button:focus-visible {background:var(--accent);color:var(--accent-foreground);}
.he-flyout button span {flex:1;}
.he-flyout .he-option-space {flex:none;width:14px;}
.he-module-nav {display:none;}
.he-module-nav .he-top-wrap {display:flex;align-items:stretch;overflow-x:auto;scrollbar-width:none;}
.he-module-tab {position:relative; display:flex; align-items:center; flex:none; gap:6px; height:40px; padding-inline:14px; color:color-mix(in oklch,var(--sidebar-foreground) 80%,transparent); font-size:.8125rem; font-weight:500; white-space:nowrap;}
.he-module-tab svg {opacity:.8;}
.he-module-tab:hover,.he-module-tab.is-current {color:var(--sidebar-accent-foreground);background:var(--sidebar-accent);}
.he-module-tab.is-current::after {content:"";position:absolute;inset:auto 0 0;height:3px;background:var(--sidebar-primary);}
.he-module-tab[aria-expanded=true] {color:var(--foreground);background:var(--card);}
.he-home-label {display:none;}
.he-mega-menu {position:fixed;top:var(--flyout-top,89px);left:var(--flyout-left,8px);min-width:320px;max-width:calc(100vw - 24px);border-top:3px solid var(--sidebar-primary);border-radius:0 0 6px 6px;}
.he-mega-head {display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--border);background:color-mix(in oklch,var(--muted) 60%,var(--card));padding:10px 16px;}
.he-mega-head strong,.he-mega-head small {display:block;}
.he-mega-head strong {font-size:.875rem;font-weight:600;}
.he-mega-head small,.he-mega-head a {font-size:.75rem;}
.he-mega-head small {color:var(--muted-foreground);}
.he-mega-head a {white-space:nowrap;color:var(--primary);font-weight:500;}
.he-mega-columns {display:grid;grid-auto-columns:minmax(168px,1fr);grid-auto-flow:column;gap:4px;padding:8px;}
.he-menu-group {min-width:0;}
.he-menu-group p {padding:6px 8px 4px;color:var(--muted-foreground);font-size:.6875rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;}
.he-menu-group a {display:block;border-radius:4px;padding:6px 8px;color:var(--primary);font-size:.8125rem;line-height:1.24;}
.he-menu-group a strong {display:block;font-weight:500;}
.he-menu-group a small {display:block;color:var(--muted-foreground);font-size:.75rem; line-height:1.35;}
.he-menu-group a:hover,.he-mega-head a:hover {background:var(--accent);}
.he-mobile-dialog,.he-search-dialog,.he-record-drawer,.he-record-dialog {padding:0;border:1px solid var(--border);background:var(--card);color:var(--foreground);box-shadow:0 12px 42px #0003;}
.he-mobile-dialog::backdrop,.he-search-dialog::backdrop,.he-record-drawer::backdrop,.he-record-dialog::backdrop {background:rgb(0 0 0 / 50%);}
.he-mobile-dialog {position:fixed;inset:0 auto 0 0;width:min(320px,92vw);height:100dvh;max-height:none;max-width:none;margin:0;border-width:0 1px 0 0;}
.he-mobile-dialog[open] {display:flex;flex-direction:column;}
.he-drawer-heading {display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border);}
.he-mobile-content {padding:8px;overflow:auto;}
.he-mobile-home,.he-mobile-content summary {display:flex;align-items:center;gap:8px;padding:10px 8px;border-radius:5px;font-size:.875rem;font-weight:500;cursor:pointer;}
.he-mobile-content summary svg:last-child {margin-left:auto;}
.he-mobile-home:hover,.he-mobile-content summary:hover {background:var(--muted);}
.he-mobile-overview,.he-mobile-content .he-menu-group {display:block;margin-left:32px;}
.he-mobile-overview {color:var(--primary);font-size:.875rem;padding:6px 8px;}
.he-search-dialog {margin:min(15vh,115px) auto 0;max-height:min(70vh,510px);width:min(520px,calc(100vw - 24px));max-width:none;border-radius:8px;}
.he-search-field {display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border);color:var(--muted-foreground);}
.he-search-field input {flex:1;min-width:0;background:transparent;color:var(--foreground);outline:none;border:0;font-size:.875rem;padding:6px 2px;}
.he-search-field input:focus-visible {outline:0;}
.he-close {display:grid;place-items:center;flex:none;width:30px;height:30px;border:0;border-radius:5px;color:var(--muted-foreground);}
.he-close:hover {background:var(--muted);color:var(--foreground);}
.he-search-results {padding:4px;overflow:auto;max-height:min(54vh,420px);}
.he-search-results p {padding:5px 8px;color:var(--muted-foreground);font-size:.75rem;font-weight:500;}
.he-search-results a {display:flex;gap:8px;align-items:center;padding:6px 8px;border-radius:5px;font-size:.875rem;outline-offset:-2px;}
.he-search-results a:hover,.he-search-results a:focus-visible {background:var(--accent);}
.he-search-results strong,.he-search-results small {display:block;}
.he-search-results strong {font-weight:500;}
.he-search-results small,.he-search-empty {font-size:.75rem;color:var(--muted-foreground);}
.he-search-empty {padding:14px;}
.hedge #workspace.he-workspace {padding:0;margin:0;width:100%;max-width:none;flex:1;}
.he-page-header {background:var(--card);border-bottom:1px solid var(--border);}
.he-page-title {display:flex;flex-direction:column;gap:12px;padding-top:12px;padding-bottom:12px;}
.he-crumbs {display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:.75rem;line-height:16px;color:var(--muted-foreground);}
.he-crumbs a:hover {color:var(--primary);text-decoration:underline;}
.he-crumbs span {color:color-mix(in oklch,var(--foreground) 82%,transparent);}
.hedge #workspace .he-page-title h1 {font-size:1.25rem;line-height:1.4;font-weight:600;letter-spacing:-.025em;padding-top:4px;}
.he-page-title p {font-size:.8125rem;line-height:1.4;color:var(--muted-foreground);}
.he-section-tabs {display:flex;gap:2px;overflow-x:auto; scrollbar-width:thin;}
.he-section-tabs a {flex:none;padding:8px 12px;border-bottom:2px solid transparent;color:var(--muted-foreground);font-size:.8125rem;line-height:1.4;font-weight:500;white-space:nowrap;}
.he-section-tabs a:hover {border-bottom-color:var(--border);color:var(--foreground);}
.he-section-tabs a[aria-current=page] {border-bottom-color:var(--primary);color:var(--primary);}
.he-scope-actions,.scope-tools {display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
.hedge .scope-tools .filter-chip {position:relative;display:flex;align-items:center;gap:6px;min-width:0;border:1px solid var(--input);border-radius:4px;padding-inline:8px;background:var(--card);color:var(--muted-foreground);font-size:.8125rem;height:28px;box-shadow:0 1px 2px #0001;}
.hedge .filter-chip select {appearance:none;width:auto;max-width:min(230px,45vw);padding:0 16px 0 0;border:0;background:transparent;color:var(--foreground);font:inherit;outline-offset:3px;}
.hedge .filter-chip svg:last-child {position:absolute;right:6px;pointer-events:none}
.hedge .scope-range {color:var(--muted-foreground);}
.he-module-body,.he-dashboard {padding-top:12px;padding-bottom:12px;}
.he-footer {background:var(--card);border-top:1px solid var(--border);color:var(--muted-foreground);}
.he-footer>div {display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding-block:12px;font-size:.75rem;}
.he-panel,.hedge .panel {min-width:0;background:var(--card);color:var(--foreground);border:1px solid var(--border);border-radius:6px;box-shadow:0 1px 2px #0001;}
.he-panel {overflow:hidden;}
.he-panel-head {min-height:36px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 14px;border-bottom:1px solid var(--border);background:color-mix(in oklch,var(--muted) 60%,var(--card));}
.he-panel-head h2,.hedge #module-body .he-panel-head h2 {display:flex;gap:8px;align-items:center;font-size:.8125rem;line-height:1.35;font-weight:600;letter-spacing:-.02em;}
.he-panel-head h2 svg {color:var(--muted-foreground);}
.he-panel-head>a {color:var(--primary);font-size:.75rem;font-weight:500;white-space:nowrap;}
.he-panel-head a:hover,.he-section-link:hover {text-decoration:underline;}
.he-section-link {color:var(--primary);}
.hedge .btn {min-height:32px;border-radius:6px;border-color:var(--input);padding:5px 11px;background:var(--card);color:var(--foreground);font-size:.8125rem;font-weight:500;box-shadow:0 1px 2px #0001;}
.hedge .btn:hover {background:var(--accent);color:var(--accent-foreground);border-color:var(--input);}
.hedge .btn.primary {background:var(--primary);border-color:var(--primary);color:var(--primary-foreground);}
.hedge .btn.primary:hover {background:color-mix(in oklch,var(--primary) 90%,var(--background));}
.hedge .field {color:var(--foreground);}
.hedge :is(.field input,.field select,.field textarea,#module-body input:not([type=checkbox],[type=radio]),#module-body select,#module-body textarea) {background:var(--card);color:var(--foreground);border-color:var(--input);border-radius:6px;}
.hedge .table-wrap th {background:color-mix(in oklch,var(--muted) 62%,var(--card));color:var(--muted-foreground);padding:8px 10px;font-size:.75rem;font-weight:600;white-space:nowrap;text-transform:none;letter-spacing:0;}
.hedge .table-wrap td {background:var(--card);color:var(--foreground);padding:8px 10px;font-size:.8125rem;}
.hedge .table-wrap tr:nth-child(2n) td {background:color-mix(in oklch,var(--muted) 32%,var(--card));}
.hedge .table-wrap tbody tr:hover td {background:color-mix(in oklch,var(--accent) 50%,var(--card));}
.hedge .table-wrap :is(td,th) {border-color:var(--border);}
.hedge .table-wrap .empty-cell {color:var(--muted-foreground);}
.hedge #sheet {background:var(--card);color:var(--foreground);border-color:var(--border);}
.hedge #sheet :is(.modal-head,.modal-body,.modal-foot) {background:var(--card);color:var(--foreground);}
.he-record-drawer {position:fixed;inset:0 0 0 auto;margin:0;width:min(540px,100%);height:100dvh;max-height:none;max-width:none;border-width:0 0 0 1px;}
.he-record-dialog {margin:auto;width:min(512px,calc(100% - 24px));max-height:calc(100dvh - 24px);border-radius:8px;}
.he-record-drawer[open],.he-record-dialog[open] {display:flex;}
.hedge :is(.he-record-drawer,.he-record-dialog) .workspace-task {display:flex;flex-direction:column;border:0;border-radius:0;margin:0;width:100%;box-shadow:none;}
.hedge :is(.he-record-drawer,.he-record-dialog) .workspace-task-head {padding:16px;gap:8px;align-items:flex-start;}
.hedge :is(.he-record-drawer,.he-record-dialog) .workspace-task-head h2 {font-size:1.0625rem;}
.hedge :is(.he-record-drawer,.he-record-dialog) .workspace-task-form {display:flex;flex-direction:column;min-height:0;flex:1;overflow:auto;}
.hedge :is(.he-record-drawer,.he-record-dialog) .workspace-task-fields {flex:1;}
.hedge :is(.he-record-drawer,.he-record-dialog) .workspace-task-foot {position:sticky;bottom:0;background:var(--card);padding:12px 16px;}
.he-empty-content {padding:14px;color:var(--muted-foreground);font-size:.8125rem;}
@media(min-width:640px) {
  .he-wordmark,.he-desktop-institute,.he-theme {display:block;}
  .he-small-institute {display:none;}
  .he-bell {display:flex;}
  .he-search-launch {flex:1 1 448px;justify-content:flex-start;width:auto;max-width:448px;padding-inline:10px;min-width:32px;}
  .he-search-launch span {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .he-search-launch kbd {display:inline-flex;}
  .he-top-actions {margin-left:auto;}
}
@media(min-width:768px) {
  .he-module-nav {display:block;}
  .he-mobile-toggle,.he-mobile-dialog {display:none;}
  .he-masthead-rule {display:block;}
  .he-search-launch {margin-left:8px;}
  .he-module-tab {padding-inline:9px;}
}
@media(min-width:1024px) {
  .he-top-wrap {padding-inline:16px;}
  .he-page-wrap {padding-inline:24px;}
  .he-masthead .he-top-wrap {gap:16px;}
  .he-module-tab {padding-inline:14px;}
  .he-home-label {display:inline;}
  .he-user-meta {display:flex;flex-direction:column;gap:2px;}
  .he-page-title {flex-direction:row;align-items:flex-end;justify-content:space-between;}
  .he-module-body,.he-dashboard {padding-top:24px;padding-bottom:24px;}
}
@media(min-width:1280px) {.he-demo-tag {display:inline;}}
@media print {
  .he-header-sticky,.he-footer,.he-scope-actions,.he-section-tabs,.he-crumbs {display:none !important;}
  .he-page-header,.hedge .panel,.he-panel {box-shadow:none;color:#111;background:white;border-color:#ccc;}
  .he-module-body,.he-dashboard {padding:0;}
  .hedge .table-wrap th,.hedge .table-wrap td {color:#111!important;background:#fff!important;}
}
