/* Shared account geometry and palette. Source used by venue and center. */
/* Base tokens from the center; later named schemes override accents only. */
:root.site-atmosphere[data-theme="dark"]{
    --bg: #070d16;
    --bg-soft: #0b1420;
    --surface: #101b2c;
    --surface-2: rgba(255, 255, 255, 0.06);
    --surface-hover: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #eef2fb;
    --text-muted: #93a1bd;
    --text-faint: #5c6a8a;
    --accent: var(--server-accent,#4f8cff);
    --accent-2: var(--server-accent-2,#a78bfa);
    --accent-strong: #6ea1ff;
    --accent-contrast: #06101f;
    --success: #34d399;
    --danger: #f87171;
    --warning: #fbbf24;
    --icon-color: #b8c4de;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.28);
    --shadow-md: 0 12px 32px rgba(0,0,0,.38);
    --shadow-lg: 0 24px 64px rgba(0,0,0,.48);
    --input-bg: rgba(255,255,255,0.05);


  --bg: #0b0b0f; --bg-soft: #101015; --surface: #16161b; --surface-2: #1c1c22; --surface-hover: #24242b;
  --border: #ffffff12; --border-strong: #ffffff22;
  --text: #f3f3f6; --text-muted: #9c9caa; --text-faint: #82828f; --icon-color: #b4b4c2;
  --input-bg: #101015;
  --atmo-grid: #ffffff05; --atmo-ease: cubic-bezier(.22, 1, .36, 1);
  --atmo-radius: 18px; --atmo-control-radius: 12px;
  --shadow-sm: 0 3px 12px #00000016; --shadow-md: 0 12px 36px #00000020; --shadow-lg: 0 24px 70px #00000035;
}
:root.site-atmosphere[data-theme="light"]{
    --bg: #eef2f9;
    --bg-soft: #f6f8fc;
    --surface: #ffffff;
    --surface-2: #eef1f7;
    --surface-hover: #e4e9f3;
    --border: #e1e6f0;
    --border-strong: #cbd3e3;
    --text: #12172a;
    --text-muted: #5b6478;
    --text-faint: #929cb3;
    --accent: var(--server-accent,#2f6fed);
    --accent-2: var(--server-accent-2,#7c3aed);
    --accent-strong: #1f57cf;
    --accent-contrast: #ffffff;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #b8790a;
    --icon-color: #4a5372;
    --shadow-sm: 0 2px 8px rgba(20,30,60,.06);
    --shadow-md: 0 12px 28px rgba(20,30,60,.1);
    --shadow-lg: 0 24px 56px rgba(20,30,60,.14);
    --input-bg: #f4f6fb;


  --bg: #f2f4f9; --bg-soft: #f7f8fc; --surface: #ffffff; --surface-2: #eceff6; --surface-hover: #e5eaf4;
  --border: #1e305014; --border-strong: #1e30502e;
  --text: #1c2435; --text-muted: #606b80; --text-faint: #788399; --icon-color: #606b80;
  --input-bg: #f7f8fc; --atmo-grid: #1e305009;
  --shadow-sm: 0 3px 12px #20305008; --shadow-md: 0 12px 36px #2030500c; --shadow-lg: 0 24px 70px #20305015;
}
:root.site-atmosphere[data-theme="military"]{
    --bg: #141712;
    --bg-soft: #191e16;
    --surface: #20251d;
    --surface-2: #293024;
    --surface-hover: #323b2b;
    --border: #3d4736;
    --border-strong: #68765a;
    --text: #f1efdf;
    --text-muted: #b9c0aa;
    --text-faint: #969f88;
    --accent: var(--military-accent, #e6c164);
    --accent-2: var(--military-accent-2, #b9c99a);
    --accent-strong: color-mix(in srgb, var(--accent) 82%, #fff3ce);
    --accent-contrast: #211d10;
    --success: #8ecb9c;
    --danger: #ee9385;
    --warning: #f0ab68;
    --icon-color: #c7cdb7;
    --shadow-sm: 0 2px 8px rgba(7, 10, 5, .24);
    --shadow-md: 0 12px 32px rgba(7, 10, 5, .36);
    --shadow-lg: 0 24px 64px rgba(7, 10, 5, .48);
    --input-bg: #181d16;


  --bg: #10130f; --bg-soft: #151913; --surface: #1b201a; --surface-2: #252b22; --surface-hover: #30382b;
  --border: #cbd6ad17; --border-strong: #cbd6ad30;
  --text: #efefe2; --text-muted: #b1b8a5; --text-faint: #87917d; --icon-color: #b1b8a5;
  --input-bg: #151913; --atmo-grid: #cbd6ad07;
}
:root.site-atmosphere[data-theme][data-scheme=ocean]{--accent:#24a8dc;--accent-strong:#178abb;--accent-2:#48cabd;--accent-contrast:#071f2a}
/* Keep the selected destination calm and visible in every theme. */
.central-app .sidebar nav a:is(.active,.sidebar-switch),.site-atmosphere .client-console .client-nav .nav-item.active{background:color-mix(in srgb,var(--accent) 7%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 26%,var(--border));box-shadow:none;color:var(--text)}
.central-app .sidebar nav a.active::before,.site-atmosphere .client-console .client-nav .nav-item.active::after{box-shadow:none}
.venue-origin-marker{display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:16px;margin-left:8px;vertical-align:middle;color:var(--accent);opacity:.8}
.venue-origin-marker svg{width:15px;height:15px}
.client-console .client-nav .nav-item .venue-origin-marker{background:none;border:0;box-shadow:none;padding:0}
.client-console .client-main #tab-profile:not(.active){display:none}
.client-console .client-main #tab-profile.active{display:grid!important}

:root.site-atmosphere[data-theme][data-scheme=violet]{ --accent:#a785f3; --accent-strong:#8d68de; --accent-2:#d89ce4; --accent-contrast:#191025; }
:root.site-atmosphere[data-theme][data-scheme=emerald]{ --accent:#39bc96; --accent-strong:#229d7b; --accent-2:#81c9ae; --accent-contrast:#06261d; }
:root.site-atmosphere[data-theme][data-scheme=amber]{ --accent:#e5ad4f; --accent-strong:#cf922f; --accent-2:#dc7b48; --accent-contrast:#2d1d03; }
:root.site-atmosphere[data-theme][data-scheme=rose]{ --accent:#e47fa5; --accent-strong:#cc618c; --accent-2:#bf99ec; --accent-contrast:#2c0d1a; }
:root.site-atmosphere[data-theme][data-scheme=mono]{ --accent:#c3ccd7; --accent-strong:#a7b4c4; --accent-2:#909eaf; --accent-contrast:#111820; }
:root.site-atmosphere[data-theme=light][data-scheme=mono]{ --accent:#4f6177; --accent-strong:#3e5067; --accent-2:#798ba2; --accent-contrast:#fff; }
:root.site-atmosphere[data-theme=light][data-scheme=violet]{ --accent:#8052cb; --accent-strong:#6840b2; --accent-contrast:#fff; }
:root.site-atmosphere[data-theme=light][data-scheme=rose]{ --accent:#b84673; --accent-strong:#a03662; --accent-contrast:#fff; }
:root.site-atmosphere[data-theme=light][data-scheme=ocean]{ --accent:#077caa; --accent-strong:#04638b; --accent-contrast:#fff; }
:root.site-atmosphere[data-theme=light][data-scheme=emerald]{ --accent:#0b8666; --accent-strong:#066b50; --accent-contrast:#fff; }
:root.site-atmosphere[data-theme=light][data-scheme=amber]{ --accent:#a66a12; --accent-strong:#8b5507; --accent-contrast:#fff; }
:root.site-atmosphere[data-oled=on]:not([data-theme=light]){ --bg:#000; --bg-soft:#000; --surface:#070707; --surface-2:#101010; --surface-hover:#191919; --input-bg:#000; }
.account-workspace{--account-gap:20px;display:grid;gap:var(--account-gap);min-width:0}
.account-workspace .card,.client-console #tab-profile .panel,.client-console #tab-profile .card{box-sizing:border-box;padding:24px;border:1px solid var(--border);border-radius:20px;background:var(--surface);box-shadow:none;color:var(--text)}
.account-workspace .member-profile-hero{display:flex;align-items:center;gap:24px;margin:0}
.account-workspace .member-profile-avatar{display:grid;place-items:center;flex:0 0 80px;width:80px;height:80px;background:color-mix(in srgb,var(--accent) 10%,var(--surface));border:1px solid var(--border);border-radius:24px;color:var(--accent)}
.account-workspace .member-profile-avatar svg,.profile-role-icon{display:block;width:42px;height:42px}
.profile-role-icon{mask:var(--profile-icon) center/contain no-repeat;-webkit-mask:var(--profile-icon) center/contain no-repeat;background:currentColor}
.account-workspace .member-profile-hero h2{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:6px 0 12px;font-size:24px;line-height:1.3}
.account-workspace .member-profile-hero p{margin:6px 0;color:var(--text-muted);font-size:13px}
.account-workspace .eyebrow{font-size:11px;letter-spacing:.1em;color:var(--accent);text-transform:uppercase}
.account-workspace .subtabs{display:flex;flex-wrap:wrap;gap:8px;padding:6px;border:1px solid var(--border);border-radius:15px;background:var(--bg-soft);margin:0}
.account-workspace .subtabs>:is(a,button){display:flex;justify-content:center;align-items:center;flex:1 1 150px;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--text-muted);font:inherit;font-size:13px;text-decoration:none;cursor:pointer}
.account-workspace .subtabs>:is(a,button).active{color:var(--accent);border-color:var(--border-strong);background:var(--surface-2)}
.account-workspace .profile-facts,.client-console #tab-profile .profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 32px;margin:22px 0}
.account-workspace .profile-facts>div,.client-console #tab-profile .profile-facts>div{display:block;padding:0;border:0}
.account-workspace .profile-facts dt,.client-console #tab-profile .profile-facts dt{font-size:13px;color:var(--text-muted)}
.account-workspace .profile-facts dd,.client-console #tab-profile .profile-facts dd{margin:5px 0 0;font-size:16px;color:var(--text);overflow-wrap:anywhere}
.client-console #tab-profile .profile-section-head{display:none}
.client-console #tab-profile .content-grid{display:grid;grid-template-columns:1fr;gap:20px}
.client-console #tab-profile .profile-section{margin:0;min-width:0}
.client-console #tab-profile .profile-section>.panel+.panel{margin-top:20px}
.client-console #tab-profile .panel-head>div>span{display:none}
.client-console #tab-profile h2{font-size:20px;line-height:1.35;letter-spacing:-.025em;margin:0 0 12px}
.client-console #tab-profile .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}
.client-console #tab-profile :is(label,.muted,.perm small){font-size:13px;line-height:1.6;color:var(--text-muted)}
.client-console #tab-profile :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box;min-width:0;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--border-strong);border-radius:11px;background:var(--input-bg);color:var(--text);font:inherit;box-shadow:none}
.client-console #tab-profile :is(input,select,textarea):disabled{opacity:.75;-webkit-text-fill-color:var(--text);cursor:default}
.client-console #tab-profile .appearance-panel{display:grid;gap:18px}
.client-console #tab-profile .appearance-panel .scheme-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.client-console #tab-profile .appearance-panel .scheme-sw{padding:14px 8px;border-radius:14px;background:var(--surface-2);border:1px solid var(--border);color:var(--text);font-size:12px}
.client-console #tab-profile .appearance-panel .scheme-sw.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.client-console #tab-profile .session-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;align-items:end;gap:14px;margin:18px 0}
.client-console #tab-profile .session-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:var(--bg-soft)}
.client-console #tab-profile .session-device-icon{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--border);border-radius:11px;color:var(--session-tone)}
.client-console #tab-profile .session-content{min-width:0}.client-console #tab-profile .session-content header{display:flex;gap:6px 10px;align-items:center;flex-wrap:wrap;margin-bottom:5px}
.client-console #tab-profile .session-content h3{font-size:14px;margin:0;line-height:1.3;overflow-wrap:anywhere}.client-console #tab-profile .session-status{font-size:11px;color:var(--success)}
.client-console #tab-profile .session-status.inactive{color:var(--text-muted)}.client-console #tab-profile .session-facts{display:flex;flex-wrap:wrap;gap:3px 16px;font-size:12px;line-height:1.45;color:var(--text-muted)}
.client-console #tab-profile .profile-verification{display:inline-flex;align-items:center;padding:4px 9px;border:1px solid var(--border);border-radius:20px;color:var(--text-muted);font-size:11px}
.client-console #tab-profile .profile-verification.verified{color:var(--success);border-color:color-mix(in srgb,var(--success) 30%,var(--border))}
html[data-theme=light] :is(.central-app,.client-console) .notification-item[data-notification-source=central]{--notification-source:#077caa}
html[data-theme=light] :is(.central-app,.client-console) .notification-item[data-notification-source=organizer]{--notification-source:#8052cb}
@media(max-width:760px){.client-console #tab-profile .appearance-panel .scheme-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.client-console #tab-profile .session-filters{grid-template-columns:1fr 1fr}.account-workspace .subtabs{flex-wrap:nowrap;overflow-x:auto}.account-workspace .subtabs>:is(a,button){flex:1 0 max-content}}
@media(max-width:600px){.account-workspace .card,.client-console #tab-profile .panel,.client-console #tab-profile .card{padding:18px}.account-workspace .member-profile-hero{gap:14px;align-items:flex-start}.account-workspace .member-profile-avatar{width:56px;height:56px;flex-basis:56px;border-radius:18px}.account-workspace .member-profile-avatar svg,.profile-role-icon{width:30px;height:30px}.account-workspace .member-profile-hero h2{font-size:20px}.account-workspace .profile-facts,.client-console #tab-profile .profile-facts,.client-console #tab-profile .form-grid{grid-template-columns:1fr}.client-console #tab-profile .session-row{grid-template-columns:32px minmax(0,1fr) auto;gap:8px;padding:10px}.client-console #tab-profile .session-device-icon{width:32px;height:32px}.client-console #tab-profile .session-facts{font-size:11px}}

/* Identical notification sizing and controls in both web workspaces. */
:is(.central-app,.client-console) .notification-center{--notification-text-size:1rem}
:is(.central-app,.client-console) .notification-center :is(.notification-list,#notifications-list,#notifications-sent-list){width:100%;max-width:none;margin-inline:auto;display:grid;gap:14px}
:is(.central-app,.client-console) .notification-center .notification-item{width:100%;padding:20px!important;border-radius:18px;font-size:var(--notification-text-size);line-height:1.65;box-sizing:border-box}
:is(.central-app,.client-console) .notification-center .notification-body{font-size:var(--notification-text-size)!important;line-height:1.65!important;margin:0;color:var(--text);-webkit-line-clamp:3}
:is(.central-app,.client-console) .notification-center .notification-item.read .notification-body{color:var(--text-muted)}
:is(.central-app,.client-console) .notification-center .notification-origin{font-size:calc(var(--notification-text-size)*.8)!important;line-height:1.45}
:is(.central-app,.client-console) .notification-center .notification-date{font-size:calc(var(--notification-text-size)*.75)!important}
:is(.central-app,.client-console) .notification-center .notification-expiry{font-size:calc(var(--notification-text-size)*.75);line-height:1.5}
:is(.central-app,.client-console) .notification-center .notification-card-header{align-items:flex-start;margin-bottom:14px;gap:16px;flex-wrap:nowrap}
:is(.central-app,.client-console) .notification-center .notification-origin>span{overflow-wrap:anywhere}
:is(.central-app,.client-console) .notification-center .notification-origin>svg{width:16px;height:16px;flex:0 0 16px}
:is(.central-app,.client-console) .notification-center .notification-card-footer{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-top:16px}
:is(.central-app,.client-console) .notification-center .notification-card-footer .actions{display:flex;gap:8px;margin:0}
:is(.central-app,.client-console) .notification-center .notification-card-footer button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);color:var(--text);font-size:calc(var(--notification-text-size)*.82);line-height:1.35;cursor:pointer}
:is(.central-app,.client-console) .notification-center .notification-card-footer button svg{width:15px;height:15px;flex-shrink:0}
:is(.central-app,.client-console) .notification-center .notification-filterbar{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;align-items:stretch;gap:12px;margin-bottom:18px;width:100%;min-width:0}
:is(.central-app,.client-console) .notification-center .notification-categories{display:flex;width:100%;box-sizing:border-box;gap:4px;border:1px solid var(--border);border-radius:15px;background:var(--bg-soft);padding:5px;overflow-x:auto;max-width:100%}
:is(.central-app,.client-console) .notification-center .notification-categories>:is(a,button){flex:1 0 auto;border:1px solid transparent;border-radius:10px;padding:10px 12px;min-height:42px;background:transparent;color:var(--text-muted);font:inherit;font-size:13px;text-align:center;text-decoration:none}
:is(.central-app,.client-console) .notification-center .notification-categories>.active{color:var(--accent);border-color:var(--border-strong);background:var(--surface-2)}
@media(max-width:600px){:is(.central-app,.client-console) .notification-center .notification-item{padding:16px!important}:is(.central-app,.client-console) .notification-center .notification-card-header{gap:10px}:is(.central-app,.client-console) .notification-center .notification-date{white-space:normal;text-align:right;max-width:100px}:is(.central-app,.client-console) .notification-center .notification-card-footer{align-items:stretch}:is(.central-app,.client-console) .notification-center .notification-expiry{flex-basis:100%}}

.client-drone-inspection{box-sizing:border-box;width:min(1060px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--border);border-radius:20px;background:var(--surface);color:var(--text);overflow:auto}
.client-drone-inspection::backdrop{background:rgb(0 0 0 / .7)}
.client-drone-inspection header{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:20px}
.client-drone-inspection h2{margin:6px 0;font-size:1.5rem;overflow-wrap:anywhere}
.client-drone-inspection small{color:var(--accent);letter-spacing:.12em}
.client-drone-inspection button{min-height:40px;padding:8px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);color:var(--text);cursor:pointer}
.drone-inspection-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px}
.drone-inspection-model{height:360px;background:var(--surface-2);border:1px solid var(--border);border-radius:16px;overflow:hidden}
.drone-inspection-model canvas{width:100%;height:100%;display:block}
.drone-inspection-grid dl{margin:0}.drone-inspection-grid dl>div{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--border)}
.drone-inspection-grid dt{color:var(--muted)}.drone-inspection-grid dd{margin:0;text-align:right;overflow-wrap:anywhere;min-width:0}
.drone-inspection-controls{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:680px){.client-drone-inspection{padding:16px}.drone-inspection-grid{grid-template-columns:minmax(0,1fr)}.drone-inspection-model{height:280px}}
/* The central shell supplies navigation; the embedded venue document supplies one work section. */

