/* EventOS design system — navy navigation, black actions, quiet workspace. */
:root{
  --bg:#f7f7fa;
  --surface:#fff;
  --brand-navy:oklch(0.235 0.028 262);
  --brand-navy-deep:oklch(0.32 0.035 262);
  --brand-navy-soft:oklch(0.28 0.03 262);
  --brand-black:#000000;
  --brand-black-hover:#262626;
  --brand-black-soft:#f5f5f5;
  /* Compatibility aliases for existing admin modules. */
  --brand-teal:var(--brand-black);
  --brand-teal-hover:var(--brand-black-hover);
  --brand-teal-soft:var(--brand-black-soft);
  --join-inner:#000000;
  --join-inner-fill:rgba(0,0,0,.3);
  --join-left:#4d79c7;
  --join-left-fill:rgba(77,121,199,.3);
  --join-right:#c8873b;
  --join-right-fill:rgba(200,135,59,.32);
  --sidebar:var(--brand-navy);
  --sidebar-hover:var(--brand-navy-soft);
  --sidebar-active:var(--brand-navy-deep);
  --sidebar-border:oklch(0.31 0.025 262);
  --sidebar-label:oklch(0.58 0.02 262);
  --sidebar-text:oklch(0.78 0.015 262);
  --sidebar-muted:oklch(0.66 0.02 262);
  --text:#2e2d3c;
  --text-2:#5e5c70;
  --muted:#777588;
  --muted-2:#8d8b9c;
  --faint:#aaa8b8;
  --border:#e5e4eb;
  --border-soft:#eeedf3;
  --border-softer:#f4f3f7;
  --border-strong:#d6d5df;
  --accent:var(--brand-black);
  --accent-hover:var(--brand-black-hover);
  --accent-bright:#737373;
  --ok-bg:oklch(0.95 0.045 155);   --ok-fg:oklch(0.44 0.13 155);
  --bad-bg:oklch(0.955 0.03 25);   --bad-fg:oklch(0.52 0.17 25);
  --neutral-bg:#f1f0f5; --neutral-fg:#676578;
  --warn-bg:oklch(0.97 0.03 75);   --warn-fg:oklch(0.42 0.03 75);
  --warn-border:oklch(0.9 0.02 85);
  --role-bg:oklch(0.95 0.03 300);  --role-fg:oklch(0.4 0.13 300);
  --row-hover:#fafafd;
  --mono:'Roboto',ui-monospace,monospace;
  --sans:'Lato',system-ui,sans-serif;
}
*{box-sizing:border-box}
[hidden]{display:none !important}
body{margin:0;background:var(--bg);font-family:var(--sans);color:var(--text);-webkit-font-smoothing:antialiased;font-size:13px;letter-spacing:.002em}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-hover);text-decoration:underline}
input,select,button,textarea{font-family:inherit}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:oklch(0.86 0.006 260);border-radius:6px;border:3px solid transparent;background-clip:content-box}

/* ---- shell ---- */
.eos-shell{display:flex;height:100vh;overflow:hidden;background:var(--bg)}
.eos-main{flex:1;display:flex;flex-direction:column;min-width:0;position:relative;isolation:isolate}
.eos-workspace-mesh{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;color:var(--brand-navy)}
@media print, (forced-colors:active){.eos-workspace-mesh{display:none}}
.eos-content{flex:1;overflow:auto;padding:18px 22px 40px}
/* Keep absolute chart accessibility helpers inside the scrolling workspace. */
.eos-content [data-highcharts-chart]{position:relative}

/* ---- sidebar ---- */
.eos-sidebar{width:222px;flex:none;height:100%;background:var(--sidebar);display:flex;flex-direction:column;padding:0 0 12px;box-shadow:8px 0 24px rgba(31,39,62,.08)}
.eos-sidebar__brand-row{display:flex;align-items:center;min-width:0}
.eos-sidebar__icon-sprite{position:absolute;width:0;height:0;overflow:hidden}
.eos-brand{display:flex;align-items:center;gap:10px;padding:18px 16px 20px;color:#fff}
.eos-brand:hover{text-decoration:none;color:#fff}
.eos-brand__mark{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;flex:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.eos-brand__mark svg{width:29px;height:29px;display:block}
.eos-brand__name{font-size:15px;font-weight:700;color:#fff;letter-spacing:-0.015em}
.eos-brand__ver{margin-left:auto;font-family:var(--mono);font-size:9.5px;color:var(--sidebar-muted);border:1px solid rgba(255,255,255,.16);border-radius:5px;padding:2px 5px}
.eos-sidebar__collapse-toggle{width:28px;height:28px;margin:0 10px 2px auto;border:1px solid rgba(255,255,255,.15);border-radius:6px;background:transparent;color:var(--sidebar-muted);display:grid;place-items:center;cursor:pointer;flex:none}
.eos-sidebar__collapse-toggle:hover{background:var(--sidebar-hover);color:#fff}
.eos-sidebar__collapse-toggle span{width:7px;height:7px;border-left:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);margin-left:3px}
.eos-nav{padding:0 10px 8px;overflow-y:auto}
.eos-nav__label{font-size:9.5px;font-weight:700;letter-spacing:0.11em;color:var(--sidebar-label);padding:10px 10px 7px}
.eos-nav__label + .eos-nav__label,.eos-nav__group + .eos-nav__group .eos-nav__label{padding-top:16px}
.eos-nav__item{display:flex;align-items:center;gap:10px;padding:0 10px;height:34px;border-radius:6px;background:transparent;margin-bottom:2px;position:relative}
.eos-nav__item:hover{text-decoration:none;background:var(--sidebar-hover)}
.eos-nav__item--active{background:var(--sidebar-active)}
.eos-nav__item--active::before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;border-radius:0 3px 3px 0;background:var(--sidebar-text)}
.eos-nav__icon{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;color:rgba(255,255,255,.55)}
.eos-nav__item--active .eos-nav__icon{color:var(--sidebar-text)}
.eos-nav__text{font-size:13px;font-weight:400;color:var(--sidebar-text)}
.eos-nav__item--active .eos-nav__text{font-weight:600;color:#fff}
.eos-nav__count{margin-left:auto;font-family:var(--mono);font-size:10px;color:var(--sidebar-muted)}
.eos-nav__app{margin-bottom:2px}
.eos-nav__app summary{list-style:none}
.eos-nav__app summary::-webkit-details-marker{display:none}
.eos-nav__chevron{width:6px;height:6px;margin-left:auto;border-right:1px solid var(--sidebar-muted);border-bottom:1px solid var(--sidebar-muted);transform:rotate(-45deg);transition:transform .12s ease}
.eos-nav__app[open] .eos-nav__chevron{transform:rotate(45deg);margin-top:-3px}
.eos-nav__children{padding-left:18px}
.eos-nav__item--child{height:30px;margin-bottom:1px;padding-left:10px}
.eos-nav__item--child .eos-nav__dot{width:6px;height:6px;border-radius:50%;box-shadow:none;background:rgba(255,255,255,.22)}
.eos-nav__item--child .eos-nav__text{font-size:12px;color:var(--sidebar-muted)}
.eos-nav__item--child.eos-nav__item--active .eos-nav__text{color:#fff}
.eos-sidebar__bottom{margin-top:auto;padding:0 10px 12px}
.eos-sidebar__system-settings{display:flex;align-items:center;gap:10px;height:34px;margin-bottom:4px;padding:0 10px;border-radius:6px;position:relative}
.eos-sidebar__system-settings:hover{text-decoration:none;background:var(--sidebar-hover)}
.eos-sidebar__system-settings--active{background:var(--sidebar-active)}
.eos-sidebar__system-settings--active::before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;border-radius:0 3px 3px 0;background:var(--sidebar-text)}
.eos-sidebar__system-settings--active .eos-nav__icon{color:var(--sidebar-text)}
.eos-sidebar__system-settings--active .eos-nav__text{font-weight:600;color:#fff}
.eos-sidebar__user{display:block;padding:12px 4px 8px;border-top:1px solid var(--sidebar-border);border-radius:6px;transition:background .12s ease}
.eos-sidebar__user:hover{text-decoration:none;background:var(--sidebar-hover)}
.eos-sidebar__user--active{background:var(--sidebar-active)}
.eos-avatar{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;display:flex;align-items:center;justify-content:center;font-size:10.5px;font-weight:700;flex:none;border:1px solid rgba(255,255,255,.12)}
.eos-avatar__initials{font-size:10.5px}
.eos-avatar .eos-nav__icon{display:none}
.eos-sidebar__user-name{font-size:12px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eos-sidebar__user-role{font-size:10.5px;color:var(--sidebar-muted)}
.eos-sidebar--collapsed{width:62px}
.eos-sidebar--collapsed .eos-sidebar__brand-row{display:block}
.eos-sidebar--collapsed .eos-brand{justify-content:center;padding:14px 0 18px}
.eos-sidebar--collapsed .eos-brand__name,.eos-sidebar--collapsed .eos-brand__ver,.eos-sidebar--collapsed .eos-nav__label,.eos-sidebar--collapsed .eos-nav__text,.eos-sidebar--collapsed .eos-nav__count,.eos-sidebar--collapsed .eos-sidebar__user-name,.eos-sidebar--collapsed .eos-sidebar__user-role{display:none}
.eos-sidebar--collapsed .eos-sidebar__collapse-toggle{margin:0 auto 10px;transform:rotate(180deg)}
.eos-sidebar--collapsed .eos-nav{padding:0 8px}
.eos-sidebar--collapsed .eos-nav__item{justify-content:center;padding:0}
.eos-sidebar--collapsed .eos-nav__icon{width:19px;height:19px;color:var(--sidebar-text)}
.eos-sidebar--collapsed .eos-avatar__initials{display:none}
.eos-sidebar--collapsed .eos-avatar .eos-nav__icon{display:block;color:#fff}
.eos-sidebar--collapsed .eos-nav__children{display:none}
.eos-sidebar--collapsed .eos-nav__chevron{display:none}
.eos-sidebar--collapsed .eos-nav{overflow:visible}
.eos-sidebar--collapsed .eos-nav__item:hover::after,.eos-sidebar--collapsed .eos-nav__item:focus-visible::after,.eos-sidebar--collapsed .eos-sidebar__system-settings:hover::after,.eos-sidebar--collapsed .eos-sidebar__system-settings:focus-visible::after,.eos-sidebar--collapsed .eos-sidebar__user:hover::after,.eos-sidebar--collapsed .eos-sidebar__user:focus-visible::after{content:attr(title);position:absolute;left:calc(100% + 8px);top:50%;z-index:30;transform:translateY(-50%);padding:7px 9px;border:1px solid rgba(255,255,255,.14);border-radius:6px;background:var(--sidebar);box-shadow:0 6px 18px rgba(31,39,62,.22);color:#fff;font-size:11.5px;font-weight:600;line-height:1.2;white-space:nowrap;pointer-events:none}
.eos-sidebar--collapsed .eos-sidebar__system-settings{justify-content:center;padding:0}
.eos-sidebar--collapsed .eos-sidebar__user{margin-left:8px;margin-right:8px;padding:10px 0;border-top:1px solid var(--sidebar-border)}
.eos-sidebar--collapsed .eos-sidebar__user > div{justify-content:center}

/* ---- header ---- */
.eos-header{height:56px;flex:none;background:rgba(255,255,255,.94);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px;padding:0 22px;box-shadow:0 1px 8px rgba(50,40,95,.035)}
.eos-header__signout{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:6px;color:var(--text-2)}
.eos-header__signout:hover{background:var(--row-hover);color:var(--text)}
.eos-header__signout:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.eos-switch{display:flex;align-items:center;gap:7px;height:32px;padding:0 10px;border:1px solid var(--border-strong);border-radius:7px;background:var(--surface);cursor:pointer;max-width:260px;color:var(--text);transition:border-color .15s ease,box-shadow .15s ease}
.eos-switch:hover{border-color:var(--accent-bright);box-shadow:0 0 0 3px rgba(0,0,0,.08)}
.eos-switch__mark{width:15px;height:15px;border-radius:50%;background:var(--brand-teal);flex-shrink:0;box-shadow:inset 0 0 0 3px rgba(255,255,255,.52)}
.eos-switch__name{font-size:12.5px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.eos-switch__code{font-family:var(--mono);font-size:10px;color:oklch(0.58 0.01 260);flex-shrink:0}
.eos-switch__caret{font-size:9px;color:var(--muted-2);flex-shrink:0}
.eos-sep{color:oklch(0.82 0.006 260);font-size:13px;flex-shrink:0}
.eos-menu{position:absolute;top:32px;left:0;min-width:230px;background:var(--surface);border:1px solid var(--border-strong);border-radius:8px;box-shadow:0 8px 20px oklch(0.2 0.02 260 / 0.14);z-index:20;padding:4px}
.eos-menu .eos-menu__item{display:block;width:100%;height:auto;text-align:left;border:0;background:none;padding:7px 10px;border-radius:6px;font-size:12.5px;cursor:pointer;color:var(--text)}
.eos-menu .eos-menu__item:hover{background:var(--row-hover);text-decoration:none}
.eos-menu__sep{height:1px;background:oklch(0.93 0.004 260);margin:4px 2px}
.eos-menu__item--accent{font-weight:500;color:var(--accent)}
.eos-search{display:flex;align-items:center;gap:7px;flex:0 1 220px;height:32px;padding:0 10px;border:1px solid var(--border-strong);border-radius:7px;background:#fbfbfd;color:var(--faint);font-size:12px;transition:border-color .15s ease,box-shadow .15s ease}
.eos-search:focus-within{border-color:var(--brand-teal);box-shadow:0 0 0 3px rgba(0,0,0,.12)}
.eos-search input{border:0;background:none;outline:none;font-size:12px;color:var(--text);min-width:0;flex:1}
.eos-search>.eos-form-row{display:contents}
.eos-search kbd{margin-left:auto;font-family:var(--mono);font-size:10px;color:oklch(0.72 0.01 260)}

/* ---- page furniture ---- */
.eos-crumbs{font-size:11.5px;color:var(--muted-2);margin-bottom:9px}
.eos-crumbs span{color:oklch(0.8 0.006 260)}
.eos-pagehead{display:flex;align-items:flex-start;margin-bottom:16px;gap:12px}
h1.eos-title{margin:0;font-size:20px;font-weight:700;letter-spacing:-0.02em;color:var(--brand-navy)}
h1.eos-title--lg{font-size:24px}
.eos-subtitle{font-size:12.5px;color:oklch(0.55 0.012 260);margin-top:3px;font-family:var(--mono)}
.eos-pagehead__actions{margin-left:auto;display:flex;gap:8px;flex:none}

/* ---- buttons ---- */
.eos-btn{height:32px;padding:0 13px;border:1px solid var(--border-strong);background:var(--surface);border-radius:7px;font-size:12.5px;cursor:pointer;color:var(--text);display:inline-flex;align-items:center;gap:6px;white-space:nowrap;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.eos-btn:hover{text-decoration:none;background:var(--row-hover)}
.eos-btn--primary{border:0;background:var(--accent);color:#fff;font-weight:700;box-shadow:0 2px 5px rgba(0,0,0,.18)}
.eos-btn--primary:hover{background:var(--accent-hover);color:#fff;box-shadow:0 3px 8px rgba(0,0,0,.25);transform:translateY(-1px)}
.eos-btn--portal{background:#000000;border:1px solid #737373;box-shadow:0 0 0 3px rgba(115,115,115,.18),0 8px 18px rgba(0,0,0,.22)}
.eos-btn--portal:hover{background:#262626;box-shadow:0 0 0 3px rgba(115,115,115,.25),0 10px 22px rgba(0,0,0,.28)}
.eos-btn--danger{border-color:oklch(0.86 0.06 25);color:var(--bad-fg)}
.eos-btn--danger:hover{background:var(--bad-bg)}
.eos-btn--sm{height:26px;padding:0 9px;font-size:11.5px}
.eos-btn--icon{width:32px;padding:0;justify-content:center}
.eos-auth-submit{justify-content:center}
.eos-auth-sso{justify-content:center}
.eos-btn:disabled{opacity:.5;cursor:not-allowed}

/* ---- cards ---- */
.eos-card{background:var(--surface);border:1px solid var(--border);border-radius:9px;box-shadow:0 2px 8px rgba(47,40,85,.035)}
.eos-card__head{padding:11px 14px;border-bottom:1px solid var(--border-soft);display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600}
.eos-card__head .eos-card__aside{margin-left:auto;font-size:11.5px;font-weight:400;color:var(--muted-2)}
.eos-card__body{padding:14px}
.eos-stack{display:flex;flex-direction:column;gap:12px}
.eos-two-col{display:grid;grid-template-columns:minmax(0,1fr) 306px;gap:16px;align-items:start}

/* ---- tabs ---- */
.eos-tabs{display:flex;gap:16px;border-bottom:1px solid var(--border);margin-bottom:16px}
.eos-tab{padding:0 2px 8px;border:none;border-bottom:2px solid transparent;border-radius:0;background:none;color:oklch(0.5 0.012 260);font-size:12.5px;font-weight:400;cursor:pointer}
.eos-tab:hover{text-decoration:none;color:var(--accent)}
.eos-tab--active{font-weight:600;color:var(--accent);border-bottom-color:var(--accent)}

/* ---- badges ---- */
.eos-badge{display:inline-block;padding:1.5px 7px;border-radius:5px;font-size:11px;font-weight:600;letter-spacing:0.02em;background:var(--neutral-bg);color:var(--neutral-fg)}
.eos-badge--ok{background:var(--ok-bg);color:var(--ok-fg)}
.eos-badge--bad{background:var(--bad-bg);color:var(--bad-fg)}
.eos-badge--warn{background:var(--warn-bg);color:var(--warn-fg)}
.eos-badge--role{background:var(--role-bg);color:var(--role-fg)}
.eos-perm{font-family:var(--mono);font-size:10.5px;font-weight:500;padding:2.5px 7px;border-radius:5px;background:var(--neutral-bg);color:var(--neutral-fg);display:inline-block}
.eos-perm--allow{background:var(--ok-bg);color:var(--ok-fg)}
.eos-perm--deny{background:var(--bad-bg);color:var(--bad-fg)}
.eos-tag{font-family:var(--mono);font-size:9px;padding:0 4px;border-radius:3px;background:var(--neutral-bg);color:var(--neutral-fg);text-transform:uppercase;letter-spacing:.02em}
.eos-tag--ro{background:var(--neutral-bg);color:var(--neutral-fg)}
.eos-tag--hidden{background:var(--bad-bg);color:var(--bad-fg)}

/* ---- tables ---- */
.eos-tablewrap{overflow:auto;position:relative}
table.eos-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12.5px}
.eos-table thead th{text-align:left;padding:0 14px;height:30px;font-size:10.5px;font-weight:600;color:oklch(0.52 0.012 260);border-bottom:1px solid var(--border-soft);background:oklch(0.985 0.002 260);white-space:nowrap;position:sticky;top:0;z-index:2;text-transform:uppercase;letter-spacing:.03em}
.eos-table tbody td{padding:0 14px;height:34px;border-bottom:1px solid var(--border-softer);color:var(--text);background:var(--surface);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eos-table tbody tr:hover td{background:var(--row-hover)}
.eos-table th.is-frozen,.eos-table td.is-frozen{position:sticky;left:0;z-index:1}
.eos-table thead th.is-frozen{z-index:3}
.eos-table th.is-frozen::after,.eos-table td.is-frozen::after{content:'';position:absolute;top:0;right:0;bottom:0;width:1px;background:var(--border-soft)}
.eos-table .is-right{text-align:right}
.eos-table th a{color:inherit;display:inline-flex;align-items:center;gap:4px}
.eos-table th a:hover{color:var(--accent);text-decoration:none}
.eos-sortmark{font-family:var(--mono);font-size:9px;color:var(--accent)}
.eos-checkcol{width:34px;padding-left:12px !important;padding-right:0 !important}

/* ---- shared DataTable ---- */
.eos-empty{padding:44px 16px;text-align:center;color:var(--muted-2);font-size:12.5px}

/* ---- toolbar / filters / pagination ---- */
.eos-toolbar{padding:10px 14px;border-bottom:1px solid var(--border-soft);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.eos-field{height:28px;padding:0 9px;border:1px solid var(--border-strong);border-radius:6px;font-size:12px;background:var(--surface);color:var(--text);outline:none}
.eos-field:focus{border-color:var(--accent)}
.eos-chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 8px;border-radius:12px;background:var(--neutral-bg);border:1px solid var(--border-soft);font-size:11.5px;color:var(--text-2)}
.eos-chip a{color:var(--muted);font-size:12px;line-height:1}
.eos-chip a:hover{color:var(--bad-fg);text-decoration:none}
.eos-pagination{display:flex;align-items:center;gap:8px;padding:10px 14px;border-top:1px solid var(--border-soft);font-size:11.5px;color:var(--muted-2);flex-wrap:wrap}
.eos-page{min-width:26px;height:26px;padding:0 7px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-strong);border-radius:6px;font-size:11.5px;color:var(--text-2);background:var(--surface)}
.eos-page:hover{text-decoration:none;background:var(--row-hover)}
.eos-page--active{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}
.eos-page--active:hover{background:var(--accent);color:#fff}
.eos-page--disabled{opacity:.4;pointer-events:none}
.eos-popover{position:absolute;top:32px;right:0;z-index:30;background:var(--surface);border:1px solid var(--border-strong);border-radius:8px;box-shadow:0 8px 20px oklch(0.2 0.02 260 / 0.14);padding:10px;min-width:250px;max-height:340px;overflow:auto}
.eos-popover label{display:flex;align-items:center;gap:8px;padding:5px 4px;font-size:12px;border-radius:5px;cursor:pointer}
.eos-popover label:hover{background:var(--row-hover)}

/* ---- system settings ---- */
.eos-system-settings__card{margin-bottom:12px}
.eos-system-settings__meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.eos-system-settings__meta-card{min-height:74px;padding:12px;border:1px solid var(--border-soft);border-radius:7px;background:var(--bg)}
.eos-system-settings__meta-label{font-size:10px;font-weight:700;letter-spacing:.07em;color:var(--muted);text-transform:uppercase}
.eos-system-settings__meta-value{margin-top:10px;font-size:13px;font-weight:600;color:var(--text);word-break:break-word}
.eos-system-settings__maintenance{display:flex;align-items:center;gap:14px}
.eos-system-settings__maintenance-copy{min-width:0;flex:1}
.eos-system-settings__maintenance-controls{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex:none}
.eos-system-settings__section-title{font-size:12.5px;font-weight:600;color:var(--text)}
.eos-system-settings__hint{margin-top:3px;color:var(--muted);font-size:11.5px;line-height:1.45}
.eos-system-settings__toggle{display:inline-flex;align-items:center;gap:8px;flex:none;color:var(--text-2);font-size:11.5px;cursor:pointer;white-space:nowrap}
.eos-system-settings__toggle input{position:absolute;width:1px;height:1px;opacity:0}
.eos-s3-erp{display:block}
.eos-s3-erp__grid{display:grid;grid-template-columns:minmax(0,1fr) 306px;gap:16px;align-items:start}
.eos-s3-erp__main{min-width:0}
.eos-s3-erp__rail{min-width:0}
.eos-s3-erp__section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:13px;padding-bottom:12px;border-bottom:1px solid var(--border-soft)}
.eos-s3-erp__code{flex:none;padding:4px 7px;border:1px solid var(--border-soft);border-radius:6px;background:var(--bg);color:var(--muted);font-size:10px}
.eos-s3-erp__fieldset{padding-top:13px;border-top:1px solid var(--border-softer)}
.eos-s3-erp__fieldset:first-of-type{padding-top:0;border-top:0}
.eos-s3-erp__fieldset + .eos-s3-erp__fieldset{margin-top:14px}
.eos-s3-erp__fieldset-title{margin-bottom:10px;font-size:10px;font-weight:700;letter-spacing:.07em;color:var(--muted);text-transform:uppercase}
.eos-s3-erp__form-grid{gap:13px 18px}
.eos-s3-erp__control-list{display:grid;gap:12px}
.eos-s3-erp__control-row{padding:10px;border:1px solid var(--border-soft);border-radius:7px;background:var(--bg)}
.eos-s3-erp__ledger{margin:0;display:grid;border:1px solid var(--border-soft);border-radius:8px;overflow:hidden}
.eos-s3-erp__ledger div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:10px;padding:9px 10px;border-bottom:1px solid var(--border-soft);background:var(--surface)}
.eos-s3-erp__ledger div:last-child{border-bottom:0}
.eos-s3-erp__ledger dt{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.eos-s3-erp__ledger dd{margin:0;min-width:0;color:var(--text-2);font-size:11.5px;line-height:1.4;word-break:break-word}
.eos-s3-erp__actionbar{position:sticky;bottom:-1px;z-index:4;box-shadow:0 -6px 18px rgba(50,40,95,.06)}
.eos-switch-control{display:inline-flex;align-items:center;gap:8px;color:var(--text-2);font-size:11.5px;cursor:pointer}
.eos-switch-control>input{position:absolute;width:1px;height:1px;opacity:0}
.eos-switch-control__track{width:32px;height:18px;border-radius:999px;background:var(--border-strong);position:relative;flex:none;transition:background .15s ease}
.eos-switch-control__track::after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(47,40,85,.2);transition:transform .15s ease}
.eos-switch-control>input:checked + .eos-switch-control__track{background:var(--accent)}
.eos-switch-control>input:checked + .eos-switch-control__track::after{transform:translateX(14px)}
.eos-switch-control>input:focus-visible + .eos-switch-control__track{outline:2px solid var(--accent-bright);outline-offset:2px}
.eos-switch-control--disabled{cursor:not-allowed;opacity:.55}
.eos-switch-control__copy{display:flex;flex-direction:column;gap:2px}
.eos-switch-control__label{font-weight:600}
.eos-switch-control__description{color:var(--muted);font-size:11px;line-height:1.4}

/* ---- maintenance screen ---- */
.eos-maintenance-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--bg)}
.eos-maintenance{width:min(100%,520px);padding:36px 32px;text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 10px 30px rgba(50,40,95,.07)}
.eos-maintenance__mark{width:42px;height:42px;margin:0 auto 18px;display:grid;place-items:center;border-radius:50%;background:var(--brand-navy);color:#fff;font-size:17px;font-weight:700;box-shadow:inset 0 0 0 5px rgba(255,255,255,.12)}
.eos-maintenance__eyebrow{font-family:var(--mono);font-size:10px;font-weight:600;letter-spacing:.09em;color:var(--accent);text-transform:uppercase}
.eos-maintenance__title{margin:10px 0 8px;font-size:25px;letter-spacing:-.025em;color:var(--brand-navy)}
.eos-maintenance__message{max-width:410px;margin:0 auto;color:var(--text-2);font-size:13px;line-height:1.55}
.eos-maintenance__hint{margin:14px 0 0;color:var(--muted);font-size:11.5px}

/* ---- error screen ---- */
.eos-error-page{min-height:100vh;background:var(--bg)}
.eos-error-page .eos-error{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:40px 18px;color:var(--text)}
.eos-error__inner{width:min(100%,540px)}
.eos-error__brand{display:flex;align-items:center;gap:10px;margin-bottom:28px;color:var(--brand-navy)}
.eos-error__brand > span{font-size:15px;font-weight:700;letter-spacing:-.015em}
.eos-error__mark{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--brand-navy);color:#fff;box-shadow:0 4px 12px rgba(31,39,62,.18)}
.eos-error__mark svg{width:30px;height:30px;display:block}
.eos-error__card{padding:27px 24px;border-top:3px solid var(--brand-navy)}
.eos-error__status{font-size:46px;font-weight:600;letter-spacing:0;color:var(--brand-navy);line-height:1}
.eos-error__title{margin:14px 0 8px;font-size:20px;font-weight:700;letter-spacing:0;color:var(--text)}
.eos-error__body{max-width:440px;margin:0;font-size:13px;line-height:1.6;color:var(--text-2)}
.eos-error__detail{margin-top:14px;font-size:10.5px;color:var(--muted);background:var(--row-hover);border:1px solid var(--border-soft);border-radius:6px;padding:9px 10px}
.eos-error__actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
.eos-error__audit{margin-top:16px;font-size:11px;color:var(--muted)}

/* ---- forms ---- */
.eos-form-section{padding:14px;border-bottom:1px solid var(--border-soft)}
.eos-form-section:last-child{border-bottom:0}
.eos-form-section__title{font-size:9.5px;font-weight:600;letter-spacing:.09em;color:var(--muted);text-transform:uppercase;margin-bottom:12px}
.eos-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px}
.eos-form-row{display:flex;flex-direction:column;gap:6px;min-width:0}
.eos-form-row--wide{grid-column:1/-1}
.eos-label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:500;color:var(--muted)}
.eos-input,.eos-form-row input,.eos-form-row select,.eos-form-row textarea{height:35px;padding:0 10px;font-size:13px;border:1px solid var(--border-strong);border-radius:7px;outline:none;color:var(--text);background:var(--surface);width:100%;transition:border-color .15s ease,box-shadow .15s ease}
.eos-role-options{display:flex;flex-direction:column;gap:4px}
.eos-role-option{position:relative;display:flex;align-items:center;gap:10px;min-height:36px;padding:5px 10px;border:1px solid var(--border-soft);border-radius:6px;background:var(--surface);cursor:pointer;color:var(--text);font-size:12.5px;line-height:1.2;transition:background .12s ease,border-color .12s ease}
.eos-role-option:hover{background:var(--row-hover);border-color:var(--border-strong)}
.eos-role-option:has(input:checked){background:var(--brand-teal-soft);border-color:var(--accent)}
.eos-role-option input{position:absolute;width:1px;height:1px;opacity:0;margin:0}
.eos-role-option__box{display:grid;place-items:center;width:18px;height:18px;flex:none;border:2px solid oklch(0.82 0.025 255);border-radius:5px;background:var(--surface);box-shadow:0 1px 2px oklch(0.25 0.03 260 / 0.1);transition:background .12s ease,border-color .12s ease}
.eos-role-option input:checked + .eos-role-option__box{border-color:var(--accent);background:var(--accent)}
.eos-role-option input:checked + .eos-role-option__box::after{content:"✓";display:block;width:auto;height:auto;margin:0;color:#fff;font-size:13px;font-weight:700;line-height:1;transform:none}
.eos-role-option:focus-within{outline:2px solid oklch(0.7 0.12 255 / 0.5);outline-offset:1px}
.eos-role-option__label{line-height:1.2}
.eos-form-row textarea{height:auto;padding:8px 10px;resize:vertical;line-height:1.5}
.eos-input:focus,.eos-form-row input:focus,.eos-form-row select:focus,.eos-form-row textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(0,0,0,.12)}
.eos-search .eos-form-row input{height:auto;padding:0;border:0;border-radius:0;background:transparent;outline:none;width:auto;box-shadow:none}
.eos-input--readonly,input:disabled,select:disabled,textarea:disabled{background:var(--neutral-bg);color:var(--muted);cursor:not-allowed}
.eos-form-row input[type=checkbox]{width:16px;height:16px;height:16px;accent-color:var(--accent);cursor:pointer}
.eos-help{font-size:11px;color:var(--muted-2);line-height:1.45}
.eos-checkbox-control label{display:inline-flex;align-items:center;gap:8px;color:var(--text-2);font-size:12px;cursor:pointer}
.eos-checkbox-control input{width:16px;height:16px;accent-color:var(--accent);cursor:pointer}
.eos-checkbox-control input:disabled{cursor:not-allowed}
.eos-select-control,.eos-multiselect-control{position:relative}
.eos-select-control__trigger,.eos-multiselect-control__trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;cursor:pointer}
.eos-select-control__menu,.eos-multiselect-control__menu{position:absolute;z-index:30;top:calc(100% + 4px);left:0;right:0;max-height:280px;overflow:auto;padding:4px;background:var(--surface);border:1px solid var(--border-strong);border-radius:7px;box-shadow:0 8px 20px oklch(0.2 0.02 260 / .14)}
.eos-select-control__search,.eos-multiselect-control__search{height:30px!important;margin:2px 0 4px}
.eos-select-control__option{padding:8px 10px;border-radius:5px;cursor:pointer;font-size:12px}
.eos-select-control__option:hover,.eos-select-control__option:focus{background:var(--row-hover);outline:none}
.eos-select-control__empty,.eos-multiselect-control__empty{padding:10px;color:var(--muted);font-size:12px}
.eos-select-control__clear{position:absolute;right:28px;top:25px;border:0;background:none;color:var(--muted);cursor:pointer;font-size:16px}
.eos-multiselect-control__box{display:flex;align-items:center;gap:4px;min-height:35px;padding-left:6px;border:1px solid var(--border-strong);border-radius:7px;background:var(--surface)}
.eos-multiselect-control__trigger{border:0;background:transparent;flex:1}
.eos-multiselect-control__chips{display:flex;gap:4px;flex-wrap:wrap}
.eos-multiselect-control__chips .eos-chip{height:23px}
.eos-multiselect-control__chips button{border:0;background:none;padding:0;color:var(--muted);cursor:pointer}
.eos-multiselect-control__select-all,.eos-multiselect-control__option{display:flex;align-items:center;gap:8px;padding:8px 10px;font-size:12px;cursor:pointer}
.eos-multiselect-control__select-all{border-bottom:1px solid var(--border-soft);font-weight:600}
.eos-multiselect-control__option:hover{background:var(--row-hover)}
.eos-multiselect-control__select-all input,.eos-multiselect-control__option input{width:16px;height:16px;accent-color:var(--accent)}
.eos-date-picker__fields,.eos-range-input__fields{display:flex;align-items:end;gap:8px}
.eos-date-picker__fields .eos-input,.eos-range-input__fields .eos-input{flex:1}
.eos-date-picker__separator,.eos-range-input__separator{padding-bottom:9px;color:var(--muted);font-size:12px}
.eos-date-picker__clear{margin-top:6px}
.eos-range-input__fields>label{display:flex;flex:1;flex-direction:column;gap:4px;color:var(--muted);font-size:11px}
.eos-error{font-size:11px;color:var(--bad-fg);line-height:1.45}
.eos-formbar{display:flex;align-items:center;gap:8px;padding:12px 14px;border-top:1px solid var(--border-soft);background:oklch(0.985 0.002 260);border-radius:0 0 8px 8px}
.eos-password-field{position:relative;width:100%}
.eos-password-field>input{width:100%;padding-right:38px !important}
.eos-password-toggle{position:absolute;top:50%;right:6px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:5px;background:transparent;color:var(--muted);cursor:pointer;transform:translateY(-50%)}
.eos-password-toggle:hover{background:var(--neutral-bg);color:var(--accent)}
.eos-password-toggle:focus-visible{outline:2px solid var(--accent-bright);outline-offset:1px}
.eos-password-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}

/* ---- AI rephrase fields ---- */
.eos-ai-text-control{position:relative;min-width:0}
.eos-ai-text-control>.eos-input{padding-right:38px}
.eos-ai-text-trigger{position:absolute;z-index:2;top:4px;right:5px;width:27px;height:27px;display:grid;place-items:center;padding:0;border:0;border-radius:6px;background:var(--brand-teal-soft);color:var(--accent);font-size:15px;line-height:1;cursor:pointer;box-shadow:0 1px 4px rgba(18,61,66,.12)}
.eos-ai-text-control>textarea+.eos-ai-text-trigger{top:6px}
.eos-ai-text-trigger:hover{background:var(--row-hover);color:var(--brand-navy)}
.eos-ai-text-trigger:focus-visible{outline:2px solid var(--accent-bright);outline-offset:1px}
.eos-ai-text-popover{position:absolute;z-index:45;top:calc(100% + 6px);right:0;width:min(330px,calc(100vw - 32px));padding:12px;border:1px solid var(--border-strong);border-radius:9px;background:var(--surface);box-shadow:0 12px 30px rgba(35,31,64,.18)}
.eos-ai-text-popover__title{margin-bottom:8px;color:var(--brand-navy);font-size:12px;font-weight:700}
.eos-ai-text-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.eos-ai-text-mode{min-height:30px;padding:5px 8px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text-2);font:inherit;font-size:11px;cursor:pointer}
.eos-ai-text-mode:hover:not(:disabled),.eos-ai-text-mode:focus-visible{border-color:var(--accent);background:var(--brand-teal-soft);color:var(--accent);outline:none}
.eos-ai-text-mode:disabled{opacity:.45;cursor:not-allowed}
.eos-ai-text-instruction{display:flex;flex-direction:column;gap:5px;margin-top:10px;color:var(--muted);font-size:10.5px;font-weight:500}
.eos-ai-text-instruction input{height:31px!important;padding:0 8px!important;font-size:11.5px!important}
.eos-ai-text-optional{font-weight:400;color:var(--muted-2)}
.eos-ai-text-status{min-height:0;margin-top:7px;color:var(--muted);font-size:10.5px;line-height:1.4}
.eos-ai-text-status:empty{display:none}
.eos-ai-text-status[data-tone=error]{color:var(--bad-fg)}
.eos-ai-text-status[data-tone=success]{color:var(--accent)}
.eos-ai-text-field.is-generating .eos-ai-text-trigger span{animation:eos-ai-pulse .8s ease-in-out infinite alternate}
.eos-ai-text-preview__label{margin-bottom:5px;color:var(--muted);font-size:9.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.eos-ai-text-output{max-height:180px;overflow:auto;padding:8px;border:1px solid var(--border-soft);border-radius:6px;background:var(--neutral-bg);color:var(--text);font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.eos-ai-text-preview__actions{display:flex;gap:6px;justify-content:flex-end;margin-top:9px}
@keyframes eos-ai-pulse{to{opacity:.4;transform:scale(.85)}}
@media (prefers-reduced-motion:reduce){.eos-ai-text-field.is-generating .eos-ai-text-trigger span{animation:none}}
@media (max-width:520px){.eos-ai-text-popover{right:-4px}}

/* ---- profile ---- */
.eos-profile-card-title{font-size:12.5px;font-weight:600;margin:16px 0 7px;padding-top:13px;border-top:1px solid var(--border-soft)}
.eos-profile-summary{display:flex;align-items:center;gap:10px}
.eos-profile-summary__name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eos-profile-summary__role{font-size:11px;color:var(--muted);margin-top:2px}
.eos-avatar--lg{width:40px;height:40px;font-size:13px}
.eos-password-rules{padding:9px 11px;border:1px solid var(--border-soft);border-radius:6px;background:var(--neutral-bg);color:var(--muted);font-size:11px;line-height:1.45}
.eos-password-rules__title{font-size:10px;font-weight:600;letter-spacing:.05em;color:var(--text-2);text-transform:uppercase}
.eos-password-rules__list ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:3px 22px;margin:5px 0 0 16px;padding:0}

/* ---- detail ---- */
.eos-card__head.eos-detail-section-head{background:#eee;padding:11px 14px}
.eos-detail-grid{padding:14px;display:grid;grid-template-columns:1fr 1fr;gap:14px 24px}
.eos-detail__label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:500;color:var(--muted);margin-bottom:3px}
.eos-detail__value{font-size:13px;word-break:break-word}
.eos-meta-row{display:flex;justify-content:space-between;gap:10px;padding:5px 0;font-size:11.5px}
.eos-meta-row span:first-child{color:var(--muted)}
.eos-meta-row span:last-child{font-family:var(--mono);font-size:11px;text-align:right}

/* ---- timeline ---- */
.eos-timeline{padding:14px 16px}
.eos-record-detail>.eos-stack{min-width:0}
.eos-record-activity .eos-card__head{flex-wrap:wrap}
.eos-record-activity .eos-tl-item{grid-template-columns:15px minmax(0,1fr)}
.eos-record-activity .eos-tl-body{min-width:0;overflow-wrap:anywhere}
@media (max-width:1024px){.eos-record-detail{grid-template-columns:minmax(0,1fr)}}
@media (max-width:560px){.eos-record-detail .eos-detail-grid{grid-template-columns:minmax(0,1fr)}}
.eos-tl-item{display:grid;grid-template-columns:15px 1fr;gap:10px}
.eos-tl-rail{display:flex;flex-direction:column;align-items:center}
.eos-tl-dot{width:7px;height:7px;border-radius:50%;background:oklch(0.75 0.01 260);margin-top:4px}
.eos-tl-dot--perm{background:oklch(0.55 0.13 300)}
.eos-tl-dot--export{background:oklch(0.65 0.13 75)}
.eos-tl-dot--create{background:oklch(0.55 0.13 155)}
.eos-tl-dot--delete{background:oklch(0.6 0.16 25)}
.eos-tl-line{flex:1;width:1px;background:oklch(0.93 0.004 260)}
.eos-tl-body{padding-bottom:14px;font-size:12.5px}
.eos-tl-item:last-child .eos-tl-body{padding-bottom:0}
.eos-tl-meta{font-size:11px;color:var(--muted-2);margin-top:2px;font-family:var(--mono)}

/* ---- misc ---- */
.eos-notice{display:flex;gap:9px;padding:11px 12px;border:1px solid var(--warn-border);background:oklch(0.98 0.02 85);border-radius:6px;font-size:11.5px;line-height:1.5;color:var(--warn-fg)}
.eos-notice--error{border-color:oklch(0.86 0.06 25);background:var(--bad-bg);color:var(--bad-fg)}
.eos-notice--ok{border-color:oklch(0.86 0.07 155);background:var(--ok-bg);color:var(--ok-fg)}
.eos-notice__dot{width:15px;height:15px;border-radius:50%;background:oklch(0.72 0.13 75);flex:none;margin-top:1px}
.eos-notice--error .eos-notice__dot{background:oklch(0.62 0.19 25)}
.eos-notice--ok .eos-notice__dot{background:oklch(0.6 0.14 155)}
.eos-messages{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.eos-mono{font-family:var(--mono)}
.eos-muted{color:var(--muted)}
.eos-stat{font-size:20px;font-weight:600;letter-spacing:-0.02em}
.eos-stat__label{font-size:10.5px;color:var(--muted);margin-top:3px}
.eos-appicon{width:48px;height:48px;border-radius:8px;flex:none;display:grid;place-items:center;color:#fff}
.eos-appicon--sm{width:32px;height:32px;border-radius:6px}
.eos-appicon--xs{width:26px;height:26px;border-radius:6px}
.eos-appicon__globe{width:52%;height:52%;display:block}
.eos-appicon__presentation{width:50%;height:50%;display:block}
.eos-relative{position:relative}

/* ---- scope tree controls ---- */
.eos-scope-toolbar{display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid var(--border-soft);background:oklch(0.99 0.002 260);flex-wrap:wrap}
.eos-scope-toolbar__group{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.eos-scope-toolbar__group--right{margin-left:auto}
.eos-scope-toolbar__label{font-size:10.5px;font-weight:600;letter-spacing:.04em;color:var(--muted);text-transform:uppercase;margin-right:2px}
.eos-scope-checkbox{display:flex;align-items:center;gap:5px;margin-left:4px;font-size:11.5px;color:var(--text-2);cursor:pointer;white-space:nowrap}
.eos-scope-checkbox input{width:14px;height:14px;accent-color:var(--accent);cursor:pointer;margin:0}
.eos-scope-filter{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted);white-space:nowrap}
.eos-scope-filter.eos-select-control{flex-direction:row}
.eos-scope-filter .eos-select-control__trigger{width:auto;min-width:96px;height:26px;font-size:11.5px;padding-right:24px}
.eos-scope-filter .eos-field{height:26px;font-size:11.5px;padding-right:24px}
.eos-scope-status{display:flex;align-items:center;gap:7px;padding:7px 12px;border-bottom:1px solid var(--warn-border);background:var(--warn-bg);color:var(--warn-fg);font-size:11.5px}
.eos-scope-status__dot{width:7px;height:7px;border-radius:50%;background:var(--warn-fg);flex:none}
.eos-scope-status__hint{color:oklch(0.55 0.03 75);margin-left:auto}
.eos-scope-grid{display:grid;grid-template-columns:minmax(0,1fr) 486px}
.eos-scope-action-grid{display:grid;border-left:1px solid var(--border-soft)}
.eos-scope-action-grid>*{min-width:0;padding-inline:6px;box-sizing:border-box}
.eos-scope-action-grid--header>*{white-space:nowrap}
.eos-scope-action-grid>*+*{border-left:1px solid var(--border-soft)}
.eos-scope-row__scope{display:flex;align-items:center;min-width:0}
.eos-scope-tree-toggle,.eos-scope-tree-toggle-spacer{width:22px;height:22px;flex:none}
.eos-scope-tree-toggle{display:grid;place-items:center;border-radius:5px;color:var(--muted-2);cursor:pointer}
.eos-scope-tree-toggle:hover{background:var(--row-hover);color:var(--text-2)}
.eos-scope-tree-toggle:focus-visible{outline:2px solid var(--accent-bright);outline-offset:1px}
.eos-scope-tree-toggle__icon{width:14px;height:14px;display:block;transition:transform .12s ease}
.eos-scope-tree-toggle[aria-expanded="true"] .eos-scope-tree-toggle__icon{transform:rotate(90deg)}
.eos-scope-row__link{min-width:0;flex:1}
.eos-scope-row__link:hover{text-decoration:none;background:var(--row-hover)}
.eos-scope-row__link.is-current-resource{border-left:2px solid var(--accent);}
.eos-scope-row.is-bulk-selected{background:oklch(0.965 0.018 255) !important;box-shadow:inset 3px 0 0 var(--accent)}
.eos-scope-row__select{width:23px;height:23px;flex:none;padding:0;margin-left:5px;border:0;background:none;color:var(--accent);font-family:var(--mono);font-size:13px;line-height:1;cursor:pointer;border-radius:4px}
.eos-scope-row__select:hover{background:oklch(0.93 0.025 255)}
.eos-scope-row__select:focus-visible,.eos-scope-row__action:focus-visible{outline:2px solid var(--accent-bright);outline-offset:1px}
.eos-scope-row__actions{display:flex;align-items:center;gap:3px;padding-right:6px;opacity:0;transition:opacity .12s ease}
.eos-scope-row:hover .eos-scope-row__actions,.eos-scope-row.is-bulk-selected .eos-scope-row__actions,.eos-scope-row:focus-within .eos-scope-row__actions{opacity:1}
.eos-scope-row__action{width:20px;height:20px;padding:0;border:1px solid var(--border-strong);background:var(--surface);border-radius:4px;color:var(--muted);font-family:var(--mono);font-size:9px;font-weight:600;cursor:pointer}
.eos-scope-row__action:hover{background:var(--row-hover);border-color:var(--accent);color:var(--accent)}
.eos-scope-row__action--allow:hover{border-color:var(--ok-fg);color:var(--ok-fg);background:var(--ok-bg)}
.eos-scope-row__action--deny:hover{border-color:var(--bad-fg);color:var(--bad-fg);background:var(--bad-bg)}
.eos-field-toolbar{display:flex;align-items:center;gap:6px;padding:8px 10px;border-bottom:1px solid var(--border-soft);background:oklch(0.99 0.002 260);flex-wrap:wrap}
.eos-field-toolbar .eos-search{height:26px;flex:1 1 150px;min-width:140px}
.eos-field-toolbar .eos-search input{font-size:11.5px}
.eos-field-toolbar__label{font-size:10px;font-weight:600;letter-spacing:.04em;color:var(--muted);text-transform:uppercase;margin-left:auto;white-space:nowrap}
.eos-field-toolbar .eos-scope-filter{margin-left:auto}
.eos-field-toolbar .eos-scope-filter + .eos-field-toolbar__label{margin-left:2px}
.eos-field-cell{display:flex;align-items:center;gap:8px;min-width:0}
.eos-field-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
.eos-field-row-actions{display:flex;align-items:center;gap:3px;margin-left:auto;opacity:0;transition:opacity .12s ease}
.eos-table tbody tr:hover .eos-field-row-actions,.eos-table tbody tr:focus-within .eos-field-row-actions{opacity:1}
.eos-field-row-action{width:20px;height:20px;padding:0;border:1px solid var(--border-strong);background:var(--surface);border-radius:4px;color:var(--muted);font-family:var(--mono);font-size:9px;font-weight:600;cursor:pointer}
.eos-field-row-action:hover{background:var(--row-hover);border-color:var(--accent);color:var(--accent)}
.eos-field-row-action--allow:hover{border-color:var(--ok-fg);color:var(--ok-fg);background:var(--ok-bg)}
.eos-field-row-action--deny:hover{border-color:var(--bad-fg);color:var(--bad-fg);background:var(--bad-bg)}

/* ==== DataTable — markup and styles transcribed from the design reference,
       driven entirely by the backend. ==== */
.datatable-container{display:flex;flex-direction:column;background:#fff;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,0.08);overflow:hidden}
.datatable-toolbar{display:flex;align-items:center;padding:14px 16px;border-bottom:1px solid oklch(0.92 0.005 260);gap:12px;flex-wrap:wrap}
.datatable-search{flex:1;min-width:200px}
.datatable-search input{width:100%;height:32px;padding:0 10px;border:1px solid oklch(0.89 0.006 260);border-radius:5px;font-size:13px;transition:border-color 0.2s;color:var(--text)}
.datatable-search input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(0,0,0,.1)}
.datatable-actions{display:flex;gap:8px;align-items:center}
.datatable-wrapper{flex:1;overflow:auto;position:relative;max-height:calc(100vh - 260px)}
.datatable{width:100%;border-collapse:collapse;font-size:13px}
.datatable thead{background:oklch(0.98 0.002 260);border-bottom:1px solid oklch(0.92 0.005 260);position:sticky;top:0;z-index:10}
.datatable th{padding:10px 12px;text-align:left;font-weight:600;color:oklch(0.55 0.01 260);text-transform:uppercase;font-size:11px;letter-spacing:0.02em;border-right:1px solid oklch(0.94 0.005 260);user-select:none;background:oklch(0.98 0.002 260);white-space:nowrap}
.datatable th:last-child{border-right:none}
.th-content{display:flex;align-items:center;gap:6px}
.th-label{flex:1;cursor:pointer;min-width:0;color:inherit}
.th-label:hover{color:oklch(0.35 0.01 260);text-decoration:none}
.sort-icon{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;opacity:0;transition:opacity 0.2s;flex-shrink:0}
.th-sortable .sort-icon{opacity:0.4}
.th-sortable:hover .sort-icon{opacity:0.8}
.sort-icon.is-active{opacity:1;color:var(--accent)}
.sort-rank{font-family:var(--mono);font-size:8px;color:var(--accent);margin-left:1px}
.filter-icon{width:18px;height:18px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:3px;transition:all 0.2s;opacity:0.5;flex-shrink:0;font-size:12px;border:0;background:none;padding:0;color:inherit}
.th-filterable .filter-icon{opacity:0.6}
.filter-icon:hover{opacity:1;background:rgba(0,0,0,.1)}
.filter-icon.active{opacity:1;background:var(--accent);color:#fff}
.datatable tbody tr{border-bottom:1px solid oklch(0.95 0.003 260);transition:background 0.15s}
.datatable tbody tr:hover{background:oklch(0.98 0.002 260)}
.datatable td{padding:10px 12px;border-right:1px solid oklch(0.97 0.002 260);background:inherit}
.datatable td:last-child{border-right:none}
.datatable th.col-frozen,.datatable td.col-frozen{position:sticky;left:var(--frozen-left,0px);z-index:5;background:#fff}
.datatable thead th.col-frozen{z-index:15;background:oklch(0.98 0.002 260)}
.datatable tbody tr:hover td.col-frozen{background:oklch(0.98 0.002 260)}
.datatable .col-check{width:36px;padding-right:0}
.datatable .num{text-align:right}
.col-resizer{position:absolute;top:0;right:0;width:5px;height:100%;cursor:col-resize;user-select:none}
.datatable th{position:relative}
.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;color:oklch(0.6 0.01 260);text-align:center;font-size:13px}
.datatable-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid oklch(0.92 0.005 260);background:oklch(0.98 0.002 260);font-size:12px;color:oklch(0.55 0.01 260);gap:12px;flex-wrap:wrap}
.pagination{display:flex;align-items:center;gap:4px}
.pagination a,.pagination span{min-width:28px;height:28px;padding:0 6px;display:flex;align-items:center;justify-content:center;border:1px solid oklch(0.89 0.006 260);background:#fff;border-radius:4px;font-size:12px;transition:all 0.2s;color:var(--text)}
.pagination a:hover{border-color:var(--accent);background:var(--accent);color:#fff;text-decoration:none}
.pagination span.disabled{opacity:0.4;cursor:not-allowed}
.pagination span.active{background:var(--accent);color:#fff;border-color:var(--accent);font-weight:600}
.pagination span.gap{border:0;background:none}
.filter-popover{position:absolute;background:#fff;border:1px solid oklch(0.89 0.006 260);border-radius:6px;box-shadow:0 4px 12px rgba(0,0,0,0.15);z-index:1000;min-width:320px;max-width:400px;padding:16px;display:none;animation:slideIn 0.15s ease-out}
.filter-popover.active{display:block}
@keyframes slideIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.filter-popover-header{font-weight:600;margin-bottom:14px;color:oklch(0.28 0.012 260);display:flex;justify-content:space-between;align-items:center;font-size:13px}
.filter-popover-close{background:none;border:none;font-size:18px;cursor:pointer;color:oklch(0.6 0.01 260);padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center}
.match-mode{margin-bottom:14px}
.match-mode label{display:block;font-size:11px;font-weight:600;text-transform:uppercase;color:oklch(0.55 0.01 260);margin-bottom:6px}
.match-mode select{width:100%;height:32px;padding:0 8px;border:1px solid oklch(0.89 0.006 260);border-radius:5px;font-size:13px;background:#fff;cursor:pointer}
.filter-rules{margin-bottom:14px;max-height:300px;overflow-y:auto}
.filter-rule{display:flex;flex-direction:column;gap:8px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid oklch(0.95 0.003 260)}
.filter-rule:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.filter-rule-row{display:flex;gap:8px;align-items:flex-end}
.filter-rule select,.filter-rule input{flex:1;height:32px;padding:0 8px;border:1px solid oklch(0.89 0.006 260);border-radius:5px;font-size:13px;min-width:0}
.filter-rule input:focus,.filter-rule select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(0,0,0,.1)}
.filter-rule-remove{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:1px solid oklch(0.89 0.006 260);background:#fff;border-radius:5px;cursor:pointer;color:oklch(0.6 0.01 260);font-size:16px;transition:all 0.2s;flex:none}
.filter-rule-remove:hover{border-color:oklch(0.25 0.1 25);color:oklch(0.25 0.1 25)}
.filter-actions{display:flex;gap:8px;margin-top:14px;border-top:1px solid oklch(0.95 0.003 260);padding-top:14px}
.filter-actions button{flex:1;height:32px;border:1px solid oklch(0.89 0.006 260);background:#fff;border-radius:5px;font-size:12px;font-weight:600;cursor:pointer;transition:all 0.2s}
.filter-actions .btn-clear{color:oklch(0.6 0.01 260)}
.filter-actions .btn-clear:hover{background:oklch(0.98 0.002 260)}
.filter-actions .btn-apply{background:var(--accent);color:#fff;border-color:var(--accent)}
.filter-actions .btn-apply:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.add-rule-btn{width:100%;height:32px;border:1px dashed oklch(0.89 0.006 260);background:oklch(0.98 0.002 260);border-radius:5px;font-size:12px;cursor:pointer;color:var(--accent);font-weight:600;transition:all 0.2s;margin-bottom:12px}
.add-rule-btn:hover{border-color:var(--accent);background:var(--brand-black-soft)}
.columns-menu{position:fixed;max-width:calc(100vw - 24px);box-sizing:border-box;background:#fff;border:1px solid oklch(0.89 0.006 260);border-radius:5px;box-shadow:0 2px 8px rgba(0,0,0,0.1);z-index:500;min-width:220px;max-height:320px;overflow-y:auto;overscroll-behavior:contain;display:none;padding:4px}
.columns-menu.active{display:block}
.columns-menu-item{display:flex;align-items:center;padding:7px 10px;border:none;background:none;width:100%;text-align:left;font-size:13px;cursor:pointer;transition:background 0.15s;gap:8px;border-radius:4px}
.columns-menu-item:hover{background:oklch(0.98 0.002 260)}
.columns-menu-item input{cursor:pointer;width:16px;height:16px;accent-color:var(--accent)}
.columns-menu-foot{display:flex;gap:6px;padding:6px;border-top:1px solid oklch(0.95 0.003 260);margin-top:4px;position:sticky;bottom:-4px;background:#fff;z-index:1}
.columns-menu-foot button{flex:1;height:28px;border:1px solid oklch(0.89 0.006 260);background:#fff;border-radius:5px;font-size:11.5px;font-weight:600;cursor:pointer}
.columns-menu-foot .apply{background:var(--accent);border-color:var(--accent);color:#fff}
.dropdown-menu{position:absolute;background:#fff;border:1px solid oklch(0.89 0.006 260);border-radius:5px;box-shadow:0 2px 8px rgba(0,0,0,0.1);z-index:500;min-width:140px;display:none;animation:slideIn 0.15s ease-out;padding:4px}
.dropdown-menu.active{display:block}
#exportMenu{position:fixed}
.dropdown-menu form{margin:0}
.dropdown-menu__checkbox{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:12px;cursor:pointer;border-radius:4px}
.dropdown-menu__checkbox:hover{background:oklch(0.98 0.002 260)}
.dropdown-menu a,.dropdown-menu button{display:block;width:100%;padding:8px 12px;border:none;background:none;text-align:left;font-size:13px;cursor:pointer;transition:background 0.15s;border-radius:4px;color:var(--text)}
.dropdown-menu a:hover,.dropdown-menu button:hover{background:oklch(0.98 0.002 260);text-decoration:none}
.dropdown-menu .danger{color:oklch(0.45 0.16 25)}
.row-menu-btn{height:28px;width:28px;border:1px solid oklch(0.89 0.006 260);background:#fff;border-radius:4px;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;color:var(--text)}
.row-menu-btn:hover{border-color:var(--accent);color:var(--accent)}
.bulkbar{display:flex;align-items:center;gap:8px;padding:10px 16px;background:oklch(0.96 0.02 255);border-bottom:1px solid oklch(0.9 0.03 255);font-size:12.5px}
.bulkbar[hidden]{display:none}
.active-filters{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:10px 16px;border-bottom:1px solid oklch(0.95 0.003 260)}

/* ---- auth branding ---- */
.eos-auth__brand{display:flex;align-items:center;gap:10px;margin-bottom:44px;color:var(--brand-navy)}
.eos-auth__brand > span{font-weight:700 !important;letter-spacing:-.015em}
.eos-auth__mark{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--brand-navy);color:#fff;box-shadow:0 4px 12px rgba(31,39,62,.18)}
.eos-auth__mark svg{width:30px;height:30px;display:block}

/* ---- responsive shell ---- */
@media (max-width: 760px){
  .eos-sidebar{width:188px}
  .eos-sidebar.eos-sidebar--collapsed{width:62px}
  .eos-header{padding:0 14px}
  .eos-content{padding:16px 14px 32px}
  .eos-search{flex-basis:150px}
  .eos-system-settings__meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  .eos-system-settings__maintenance{align-items:flex-start;flex-wrap:wrap}
  .eos-s3-erp__grid{grid-template-columns:1fr}
  .eos-s3-erp__actionbar{position:static}
}
@media (max-width: 560px){
  .eos-sidebar{width:62px;padding-bottom:8px}
  .eos-sidebar__collapse-toggle{display:none}
  .eos-brand{justify-content:center;padding:14px 0 18px}
  .eos-brand__name,.eos-brand__ver,.eos-nav__label,.eos-nav__text,.eos-nav__count,.eos-sidebar__user-name,.eos-sidebar__user-role{display:none}
  .eos-nav{padding:0 8px}
  .eos-nav__item{justify-content:center;padding:0}
  .eos-nav__dot{width:10px;height:10px}
  .eos-nav__children{display:none}
  .eos-nav__chevron{display:none}
  .eos-sidebar__user{margin-left:8px;margin-right:8px;padding:10px 0;border-top:1px solid var(--sidebar-border)}
  .eos-sidebar__user > div{justify-content:center}
  .eos-header{gap:5px}
  .eos-switch{max-width:150px}
  .eos-switch__code,.eos-switch__caret{display:none}
  .eos-search{flex:1;min-width:0}
  .eos-search kbd{display:none}
  .eos-system-settings__meta{grid-template-columns:1fr}
  .eos-system-settings__maintenance{display:grid;grid-template-columns:1fr}
  .eos-system-settings__maintenance-controls{justify-content:flex-start}
  .eos-s3-erp__section-head{display:grid;grid-template-columns:1fr}
  .eos-s3-erp__code{width:max-content;max-width:100%}
  .eos-s3-erp__ledger div{grid-template-columns:1fr;gap:4px}
}

/* ---- Report builder ---- */
.eos-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.eos-eyebrow{font-family:var(--mono);font-size:9.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--accent)}
.report-scope-banner{display:flex;align-items:center;gap:10px;padding:10px 13px;margin-bottom:16px;border:1px solid #d4d4d4;border-radius:8px;background:var(--brand-teal-soft);color:var(--text-2);font-size:12px}
.report-scope-banner strong{color:var(--brand-teal-hover)}
.report-scope-banner span{font-family:var(--mono);font-size:10.5px}
.report-builder__layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:16px;align-items:start}
.report-steps{padding:8px;background:var(--brand-navy);border-radius:9px;position:sticky;top:10px}
.report-steps ol{list-style:none;padding:0;margin:0}
.report-steps li{display:flex;align-items:center;gap:9px;padding:10px 8px;border-radius:6px;color:var(--sidebar-muted);font-size:12px;cursor:pointer}
.report-steps li span{font-family:var(--mono);font-size:9px;color:var(--sidebar-label)}
.report-steps li.is-active{background:var(--brand-navy-deep);color:#fff;font-weight:600}
.report-steps li.is-active span,.report-steps li.is-complete span{color:var(--accent-bright)}
.report-builder__main{min-width:0}
.report-step{padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:9px;box-shadow:0 2px 8px rgba(47,40,85,.035)}
.report-step h2{margin:0 0 5px;color:var(--brand-navy);font-size:16px}
.report-step > .eos-btn{margin-top:16px}
.report-event-card,.report-source-card{display:flex;align-items:center;gap:11px;min-height:62px;padding:11px 13px;margin-top:8px;border:1px solid var(--border);border-radius:8px;background:var(--surface);cursor:pointer;transition:border-color .12s ease,background .12s ease}
.report-event-card:hover,.report-source-card:hover{border-color:var(--accent-bright);background:var(--brand-teal-soft)}
.report-event-card.is-selected,.report-source-card.is-selected{border-color:var(--accent);background:var(--brand-teal-soft)}
.report-event-card input{accent-color:var(--accent)}
.report-event-card span,.report-source-card{min-width:0}
.report-event-card strong,.report-source-card strong{display:block;color:var(--text);font-size:12.5px}
.report-event-card small,.report-source-card small{display:block;margin-top:3px;font-family:var(--mono);font-size:10px;color:var(--muted)}
.report-event-card em{margin-left:auto;font-family:var(--mono);font-size:10px;color:var(--muted);font-style:normal}
.report-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}
.report-source-card{display:block;text-align:left;position:relative}
.report-source-card span{display:block;margin-top:8px;font-family:var(--mono);font-size:9.5px;color:var(--accent)}
.report-join-control{margin-top:12px}
.report-join-control>p{margin:7px 0 0}
.report-join-list{display:grid;gap:7px;margin-top:10px}
.report-join-row{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px;border:1px solid var(--border-soft);border-radius:7px;background:var(--bg)}
.report-join-row:hover{border-color:var(--accent-bright);background:var(--brand-teal-soft)}
.report-join-row input{accent-color:var(--accent);flex:none;margin-top:2px}
.report-join-row__check{display:flex;align-items:flex-start;gap:9px;min-width:0;cursor:pointer}
.report-join-row__check>span{width:0;flex:1 1 auto}
.report-join-row span{min-width:0}
.report-join-row strong{display:block;color:var(--text);font-size:11.5px}
.report-join-row small{display:block;margin-top:3px;font-family:var(--mono);font-size:9.5px;color:var(--muted)}
.report-join-row__mapping{color:var(--brand-navy)!important;line-height:1.35;overflow-wrap:anywhere}
.report-join-row__type{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;width:100%;min-width:0;padding-top:8px;border-top:1px solid var(--border-softer);color:var(--muted);font-family:var(--mono);font-size:9px}
.report-join-row__type span{min-width:0}
.report-join-row__type select{width:100%;min-width:0;height:29px;padding:0 22px 0 7px;border:1px solid var(--border-strong);border-radius:5px;background:var(--surface);color:var(--text);font:inherit}
.report-field-card{margin-top:12px;border:1px solid var(--border);border-radius:8px;overflow:hidden}
.report-field-card__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--bg);border-bottom:1px solid var(--border-soft);font-size:12px}
.report-field-card__head>div{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1;min-width:0}
.report-field-card__head button{flex:none;white-space:nowrap}
.report-field-card__head span{font-family:var(--mono);font-size:10px;color:var(--muted)}
.report-field-tools{padding:7px 9px;border-bottom:1px solid var(--border-softer);background:#fbfcfd}
.report-field-search{display:flex;align-items:center;gap:6px;height:29px;padding:0 8px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--muted-2)}
.report-field-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px rgba(0,0,0,.1)}
.report-field-search>span{font-size:16px;line-height:1}
.report-field-search input{width:100%;min-width:0;padding:0;border:0;outline:0;background:transparent;color:var(--text);font-size:11px}
.report-field-search input::placeholder{color:var(--muted-2)}
.report-field-row{display:flex;align-items:center;gap:9px;padding:9px 12px;border-bottom:1px solid var(--border-softer);font-size:12px}
.report-field-row:last-child{border-bottom:0}
.report-field-row input{accent-color:var(--accent)}
.report-field-row small{margin-left:auto;font-family:var(--mono);font-size:9px;color:var(--muted)}
.report-field-row small::first-letter{color:var(--accent)}
.report-fields-empty{padding:13px 9px;color:var(--muted);font-size:10.5px}
.report-filter-bar{display:flex;align-items:center;gap:10px;margin-top:15px}
.report-filter-bar label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}
.report-filter-bar select,.report-control-card select,.report-filter-row select,.report-filter-row input,.report-sort-row select,.report-calc-row input,.report-calc-row select{height:31px;padding:0 8px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--text);font-size:11.5px;min-width:0}
.report-filter-row,.report-sort-row,.report-calc-row{display:flex;align-items:center;gap:7px;margin-top:8px}
.report-filter-row select:first-child,.report-sort-row select:first-child,.report-calc-row select{flex:1}
.report-filter-row input,.report-calc-row input{flex:1}
.report-filter-row button,.report-sort-row button,.report-calc-row button,.report-chip-list button{width:26px;height:26px;border:1px solid var(--border-strong);border-radius:5px;background:var(--surface);color:var(--muted);cursor:pointer}
.report-filter-row button:hover,.report-sort-row button:hover,.report-calc-row button:hover{color:var(--bad-fg);border-color:var(--bad-fg)}
.report-control-card{margin-top:12px;padding:12px;border:1px solid var(--border);border-radius:8px}
.report-control-card > strong{font-size:11px;color:var(--text-2)}
.report-control-card > select{margin-top:9px;width:100%}
.report-calc-list{display:grid;gap:7px;margin-top:10px}
.report-calc-form{display:grid;gap:8px;margin-top:12px}
.report-calc-form .report-calc-input{width:100%;height:28px;padding:0 7px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--text);font-size:10.5px}
.report-calc-form .report-calc-input:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px rgba(0,0,0,.1)}
.report-calc-form .eos-btn{height:29px;padding:0 10px;font-size:11px;justify-self:start}
.report-calc-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 24px;align-items:center;gap:6px;margin-top:0}
.report-calc-row .report-calc-input{width:100%}
.report-calc-remove{width:24px;height:24px;border:1px solid var(--border-strong);border-radius:5px;background:var(--surface);color:var(--muted);cursor:pointer}
.report-calc-remove:hover{color:var(--bad-fg);border-color:var(--bad-fg)}
.report-chip-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.report-chip-list button{border:0;background:transparent;width:auto;height:auto;padding:0;font-size:14px}
.report-state{margin:12px 0 0;padding:9px 11px;border-radius:6px;font-size:11.5px}
.report-state--loading{background:var(--neutral-bg);color:var(--neutral-fg)}
.report-state--success{background:var(--ok-bg);color:var(--ok-fg)}
.report-state--error{background:var(--bad-bg);color:var(--bad-fg)}
.report-badge{display:inline-block;padding:2px 5px;border-radius:4px;font-family:var(--mono);font-size:8.5px;text-transform:uppercase}
.report-badge--masked{background:var(--warn-bg);color:var(--warn-fg)}
.report-empty{padding:25px;text-align:center;color:var(--muted);font-size:12px}
.report-form-grid{display:grid;gap:12px;margin-top:14px}
.report-form-grid label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted)}
.report-form-grid input,.report-form-grid textarea,.report-form-grid select{width:100%;padding:8px 9px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--text);font-size:12px}
.report-form-grid textarea{min-height:75px;resize:vertical}
.report-summary{margin-bottom:16px}
.report-summary__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--border-soft)}
.report-summary__grid>div{padding:12px;background:var(--surface)}
.report-summary__grid strong{display:block;margin-top:6px;color:var(--text);font-size:14px}
.report-export-actions{display:flex;gap:8px;padding:12px}
.report-job-list{list-style:none;margin:0;padding:0 12px 10px}
.report-job-list li{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--border-softer);font-size:11.5px}
.report-job-list li strong{margin-left:auto}
.eos-muted{color:var(--muted);font-size:11.5px}
.eos-error{color:var(--bad-fg)}

/* ---- View report ---- */
.report-detail{margin:0}
.report-detail__breadcrumb{display:flex;align-items:center;gap:5px;margin:0 0 8px;color:var(--muted-2);font-size:11.5px;line-height:1.3}
.report-detail__breadcrumb a{color:var(--accent)}
.report-detail__breadcrumb strong{font-weight:400;color:var(--muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.report-detail__head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.report-detail__heading{min-width:0}
.report-detail__heading h1{margin:0;color:var(--brand-navy);font-size:22px;line-height:1.15;letter-spacing:-.025em;font-weight:700}
.report-detail__heading p{margin:4px 0 0;color:var(--muted-2);font-family:var(--mono);font-size:11.5px;line-height:1.4}
.report-detail__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:none}
.report-detail__actions form{margin:0}
.report-detail__button{height:31px;padding:0 13px;border-radius:7px;font-size:12px}
.report-detail__export{position:relative}
.report-detail__export-trigger{list-style:none;cursor:pointer}
.report-detail__export-trigger::-webkit-details-marker{display:none}
.report-detail__export-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.report-detail__export-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:100;min-width:156px;padding:5px;background:var(--surface);border:1px solid var(--border-strong);border-radius:7px;box-shadow:0 6px 16px rgba(47,40,85,.12)}
.report-detail__export-option{display:block;width:100%;padding:8px 10px;border:0;border-radius:5px;background:transparent;color:var(--text);font:inherit;font-size:12px;text-align:left;cursor:pointer}
.report-detail__export-option:hover{background:var(--row-hover)}
.report-detail__export-option:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.report-detail__button--edit{border-color:var(--accent);background:var(--accent);color:#fff;font-weight:700;box-shadow:0 2px 4px rgba(63,112,179,.18)}
.report-detail__button--edit:hover{border-color:var(--accent-hover);background:var(--accent-hover);color:#fff}
.report-detail__layout{display:grid;grid-template-columns:minmax(0,1fr) 318px;gap:16px;align-items:start}
.report-detail__results{min-width:0}
.report-detail__results-card{overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:9px;box-shadow:0 2px 8px rgba(47,40,85,.035)}
.report-detail__aside{display:flex;flex-direction:column;gap:12px;min-width:0}
.report-detail__summary{overflow:hidden;margin:0}
.report-detail__meta-list{padding:3px 14px 8px}
.report-detail__meta-item{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;min-height:38px;padding:8px 0;border-bottom:1px solid var(--border-softer)}
.report-detail__meta-item:last-child{border-bottom:0}
.report-detail__meta-item>span,.report-detail__meta-row>span{font-size:9.5px;font-weight:700;letter-spacing:.06em;color:var(--muted);text-transform:uppercase;white-space:nowrap}
.report-detail__meta-item strong{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--text);font-size:12px;font-weight:400;text-align:right;white-space:nowrap}
.report-detail__meta-item strong:not(:has(.report-detail__badge)){font-family:var(--mono);font-size:11px}
.report-detail__scope-list{padding:3px 14px 8px}
.report-detail__meta-row{display:block;min-height:0;padding:10px 0;border-bottom:1px solid var(--border-softer)}
.report-detail__meta-row:last-child{border-bottom:0}
.report-detail__meta-row>span{display:block;margin-bottom:6px}
.report-detail__chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.report-detail__chip{display:inline-flex;align-items:center;min-height:22px;padding:0 7px;border-radius:4px;background:#f3f3f7;color:var(--text-2);font-size:11px;white-space:nowrap}
.report-detail__badge{display:inline-flex;align-items:center;padding:3px 7px;border-radius:4px;background:#f1f1f5;color:var(--text-2);font-size:10px;font-style:normal;font-weight:500}
.report-detail__grouped-by{font-family:var(--mono);font-size:11px;color:var(--text-2);word-break:break-word}
.report-detail__value-muted{color:var(--muted-2);font-size:12px}
.report-detail__results-head{font-size:12.5px}
.report-detail__results-card .report-detail__datatable{border-radius:0;box-shadow:none}
.report-detail__job-note{margin:0;padding:11px 14px;color:var(--muted-2);font-size:10.5px}
.report-detail__state{padding:24px 16px;color:var(--muted);font-size:12px}
.report-detail__state strong{display:block;color:var(--text-2);font-size:13px}
.report-detail__state p{margin:5px 0 0}
.report-detail__state--error{border-color:oklch(0.86 0.06 25);background:var(--bad-bg);color:var(--bad-fg)}
.report-detail__state--error strong{color:var(--bad-fg)}
.report-detail__job-alert{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:9px 12px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text-2);font-size:11.5px}
.report-detail__job-alert strong{color:var(--bad-fg)}
.report-detail__job-alert span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.report-detail__job-alert a{margin-left:auto;flex:none}
.report-detail__job-alert--error{border-color:oklch(0.86 0.06 25);background:var(--bad-bg)}
@media (max-width:760px){
  .report-builder__layout{grid-template-columns:1fr}
  .report-steps{position:static}
  .report-steps ol{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}
  .report-steps li{padding:8px 5px;font-size:10px;gap:5px}
  .report-source-grid,.report-summary__grid{grid-template-columns:1fr 1fr}
  .report-detail__layout{grid-template-columns:1fr}
  .report-detail__head{flex-direction:column}
  .report-detail__actions{justify-content:flex-start;flex-wrap:wrap}
}
@media (max-width:480px){
  .eos-page-head{flex-direction:column}
  .report-scope-banner{align-items:flex-start;flex-direction:column;gap:3px}
  .report-steps ol{grid-template-columns:repeat(2,1fr)}
  .report-source-grid,.report-summary__grid{grid-template-columns:1fr}
  .report-filter-row,.report-sort-row,.report-calc-row{flex-wrap:wrap}
  .report-filter-row select,.report-sort-row select,.report-calc-row input,.report-calc-row select{flex:1 1 40%}
}

/* ---- Salesforce-style report workspace ---- */
.report-builder__page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.report-builder__page-head .eos-title{margin-bottom:0}
.report-builder__page-head .eos-btn{margin-top:3px}
.report-scope-banner{margin-bottom:14px;min-height:38px;padding:8px 12px;box-shadow:0 1px 2px rgba(47,40,85,.02)}
.report-scope-banner__icon{width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:#e5e5e5;color:var(--brand-teal-hover);font-size:10px;flex:none}
.report-stepper{margin-bottom:16px;overflow-x:auto;overflow-y:hidden;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:0 2px 7px rgba(47,40,85,.035);-webkit-overflow-scrolling:touch}
.report-stepper ol{display:flex;list-style:none;margin:0;padding:0;min-width:600px}
.report-stepper__item{position:relative;z-index:1;flex:1 1 0;min-width:0;margin-right:-10px;background:#f1f3f6;clip-path:polygon(0 0,calc(100% - 15px) 0,100% 50%,calc(100% - 15px) 100%,0 100%,15px 50%)}
.report-stepper__item:first-child{clip-path:polygon(0 0,calc(100% - 15px) 0,100% 50%,calc(100% - 15px) 100%,0 100%)}
.report-stepper__item:last-child{margin-right:0;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,15px 50%)}
.report-stepper__item button{width:100%;min-height:54px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 22px 0 28px;border:0;background:transparent;color:var(--muted);font-size:11.5px;font-weight:600;cursor:pointer;white-space:nowrap}
.report-stepper__item button:focus-visible{outline:2px solid var(--accent);outline-offset:-4px;border-radius:5px}
.report-stepper__item:first-child button{padding-left:18px}
.report-stepper__item:last-child button{padding-right:18px}
.report-stepper__item:hover{background:#f5f5f5}
.report-stepper__item.is-complete{background:#e5e5e5;color:var(--brand-teal-hover)}
.report-stepper__item.is-complete button{color:var(--brand-teal-hover)}
.report-stepper__item.is-complete .report-stepper__number{color:var(--brand-teal)}
.report-stepper__item.is-active{z-index:3;background:#3674b5;color:#fff;box-shadow:0 3px 8px rgba(54,116,181,.2)}
.report-stepper__item.is-active button{color:#fff}
.report-stepper__item.is-active .report-stepper__number{color:#d7ecff}
.report-stepper__number{font-family:var(--mono);font-size:9.5px;color:var(--muted-2);letter-spacing:.03em}
.report-builder__layout{grid-template-columns:minmax(285px,330px) minmax(0,1fr);gap:18px;align-items:start}
.report-builder__setup{position:sticky;top:12px;max-height:calc(100vh - 176px);overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 2px 9px rgba(47,40,85,.04)}
.report-setup__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:15px 15px 13px;background:linear-gradient(135deg,#f8fbfd,#fff);border-bottom:1px solid var(--border-soft)}
.report-setup__head strong{display:block;margin-top:3px;color:var(--brand-navy);font-size:13px}
.report-setup__eyebrow{display:block;font-family:var(--mono);font-size:9px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--accent)}
.report-setup__progress{flex:none;margin-top:2px;padding:4px 6px;border-radius:5px;background:var(--neutral-bg);font-family:var(--mono);font-size:9px;color:var(--muted)}
.report-step{margin:0;border:0;border-top:1px solid var(--border-soft);border-radius:0;background:var(--surface);box-shadow:none}
.report-step:first-of-type{border-top:0}
.report-step.is-current{box-shadow:inset 3px 0 0 #3674b5}
.report-step summary{display:flex;align-items:center;gap:9px;min-height:48px;padding:0 14px;list-style:none;color:var(--text-2);font-size:12px;font-weight:700;cursor:pointer;user-select:none}
.report-step summary::-webkit-details-marker{display:none}
.report-step summary::after{content:'+';margin-left:auto;color:var(--muted-2);font-family:var(--mono);font-size:15px;font-weight:400;line-height:1}
.report-step[open] summary::after{content:'−'}
.report-step summary:hover{background:#fafcfd;color:var(--brand-navy)}
.report-step.is-current summary{background:#f4f9ff;color:#2f6aa7}
.report-setup-section__number{width:23px;height:23px;display:grid;place-items:center;flex:none;border-radius:6px;background:var(--neutral-bg);font-family:var(--mono);font-size:9px;color:var(--muted)}
.report-step.is-current .report-setup-section__number{background:#dcecff;color:#2f6aa7}
.report-setup-section__status{margin-left:auto;font-family:var(--mono);font-size:8.5px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--muted-2)}
.report-step__body{padding:0 14px 15px}
.report-step__body>.eos-muted{margin:0 0 10px;font-size:10.5px;line-height:1.45}
.report-step__actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:13px}
.report-step__actions .eos-btn{height:29px;padding:0 10px;font-size:11px}
.report-event-card,.report-source-card{min-height:48px;margin-top:6px;padding:8px 9px;border-radius:7px;gap:8px}
.report-event-card strong,.report-source-card strong{font-size:11.5px}
.report-event-card small,.report-source-card small{margin-top:2px;font-size:9px}
.report-event-card em{font-size:9px}
.report-source-grid{grid-template-columns:1fr;gap:5px;margin-top:0;container-type:inline-size}
.report-source-card{width:100%}
.report-source-card span{margin-top:5px;font-size:8.5px}
.report-join-message--error{display:flex;align-items:flex-start;gap:8px;margin-top:8px;padding:9px 10px;border:1px solid #efb3b3;border-radius:7px;background:#fff1f1;color:#b42318;font-size:10.5px;line-height:1.4}
.report-join-message--error::before{content:'!';width:17px;height:17px;display:grid;place-items:center;flex:none;border-radius:50%;background:#d92d20;color:#fff;font-family:var(--mono);font-size:10px;font-weight:700;line-height:1}
.report-field-card{margin-top:8px;border-radius:7px}
.report-field-card__head{padding:8px 9px;font-size:11px}
.report-field-card__head span{font-size:9px}
.report-field-row{gap:7px;padding:7px 9px;font-size:10.5px}
.report-field-row small{font-size:8.5px}
.report-filter-bar{justify-content:space-between;margin-top:0;gap:6px}
.report-filter-bar label{font-size:10px}
.report-control-tabs{margin-top:10px}
.report-control-tabs__list{display:flex;gap:2px;overflow-x:auto;border-bottom:1px solid var(--border);-webkit-overflow-scrolling:touch}
.report-control-tabs__tab{flex:0 0 auto;min-height:34px;padding:0 8px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:10.5px;font-weight:700;white-space:nowrap;cursor:pointer}
.report-control-tabs__tab:hover{color:var(--brand-teal-hover);background:var(--brand-teal-soft)}
.report-control-tabs__tab.is-active{border-bottom-color:var(--brand-teal);color:var(--brand-teal-hover)}
.report-control-tabs__tab:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:4px}
.report-control-tabs__panel{padding-top:1px}
.report-filter-flow{margin-top:10px}
.report-filter-flow__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.report-filter-flow__head strong{display:block;color:var(--brand-navy);font-size:11px}
.report-filter-flow__head p{margin:3px 0 0;font-size:9.5px;line-height:1.4}
.report-filter-flow__mode{display:flex;align-items:center;gap:5px;flex:none;color:var(--muted);font-size:10px;font-weight:700}
.report-filter-flow__mode.eos-select-control{flex-direction:row}
.report-filter-flow__mode .eos-select-control__trigger{width:60px;height:28px;padding:0 7px;font-size:10.5px}
.report-filter-flow__mode select{height:28px;padding:0 7px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--text);font-size:10.5px}
.report-filter-flow__canvas{display:flex;flex-direction:column;align-items:center;gap:0;min-height:240px;padding:18px 12px 22px;border:1px solid var(--border);border-radius:9px;background-color:#fbfcfd;background-image:radial-gradient(#bfc7cc 1px,transparent 1px);background-size:16px 16px;overflow:hidden}
.report-filter-flow__empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:170px;color:var(--muted);text-align:center}
.report-filter-flow__empty strong{color:var(--text-2);font-size:11px}
.report-filter-flow__empty span{font-size:9.5px}
.report-filter-flow>[data-filter-flow-add]{margin-top:10px}
.report-filter-card{width:min(100%,620px);padding:12px;border:2px solid #73777b;border-radius:9px;background:var(--surface);box-shadow:0 2px 0 rgba(50,58,64,.06)}
.report-filter-card__head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.report-filter-card__title{display:flex;align-items:center;gap:7px;min-width:0}
.report-filter-card__title h3{margin:0;color:var(--text);font-size:12px;font-weight:700}
.report-filter-card__number{width:22px;height:22px;display:grid;place-items:center;flex:none;border-radius:50%;background:#eef2f3;color:#4f575b;font-family:var(--mono);font-size:9px;font-weight:700}
.report-filter-card__remove{width:25px;height:25px;border:1px solid var(--border-strong);border-radius:5px;background:var(--surface);color:var(--muted);font-size:17px;line-height:1;cursor:pointer}
.report-filter-card__remove:hover,.report-filter-card__remove:focus-visible{border-color:var(--bad-fg);color:var(--bad-fg);outline:0}
.report-filter-card__body{min-width:0}
.report-filter-card__field,.report-filter-card__rule label{display:flex;flex-direction:column;gap:4px;min-width:0;color:var(--muted);font-size:9.5px;font-weight:700}
.report-filter-card__field>span,.report-filter-card__rule label>span{font-family:var(--mono);font-size:8.5px;letter-spacing:.03em;text-transform:uppercase}
.report-filter-card__field select,.report-filter-card__rule select,.report-filter-card__value-input,.report-filter-card__range input{width:100%;height:36px;min-width:0;padding:0 8px;border:2px solid #73777b;border-radius:7px;background:var(--surface);color:var(--text);font-size:11px}
.report-filter-card__field select:focus-visible,.report-filter-card__rule select:focus-visible,.report-filter-card__value-input:focus-visible,.report-filter-card__range input:focus-visible{border-color:var(--accent);outline:2px solid rgba(0,0,0,.2);outline-offset:1px}
.report-filter-card__rule{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.5fr);gap:8px;margin-top:9px}
.report-filter-card__value,.report-filter-card__range{min-width:0}
.report-filter-card__range{display:flex;align-items:center;gap:6px}
.report-filter-card__range span{flex:none;color:var(--muted);font-size:9px;font-weight:700}
.report-filter-connector{display:flex;flex-direction:column;align-items:center;min-height:76px;padding:8px 0 10px;color:#73777b}
.report-filter-connector__line{width:3px;height:18px;border-radius:3px;background:#73777b}
.report-filter-connector__node{display:grid;place-items:center;min-width:58px;height:36px;padding:0 12px;border:3px solid #73777b;border-radius:50%;background:var(--surface);color:#373b3d;font-size:10px;font-weight:700}
.report-filter-connector__arrow{height:16px;color:#73777b;font-size:23px;line-height:14px}
.report-filter-bar select,.report-control-card select,.report-filter-row select,.report-filter-row input,.report-sort-row select,.report-calc-row input,.report-calc-row select{height:28px;padding:0 7px;font-size:10.5px}
.report-filter-row,.report-sort-row,.report-calc-row{gap:5px;margin-top:6px}
.report-filter-row button,.report-sort-row button,.report-calc-row button,.report-chip-list button{width:24px;height:24px}
.report-control-card{margin-top:9px;padding:9px;border-radius:7px}
.report-control-card>strong{font-size:10px}
.report-control-card>select{margin-top:7px}
.report-chip-list{gap:4px;margin-top:7px}
.report-chip-list .eos-chip{height:22px;padding:0 6px;font-size:10px}
.report-form-grid{gap:9px;margin-top:0}
.report-form-grid label{gap:4px;font-size:10px}
.report-form-grid input,.report-form-grid textarea,.report-form-grid select{padding:7px 8px;font-size:11px}
.report-form-grid textarea{min-height:62px}
.report-preview-panel{min-width:0;min-height:calc(100vh - 234px);overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 2px 9px rgba(47,40,85,.04)}
.report-preview-panel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px 14px;border-bottom:1px solid var(--border-soft);background:linear-gradient(135deg,#fbfdff,#fff)}
.report-preview-panel__head h2{margin:3px 0 2px;color:var(--brand-navy);font-size:17px;letter-spacing:-.015em}
.report-preview-panel__head p{margin:0;color:var(--muted);font-family:var(--mono);font-size:10.5px}
.report-preview-panel__actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;flex:none;margin-top:1px}
.report-preview-panel__actions .eos-btn{white-space:nowrap}
.report-export{position:relative}
.report-export-menu__caret{font-size:9px}
.report-export-menu{position:absolute;top:calc(100% + 5px);right:0;z-index:20;min-width:112px;padding:4px;border:1px solid var(--border);border-radius:7px;background:var(--surface);box-shadow:0 7px 18px rgba(47,40,85,.14)}
.report-export-menu__item{display:block;width:100%;padding:7px 9px;border:0;border-radius:4px;background:transparent;color:var(--text-2);font-size:11px;text-align:left;cursor:pointer}
.report-export-menu__item:hover,.report-export-menu__item:focus-visible{background:#f1f7fa;color:var(--brand-navy);outline:0}
.report-preview-panel__refresh{flex:none;margin-top:1px;height:32px;background:var(--accent);box-shadow:0 2px 5px rgba(0,0,0,.18)}
.report-preview-panel__refresh:hover{background:var(--accent-hover)}
.report-refresh-icon{font-size:16px;line-height:0}
.report-preview-panel__state{margin:12px 18px 0}
.report-preview-panel__table{min-width:0;padding:0 0 4px}
.report-preview-panel__table .datatable-container{border-radius:0;box-shadow:none}
.report-preview-panel__table .datatable-toolbar{padding:11px 16px}
.report-preview-panel__table .datatable-wrapper{max-height:calc(100vh - 365px);min-height:420px}
.report-preview-panel__table .datatable-footer{padding:10px 16px}
.report-table-relationship-map{border-top:1px solid var(--border-soft);padding:16px 18px 18px;background:var(--surface)}
.report-table-relationship-map__head{margin:0}
.report-table-relationship-map__head h3{margin:3px 0 2px;color:var(--brand-navy);font-size:15px;letter-spacing:-.015em}
.report-table-relationship-map__head p{margin:0;color:var(--muted);font-family:var(--mono);font-size:10.5px}
.report-table-relationship-map__count{flex:none;padding:4px 8px;border:1px solid var(--border);border-radius:999px;background:var(--bg);color:var(--muted);font-family:var(--mono);font-size:9.5px}
.report-table-relationship-map__canvas{display:flex;flex:1;flex-direction:column;min-height:346px}
.report-table-relationship-map__surface{position:relative;isolation:isolate;width:100%;max-width:760px;height:330px;margin:0 auto;border:1px solid var(--border-softer);border-radius:8px;background-color:#fcfcfd;background-image:radial-gradient(circle,rgba(91,98,116,.24) 1px,transparent 1.1px);background-size:16px 16px;overflow:hidden}
.report-table-relationship-map__venn{position:absolute;inset:0;z-index:1;width:100%;height:100%;overflow:visible}
.report-table-relationship-map__venn-circle{fill:rgba(76,159,69,.2);stroke:#536b56;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none;transition:fill .18s ease,stroke .18s ease,opacity .18s ease}
.report-table-relationship-map__surface.has-active-joins .report-table-relationship-map__venn-circle.is-base{fill:rgba(119,117,136,.09);stroke:rgba(119,117,136,.5)}
.report-table-relationship-map__surface.has-active-joins .report-table-relationship-map__venn-circle.is-dimmed{opacity:.82}
.report-table-relationship-map__venn-highlight{fill-opacity:.76;pointer-events:none;mix-blend-mode:multiply;transition:fill-opacity .18s ease}
.report-table-relationship-map__venn-highlight.is-preserved{fill-opacity:.7}
.report-table-relationship-map__venn-highlight.is-join-inner{fill:var(--join-inner)}
.report-table-relationship-map__venn-highlight.is-join-left{fill:var(--join-left)}
.report-table-relationship-map__venn-highlight.is-join-right{fill:var(--join-right)}
.report-table-relationship-map__edges{position:absolute;inset:0;z-index:1;width:100%;height:100%;overflow:visible}
.report-table-relationship-map__edge{fill:none;stroke:var(--border-strong);stroke-width:1.7;vector-effect:non-scaling-stroke;cursor:pointer;pointer-events:stroke;transition:stroke .15s ease,stroke-width .15s ease,opacity .15s ease}
.report-table-relationship-map__edge.is-available{stroke:var(--muted-2);stroke-dasharray:4 4}
.report-table-relationship-map__edge.is-selected{stroke:var(--accent);stroke-width:2.4}
.report-table-relationship-map__edge.is-highlighted{stroke:var(--brand-navy);stroke-width:3.6}
.report-table-relationship-map__surface--venn .report-table-relationship-map__edge{stroke:transparent;stroke-width:18;stroke-dasharray:none}
.report-table-relationship-map__surface--venn .report-table-relationship-map__edge.is-highlighted{stroke:transparent}
.report-table-relationship-map__surface--venn .report-table-relationship-map__edge-label{display:none}
.report-table-relationship-map__edge-label{fill:var(--muted);font-family:var(--mono);font-size:2.6px;letter-spacing:.05em;text-anchor:middle;text-transform:uppercase;pointer-events:none;paint-order:stroke;stroke:#fcfcfd;stroke-width:1.8px}
.report-table-relationship-map__edge-label.is-selected{fill:var(--accent-hover)}
.report-table-relationship-map__node{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;width:var(--report-venn-diameter,clamp(132px,22%,168px));aspect-ratio:1;padding:28px 18px 17px;border:2px solid transparent;border-radius:50%;background:transparent;color:var(--brand-navy);text-align:center;cursor:pointer;transform:translate(-50%,-50%);transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,opacity .15s ease,transform .15s ease}
.report-table-relationship-map__node.is-covered{background:transparent;border-color:transparent}
.report-table-relationship-map__surface--1 .report-table-relationship-map__node{width:174px}
.report-table-relationship-map__surface--3 .report-table-relationship-map__node{width:150px}
.report-table-relationship-map__surface--4 .report-table-relationship-map__node{width:126px;padding-left:12px;padding-right:12px}
.report-table-relationship-map__surface--5 .report-table-relationship-map__node{width:124px;padding-left:11px;padding-right:11px}
.report-table-relationship-map__surface--6 .report-table-relationship-map__node{width:120px;padding-left:10px;padding-right:10px}
.report-table-relationship-map__surface--many .report-table-relationship-map__node{width:128px;padding-left:12px;padding-right:12px}
.report-table-relationship-map__node:hover,.report-table-relationship-map__node:focus-visible,.report-table-relationship-map__node.is-connected{z-index:3;border-color:var(--accent);background:rgba(255,255,255,.16);box-shadow:0 0 0 4px rgba(0,0,0,.15);outline:0;transform:translate(-50%,-50%) scale(1.025)}
.report-table-relationship-map__node.is-covered:hover,.report-table-relationship-map__node.is-covered:focus-visible,.report-table-relationship-map__node.is-covered.is-connected{background:rgba(255,255,255,.16);border-color:var(--accent)}
.report-table-relationship-map__node.is-dimmed{opacity:.34}
.report-table-relationship-map__node strong{display:block;max-width:100%;font-size:13px;line-height:1.18;overflow-wrap:anywhere}
.report-table-relationship-map__node small{position:absolute;bottom:20px;color:var(--muted);font-family:var(--mono);font-size:8.5px;letter-spacing:.04em;text-transform:uppercase}
.report-table-relationship-map__node-index{position:absolute;top:17px;color:var(--accent);font-family:var(--mono);font-size:9px;font-weight:600}
.report-table-relationship-map__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;color:var(--muted);font-size:10.5px}
.report-table-relationship-map__legend{display:flex;align-items:center;gap:5px;flex:none;font-family:var(--mono);font-size:9px}
.report-table-relationship-map__legend i{display:inline-block;width:11px;height:11px;margin-left:7px;border:1px solid #29412b;background:rgba(76,159,69,.34);border-radius:50%}
.report-table-relationship-map__legend i:first-child{margin-left:0}
.report-table-relationship-map__legend i.is-shared{background:rgba(76,159,69,.7)}
.report-table-relationship-map__legend i.is-included{background:rgba(0,0,0,.72);border-color:var(--join-inner)}
.report-table-relationship-map__legend i.is-excluded{background:rgba(119,117,136,.15);border-color:rgba(119,117,136,.6)}
.report-table-relationship-map__legend i.is-join-inner{background:var(--join-inner-fill);border-color:var(--join-inner)}
.report-table-relationship-map__legend i.is-join-left{background:var(--join-left-fill);border-color:var(--join-left)}
.report-table-relationship-map__legend i.is-join-right{background:var(--join-right-fill);border-color:var(--join-right)}
.report-table-relationship-map__legend i.is-join-mixed{background:linear-gradient(135deg,var(--join-inner-fill),var(--join-right-fill));border-color:var(--brand-navy)}
.report-table-relationship-map__legend i.is-available{width:18px;height:0;border:0;border-top:2px dashed var(--muted-2);background:transparent;border-radius:0}
.report-table-relationship-map__empty{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;min-height:0;padding:28px;border:1px solid var(--border-softer);border-radius:8px;background-color:#fcfcfd;background-image:radial-gradient(circle,rgba(91,98,116,.24) 1px,transparent 1.1px);background-size:16px 16px;text-align:center}
.report-table-relationship-map__empty strong{color:var(--brand-navy);font-size:13px}
.report-table-relationship-map__empty span{max-width:330px;margin-top:5px;color:var(--muted);font-family:var(--mono);font-size:10.5px;line-height:1.5}
.report-table-relationship-map__split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:14px;align-items:stretch}
.report-table-relationship-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid var(--border-softer);border-radius:8px;background:var(--surface)}
.report-table-relationship-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-height:86px;padding:15px 16px 12px;border-bottom:1px solid var(--border-soft);background:linear-gradient(135deg,#fbfdff,#fff)}
.report-table-relationship-map__diagram{display:flex;min-width:0}
.report-table-relationship-query{background:#f8fafb}
.report-table-relationship-query__head{background:linear-gradient(135deg,#fbfdff,#f4f8fa)}
.report-table-relationship-query__head h4{margin:3px 0 3px;color:var(--brand-navy);font-size:15px;letter-spacing:-.015em}
.report-table-relationship-query__head p{margin:0;color:var(--muted);font-family:var(--mono);font-size:10px;line-height:1.45}
.report-table-relationship-query__code{flex:1;min-height:0;margin:0;padding:16px;color:#304052;font-family:var(--mono);font-size:10.5px;line-height:1.65;white-space:pre-wrap;overflow:auto}
.report-table-relationship-query__code .sql-keyword{color:#7c3aed;font-weight:700}
.report-table-relationship-query__code .sql-function{color:#0369a1;font-weight:600}
.report-table-relationship-query__code .sql-identifier{color:#0f766e}
.report-table-relationship-query__code .sql-string{color:#b45309}
.report-table-relationship-query__code .sql-number{color:#2563eb}
.report-table-relationship-query__code .sql-operator{color:#be123c}
.report-table-relationship-query__code .sql-comment{color:#667085;font-style:italic}
.report-table-relationship-query__code .sql-punctuation{color:#475569}
.report-table-relationship-query__meta{padding:9px 16px;border-top:1px solid var(--border-soft);color:var(--muted);font-family:var(--mono);font-size:9.5px}
.report-save-dialog{width:min(460px,calc(100% - 32px));padding:0;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);box-shadow:0 18px 50px rgba(32,44,70,.22)}
.report-save-dialog::backdrop{background:rgba(24,35,55,.32)}
.report-save-dialog__form{margin:0}
.report-save-dialog__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 18px 14px;border-bottom:1px solid var(--border-soft);background:linear-gradient(135deg,#fbfdff,#fff)}
.report-save-dialog__head h2{margin:3px 0 3px;color:var(--brand-navy);font-size:17px;letter-spacing:-.015em}
.report-save-dialog__head p{margin:0;color:var(--muted);font-family:var(--mono);font-size:10.5px}
.report-save-dialog__close{width:26px;height:26px;border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:21px;line-height:1;cursor:pointer}
.report-save-dialog__close:hover,.report-save-dialog__close:focus-visible{background:var(--neutral-bg);color:var(--text);outline:0}
.report-save-dialog__body{padding:16px 18px 4px}
.report-save-dialog__actions{display:flex;justify-content:flex-end;gap:7px;padding:12px 18px 16px}
@media (max-width:760px){
  .report-builder__layout{grid-template-columns:1fr}
  .report-builder__setup{position:static;max-height:none}
  .report-stepper{overflow:auto}
  .report-stepper ol{min-width:600px}
  .report-preview-panel{min-height:520px}
  .report-preview-panel__table .datatable-wrapper{max-height:520px;min-height:300px}
}
@media (max-width:980px){
  .report-table-relationship-map__split{grid-template-columns:1fr}
  .report-table-relationship-query__code{min-height:180px}
}
@media (max-width:480px){
  .report-builder__page-head{align-items:flex-start;flex-direction:column}
  .report-builder__page-head .eos-btn{margin-top:0}
  .report-scope-banner{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:4px 8px}
  .report-scope-banner span:last-child{flex-basis:100%;margin-left:26px}
  .report-preview-panel__head{align-items:flex-start;flex-direction:column}
  .report-preview-panel__actions{width:100%;justify-content:flex-start}
  .report-export-menu{left:0;right:auto}
  .report-table-relationship-map{padding-left:12px;padding-right:12px}
  .report-table-relationship-map__head{align-items:flex-start;flex-direction:column;gap:7px}
  .report-table-relationship-map__canvas,.report-table-relationship-map__empty{min-height:346px}
  .report-table-relationship-map__surface{height:330px}
  .report-table-relationship-map__surface--1 .report-table-relationship-map__node{width:156px}
  .report-table-relationship-map__node{width:126px;padding-left:14px;padding-right:14px}
  .report-table-relationship-map__surface--3 .report-table-relationship-map__node{width:132px}
  .report-table-relationship-map__surface--4 .report-table-relationship-map__node{width:112px}
  .report-table-relationship-map__surface--5 .report-table-relationship-map__node{width:108px}
  .report-table-relationship-map__surface--6 .report-table-relationship-map__node{width:104px}
  .report-table-relationship-map__node strong{font-size:11px}
  .report-table-relationship-map__node small{bottom:17px;font-size:7.5px}
  .report-table-relationship-map__node-index{top:14px;font-size:8px}
  .report-table-relationship-map__foot{align-items:flex-start;flex-direction:column;gap:7px}
}

/* ---- friendlier data-source selection ---- */
.report-source-intro{margin-bottom:11px}
.report-source-intro .eos-muted{margin-bottom:3px}
.report-source-intro__hint{display:block;color:var(--muted-2);font-size:10px;line-height:1.4}
.report-source-tools{display:flex;align-items:center;gap:7px;margin-bottom:8px}
.report-source-search{display:flex;align-items:center;gap:6px;min-width:0;flex:1;height:31px;padding:0 8px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--muted-2)}
.report-source-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px rgba(0,0,0,.1)}
.report-source-search>span{font-size:17px;line-height:1}
.report-source-search input{width:100%;min-width:0;padding:0;border:0;outline:0;background:transparent;color:var(--text);font-size:11px}
.report-source-search input::placeholder{color:var(--muted-2)}
.report-builder .eos-checkbox-control>label.report-event-card,.report-builder .eos-checkbox-control>label.report-source-card__select,.report-builder .eos-checkbox-control>label.report-field-row,.report-builder .eos-checkbox-control>label.report-join-row__check{display:flex;width:100%;box-sizing:border-box}
.report-builder .report-source-search>.eos-form-row{height:100%;display:block;flex:1;min-width:0}
.report-builder .report-source-search>.eos-form-row>.eos-input{height:100%;width:100%;min-width:0;padding:0;border:0;outline:0;background:transparent;color:var(--text);font-size:11px}
.report-source-filter{display:flex;align-items:center;gap:5px;flex:none;color:var(--muted);font-size:9.5px}
.report-source-filter.eos-select-control{flex-direction:row}
.report-source-filter .eos-select-control__trigger{width:116px;max-width:116px;height:31px;padding:0 7px;font-size:10.5px}
.report-source-filter select{height:31px;max-width:116px;padding:0 7px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--text);font-size:10.5px}
.report-source-card{padding:0;overflow:hidden;transition:border-color .12s ease,background .12s ease,box-shadow .12s ease}
.report-source-card:hover{box-shadow:0 2px 7px rgba(47,40,85,.06)}
.report-source-card.is-selected{box-shadow:inset 3px 0 0 var(--accent)}
.report-source-card.is-focused{border-color:var(--accent);background:var(--brand-teal-soft);box-shadow:0 0 0 3px rgba(0,0,0,.14)}
.report-source-card__select{position:relative;display:flex;align-items:center;gap:8px;min-height:57px;padding:9px 9px;cursor:pointer}
.report-source-card__select input{position:absolute;width:1px;height:1px;opacity:0}
.report-source-card .report-source-card__order{width:34px;height:34px;display:grid;place-items:center;flex:none;margin:0;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface);color:var(--muted);font-family:var(--mono);font-size:15px;font-weight:600;line-height:1;text-align:center}
.report-source-card.is-selected .report-source-card__order{border-color:var(--accent);background:var(--accent);color:#fff}
.report-source-card__select:focus-within .report-source-card__order{outline:2px solid var(--accent-bright);outline-offset:2px}
.report-source-card__copy{min-width:0;flex:1}
.report-source-card__copy strong{display:block;overflow-wrap:anywhere;white-space:normal}
.report-source-card__copy small{display:block;margin-top:2px}
.report-source-card__status{min-width:0;max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:none;font-family:var(--mono);font-size:8.5px;color:var(--muted)}
.report-source-card.is-selected .report-source-card__status{color:var(--brand-teal-hover)}
.report-source-empty{display:flex;flex-direction:column;align-items:center;gap:3px;padding:20px 10px;border:1px dashed var(--border-strong);border-radius:7px;color:var(--muted);text-align:center;font-size:10.5px}
.report-source-empty strong{color:var(--text-2);font-size:11px}
.report-source-empty span{font-size:9.5px}
@container (max-width:260px){
  .report-source-card__select{align-items:flex-start}
  .report-source-card__status{display:none}
}
@media (max-width:480px){
  .report-source-tools{align-items:stretch;flex-direction:column}
  .report-source-filter{justify-content:space-between}
  .report-source-filter .eos-select-control__trigger{width:auto;max-width:none;flex:1}
}

@media (max-width:480px){
  .report-filter-flow__head{align-items:stretch;flex-direction:column}
  .report-filter-flow__mode{justify-content:space-between}
  .report-filter-flow__mode .eos-select-control__trigger{width:auto;flex:1}
  .report-filter-flow__canvas{padding:14px 8px 18px}
  .report-filter-card{padding:10px}
  .report-filter-card__rule{grid-template-columns:1fr}
  .report-filter-card__range{align-items:stretch;flex-wrap:wrap}
  .report-filter-card__range input{flex:1 1 110px}
  .report-filter-card__range span{width:100%;text-align:center}
}

/* ---- sort order control ---- */
.report-sort-card{padding:0;overflow:hidden;border-color:#dfe6eb;border-radius:9px;background:linear-gradient(145deg,#fff 0%,#fbfdfe 100%)}
.report-sort-card__head{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:11px 11px 10px;border-bottom:1px solid var(--border-soft)}
.report-sort-card__heading{display:flex;align-items:center;gap:8px;min-width:0}
.report-sort-card__icon{width:25px;height:25px;display:grid;place-items:center;flex:none;border:1px solid #d4d4d4;border-radius:7px;background:var(--brand-teal-soft);color:var(--brand-teal-hover);font-size:15px;font-weight:700;line-height:1}
.report-sort-card__heading strong{display:block;color:var(--brand-navy);font-size:11px;line-height:1.2}
.report-sort-card__heading p{margin:3px 0 0;color:var(--muted);font-size:9px;line-height:1.25}
.report-sort-card__count{flex:none;padding:4px 6px;border:1px solid var(--border-soft);border-radius:5px;background:var(--neutral-bg);color:var(--muted);font-family:var(--mono);font-size:8.5px;line-height:1}
.report-sort-list{padding:9px 10px 0}
.report-sort-row{display:grid;grid-template-columns:23px minmax(0,1fr) minmax(90px,.64fr) 25px;align-items:center;gap:7px;margin:0;padding:8px;border:1px solid #dfe6eb;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(47,40,85,.025)}
.report-sort-row+.report-sort-row{margin-top:7px}
.report-sort-row__number{align-self:center;width:23px;height:23px;display:grid;place-items:center;border-radius:6px;background:#f5f5f5;color:var(--brand-teal-hover);font-family:var(--mono);font-size:8.5px;font-weight:700}
.report-sort-row__control{display:flex;flex-direction:column;gap:4px;min-width:0}
.report-sort-row__control>span{color:var(--muted);font-family:var(--mono);font-size:8px;font-weight:700;letter-spacing:.04em;line-height:1;text-transform:uppercase}
.report-sort-row__control select{width:100%;height:31px;padding:0 7px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--text);font-size:10.5px;outline:none}
.report-sort-row__control select:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px rgba(0,0,0,.11)}
.report-sort-row__remove{align-self:center;width:25px;height:25px;padding:0;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--muted);font-size:17px;line-height:1;cursor:pointer;transition:color .12s ease,border-color .12s ease,background .12s ease}
.report-sort-row__remove:hover,.report-sort-row__remove:focus-visible{border-color:#e0a0a0;background:#fff7f7;color:var(--bad-fg);outline:0}
.report-sort-card__empty{padding:10px 8px;color:var(--muted);font-size:10px;text-align:center}
.report-sort-card__add{width:calc(100% - 20px);justify-content:center;margin:9px 10px 10px;border-style:dashed;color:var(--brand-teal-hover)}
.report-sort-card__add:hover{border-color:var(--accent);background:var(--brand-teal-soft);color:var(--brand-teal-hover)}
.report-sort-card__add>span{font-size:15px;line-height:0}

/* ---- submission category detail window ---- */
.submission-record-head{justify-content:space-between;flex-wrap:wrap}
.submission-detail-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.submission-detail-window{min-width:0}
.submission-detail-panel{min-width:0}
.submission-detail-panel:not([data-tab-id="submission-category-details"]){padding:16px}
.submission-details-layout>.eos-stack{min-width:0}
.submission-details-card{padding:16px;border-bottom:1px solid var(--border-soft)}
.submission-details-card:last-child{border-bottom:0}
.submission-details-card__head{padding:0 0 12px}
.submission-details-card__head h2{margin:0;font:inherit}
.submission-details-card__body{padding:14px 14px 0}
.submission-details-field{min-width:0;overflow-wrap:anywhere}
.submission-details-field--wide{grid-column:1 / -1}
.submission-details-richtext{color:var(--text);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.submission-details-richtext img,.submission-details-richtext video{max-width:100%;height:auto}
.submission-details-richtext table{display:block;max-width:100%;overflow-x:auto}
.submission-details-richtext p{margin:0 0 7px}.submission-details-richtext p:last-child{margin-bottom:0}
.submission-details-richtext ul,.submission-details-richtext ol{margin:0 0 7px;padding-left:20px}.submission-details-richtext li{margin:1px 0}
.submission-details-layout .eos-meta-row{gap:12px}
.submission-details-layout .eos-meta-row span:last-child{min-width:0;overflow-wrap:anywhere;text-align:right}
@media (max-width:1024px){.submission-details-layout{grid-template-columns:minmax(0,1fr)}}
@media (max-width:560px){.submission-details-layout .eos-detail-grid{grid-template-columns:minmax(0,1fr)}.submission-details-layout .eos-card__head{flex-wrap:wrap}.submission-details-layout .eos-card__aside{margin-left:0}}
.submission-empty-state{display:flex;min-height:300px;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:var(--muted);text-align:center}
.submission-empty-state strong{color:var(--text);font-size:14px}
.submission-empty-state span,.submission-hierarchy-head p{font-size:12px}
@media (max-width:480px){
  .submission-detail-panel:not([data-tab-id="submission-category-details"]){padding:14px}
  .submission-record-head{align-items:stretch;flex-direction:column;gap:10px}
  .submission-detail-title-row{align-items:flex-start;flex-direction:column;gap:5px}
}
@media (max-width:480px){
  .report-sort-row{grid-template-columns:23px minmax(0,1fr) 25px;align-items:center}
  .report-sort-row__control--field{grid-column:2;grid-row:1}
  .report-sort-row__control--direction{grid-column:2;grid-row:2;margin-top:3px}
  .report-sort-row__remove{grid-column:3;grid-row:1;align-self:start}
}

/* Read-only category lifecycle, sharing the report chevron geometry. */
.submission-stage-progress__label{min-height:54px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 22px 0 28px;font-size:11.5px;font-weight:600;white-space:nowrap;color:var(--muted)}
.submission-stage-progress .is-active{background:var(--accent);box-shadow:none}
.submission-stage-progress .is-active .submission-stage-progress__label{color:#fff}
.submission-stage-progress .is-complete .submission-stage-progress__label{color:var(--accent-hover)}
.submission-stage-progress .is-upcoming:hover{background:#f1f3f6}

/* Central CRUD forms share responsive behavior across resources. */
.eos-resource-form > *{min-width:0}
.eos-resource-form .eos-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.eos-resource-form select{max-width:100%}
@media (max-width:1024px){.eos-resource-form{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){
  .eos-resource-form .eos-form-grid{grid-template-columns:minmax(0,1fr)}
  .eos-resource-form .eos-formbar{flex-wrap:wrap;gap:8px}
}

/* Compact shared section heading; actions stay at the right edge. */
.eos-section-head{align-items:center;gap:14px;flex-wrap:wrap;padding:14px}
.eos-section-head__copy{flex:1 1 220px;min-width:0}
.eos-section-head__copy h2{margin:0;font-size:14px;font-weight:700;line-height:1.4;color:var(--text)}
.eos-section-head__copy p{margin:4px 0 0;font-size:12px;font-weight:400;line-height:1.5;color:var(--muted)}
.eos-section-head .eos-pagehead__actions{margin-left:auto}

/* Compact bulk-create affordance for taxonomy tables. */
.eos-bulk-taxonomy{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 14px 12px;border-bottom:1px solid var(--border-soft)}
.eos-bulk-taxonomy__copy{min-width:0}
.eos-bulk-taxonomy__copy h2{margin:0;font-size:14px;font-weight:700;line-height:1.35;color:var(--text)}
.eos-bulk-taxonomy__copy p{margin:4px 0 0;font-size:12px;line-height:1.5;color:var(--muted)}
.eos-dialog{padding:0;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);box-shadow:0 16px 48px rgb(0 0 0 / 22%)}
.eos-dialog::backdrop{background:rgb(0 0 0 / 38%)}
.eos-dialog>form{display:flex;max-height:calc(100dvh - 32px);flex-direction:column}
.eos-dialog__head,.eos-dialog__foot{display:flex;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px solid var(--border-soft)}
.eos-dialog__head h2{margin:2px 0 0;font-size:15px;line-height:1.3}
.eos-dialog__eyebrow{font-size:9.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.eos-dialog__close{margin-left:auto;width:28px;height:28px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--muted);font:700 14px/1 var(--sans);cursor:pointer}
.eos-dialog__close:hover{color:var(--text);border-color:var(--border-strong)}
.eos-dialog__body{padding:14px;overflow:auto}
.eos-dialog__textarea{height:auto;min-height:150px;padding:10px;resize:vertical}
.eos-dialog__foot{justify-content:flex-end;border-top:1px solid var(--border-soft);border-bottom:0;background:#fafafd}
@media (max-width:560px){.eos-bulk-taxonomy{align-items:stretch;flex-direction:column}.eos-bulk-taxonomy .eos-btn{justify-content:center}}

/* Shared dropdown indicator for native selects and custom menu triggers. */
.eos-dropdown-icon{display:inline-block;width:16px;height:16px;flex:0 0 16px;vertical-align:middle;background-color:currentColor;-webkit-mask:url("dropdown-chevron.svg") center/16px 16px no-repeat;mask:url("dropdown-chevron.svg") center/16px 16px no-repeat}
.eos-switch__caret{display:inline-flex;align-items:center}
body select:not([multiple]):not([size]),body select[size="1"]:not([multiple]){appearance:none;-webkit-appearance:none;background-image:url("dropdown-chevron.svg");background-repeat:no-repeat;background-position:right 8px center;background-size:16px 16px;padding-right:30px}
@media (max-width:560px){.eos-switch__caret{display:none}}
@media (forced-colors:active){
  .eos-dropdown-icon{forced-color-adjust:none;background-color:ButtonText}
  body select:not([multiple]):not([size]),body select[size="1"]:not([multiple]){appearance:auto;-webkit-appearance:auto;background-image:none;padding-right:10px}
}

/* ---- AI rephrase on free-standing textareas and rich-text editors ---- */
.eos-ai-text-control--auto{display:block;width:100%}
.eos-ai-text-control--auto>textarea{padding-right:38px}
.eos-richtext.eos-ai-text-control>.eos-ai-text-trigger{top:6px;right:6px}
.ck.ck-editor.eos-ai-text-control{position:relative}
.ck.ck-editor.eos-ai-text-control>.eos-ai-text-trigger{top:6px;right:6px;z-index:3}

/* ---- Highlighted AI actions ---- */
.eos-btn.eos-btn--ai{border-color:transparent;background:var(--accent);color:#fff;font-weight:600;box-shadow:0 2px 8px rgba(18,61,66,.25)}
.eos-btn.eos-btn--ai>span[aria-hidden]{color:#fff}
.eos-btn.eos-btn--ai:hover:not(:disabled){filter:brightness(1.08);box-shadow:0 3px 12px rgba(18,61,66,.35);color:#fff}
.eos-btn.eos-btn--ai:focus-visible{outline:2px solid var(--accent-bright);outline-offset:2px}
.eos-btn.eos-btn--ai:disabled{background:var(--brand-teal-soft);color:var(--accent);box-shadow:none;opacity:.7}
.eos-btn.eos-btn--ai:disabled>span[aria-hidden]{color:var(--accent)}
.eos-ai-text-trigger{background:var(--accent);color:#fff;box-shadow:0 2px 8px rgba(18,61,66,.3)}
.eos-ai-text-trigger:hover{background:var(--accent-hover);color:#fff;filter:brightness(1.1)}
@media (forced-colors:active){.eos-btn.eos-btn--ai,.eos-ai-text-trigger{border:1px solid ButtonText}}
