/* AYCore control primitives — compatibility-safe base layer. */
:root{
  --ay-control-radius:18px;
  --ay-control-radius-sm:12px;
  --ay-control-glass:color-mix(in srgb,var(--surface-2) 82%,transparent);
  --ay-control-line:color-mix(in srgb,var(--accent) 16%,var(--border-soft));
  --ay-control-shadow:0 18px 55px rgba(0,0,0,.24);
}
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(700px 420px at 92% -8%,color-mix(in srgb,var(--accent) 12%,transparent),transparent 72%),radial-gradient(560px 360px at -8% 90%,color-mix(in srgb,var(--accent) 7%,transparent),transparent 70%)}
.app-header{background:color-mix(in srgb,var(--surface-1) 84%,transparent)!important;backdrop-filter:blur(22px) saturate(130%);border-bottom:1px solid var(--ay-control-line)!important}
.app-sidebar{background:color-mix(in srgb,var(--surface-1) 92%,transparent)!important;backdrop-filter:blur(24px);border-inline-end:1px solid var(--ay-control-line)!important}
.app-logo__mark,.itz-brand-avatar{box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 32%,transparent),0 8px 24px color-mix(in srgb,var(--accent) 22%,transparent)}
.wrapper{max-width:1500px;margin-inline:auto}
.page-head{padding:4px 2px 14px}.page-head__title{font-size:clamp(19px,2vw,25px);letter-spacing:-.25px}.page-head__sub{max-width:780px;line-height:1.8}
.card,.panel-card,.stat-card,.modal-box{border-radius:var(--ay-control-radius)!important;border-color:var(--ay-control-line)!important;box-shadow:var(--ay-control-shadow)}
.card,.panel-card,.modal-box{background:linear-gradient(145deg,color-mix(in srgb,var(--surface-2) 94%,transparent),color-mix(in srgb,var(--surface-1) 92%,transparent))!important}
.panel-card{overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.panel-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 36%,var(--border-soft))!important;box-shadow:0 24px 65px rgba(0,0,0,.3)}
.btn{border-radius:11px!important;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}.btn:not(:disabled):active{transform:scale(.98)}.btn-primary{box-shadow:0 9px 28px color-mix(in srgb,var(--accent) 22%,transparent)}
.form-control,input.form-control,textarea.form-control,select.form-control{border-radius:12px!important;background:color-mix(in srgb,var(--surface-3) 92%,transparent)!important;border-color:var(--ay-control-line)!important;min-height:44px;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.form-control:focus{border-color:var(--accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent)!important}
.app-table{border-collapse:separate!important;border-spacing:0 7px!important}.app-table tbody tr{background:color-mix(in srgb,var(--surface-2) 88%,transparent);transition:background .14s ease,transform .14s ease}.app-table tbody tr:hover{background:color-mix(in srgb,var(--accent) 6%,var(--surface-2));transform:translateY(-1px)}.app-table tbody td:first-child{border-radius:0 12px 12px 0}.app-table tbody td:last-child{border-radius:12px 0 0 12px}
.badge,.chip{border-radius:999px!important}.modal-overlay{backdrop-filter:blur(9px);background:rgba(0,0,0,.58)!important}.modal-box{max-height:min(90vh,900px);overflow:auto}.modal-head{position:sticky;top:0;z-index:3;background:color-mix(in srgb,var(--surface-2) 94%,transparent);backdrop-filter:blur(14px);border-radius:var(--ay-control-radius) var(--ay-control-radius) 0 0}
.sidebar-menu a{border-radius:11px;margin:2px 8px;transition:background .15s ease,color .15s ease,transform .15s ease}.sidebar-menu a:hover{transform:translateX(-2px)}
.itz-segmented{padding:4px;border:1px solid var(--ay-control-line);border-radius:14px;background:var(--surface-3);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.itz-segmented__item{border:0;border-radius:10px;padding:10px 12px;background:transparent;color:var(--text-muted);font:inherit;cursor:pointer}.itz-segmented__item.active{background:var(--accent);color:var(--accent-fg,#fff);box-shadow:0 8px 22px color-mix(in srgb,var(--accent) 24%,transparent)}
.itz-field-hint{display:block;color:var(--text-muted);font-size:11.7px;line-height:1.8;margin-top:5px}.itz-inbound-picker{display:flex;gap:8px;align-items:center;margin-top:10px}.itz-inbound-picker select{flex:1}.itz-inline-result{margin-top:8px;padding:9px 11px;border-radius:11px}
.alert{border-radius:13px!important}.view-toggle{border-radius:12px!important}.view-toggle__btn{border-radius:9px!important}
@media(max-width:760px){.wrapper{padding-inline:11px!important}.page-head{gap:12px;align-items:flex-start!important}.itz-inbound-picker{align-items:stretch;flex-direction:column}.modal-box{width:calc(100vw - 18px)!important;margin:9px!important}.app-table{border-spacing:0 9px!important}.app-table tbody tr{border-radius:14px!important}.app-table tbody td:first-child,.app-table tbody td:last-child{border-radius:0}.xhub-grid{grid-template-columns:1fr!important}}

/* AY command palette primitives */
.ay-command-open{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border-soft);background:color-mix(in srgb,var(--surface-2) 84%,transparent);color:var(--text-muted);border-radius:12px;padding:7px 10px;font:inherit;cursor:pointer;transition:.2s ease}.ay-command-open:hover{color:var(--text-main);border-color:var(--accent);transform:translateY(-1px)}.ay-command-open b{font-size:11px}.ay-command-open kbd,.ay-command__foot kbd{font:600 10px 'JetBrains Mono',monospace;border:1px solid var(--border-mid);border-bottom-width:2px;border-radius:6px;padding:2px 5px;background:var(--surface-3);color:var(--text-muted)}
.ay-command{position:fixed;inset:0;z-index:99999;display:none;align-items:flex-start;justify-content:center;padding:11vh 16px 24px}.ay-command.is-open{display:flex}.ay-command__backdrop{position:absolute;inset:0;background:rgba(5,7,15,.68);backdrop-filter:blur(12px)}.ay-command__panel{position:relative;width:min(680px,100%);max-height:76vh;display:flex;flex-direction:column;border:1px solid color-mix(in srgb,var(--accent) 34%,var(--border-soft));border-radius:22px;background:color-mix(in srgb,var(--surface-2) 94%,transparent);box-shadow:0 30px 100px rgba(0,0,0,.38);overflow:hidden}.ay-command__head{display:flex;align-items:center;gap:11px;padding:15px 16px 10px}.ay-command__head>div{display:grid;gap:1px;flex:1}.ay-command__head small{color:var(--text-muted);font-size:11px}.ay-command__mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 55%,#fff));color:var(--accent-fg,#fff);font:800 12px 'JetBrains Mono',monospace;box-shadow:0 8px 24px var(--accent-soft)}.ay-command__search{margin:0 14px 10px;width:calc(100% - 28px);border:1px solid var(--border-mid);background:var(--surface-3);color:var(--text-main);border-radius:14px;padding:13px 14px;font:inherit;outline:none}.ay-command__search:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.ay-command__results{overflow:auto;padding:3px 9px 10px;display:grid;gap:3px}.ay-command__item{display:grid;grid-template-columns:minmax(150px,.8fr) 1.5fr auto;align-items:center;gap:12px;text-decoration:none;color:var(--text-main);padding:10px 11px;border:1px solid transparent;border-radius:12px}.ay-command__item small{color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ay-command__item>b{color:var(--text-muted)}.ay-command__item:hover,.ay-command__item.is-active{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 30%,transparent)}.ay-command__foot{display:flex;gap:16px;flex-wrap:wrap;border-top:1px solid var(--border-soft);padding:9px 14px;color:var(--text-muted);font-size:10px}.ay-command__foot span{display:flex;align-items:center;gap:4px}.ay-command-lock{overflow:hidden}@media(max-width:760px){.ay-command-open b,.ay-command-open kbd{display:none}.ay-command{padding-top:7vh}.ay-command__item{grid-template-columns:1fr auto}.ay-command__item small{display:none}}


/* AYCore command surface */
:root{--ay-control-panel-line:color-mix(in srgb,var(--accent) 20%,var(--border-soft));--ay-control-panel-glow:color-mix(in srgb,var(--accent) 16%,transparent)}
.app-header{backdrop-filter:blur(22px) saturate(150%);-webkit-backdrop-filter:blur(22px) saturate(150%)}.app-logo__mark{box-shadow:0 8px 24px var(--ay-control-panel-glow)}
.card,.stat-card,.setting-card,.panel-box{border-color:var(--ay-control-panel-line)!important}.btn-primary{box-shadow:0 10px 28px color-mix(in srgb,var(--accent) 20%,transparent)}
.wrapper:before{content:"";position:fixed;width:360px;height:360px;right:-180px;top:100px;border-radius:50%;background:var(--accent);filter:blur(120px);opacity:.055;pointer-events:none;z-index:-1}
.app-status-pill{position:relative}.app-status-pill:before{content:"";width:6px;height:6px;border-radius:50%;background:#22c55e;display:inline-block;margin-inline-end:6px;box-shadow:0 0 12px #22c55e}
