/* Corpintech / VOR Core — Yggdrasil admin workspace, v0.2.19.
   Shared visual vocabulary. No changes to authorization or customer sessions. */
html[data-vor-service="yggdrasil"] {
    --vor-accent: #7566d4;
    --vor-accent-contrast: #fff;
    --vor-bg: #f5f6f8;
    --vor-nav-bg: #292d34;
    --vor-nav-hover: #383e47;
    --vor-nav-active: #3e394e;
    --vor-nav-text: #d2d7e1;
    --vor-nav-head: #f8f9fc;
    --vor-border: #e0e5eb;
    --vor-border-strong: #cad1db;
    --vor-surface-muted: #f8f9fb;
    --vor-radius-md: 9px;
    --vor-radius-sm: 7px;
    --vor-frame-width: 224px;
}
html[data-vor-service="yggdrasil"][data-theme="dark"] {
    --vor-bg: #15191e;
    --vor-surface: #20262e;
    --vor-surface-raised: #28303a;
    --vor-surface-muted: #252c35;
    --vor-text: #ebeff4;
    --vor-text-soft: #b6c1cf;
    --vor-text-faint: #94a2b1;
    --vor-border: #3b4651;
    --vor-border-strong: #51606f;
    --vor-table-hover: #29333d;
    --vor-nav-bg: #252a31;
    --vor-nav-hover: #343b45;
    --vor-nav-active: #403951;
    --vor-nav-text: #cbd3e0;
    --vor-nav-head: #f8f9fc;
}
html[data-vor-service="yggdrasil"] .vor-app-sidebar {
    background: var(--vor-nav-bg);
    color: var(--vor-nav-text);
    border-right-color: #414751;
}
html[data-vor-service="yggdrasil"] .vor-app-brand,
html[data-vor-service="yggdrasil"] .vor-app-sidebar-footer {
    border-color: #434951 !important;
}
html[data-vor-service="yggdrasil"] .vor-app-brand-mark {
    background: #7364d2;
    border-radius: 9px;
    color: #fff;
    font-size: 11px;
}
html[data-vor-service="yggdrasil"] .vor-app-nav-label { color: #a4afbd; font-size: 10px; }
html[data-vor-service="yggdrasil"] .vor-app-brand-copy small,
html[data-vor-service="yggdrasil"] .vor-app-user-compact small { color: #a7b2c1; }
html[data-vor-service="yggdrasil"] .vor-app-nav-item {
    min-height: 34px;
    font-size: 12px;
    font-weight: 530;
    border-radius: 7px;
    color: var(--vor-nav-text);
}
html[data-vor-service="yggdrasil"] .vor-app-nav-item.is-active {
    color: #fff;
    background: var(--vor-nav-active);
    font-weight: 685;
}
html[data-vor-service="yggdrasil"] .vor-app-nav-item:hover { color: #fff; }
html[data-vor-service="yggdrasil"] .vor-app-nav-dot { background: #798394; }
html[data-vor-service="yggdrasil"] .vor-app-nav-item.is-active .vor-app-nav-dot { background: #afa0ff; }
html[data-vor-service="yggdrasil"] .vor-app-user-compact strong,
html[data-vor-service="yggdrasil"] .vor-app-brand-copy strong { color: #f6f7fb; }
html[data-vor-service="yggdrasil"] .vor-app-sidebar-footer .vor-app-avatar {
    background: #434a5b; color: #fff; border: 1px solid #5b6678;
}
html[data-vor-service="yggdrasil"] .vor-app-user-trigger-copy strong { font-size: 12px; }
html[data-vor-service="yggdrasil"] .vor-app-user-trigger-copy small { font-size: 10.5px; }
html[data-vor-service="yggdrasil"] .vor-app-user-trigger .vor-app-avatar {
    border-radius: 50%; background: #eeeafb; color: #6756b4; border-color: #ded6f4;
}
html[data-vor-service="yggdrasil"] .vor-app-topbar { border-bottom: 1px solid var(--vor-border); }
html[data-vor-service="yggdrasil"] .ygg-workspace {
    max-width: none;
    width: auto;
    padding: 18px 22px 28px;
    color: var(--vor-text);
}
html[data-vor-service="yggdrasil"] .ygg-page-header {
    margin: 0 0 13px;
    align-items: center;
    gap: 10px;
}
html[data-vor-service="yggdrasil"] .ygg-page-header h1 { font-size: 22px; margin: 2px 0 3px; }
html[data-vor-service="yggdrasil"] .ygg-page-header p { margin: 0; font-size: 11.5px; }
html[data-vor-service="yggdrasil"] .ygg-eyebrow { font-size: 10px; }
html[data-vor-service="yggdrasil"] .ygg-overview-grid { gap: 12px; }
html[data-vor-service="yggdrasil"] .ygg-panel {
    background: var(--vor-surface);
    border: 1px solid var(--vor-border);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(12,22,36,.035);
}
html[data-vor-service="yggdrasil"] .ygg-panel-header { padding: 12px 15px; }
html[data-vor-service="yggdrasil"] .ygg-panel-header h2 { font-size: 13px; }
html[data-vor-service="yggdrasil"] .ygg-panel-header p { font-size: 11px; }
html[data-vor-service="yggdrasil"] .ygg-panel-content { padding: 12px 15px; }
html[data-vor-service="yggdrasil"] .ygg-panel-content > .ygg-table-scroll { margin: -12px -15px; }
html[data-vor-service="yggdrasil"] .ygg-stat-grid { gap: 10px; margin-bottom: 12px; }
html[data-vor-service="yggdrasil"] .ygg-stat-card { padding: 13px 15px; gap: 4px; border-radius: 10px; }
html[data-vor-service="yggdrasil"] .ygg-stat-card > strong { font-size: 24px; }
html[data-vor-service="yggdrasil"] .ygg-table th,
html[data-vor-service="yggdrasil"] .ygg-table td { padding: 9px 12px; font-size: 11.8px; vertical-align: middle; }
html[data-vor-service="yggdrasil"] .ygg-table th { font-size: 10.5px; letter-spacing: .01em; }
html[data-vor-service="yggdrasil"] .ygg-table tbody tr { transition: background .12s ease; }
html[data-vor-service="yggdrasil"] .ygg-table tbody tr:hover { background: var(--vor-table-hover); }
html[data-vor-service="yggdrasil"] .ygg-toolbar { gap: 7px; margin: 0 0 11px; }
html[data-vor-service="yggdrasil"] .ygg-toolbar .input { flex: 1 1 210px; min-width: 145px; max-width: 360px; }
html[data-vor-service="yggdrasil"] .ygg-toolbar select.input { flex: 0 1 160px; min-width: 135px; }
html[data-vor-service="yggdrasil"] .ygg-result-count { color: var(--vor-text-soft); font-size: 11px; white-space: nowrap; margin-left: auto; }
html[data-vor-service="yggdrasil"] .ygg-form-grid { gap: 10px; }
html[data-vor-service="yggdrasil"] .ygg-field { gap: 4px; font-size: 11px; }
html[data-vor-service="yggdrasil"] .ygg-field > .input,
html[data-vor-service="yggdrasil"] .ygg-toolbar .input,
html[data-vor-service="yggdrasil"] .ygg-package-add .input,
html[data-vor-service="yggdrasil"] .ygg-operator-row .input {
    min-height: 33px;
    padding: 5px 10px;
    border: 1px solid var(--vor-border-strong);
    border-radius: 7px;
    background: var(--vor-surface);
    color: var(--vor-text);
    font-size: 12px;
}
html[data-vor-service="yggdrasil"] .ygg-workspace :is(button,a).btn-gray-light.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid var(--vor-border-strong);
    border-radius: 8px;
    background: var(--vor-surface);
    color: var(--vor-text);
    font-size: 11.5px;
    font-weight: 635;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
html[data-vor-service="yggdrasil"] .ygg-workspace :is(button,a).btn-gray-light.btn-sm:hover:not(:disabled) {
    border-color: var(--vor-accent);
    background: color-mix(in srgb, var(--vor-accent) 6%, var(--vor-surface));
}
html[data-vor-service="yggdrasil"] .ygg-workspace :is(button,a).btn-gray-light.btn-sm:is([data-ygg-primary],.ygg-primary-action) {
    border-color: #7566d4;
    background: #7566d4;
    color: #fff;
    font-weight: 700;
}
html[data-vor-service="yggdrasil"] .ygg-workspace :is(button,a).btn-gray-light.btn-sm:is([data-ygg-primary],.ygg-primary-action):hover:not(:disabled) {
    background: #6656c8;
    border-color: #6656c8;
}
html[data-vor-service="yggdrasil"] .ygg-workspace :is(button,a).btn-gray-light.btn-sm:disabled { opacity: .48; cursor: not-allowed; }
html[data-vor-service="yggdrasil"] .ygg-status,
html[data-vor-service="yggdrasil"] .ygg-count-chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px;
    border: 1px solid var(--vor-border); border-radius: 999px;
    font-size: 10.5px; font-weight: 670; line-height: 1.45;
    color: var(--vor-text-soft); background: var(--vor-surface-muted);
}
html[data-vor-service="yggdrasil"] .ygg-status[data-status="active"],
html[data-vor-service="yggdrasil"] .ygg-status[data-status="open"] {
    background: color-mix(in srgb, #2da17a 12%, var(--vor-surface));
    color: #187a5a; border-color: color-mix(in srgb, #2da17a 24%, var(--vor-border));
}
html[data-vor-service="yggdrasil"] .ygg-status[data-status="suspended"],
html[data-vor-service="yggdrasil"] .ygg-status[data-status="inactive"] {
    background: color-mix(in srgb, #ad5970 10%, var(--vor-surface));
    color: #aa5367; border-color: color-mix(in srgb, #ad5970 22%, var(--vor-border));
}
html[data-vor-service="yggdrasil"] .ygg-status[data-status="trial"] {
    background: color-mix(in srgb, #d79c34 13%, var(--vor-surface)); color:#a87023;
}
html[data-vor-service="yggdrasil"] .ygg-identity { display: flex; align-items: center; min-width: 0; gap: 9px; }
html[data-vor-service="yggdrasil"] .ygg-identity-mark {
    display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px;
    border-radius: 10px; background: #efeafe; color: #6b58c2;
    border: 1px solid #e0d6f8; font-weight: 770; font-size: 11px;
}
html[data-vor-service="yggdrasil"] .ygg-identity-mark.is-person { background: #e9f1fc; color:#416fa9; border-color:#d8e5f7; border-radius: 50%; }
html[data-vor-service="yggdrasil"] .ygg-identity-mark.is-package { background: #e9f6f0; color: #29815f; border-color:#d7ece1; }
html[data-vor-service="yggdrasil"] .ygg-identity-copy { min-width: 0; display: grid; gap: 2px; }
html[data-vor-service="yggdrasil"] .ygg-identity-copy :is(a,strong) { font-size: 12px; font-weight: 700; }
html[data-vor-service="yggdrasil"] .ygg-identity-copy small { color:var(--vor-text-faint); font-size:10.5px; overflow-wrap:anywhere; }
html[data-vor-service="yggdrasil"] .ygg-identity-banner {
    background: var(--vor-surface); border: 1px solid var(--vor-border);
    padding: 12px 15px; border-radius: 10px; margin-bottom: 10px;
}
html[data-vor-service="yggdrasil"] .ygg-company-identity-details {
    display:flex; justify-content: space-between; align-items:center; flex-wrap:wrap; gap: 12px;
}
html[data-vor-service="yggdrasil"] .ygg-identity-banner .ygg-identity-mark { width:46px; height:46px; flex-basis:46px; font-size:14px; }
html[data-vor-service="yggdrasil"] .ygg-identity-banner .ygg-identity-copy strong { font-size: 16px; }
html[data-vor-service="yggdrasil"] .ygg-identity-chips { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
html[data-vor-service="yggdrasil"] .ygg-record-tabs { display:flex; align-items:center; gap:4px; margin:0 0 10px; border-bottom:1px solid var(--vor-border); }
html[data-vor-service="yggdrasil"] .ygg-tab {
    border:0; border-bottom:2px solid transparent; background:transparent;
    padding:9px 12px; font-size:11.5px; font-weight:640;
    color:var(--vor-text-soft); cursor:pointer;
}
html[data-vor-service="yggdrasil"] .ygg-tab:hover { color:var(--vor-text); background:var(--vor-surface-muted); }
html[data-vor-service="yggdrasil"] .ygg-tab.is-active { border-bottom-color:var(--vor-accent); color:var(--vor-accent); }
html[data-vor-service="yggdrasil"] #ygg-company-workspace[data-view="access"] [data-ygg-workspace-panel="users"],
html[data-vor-service="yggdrasil"] #ygg-company-workspace[data-view="users"] [data-ygg-workspace-panel="details"] { display:none; }
html[data-vor-service="yggdrasil"] #ygg-company-workspace[data-view="access"] { grid-template-columns:minmax(0,1fr); }
html[data-vor-service="yggdrasil"] #ygg-company-workspace[data-view="users"] { grid-template-columns:minmax(0,1fr); }
html[data-vor-service="yggdrasil"] #ygg-company-workspace[data-view="access"] #ygg-tenant-detail > .ygg-form-grid,
html[data-vor-service="yggdrasil"] #ygg-company-workspace[data-view="access"] #ygg-tenant-detail > button { display:none; }
html[data-vor-service="yggdrasil"] .ygg-access-panel { margin-top:12px; padding-top:10px; }
html[data-vor-service="yggdrasil"] .ygg-detail { padding: 11px; margin-top: 12px; }
html[data-vor-service="yggdrasil"] .ygg-package-section { margin-top: 12px; }
html[data-vor-service="yggdrasil"] .ygg-package-modules { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
html[data-vor-service="yggdrasil"] .ygg-package-service { background:var(--vor-surface); border-radius:9px; overflow:hidden; }
html[data-vor-service="yggdrasil"] .ygg-package-service-head { padding:10px 12px; background:var(--vor-surface-muted); }
html[data-vor-service="yggdrasil"] .ygg-package-service-body { padding: 10px 12px; }
html[data-vor-service="yggdrasil"] .ygg-package-service-head strong { font-size:12.5px; }
html[data-vor-service="yggdrasil"] .ygg-package-summary { color:var(--vor-text-faint); font-size:10px; margin-left:auto; }
html[data-vor-service="yggdrasil"] .ygg-package-setting-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 10px; margin:7px 0; }
html[data-vor-service="yggdrasil"] .ygg-package-add { margin-bottom: 8px; }
html[data-vor-service="yggdrasil"] .ygg-operator-row { padding: 10px 2px; }
html[data-vor-service="yggdrasil"] .ygg-operator-row > div:last-child { gap: 6px; }
html[data-vor-service="yggdrasil"] .ygg-operator-form { padding: 13px; margin: 12px 0; gap:10px; background:var(--vor-surface-muted); border-color:var(--vor-border); border-radius:9px; }
html[data-vor-service="yggdrasil"] #ygg-operator-superadmin { margin-top: 14px; }
html[data-vor-service="yggdrasil"] .ygg-page-actions { gap:6px; margin-top:10px; }
html[data-vor-service="yggdrasil"] .ygg-pages { padding: 9px 0; }
html[data-vor-service="yggdrasil"] :is(.ygg-tab, .btn-gray-light, .vor-app-nav-item):focus-visible { outline:2px solid var(--vor-accent); outline-offset:2px; }
@media(max-width:1150px) {
    html[data-vor-service="yggdrasil"] .ygg-package-modules { grid-template-columns:1fr; }
}
@media(max-width:800px) {
    html[data-vor-service="yggdrasil"] .ygg-workspace { padding:14px 12px 24px; }
    html[data-vor-service="yggdrasil"] .ygg-overview-grid { grid-template-columns:1fr; }
    html[data-vor-service="yggdrasil"] .ygg-toolbar .input { max-width:none; }
    html[data-vor-service="yggdrasil"] .ygg-package-setting-grid { grid-template-columns:1fr; }
    html[data-vor-service="yggdrasil"] .ygg-result-count { margin-left:0; width:100%; }
}
@media(prefers-reduced-motion:reduce) {
    html[data-vor-service="yggdrasil"] :is(.ygg-table tbody tr,.btn-gray-light.btn-sm) { transition:none; }
}
/* Outside navigation, headings and account labels use content colors. */
html[data-vor-service="yggdrasil"] .vor-app-topbar .vor-app-user-trigger-copy strong,
html[data-vor-service="yggdrasil"] .ygg-auth-identity-copy strong,
html[data-vor-service="yggdrasil"] .ygg-auth-intro-body h1,
html[data-vor-service="yggdrasil"] .ygg-auth-form-heading h2 { color: var(--vor-text); }
html[data-vor-service="yggdrasil"] .vor-app-topbar .vor-app-user-trigger-copy small { color: var(--vor-text-soft); }
html[data-vor-service="yggdrasil"] .ygg-workspace input[type="checkbox"] {
    accent-color: var(--vor-accent);
    width: 15px;
    height: 15px;
}

/* v0.2.42.4 — industry package templates; keep existing Yggdrasil dense panels */
.ygg-industry-section { margin-bottom:18px; }
.ygg-industry-header { display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap; }
.ygg-industry-actions { display:flex;align-items:center;gap:12px;flex-wrap:wrap; }
.ygg-industry-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px; }
.ygg-industry-card { min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:15px;border:1px solid var(--vor-border);background:var(--vor-surface-muted);border-radius:6px; }
.ygg-industry-card strong { font-size:13px;color:var(--vor-text);line-height:1.3; }
.ygg-industry-card p { margin:0;color:var(--vor-text-soft);font-size:11.5px;line-height:1.5;flex:1; }
.ygg-industry-card small { color:var(--vor-text-faint);font-size:10.5px; }
.ygg-industry-card button { margin-top:4px; }
.ygg-industry-card button[hidden] { display:none; }
