/* AURORA · One palette, every surface. Final layer for the existing app. */
:root { --r26-ease:cubic-bezier(.16,1,.3,1); --r26-radius-xl:30px; --r26-radius-lg:24px; --r26-radius-md:18px; --workspace-gutter:clamp(20px,2.15vw,44px); }
:root body {
 --r26-bg:#edf2fa;--r26-bg-2:#f5f2fb;--r26-surface:#fcfdff;--r26-surface-2:#f2f5fc;--r26-surface-3:#e8eef9;
 --r26-text:#25334e;--r26-muted:#62728b;--r26-faint:#7c899e;--r26-line:#dce3f0;--r26-line-strong:#bfcde4;
 --r26-accent:#566bcc;--r26-accent-2:#3c50ad;--r26-accent-soft:#e9edff;--r26-green:#25775f;
 --aura-a:#d9dffc;--aura-b:#f2dce8;--aura-c:#d7edef;--r26-translucent-panel:rgba(255,255,255,.74);
 --r26-shadow-xs:0 2px 3px #28365a04,0 0 0 1px #ffffff70 inset;
 --r26-shadow-sm:0 8px 25px -10px #3b4c762a,0 1px 1px #ffffffc9 inset;
 --r26-shadow-md:0 22px 65px -22px #3b4c7640,0 1px 1px #ffffffe0 inset;
 --r26-ring:0 0 0 4px color-mix(in srgb,var(--r26-accent) 16%,transparent);
 font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif!important;
 background:var(--r26-bg)!important;color:var(--r26-text)!important;letter-spacing:-.012em;
}
:root[data-theme="dawn"] body {--r26-bg:#f5edf5;--r26-bg-2:#edf0fc;--r26-surface:#fffbff;--r26-surface-2:#f4edf8;--r26-surface-3:#ece2f4;--r26-accent:#8563aa;--r26-accent-2:#69468e;--r26-accent-soft:#eee4f5;--aura-a:#e5d4f6;--aura-b:#f7ddd9;--aura-c:#e0eafa;--r26-text:#493951;--r26-muted:#7a6781;--r26-line:#e4d9ea;}
:root[data-theme="noon"] body {--r26-bg:#eaf3f8;--r26-bg-2:#edf5fa;--r26-surface:#fbfeff;--r26-surface-2:#edf6fa;--r26-surface-3:#e1eff5;--r26-accent:#347cb0;--r26-accent-2:#245f89;--r26-accent-soft:#e1f0fa;--aura-a:#cce7fa;--aura-b:#e4e5fb;--aura-c:#d5eee9;}
:root[data-theme="sunset"] body {
 --r26-bg:#f6e8e3;--r26-bg-2:#eee5f4;--r26-surface:#fff8f5;--r26-surface-2:#f7ebe9;--r26-surface-3:#efdedf;
 --r26-text:#51363f;--r26-muted:#85636c;--r26-faint:#98717c;--r26-line:#ead2d1;--r26-line-strong:#d9b7bd;
 --r26-accent:#af586e;--r26-accent-2:#914359;--r26-accent-soft:#f5dce3;--r26-green:#477c66;
 --aura-a:#f1c1b3;--aura-b:#dac8ec;--aura-c:#f8d9b0;--r26-translucent-panel:rgba(255,248,245,.78);
}
:root[data-theme="night"] body,:root[data-theme="midnight"] body {
 --r26-bg:#182033;--r26-bg-2:#25253c;--r26-surface:#252e45;--r26-surface-2:#2c3650;--r26-surface-3:#35405b;
 --r26-text:#edf0ff;--r26-muted:#b0bad3;--r26-faint:#96a3c3;--r26-line:#404b65;--r26-line-strong:#647293;
 --r26-accent:#b2beff;--r26-accent-2:#cdd5ff;--r26-accent-soft:#3d466e;--r26-green:#86d5b5;
 --aura-a:#303f6a;--aura-b:#453757;--aura-c:#254959;--r26-translucent-panel:rgba(34,43,64,.83);
 --r26-shadow-xs:0 1px 1px #ffffff09 inset;--r26-shadow-sm:0 10px 25px -12px #0007,0 1px 1px #ffffff12 inset;--r26-shadow-md:0 24px 60px -15px #0008,0 1px 1px #ffffff18 inset;
 color-scheme:dark;
}
:root[data-theme="midnight"] body {--r26-bg:#14182b;--r26-bg-2:#1c1932;--r26-surface:#22243c;--r26-surface-2:#292c49;--r26-accent:#c0b5f7;--aura-a:#2c2b55;--aura-b:#392c50;--aura-c:#202e48;}
:root[data-theme="glass"] body {
 --r26-bg:#cfd4d5;--r26-bg-2:#e7e9e8;--r26-surface:#f7f8f6;--r26-surface-2:#ecefed;--r26-surface-3:#dfe4e2;
 --r26-text:#1d292d;--r26-muted:#617074;--r26-faint:#7c898c;--r26-line:rgba(76,91,96,.16);--r26-line-strong:rgba(64,80,86,.28);
 --r26-accent:#536f72;--r26-accent-2:#405b5e;--r26-accent-soft:#dfe8e7;--r26-green:#3e7666;
 --aura-a:#bbc5c6;--aura-b:#ddd4c8;--aura-c:#bfced0;--r26-translucent-panel:rgba(243,246,245,.78);
 --r26-shadow-xs:0 1px 0 rgba(255,255,255,.66) inset,0 4px 12px rgba(55,65,68,.05);
 --r26-shadow-sm:0 12px 34px rgba(55,65,68,.09),0 1px 0 rgba(255,255,255,.72) inset;
 --r26-shadow-md:0 24px 66px rgba(48,58,62,.15),0 1px 0 rgba(255,255,255,.76) inset;
 --r26-ring:0 0 0 4px rgba(83,111,114,.16);
 --glass-chrome:rgba(239,243,242,.72);
 --glass-chrome-strong:rgba(247,249,248,.82);
 --glass-content:#f7f7f4;
 --glass-content-2:#eceeeb;
 --glass-specular:rgba(255,255,255,.76);
 --glass-edge:rgba(65,81,86,.17);
 --glass-shadow:0 18px 52px rgba(52,62,66,.14),inset 0 1px 0 rgba(255,255,255,.78),inset 0 -1px 0 rgba(70,84,88,.07);
 color-scheme:light;
}
:root:not([data-theme="night"]):not([data-theme="midnight"]) body {color-scheme:light;}
/* Map all earlier design generations onto the same semantic palette. */
:root:root body {
 --bg:var(--r26-bg);--panel:var(--r26-translucent-panel);--panel-strong:var(--r26-surface);--panel-soft:var(--r26-surface-2);--line:var(--r26-line);--ink:var(--r26-text);--muted:var(--r26-muted);--navy:var(--r26-text);--blue:var(--r26-accent);--blue2:var(--r26-accent-2);--pale:var(--r26-surface-2);--accent:var(--r26-accent);
 --rx-ink:var(--r26-text);--rx-muted:var(--r26-muted);--rx-glass:var(--r26-translucent-panel);--rx-glass-strong:var(--r26-surface);--rx-line:var(--r26-line);--rx-accent:var(--r26-accent);--rx-shadow-soft:var(--r26-shadow-sm);
 --v3-ink:var(--r26-text);--v3-text:var(--r26-text);--v3-muted:var(--r26-muted);--v3-surface:var(--r26-surface);--v3-surface-soft:var(--r26-surface-2);--v3-border:var(--r26-line);--v3-accent:var(--r26-accent);
 --admin-panel:var(--r26-surface);--admin-surface:var(--r26-surface);--admin-surface-2:var(--r26-surface-2);--admin-border:var(--r26-line);--admin-accent:var(--r26-accent);--admin-accent-soft:var(--r26-accent-soft);
 --br-border:var(--r26-line);--br-content:var(--r26-surface);--assistente-control-ink:var(--r26-text);--assistente-control-ink-strong:var(--r26-text);
 --surface-shadow:var(--r26-shadow-sm);--control-shadow:var(--r26-shadow-xs);--shadow:var(--r26-shadow-md);--focus-ring:var(--r26-ring);--grerj-calc-width:280px;
}
*{box-sizing:border-box} [hidden]{display:none!important}
:root body .ambient-bg {z-index:-1!important;mask-image:none!important;-webkit-mask-image:none!important;background:radial-gradient(ellipse at 6% 6%,var(--aura-a),transparent 48%),radial-gradient(ellipse at 100% 32%,var(--aura-b),transparent 48%),radial-gradient(ellipse at 46% 98%,var(--aura-c),transparent 52%),var(--r26-bg)!important;background-size:auto!important;}
html[data-theme="glass"] body .ambient-bg{
  background:
    linear-gradient(118deg,rgba(255,255,255,.22) 0 11%,transparent 26% 58%,rgba(255,255,255,.16) 73%,transparent 88%),
    radial-gradient(980px 680px at 4% 4%,rgba(179,192,194,.76),transparent 62%),
    radial-gradient(900px 660px at 96% 12%,rgba(224,214,201,.62),transparent 64%),
    radial-gradient(1040px 720px at 66% 104%,rgba(181,199,201,.62),transparent 63%),
    linear-gradient(145deg,#cbd1d2 0%,#e7e9e7 45%,#d1d6d6 100%)!important;
  background-size:auto!important;
}
:root body button,:root body input,:root body textarea,:root body select{font-family:inherit!important;}
:root body :is(button,a,input,select,textarea):focus-visible {outline:3px solid var(--r26-accent)!important;outline-offset:3px!important;}
:root body button{transition:background .18s,box-shadow .22s,transform .22s var(--r26-ease),color .18s!important;}
@media(hover:hover){:root body button:not(:disabled):hover{transform:translateY(-1px)}:root body .directory-card:hover{box-shadow:var(--r26-shadow-md);transform:translateY(-3px);}}
:root body button:not(:disabled):active{transform:scale(.97)!important}
:root body button:disabled{cursor:default;opacity:.5}
:root body .app-header {width:100%!important;margin:0!important;padding:0!important;background:color-mix(in srgb,var(--r26-translucent-panel) 94%,var(--r26-surface))!important;border:0!important;border-bottom:1px solid var(--r26-line)!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:blur(22px) saturate(125%)!important;-webkit-backdrop-filter:blur(22px) saturate(125%)!important;position:sticky!important;top:0!important;z-index:1000!important;}
:root body .app-header .header-inner {width:100%!important;max-width:none!important;min-height:70px!important;height:70px!important;margin:0!important;padding:0 var(--workspace-gutter)!important;border:0!important;border-radius:0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;gap:10px!important;}
:root body .app-header .mark{width:42px!important;height:42px!important;border-radius:15px!important;background:linear-gradient(145deg,var(--r26-accent-soft),var(--r26-surface))!important;box-shadow:var(--r26-shadow-sm)!important;}
:root body .app-header .module-nav {height:auto!important;align-items:center!important;gap:3px!important;margin-left:10px!important;min-width:0!important;}
:root body .app-header .module-nav .module-btn {min-height:38px!important;height:38px!important;border-radius:12px!important;padding:0 12px!important;font-weight:600!important;font-size:12px!important;white-space:nowrap!important;}
:root body .app-header .module-nav .module-btn.active {background:var(--r26-surface)!important;box-shadow:var(--r26-shadow-sm)!important;color:var(--r26-accent)!important;}
:root body .app-header .module-nav .module-btn.active:after {display:none!important}
:root body .app-header .module-nav .module-btn:hover {background:var(--r26-accent-soft)!important;}
:root body .app-header :is(.theme-btn,.mute-btn,.admin-btn,.header-logout,.profile-orb){border-radius:13px!important;background:var(--r26-surface)!important;border-color:var(--r26-line)!important;box-shadow:var(--r26-shadow-xs)!important;}
:root body :is(.theme-menu,.profile-hover-card){border-radius:22px!important;background:var(--r26-surface)!important;box-shadow:var(--r26-shadow-md)!important;padding:14px!important;}
:root body .theme-option{border-radius:12px!important;padding:10px!important;}
:root body .theme-option.active{background:var(--r26-accent-soft)!important}

/* ==========================================================================
   STRUCTURAL CANVAS · internal workspaces use the viewport, not a centered site
   ========================================================================== */
:root:root body:not(.app-home) :is(.workspace-overview,.kb-page,.directory-page,.profile-interface){
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  min-height:0;
}
:root:root body:not(.app-home) .workspace-overview{
  padding:24px var(--workspace-gutter) 0!important;
  height:auto!important;
  background:transparent!important;
}
:root:root body:not(.app-home) .workspace-overview-inner{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  min-height:124px!important;
}
:root:root body:not(.app-home) main.shell.rx-module-workspace{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:14px var(--workspace-gutter) 72px!important;
}
:root:root body:not(.app-home) .kb-page{
  padding:24px var(--workspace-gutter) 84px!important;
}
:root:root body:not(.app-home) .kb-frame{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
:root:root body:not(.app-home) .directory-page{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:24px var(--workspace-gutter) 72px!important;
}
:root:root body.profile-view .profile-interface{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:24px var(--workspace-gutter) 84px!important;
}
:root:root body.profile-view .profile-interface-inner{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
:root:root body.chat-open #chatPanel.chat2-panel,
:root:root body.chat-open #chatPanel.chat2-panel.chat2-compact{
  top:calc(70px + var(--workspace-gutter))!important;
  right:var(--workspace-gutter)!important;
  bottom:var(--workspace-gutter)!important;
  left:var(--workspace-gutter)!important;
  width:auto!important;
  max-width:none!important;
  height:auto!important;
  max-height:none!important;
  transform:none!important;
}
:root:root body.chat-open #utilityDock{
  right:var(--workspace-gutter)!important;
}

/* Keep the content flow explicit: header → intentional gap → hero → content. */
:root:root body:not(.app-home) :is(#mainContent,.workspace-overview,.kb-page,.directory-page,.profile-interface){
  margin-top:0!important;
}
:root body .home-workspace{max-width:1360px!important;padding:32px 30px 60px!important;}
:root body .home-main{gap:22px!important;}
:root body .command-hero{padding:48px!important;border-radius:34px!important;position:relative;overflow:hidden;background:linear-gradient(115deg,var(--r26-translucent-panel) 30%,color-mix(in srgb,var(--aura-a) 50%,var(--r26-surface)))!important;box-shadow:var(--r26-shadow-md)!important;border:1px solid color-mix(in srgb,var(--r26-surface) 65%,var(--r26-line))!important;}
:root body .command-hero:after{content:""!important;position:absolute!important;width:260px!important;height:260px!important;right:-50px!important;top:-75px!important;border:35px solid color-mix(in srgb,var(--r26-surface) 44%,transparent)!important;border-radius:50%!important;box-shadow:0 0 0 34px color-mix(in srgb,var(--r26-surface) 20%,transparent)!important;pointer-events:none!important;background:none!important;opacity:.7!important;}
:root body .command-hero>div{position:relative;z-index:1;}
:root body #homeTypedTitle{font-size:clamp(40px,4.5vw,66px)!important;line-height:1.04!important;letter-spacing:-.055em!important;font-weight:730!important;margin:28px 0!important;color:var(--r26-text)!important;}
:root body #homeTypedTitle .name{color:var(--r26-accent)!important;background:none!important;-webkit-text-fill-color:var(--r26-accent)!important;}
:root body .rx-eyebrow{font-size:10px!important;letter-spacing:.16em!important;font-weight:700!important;color:var(--r26-muted)!important;}
:root body .bob-spotlight {border:0!important;border-radius:18px!important;background:color-mix(in srgb,var(--r26-surface) 65%,transparent)!important;box-shadow:var(--r26-shadow-xs)!important;padding:13px 16px!important;max-width:850px!important;}
:root body .bob-orb {border-radius:13px!important;box-shadow:var(--r26-shadow-sm)!important;background:var(--r26-accent-soft)!important;color:var(--r26-accent)!important;}
:root body .rx-command-input{border-radius:17px!important;background:var(--r26-surface)!important;box-shadow:var(--r26-shadow-sm)!important;border-color:var(--r26-line)!important;}
:root body .rx-action-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;margin-top:24px!important;}
:root body .rx-action{border-radius:20px!important;background:var(--r26-translucent-panel)!important;padding:19px!important;min-height:135px!important;border:1px solid color-mix(in srgb,var(--r26-line) 70%,transparent)!important;box-shadow:var(--r26-shadow-sm)!important;}
:root body .rx-action.primary{background:var(--r26-accent-soft)!important;}
:root body .rx-action-icon{width:36px!important;height:36px!important;border-radius:12px!important;background:var(--r26-surface)!important;border:0!important;box-shadow:var(--r26-shadow-xs)!important;font-size:19px!important;}
:root body .rx-action strong{font-size:13px!important;margin-top:12px!important;font-weight:650!important;}
:root body .rx-action small{line-height:1.45!important;font-size:11px!important;}
:root body :is(.rx-panel,.rx-stat-grid,.rx-section,.workspace-overview-inner,.rx-module-controls,.rx-module-side,.kb-hero,.kb-toolbar,.kb-detail-card,.kb-card,.guide-card,.mural-card,.mural-post){background:var(--r26-translucent-panel)!important;border:1px solid var(--r26-line)!important;border-radius:24px!important;box-shadow:var(--r26-shadow-sm)!important;color:var(--r26-text)!important;}
:root body .rx-stat-grid{gap:0!important;overflow:hidden!important;}
:root body .rx-stat{background:transparent!important;border:0!important;border-right:1px solid var(--r26-line)!important;box-shadow:none!important;border-radius:0!important;padding:22px 26px!important;}
:root body .rx-stat:last-child{border:0!important}
:root body .rx-stat strong{font-size:27px!important;letter-spacing:-.045em!important;}
:root body .rx-empty{border:1px dashed var(--r26-line-strong)!important;border-radius:17px!important;background:var(--r26-surface-2)!important;}
:root body .workspace-overview-inner{padding:28px 32px!important;margin-top:0!important;}
:root body .workspace-overview h1,:root body .kb-hero h1{font-size:36px!important;letter-spacing:-.045em!important;font-weight:700!important;color:var(--r26-text)!important;}
:root body .workspace-eyebrow{color:var(--r26-accent)!important;letter-spacing:.16em!important;font-size:10px!important;}
:root body main.shell.rx-module-workspace{gap:24px!important;padding-bottom:65px!important;min-width:0!important;}
:root body .rx-module-controls{padding:16px!important;}
:root body .searchwrap input{border-radius:16px!important;background:var(--r26-surface)!important;box-shadow:var(--r26-shadow-xs)!important;border-color:var(--r26-line)!important;}
:root body :is(.tabs button,.cats button,.search-options label,.kb-filter-btn,.library-section-btn,.guide-category-btn){border-radius:12px!important;color:var(--r26-muted)!important;}
:root body :is(.tabs button.active,.cats button.active,.kb-filter-btn.active,.library-section-btn.active){color:var(--r26-accent)!important;background:var(--r26-accent-soft)!important;box-shadow:var(--r26-shadow-xs)!important;border-color:var(--r26-line)!important;}
:root body .card{border-radius:24px!important;background:var(--r26-surface)!important;border:1px solid var(--r26-line)!important;box-shadow:var(--r26-shadow-sm)!important;overflow:hidden!important;}
:root body .cardhead{background:color-mix(in srgb,var(--r26-accent-soft) 50%,var(--r26-surface))!important;padding:21px 24px!important;border-color:var(--r26-line)!important;}
:root body .card .title{font-weight:650!important;color:var(--r26-text)!important;}
:root body .card .body{padding:24px!important;color:var(--r26-text)!important;line-height:1.8!important;}
:root body :is(.tag,.tag.light,.kb-mini-tag){background:var(--r26-accent-soft)!important;border-color:var(--r26-line)!important;color:var(--r26-accent)!important;border-radius:8px!important;}
:root body :is(.ui-action,.copy-action,.workspace-action,.dispense-btn,.secondary){border-radius:12px!important;background:var(--r26-surface)!important;color:var(--r26-text)!important;border-color:var(--r26-line)!important;box-shadow:var(--r26-shadow-sm)!important;}
/* Admin, profile, conversations and all utility panels share these same materials. */
:root:root body :is(.panel,.profile-panel,.profile-card,.profile-interface-inner,.profile-summary,.profile-section,.admin-main,.admin-content,.admin-workspace,.admin-card,.grerj-create-card,.auth-card,.mural-editor-card,.chat-panel,.bob-panel,.mini-calc-panel,.chat2-sidebar,.chat2-main,.chat2-directory){background:var(--r26-surface)!important;color:var(--r26-text)!important;border-color:var(--r26-line)!important;border-radius:24px!important;box-shadow:var(--r26-shadow-md)!important;}
:root:root body :is(.admin-dock,.chat-head,.chat-header,.chat2-header,.chat2-toolbar,.chat2-compose,.bob-head,.bob-compose,.profile-interface-nav,.panel-head){background:var(--r26-surface-2)!important;color:var(--r26-text)!important;border-color:var(--r26-line)!important;}
:root:root body :is(.admin-tab-copy small,.profile-meta,.chat-preview,.chat2-preview,.chat-subtitle,.bob-subtitle){color:var(--r26-muted)!important;}
:root:root body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),textarea,select){background-color:var(--r26-surface)!important;color:var(--r26-text)!important;border-color:var(--r26-line-strong)!important;border-radius:12px!important;max-width:100%;min-width:0;}
:root:root body input::placeholder,:root:root body textarea::placeholder{color:var(--r26-muted)!important;opacity:.8;}
:root:root body :is(.chat-bubble,.chat2-bubble,.bob-bubble,.message-bubble){background:var(--r26-surface-2)!important;color:var(--r26-text)!important;border-color:var(--r26-line)!important;border-radius:18px!important;box-shadow:var(--r26-shadow-xs)!important;}
:root:root body :is(.chat-message.mine,.chat2-message.mine,.message.own) :is(.chat-bubble,.chat2-bubble,.message-bubble){background:var(--r26-accent-soft)!important;}
:root:root body :is(.grerj-hero,.grerj-card,.grerj-summary,.grerj-certificate){background:var(--r26-surface)!important;border-radius:24px!important;border-color:var(--r26-line)!important;box-shadow:var(--r26-shadow-sm)!important;color:var(--r26-text)!important;}
:root:root body .grerj-row{background:transparent!important;border-radius:0!important;color:var(--r26-text)!important;border-color:var(--r26-line)!important;box-shadow:none!important;}
:root:root body .grerj-head{background:var(--r26-surface-2)!important;color:var(--r26-muted)!important;}
:root:root body .calc-box{background:var(--r26-accent-soft)!important;border-radius:16px!important;color:var(--r26-text)!important;min-width:0!important;}
:root body .calc-box strong{overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
:root body .ref-rubric-note{display:block;font-size:10px;line-height:1.5;font-weight:400;color:var(--r26-muted);margin-top:6px;max-width:320px;}
:root body .ref-tax-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;grid-column:1/-1;}
:root body .ref-tax-fields [data-tax-when]{display:contents;}
:root body .ref-tax-fields [data-tax-when][hidden]{display:none!important;}
:root body .ref-memory{margin:18px 0 0;padding:15px 18px;border-radius:15px;background:var(--r26-accent-soft);font-size:12px;line-height:1.65;color:var(--r26-text);}
:root body .tax-formula details{margin-top:14px} :root body summary{cursor:pointer;color:var(--r26-accent);font-weight:600}
:root body .grerj-shell,.rx-module-main,.cards,.tax-grid,.grerj-calc-dock{min-width:0!important;}
:root body .grerj-calc-dock{width:100%!important;max-width:300px!important;}
:root:root body .mini-calc-panel{width:min(310px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;box-sizing:border-box!important;padding:18px!important;overflow-x:hidden!important;overflow-y:auto!important;max-height:calc(100dvh - 110px)!important;}
:root:root body.grerj-calc-docked #miniCalcPanel{width:100%!important;max-width:100%!important;min-width:0!important;position:relative!important;inset:auto!important;}
:root:root body #miniCalcDisplay{width:100%!important;min-width:0!important;max-width:100%!important;height:74px!important;text-align:right!important;font-weight:400!important;letter-spacing:-.04em!important;padding:10px!important;box-sizing:border-box!important;font-variant-numeric:tabular-nums;box-shadow:none!important;overflow-x:auto!important;}
:root body .mini-calc-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;width:100%!important;}
:root body .mini-calc-key{border-radius:15px!important;height:48px!important;min-width:0!important;background:var(--r26-surface-2)!important;color:var(--r26-text)!important;font-size:20px!important;box-shadow:var(--r26-shadow-xs)!important;border-color:var(--r26-line)!important;}
:root body .mini-calc-key.op{background:var(--r26-accent-soft)!important;color:var(--r26-accent)!important;}
:root body .mini-calc-key.equal{background:var(--r26-accent)!important;color:var(--r26-surface)!important;}
:root body .calc-history{font-size:11px;color:var(--r26-muted);overflow-wrap:anywhere;max-height:48px;overflow:auto;text-align:right;margin:8px 0;}
:root body .calc-error{font-size:11px;line-height:1.4;color:var(--r26-red);min-height:15px;margin:5px 0;}
:root body .calc-utilities{display:flex;gap:8px;margin-top:10px;}
:root body .calc-utilities button{border:1px solid var(--r26-line);border-radius:10px;background:var(--r26-surface-2);color:var(--r26-text);padding:8px;font-size:11px;}
:root body .calc-utilities button:last-child{flex:1;}
/* Communication & Mandates */
:root body.app-directory :is(main.shell,#workspaceOverview,#homeView){display:none!important;}
:root body .directory-page{width:100%;max-width:none;padding:24px var(--workspace-gutter) 72px;margin:0;color:var(--r26-text);}
.directory-hero{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:34px 38px;border-radius:28px;background:var(--r26-translucent-panel);border:1px solid var(--r26-line);box-shadow:var(--r26-shadow-sm);}
.directory-hero h1{font-size:40px;letter-spacing:-.045em;color:var(--r26-text);font-weight:700;margin:9px 0 12px;}
.directory-hero p{font-size:14px;color:var(--r26-muted);margin:0;line-height:1.6;}
.directory-symbol{display:grid;place-items:center;width:96px;height:96px;font-size:45px;border-radius:30px;background:linear-gradient(140deg,var(--r26-surface),var(--r26-accent-soft));box-shadow:var(--r26-shadow-sm);transform:rotate(-7deg);flex-shrink:0;}
.directory-toolbar{margin-top:22px;padding:18px;border-radius:23px;border:1px solid var(--r26-line);background:var(--r26-translucent-panel);box-shadow:var(--r26-shadow-sm);}
.directory-search-row{display:flex;gap:14px;align-items:end;}
.directory-search{display:flex;align-items:center;gap:13px;flex:1;min-width:0;padding:0 17px;border:1px solid var(--r26-line-strong);border-radius:14px;background:var(--r26-surface);}
.directory-search>span{font-size:25px;color:var(--r26-accent);}
:root body #directorySearch{height:48px;background:transparent!important;border:0!important;box-shadow:none;width:100%;font-size:14px;}
.directory-filter{display:flex;flex-direction:column;gap:4px;min-width:170px;max-width:270px;font-size:10px;color:var(--r26-muted);}
.directory-filter select{height:48px;border:1px solid var(--r26-line);padding:0 12px;font-size:13px;}
.directory-page button{border:1px solid var(--r26-line);border-radius:11px;padding:10px 14px;color:var(--r26-accent);background:var(--r26-surface);font-size:12px;font-weight:600;cursor:pointer;}
#directoryClear{height:48px;}
.directory-tabs{display:flex;gap:9px;margin-bottom:16px;flex-wrap:wrap}.directory-tabs:empty{display:none;}
.directory-tabs button.active{background:var(--r26-accent-soft);box-shadow:var(--r26-shadow-xs);}
.directory-tabs span{opacity:.7;font-size:10px;margin-left:8px;}
.directory-results-head{display:flex;justify-content:space-between;gap:10px;color:var(--r26-muted);font-size:11px;margin:26px 3px 15px;}
.directory-results-head>span:first-child{font-weight:650;}
.directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start;}
.directory-card{padding:23px;border:1px solid var(--r26-line);border-radius:24px;background:var(--r26-translucent-panel);box-shadow:var(--r26-shadow-sm);min-width:0;transition:transform .3s var(--r26-ease),box-shadow .3s;}
.directory-card-heading{display:flex;align-items:start;gap:13px;margin-bottom:22px;}
.directory-icon{display:grid;place-items:center;width:43px;height:43px;flex-shrink:0;font-size:23px;background:var(--r26-surface);border-radius:14px;box-shadow:var(--r26-shadow-xs);}
.directory-label{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--r26-muted);}
.directory-card h2{font-size:14px;line-height:1.5;margin:5px 0 0;color:var(--r26-text);font-weight:650;overflow-wrap:anywhere;}
.directory-email{display:flex;gap:8px;align-items:center;justify-content:space-between;border-top:1px solid var(--r26-line);padding:11px 0;}
.directory-email a{font-size:12px;line-height:1.5;overflow-wrap:anywhere;color:var(--r26-accent);text-decoration:none;}
.directory-email a:hover{text-decoration:underline}
.directory-email button{padding:6px 9px;font-size:10px;flex-shrink:0;}
.directory-note{font-size:11px;line-height:1.6;color:var(--r26-muted);overflow-wrap:anywhere;margin:8px 0;}
.directory-provenance{font-size:10px;line-height:1.7;color:var(--r26-muted);margin-top:12px;}
.directory-provenance summary{font-weight:400;color:var(--r26-muted);}
.directory-facts{font-size:12px;margin-bottom:15px;}.directory-facts>div{display:flex;gap:12px;justify-content:space-between;padding:6px 0;}.directory-facts dt{color:var(--r26-muted);}.directory-facts dd{margin:0;text-align:right;}
.forum-card .directory-address{font-size:12px;line-height:1.6;color:var(--r26-muted);}
.forum-areas section{margin-top:20px;padding-top:16px;border-top:1px solid var(--r26-line);}
.forum-areas h3{font-size:12px;font-weight:600;margin:0 0 7px;color:var(--r26-text);}
.forum-areas p{font-size:12px;color:var(--r26-muted);line-height:1.7;margin:0;}
.directory-pagination{display:flex;gap:20px;align-items:center;justify-content:center;margin:30px 0;font-size:12px;color:var(--r26-muted);}
.directory-source{font-size:11px;color:var(--r26-muted);line-height:1.6;margin-top:24px;}
.directory-empty{grid-column:1/-1;text-align:center;padding:60px 20px;border:1px dashed var(--r26-line-strong);border-radius:24px;background:var(--r26-translucent-panel);}.directory-empty>span{font-size:40px;color:var(--r26-accent)}.directory-empty h2{font-size:20px;color:var(--r26-text);}.directory-empty p{font-size:13px;color:var(--r26-muted);}
/* Motion: spring-like entrances, soft feedback, no layout-shifting idle motion. */
@keyframes aurora-enter{from{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:none}}
:root body :is(.card-enter,.directory-card){animation:aurora-enter .4s var(--r26-ease) both!important;}
:root body .directory-card:nth-child(3n+2){animation-delay:35ms!important;}:root body .directory-card:nth-child(3n){animation-delay:70ms!important;}
:root body :is(.chat-panel,.bob-panel,.mini-calc-panel,.theme-menu){transition:opacity .2s,transform .3s var(--r26-ease),visibility .2s!important;}
:root body .b-drop{color:var(--r26-accent)!important;text-shadow:0 4px 15px color-mix(in srgb,var(--r26-accent) 25%,transparent)!important;}
/* Preserve row density, but the responsive GRERJ workspace owns column sizing. */
@media(min-width:1200px){:root body.grerj-calc-docked .grerj-row{grid-template-columns:minmax(110px,1.2fr) 58px minmax(76px,.7fr) 45px minmax(85px,.8fr) 65px minmax(85px,.8fr)!important;gap:8px!important;padding:14px 10px!important;font-size:11px!important;}}
@media(max-width:1250px){:root body .app-header .brand-wrap{min-width:105px!important;}:root body .app-header .module-nav .module-btn{padding:0 8px!important;font-size:11px!important;}:root body .app-header .header-inner{gap:6px!important;}.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));}:root body .rx-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:1000px){:root body .app-header .header-inner{flex-wrap:nowrap!important;height:64px!important;min-height:64px!important;}:root body .app-header .module-nav{order:initial!important;width:auto!important;flex:1 1 auto!important;margin:0 0 0 6px!important;overflow-x:auto!important;overflow-y:hidden!important;justify-content:flex-start!important;max-width:none!important;padding:0!important;scrollbar-width:none!important;}:root body .app-header .module-nav::-webkit-scrollbar{display:none!important;}:root body .header-actions{margin-left:auto!important;flex:0 0 auto!important;}:root body .app-header .spacer{display:none!important;}:root body .app-header .module-nav .module-btn{flex:0 0 auto!important;font-size:11px!important;}:root body .app-header{padding:0!important;}:root body .rx-module-side{top:78px!important;}:root body .command-hero{padding:32px!important;}}
@media(max-width:640px){:root body .home-workspace,:root body .directory-page{padding:22px 14px 50px!important;}:root body .command-hero{padding:26px 22px!important;border-radius:26px!important;}:root body #homeTypedTitle{font-size:43px!important;}:root body .rx-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}:root body .rx-action{padding:15px!important;min-height:126px!important;}:root body .rx-action:last-child{grid-column:1/-1;min-height:105px!important;}:root body .rx-stat{padding:18px!important;}:root body .workspace-overview-inner{padding:22px!important;}:root body .cardhead{padding:17px!important;gap:10px!important;}:root body .card .body{padding:18px!important;}:root body .ref-tax-fields{grid-template-columns:1fr;}.directory-hero{padding:25px 22px;}.directory-hero h1{font-size:32px;}.directory-symbol{display:none;}.directory-search-row{flex-wrap:wrap;}.directory-search{flex-basis:100%;}.directory-filter{flex:1;max-width:none;min-width:0;}.directory-grid{grid-template-columns:1fr;}.directory-results-head>span:last-child{display:none;}.directory-card{padding:21px;}:root body .mini-calc-panel{right:12px!important;bottom:82px!important;} :root body .ref-rubric-note{max-width:none;}}
@media(prefers-reduced-motion:reduce){:root body *,:root body *:before,:root body *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}:root body .b-drop{position:relative!important;display:inline-block!important;left:auto!important;top:100px!important;margin:8px!important;}:root body .b-rain{text-align:center!important;}}
/* Final legacy cascade reconciliation. */
:root:root body .home-actions {grid-template-columns:repeat(5,minmax(0,1fr))!important;}
:root:root body :is(.lab-grerj-live,.tax-formula,.tax-guidance-note,.grerj-special-note,.cert-preview.waiting){background:var(--r26-surface-2)!important;color:var(--r26-muted)!important;border-color:var(--r26-line)!important;border-radius:16px!important;}
:root:root body .grerj-warning{background:var(--r26-accent-soft)!important;color:var(--r26-text)!important;border:1px solid var(--r26-line)!important;border-radius:16px!important;}
:root:root body :is(.mini-calc-head,.mini-calc-head b,.calc-box strong,.grerj-result.wait,.tax-code,.summary-state){color:var(--r26-text)!important;}
:root:root body .grerj-row .dispense-btn{font-size:10px!important;padding:7px!important;min-width:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;}
:root:root body .rx-action strong,:root:root body .module-btn{font-weight:600!important;}
/* Motion v4 owns the active navigation indicator; do not hide it in Aurora. */
@media(max-width:1100px){:root:root body .home-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:640px){:root:root body .home-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
:root:root body #homeUniversalSearch{font-weight:500!important;}
:root:root body :is(.profile-hero-v2,.profile-box-v2,.profile-session-v2,.formbox,.admin-view-hero,.chat2-shell,.chat2-thread,.chat2-empty,.chat2-sidebar-head,.chat2-thread-head,.chat2-composer,.chat2-input-box,.chat2-bubble,.bob-message){background:var(--r26-surface)!important;color:var(--r26-text)!important;border-color:var(--r26-line)!important;}
:root:root body :is(.chat2-sidebar-head,.chat2-thread-head,.chat2-composer,.profile-box-title,.formbox .admin-section-head){background:var(--r26-surface-2)!important;}
:root:root body :is(.chat2-shell,.chat2-thread,.profile-hero-v2,.profile-box-v2){border-radius:22px!important;}
:root:root body :is(.tax-formula,.tax-guidance-note,.ref-memory){font-weight:400!important;}
/* A stable utility dock; no shifting panel edges or controls outside the viewport. */
:root:root body #utilityDock {position:fixed!important;left:auto!important;right:20px!important;bottom:max(16px,env(safe-area-inset-bottom))!important;top:auto!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;width:auto!important;min-width:0!important;padding:7px!important;border-radius:22px!important;background:var(--r26-translucent-panel)!important;backdrop-filter:blur(18px)!important;border:1px solid var(--r26-line)!important;box-shadow:var(--r26-shadow-md)!important;transform:none!important;}
:root:root body #socialToolOrbs {display:flex!important;flex-direction:row!important;gap:7px!important;position:static!important;transform:none!important;opacity:1!important;visibility:visible!important;}
:root:root body #utilityDock :is(#bobTab,#miniCalcTab,#chatTab){display:flex!important;position:static!important;align-items:center!important;justify-content:center!important;transform:none!important;opacity:1!important;visibility:visible!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border:0!important;border-radius:14px!important;box-shadow:var(--r26-shadow-xs)!important;background:var(--r26-surface)!important;color:var(--r26-accent)!important;}
:root:root body #utilityDock .social-chat-label,:root:root body #mobileUtilityToggle{display:none!important;}
:root:root body:not(.grerj-calc-docked) #miniCalcPanel{left:auto!important;right:20px!important;top:auto!important;bottom:88px!important;width:310px!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 190px)!important;border-radius:24px!important;padding:18px!important;}
:root:root body #miniCalcGrid .mini-calc-key{height:48px!important;min-height:0!important;}
:root:root body #miniCalcPanel .mini-calc-head strong{color:var(--r26-text)!important;font-size:11px!important;font-weight:650!important;letter-spacing:.1em!important;}
:root:root body #miniCalcPanel .mini-calc-close{background:var(--r26-surface-2)!important;color:var(--r26-muted)!important;border-radius:10px!important;width:28px!important;height:28px!important;}
:root:root body #bobPanel,:root:root body #chatPanel {left:auto!important;right:20px!important;top:auto!important;bottom:88px!important;height:min(700px,calc(100dvh - 190px))!important;max-height:calc(100dvh - 190px)!important;border-radius:26px!important;}
:root:root body #bobPanel{width:min(430px,calc(100vw - 32px))!important;}
:root:root body #chatPanel{width:min(880px,calc(100vw - 32px))!important;}
@media(max-width:640px){:root:root body #utilityDock{right:12px!important;bottom:12px!important;}:root:root body:not(.grerj-calc-docked) #miniCalcPanel,:root:root body #bobPanel,:root:root body #chatPanel{right:12px!important;bottom:82px!important;max-height:calc(100dvh - 215px)!important;}:root:root body #miniCalcPanel{width:calc(100vw - 24px)!important;max-width:360px!important;}}
/* Directory refinement from the supplied screenshots: compact rows replace oversized cards. */
:root:root body.app-communication .directory-grid,
:root:root body.app-mandates .directory-grid {display:flex!important;flex-direction:column!important;gap:0!important;border:1px solid var(--r26-line)!important;border-radius:20px!important;overflow:hidden!important;background:var(--r26-translucent-panel)!important;box-shadow:var(--r26-shadow-sm)!important;}
:root:root body.app-communication .directory-card,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card {display:grid!important;grid-template-columns:minmax(230px,1.25fr) minmax(250px,1.7fr) minmax(155px,.75fr)!important;align-items:center!important;gap:18px!important;min-height:82px!important;padding:15px 20px!important;border:0!important;border-bottom:1px solid var(--r26-line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;animation:none!important;}
:root:root body.app-communication .directory-card:last-child,
:root:root body.app-mandates .directory-card:last-child {border-bottom:0!important;}
:root:root body.app-communication .directory-card-heading,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card-heading {margin:0!important;align-items:center!important;min-width:0!important;}
:root:root body.app-communication .directory-card-heading h2,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card-heading h2 {font-size:13px!important;line-height:1.3!important;margin-top:3px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
:root:root body.app-communication .directory-icon,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-icon {width:35px!important;height:35px!important;font-size:18px!important;border-radius:11px!important;}
:root:root body.app-communication .directory-email,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-email {border:0!important;padding:0!important;min-width:0!important;}
:root:root body.app-communication .directory-email a,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-email a {white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:12px!important;}
:root:root body.app-communication .directory-email button,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-email button {padding:6px 10px!important;}
:root:root body.app-communication .directory-card .directory-email:nth-of-type(3),
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card .directory-email:nth-of-type(3) {display:none!important;}
:root:root body.app-communication .directory-card>.directory-note,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card>.directory-note {display:none!important;}
:root:root body.app-communication .directory-provenance,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-provenance {margin:0!important;justify-self:end!important;white-space:nowrap!important;}
:root:root body.app-communication .directory-provenance summary,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-provenance summary {font-size:10px!important;}
/* Compact card breakpoints for Comunicação and Centrais, not Fóruns. */
@media(max-width:900px){
  :root:root body.app-communication .directory-card,
  :root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card{
    grid-template-columns:minmax(180px,1.1fr) minmax(180px,1.5fr) 90px!important;
    gap:10px!important;padding:13px 15px!important;
  }
}
@media(max-width:560px){
  :root:root body.app-communication .directory-card,
  :root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card{
    grid-template-columns:1fr!important;gap:7px!important;padding:14px!important;
  }
  .directory-card .directory-email{grid-column:1!important}
  .directory-card .directory-provenance{justify-self:start!important}
  .directory-card .directory-email button{display:none!important}
}
:root:root body .app-header{z-index:1000!important}
:root:root body .directory-page{position:relative;z-index:1}
/* Final directory polish: two compact columns and no provenance affordance. */
:root:root body.app-communication .directory-grid,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;border:0!important;border-radius:0!important;overflow:visible!important;background:transparent!important;box-shadow:none!important;}
:root:root body.app-communication .directory-card,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,1.35fr)!important;grid-template-areas:"heading contact" "notes notes"!important;align-items:center!important;gap:8px 14px!important;min-height:78px!important;padding:14px 16px!important;border:1px solid var(--r26-line)!important;border-radius:18px!important;background:var(--r26-translucent-panel)!important;box-shadow:var(--r26-shadow-xs)!important;}
:root:root body.app-communication .directory-card-heading,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card-heading{grid-area:heading!important;}
:root:root body.app-communication .directory-card-contact,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card-contact{grid-area:contact!important;min-width:0!important;}
:root:root body.app-communication .directory-card .directory-email,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card .directory-email{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;border:0!important;padding:0!important;}
:root:root body.app-communication .directory-card .directory-email + .directory-email,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card .directory-email + .directory-email{margin-top:7px!important;padding-top:7px!important;border-top:1px solid var(--r26-line)!important;}
:root:root body.app-communication .directory-card .directory-email a,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card .directory-email a{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
:root:root body.app-communication .directory-card .directory-email button,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card .directory-email button{padding:6px 9px!important;font-size:10px!important;}
:root:root body.app-communication .directory-card>.directory-note,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card>.directory-note{grid-area:notes!important;margin:0!important;font-size:10px!important;}
:root:root body.app-communication .directory-card h2,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card h2{font-size:12px!important;white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
:root:root body.app-communication .directory-icon,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-icon{width:32px!important;height:32px!important;font-size:16px!important;}
:root:root body.app-communication .directory-provenance,
:root:root body.app-mandates .directory-provenance{display:none!important;}
@media(max-width:700px){:root:root body.app-communication .directory-grid,:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-grid{grid-template-columns:1fr!important;}:root:root body.app-communication .directory-card,:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)!important;}}
@media(max-width:460px){:root:root body.app-communication .directory-card,:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card{grid-template-columns:1fr!important;grid-template-areas:"heading" "contact" "notes"!important;}}

/* Central de controle: dashboard operacional e mais intuitivo. */
#overviewView{display:block;animation:aurora-enter .38s var(--r26-ease) both;}#overviewView[hidden]{display:none!important;}
.control-overview-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 30px;border:1px solid var(--r26-line);border-radius:22px;background:linear-gradient(135deg,color-mix(in srgb,var(--r26-accent) 12%,var(--r26-surface)),var(--r26-surface));box-shadow:var(--r26-shadow-sm);}.control-overview-hero h3{margin:7px 0 6px;font-size:26px;letter-spacing:-.035em;color:var(--r26-text);}.control-overview-hero p{margin:0;max-width:620px;color:var(--r26-muted);font-size:13px;line-height:1.6;}.control-overview-orb{width:66px;height:66px;display:grid;place-items:center;border-radius:20px;background:var(--r26-accent-soft);color:var(--r26-accent);font-size:30px;box-shadow:var(--r26-shadow-xs);}
.control-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px;}.control-overview-card{display:grid;grid-template-columns:40px 1fr;grid-template-areas:"icon title" "icon copy";align-items:center;column-gap:12px;min-height:96px;padding:17px;border:1px solid var(--r26-line);border-radius:18px;background:var(--r26-surface);color:var(--r26-text);text-align:left;cursor:pointer;transition:transform .24s var(--r26-ease),border-color .24s,box-shadow .24s;}.control-overview-card:hover{transform:translateY(-3px);border-color:var(--r26-line-strong);box-shadow:var(--r26-shadow-md);}.control-overview-card>span{grid-area:icon;width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--r26-accent-soft);color:var(--r26-accent);font-weight:800;}.control-overview-card b{grid-area:title;font-size:13px;}.control-overview-card small{grid-area:copy;color:var(--r26-muted);font-size:11px;line-height:1.35;}.control-overview-quick{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:14px;padding:18px 20px;border-top:1px solid var(--r26-line);}.control-overview-quick h4{margin:5px 0 0;font-size:15px;color:var(--r26-text);}.control-overview-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}

/* Comunicação: três colunas densas no desktop. */
:root:root body.app-communication .directory-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important;box-shadow:none!important;}.app-communication .directory-card{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"heading" "contact" "notes"!important;align-items:start!important;min-height:116px!important;padding:16px!important;border:1px solid var(--r26-line)!important;border-radius:18px!important;background:color-mix(in srgb,var(--r26-surface) 88%,transparent)!important;box-shadow:var(--r26-shadow-xs)!important;}.app-communication .directory-card-heading{grid-area:heading!important;align-items:flex-start!important;}.app-communication .directory-card-heading h2{white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;}.app-communication .directory-card-contact{grid-area:contact!important;margin-top:12px!important;}.app-communication .directory-email{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;}.app-communication .directory-email a{font-size:11px!important;}.app-communication .directory-email button{font-size:10px!important;padding:6px 8px!important;}
.directory-search-row{align-items:end!important;}.directory-sort{display:grid;gap:4px;min-width:150px;color:var(--r26-muted);font-size:10px;font-weight:700;}.directory-sort select{min-height:38px;padding:0 10px;border:1px solid var(--r26-line);border-radius:11px;background:var(--r26-surface);color:var(--r26-text);font:inherit;}

@media(max-width:1050px){.control-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));}:root:root body.app-communication .directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:680px){:root:root body:not(.app-home) .app-header .header-inner{padding-inline:14px!important;}.control-overview-hero{padding:22px;}.control-overview-orb{width:52px;height:52px;font-size:23px;}.control-overview-grid{grid-template-columns:1fr;}.control-overview-quick{display:block;padding-inline:0;}.control-overview-actions{justify-content:flex-start;margin-top:12px;}.directory-sort{flex:1;min-width:0;}.directory-sort select{width:100%;}:root:root body.app-communication .directory-grid{grid-template-columns:1fr!important;}}


#loginModal .login-panel,
#normalLoginModal .login-panel{max-width:min(560px,calc(100vw - 32px))!important;border-radius:28px!important;}
#loginModal .formbox,
#normalLoginModal .formbox{background:color-mix(in srgb,var(--panel) 72%,var(--panel-strong) 28%)!important;border-radius:24px!important;padding:18px!important;}
#loginModal .field input,
#normalLoginModal .field input{min-height:48px!important;border-radius:15px!important;}
#loginModal .primary,
#normalLoginModal .primary{min-width:112px;}
#loginModal .secondary,
#normalLoginModal .secondary{min-width:112px;}

/* ==========================================================================
   EDITORIAL MODULE HEROES · shared visual language, adapted by theme
   ========================================================================== */
:root:root body:not(.app-home) :is(.workspace-overview-inner,.kb-hero,.directory-hero,.profile-interface-nav){
  position:relative!important;
  overflow:hidden!important;
  border:1px solid color-mix(in srgb,var(--r26-line) 86%,transparent)!important;
  border-radius:28px!important;
  background:
    linear-gradient(130deg,color-mix(in srgb,var(--r26-surface) 97%,var(--r26-bg)) 0%,var(--r26-surface) 68%,color-mix(in srgb,var(--r26-accent-soft) 42%,var(--r26-surface)) 100%)!important;
  color:var(--r26-text)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
:root:root body:not(.app-home) .workspace-overview-inner,
:root:root body:not(.app-home) .kb-hero{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:26px!important;
  min-height:154px!important;
  padding:30px 34px!important;
}
:root:root body:not(.app-home) .directory-hero{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:34px!important;
  min-height:154px!important;
  padding:30px 34px!important;
}
:root:root body.profile-view .profile-interface-nav{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:20px!important;
  min-height:142px!important;
  padding:26px 30px!important;
  margin-bottom:18px!important;
}
:root:root body:not(.app-home) :is(.workspace-overview h1,.kb-hero h1,.directory-hero h1,.profile-interface-heading h1){
  margin:7px 0 9px!important;
  color:var(--r26-text)!important;
  font-size:clamp(34px,3.15vw,48px)!important;
  line-height:1!important;
  letter-spacing:-.05em!important;
  font-weight:720!important;
}
:root:root body:not(.app-home) :is(.workspace-overview p,.kb-hero p,.directory-hero p,.profile-interface-heading p){
  max-width:760px!important;
  margin:0!important;
  color:var(--r26-muted)!important;
  font-size:13px!important;
  line-height:1.6!important;
}
:root:root body:not(.app-home) :is(.workspace-eyebrow,.kb-eyebrow,.profile-interface-heading .kicker){
  color:var(--r26-accent)!important;
  font-size:9.5px!important;
  font-weight:850!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
}
:root:root body:not(.app-home) :is(.workspace-overview-tools,.kb-hero-tools){
  align-self:center!important;
  justify-self:end!important;
}
:root:root body:not(.app-home) :is(.module-hero-symbol,.directory-symbol){
  width:92px!important;
  height:92px!important;
  min-width:92px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid color-mix(in srgb,var(--r26-line) 72%,transparent)!important;
  border-radius:30px!important;
  background:
    linear-gradient(145deg,color-mix(in srgb,var(--r26-surface) 86%,white),color-mix(in srgb,var(--r26-accent-soft) 78%,var(--r26-surface)))!important;
  color:var(--r26-accent)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.64)!important;
  font-size:34px!important;
  font-weight:740!important;
  letter-spacing:-.05em!important;
  transform:rotate(-5deg)!important;
}
body.app-models .workspace-symbol::before{content:"✎";}
body.app-grerj .workspace-symbol::before{content:"R$";font-size:27px;letter-spacing:-.08em;}
:root:root body.profile-view .profile-home-btn{align-self:start!important;margin:0!important;}
:root:root body.profile-view .profile-hero-symbol{justify-self:end!important;}

/* ==========================================================================
   LIQUID GLASS · source-driven material layer (Apple references)
   Architecture rule: THEME MUST NOT CHANGE LAYOUT.
   No display/grid/position/overflow/size/order/sticky overrides below.
   ========================================================================== */
html[data-theme="glass"] body{
  /* macOS HIG: spacious desktop canvas, restrained density, strong legibility. */
  --r26-bg:#756d82;
  --r26-bg-2:#968da0;
  --r26-surface:#cbc1d1;
  --r26-surface-2:#beb3c7;
  --r26-surface-3:#afa4ba;
  --r26-text:#25212b;
  --r26-muted:#655d6f;
  --r26-faint:#7b7285;
  --r26-line:rgba(72,60,83,.16);
  --r26-line-strong:rgba(66,53,80,.28);
  --r26-accent:#75649a;
  --r26-accent-2:#5e4d83;
  --r26-accent-soft:#ded4ea;

  /* V3 components inherit these without changing their geometry. */
  --v3-surface:rgba(207,197,216,.64);
  --v3-surface-soft:rgba(190,178,202,.54);
  --v3-border:rgba(72,60,83,.15);
  --v3-text:#25212b;
  --v3-muted:#655d6f;
  --v3-accent:#75649a;
  --v3-shadow:0 14px 34px rgba(48,41,57,.11);
  --r26-translucent-panel:rgba(194,182,205,.50);

  /* Apple "Regular" material analogue for web: adaptive-looking, fairly opaque. */
  --glass-regular:
    radial-gradient(125% 90% at 14% -10%,rgba(255,255,255,.66) 0%,rgba(255,255,255,.16) 46%,transparent 67%),
    linear-gradient(118deg,rgba(255,255,255,.24) 0%,rgba(255,255,255,.06) 36%,rgba(176,199,195,.14) 72%,rgba(244,218,188,.10) 100%),
    rgba(238,243,240,.50);
  --glass-regular-thick:
    radial-gradient(120% 95% at 10% -8%,rgba(255,255,255,.72) 0%,rgba(255,255,255,.20) 44%,transparent 66%),
    linear-gradient(118deg,rgba(255,255,255,.27),rgba(181,201,197,.12) 68%,rgba(244,218,188,.08)),
    rgba(240,244,242,.62);
  --glass-control:
    radial-gradient(115% 90% at 18% -8%,rgba(255,255,255,.76) 0%,rgba(255,255,255,.18) 52%,transparent 70%),
    rgba(247,249,247,.36);
  --glass-border:rgba(48,65,69,.16);
  --glass-highlight:rgba(255,255,255,.74);
  --glass-shadow:
    0 18px 44px rgba(49,60,62,.13),
    0 3px 10px rgba(49,60,62,.055),
    inset 0 1px 0 rgba(255,255,255,.82),
    inset 0 -1px 0 rgba(45,60,64,.07);

  background:transparent!important;
  color-scheme:light;
}

/* Meet Liquid Glass: material needs environmental information to bend/shape visually.
   Mineral silver + warm champagne + sea-glass, no saturated purple/blue wash. */
html[data-theme="glass"] body .ambient-bg{
  opacity:1!important;
  background:
    radial-gradient(980px 720px at -8% 8%,rgba(74,67,93,.96) 0%,rgba(90,80,112,.50) 37%,transparent 68%),
    radial-gradient(900px 700px at 104% 2%,rgba(181,153,198,.82) 0%,rgba(181,153,198,.30) 40%,transparent 72%),
    radial-gradient(1040px 780px at 72% 108%,rgba(116,105,151,.78) 0%,rgba(116,105,151,.26) 43%,transparent 73%),
    radial-gradient(760px 560px at 40% 48%,rgba(216,198,217,.54) 0%,rgba(216,198,217,.12) 49%,transparent 72%),
    radial-gradient(720px 520px at 58% 16%,rgba(224,190,160,.28) 0%,rgba(224,190,160,.08) 42%,transparent 70%),
    linear-gradient(136deg,#5c566a 0%,#746c82 26%,#968ca1 49%,#877d96 72%,#5c566d 100%)!important;
  filter:saturate(.94) contrast(1.04)!important;
}

/* FUNCTIONAL LAYER — Apple: navigation and controls float above content.
   Only paint material properties here; preserve each component's existing layout. */
html[data-theme="glass"] body :is(
  .app-header,
  .side,
  .kb-side,
  .theme-menu,
  .profile-hover-card,
  .admin-dock,
  .admin-context-sidebar,
  .modal>.panel,
  .grerj-create-card,
  .people-directory-dialog,
  .mural-editor-dialog,
  .chat-panel,
  .bob-panel,
  .mini-calc-panel,
  .social-tool-dock,
  #utilityDock,
  .grerj-calc-dock
){
  background:var(--glass-regular)!important;
  border-color:var(--glass-border)!important;
  backdrop-filter:blur(15px) saturate(148%) contrast(1.025)!important;
  -webkit-backdrop-filter:blur(15px) saturate(148%) contrast(1.025)!important;
  box-shadow:var(--glass-shadow)!important;
}

/* Larger transient material should feel thicker/substantial, matching Apple's guidance. */
html[data-theme="glass"] body :is(
  .theme-menu,
  .profile-hover-card,
  .modal>.panel,
  .people-directory-dialog,
  .mural-editor-dialog,
  .chat-panel,
  .bob-panel,
  .mini-calc-panel
){
  background:var(--glass-regular-thick)!important;
  backdrop-filter:blur(20px) saturate(150%) contrast(1.035)!important;
  -webkit-backdrop-filter:blur(20px) saturate(150%) contrast(1.035)!important;
  box-shadow:
    0 26px 64px rgba(47,58,61,.18),
    0 6px 18px rgba(47,58,61,.075),
    inset 0 1px 0 rgba(255,255,255,.86),
    inset 0 -1px 0 rgba(43,58,62,.08)!important;
}

/* Header is the persistent system bar. Keep the already-correct edge-to-edge geometry. */
html[data-theme="glass"] body .app-header{
  background:
    linear-gradient(180deg,rgba(255,255,255,.36),rgba(255,255,255,.09)),
    rgba(235,241,238,.47)!important;
  border-color:rgba(44,60,64,.14)!important;
  backdrop-filter:blur(17px) saturate(150%) contrast(1.025)!important;
  -webkit-backdrop-filter:blur(17px) saturate(150%) contrast(1.025)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.80),
    inset 0 -1px 0 rgba(45,61,65,.065),
    0 12px 28px rgba(50,61,63,.11)!important;
}

/* Avoid glass-on-glass: nav is a thin overlay INSIDE the glass header, not another blur plane. */
html[data-theme="glass"] body .module-nav{
  background:rgba(255,255,255,.13)!important;
  border-color:rgba(255,255,255,.20)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -1px 0 rgba(48,63,67,.055)!important;
}
html[data-theme="glass"] body .app-header .module-nav .module-btn{
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  color:color-mix(in srgb,var(--r26-text) 76%,transparent)!important;
}
html[data-theme="glass"] body .app-header .module-nav .module-btn:hover{
  background:rgba(255,255,255,.17)!important;
  color:var(--r26-text)!important;
}
html[data-theme="glass"] body .app-header .module-nav .module-btn.active{
  background:var(--glass-control)!important;
  border-color:rgba(255,255,255,.48)!important;
  color:var(--r26-text)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.88),
    inset 0 -1px 0 rgba(48,63,67,.07),
    0 5px 14px rgba(50,61,63,.085)!important;
}

/* Toolbar/Search: this is the visual language that worked best in QA screenshot 5. */
html[data-theme="glass"] body :is(
  .searchbar,
  .kb-searchbar,
  .directory-toolbar,
  .people-directory-search,
  .chat2-search,
  .users-toolbar
){
  background:
    radial-gradient(118% 100% at 5% -10%,rgba(255,255,255,.74) 0%,rgba(255,255,255,.18) 50%,transparent 69%),
    linear-gradient(116deg,rgba(255,255,255,.20),rgba(204,187,221,.16) 67%,rgba(239,210,188,.08)),
    rgba(238,233,243,.42)!important;
  border-color:rgba(83,68,99,.17)!important;
  backdrop-filter:blur(16px) saturate(152%) contrast(1.03)!important;
  -webkit-backdrop-filter:blur(16px) saturate(152%) contrast(1.03)!important;
  box-shadow:
    0 17px 40px rgba(45,38,57,.15),
    inset 0 1px 0 rgba(255,255,255,.86),
    inset 0 -1px 0 rgba(71,57,84,.07)!important;
}

/* QA V6 · exact approved toolbar language on every module search/filter surface.
   High specificity is deliberate: old module CSS still carries !important backgrounds. */
:root:root[data-theme="glass"] body:not(.app-home):not(.profile-view) :is(
  .controls.rx-module-controls > .searchbar,
  .controls.rx-module-controls > .searchbar.kb-searchbar,
  .directory-toolbar,
  .people-directory-search,
  .chat2-search,
  .users-toolbar
){
  background:
    radial-gradient(118% 100% at 5% -10%,rgba(255,255,255,.54) 0%,rgba(255,255,255,.12) 50%,transparent 69%),
    linear-gradient(116deg,rgba(255,255,255,.13),rgba(190,167,211,.18) 66%,rgba(233,201,181,.07)),
    rgba(188,174,201,.48)!important;
  border-color:rgba(78,61,94,.18)!important;
  backdrop-filter:blur(16px) saturate(152%) contrast(1.03)!important;
  -webkit-backdrop-filter:blur(16px) saturate(152%) contrast(1.03)!important;
  box-shadow:
    0 17px 40px rgba(42,33,54,.16),
    inset 0 1px 0 rgba(255,255,255,.72),
    inset 0 -1px 0 rgba(68,51,83,.075)!important;
}

/* Search fields should read as part of the glass bar, not white paper laid on top. */
:root:root[data-theme="glass"] body:not(.app-home):not(.profile-view) :is(
  .controls.rx-module-controls .searchwrap input,
  .controls.rx-module-controls .kb-searchwrap input,
  .directory-search,
  .directory-filter select,
  .directory-sort select,
  #directoryClear,
  .people-directory-search input,
  .chat2-search input,
  .users-toolbar input
){
  background:
    linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,.08)),
    rgba(217,207,226,.40)!important;
  border-color:rgba(79,62,95,.16)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(70,54,84,.05)!important;
}

/* Biblioteca "Acervo documental" is typography, not a panel. */
:root:root[data-theme="glass"] body.app-library .library-browser-head{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

/* Navigation sidebars can be Glass. Their sticky/grid geometry remains untouched. */
html[data-theme="glass"] body :is(.side,.kb-side,.admin-context-sidebar){
  background:
    radial-gradient(125% 90% at 8% -5%,rgba(255,255,255,.62) 0%,rgba(255,255,255,.14) 52%,transparent 70%),
    rgba(237,243,240,.46)!important;
  border-color:rgba(51,68,72,.15)!important;
  backdrop-filter:blur(14px) saturate(148%)!important;
  -webkit-backdrop-filter:blur(14px) saturate(148%)!important;
  box-shadow:
    0 15px 36px rgba(50,61,63,.11),
    inset 0 1px 0 rgba(255,255,255,.80),
    inset 0 -1px 0 rgba(46,62,65,.06)!important;
}

/* Controls placed ON glass use fills/transparency, not another glass material. */
html[data-theme="glass"] body :is(
  .theme-btn,.mute-btn,.admin-btn,.header-logout,.profile-orb,
  .workspace-action,.kb-hero-action,.secondary,.ui-action,.copy-action,.rx-text-btn,
  .directory-page button,.kb-tabs button,.tabs button,.cats button,.kb-side-item,.kb-side-filter
){
  background:rgba(250,251,249,.26)!important;
  border-color:rgba(54,71,75,.13)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.58)!important;
}
html[data-theme="glass"] body :is(
  .kb-tabs button.active,.tabs button.active,.cats button.active,.kb-side-item.active,.kb-side-filter.active,
  .directory-tabs button.active
){
  background:
    linear-gradient(180deg,rgba(255,255,255,.45),rgba(255,255,255,.12)),
    rgba(225,235,232,.46)!important;
  border-color:rgba(75,102,103,.25)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.74),
    0 4px 12px rgba(49,61,63,.06)!important;
}
@media(hover:hover){
  html[data-theme="glass"] body :is(
    .theme-btn,.mute-btn,.admin-btn,.header-logout,.profile-orb,
    .workspace-action,.kb-hero-action,.secondary,.ui-action,.copy-action,.rx-text-btn,
    .directory-page button,.kb-tabs button,.tabs button,.cats button,.kb-side-item,.kb-side-filter
  ):hover{
    background:rgba(255,255,255,.40)!important;
    border-color:rgba(255,255,255,.48)!important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.80),
      0 5px 14px rgba(49,61,63,.07)!important;
  }
}

/* Inputs remain denser for text contrast while still belonging visually to the material. */
html[data-theme="glass"] body :is(
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),
  textarea,
  select
){
  background:
    linear-gradient(180deg,rgba(255,255,255,.58),rgba(255,255,255,.16)),
    rgba(244,240,247,.68)!important;
  border-color:rgba(79,64,94,.18)!important;
  box-shadow:
    inset 0 1px 2px rgba(57,45,68,.045),
    inset 0 1px 0 rgba(255,255,255,.76)!important;
}

/* ==========================================================================
   GLASS SURFACE FAMILY · same language everywhere, different density by role
   The approved search/filter toolbar is the visual reference.
   ========================================================================== */

/* Large surfaces: hero, summary, document shells, dialogs and major cards.
   Same lilac material family as the approved toolbar, with slightly denser tint. */
:root:root[data-theme="glass"] body:not(.app-home) :is(
  .workspace-overview-inner,.kb-hero,.directory-hero,.profile-interface-nav,.command-hero,
  .rx-panel,.grerj-hero,.grerj-card,.grerj-summary,.grerj-certificate,
  .guide-head,.guide-reader,.library-reader,.mural-post,
  .directory-card,.forum-card,.profile-hero-v2,.profile-box-v2,.profile-session-v2,
  .control-overview-hero,.control-overview-card,.formbox,.admin-view-hero,.chat2-shell,
  .tax-card,.grerj-confirm-summary
){
  background:
    radial-gradient(122% 96% at 6% -10%,rgba(255,255,255,.66) 0%,rgba(255,255,255,.15) 48%,transparent 69%),
    linear-gradient(118deg,rgba(255,255,255,.17),rgba(198,178,217,.16) 66%,rgba(236,207,187,.07)),
    rgba(222,211,230,.44)!important;
  border-color:rgba(82,66,96,.16)!important;
  backdrop-filter:blur(14px) saturate(148%) contrast(1.025)!important;
  -webkit-backdrop-filter:blur(14px) saturate(148%) contrast(1.025)!important;
  box-shadow:
    0 16px 38px rgba(44,36,55,.13),
    inset 0 1px 0 rgba(255,255,255,.80),
    inset 0 -1px 0 rgba(69,54,82,.065)!important;
}

/* Repeated content tiles: same optical language without dozens of expensive blur layers. */
:root:root[data-theme="glass"] body:not(.app-home) :is(
  .card,
  .library-index-row,
  .guide-section,
  .contact-card,
  .admin-card,
  .user-row,
  .library-document-card,
  .knowledge-attachment-card
){
  background:
    radial-gradient(118% 90% at 7% -8%,rgba(255,255,255,.57) 0%,rgba(255,255,255,.12) 50%,transparent 70%),
    linear-gradient(118deg,rgba(255,255,255,.13),rgba(197,179,215,.13) 68%,rgba(235,207,186,.055)),
    rgba(224,214,231,.40)!important;
  border-color:rgba(83,67,97,.14)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:
    0 9px 24px rgba(44,36,55,.09),
    inset 0 1px 0 rgba(255,255,255,.68),
    inset 0 -1px 0 rgba(70,55,84,.05)!important;
}

/* Inner rows/headers are thin fills, not a second glass sheet. */
:root:root[data-theme="glass"] body:not(.app-home) :is(
  .cardhead,
  .grerj-row:not(.grerj-head),
  .library-index-pdf,
  .guide-section h3,
  .profile-info-row,
  .grerj-result,
  .grerj-confirm-row,
  .category-picker label
){
  background:
    linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,.07)),
    rgba(235,228,240,.36)!important;
  border-color:rgba(82,66,96,.12)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.48)!important;
}

/* Table/header rows stay quiet and slightly denser for labels. */
:root:root[data-theme="glass"] body:not(.app-home) :is(.grerj-head,.library-browser-titlebar){
  background:rgba(205,193,216,.28)!important;
  border-color:rgba(82,66,96,.13)!important;
}

/* Selected/active content should tint rather than turn white. */
:root:root[data-theme="glass"] body:not(.app-home) :is(
  .library-index-row.selected,
  .card.is-selected,
  .directory-card.is-selected
){
  background:
    radial-gradient(118% 90% at 8% -8%,rgba(255,255,255,.62),rgba(255,255,255,.12) 52%,transparent 70%),
    rgba(199,183,219,.50)!important;
  border-color:rgba(112,87,142,.28)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 10px 26px rgba(54,40,69,.11)!important;
}

/* Hero icon: a material accent, not a second navigational glass pane. */
html[data-theme="glass"] body :is(.module-hero-symbol,.directory-symbol){
  background:
    radial-gradient(108% 95% at 20% 0%,rgba(255,255,255,.74),rgba(255,255,255,.15) 58%,transparent 76%),
    rgba(204,190,219,.58)!important;
  border-color:rgba(86,68,103,.15)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.82),
    0 12px 30px rgba(54,66,68,.085)!important;
}

/* ==========================================================================
   CALCULATOR · same Glass family, no hard outlines / 3D borders
   ========================================================================== */
:root:root[data-theme="glass"] body :is(#miniCalcPanel,.mini-calc-panel){
  border:0!important;
  background:
    radial-gradient(122% 96% at 8% -8%,rgba(255,255,255,.65) 0%,rgba(255,255,255,.15) 48%,transparent 69%),
    linear-gradient(118deg,rgba(255,255,255,.17),rgba(196,176,216,.17) 66%,rgba(238,209,187,.07)),
    rgba(214,203,224,.52)!important;
  backdrop-filter:blur(18px) saturate(150%) contrast(1.03)!important;
  -webkit-backdrop-filter:blur(18px) saturate(150%) contrast(1.03)!important;
  box-shadow:
    0 22px 54px rgba(42,34,53,.18),
    inset 0 1px 0 rgba(255,255,255,.82),
    inset 0 -1px 0 rgba(68,53,82,.07)!important;
}
:root:root[data-theme="glass"] body .grerj-calc-dock{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
:root:root[data-theme="glass"] body #miniCalcDisplay{
  border:0!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.50),rgba(255,255,255,.15)),
    rgba(239,233,244,.48)!important;
  color:var(--r26-text)!important;
  -webkit-text-fill-color:var(--r26-text)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.76),
    inset 0 -1px 0 rgba(73,57,87,.055),
    0 5px 14px rgba(46,37,57,.055)!important;
}
:root:root[data-theme="glass"] body #miniCalcPanel .mini-calc-key{
  border:0!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,.09)),
    rgba(230,222,236,.42)!important;
  color:var(--r26-text)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.70),
    0 5px 12px rgba(45,36,56,.075)!important;
}
:root:root[data-theme="glass"] body #miniCalcPanel .mini-calc-key.op{
  border:0!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.38),rgba(255,255,255,.07)),
    rgba(202,188,218,.48)!important;
  color:var(--r26-accent-2)!important;
}
:root:root[data-theme="glass"] body #miniCalcPanel .mini-calc-key.equal{
  border:0!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.15),rgba(255,255,255,0)),
    rgba(101,82,132,.82)!important;
  color:#fff!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    0 8px 18px rgba(53,40,72,.18)!important;
}
:root:root[data-theme="glass"] body #miniCalcPanel :is(.mini-calc-close,.calc-utilities button){
  border:0!important;
  background:rgba(242,237,246,.34)!important;
  color:var(--r26-text)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.62),
    0 4px 10px rgba(45,36,56,.06)!important;
}
@media(hover:hover){
  :root:root[data-theme="glass"] body #miniCalcPanel .mini-calc-key:hover{
    border:0!important;
    background:
      linear-gradient(180deg,rgba(255,255,255,.54),rgba(255,255,255,.12)),
      rgba(233,225,239,.48)!important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.78),
      0 8px 18px rgba(45,36,56,.10)!important;
  }
  :root:root[data-theme="glass"] body #miniCalcPanel .mini-calc-key.equal:hover{
    background:
      linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,0)),
      rgba(111,91,145,.88)!important;
  }
}

:root:root[data-theme="glass"] body #miniCalcPanel .mini-calc-key:active{
  border:0!important;
  box-shadow:
    inset 0 1px 2px rgba(57,44,70,.10),
    0 2px 7px rgba(45,36,56,.055)!important;
}
/* QA V6 · docked calculator optical clipping.
   The old dock used overflow:visible; with backdrop-filter this exposes a square filter rectangle. */
:root:root[data-theme="glass"] body.app-grerj.grerj-calc-docked #grerjCalcDock > #miniCalcPanel{
  border:0!important;
  border-radius:20px!important;
  overflow:hidden!important;
  background-clip:padding-box!important;
  clip-path:inset(0 round 20px);
  isolation:isolate!important;
}
:root:root[data-theme="glass"] body.app-grerj #grerjCalcDock::before{
  content:none!important;
  display:none!important;
}
:root:root[data-theme="glass"] body.app-grerj.grerj-calc-docked #miniCalcPanel :is(
  .mini-calc-display,.mini-calc-key,.mini-calc-close,.calc-utilities button
){
  outline:0!important;
}
/* Accessibility: Apple explicitly calls for a frostier, more opaque material. */
@media(prefers-reduced-transparency:reduce){
  html[data-theme="glass"] body :is(
    .app-header,.searchbar,.kb-searchbar,.directory-toolbar,.side,.kb-side,.theme-menu,
    .profile-hover-card,.admin-dock,.admin-context-sidebar,.modal>.panel,.grerj-create-card,
    .people-directory-dialog,.mural-editor-dialog,.chat-panel,.bob-panel,.mini-calc-panel,
    .social-tool-dock,#utilityDock,.grerj-calc-dock
  ){
    background:rgba(240,244,241,.94)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
}

/* Dark themes use native dark surfaces; no displaced white hero strip. */
html[data-theme="night"] body:not(.app-home) :is(.workspace-overview-inner,.kb-hero,.directory-hero,.profile-interface-nav),
html[data-theme="midnight"] body:not(.app-home) :is(.workspace-overview-inner,.kb-hero,.directory-hero,.profile-interface-nav){
  background:
    linear-gradient(130deg,color-mix(in srgb,var(--r26-surface) 96%,black),var(--r26-surface) 72%,color-mix(in srgb,var(--r26-accent-soft) 34%,var(--r26-surface)))!important;
  color:var(--r26-text)!important;
  border-color:color-mix(in srgb,var(--r26-line) 82%,transparent)!important;
}
html[data-theme="night"] body:not(.app-home) :is(.workspace-overview h1,.kb-hero h1,.directory-hero h1,.profile-interface-heading h1),
html[data-theme="midnight"] body:not(.app-home) :is(.workspace-overview h1,.kb-hero h1,.directory-hero h1,.profile-interface-heading h1){
  color:var(--r26-text)!important;
}

@media(max-width:900px){
  :root:root body:not(.app-home) .workspace-overview-inner,
  :root:root body:not(.app-home) .kb-hero{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:18px!important;
  }
  :root:root body:not(.app-home) :is(.workspace-overview-tools,.kb-hero-tools){
    grid-column:1/-1!important;
    justify-self:start!important;
    width:100%!important;
  }
  :root:root body.profile-view .profile-interface-nav{
    grid-template-columns:auto minmax(0,1fr) auto!important;
  }
}
@media(max-width:640px){
  :root:root body:not(.app-home) :is(.module-hero-symbol,.directory-symbol){display:none!important;}
  :root:root body:not(.app-home) :is(.workspace-overview-inner,.kb-hero,.directory-hero){
    grid-template-columns:1fr!important;
    min-height:0!important;
    padding:22px!important;
    gap:16px!important;
  }
  :root:root body.profile-view .profile-interface-nav{
    grid-template-columns:1fr!important;
    min-height:0!important;
    padding:20px!important;
  }
}
body.app-models .workspace-shell,
body.app-communication .workspace-shell,
body.app-mandates .workspace-shell,
body.app-library .workspace-shell,
body.app-guides .workspace-shell,
body.app-grerj .workspace-shell,
body.app-mural .workspace-shell{
  background:transparent!important;
}

/* Login: sem borda horrorosa/vermelha e com hierarquia mais limpa. */
#loginModal .login-panel,
#normalLoginModal .login-panel{
  background:color-mix(in srgb,var(--panel-strong) 96%,transparent)!important;
}
#loginModal .modal-head,
#normalLoginModal .modal-head{align-items:flex-start!important;}
#loginModal .close,
#normalLoginModal .close{background:rgba(255,255,255,.66)!important;border-color:var(--line)!important;color:var(--ink)!important;}
#loginModal .field input,
#normalLoginModal .field input{
  appearance:none!important;
  -webkit-appearance:none!important;
  outline:none!important;
  border:1px solid color-mix(in srgb,var(--line) 92%,transparent)!important;
  box-shadow:inset 0 1px 1px rgba(0,0,0,.04)!important;
}
#loginModal .field input:focus,
#normalLoginModal .field input:focus,
#loginModal .field input:focus-visible,
#normalLoginModal .field input:focus-visible{
  border-color:color-mix(in srgb,var(--r26-accent,var(--blue)) 72%,var(--line))!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--r26-accent,var(--blue)) 18%,transparent), inset 0 1px 1px rgba(0,0,0,.04)!important;
}
#loginModal .field input:invalid,
#normalLoginModal .field input:invalid{
  border-color:color-mix(in srgb,var(--line) 92%,transparent)!important;
  box-shadow:inset 0 1px 1px rgba(0,0,0,.04)!important;
}
#loginModal .field input:-webkit-autofill,
#loginModal .field input:-webkit-autofill:hover,
#loginModal .field input:-webkit-autofill:focus,
#normalLoginModal .field input:-webkit-autofill,
#normalLoginModal .field input:-webkit-autofill:hover,
#normalLoginModal .field input:-webkit-autofill:focus{
  -webkit-box-shadow:0 0 0 1000px var(--panel-strong) inset!important;
  -webkit-text-fill-color:var(--ink)!important;
}

/* Comunicação e mandados mais consistentes no noturno. */
html[data-theme="night"] body.app-communication .directory-toolbar,
html[data-theme="midnight"] body.app-communication .directory-toolbar,
html[data-theme="night"] body.app-mandates .directory-toolbar,
html[data-theme="midnight"] body.app-mandates .directory-toolbar{
  background:color-mix(in srgb,var(--r26-surface) 92%,transparent)!important;
}

@media(max-width:680px){
  :root{--workspace-gutter:14px;}
  :root:root body .app-header .header-inner{padding-inline:14px!important;}
  :root:root body:not(.app-home) .workspace-overview{padding-inline:14px!important;}
  :root:root body:not(.app-home) main.shell.rx-module-workspace,
  :root:root body:not(.app-home) .kb-page,
  :root:root body:not(.app-home) .directory-page,
  :root:root body.profile-view .profile-interface{padding-left:14px!important;padding-right:14px!important;}
  :root:root body.chat-open #chatPanel.chat2-panel,
  :root:root body.chat-open #chatPanel.chat2-panel.chat2-compact{inset:64px 0 0!important;border-radius:0!important;}
}


/* ==========================================================================
   GLASS V7 · QA estrutural + uso inteligente do espaço
   Fonte de verdade para os pontos observados em Biblioteca / Mandados / GRERJ.
   ========================================================================== */

/* Phosphor becomes the icon language; only size/color are inherited. */
:root body :is(.rx-action-icon,.module-hero-symbol,.directory-symbol,.directory-icon) :is(.ph,.ph-duotone),
:root body :is(.directory-tabs,.directory-address,.directory-copy-address,.directory-fact,.mini-calc-tab) :is(.ph,.ph-duotone){
  display:inline-block;
  line-height:1;
}
:root body .rx-action-icon :is(.ph,.ph-duotone){font-size:19px}
:root body .module-hero-symbol :is(.ph,.ph-duotone),
:root body .directory-symbol :is(.ph,.ph-duotone){font-size:.92em}
:root body .directory-icon :is(.ph,.ph-duotone){font-size:1em}
:root body #miniCalcTab :is(.ph,.ph-duotone){font-size:18px}
:root body .directory-search>i{font-size:20px;color:var(--r26-accent);flex:0 0 auto}

/* Biblioteca: "Acervo documental" is a section heading, not the edge of a nested panel. */
:root:root body.app-library .library-browser{
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
:root:root body.app-library .library-browser-head{
  margin:8px 0 12px!important;
  padding:0 2px!important;
  align-items:center!important;
}
:root:root body.app-library .library-index{
  margin:0!important;
  padding:0!important;
}

/* Result count is metadata, never a luminous panel. */
:root:root body.app-directory .directory-results-head,
:root:root[data-theme="glass"] body.app-directory .directory-results-head{
  margin:14px 3px 10px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
:root:root body.app-directory .directory-results-head>span:first-child{
  opacity:.78;
  font-weight:700!important;
}
:root:root body.app-directory .directory-results-head>span:last-child{opacity:.65}

/* Directory controls all belong to the same material family. */
:root:root[data-theme="glass"] body.app-directory :is(
  .directory-search,
  .directory-filter select,
  .directory-sort select,
  #directoryClear
){
  background:
    linear-gradient(180deg,rgba(255,255,255,.32),rgba(255,255,255,.07)),
    rgba(211,199,222,.43)!important;
  border-color:rgba(79,62,95,.16)!important;
  color:var(--r26-text)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.52),
    inset 0 -1px 0 rgba(70,54,84,.045)!important;
}
:root:root[data-theme="glass"] body.app-directory #directoryClear{
  color:var(--r26-accent-2)!important;
}

/* Mandados operational rows are defined once by the V11 component below.
   Historical .directory-facts layout and overrides removed. */

/* Modelos conserva a sidebar aprovada. GRERJ precisa de mais largura
   para favoritos e rubricas; não deixar o dock fixar a coluna em 210px. */
@media(min-width:1200px){
  :root:root body.app-models main.shell.rx-module-workspace{
    --rx-module-side:272px!important;
  }
  :root:root body.app-grerj main.shell.rx-module-workspace{
    --rx-module-side:clamp(280px,21vw,310px)!important;
  }
}
@media(min-width:1600px){
  :root:root body.app-models main.shell.rx-module-workspace{
    --rx-module-side:286px!important;
  }
  :root:root body.app-grerj main.shell.rx-module-workspace{
    --rx-module-side:320px!important;
  }
}

/* GRERJ dock calculator only:
   backdrop-filter on the docked panel was creating a rectangular compositing layer
   behind a rounded panel. Keep the optical material, remove the filtered backdrop. */
:root:root[data-theme="glass"] body.app-grerj.grerj-calc-docked #grerjCalcDock{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  filter:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  isolation:auto!important;
}
:root:root[data-theme="glass"] body.app-grerj.grerj-calc-docked #grerjCalcDock::before{
  content:none!important;
  display:none!important;
}
:root:root[data-theme="glass"] body.app-grerj.grerj-calc-docked #grerjCalcDock > #miniCalcPanel{
  border:0!important;
  border-radius:20px!important;
  overflow:hidden!important;
  clip-path:none!important;
  isolation:auto!important;
  contain:paint!important;
  background:
    radial-gradient(130% 105% at 8% -8%,rgba(255,255,255,.62) 0%,rgba(255,255,255,.13) 48%,transparent 70%),
    linear-gradient(118deg,rgba(255,255,255,.16),rgba(192,171,213,.18) 66%,rgba(237,208,188,.06)),
    rgba(207,194,219,.91)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:
    0 20px 48px rgba(39,31,50,.18),
    inset 0 1px 0 rgba(255,255,255,.70),
    inset 0 -1px 0 rgba(67,51,81,.06)!important;
}


/* ==========================================================================
   ADMIN V8 · Settings-style control plane + universal CRUD
   Source direction: Raycast Settings / macOS settings hierarchy.
   ========================================================================== */
:root body .control-command-list{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:22px!important;
  padding:0!important;
}
:root body .control-command-section{
  display:grid;
  gap:2px;
  border:1px solid var(--r26-line);
  border-radius:22px;
  overflow:hidden;
  background:color-mix(in srgb,var(--r26-surface) 82%,transparent);
  box-shadow:var(--r26-shadow-xs);
}
:root body .control-command-section>header{
  display:flex;
  align-items:baseline;
  gap:10px;
  padding:15px 18px 11px;
  border-bottom:1px solid var(--r26-line);
}
:root body .control-command-section>header span{
  font-size:9px;
  font-weight:850;
  letter-spacing:.15em;
  color:var(--r26-accent);
}
:root body .control-command-section>header b{
  font-size:12px;
  color:var(--r26-muted);
  font-weight:650;
}
:root body .control-command-row{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 20px;
  align-items:center;
  gap:12px;
  width:100%;
  min-height:62px;
  padding:10px 15px;
  border:0;
  border-bottom:1px solid color-mix(in srgb,var(--r26-line) 76%,transparent);
  border-radius:0;
  background:transparent;
  color:var(--r26-text);
  text-align:left;
  cursor:pointer;
  transition:background .18s var(--r26-ease),transform .18s var(--r26-ease);
}
:root body .control-command-row:last-child{border-bottom:0}
:root body .control-command-row:hover{background:var(--r26-accent-soft)}
:root body .control-command-row:active{transform:scale(.995)}
:root body .control-command-icon{
  width:38px;height:38px;border-radius:12px;display:grid;place-items:center;
  background:color-mix(in srgb,var(--r26-accent-soft) 78%,var(--r26-surface));
  color:var(--r26-accent);
  font-size:20px;
}
:root body .control-command-copy{display:grid;gap:3px;min-width:0}
:root body .control-command-copy b{font-size:13px;line-height:1.2}
:root body .control-command-copy small{font-size:11px;line-height:1.35;color:var(--r26-muted)}
:root body .control-command-caret{color:var(--r26-faint);font-size:14px}

:root body .admin-item.universal-admin-item,
:root body .admin-item:has(.admin-item-entity-icon){
  display:grid!important;
  grid-template-columns:32px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  text-align:left!important;
}
:root body .admin-item-entity-icon,
:root body .content-entity-icon{
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  color:var(--r26-accent);
}
:root body .admin-item-entity-icon{
  width:30px;height:30px;border-radius:10px;
  background:color-mix(in srgb,var(--r26-accent-soft) 72%,var(--r26-surface));
  font-size:16px;
}
:root body .content-entity-icon{
  width:26px;height:26px;border-radius:9px;
  background:var(--r26-accent-soft);
  font-size:14px;
}
:root body .model-card-heading .content-entity-icon{margin-right:7px}
:root body .grerj-entity-icon{width:34px;height:34px;border-radius:12px;font-size:18px}
:root body .entity-title-with-icon{
  display:flex!important;align-items:center!important;gap:8px!important;
}
:root body .entity-title-with-icon>.ph,
:root body .entity-title-with-icon>.ph-duotone,
:root body .entity-title-with-icon>.entity-custom-icon{color:var(--r26-accent);flex:0 0 auto}

:root body .admin-visual-editor{
  margin:14px 0;
  padding:14px;
  border:1px solid var(--r26-line);
  border-radius:18px;
  background:var(--r26-surface-2);
}
:root body .admin-visual-editor.compact{padding:12px 14px}
:root body .admin-icon-input{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  gap:8px;
}
:root body .admin-icon-preview{
  width:42px;height:42px;display:grid;place-items:center;
  border:1px solid var(--r26-line);
  border-radius:13px;
  background:var(--r26-surface);
  color:var(--r26-accent);
  font-size:21px;
}
:root body .admin-sync-state{
  display:inline-flex;align-items:center;gap:6px;
  margin:0 0 13px;padding:6px 9px;border-radius:9px;
  font-size:10px;font-weight:750;
}
:root body .admin-sync-state.ok{background:color-mix(in srgb,var(--r26-green) 13%,transparent);color:var(--r26-green)}
:root body .admin-sync-state.warn{background:color-mix(in srgb,#b47b31 13%,transparent);color:#8c5a1b}
:root body .universal-crud-actions{position:sticky;bottom:0;z-index:2;padding-top:12px;background:linear-gradient(180deg,transparent,var(--r26-surface) 30%)}
:root body .forum-area-editor{
  margin:12px 0;
  padding:14px;
  border:1px solid var(--r26-line);
  border-radius:18px;
  background:var(--r26-surface-2);
}
:root body .forum-area-editor-list{display:grid;gap:10px}
:root body .structure-edit-row{
  display:grid!important;
  grid-template-columns:30px minmax(150px,1fr) minmax(90px,.45fr) auto auto!important;
  align-items:center!important;
  gap:8px!important;
}
:root body .structure-edit-row:has(.structure-parent-label){
  grid-template-columns:30px minmax(100px,.45fr) minmax(150px,1fr) minmax(90px,.4fr) auto auto!important;
}
:root body .structure-parent-label{font-size:10px;color:var(--r26-muted);font-weight:750}
:root body .structure-icon-input{min-width:0!important}
:root body .admin-tab-icon :is(.ph,.ph-duotone){font-size:18px}

/* Forums: territorial data expands on demand instead of becoming an internal spreadsheet. */
:root body .forum-areas{display:grid;gap:8px;margin-top:12px}
:root body .forum-area{
  border:1px solid var(--r26-line);
  border-radius:14px;
  background:color-mix(in srgb,var(--r26-surface-2) 82%,transparent);
  overflow:hidden;
}
:root body .forum-area summary{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:11px 13px;
  cursor:pointer;
  list-style:none;
  font-size:11px;font-weight:800;color:var(--r26-text);
}
:root body .forum-area summary::-webkit-details-marker{display:none}
:root body .forum-area summary .ph{transition:transform .2s var(--r26-ease)}
:root body .forum-area[open] summary .ph{transform:rotate(180deg)}
:root body .forum-area>p{margin:0;padding:0 13px 11px;font-size:11px;line-height:1.55;color:var(--r26-muted)}
:root body .forum-area .forum-competence{color:var(--r26-text)}

/* #14 · one focus language. Wrappers own search focus; fields own normal focus. */
:root body :is(input,textarea,select,button):focus{outline:none!important}
:root body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select):focus-visible{
  border-color:color-mix(in srgb,var(--r26-accent) 62%,var(--r26-line))!important;
  box-shadow:var(--r26-ring)!important;
}
:root body :is(.searchwrap,.kb-searchwrap,.directory-search,.admin-search-box):focus-within{
  border-color:color-mix(in srgb,var(--r26-accent) 62%,var(--r26-line))!important;
  box-shadow:var(--r26-ring)!important;
}
:root body :is(.searchwrap,.kb-searchwrap,.directory-search,.admin-search-box) :is(input,select):focus,
:root body :is(.searchwrap,.kb-searchwrap,.directory-search,.admin-search-box) :is(input,select):focus-visible{
  outline:none!important;
  box-shadow:none!important;
  border-color:transparent!important;
}
:root body button:focus-visible{
  outline:2px solid color-mix(in srgb,var(--r26-accent) 72%,white)!important;
  outline-offset:2px!important;
}

/* Glass admin chrome uses the same functional-layer material, not nested glass cards. */
html[data-theme="glass"] body :is(.control-command-section,.admin-visual-editor,.forum-area-editor){
  background:rgba(211,199,222,.34)!important;
  border-color:rgba(79,62,95,.15)!important;
}
html[data-theme="glass"] body .control-command-row:hover{background:rgba(255,255,255,.22)!important}

@media(max-width:980px){
  :root body .structure-edit-row,
  :root body .structure-edit-row:has(.structure-parent-label){grid-template-columns:1fr!important}
  :root body .structure-edit-row .admin-item-entity-icon{display:none}
}


/* Fóruns · two cards beside each other; three at very large widths.
   The native <details> stays expandable, without inner scrollbars. */
:root:root body.app-mandates:has([data-directory-tab="forums"].active) .directory-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:start!important;
  gap:16px!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;overflow:visible!important;
}
:root:root body.app-mandates:has([data-directory-tab="forums"].active) .forum-card{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  min-width:0!important;width:100%!important;
  padding:21px 23px!important;gap:0!important;
  border:1px solid var(--r26-line)!important;border-radius:20px!important;
  background:var(--r26-translucent-panel)!important;
  box-shadow:var(--r26-shadow-xs)!important;animation:none!important;
}
:root:root body.app-mandates:has([data-directory-tab="forums"].active) .forum-card .directory-card-heading{
  margin:0 0 10px!important;min-width:0!important;
}
:root:root body.app-mandates:has([data-directory-tab="forums"].active) .forum-card .directory-card-heading h2{
  font-size:14px!important;line-height:1.4!important;
}
:root:root body.app-mandates:has([data-directory-tab="forums"].active) .forum-card .directory-address{
  margin:0 0 12px!important;line-height:1.5!important;font-size:11px!important;
  overflow-wrap:anywhere!important;
}
:root:root body.app-mandates:has([data-directory-tab="forums"].active) .forum-card .directory-copy-address{
  align-self:flex-start!important;margin:0 0 13px!important;
  padding:8px 10px!important;font-size:11px!important;
}
:root:root body.app-mandates:has([data-directory-tab="forums"].active) .forum-card .forum-areas{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  gap:8px!important;width:100%!important;min-width:0!important;
  max-height:none!important;overflow:visible!important;
  margin:4px 0 0!important;padding:0!important;
}
:root:root body.app-mandates:has([data-directory-tab="forums"].active) .forum-area{
  min-width:0!important;margin:0!important;
}
:root:root body.app-mandates:has([data-directory-tab="forums"].active) .forum-area summary{
  white-space:normal!important;overflow-wrap:anywhere!important;
}
:root:root body.app-mandates:has([data-directory-tab="forums"].active) .forum-card>.directory-note{
  margin-top:11px!important;
}
@media(min-width:1650px){
  :root:root body.app-mandates:has([data-directory-tab="forums"].active) .directory-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:839px){
  :root:root body.app-mandates:has([data-directory-tab="forums"].active) .directory-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
}

:root body .control-command-row{grid-template-columns:38px minmax(0,1fr) auto 20px}
:root body .control-command-badge{
  min-width:28px;height:24px;padding:0 8px;border-radius:999px;display:inline-grid;place-items:center;
  background:var(--r26-surface-2);border:1px solid var(--r26-line);color:var(--r26-muted);
  font-size:10px;font-weight:800;font-variant-numeric:tabular-nums;
}

/* Legacy V8.1 fact grid removed: new phone/direct strip has one home. */
:root:root body.app-communication .directory-card .directory-email:nth-of-type(n),
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card .directory-email:nth-of-type(n) {
  display:grid!important;
}
:root:root body.app-communication .directory-card>.directory-note,
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card>.directory-note {
  display:block!important;
  grid-area:notes!important;
  overflow-wrap:anywhere!important;
}
:root:root body.app-mandates:has([data-directory-tab="forums"].active) .forum-card>.directory-note {
  grid-column:1/-1!important;
  display:block!important;
}
@media(max-width:850px) {
  :root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-grid {
    grid-template-columns:1fr!important;
  }
}
@media(max-width:520px) {
  :root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card {
    grid-template-columns:1fr!important;
    grid-template-areas:"heading" "facts" "contact" "notes"!important;
  }
  :root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card-contact {
    padding-top:8px!important;
    border-top:1px solid var(--r26-line)!important;
  }
}

/* ===============================================================
   V11 · APPLE-INSPIRED DIRECTORY CELLS
   Component styles are semantic: no per-person/per-NUR CSS.
   Gentle grouped surfaces, 1px separators, accessory copy controls.
   =============================================================== */

/* Only the professional category gets a focused two-column directory.
   Other Comunicação categories keep their existing 3-column arrangement. */
:root:root body.app-communication #directoryResults[data-directory-layout="experts"]{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:start!important;
  gap:14px!important;
}
:root:root body.app-communication .directory-card-expert{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  gap:0!important;
  margin:0!important;
  padding:19px 20px!important;
  border:1px solid var(--r26-line)!important;
  border-radius:20px!important;
  background:color-mix(in srgb,var(--r26-surface) 92%,transparent)!important;
  box-shadow:var(--r26-shadow-xs)!important;
}
:root body.app-communication .directory-card-expert .expert-head{
  display:flex;align-items:center;gap:12px;min-width:0;
  padding:0 0 15px;
}
:root body.app-communication .directory-card-expert .expert-avatar{
  display:grid;place-items:center;flex:0 0 42px;
  width:42px;height:42px;border-radius:13px;
  background:color-mix(in srgb,var(--r26-accent) 8%,var(--r26-surface-2));
  color:var(--r26-accent);font-size:19px;
}
:root body.app-communication .directory-card-expert .expert-identity{min-width:0}
:root body.app-communication .directory-card-expert .expert-eyebrow{
  display:block;color:var(--r26-muted);font-size:9px;
  font-weight:720;letter-spacing:.065em;margin-bottom:4px;
}
:root:root body.app-communication .directory-card-expert h2{
  margin:0!important;
  color:var(--r26-text)!important;
  font-size:14px!important;
  line-height:1.38!important;
  font-weight:700!important;
  letter-spacing:-.015em!important;
  white-space:normal!important;
  display:block!important;
  overflow:visible!important;
  -webkit-line-clamp:unset!important;
}
:root body.app-communication .directory-card-expert .expert-main{
  border-top:1px solid var(--r26-line);
  padding-top:13px;
  min-width:0;
}
:root body.app-communication .directory-card-expert .expert-meta-grid{
  display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  gap:14px;min-width:0;
}
:root body.app-communication .directory-card-expert .expert-field{min-width:0}
:root body.app-communication .directory-card-expert .expert-field-label{
  display:block;margin-bottom:6px;
  color:var(--r26-muted);font-size:10px;
  line-height:1.25;font-weight:640;letter-spacing:.025em;
}
:root body.app-communication .directory-card-expert .expert-field-value{
  min-width:0;font-size:11px;color:var(--r26-text);
}
:root body.app-communication .directory-card-expert .expert-inline-item{
  display:flex;align-items:center;justify-content:space-between;
  gap:5px;min-width:0;min-height:29px;
}
:root body.app-communication .directory-card-expert :is(
  .expert-inline-item a,.expert-registration,.expert-phone a
){
  display:block;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--r26-text);font-size:11px;
  font-weight:640;line-height:1.35;text-decoration:none;
}
:root body.app-communication .directory-card-expert .expert-inline-item a:hover,
:root body.app-communication .directory-card-expert .expert-phone a:hover{
  color:var(--r26-accent);text-decoration:underline;
}
:root:root body.app-communication .directory-card-expert .directory-inline-copy{
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  flex:0 0 28px!important;
  width:28px!important;min-width:28px!important;max-width:28px!important;
  height:28px!important;min-height:28px!important;max-height:28px!important;
  margin:0!important;padding:0!important;
  border:1px solid transparent!important;border-radius:8px!important;
  background:transparent!important;color:var(--r26-muted)!important;
  font-size:13px!important;line-height:1!important;
  white-space:nowrap!important;cursor:pointer;
  transition:background-color .16s,border-color .16s,color .16s;
}
@media(hover:hover) and (pointer:fine){
  :root body.app-communication .directory-card-expert .directory-inline-copy:hover{
    background:var(--r26-surface-2);color:var(--r26-accent);
    border-color:var(--r26-line);
  }
}
:root body.app-communication .directory-card-expert .directory-inline-copy:focus-visible{
  outline:2px solid var(--r26-accent)!important;
  outline-offset:2px!important;
}
:root body.app-communication .directory-card-expert .expert-phone-section{
  min-width:0;margin-top:12px;padding-top:12px;
  border-top:1px solid var(--r26-line);
}
:root body.app-communication .directory-card-expert .expert-phones-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;min-width:0;
}
:root body.app-communication .directory-card-expert .expert-phone{
  display:flex;align-items:center;justify-content:space-between;
  gap:4px;min-width:0;min-height:31px;
  padding:2px 5px 2px 10px;
  background:var(--r26-surface-2);border:1px solid var(--r26-line);
  border-radius:10px;
  font-variant-numeric:tabular-nums;
}
:root body.app-communication .directory-card-expert .expert-unknown{
  color:var(--r26-muted);font-size:11px;
}
:root body.app-communication .directory-card-expert>.directory-note{
  margin-top:11px!important;
}
@media(max-width:900px){
  :root:root body.app-communication #directoryResults[data-directory-layout="experts"]{
    grid-template-columns:minmax(0,1fr)!important;
  }
}
@media(max-width:520px){
  :root body.app-communication .directory-card-expert .expert-meta-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:11px;
  }
  :root body.app-communication .directory-card-expert .expert-phones-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:385px){
  :root body.app-communication .directory-card-expert .expert-phones-grid{
    grid-template-columns:minmax(0,1fr);
  }
}

/* Centrais · phone and direct number form ONE atomic contact value.
   The direct-dial pill is a tiny trailing accessory, not its own row. */
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card-mandate{
  display:grid!important;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)!important;
  grid-template-areas:
    "heading contact"
    "phone phone"
    "notes notes"!important;
  align-items:center!important;align-content:start!important;
  gap:10px 14px!important;
  min-height:0!important;
  padding:16px 18px!important;
}
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card-mandate .directory-card-heading{
  grid-area:heading!important;min-width:0!important;margin:0!important;
}
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card-mandate .directory-card-contact{
  grid-area:contact!important;min-width:0!important;margin:0!important;
}
:root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card-mandate .mandate-phone-strip{
  grid-area:phone!important;
  display:flex!important;flex-direction:row!important;
  align-items:center!important;justify-content:space-between!important;
  gap:9px!important;width:100%!important;min-width:0!important;
  margin:0!important;padding:9px 0 0!important;
  border-top:1px solid var(--r26-line)!important;
}
:root body.app-mandates .mandate-phone-caption{
  flex:0 1 auto;min-width:0;
  color:var(--r26-muted);font-size:10px;
  line-height:1.35;font-weight:590;
  white-space:nowrap;
}
:root body.app-mandates .mandate-phone-values{
  display:inline-flex!important;
  flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:flex-end!important;
  gap:8px!important;min-width:0!important;
  margin-left:auto;
}
:root body.app-mandates .mandate-phone-number{
  display:inline-block;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--r26-text);font-weight:700;
  font-size:11px;line-height:1.35;
  font-variant-numeric:tabular-nums;
}
:root body.app-mandates .mandate-direct-dial{
  display:inline-flex!important;flex:0 0 auto!important;
  align-items:center;gap:5px;
  margin:0!important;padding:5px 7px!important;
  background:var(--r26-surface-2)!important;
  border:1px solid var(--r26-line)!important;
  border-radius:8px!important;
  color:var(--r26-accent)!important;font-weight:760!important;
  font-size:11px!important;
  font-variant-numeric:tabular-nums;
  line-height:1!important;
  white-space:nowrap!important;cursor:pointer;
}
:root body.app-mandates .mandate-direct-dial .ph{
  font-size:10px;opacity:.55;
}
:root body.app-mandates .mandate-direct-dial:hover{
  border-color:var(--r26-accent)!important;
}
:root body.app-mandates .mandate-direct-dial:focus-visible{
  outline:2px solid var(--r26-accent)!important;
  outline-offset:2px!important;
}
@media(max-width:560px){
  :root:root body.app-mandates:not(:has([data-directory-tab="forums"].active)) .directory-card-mandate{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"heading" "contact" "phone" "notes"!important;
  }
}
@media(max-width:390px){
  :root body.app-mandates .mandate-phone-caption{font-size:9px}
  :root body.app-mandates .mandate-phone-values{gap:5px!important}
  :root body.app-mandates .mandate-direct-dial{padding:5px!important}
}

/* Glass controls are optical material, not nested glow layers. */
:root:root[data-theme="glass"] body :is(.directory-card-expert,.directory-card-mandate){
  box-shadow:inset 0 1px 0 rgba(255,255,255,.27),var(--r26-shadow-xs)!important;
}
/* Reference GRERJ: the legal interpretation travels with each editable rubric. */
:root body .g-admin-row-v3 .g-item-rule-field {
  grid-column:1/-1!important;
  min-width:0!important;
}
:root body .g-admin-row-v3 .g-item-rule {
  display:block;width:100%;min-height:66px;resize:vertical;
  line-height:1.55;font-size:12px;
}
