/* VOR Design System v0.2 — shared product UI, intentionally no backend hooks.
   Additive layer on top of the current VOR CSS; retains existing skeletons. */
:root {
  --vor-accent: #5a63b8;
  --vor-accent-contrast: #fff;
  --vor-bg: #f3f5f7;
  --vor-surface: #fff;
  --vor-surface-raised: #fff;
  --vor-surface-muted: #f7f8fa;
  --vor-border: #dfe3e8;
  --vor-border-strong: #cdd3db;
  --vor-text: #242b35;
  --vor-text-soft: #586373;
  --vor-text-faint: #6d7785;
  --vor-nav-bg: #eef1f5;
  --vor-nav-hover: #e3e8ef;
  --vor-nav-active: #e4e8f0;
  --vor-nav-text: #475363;
  --vor-nav-head: #18212e;
  --vor-table-hover: #f1f5f9;
  --vor-shadow: 0 1px 2px rgba(18,29,42,.025);
  --vor-space-1: 4px; --vor-space-2: 8px; --vor-space-3: 12px;
  --vor-space-4: 16px; --vor-space-5: 20px; --vor-space-6: 24px;
  --vor-radius-sm: 4px; --vor-radius-md: 6px; --vor-radius-lg: 8px;
  --vor-frame-width: 216px;
  --vor-frame-topbar: 52px;
  --bg-app: var(--vor-bg); --bg-card: var(--vor-surface);
  --bg-surface: var(--vor-surface-muted); --border-color: var(--vor-border);
  --text-main: var(--vor-text); --text-muted: var(--vor-text-soft);
  --text-light: var(--vor-text-faint); --table-header-bg: var(--vor-surface-muted);
  --table-hover-bg: var(--vor-table-hover); --table-striped-bg: var(--vor-surface);
  --vor-frame-sidebar: var(--vor-nav-bg);
  --vor-frame-sidebar-hover: var(--vor-nav-hover);
  --vor-frame-sidebar-active: var(--vor-nav-active);
  --vor-frame-sidebar-text: var(--vor-nav-text);
  --vor-frame-sidebar-muted: var(--vor-text-faint);
  --vor-frame-radius: var(--vor-radius-md);
  --vor-frame-accent: var(--vor-accent);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --vor-bg: #11161d;
  --vor-surface: #1b222b;
  --vor-surface-raised: #222b35;
  --vor-surface-muted: #171e26;
  --vor-border: #303a45;
  --vor-border-strong: #44505e;
  --vor-text: #e7ebf0;
  --vor-text-soft: #b4c0cd;
  --vor-text-faint: #929fae;
  --vor-nav-bg: #151c24;
  --vor-nav-hover: #202a35;
  --vor-nav-active: #273440;
  --vor-nav-text: #c8d1dc;
  --vor-nav-head: #f1f4f8;
  --vor-table-hover: #27323e;
  --vor-shadow: 0 1px 2px rgba(0,0,0,.10);
}
html[data-vor-service="gjallar"] { --vor-accent:#5969be; }
html[data-vor-service="yggdrasil"] { --vor-accent:#23886b; }
html[data-vor-service="huginn"] { --vor-accent:#b56632; }
html[data-vor-service="muninn"] { --vor-accent:#4277bb; }
html[data-vor-service="ratatoskr"] { --vor-accent:#278a91; }
html[data-vor-service="idun"] { --vor-accent:#8056ab; }
html[data-vor-service="mimir"] { --vor-accent:#a55483; }
html[data-vor-service] {
  --primary: var(--vor-accent);
  --primary-light: color-mix(in srgb, var(--vor-accent) 12%, var(--vor-surface));
  --vor-frame-accent: var(--vor-accent);
  background: var(--vor-bg);
}
body {
  color: var(--vor-text);
  background: var(--vor-bg);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -.008em;
}
h1,h2,h3,h4,h5,h6 { letter-spacing: -.023em; }
h1 { font-size: clamp(19px,2vw,23px); }
h2 { font-size: clamp(16px,1.7vw,19px); }
h3 { font-size: 15px; }
:focus-visible { outline: 2px solid var(--vor-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--vor-accent) 28%, transparent); }

/* Shared application chrome */
.vor-app-sidebar {
  width: var(--vor-frame-width);
  background: var(--vor-nav-bg);
  border-right: 1px solid var(--vor-border);
  color: var(--vor-nav-text);
  box-shadow: none;
}
.vor-app-brand {
  min-height: var(--vor-frame-topbar);
  padding: 0 15px;
  gap: 9px;
  border-color: var(--vor-border) !important;
}
.vor-app-brand-mark {
  background: var(--vor-accent);
  border: 0;
  color: white;
  width: 27px; height: 27px; flex-basis: 27px;
  border-radius: var(--vor-radius-sm);
  font-size: 14px; font-weight: 730;
  letter-spacing: -.05em;
}
.vor-app-brand-copy strong { color: var(--vor-nav-head); font-size: 13px; letter-spacing:-.025em; }
.vor-app-brand-copy small { color: var(--vor-text-faint); font-size:10.5px; font-weight:500; }
.vor-brand-by { color: var(--vor-text-faint); font-size: 10px; font-weight:500; letter-spacing:0; }
.vor-app-nav { gap:2px; padding: 10px 9px 12px; overflow-y:auto; overflow-x:hidden; }
.vor-app-nav-label, .vor-app-nav-group-label {
  display: flex; align-items:center; justify-content:space-between;
  color: var(--vor-text-faint);
  font-size: 10.5px;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
}
.vor-app-nav-label { padding: 9px 9px 5px; }
.vor-app-nav-group { margin: 3px 0; border:0; }
.vor-app-nav-group-label { padding: 8px 9px 6px; cursor:pointer; border-radius:4px; }
.vor-app-nav-group-label:hover { background: var(--vor-nav-hover); color:var(--vor-nav-head); }
.vor-app-nav-group-label::-webkit-details-marker { display:none; }
.vor-app-nav-group-label::after { content:'⌄'; transform: rotate(-90deg); font-size:15px; line-height: 1; color:var(--vor-text-faint); }
.vor-app-nav-group[open] > .vor-app-nav-group-label::after { transform:none; }
.vor-app-nav-children { padding: 1px 0 4px; }
.vor-app-nav-item {
  position:relative; min-height:31px;
  padding: 0 10px; gap: 9px; border:0;
  border-radius: var(--vor-radius-sm);
  color: var(--vor-nav-text);
  font-size: 12.5px; font-weight:530;
  transition: background-color .12s ease, color .12s ease;
}
.vor-app-nav-item.is-child { padding-left:14px; }
.vor-app-nav-item:hover { background:var(--vor-nav-hover); color:var(--vor-nav-head); }
.vor-app-nav-item.is-active {
  background:var(--vor-nav-active);
  color:var(--vor-nav-head);
  font-weight:640;
}
.vor-app-nav-item.is-active::before {
  content:''; position:absolute; width:2px; top:7px; bottom:7px; left:0;
  background:var(--vor-accent); border-radius:1px;
}
.vor-app-nav-dot { width:5px; height:5px; flex: 0 0 5px; border-radius:2px; background:var(--vor-border-strong); }
.vor-app-nav-item.is-active .vor-app-nav-dot { background:var(--vor-accent); box-shadow:none; }
.vor-app-sidebar-footer { min-height:59px; border-color:var(--vor-border); padding:9px; gap:5px; }
.vor-app-user-compact strong { color:var(--vor-nav-head); font-size:12px; font-weight:650; }
.vor-app-user-compact small { color:var(--vor-text-faint); font-size:10.5px; }
.vor-app-avatar { width:28px; height:28px; flex-basis:28px; border:1px solid var(--vor-border); border-radius:var(--vor-radius-md); background:var(--vor-surface-raised); color:var(--vor-text); font-size:11px; }
.vor-app-icon-button, .vor-app-mobile-menu { width:29px; height:29px; border-radius:var(--vor-radius-sm); color:var(--vor-text-soft); }
.vor-app-icon-button:hover, .vor-app-mobile-menu:hover { background:var(--vor-nav-hover); }
.vor-app-topbar {
  height:var(--vor-frame-topbar);
  padding:0 18px;
  background:var(--vor-surface);
  border-bottom:1px solid var(--vor-border);
  box-shadow:none; backdrop-filter:none;
}
.vor-app-topbar-left,.vor-app-topbar-right { gap: 9px; min-width:0; }
.vor-app-topbar-title { font-size:12.5px; color:var(--vor-text); font-weight:650; }
.vor-topbar-system { font-size:10px; letter-spacing:.045em; font-weight:750; color:var(--vor-text-faint); white-space:nowrap; }
.vor-topbar-divider { width:1px; height:15px; background:var(--vor-border-strong); }
.vor-app-status-dot { width:5px; height:5px; background:var(--vor-accent); box-shadow:none; }
.vor-app-environment { padding:3px 7px; border-radius:var(--vor-radius-sm); background:var(--vor-surface-muted); color:var(--vor-text-soft); font-size:10px; }
.vor-hub-link {
  display:inline-flex; align-items:center; padding:0 9px; height:29px;
  text-decoration:none; border:1px solid var(--vor-border);
  border-radius:var(--vor-radius-sm); background:var(--vor-surface);
  font-size:11px; font-weight:560; color:var(--vor-text-soft);
}
.vor-hub-link:hover { background:var(--vor-surface-muted); color:var(--vor-text); }
.vor-app-user-trigger { min-height:34px; padding:3px 6px; border-radius:var(--vor-radius-sm); }
.vor-app-user-trigger:hover { background:var(--vor-surface-muted); }
.vor-app-user-trigger-copy strong { font-size:11px; }
.vor-app-user-trigger-copy small { font-size:10px; }
.vor-app-user-dropdown { background:var(--vor-surface-raised); border-color:var(--vor-border); border-radius:var(--vor-radius-md); box-shadow:0 12px 28px rgba(10,20,35,.14); }
.vor-app-user-dropdown a:hover,.vor-app-user-dropdown button:hover { background:var(--vor-surface-muted); }

/* Working screens: density, clear structure, restrained surfaces. */
.vor-app-content-offset ~ main,
.vor-app-content-offset ~ section:not(.vor-dashboard-loading),
.vor-app-content-offset ~ .container {
  max-width:none;
}
:where(.crm-page,.crm-home,.mun-page,.rat-page,.gj-page,.ygg-page,.idun-workspace) { color:var(--vor-text); }
:where(.crm-workbar,.mun-workbar,.rat-workbar,.crm-commandbar,.idun-pagehead,.ygg-page-header,.gj-home-head) {
  gap:12px;
}
:where(.crm-workbar-title,.mun-workbar-title,.rat-workbar-title) { font-size:17px; font-weight:660; line-height:1.3; letter-spacing:-.022em; }
:where(.crm-panel,.crm-table-surface,.crm-record-section,.mun-panel,.mun-record-section,.rat-section,.rat-list,.ygg-panel,.gj-section,.idun-panel,.card,.panel-frame) {
  background:var(--vor-surface);
  border-color:var(--vor-border);
  border-radius:var(--vor-radius-md);
  box-shadow:var(--vor-shadow);
}
:where(.crm-panel-head,.mun-panel-head,.rat-section-head,.ygg-panel-header,.gj-section-head) {
  padding-block:10px; border-color:var(--vor-border);
}
:where(.input, input[type="text"],input[type="email"],input[type="search"],input[type="number"],input[type="date"],input[type="password"], select,textarea):not([type="checkbox"]):not([type="radio"]) {
  background:var(--vor-surface);
  color:var(--vor-text);
  border-color:var(--vor-border-strong);
  border-radius:var(--vor-radius-sm);
  box-shadow:none;
  font-size:12.5px;
}
:where(.input, input, select, textarea):focus-visible { border-color:var(--vor-accent); }
:where(input,select,textarea)::placeholder { color:var(--vor-text-faint); opacity:1; }
:where(.btn,.btn-sm,.btn-gray-light,.btn-blue-light,.btn-purple-light,.btn-cyan-light,.btn-teal-light,.btn-red-light,.button):not(.btn-close) {
  border-radius:var(--vor-radius-sm);
  box-shadow:none;
  font-size:12px;
  font-weight:600;
  letter-spacing:0;
}
:where(.btn-gray-light,.btn-purple-light,.btn-blue-light,.btn-cyan-light,.btn-teal-light):not(.is-primary-light):not(.is-accent-light) {
  background:var(--vor-surface);
  border:1px solid var(--vor-border-strong);
  color:var(--vor-text-soft);
}
:where(.btn-gray-light,.btn-purple-light,.btn-blue-light,.btn-cyan-light,.btn-teal-light):not(.is-primary-light):not(.is-accent-light):hover {
  background:var(--vor-surface-muted);
  color:var(--vor-text);
  border-color:var(--vor-border-strong);
}
:where(.btn-gray-light,.btn-blue-light,.btn-cyan-light,.btn-teal-light).is-primary-light,
:where(.btn-gray-light,.btn-blue-light,.btn-cyan-light,.btn-teal-light).is-accent-light {
  background:var(--vor-accent);
  border:1px solid var(--vor-accent);
  color:#fff;
}
:where(.btn-gray-light,.btn-blue-light,.btn-cyan-light,.btn-teal-light).is-primary-light:hover,
:where(.btn-gray-light,.btn-blue-light,.btn-cyan-light,.btn-teal-light).is-accent-light:hover { filter:brightness(.94); }
:where(table,.table) { border-collapse:separate; border-spacing:0; color:var(--vor-text); }
:where(table,.table) thead th { background:var(--vor-surface-muted); color:var(--vor-text-soft); border-color:var(--vor-border); font-size:11px; font-weight:700; letter-spacing:.005em; text-transform:none; padding-block:9px; }
:where(table,.table) td { border-color:var(--vor-border); padding-block:9px; font-size:12.5px; }
:where(table,.table) tbody tr:hover { background:var(--vor-table-hover); }
:where(.badge,.chip,.pill,.status-chip,.status-badge) { border-radius:var(--vor-radius-sm); font-size:10.5px; font-weight:650; }
:where(.modal-content,[role="dialog"]) { border:1px solid var(--vor-border); border-radius:var(--vor-radius-lg); background:var(--vor-surface-raised); color:var(--vor-text); }
:where(.dropdown-menu,.dropdown,.popover) { background:var(--vor-surface-raised); color:var(--vor-text); border-color:var(--vor-border); }
:where(.vor-dashboard-loading-card,.vor-dashboard-loading-state) { border-radius:var(--vor-radius-md); background:var(--vor-surface); border-color:var(--vor-border); box-shadow:none; }
/* Skeletons are intentionally retained, not hidden or replaced. */
:where(.vor-dashboard-skeleton,.crm-home-skeleton,.skeleton) { background:var(--vor-surface-muted); }

/* Each service's work surfaces get a light identity treatment, not a theme takeover. */
html[data-vor-service="gjallar"] :is(.gj-home-head,.gj-page-title) h1,
html[data-vor-service="yggdrasil"] .ygg-page-header h1,
html[data-vor-service="huginn"] .crm-workbar-title,
html[data-vor-service="muninn"] .mun-workbar-title,
html[data-vor-service="ratatoskr"] .rat-workbar-title,
html[data-vor-service="idun"] .idun-pagehead h1 { color:var(--vor-text); }
html[data-vor-service="huginn"] .crm-workbar-tools,
html[data-vor-service="muninn"] .mun-workbar-tools,
html[data-vor-service="ratatoskr"] .rat-workbar-tools { gap:7px; }
html[data-vor-service="muninn"] :is(.mun-project-list,.mun-simple-list,.mun-task-tree-full) { --vor-work-indent:18px; }
html[data-vor-service="idun"] .idun-pagehead { border-color:var(--vor-border); }
html[data-vor-service="ratatoskr"] :is(.rat-form-preview,.rat-calendar,.rat-booking-cal-shell) { border-color:var(--vor-border); }
html[data-vor-service="mimir"] .vor-dashboard-loading-card { min-height:98px; }
/* Dark-theme input/select, particularly currencies and data cards. */
html[data-theme="dark"] :is(.gj-page,.gj-settings-card,.card,.panel-frame,.gj-section,.ygg-panel,.crm-panel,.mun-panel,.rat-section,.idun-workspace) :is(input,select,textarea) {
  background-color:var(--vor-surface-raised);
  color:var(--vor-text);
  border-color:var(--vor-border-strong);
}
html[data-theme="dark"] option { color:var(--vor-text); background:var(--vor-surface-raised); }

@media(max-width:900px) { .vor-hub-link { display:none; } }
@media(max-width:760px) {
  :root { --vor-frame-topbar:52px; }
  .vor-app-topbar { left:0; padding:0 12px; }
  .vor-app-sidebar { display:none; }
  .vor-app-mobile-navigation { background:var(--vor-nav-bg); color:var(--vor-nav-text); }
  .vor-topbar-system { display:none; }
  .vor-topbar-divider { display:none; }
  .vor-app-nav { padding:12px; }
}
@media(prefers-reduced-motion:reduce) {
  .vor-app-nav-item,.vor-app-topbar,.vor-app-brand { transition:none; }
}


/* v0.2.1: content-aware loaders (reuse real card layouts). */
.vor-skeleton {
    display: inline-block;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 10px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--vor-border-strong) 38%, var(--vor-surface-muted));
    vertical-align: middle;
}

.vor-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--vor-surface-raised) 75%, transparent), transparent);
    animation: vor-card-shimmer 1.45s ease-in-out infinite;
}

.vor-skeleton.is-metric {
    display: block;
    width: min(72px, 80%);
    height: 18px;
    margin-block: 3px;
}

.vor-skeleton.is-line { display: block; width: 93%; height: 10px; }
.vor-skeleton.is-medium { width: 68%; }
.vor-skeleton.is-short { width: 42%; }
.vor-skeleton.is-tiny { width: 48px; height: 9px; }
.vor-skeleton.is-button { width: 78px; height: 27px; }

.vor-card-skeleton-body,
.vor-inline-skeleton {
    display: grid;
    align-content: start;
    gap: 13px;
    min-height: 82px;
    padding: 16px;
}

/* Cards that previously rendered text flush against their borders. */
.ygg-panel > p,
.ygg-panel > .ygg-page-actions {
    padding-inline: 16px;
}

.ygg-panel > .ygg-page-actions { padding-bottom: 16px; }
.ygg-panel > .ygg-admin-layout { padding: 16px; }
.ygg-panel > #ygg-message:not(:empty) { margin: 12px 16px 0; }

.rat-section {
    overflow: hidden;
    border: 1px solid var(--vor-border);
}

.rat-section > .rat-section-head {
    margin-bottom: 0;
    padding: 11px 14px;
}

.rat-section > [vmodel],
.rat-section > .rat-list {
    padding: 5px 14px 14px;
}

/* Idun already pads .idun-panel; avoid doubling its padding. */
.idun-panel > .vor-card-skeleton-body { padding: 0; }
.mun-panel > .vor-card-skeleton-body { padding: 10px 0 0; }

.mun-dashboard-skeleton.is-ready { display: none; }

@keyframes vor-card-shimmer {
    to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .vor-skeleton::after { animation: none; }
}

/* Actual content appears in the same card footprint as its placeholder. */
.crm-home-content:not(.d-none),
.crm-page > [vmodel$="Content"]:not(.d-none),
.mun-dashboard:not(.mun-dashboard-skeleton):not(.d-none) {
    animation: vor-content-arrive .18s ease-out both;
}

@keyframes vor-content-arrive {
    from { opacity: .6; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .crm-home-content:not(.d-none),
    .crm-page > [vmodel$="Content"]:not(.d-none),
    .mun-dashboard:not(.mun-dashboard-skeleton):not(.d-none) {
        animation: none;
    }
}

/* Errors replace skeletons without shifting into unrelated placeholder cards. */
.vor-load-error {
    padding: 16px;
    color: var(--vor-text-soft);
    font-size: 12.5px;
}

/* v0.2.2: Platform administration working screens. */
.ygg-panel-content { padding: 16px; }
.ygg-panel-content > :first-child { margin-top: 0; }
.ygg-toolbar { margin-bottom: 14px; }
.ygg-toolbar .input { width: min(100%, 440px); }
.ygg-company-list, #ygg-tickets, #ygg-subscriptions { display: grid; gap: 8px; }
.ygg-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--border, #d9dfe6); border-radius: 7px; }
.ygg-record { display: grid; gap: 4px; min-width: 0; }
.ygg-record strong, .ygg-record small { overflow-wrap: anywhere; }
.ygg-record small, .ygg-hint { opacity: .72; font-size: .83rem; }
.ygg-hint { margin: 8px 0; }
.ygg-detail { margin-top: 18px; padding: 18px; border: 1px solid var(--border, #d9dfe6); border-radius: 8px; }
.ygg-detail[hidden] { display: none !important; }
.ygg-detail h3, .ygg-detail h4 { margin: 0 0 12px; }
.ygg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ygg-field { display: grid; gap: 6px; flex: 1 1 140px; font-size: .83rem; }
.ygg-field > span { font-weight: 600; }
.ygg-field > .input { width: 100%; min-width: 0; }
.ygg-page-actions { flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 14px; }
.ygg-access-panel, .ygg-users-panel { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border, #d9dfe6); }
.ygg-edit { padding: 14px; margin: 14px 0; border: 1px solid var(--border, #d9dfe6); border-radius: 8px; }
.ygg-role-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 8px 0; }
.ygg-ticket-message { padding: 12px 0; border-bottom: 1px solid var(--border, #d9dfe6); }
.ygg-ticket-message > small { display: block; opacity: .68; margin-top: 4px; }
.ygg-ticket-message > p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; }
.ygg-reply { display: block; width: 100%; min-height: 94px; margin: 14px 0; }
.ygg-danger { color: #b43b43; }
.ygg-stat-card > strong > .vor-skeleton { display: block; width: 80%; height: 26px; }
#ygg-message:not(:empty) { padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--border, #d9dfe6); border-radius: 7px; }
@media(max-width: 680px) { .ygg-form-grid, .ygg-role-row { grid-template-columns: 1fr; } .ygg-admin-row { align-items: flex-start; flex-direction: column; } }

/* Independent internal operator management: native panel spacing. */
.ygg-operator-form { display: grid; gap: 12px; max-width: 540px; margin: 20px 0; padding: 18px; border: 1px solid var(--vor-border, #d7dce4); border-radius: 8px; }
.ygg-operator-form > strong { display: block; margin-bottom: 4px; }
#ygg-operator-superadmin { margin-top: 20px; }
#ygg-operator-superadmin > h3 { margin: 0 0 16px; }
.ygg-operator-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--vor-border, #d7dce4); flex-wrap: wrap; }
.ygg-operator-row > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ygg-operator-row select { max-width: 140px; }
#ygg-operator-info:not(:empty) { padding: 10px 0; }

/* Yggdrasil independent operator sign-in — v0.2.4.
   Isolated from legacy split-shell and panel-frame login styles. */
.ygg-auth-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(20px, 4vw, 48px);
  background: var(--vor-bg);
  color: var(--vor-text);
}

.ygg-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  width: min(850px, 100%);
  min-height: 468px;
  overflow: hidden;
  border: 1px solid var(--vor-border);
  border-radius: var(--vor-radius-lg);
  background: var(--vor-surface);
  box-shadow: 0 12px 38px rgba(19, 30, 44, .055);
}

.ygg-auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 30px;
  border-right: 1px solid var(--vor-border);
  background: var(--vor-surface-muted);
}

.ygg-auth-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.ygg-auth-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  border-radius: var(--vor-radius-md);
  color: #fff;
  background: var(--vor-accent);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -.06em;
}

.ygg-auth-identity-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.ygg-auth-identity-copy strong {
  color: var(--vor-nav-head);
  font-size: 14px;
  font-weight: 720;
}

.ygg-auth-identity-copy span {
  color: var(--vor-text-faint);
  font-size: 11px;
}

.ygg-auth-eyebrow {
  color: var(--vor-accent);
  font-size: 10px;
  font-weight: 740;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ygg-auth-intro-body {
  padding: 42px 0 52px;
}

.ygg-auth-intro-body h1 {
  margin: 13px 0 13px;
  max-width: 280px;
  color: var(--vor-nav-head);
  font-size: clamp(23px, 2.6vw, 29px);
  font-weight: 720;
  line-height: 1.17;
  letter-spacing: -.047em;
}

.ygg-auth-intro-body p {
  max-width: 285px;
  margin: 0;
  color: var(--vor-text-soft);
  font-size: 12.5px;
  line-height: 1.65;
}

.ygg-auth-intro-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--vor-text-faint);
  font-size: 11px;
}

.ygg-auth-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--vor-accent);
}

.ygg-auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 35px clamp(25px, 5vw, 51px);
}

.ygg-auth-form-heading h2 {
  margin: 9px 0 5px;
  color: var(--vor-nav-head);
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -.035em;
}

.ygg-auth-form-heading p {
  margin: 0;
  color: var(--vor-text-soft);
  font-size: 12px;
}

.ygg-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 29px;
}

.ygg-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ygg-auth-field label {
  color: var(--vor-text);
  font-size: 11.5px;
  font-weight: 650;
}

.ygg-auth-field input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--vor-border-strong);
  border-radius: var(--vor-radius-sm);
  outline: none;
  background: var(--vor-surface);
  color: var(--vor-text);
  font: inherit;
  font-size: 12.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ygg-auth-field input::placeholder {
  color: var(--vor-text-faint);
  opacity: .8;
}

.ygg-auth-field input:focus {
  border-color: var(--vor-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vor-accent) 14%, transparent);
}

.ygg-auth-password-wrap {
  position: relative;
}

.ygg-auth-password-wrap input {
  padding-right: 70px;
}

.ygg-auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 5px 7px;
  border: 0;
  border-radius: var(--vor-radius-sm);
  background: transparent;
  color: var(--vor-text-soft);
  font-size: 11px;
  font-weight: 620;
  cursor: pointer;
}

.ygg-auth-password-toggle:hover {
  color: var(--vor-accent);
  background: var(--vor-surface-muted);
}

.ygg-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  border: 1px solid var(--vor-accent);
  border-radius: var(--vor-radius-sm);
  background: var(--vor-accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s ease;
}

.ygg-auth-submit:hover:not(:disabled) {
  filter: brightness(.92);
}

.ygg-auth-submit:disabled {
  cursor: wait;
  opacity: .8;
}

.ygg-auth-submit-indicator {
  display: none;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: ygg-auth-spin .7s linear infinite;
}

.ygg-auth-submit.is-loading .ygg-auth-submit-indicator {
  display: block;
}

.ygg-auth-error {
  margin-top: 17px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, #bf4a4a 30%, var(--vor-border));
  border-radius: var(--vor-radius-sm);
  background: color-mix(in srgb, #bf4a4a 8%, var(--vor-surface));
  color: #be4545;
  font-size: 11.5px;
}

.ygg-auth-error[hidden] {
  display: none;
}

.ygg-auth-form-footer {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid var(--vor-border);
  color: var(--vor-text-faint);
  font-size: 10.5px;
  line-height: 1.5;
}

.ygg-auth-lock {
  display: inline-grid;
  place-items: center;
  width: 13px;
  flex: 0 0 13px;
  font-size: 7px;
  color: var(--vor-accent);
}

@keyframes ygg-auth-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 690px) {
  .ygg-auth-shell {
    grid-template-columns: 1fr;
    width: min(440px, 100%);
  }

  .ygg-auth-intro {
    padding: 22px 25px;
    gap: 0;
    border-right: 0;
    border-bottom: 1px solid var(--vor-border);
  }

  .ygg-auth-intro-body,
  .ygg-auth-intro-footer {
    display: none;
  }

  .ygg-auth-form-panel {
    padding: 29px 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ygg-auth-submit-indicator {
    animation-duration: 1.8s;
  }
}

/* v0.2.8: Work-screen density, outline navigation and contextual controls. */
.vor-app-nav-group-label {
    font-size: 12.5px;
    font-weight: 570;
    color: var(--vor-nav-text);
    min-height: 32px;
}
.vor-app-nav-dot {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: currentColor !important;
    border-radius: 0;
    box-shadow: none !important;
    opacity: .66;
    -webkit-mask: var(--vor-navigation-icon) center / contain no-repeat;
    mask: var(--vor-navigation-icon) center / contain no-repeat;
}
.vor-app-nav-item:hover .vor-app-nav-dot,
.vor-app-nav-item.is-active .vor-app-nav-dot { opacity: .96; }
.vor-app-nav-item.is-child { padding-left: 16px; }
:where(.gj-section,.crm-panel,.mun-panel,.rat-section,.idun-panel,.ygg-panel) > :where(p,.message,.alert):not([hidden]) {
    margin-inline: 16px;
}
:where(.gj-section,.crm-panel,.mun-panel,.rat-section,.idun-panel,.ygg-panel) :where(.btn,.btn-blue-light,.btn-cyan-light,.btn-indigo-light,.btn-gray-light,.btn-purple-light):is(button,a) {
    font-size: 11.5px;
}
:where(.gj-section,.crm-panel,.mun-panel,.rat-section,.idun-panel,.ygg-panel) .btn:not(.btn-sm),
:where(.gj-section,.crm-panel,.mun-panel,.rat-section,.idun-panel,.ygg-panel) .btn-gray-light:not(.btn-sm) {
    padding: 5px 10px;
    min-height: 28px;
}
.vor-list-pager, .ygg-pages, .gj-pages {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding: 11px 2px;
    font-size: 11.5px;
    color: var(--vor-text-soft);
}
.vor-list-pager button, .gj-pages button {
    border: 1px solid var(--vor-border);
    padding: 4px 10px;
    color: var(--vor-text-soft);
    background: var(--vor-surface);
    border-radius: var(--vor-radius-sm);
    cursor: pointer;
}
.vor-list-pager button:disabled, .gj-pages button:disabled { opacity:.45; cursor:default; }

:root { --vor-navigation-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%204.5h14v15H5z%22%2F%3E%3Cpath%20d%3D%22M9%209h6M9%2013h6M9%2017h4%22%2F%3E%3C%2Fsvg%3E"); }
.vor-app-nav-item:is(a[href="/"]) .vor-app-nav-dot { --vor-navigation-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2213.5%22%20y%3D%223.5%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%223.5%22%20y%3D%2213.5%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2213.5%22%20y%3D%2213.5%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3C%2Fsvg%3E"); }
.vor-app-nav-item:is(a[href^="/users/"]) .vor-app-nav-dot { --vor-navigation-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3.5%2020v-2a5.5%205.5%200%200%201%2011%200v2%22%2F%3E%3Cpath%20d%3D%22M17%206a3%203%200%200%201%200%206m2%203a4%204%200%200%201%202%203v2%22%2F%3E%3C%2Fsvg%3E"); }
.vor-app-nav-item:is(a[href^="/user/"]) .vor-app-nav-dot { --vor-navigation-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3.5%2020v-2a5.5%205.5%200%200%201%2011%200v2%22%2F%3E%3Cpath%20d%3D%22M17%206a3%203%200%200%201%200%206m2%203a4%204%200%200%201%202%203v2%22%2F%3E%3C%2Fsvg%3E"); }
.vor-app-nav-item:is(a[href^="/people/"]) .vor-app-nav-dot { --vor-navigation-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3.5%2020v-2a5.5%205.5%200%200%201%2011%200v2%22%2F%3E%3Cpath%20d%3D%22M17%206a3%203%200%200%201%200%206m2%203a4%204%200%200%201%202%203v2%22%2F%3E%3C%2Fsvg%3E"); }
.vor-app-nav-item:is(a[href^="/customers/"]) .vor-app-nav-dot { --vor-navigation-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3.5%2020v-2a5.5%205.5%200%200%201%2011%200v2%22%2F%3E%3Cpath%20d%3D%22M17%206a3%203%200%200%201%200%206m2%203a4%204%200%200%201%202%203v2%22%2F%3E%3C%2Fsvg%3E"); }
.vor-app-nav-item:is(a[href^="/companies/"]) .vor-app-nav-dot { --vor-navigation-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%2216%22%20height%3D%2218%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22M9%208h1m4%200h1M9%2012h1m4%200h1M9%2016h6m-4%205v-5%22%2F%3E%3C%2Fsvg%3E"); }
.vor-app-nav-item:is(a[href^="/company/"]) .vor-app-nav-dot { --vor-navigation-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%2216%22%20height%3D%2218%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22M9%208h1m4%200h1M9%2012h1m4%200h1M9%2016h6m-4%205v-5%22%2F%3E%3C%2Fsvg%3E"); }
.vor-app-nav-item:is(a[href^="/tickets/"]) .vor-app-nav-dot { --vor-navigation-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%208V5a2%202%200%200%201%202-2h14a2%202%200%200%201%202%202v3a4%204%200%200%200%200%208v3a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2v-3a4%204%200%200%200%200-8Z%22%2F%3E%3Cpath%20d%3D%22M12%205v2m0%203v2m0%203v2%22%2F%3E%3C%2Fsvg%3E"); }
.vor-app-nav-item:is(a[href^="/support/"]) .vor-app-nav-dot { --vor-navigation-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%208V5a2%202%200%200%201%202-2h14a2%202%200%200%201%202%202v3a4%204%200%200%200%200%208v3a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2v-3a4%204%200%200%200%200-8Z%22%2F%3E%3Cpath%20d%3D%22M12%205v2m0%203v2m0%203v2%22%2F%3E%3C%2Fsvg%3E"); }
.vor-app-nav-item:is(a[href^="/subscriptions/"]) .vor-app-nav-dot { --vor-navigation-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M15%208h-4a2%202%200%200%200%200%204h2a2%202%200%200%201%200%204H9m3-10v2m0%208v2%22%2F%3E%3C%2Fsvg%3E"); }
.vor-app-nav-item:is(a[href^="/currencies/"]) .vor-app-nav-dot { --vor-navigation-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M15%208h-4a2%202%200%200%200%200%204h2a2%202%200%200%201%200%204H9m3-10v2m0%208v2%22%2F%3E%3C%2Fsvg%3E"); }
.vor-app-nav-item:is(a[href^="/settings/"]) .vor-app-nav-dot { --vor-navigation-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223.5%22%2F%3E%3Cpath%20d%3D%22m10%203%201-1h2l1%201%20.5%202%202%20.8%202-.7%202%202-.7%202L21%2011v2l-1.2%201.5.7%202-2%202-2-.7-2%20.8L14%2021l-1%201h-2l-1-1-.5-2-2-.8-2%20.7-2-2%20.7-2L3%2013v-2l1.2-1.5-.7-2%202-2%202%20.7%202-.8z%22%2F%3E%3C%2Fsvg%3E"); }
.vor-app-nav-item:is(a[href^="/projects/"]) .vor-app-nav-dot { --vor-navigation-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M3%2010h18M8%205V3h8v2%22%2F%3E%3C%2Fsvg%3E"); }
.vor-app-nav-item:is(a[href^="/forms/"]) .vor-app-nav-dot { --vor-navigation-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%204h10l3%203v14H4V4h3zM17%204v4h4M8%2012h8M8%2016h5%22%2F%3E%3C%2Fsvg%3E"); }

/* v0.2.8 Yggdrasil: editorial admin layout instead of stacked toggled widgets. */
.ygg-workspace { max-width: none; padding: 26px clamp(18px,3vw,42px) 42px; }
.ygg-page-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom: 24px; gap: 16px; }
.ygg-page-header h1 { font-size: 24px; font-weight: 700; letter-spacing: -.035em; margin: 5px 0 4px; }
.ygg-page-header p { color: var(--vor-text-soft); font-size: 12.5px; max-width: 650px; }
.ygg-page-header .ygg-eyebrow { color: var(--vor-accent); font-size: 11px; font-weight: 700; }
.ygg-page-header .ygg-eyebrow a { color: inherit; text-decoration: none; }
.ygg-header-actions { display: flex; align-items:center; gap:8px; }
.ygg-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.ygg-stat-card { display:flex; flex-direction:column; gap:8px; padding:18px 19px; min-width:0; text-decoration:none; color:var(--vor-text); border:1px solid var(--vor-border); background:var(--vor-surface); border-radius:7px; box-shadow:none; transition:border-color .15s; }
.ygg-stat-card:hover { border-color:var(--vor-accent); }
.ygg-stat-card > span { color:var(--vor-text-soft); font-size:12px; }
.ygg-stat-card > strong { font-size:26px; line-height:1.15; letter-spacing:-.045em; font-weight:700; }
.ygg-stat-card > small { color:var(--vor-text-faint); font-size:11px; }
.ygg-overview-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:start; }
.ygg-panel { border:1px solid var(--vor-border); background:var(--vor-surface); border-radius:7px; box-shadow:none; overflow:hidden; }
.ygg-panel-header { padding:15px 18px; border-bottom:1px solid var(--vor-border); display:flex; justify-content:space-between; gap:12px; align-items:center; }
.ygg-panel-header h2 { margin:0; font-size:14px; font-weight:680; }
.ygg-panel-header p { margin:3px 0 0; color:var(--vor-text-faint); font-size:11.5px; }
.ygg-panel-content { padding: 16px 18px; }
.ygg-panel-content > .ygg-table-scroll { margin: -16px -18px; }
.ygg-table-scroll { overflow-x:auto; }
.ygg-table { width:100%; border-collapse:collapse; table-layout:auto; }
.ygg-table th,.ygg-table td { padding:11px 14px; text-align:left; vertical-align:middle; border-bottom:1px solid var(--vor-border); font-size:12px; }
.ygg-table th { white-space:nowrap; color:var(--vor-text-faint); font-size:10.5px; font-weight:670; background:var(--vor-surface-muted); }
.ygg-table td:first-child { min-width:160px; width:40%; }
.ygg-table td:last-child { text-align:right; white-space:nowrap; }
.ygg-table tbody tr:last-child td { border-bottom:0; }
.ygg-table tbody tr:hover { background:var(--vor-table-hover); }
.ygg-table a { font-weight:600; text-decoration:none; color:var(--vor-text); }
.ygg-table a:hover { color:var(--vor-accent); }
.ygg-status { display:inline-block; font-size:10.5px; background:var(--vor-surface-muted); padding:4px 7px; border-radius:4px; color:var(--vor-text-soft); white-space:nowrap; }
.ygg-status[data-status="active"],.ygg-status[data-status="open"] { color:#168168; background:color-mix(in srgb,#168168 12%,var(--vor-surface)); }
.ygg-status[data-status="suspended"],.ygg-status[data-status="closed"] { color:var(--vor-text-soft); }
.ygg-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:0 0 16px; }
.ygg-toolbar .input { flex:1; max-width:430px; width:auto; min-width:160px; }
.ygg-toolbar label { font-size:11.5px; font-weight:650; color:var(--vor-text-soft); }
.ygg-pages { border-top:1px solid var(--vor-border); }
.ygg-pages button { padding:5px 10px; }
.ygg-text-link { color:var(--vor-accent); text-decoration:none; font-size:11.5px; font-weight:620; }
.ygg-text-link:hover { text-decoration:underline; }
.ygg-detail { margin-top:18px; padding: 18px 0 0; border:0; border-top:1px solid var(--vor-border); border-radius:0; }
.ygg-detail:only-child { margin-top:0; padding:0; border:0; }
.ygg-detail .ygg-form-grid { margin-bottom:14px; }
.ygg-role-entry { display:grid; grid-template-columns: minmax(100px,1fr) repeat(2,minmax(100px,1fr)); align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--vor-border); }
.ygg-role-entry > strong { text-transform:capitalize; font-size:12px; }
.ygg-roles-grid { margin:12px 0; }
.ygg-access-panel { margin-top:20px; border-top:1px solid var(--vor-border); padding-top:16px; }
.ygg-access-panel .ygg-page-actions { margin-top:10px; }
.ygg-field { font-size:11.5px; }
.ygg-field .input { min-height:32px; }
.ygg-ticket-meta { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:4px 0 20px; border-bottom:1px solid var(--vor-border); }
.ygg-ticket-message { margin:0; padding:17px 0; border-bottom:1px solid var(--vor-border); }
.ygg-ticket-message-header { display:flex; gap:12px; align-items:baseline; }
.ygg-ticket-message-header small { color:var(--vor-text-faint); }
.ygg-ticket-message p { margin:9px 0 0; line-height:1.6; }
.ygg-reply { min-height:98px; margin:20px 0 10px; }
.ygg-operator-form { border:0; padding:14px 0; margin:14px 0; }
#ygg-operator-superadmin { border-top:1px solid var(--vor-border); padding-top:14px; }
.ygg-operator-row { border-bottom:1px solid var(--vor-border); padding:12px 0; }
.ygg-empty { padding:24px 14px !important; text-align:left !important; color:var(--vor-text-soft); }
@media(max-width:1100px) { .ygg-overview-grid { grid-template-columns:1fr; } }
@media(max-width:760px) { .ygg-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .ygg-workspace { padding:18px 13px; } .ygg-page-header { flex-wrap:wrap; } .ygg-role-entry { grid-template-columns: 1fr 1fr; } .ygg-role-entry>strong { grid-column:1 / -1; } }
@media(prefers-reduced-motion:reduce) { .ygg-stat-card { transition:none; } }

/* v0.2.9 — Compact contextual actions and accessible content layout.
   Top-level page commands keep their original sizing. */
.vor-app-nav-group-label {
    font-size: 12.5px;
    line-height: 1.45;
}
.vor-app-nav-item { font-size: 12.5px; line-height: 1.45; }
.vor-app-nav-dot {
    color: color-mix(in srgb, var(--vor-accent) 66%, var(--vor-nav-text));
    opacity: .88;
}
.vor-app-nav-item.is-active .vor-app-nav-dot {
    color: var(--vor-accent);
    opacity: 1;
}
/* Use a soft accent surface instead of solid, flat badges. */
.vor-app-brand-mark {
    background: color-mix(in srgb, var(--vor-accent) 12%, var(--vor-surface)) !important;
    color: var(--vor-accent) !important;
    border: 1px solid color-mix(in srgb, var(--vor-accent) 22%, var(--vor-border)) !important;
}
:where(.gj-page,.ygg-page,.crm-page,.crm-home,.mun-page,.rat-page,.idun-workspace)
    :is(.btn-sm,button.btn-sm,a.btn-sm) {
    min-height: 27px;
    padding: 4px 9px;
    font-size: 11.5px;
    line-height: 1.35;
}
/* Work-area buttons — never resize primary page-header buttons. */
:where(.gj-section,.gj-settings-card,.ygg-panel-content,.ygg-table,.crm-panel,.crm-table-surface,
       .crm-record-section,.mun-panel,.mun-record-section,.rat-section,.rat-list,.idun-panel,
       .card-body,.modal-body,.table,.vor-table,td,.gj-user-list)
    :is(button,a):is(.btn,.btn-gray-light,.btn-blue-light,.btn-indigo-light,.btn-purple-light,
                      .btn-cyan-light,.btn-teal-light,.btn-red-light,.btn-orange-light):not(.btn-close):not(.vor-app-nav-item) {
    min-height: 27px;
    padding: 4px 9px;
    font-size: 11.5px;
    line-height: 1.35;
}
:where(.gj-section,.crm-panel,.crm-record-section,.mun-panel,.mun-record-section,
       .rat-section,.idun-panel,.ygg-panel) :where(table,.table) {
    width: 100%;
    table-layout: auto;
}
:where(.gj-section,.crm-panel,.mun-panel,.rat-section,.idun-panel,.ygg-panel)
    :where(td,th) {
    overflow-wrap: anywhere;
    vertical-align: middle;
}
:where(.gj-section,.crm-panel,.mun-panel,.rat-section,.idun-panel,.ygg-panel)
    :where(.form-group,.input-group,.record-field,.field-group) { min-width: 0; }
:where(.gj-section,.crm-panel,.mun-panel,.rat-section,.idun-panel,.ygg-panel)
    > :where(.gj-user-list,.gj-currency-list,.crm-panel-content,.mun-panel-body,
              .rat-section-body,.idun-panel-content,.ygg-panel-content) { min-width: 0; }
:where(.gj-settings-card,.crm-record-section,.mun-record-section,.rat-list,.idun-panel)
    > :where(p,.hint,.description,.message):not([hidden]) { margin-inline: 12px; }
:where(.table,.ygg-table,.crm-table,.mun-table,.rat-table) tbody tr[data-row-url] {
    cursor: pointer;
}
:where(.table,.ygg-table,.crm-table,.mun-table,.rat-table) tbody tr[data-row-url]:focus-visible {
    outline: 2px solid var(--vor-accent);
    outline-offset: -2px;
}
@media (prefers-reduced-motion: reduce) {
    :where(.table,.ygg-table,.crm-table,.mun-table,.rat-table) tbody tr { transition: none; }
}

/* Column sizing: names/subjects take priority, short metadata stays compact. */
.ygg-table { width:100%; table-layout:auto; }
.ygg-table th,.ygg-table td { padding:11px 14px; overflow-wrap:anywhere; }
.ygg-table th:first-child,.ygg-table td:first-child { width:auto; min-width:220px; }
.ygg-table th:not(:first-child),.ygg-table td:not(:first-child) { width:auto; }
.ygg-table tbody tr[data-row-url] { cursor:pointer; transition:background-color .14s ease; }
.ygg-table tbody tr[data-row-url]:hover { background:var(--vor-table-hover); }
.ygg-table tbody tr[data-row-url]:focus-visible { outline:2px solid var(--vor-accent); outline-offset:-2px; }
.ygg-table td:last-child { text-align:left; white-space:normal; }
.ygg-table-scroll { overflow-x:auto; }
.ygg-table-scroll .ygg-table { min-width:600px; }
@media(max-width:700px) { .ygg-table-scroll .ygg-table { min-width:590px; } }

/* Explicit compact controls in tables, collapsed records and modal content. */
html[data-vor-service] :is(.table-action,.crm-inline-actions,.crm-record-toolbar-actions,
    .mun-record-actions,.mun-action-row,.rat-actions,.rat-form-row-actions,.gj-inline-actions,
    .gj-section-tools,.ygg-page-actions,.ygg-ticket-message,.ygg-detail,.gj-user-row,
    .gj-currency-row,.ygg-table td) :is(button,a):is(.btn,.btn-gray-light,
    .btn-blue-light,.btn-purple-light,.btn-indigo-light,.btn-cyan-light,.btn-teal-light,.btn-red-light) {
    font-size: 11.5px;
    min-height: 27px;
    padding: 4px 9px;
    border-radius: var(--vor-radius-sm);
}

/* v0.2.10 — Package builder: consistent compact working surfaces. */
.ygg-package-section { margin-top: 16px; }
.ygg-package-modules { display: grid; gap: 10px; }
.ygg-package-service { border: 1px solid var(--vor-border); border-radius: 6px; min-width: 0; }
.ygg-package-service-head { padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--vor-surface-muted); }
.ygg-package-service-head strong { font-size: 13px; }
.ygg-package-service-body { padding: 14px; }
.ygg-package-service-body[hidden] { display: none; }
.ygg-package-setting-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 11px; margin: 10px 0; }
.ygg-package-checkbox { display: flex; align-items: center; flex: 0 0 auto; gap: 9px; }
.ygg-package-checkbox input { width: 16px; height: 16px; }
.ygg-package-add { display: flex; gap: 8px; align-items: center; max-width: 360px; margin-bottom: 18px; }
.ygg-package-add .input { min-width: 0; flex: 1; }
.ygg-package-assignment { padding: 10px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ygg-package-assignment .input { min-width: 170px; max-width: 280px; }
.ygg-package-assignment .ygg-subheading { flex-basis: 100%; margin: 0 0 3px; }
@media (max-width: 680px) { .ygg-package-setting-grid { grid-template-columns: 1fr; } }
