/* Scoped owner workspace: public/member layouts remain untouched. */
.admin-workspace { margin:0; background:var(--background); color:var(--text-primary); font:14px/1.5 Inter,ui-sans-serif,system-ui,sans-serif; }
.admin-workspace * { box-sizing:border-box; }
.admin-workspace [hidden] { display:none!important; }
.admin-workspace button,.admin-workspace input,.admin-workspace select,.admin-workspace textarea { font:inherit; }
.admin-workspace button,.admin-workspace a { -webkit-tap-highlight-color:transparent; }
.admin-workspace a { color:inherit; text-decoration:none; }
.admin-workspace button { cursor:pointer; }
.admin-workspace :focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
.admin-workspace svg { width:18px; height:18px; flex-shrink:0; }
.admin-workspace .aw-hero-editor { grid-column:1/-1; display:grid; gap:11px; }
.admin-workspace .aw-hero-intro { color:var(--text-muted); font-size:12px; font-weight:400; }
.admin-workspace .aw-hero-list { display:grid; gap:10px; }
.admin-workspace .aw-hero-slide { border:1px solid var(--border); border-radius:10px; padding:13px; display:grid; gap:12px; background:var(--surface); }
.admin-workspace .aw-hero-slide header { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.admin-workspace .aw-hero-slide header strong { font-size:13px; }
.admin-workspace .aw-hero-actions,.admin-workspace .aw-hero-add-actions { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.admin-workspace .aw-hero-actions button { border:1px solid var(--border); border-radius:6px; padding:5px 8px; background:var(--background); color:var(--text-primary); font-size:11px; }
.admin-workspace .aw-hero-actions button:disabled,.admin-workspace .aw-hero-add-actions button:disabled { opacity:.45; cursor:not-allowed; }
.admin-workspace .aw-hero-slide label { display:grid; gap:5px; color:var(--text-secondary); font-size:11px; }
.admin-workspace .aw-hero-slide input { width:100%; min-width:0; border:1px solid var(--border); border-radius:6px; padding:9px; background:var(--background); color:var(--text-primary); }
.admin-workspace .aw-hero-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
@media(max-width:640px) { .admin-workspace .aw-hero-slide header { align-items:flex-start; flex-direction:column; } .admin-workspace .aw-hero-fields { grid-template-columns:1fr; } }
.admin-workspace h1,.admin-workspace h2,.admin-workspace h3,.admin-workspace p { margin:0; }
.admin-workspace .aw-shell { display:grid; grid-template-columns:240px minmax(0,1fr); min-height:100vh; }
.admin-workspace .aw-sidebar { background:var(--surface); border-right:1px solid var(--border); position:sticky; top:0; height:100vh; padding:30px 18px 20px; display:flex; flex-direction:column; overflow:auto; z-index:30; }
.admin-workspace .aw-brand { display:flex; align-items:center; gap:11px; padding:0 10px; font-size:21px; letter-spacing:-.6px; }
.admin-workspace .aw-brand small { display:block; font-size:9px; letter-spacing:1.9px; color:var(--text-muted); font-weight:600; margin-top:1px; }
.admin-workspace .aw-brand-mark { background:var(--primary); color:white; width:36px; height:38px; border-radius:10px; display:grid; place-items:center; }
.admin-workspace .aw-workspace-name { display:flex; align-items:center; gap:9px; border:1px solid var(--border); border-radius:9px; padding:11px; margin:30px 0 25px; }
.admin-workspace .aw-workspace-name strong { font-size:12px; display:block; }
.admin-workspace .aw-workspace-name small { color:var(--text-muted); font-size:11px; }
.admin-workspace .aw-workspace-name>svg { margin-left:auto; width:15px; color:var(--text-muted); }
.admin-workspace .aw-workspace-icon { border-radius:7px; background:var(--primary-soft); color:var(--primary); padding:5px 9px; font-weight:700; }
.admin-workspace .aw-nav-label { color:var(--text-muted); font-size:10px; font-weight:600; letter-spacing:1.4px; padding:20px 12px 9px; }
.admin-workspace .aw-nav-link { display:flex; gap:11px; align-items:center; padding:10px 12px; margin:3px 0; border-radius:7px; color:var(--text-secondary); font-size:13px; }
.admin-workspace .aw-nav-link:hover { background:var(--background-secondary); }
.admin-workspace .aw-nav-link[aria-current="page"] { background:var(--primary-soft); color:var(--primary); font-weight:650; }
.admin-workspace .aw-nav-link small { margin-left:auto; background:var(--background-secondary); color:var(--text-muted); font-size:10px; min-width:23px; text-align:center; border-radius:4px; padding:1px 4px; }
.admin-workspace .aw-sidebar-bottom { margin-top:auto; padding:32px 10px 0; }
.admin-workspace .aw-sidebar-bottom>a,.admin-workspace .aw-sidebar-bottom>button { display:flex; align-items:center; gap:10px; border:0; background:none; color:var(--text-muted); padding:9px 0; font-size:12px; }
.admin-workspace .aw-environment { display:flex; align-items:center; gap:7px; font-size:11px; color:var(--text-muted); padding-bottom:12px; border-bottom:1px solid var(--border); margin-bottom:10px; }
.admin-workspace .aw-environment span { width:6px; height:6px; background:#d39538; border-radius:50%; }
.admin-workspace .aw-page { min-width:0; display:flex; flex-direction:column; }
.admin-workspace .aw-topbar { height:78px; padding:0 38px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--border); background:var(--surface); }
.admin-workspace .aw-breadcrumb { display:flex; gap:16px; align-items:center; font-size:12px; color:var(--text-muted); }
.admin-workspace .aw-breadcrumb strong { color:var(--text-secondary); font-weight:500; }
.admin-workspace .aw-top-actions { display:flex; align-items:center; gap:10px; }
.admin-workspace .aw-top-actions strong { font-size:12px; }
.admin-workspace .aw-top-actions small { display:block; font-size:10px; color:var(--text-muted); }
.admin-workspace .aw-top-divider { height:25px; width:1px; background:var(--border); margin:0 9px; }
.admin-workspace .aw-avatar { width:32px; height:32px; border-radius:50%; background:var(--primary-soft); color:var(--primary); display:grid; place-items:center; font-size:10px; font-weight:700; }
.admin-workspace #aw-main { padding:35px 38px 48px; width:100%; max-width:1600px; margin:0 auto; flex:1; }
.admin-workspace .aw-page-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:23px; }
.admin-workspace .aw-eyebrow { color:var(--text-muted); letter-spacing:1.6px; font-size:10px; font-weight:650; margin-bottom:7px; }
.admin-workspace h1 { font-size:29px; line-height:1.25; font-weight:650; letter-spacing:-.9px; }
.admin-workspace #aw-subtitle { color:var(--text-muted); font-size:13px; margin-top:8px; }
.admin-workspace .aw-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--border-strong); background:var(--surface); color:var(--text-secondary); padding:9px 14px; border-radius:7px; font-size:12px; font-weight:600; white-space:nowrap; }
.admin-workspace .aw-button:hover { background:var(--background-secondary); }
.admin-workspace .aw-primary { background:var(--primary); border-color:var(--primary); color:#fff; }
.admin-workspace .aw-primary:hover { background:var(--primary-hover); color:#fff; }
.admin-workspace .aw-icon-button { width:34px; height:34px; display:inline-grid; place-items:center; border:0; background:transparent; color:var(--text-muted); border-radius:6px; }
.admin-workspace .aw-icon-button:hover { background:var(--background-secondary); color:var(--primary); }
.admin-workspace .aw-notice { display:flex; gap:9px; padding:10px 13px; background:var(--surface); border:1px solid var(--border); border-left:3px solid #d39538; border-radius:6px; color:var(--text-muted); font-size:11px; margin-bottom:23px; }
.admin-workspace .aw-notice svg { width:15px; }
.admin-workspace .aw-notice strong { color:var(--text-secondary); font-weight:600; }
.admin-workspace .aw-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:25px; }
.admin-workspace .aw-metric { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:20px; }
.admin-workspace .aw-metric-label { display:flex; align-items:center; justify-content:space-between; color:var(--text-muted); font-size:12px; gap:6px; }
.admin-workspace .aw-metric strong { display:block; font-size:29px; letter-spacing:-1px; font-weight:600; margin:12px 0 5px; }
.admin-workspace .aw-metric small { color:var(--text-muted); font-size:11px; }
.admin-workspace .aw-panel { border:1px solid var(--border); background:var(--surface); border-radius:10px; overflow:hidden; margin-bottom:22px; }
.admin-workspace .aw-panel-heading { display:flex; align-items:center; justify-content:space-between; padding:20px 22px; gap:14px; border-bottom:1px solid var(--border); }
.admin-workspace .aw-compact-metrics { padding:20px 22px 0; margin-bottom:20px; }
.admin-workspace .aw-tabs { display:flex; align-items:center; gap:8px; padding:0 22px 18px; border-bottom:1px solid var(--border); overflow-x:auto; }
.admin-workspace .aw-tab-button { flex:0 0 auto; border:1px solid var(--border); background:var(--surface-soft); color:var(--text-secondary); border-radius:999px; padding:9px 13px; font-size:12px; font-weight:650; }
.admin-workspace .aw-tab-button:hover { color:var(--text-primary); background:var(--primary-soft); border-color:var(--primary-border); }
.admin-workspace .aw-tab-button.is-active { background:var(--primary); border-color:var(--primary); color:#fff; }
.admin-workspace .aw-tab-panel { display:none; }
.admin-workspace .aw-tab-panel.is-active { display:block; }
.admin-workspace .aw-dashboard-note { display:flex; align-items:center; gap:9px; flex-wrap:wrap; padding:14px 22px; border-top:1px solid var(--border); color:var(--text-muted); font-size:11px; }
.admin-workspace .aw-dashboard-note span { border:1px solid var(--border); background:var(--surface-soft); border-radius:999px; padding:5px 9px; }
.admin-workspace h2 { font-size:16px; font-weight:650; letter-spacing:-.25px; }
.admin-workspace .aw-panel-heading p { font-size:12px; color:var(--text-muted); margin-top:4px; }
.admin-workspace .aw-text-link { font-size:12px; font-weight:600; color:var(--primary); display:inline-flex; align-items:center; gap:5px; }
.admin-workspace .aw-module-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.admin-workspace .aw-module-card { padding:23px; border-bottom:1px solid var(--border); display:block; min-width:0; }
.admin-workspace .aw-module-card:not(:nth-child(3n)) { border-right:1px solid var(--border); }
.admin-workspace .aw-module-card:nth-last-child(-n+3) { border-bottom:0; }
.admin-workspace .aw-module-card:hover { background:var(--surface-soft); }
.admin-workspace .aw-module-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:17px; }
.admin-workspace .aw-module-icon { width:37px; height:37px; border-radius:9px; background:var(--primary-soft); color:var(--primary); display:grid; place-items:center; }
.admin-workspace .aw-module-top>svg { color:var(--text-muted); width:16px; }
.admin-workspace .aw-module-card h3 { font-size:13px; margin-bottom:5px; font-weight:650; }
.admin-workspace .aw-module-card p { font-size:11px; color:var(--text-muted); min-height:33px; }
.admin-workspace .aw-module-count { margin-top:15px; font-size:11px; color:var(--text-muted); }
.admin-workspace .aw-module-count strong { font-size:18px; color:var(--text-primary); margin-right:5px; font-weight:600; }
.admin-workspace .aw-create-card { text-align:left; background:transparent; color:var(--text-primary); border:0; border-bottom:1px solid var(--border); border-radius:0; font:inherit; }
.admin-workspace .aw-create-card .aw-module-count { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.admin-workspace .aw-bottom-grid { display:grid; grid-template-columns:1.25fr 1fr; gap:22px; }
.admin-workspace .aw-queue-row { display:flex; gap:12px; align-items:center; padding:15px 22px; border-bottom:1px solid var(--border); }
.admin-workspace .aw-queue-row:last-child { border-bottom:0; }
.admin-workspace .aw-queue-row>div { flex:1; }
.admin-workspace .aw-queue-row strong { font-size:12px; display:block; font-weight:600; }
.admin-workspace .aw-queue-row small { color:var(--text-muted); font-size:11px; }
.admin-workspace .aw-steps { padding:7px 22px 19px; }
.admin-workspace .aw-step { display:flex; align-items:start; gap:13px; padding:14px 0 0; }
.admin-workspace .aw-step>span { width:25px; height:25px; flex-shrink:0; border:1px solid var(--border); border-radius:50%; display:grid; place-items:center; color:var(--text-muted); font-size:10px; }
.admin-workspace .aw-step strong { font-size:12px; display:block; }
.admin-workspace .aw-step p { font-size:11px; color:var(--text-muted); margin-top:3px; }
.admin-workspace .aw-filters { display:flex; gap:10px; padding:16px 20px; flex-wrap:wrap; align-items:end; border-bottom:1px solid var(--border); }
.admin-workspace .aw-filters label { display:flex; flex-direction:column; gap:4px; font-size:10px; color:var(--text-muted); }
.admin-workspace .aw-filters label:first-child { flex:1; min-width:190px; }
.admin-workspace input,.admin-workspace select,.admin-workspace textarea { width:100%; background:var(--surface); color:var(--text-primary); border:1px solid var(--border-strong); border-radius:6px; padding:9px 11px; min-height:38px; box-shadow:none; }
.admin-workspace .aw-filters input,.admin-workspace .aw-filters select { font-size:12px; }
.admin-workspace .aw-table-scroll { overflow-x:auto; }
.admin-workspace table { border-collapse:collapse; width:100%; margin:0; font-size:12px; }
.admin-workspace th { background:var(--surface-soft); color:var(--text-muted); font-size:10px; font-weight:600; letter-spacing:.5px; text-transform:uppercase; text-align:left; padding:12px 20px; white-space:nowrap; border-bottom:1px solid var(--border); }
.admin-workspace td { border-bottom:1px solid var(--border); padding:16px 20px; vertical-align:middle; color:var(--text-secondary); }
.admin-workspace tr:last-child td { border-bottom:0; }
.admin-workspace tbody tr:hover { background:var(--surface-soft); }
.admin-workspace table { background:var(--surface); }
.admin-workspace .aw-top-actions>.theme-palette-container { display:block; position:relative; z-index:100000; }
.admin-workspace .theme-palette-popover { max-width:calc(100vw - 32px); z-index:100000!important; }
.admin-workspace .aw-topbar.has-active-popover,
.admin-workspace .aw-topbar:has(.theme-palette-popover:not([hidden])) { z-index:100000!important; }
html[data-theme="dark"] .admin-workspace .aw-badge.good { color:#a7f3d0; background:#14532d; }
html[data-theme="dark"] .admin-workspace .aw-badge.warn { color:#fde68a; background:#713f12; }
html[data-theme="dark"] .admin-workspace #aw-editor-error { color:#fecaca; background:#7f1d1d; }
.admin-workspace td strong { font-size:12px; font-weight:600; color:var(--text-primary); display:block; }
.admin-workspace td small { display:block; color:var(--text-muted); margin-top:3px; font-size:11px; }
.admin-workspace .aw-record { display:flex; gap:11px; align-items:center; min-width:200px; }
.admin-workspace .aw-record-icon { width:34px; height:34px; display:grid; place-items:center; flex-shrink:0; background:var(--primary-soft); color:var(--primary); border-radius:8px; font-size:11px; font-weight:600; }
.admin-workspace .aw-badge { display:inline-flex; align-items:center; gap:6px; border-radius:5px; padding:4px 8px; font-size:10px; font-weight:550; background:var(--background-secondary); color:var(--text-secondary); white-space:nowrap; }
.admin-workspace .aw-badge::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; }
.admin-workspace .aw-badge.good { color:#187452; background:#e9f5ed; }
.admin-workspace .aw-badge.warn { color:#91620e; background:#fcf4df; }
.admin-workspace .aw-pagination { padding:14px 20px; border-top:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; color:var(--text-muted); font-size:11px; }
.admin-workspace .aw-pagination>div { display:flex; align-items:center; gap:12px; }
.admin-workspace button:disabled { opacity:.45; cursor:not-allowed; }
.admin-workspace .aw-empty { text-align:center; padding:45px 20px; color:var(--text-muted); }
.admin-workspace .aw-empty.compact { padding:24px 14px; }
.admin-workspace .aw-empty h3 { font-size:15px; color:var(--text-primary); margin-bottom:8px; }
.admin-workspace .aw-empty p { font-size:12px; margin-bottom:16px; }
.admin-workspace .aw-footer { padding:16px 38px; display:flex; justify-content:space-between; border-top:1px solid var(--border); font-size:10px; color:var(--text-muted); }
.admin-workspace #aw-editor { padding:0; border:1px solid var(--border); border-radius:14px; width:min(760px,calc(100vw - 30px)); max-height:90vh; background:var(--surface); color:var(--text-primary); box-shadow:0 24px 90px #0003; }
.admin-workspace #aw-editor::backdrop { background:#0f172a80; backdrop-filter:blur(3px); }
.admin-workspace #aw-editor-form { display:flex; flex-direction:column; max-height:89vh; }
.admin-workspace .aw-editor-header,.admin-workspace .aw-editor-footer { display:flex; align-items:center; justify-content:space-between; padding:20px 25px; border-bottom:1px solid var(--border); flex-shrink:0; }
.admin-workspace .aw-editor-footer { justify-content:flex-end; gap:10px; border-top:1px solid var(--border); border-bottom:0; }
.admin-workspace .aw-editor-body { padding:22px 25px; overflow-y:auto; }
.admin-workspace .aw-editor-help { color:var(--text-muted); font-size:12px; margin-bottom:20px; }
.admin-workspace fieldset { border:0; padding:0; margin:0 0 24px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.admin-workspace legend { padding:0 0 12px; width:100%; border-bottom:1px solid var(--border); font-size:12px; font-weight:650; margin-bottom:15px; }
.admin-workspace .aw-field { display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:550; }
.admin-workspace .aw-field.wide { grid-column:1/-1; }
.admin-workspace textarea { min-height:90px; resize:vertical; font-size:12px; }
.admin-workspace .aw-field small { font-size:10px; font-weight:400; color:var(--text-muted); }
.admin-workspace #aw-editor-error { padding:12px; border-radius:6px; background:#fff0ed; color:#a52e21; font-size:12px; }
.admin-workspace .aw-login-note { display:flex; gap:8px; color:var(--text-muted); font-size:11px; padding:15px; background:var(--background-secondary); border-radius:8px; margin:20px 0!important; }
.admin-workspace .login-card { max-width:460px; border:1px solid var(--border); padding:36px; border-radius:16px; background:var(--surface); }
.admin-workspace .login-card>.aw-brand { padding:0; margin-bottom:35px; }
.admin-workspace .login-card>p:not(.aw-eyebrow) { margin:15px 0 22px; }
.admin-workspace .login-card form { display:grid; gap:16px; }
.admin-workspace .login-card>a { font-size:12px; color:var(--text-muted); }
.aw-skip { position:fixed; top:-100px; left:15px; z-index:100; background:var(--surface); padding:12px; }
.aw-skip:focus { top:15px; }
.admin-workspace .aw-menu-toggle { display:none; }
@media(min-width:1500px) { .admin-workspace #aw-main { padding-top:42px; } .admin-workspace .aw-module-card { padding:26px; } }
@media(max-width:1150px) { .admin-workspace .aw-shell { grid-template-columns:210px minmax(0,1fr); } .admin-workspace #aw-main { padding:25px; } .admin-workspace .aw-topbar { padding:0 25px; } .admin-workspace .aw-metrics { gap:10px; } .admin-workspace .aw-metric { padding:15px; } }
@media(max-width:900px) { .admin-workspace .aw-shell { display:block; } .admin-workspace .aw-sidebar { position:fixed; left:0; width:240px; transform:translateX(-100%); box-shadow:10px 0 35px #0001; } .admin-workspace.aw-nav-open .aw-sidebar { transform:translateX(0); } .admin-workspace .aw-menu-toggle { display:inline-grid; } .admin-workspace .aw-bottom-grid { grid-template-columns:1fr; } }
@media(max-width:600px) { .admin-workspace #aw-main { padding:22px 16px; } .admin-workspace .aw-topbar { padding:0 16px; height:65px; } .admin-workspace .aw-top-actions>div,.admin-workspace .aw-top-divider { display:none; } .admin-workspace .aw-page-heading { align-items:flex-start; flex-direction:column; gap:14px; } .admin-workspace h1 { font-size:26px; } .admin-workspace .aw-metrics { grid-template-columns:1fr 1fr; } .admin-workspace .aw-module-grid { grid-template-columns:1fr 1fr; } .admin-workspace .aw-module-card { padding:17px; } .admin-workspace .aw-module-card:not(:nth-child(3n)) { border-right:0; } .admin-workspace .aw-module-card:nth-child(odd) { border-right:1px solid var(--border); } .admin-workspace .aw-module-card:nth-last-child(-n+3) { border-bottom:1px solid var(--border); } .admin-workspace .aw-module-card:nth-last-child(-n+2) { border-bottom:0; } .admin-workspace .aw-panel-heading { padding:17px; } .admin-workspace .aw-footer { padding:16px; } .admin-workspace .aw-footer>span:last-child { display:none; } .admin-workspace fieldset { grid-template-columns:1fr; } .admin-workspace .aw-filters label { flex:1; min-width:100px; } .admin-workspace .aw-breadcrumb { gap:9px; } }

/* Public-site alignment layer: same brand atmosphere, tuned for dense admin work. */
.admin-workspace {
  --aw-panel-shadow:0 16px 38px rgba(30,64,175,.08);
  background-color:var(--background);
  background-image:var(--ambient-bg);
  background-attachment:fixed;
  font-family:'Open Sans','Twemoji Country Flags',Inter,ui-sans-serif,system-ui,sans-serif;
}
.admin-workspace .aw-sidebar {
  color:var(--text-primary);
  background:var(--surface-canvas);
  border-right-color:var(--border-strong);
  box-shadow:12px 0 40px rgba(3,10,26,.12);
}
.admin-workspace .aw-brand { font-weight:800; }
.admin-workspace .aw-brand-mark { background:var(--primary-gradient); border-radius:12px; box-shadow:0 9px 24px rgba(72,87,255,.32); }
.admin-workspace .aw-sidebar .aw-brand small,
.admin-workspace .aw-sidebar .aw-workspace-name small,
.admin-workspace .aw-sidebar .aw-nav-label,
.admin-workspace .aw-sidebar .aw-environment,
.admin-workspace .aw-sidebar-bottom>a,
.admin-workspace .aw-sidebar-bottom>button { color:var(--text-muted); }
.admin-workspace .aw-workspace-name { background:var(--primary-soft); border-color:var(--primary-border); border-radius:14px; }
.admin-workspace .aw-workspace-icon { background:var(--primary-gradient); color:#fff; }
.admin-workspace .aw-nav-link { color:var(--text-secondary); border-radius:11px; transition:background .18s ease,color .18s ease; }
.admin-workspace .aw-nav-link:hover { color:var(--text-primary); background:var(--primary-soft); }
.admin-workspace .aw-nav-link[aria-current="page"] { color:var(--text-primary); background:var(--primary-soft); box-shadow:inset 0 0 0 1px var(--primary-border); }
.admin-workspace .aw-nav-link small { color:var(--text-secondary); background:var(--background-secondary); border-radius:999px; }
.admin-workspace .aw-environment { border-bottom-color:var(--border); }
.admin-workspace .aw-page { background:transparent; }
.admin-workspace .aw-topbar { position:sticky; top:0; z-index:1000; background:color-mix(in srgb,var(--surface) 88%,transparent); border-bottom-color:var(--border-subtle); backdrop-filter:blur(18px); }
.admin-workspace #aw-main { padding-top:30px; }
.admin-workspace .aw-page-heading { position:relative; min-height:138px; padding:29px 31px; overflow:hidden; border:1px solid var(--border-subtle); border-radius:22px; background:linear-gradient(135deg,color-mix(in srgb,var(--surface) 94%,#dce8ff) 0%,color-mix(in srgb,var(--surface) 92%,#eee5ff) 100%); box-shadow:var(--aw-panel-shadow); }
.admin-workspace .aw-page-heading::after { content:""; position:absolute; width:210px; height:210px; right:-70px; top:-105px; border-radius:50%; background:var(--primary-gradient); opacity:.12; filter:blur(2px); pointer-events:none; }
.admin-workspace .aw-page-heading>div { position:relative; z-index:1; }
.admin-workspace .aw-eyebrow { color:#b27a19; font-weight:800; }
.admin-workspace h1 { font-size:clamp(28px,3vw,38px); font-weight:800; letter-spacing:-1.2px; }
.admin-workspace #aw-subtitle { max-width:640px; font-size:14px; line-height:1.65; }
.admin-workspace .aw-button { min-height:40px; padding:9px 16px; border-color:var(--border-subtle); border-radius:12px; font-weight:750; box-shadow:0 4px 12px rgba(15,23,42,.04); }
.admin-workspace .aw-primary { border-color:transparent; background:var(--primary-gradient); box-shadow:0 8px 20px rgba(72,87,255,.22); }
.admin-workspace .aw-primary:hover { background:var(--primary-gradient); filter:brightness(1.06); transform:translateY(-1px); }
.admin-workspace .aw-notice { border-color:color-mix(in srgb,#d39538 28%,var(--border)); border-left-width:4px; border-radius:12px; background:color-mix(in srgb,var(--surface) 92%,#fff4da); }
.admin-workspace .aw-metrics { gap:18px; }
.admin-workspace .aw-metric,.admin-workspace .aw-panel { border-color:var(--border-subtle); border-radius:18px; background:color-mix(in srgb,var(--surface) 96%,transparent); box-shadow:var(--aw-panel-shadow); }
.admin-workspace .aw-metric { position:relative; overflow:hidden; padding:22px; }
.admin-workspace .aw-metric::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:var(--primary-gradient); opacity:.8; }
.admin-workspace .aw-metric strong { font-size:32px; font-weight:750; }
.admin-workspace .aw-panel-heading { padding:22px 24px; }
.admin-workspace h2 { font-size:17px; font-weight:750; }
.admin-workspace .aw-module-card { transition:background .18s ease,transform .18s ease; }
.admin-workspace .aw-module-card:hover { background:color-mix(in srgb,var(--primary-soft) 55%,transparent); }
.admin-workspace .aw-module-icon,.admin-workspace .aw-record-icon { color:#fff; background:var(--primary-gradient); box-shadow:0 7px 17px rgba(72,87,255,.2); }
.admin-workspace input,.admin-workspace select,.admin-workspace textarea { border-color:var(--border-subtle); border-radius:11px; background:var(--surface-soft); }
.admin-workspace input:focus,.admin-workspace select:focus,.admin-workspace textarea:focus { border-color:var(--primary); box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 16%,transparent); outline:0; }
.admin-workspace .aw-badge { border-radius:999px; padding-inline:9px; }
.admin-workspace #aw-editor { border-color:var(--border-subtle); border-radius:22px; box-shadow:0 28px 90px rgba(5,15,38,.28); }
.admin-workspace .login-screen { background-color:var(--background); background-image:var(--ambient-bg); }
.admin-workspace .login-screen { height:100vh; min-height:0; justify-content:center; padding:32px; overflow:auto; }
.admin-workspace .login-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(360px,460px); gap:82px; width:min(100%,1040px); max-width:none; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; box-sizing:border-box; }
.admin-workspace .login-intro { align-self:center; }
.admin-workspace .login-card>.login-intro .aw-brand { padding:0; margin-bottom:68px; }
.admin-workspace .login-card h1 { margin:0; font-size:clamp(30px,3vw,42px); line-height:1.08; letter-spacing:-1.2px; }
.admin-workspace .login-card .login-intro>p:not(.aw-eyebrow) { margin:14px 0 0; line-height:1.6; }
.admin-workspace .login-actions { align-self:center; padding:38px; border:1px solid rgba(255,255,255,.12); border-radius:24px; background:var(--surface); box-shadow:0 30px 90px rgba(2,8,23,.35); }
html[data-theme="dark"] .admin-workspace .login-card { background:transparent!important; border:0!important; box-shadow:none!important; }
.admin-workspace .aw-google-login { width:100%; min-height:46px; border:1px solid var(--border-subtle); border-radius:11px; background:#fff; color:#1f2937!important; font-weight:700; box-shadow:0 3px 8px rgba(15,23,42,.08); }
.admin-workspace .aw-google-login:hover { background:#f8fafc; border-color:#b9c4d5; }
.admin-workspace .aw-google-mark { font-family:Arial,sans-serif; font-size:18px; font-weight:700; color:#4285f4; }
.admin-workspace .login-actions .aw-login-note { margin-top:22px!important; }
@media(max-width:700px) { .admin-workspace .login-screen { height:auto; min-height:100vh; padding:28px 16px; }.admin-workspace .login-card { grid-template-columns:1fr; gap:26px; width:min(100%,480px); }.admin-workspace .login-card>.login-intro .aw-brand { margin-bottom:32px; }.admin-workspace .login-actions { padding:26px 22px; } }
html[data-theme="dark"] .admin-workspace { --aw-panel-shadow:0 18px 46px rgba(0,0,0,.22); }
html[data-theme="dark"] .admin-workspace .aw-topbar { background:color-mix(in srgb,var(--surface-canvas) 82%,transparent); }
@media(max-width:900px) { .admin-workspace .aw-sidebar { box-shadow:18px 0 55px rgba(3,10,26,.3); } }
@media(max-width:600px) { .admin-workspace .aw-page-heading { min-height:0; padding:23px 20px; border-radius:18px; } .admin-workspace .aw-page-heading::after { width:150px; height:150px; } .admin-workspace .aw-metric,.admin-workspace .aw-panel { border-radius:15px; } }

/* Platform-wide directory controls: public, creator, and owner views share one contract. */
.admin-workspace .aw-filters.module-directory-toolbar {
  margin: 0;
  transform: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}
.admin-workspace .aw-filters.module-directory-toolbar .module-search {
  flex-direction: row;
  gap: 12px;
  color: var(--text-primary);
  font-size: inherit;
}
.admin-workspace .aw-filters.module-directory-toolbar .module-search input {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: .95rem;
}
.admin-workspace .aw-filters.module-directory-toolbar .module-search input:focus {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.admin-workspace .aw-filters.module-directory-toolbar .module-search,
.admin-workspace .aw-filters.module-directory-toolbar .module-filter-control,
.admin-workspace .aw-filters.module-directory-toolbar .module-filter-trigger {
  box-sizing: border-box;
  height: var(--module-control-height) !important;
  min-height: var(--module-control-height) !important;
  max-height: var(--module-control-height) !important;
  border-radius: var(--module-control-radius) !important;
}
.admin-workspace .aw-filters.module-directory-toolbar .module-filter-trigger {
  padding: 0 15px;
  background: var(--surface-soft);
  font-size: .82rem;
}
@media(max-width:700px) {
  .admin-workspace .aw-filters.module-directory-toolbar { position: relative; }
}

.admin-workspace .aw-taxonomy-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.admin-workspace .aw-taxonomy-card { margin:0; overflow:hidden; }
.admin-workspace .aw-taxonomy-list { display:grid; gap:10px; padding:4px 24px 22px; }
.admin-workspace .aw-taxonomy-row { display:grid; grid-template-columns:minmax(0,1fr) 42px; gap:8px; align-items:center; }
.admin-workspace .aw-taxonomy-row input { width:100%; }
.admin-workspace .aw-taxonomy-actions { display:flex; justify-content:space-between; gap:12px; padding:18px 24px; border-top:1px solid var(--border); }
.admin-workspace .aw-notice { margin-bottom:18px; padding:16px 18px; }
.admin-workspace .aw-notice p { margin:4px 0 0; color:var(--text-muted); }
.admin-workspace .aw-publication-card { margin:0 0 18px; overflow:hidden; }
.admin-workspace .aw-publication-copy { display:flex; gap:16px; align-items:flex-start; padding:24px; }
.admin-workspace .aw-publication-copy h2 { margin:3px 0 6px; }
.admin-workspace .aw-publication-copy p { margin:0; color:var(--text-muted); line-height:1.55; }
.admin-workspace .aw-switch-row { display:flex; align-items:center; gap:16px; justify-content:space-between; margin:0 24px 22px; padding:16px 18px; border:1px solid var(--border); border-radius:14px; background:var(--surface-soft); cursor:pointer; }
.admin-workspace .aw-switch-row > span:first-child { display:grid; gap:4px; }
.admin-workspace .aw-switch-row small,.admin-workspace .aw-setting-status { color:var(--text-muted); }
.admin-workspace .aw-switch-row input { position:absolute; opacity:0; pointer-events:none; }
.admin-workspace .aw-switch { position:relative; flex:0 0 48px; width:48px; height:28px; border-radius:999px; background:#94a3b8; transition:.2s ease; }
.admin-workspace .aw-switch::after { content:""; position:absolute; top:4px; left:4px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 2px 6px #0003; transition:.2s ease; }
.admin-workspace .aw-switch-row input:checked + .aw-switch { background:var(--primary); }
.admin-workspace .aw-switch-row input:checked + .aw-switch::after { transform:translateX(20px); }
.admin-workspace .aw-switch-row input:focus-visible + .aw-switch { outline:3px solid color-mix(in srgb,var(--primary) 28%,transparent); outline-offset:3px; }
@media(max-width:800px) { .admin-workspace .aw-taxonomy-grid { grid-template-columns:1fr; } }
@media(max-width:480px) { .admin-workspace .aw-taxonomy-actions { align-items:stretch; flex-direction:column; } .admin-workspace .aw-publication-copy { padding:20px; } .admin-workspace .aw-switch-row { margin:0 20px 20px; } }
.aw-login-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:#93a4c4;font-size:.82rem}.aw-login-divider:before,.aw-login-divider:after{content:"";height:1px;flex:1;background:#344b79}.aw-google-login{display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;background:#fff;color:#17284d!important}.aw-google-mark{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;color:#4285f4;font-weight:900}.aw-forgot-link{display:block;margin:14px auto 0;border:0;background:transparent;color:#a9bce5;font:inherit;font-size:.85rem;text-decoration:underline;cursor:pointer}.aw-password-reset{margin-top:16px;padding-top:16px;border-top:1px solid #344b79}.aw-password-reset p{color:#a9d7c4;font-size:.82rem;line-height:1.4}
