@layer nocturn-visibility, nocturn-fit, nocturn-controls;
.treasurer-connection-badge,.treasurer-home-symbols {display:none;}
@layer nocturn-fit {
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations :is(.finance-obligations-layout,.finance-obligation-overview,.finance-obligation-commands,.finance-obligation-controls),
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations > .finance-toolbar {overflow:visible!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design .heading > #next-meeting-card {display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #next-meeting-date,
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #next-meeting-freshness {width:100%!important;text-align:center!important;align-self:center!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #panel-context-notice::after {content:' · Membri și obligații';}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:auto auto auto auto minmax(0,1fr) auto!important;gap:10px!important;flex:1 1 0!important;min-height:0!important;overflow:hidden!important;padding:0!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations :is(.finance-obligations-layout,.finance-obligation-overview,.finance-obligation-commands,.finance-obligation-controls),
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations > .finance-toolbar {display:contents!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-obligation-commands > .panel-heading {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations > .finance-toolbar > label {grid-column:1!important;grid-row:2!important;display:flex!important;align-items:center!important;gap:10px!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations #finance-takeover {grid-column:3!important;grid-row:2!important;justify-self:end;width:280px!important;max-width:100%!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-obligation-overview > .panel-heading {grid-column:2!important;grid-row:2!important;justify-content:center!important;align-items:center!important;background:transparent!important;border:0!important;padding:0!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-obligation-overview h2 {font-size:30px!important;color:#d4ba6b!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-obligation-overview .finance-stats {grid-column:1/-1!important;grid-row:3!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;padding:0!important;background:transparent!important;border:0!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-stats .stat {padding:12px!important;min-height:104px!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-stats .stat-label {font-size:14px!important;min-height:22px!important;padding-right:34px!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-stats .stat-detail {font-size:12px!important;line-height:18px!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-stats .stat-value {display:inline-flex!important;width:auto!important;max-width:100%!important;box-sizing:border-box;padding:5px 10px!important;margin:5px 0!important;border-radius:12px!important;background:#ffe3a1!important;color:#101b39!important;font:500 clamp(18px,1.7vw,28px)/1.15 Arial,sans-serif!important;white-space:nowrap!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-members {grid-column:1!important;grid-row:4!important;max-width:420px!important;min-width:0!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-rules {grid-column:3!important;grid-row:4!important;justify-self:end;width:min(420px,100%)!important;min-width:0!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations :is(.finance-members,.finance-rules) > .compact-summary {min-height:60px!important;padding:8px 10px!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations :is(.finance-members,.finance-rules) > .compact-summary h2 {flex:1!important;min-width:0!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations :is(.finance-members,.finance-rules) > .compact-summary .compact-launcher {width:100%!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations #finance-add-obligation {grid-column:2!important;grid-row:6!important;justify-self:center;width:196px!important;margin:0 0 12px!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .treasurer-home-symbols {display:block!important;grid-column:1/-1!important;grid-row:5!important;width:100%!important;height:100%!important;min-height:0!important;max-height:280px;align-self:center;pointer-events:none;overflow:hidden;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations.compact-card {display:block!important;flex:0 0 auto!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations.compact-card > .workspace-dialog > .compact-body {overflow-y:auto!important;overflow-x:hidden!important;display:grid!important;gap:12px!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations > .finance-workspace-tabs {grid-column:1/-1!important;grid-row:1!important;}
 @media(max-width:1023px){
  :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-obligation-overview > .panel-heading {display:none!important;}
  :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations #finance-takeover {grid-column:2!important;}
  :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-obligation-overview .finance-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-rules {grid-column:2!important;}
  :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations #finance-add-obligation {grid-column:1/-1!important;}
 }
}
@layer nocturn-visibility {
 :root.nocturn-theme :is([hidden],.hidden){display:none!important;}
}
/* Nocturn · apron palette approved 17 October 2026. Presentation only; nodes/handlers stay intact. */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('/nocturn-cormorant.ttf') format('truetype');
}
:root.nocturn-theme, :root.nocturn-theme body, :root.nocturn-theme body.figma-ai-layout {
  color-scheme: dark;
  --nocturn-canvas:#080b26; --nocturn-paper:#111b39; --nocturn-soft:#172a50;
  --nocturn-header:#0b1230; --nocturn-line:#8d7945; --nocturn-ink:#fafbff;
  --nocturn-muted:#c3cbdf; --nocturn-action:#172a50; --nocturn-label:#fff;
  --nocturn-gold:#d4ba6b; --nocturn-warning:#f0a269; --nocturn-row-hover:#24375f;
  --navy:var(--nocturn-action); --gold:var(--nocturn-gold); --cream:var(--nocturn-canvas);
  --ink:var(--nocturn-ink); --muted:var(--nocturn-muted); --border:var(--nocturn-line);
  --white:var(--nocturn-paper); --green:var(--nocturn-gold); --amber:var(--nocturn-warning);
  --ux-background:var(--nocturn-canvas) !important; --ux-surface:var(--nocturn-paper) !important;
  --ux-text:var(--nocturn-ink) !important; --ux-muted:var(--nocturn-muted) !important;
  --ux-navy:var(--nocturn-action) !important; --ux-on-navy:var(--nocturn-label) !important;
  --ux-gold:var(--nocturn-gold); --ux-edge:var(--nocturn-line); --ux-focus:#f0d58c;
  --ux-error:var(--nocturn-warning);
  --ux-heading:'Cormorant Garamond',Georgia,serif; --ux-radius:6px;
  --member-navy:var(--nocturn-action);
}
/* White information surfaces retain their own readable palette, including nested legacy UI. */
:root.nocturn-theme body :is(.stat,.stat-card,.admin-card,.compact-card,.compact-summary,.finance-stats,.finance-obligation-overview,.date-tile,.avatar,.badge,.counter,.change-mark,.admin-note,#next-meeting-card) {
  color-scheme:light;
  --nocturn-paper:#fafbff; --nocturn-soft:#fafbff; --nocturn-ink:#101a3a;
  --nocturn-muted:#43516f; --nocturn-gold:#87651c; --nocturn-line:#a68b47;
  --nocturn-row-hover:#edf0f8;
  --ink:var(--nocturn-ink); --muted:var(--nocturn-muted); --border:var(--nocturn-line);
  --white:var(--nocturn-paper); --cream:var(--nocturn-paper); --gold:var(--nocturn-gold);
  --ux-background:var(--nocturn-paper) !important; --ux-surface:var(--nocturn-paper) !important;
  --ux-text:var(--nocturn-ink) !important; --ux-muted:var(--nocturn-muted) !important;
  --ux-edge:var(--nocturn-line); --ux-gold:var(--nocturn-gold); --ux-focus:#87651c;
}
:root.nocturn-theme { background:var(--nocturn-canvas); }
:root.nocturn-theme body {
  background:var(--nocturn-canvas) !important; color:var(--nocturn-ink) !important;
  font-size:14px; line-height:1.45;
}
:root.nocturn-theme body :where(p,span,label,small,b,strong,li,dt,dd,td,th,legend,h1,h2,h3,h4) { color:inherit; }
:root.nocturn-theme body :is(h1,h2,h3,h4,.brand strong,.stat-value,.form-section-title) {
  font-family:var(--ux-heading) !important; font-weight:500 !important; color:var(--nocturn-ink) !important;
}
:root.nocturn-theme body :is(h1,.heading h1) { font-size:clamp(26px,2.65vw,36px); line-height:1.12; }
:root.nocturn-theme body :is(h2,.panel-heading h2) { font-size:24px; line-height:1.2; }
:root.nocturn-theme body :is(.small-muted,.eyebrow,.person-sub,.stat-label,.stat-detail,.admin-source,.admin-id,.admin-identifier,.archive-reason,.panel-foot,.finance-note,.finance-muted,.member-status) { color:var(--nocturn-muted) !important; }
:root.nocturn-theme body :is(.panel,.finance-panel,.stat,.stat-card,.admin-card,.settings-card,.compact-card,.compact-summary,.finance-preview,.admin-explanation,.notice,.hero,.timeline-item,.meeting-calendar-panel,.admin-home-health,.admin-home-pane,.admin-popup-pane,.admin-window-body) {
  background:var(--nocturn-paper) !important; color:var(--nocturn-ink) !important;
  border-color:var(--nocturn-line) !important; border-radius:7px !important; box-shadow:none;
}
:root.nocturn-theme body :is(.stat,.stat-card,.admin-card,.finance-stats,.finance-obligation-overview,.date-tile,.avatar,.badge,.counter,.change-mark,.admin-note) {
  background:var(--nocturn-soft) !important; color:var(--nocturn-ink) !important; border-color:var(--nocturn-line) !important;
}
:root.nocturn-theme body :is(.stat-value,.stat-card strong,.counter,.compact-count,.date-tile b,.finance-stat-value) { color:var(--nocturn-gold) !important; }
:root.nocturn-theme body :is(.error,[data-state=error],.admin-device-indicator.bad,.finance-warning,.warning) {
  background:#392f2a !important; color:var(--nocturn-warning) !important; border-color:#976948 !important;
}
:root.nocturn-theme body :is(.success,.good,[data-state=success]) { background:var(--nocturn-soft) !important; color:var(--nocturn-ink) !important; }
:root.nocturn-theme body :is(.dialog-heading,.dialog-footer,.admin-window-heading,.admin-dialog-nav,.panel-heading,.toolbar,.panel-foot,.form-section-title) {
  background:var(--nocturn-paper) !important; color:var(--nocturn-ink) !important; border-color:var(--nocturn-line) !important;
}
:root.nocturn-theme body :is(.panel-heading,.toolbar,.dialog-heading,.dialog-footer) { padding:14px 18px; gap:10px; }
:root.nocturn-theme body :is(table,thead,tbody,tr,td) { background:transparent !important; color:var(--nocturn-ink); border-color:var(--nocturn-line) !important; }
:root.nocturn-theme body :is(th,.finance-table-head) { background:var(--nocturn-soft) !important; color:var(--nocturn-muted) !important; border-color:var(--nocturn-line) !important; }
:root.nocturn-theme body tbody tr:hover { background:var(--nocturn-row-hover) !important; }
:root.nocturn-theme body :is(.search,.admin-inset,.finance-inset,.officer-grid,.finance-note,.import-preview,.admin-list article,pre,code) { background:var(--nocturn-paper) !important; color:var(--nocturn-ink) !important; border-color:var(--nocturn-line) !important; }
:root.nocturn-theme body :is(input:not([type=checkbox]):not([type=radio]),select,textarea,option) {
  background:var(--nocturn-soft) !important; color:var(--nocturn-ink) !important;
  border:1px solid var(--nocturn-line) !important; border-radius:5px !important;
  box-sizing:border-box; min-height:36px !important; padding:7px 10px;
  max-width:min(100%,360px); font-size:14px !important; line-height:20px;
}
:root.nocturn-theme body input::placeholder,:root.nocturn-theme body textarea::placeholder { color:var(--nocturn-muted); opacity:1; }
:root.nocturn-theme body :is(input[type=checkbox],input[type=radio]) { accent-color:var(--nocturn-gold); }
:root.nocturn-theme body textarea { height:auto; max-width:640px; min-height:92px !important; }
:root.nocturn-theme body :is(.field,.officer-field) { max-width:360px; min-width:0; color:var(--nocturn-ink) !important; }
:root.nocturn-theme body :is(.field:has(textarea),.search) { max-width:640px; }
:root.nocturn-theme body .search input { max-width:100%; }
:root.nocturn-theme body :is(button,a.primary,a.secondary,a[role=button],input[type=submit],summary,.admin-menu-grid a,.admin-dialog-nav a,.admin-actions a,.heading-actions a,.dialog-footer a,.sidebar nav a) {
  box-sizing:border-box; width:128px; max-width:100%; min-width:0; flex:0 0 auto;
  min-height:36px !important; height:auto; padding:7px 12px !important;
  background:var(--nocturn-action) !important; color:var(--nocturn-label) !important;
  border:1px solid #7584a8 !important; border-radius:5px !important;
  font-size:14px !important; font-weight:500 !important; line-height:20px;
  text-align:center; white-space:normal; overflow-wrap:break-word; text-decoration:none;
  box-shadow:none;
}
:root.nocturn-theme body :is(button.primary,a.primary,input[type=submit],.compact-launcher,.gold-link) { width:160px !important; }
:root.nocturn-theme body :is(.icon-button,.section-help-button,.section-help-floating) {
  width:32px !important; min-width:32px !important; height:32px !important; min-height:32px !important; padding:4px !important;
}
:root.nocturn-theme body :is(#page-back,#import-close,#import-commit,#view-history,#lifecycle-back,.history-pagination button) { width:128px !important; }
:root.nocturn-theme body :is(button,a.primary,a.secondary,summary,.admin-menu-grid a,.sidebar nav a):hover { background:#263e6c !important; color:var(--nocturn-label) !important; }
:root.nocturn-theme body :is(button,input[type=submit]):disabled { background:#26314e !important; color:#b4bdcf !important; opacity:.7; }
:root.nocturn-theme body :is(button,a,summary,input,select,textarea):focus-visible { outline:2px solid var(--ux-focus) !important; outline-offset:3px; }
:root.nocturn-theme body :is([aria-pressed=true],.sidebar nav button.active,.sidebar nav a.is-active) { box-shadow:inset 0 -2px var(--nocturn-gold) !important; }
:root.nocturn-theme body :is(.button-stack,.member-actions,.admin-actions,.finance-actions,.meeting-actions,.heading-actions,.history-pagination) {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:8px;
}
:root.nocturn-theme body .button-stack { flex-direction:row; margin:16px 0; }
:root.nocturn-theme body .button-stack > button { width:160px !important; margin:0; }
:root.nocturn-theme body summary { display:inline-flex; align-items:center; justify-content:center; gap:6px; width:160px; cursor:pointer; }
:root.nocturn-theme body :is(.ai-mobile-filters,.ai-nav-group,.panel-action-group) { margin:0; padding:0; border:0; background:transparent !important; }
:root.nocturn-theme body .panel-action-group-body { background:var(--nocturn-paper) !important; border-color:var(--nocturn-line) !important; }
:root.nocturn-theme body .admin-menu-grid { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; }
:root.nocturn-theme body .admin-menu-grid a { width:160px !important; min-height:44px !important; }

/* Every static or subsequently-created native dialog uses the same content-sized system. */
:root.nocturn-theme body dialog {
  position:fixed !important; inset:0 !important; margin:auto !important;
  width:min(560px,calc(100vw - 32px)) !important; max-width:calc(100vw - 32px) !important;
  height:fit-content !important; min-height:0 !important; max-height:calc(100dvh - 32px) !important;
  padding:0; overflow:hidden; box-sizing:border-box;
  color:var(--nocturn-ink) !important; background:var(--nocturn-paper) !important;
  border:1px solid var(--nocturn-line) !important; border-radius:9px !important;
  box-shadow:0 20px 64px #0008 !important;
}
:root.nocturn-theme body dialog[open] { display:flex; flex-direction:column; }
:root.nocturn-theme body dialog::backdrop { background:#030617bb; backdrop-filter:blur(3px); }
:root.nocturn-theme body dialog > form { display:flex; flex-direction:column; min-height:0; max-height:calc(100dvh - 34px); overflow:hidden; }
:root.nocturn-theme body dialog :is(.dialog-heading,.dialog-footer,.admin-window-heading) { flex:0 0 auto; margin:0; }
:root.nocturn-theme body dialog :is(.dialog-scroll,.compact-body,.admin-window-body,#admin-section-content) {
  flex:0 1 auto; height:auto !important; min-height:0 !important; max-height:none !important;
  padding:18px 22px; overflow:auto; background:var(--nocturn-paper) !important; color:var(--nocturn-ink) !important;
}
/* Contact has no inner scroll wrapper; keep its messages and reply form in the dialog's flow. */
:root.nocturn-theme body dialog.contact-conversation-dialog[open] {
  display:block; overflow:auto; padding:18px 22px;
}
:root.nocturn-theme body dialog.contact-conversation-dialog > form {
  display:grid; max-height:none; overflow:visible;
}
:root.nocturn-theme body .contact-conversation-messages article {
  background:var(--nocturn-soft) !important; color:var(--nocturn-ink) !important; border-color:var(--nocturn-line) !important;
}
:root.nocturn-theme body .contact-conversation-messages article p:first-child { color:var(--nocturn-muted) !important; }
:root.nocturn-theme body dialog .dialog-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; }
:root.nocturn-theme body dialog .dialog-heading h2 { font-size:28px; line-height:1.15; }
:root.nocturn-theme body dialog:has(table,.finance-table,.table-wrap:not(:empty)) { width:min(960px,calc(100vw - 32px)) !important; }
:root.nocturn-theme body dialog:is(#member-dialog,.finance-dialog-wide):not(:has(table)) { width:min(760px,calc(100vw - 32px)) !important; }
:root.nocturn-theme body dialog:is(#member-lifecycle-dialog,#admin-action-dialog,.identity-dialog) { width:min(440px,calc(100vw - 32px)) !important; }
:root.nocturn-theme body #import-dialog { width:min(560px,calc(100vw - 32px)) !important; }
:root.nocturn-theme body #import-dialog:has(#import-advanced[open],#import-review:not([hidden])) { width:min(960px,calc(100vw - 32px)) !important; }
:root.nocturn-theme body #import-dialog input[type=file] { width:360px; max-width:100%; }
:root.nocturn-theme body input::file-selector-button { background:var(--nocturn-action); color:var(--nocturn-label); border:0; border-radius:4px; padding:5px 9px; margin-right:8px; }
:root.nocturn-theme body dialog .settings-card { height:auto !important; min-height:0 !important; padding:0; border:0; margin:0; }
:root.nocturn-theme body .workspace-dialog .compact-body > :is(.eyebrow,h2) { margin-top:0; }
:root.nocturn-theme body .workspace-dialog .compact-body p { margin:10px 0; }
:root.nocturn-theme body dialog .form-grid { gap:12px 18px; }
:root.nocturn-theme body .meeting-day { width:auto; min-width:0; }
:root.nocturn-theme body :is(.meeting-cell,.meeting-day,.meeting-time-button,.meeting-context,.meeting-legend) { border-color:var(--nocturn-line) !important; }
:root.nocturn-theme body :is(.meeting-cell,.meeting-context,.meeting-legend) { background:var(--nocturn-paper) !important; color:var(--nocturn-ink) !important; }
:root.nocturn-theme body .meeting-day.is-selected { box-shadow:inset 0 -3px var(--nocturn-gold); }
:root.nocturn-theme body :is(.login-panel,.startup-panel) { background:var(--nocturn-canvas) !important; color:var(--nocturn-ink) !important; }
:root.nocturn-theme body footer { color:var(--nocturn-muted) !important; background:transparent !important; border-color:var(--nocturn-line) !important; }

/* Identity lives in a compact upper band; commands remain in the band beneath it. */
:root.nocturn-theme body.figma-ai-layout:not(.signed-out) { display:flex; flex-direction:column; height:100dvh; min-height:0; overflow:hidden; }
:root.nocturn-theme body.figma-ai-layout > .sidebar,
:root.nocturn-theme body.figma-ai-layout.admin-page #admin-sidebar {
  position:relative !important; inset:auto !important; display:grid; grid-template-columns:minmax(220px,1fr) auto auto;
  width:100%; height:auto; min-height:0; padding:14px 28px 0; gap:12px 28px;
  flex:0 0 auto; overflow:visible; border-radius:0 !important;
  background:var(--nocturn-header) !important; border:0; box-sizing:border-box;
}
:root.nocturn-theme body.figma-ai-layout .sidebar .brand { grid-column:1; display:flex; flex-direction:row; align-items:center; gap:12px; padding:0; border:0; text-align:left; min-height:48px; }
:root.nocturn-theme body.figma-ai-layout .sidebar .brand img { width:32px; height:44px; margin:0; object-fit:contain; }
:root.nocturn-theme body.figma-ai-layout .sidebar .brand strong { font-size:26px; line-height:1.1; color:var(--nocturn-gold) !important; }
:root.nocturn-theme body.figma-ai-layout .sidebar .brand span { font-size:12px; line-height:18px; margin:3px 0 0; color:var(--nocturn-muted); }
:root.nocturn-theme body .mlnr-brand { grid-column:2; display:flex; gap:9px; align-items:center; max-width:220px; margin:0; color:var(--nocturn-muted); }
:root.nocturn-theme body .mlnr-brand img { width:44px; height:48px; object-fit:contain; filter:sepia(1) saturate(1.9) brightness(.9) drop-shadow(0 0 3px #d4ba6b25); }
:root.nocturn-theme body .mlnr-brand figcaption { max-width:146px; font-size:11px; line-height:16px; }
:root.nocturn-theme body.figma-ai-layout .sidebar .provider-brand { grid-column:3; display:flex !important; align-items:center; gap:9px; width:auto; min-width:0; max-width:160px; height:auto; min-height:0; padding:3px 0; margin:0; border:0; border-radius:0; background:none; box-shadow:none; }
:root.nocturn-theme body .nocturn-logo-plate { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; flex:none; padding:0; border-radius:7px; background:linear-gradient(135deg,#e0c879,#b99a4c); box-shadow:0 0 12px #d4ba6b26,inset 0 1px 0 #f1dfaa; overflow:hidden; }
:root.nocturn-theme body.figma-ai-layout .sidebar .provider-brand > .nocturn-logo-plate { display:inline-flex !important; position:static; inset:auto; text-transform:none; letter-spacing:normal; }
:root.nocturn-theme body.figma-ai-layout .sidebar .provider-brand { filter:none; }
:root.nocturn-theme body.figma-ai-layout .sidebar .provider-brand img { width:44px; height:44px; margin:0; object-fit:contain; border-radius:0; mix-blend-mode:multiply; }
:root.nocturn-theme body.figma-ai-layout .sidebar .provider-brand b { color:var(--nocturn-gold); font-size:14px; font-weight:500 !important; text-shadow:0 0 9px #d4ba6b35; }
:root.nocturn-theme body.figma-ai-layout .sidebar .provider-brand > div { padding:0; }
:root.nocturn-theme body.figma-ai-layout .sidebar .provider-brand span:not(.nocturn-logo-plate),
:root.nocturn-theme body.figma-ai-layout .sidebar .side-bottom { display:none; }
:root.nocturn-theme body.figma-ai-layout .sidebar > nav,
:root.nocturn-theme body.figma-ai-layout.admin-page #admin-sidebar > nav {
  grid-column:1/-1; display:flex; flex-direction:row; flex-wrap:wrap; align-items:flex-start; gap:8px;
  width:calc(100% + 56px); margin:0 -28px; padding:10px 28px;
  background:var(--nocturn-soft); box-sizing:border-box;
}
:root.nocturn-theme body.figma-ai-layout .sidebar nav :is(button,a,summary) { width:128px; min-height:36px !important; padding:7px 10px !important; text-align:center; background:var(--nocturn-action) !important; }
:root.nocturn-theme body.figma-ai-layout .sidebar nav > :is(button,a):first-child { width:96px; }
:root.nocturn-theme body.figma-ai-layout .sidebar nav > .ai-nav-group { position:relative; width:auto; }
:root.nocturn-theme body.figma-ai-layout .sidebar > nav .ai-nav-group > div { position:absolute; top:calc(100% + 6px); left:0; z-index:40; width:204px; padding:10px; margin:0; display:flex; flex-direction:column; gap:6px; border:1px solid var(--nocturn-line); border-radius:7px; background:var(--nocturn-paper); box-shadow:0 8px 20px #0005; }
:root.nocturn-theme body.figma-ai-layout .sidebar > nav .ai-nav-group:not([open]) > div { display:none; }
:root.nocturn-theme body.figma-ai-layout .sidebar nav .ai-nav-group > div button { width:180px; }
:root.nocturn-theme body.figma-ai-layout > main,
:root.nocturn-theme body.figma-ai-layout.admin-page #admin-app {
  margin:0; width:100%; height:auto; min-height:0; flex:1 1 0; padding:14px 28px 0; gap:12px; overflow:auto; box-sizing:border-box;
}
:root.nocturn-theme body.figma-ai-layout .topbar { font-size:12px; min-height:36px; }
:root.nocturn-theme body.figma-ai-layout .heading { min-height:64px; padding:0; gap:14px; }
:root.nocturn-theme body.figma-ai-layout main > .heading #next-meeting-card { background:var(--nocturn-soft) !important; color:var(--nocturn-ink) !important; border-color:var(--nocturn-line) !important; border-radius:7px; }
:root.nocturn-theme body.figma-ai-layout #next-meeting-card small { color:var(--nocturn-muted) !important; }
:root.nocturn-theme body.figma-ai-layout .heading-actions { gap:8px; flex-direction:row; }
:root.nocturn-theme body.figma-ai-layout .heading.has-next-meeting { grid-template-columns:minmax(200px,1fr) minmax(240px,330px) auto; gap:16px; }
:root.nocturn-theme body.figma-ai-layout .heading-summary { white-space:normal !important; }
:root.nocturn-theme body.figma-ai-layout .heading h1 { font-size:clamp(26px,2.65vw,36px); line-height:1.12; color:var(--nocturn-gold) !important; }
:root.nocturn-theme body.figma-ai-layout #dashboard { position:relative; display:grid; grid-template-columns:1fr; grid-template-rows:min-content min-content auto; gap:16px !important; flex:0 0 auto; min-height:min-content; }
:root.nocturn-theme body.figma-ai-layout #dashboard::after { content:''; position:absolute; right:0; bottom:8px; width:min(33%,430px); aspect-ratio:382/213.008; background:url('/nocturn-temple.svg') center/contain no-repeat; opacity:.55; pointer-events:none; z-index:0; }
:root.nocturn-theme body.figma-ai-layout #dashboard #stats { position:relative; z-index:1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
:root.nocturn-theme body.figma-ai-layout #dashboard .stat { min-height:90px; padding:14px 16px; }
:root.nocturn-theme body.figma-ai-layout #dashboard .stat-label { padding-right:36px; min-height:0; }
:root.nocturn-theme body.figma-ai-layout #dashboard .stat > .section-help-floating { top:10px; right:10px; }
:root.nocturn-theme body.figma-ai-layout #dashboard > .two-col { position:relative; z-index:1; width:65%; display:grid; grid-template-columns:1fr; gap:8px; }
:root.nocturn-theme body.figma-ai-layout #dashboard .compact-summary { min-height:58px; padding:10px 14px; }
:root.nocturn-theme body.figma-ai-layout #dashboard .dashboard-actions { position:relative; z-index:1; display:flex; align-self:end; margin:0; gap:8px; }
:root.nocturn-theme body.figma-ai-layout #dashboard #missing-note { width:160px; }
:root.nocturn-theme body.figma-ai-layout #dashboard #missing-note .compact-summary { min-height:36px; padding:0; background:transparent !important; }
:root.nocturn-theme body.figma-ai-layout main:has(> #dashboard:not(.hidden)) { overflow:auto; }
:root.nocturn-theme body.figma-ai-layout main > footer { padding:8px 0; margin:0; font-size:11px; }

@media(max-width:1023px) {
  :root.nocturn-theme body.figma-ai-layout > .sidebar,
  :root.nocturn-theme body.figma-ai-layout.admin-page #admin-sidebar { display:grid; grid-template-columns:minmax(0,1fr) auto auto; padding:10px 16px; gap:8px 16px; min-height:68px; }
  :root.nocturn-theme body.figma-ai-layout .sidebar .brand { padding:0; min-width:0; }
  :root.nocturn-theme body.figma-ai-layout .sidebar .brand strong { font-size:22px; }
  :root.nocturn-theme body .mlnr-brand { grid-column:2; }
  :root.nocturn-theme body .mlnr-brand figcaption { display:none; }
  :root.nocturn-theme body.figma-ai-layout .sidebar .provider-brand { grid-column:3; margin-right:150px; }
  :root.nocturn-theme body.figma-ai-layout .ai-menu-button { position:absolute; top:18px; right:16px; width:128px; }
  :root.nocturn-theme body.figma-ai-layout > main,:root.nocturn-theme body.figma-ai-layout.admin-page #admin-app { padding:12px 16px 0; }
  :root.nocturn-theme body.figma-ai-layout .heading.has-next-meeting { display:flex !important; flex-wrap:wrap; }
  :root.nocturn-theme body.figma-ai-layout .heading.has-next-meeting .heading-summary { flex:1 1 300px; }
  :root.nocturn-theme body.figma-ai-layout .heading-actions { flex-wrap:wrap; }
  :root.nocturn-theme body.figma-ai-layout #dashboard > .two-col { width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); }
  :root.nocturn-theme body.figma-ai-layout #dashboard::after { display:none; }
  :root.nocturn-theme body.figma-ai-layout .ai-navigation-dialog nav { display:flex; flex-direction:column; gap:8px; overflow:auto; width:auto; }
}
@media(max-width:600px) {
  :root.nocturn-theme body.figma-ai-layout > .sidebar,
  :root.nocturn-theme body.figma-ai-layout.admin-page #admin-sidebar { min-height:76px; grid-template-columns:minmax(0,1fr) 38px 42px; gap:6px; padding:10px 12px; }
  :root.nocturn-theme body.figma-ai-layout .sidebar .brand { align-items:center; padding:0 68px 0 0; gap:6px; min-height:44px; }
  :root.nocturn-theme body.figma-ai-layout .sidebar .brand img { display:none; }
  :root.nocturn-theme body.figma-ai-layout .sidebar .brand strong { font-size:19px; }
  :root.nocturn-theme body.figma-ai-layout .sidebar .brand span { font-size:11px; }
  :root.nocturn-theme body .mlnr-brand { grid-column:2; }
  :root.nocturn-theme body .mlnr-brand img { width:34px; height:40px; }
  :root.nocturn-theme body.figma-ai-layout .sidebar .provider-brand { grid-column:3; margin:0; }
  :root.nocturn-theme body.figma-ai-layout .sidebar .provider-brand > div { display:none; }
  :root.nocturn-theme body .nocturn-logo-plate,:root.nocturn-theme body.figma-ai-layout .sidebar .provider-brand img { width:38px; height:38px; }
  :root.nocturn-theme body.figma-ai-layout .ai-menu-button { top:26px; right:98px; width:66px; min-width:0; padding:6px !important; }
  :root.nocturn-theme body.figma-ai-layout > main,:root.nocturn-theme body.figma-ai-layout.admin-page #admin-app { padding:10px 12px 0; gap:8px; }
  :root.nocturn-theme body.figma-ai-layout .session-controls { flex-wrap:wrap; }
  :root.nocturn-theme body.figma-ai-layout .heading h1 { font-size:25px; }
  :root.nocturn-theme body.figma-ai-layout .heading-actions { width:100%; }
  :root.nocturn-theme body.figma-ai-layout #dashboard #stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  :root.nocturn-theme body.figma-ai-layout #dashboard .stat { min-height:76px; padding:8px; }
  :root.nocturn-theme body.figma-ai-layout #dashboard .stat-label { font-size:12px; min-height:32px; }
  :root.nocturn-theme body.figma-ai-layout #dashboard .stat-detail { display:none; }
  :root.nocturn-theme body.figma-ai-layout #dashboard .stat-value { font-size:26px; }
  :root.nocturn-theme body.figma-ai-layout #dashboard .compact-summary { padding:8px; min-height:60px; }
  :root.nocturn-theme body.figma-ai-layout #dashboard .two-col .compact-launcher { width:128px !important; }
  :root.nocturn-theme body.figma-ai-layout #dashboard .dashboard-actions > :is(#missing-note,#view-history) { width:calc((100vw - 32px)/2) !important; max-width:160px; }
  :root.nocturn-theme body.figma-ai-layout #dashboard #missing-note .compact-launcher { width:100% !important; }
  :root.nocturn-theme body :is(.field,.officer-field,input,select,textarea) { max-width:100%; }
  :root.nocturn-theme body dialog :is(.dialog-scroll,.compact-body,.admin-window-body,#admin-section-content) { padding:14px 16px; }
  :root.nocturn-theme body dialog .dialog-heading h2 { font-size:25px; }
}
@media(pointer:coarse) {
  :root.nocturn-theme body :is(button,summary,a.primary,a.secondary,.sidebar nav a,.admin-menu-grid a) { min-height:44px !important; }
  :root.nocturn-theme body :is(.icon-button,.section-help-button,.section-help-floating) { width:44px !important; min-width:44px !important; height:44px !important; min-height:44px !important; }
  :root.nocturn-theme body :is(input,select,textarea) { font-size:16px !important; min-height:44px !important; }
}
@media(prefers-reduced-motion:reduce) { :root.nocturn-theme body .provider-brand { animation:none; } }
@media print {
  :root.nocturn-theme body { height:auto; overflow:visible; }
  :root.nocturn-theme body .sidebar { position:static !important; }
}

/* Layered important geometry wins over the previous per-role ID overrides. */
@layer nocturn-controls {
  :root.nocturn-theme body :where(button,a.primary,a.secondary,summary,.admin-menu-grid a,.sidebar nav a) {
    width:128px !important; min-height:36px !important; padding:7px 10px !important; font-weight:500 !important;
  }
  :root.nocturn-theme body :is(.nocturn-action-small) { width:96px !important; }
  :root.nocturn-theme body :is(.nocturn-action-wide,.primary,.compact-launcher) { width:160px !important; }
  :root.nocturn-theme body :is(.icon-button,.section-help-button,.section-help-floating) { width:32px !important; min-width:32px !important; min-height:32px !important; height:32px !important; padding:4px !important; }
  :root.nocturn-theme body :is(.meeting-day,.meeting-time-button) { width:auto !important; }
  :root.nocturn-theme body .button-stack:has(#backup) { display:grid !important; grid-template-columns:minmax(0,1fr) 128px !important; gap:12px !important; align-items:center !important; }
  :root.nocturn-theme body .button-stack:has(#backup) button { width:128px !important; justify-self:end; }
  :root.nocturn-theme body .button-stack:has(#backup) > :not(button):not(.nocturn-backup-label) { grid-column:1/-1; }
  :root.nocturn-theme body .nocturn-backup-label { font-size:14px; color:var(--nocturn-ink); }
  :root.nocturn-theme body.figma-ai-layout .sidebar .brand,
  :root.nocturn-theme body.figma-ai-layout .sidebar .mlnr-brand,
  :root.nocturn-theme body.figma-ai-layout .sidebar .provider-brand { grid-row:1 !important; }
  :root.nocturn-theme body.figma-ai-layout .sidebar > nav { grid-row:2 !important; }
  :root.nocturn-theme body.figma-ai-layout .sidebar .provider-brand { border:0 !important; border-radius:0 !important; background:none !important; }
  :root.nocturn-theme body.figma-ai-layout #dashboard { grid-template-columns:minmax(0,1fr) !important; grid-template-rows:min-content min-content auto !important; grid-auto-flow:row !important; }
  :root.nocturn-theme body.figma-ai-layout #dashboard > :is(#stats,.two-col,.dashboard-actions) { grid-column:1 !important; }
  :root.nocturn-theme body.figma-ai-layout #dashboard > .two-col { width:65% !important; }
  :root.nocturn-theme body.figma-ai-layout #dashboard .dashboard-actions { align-self:end !important; justify-self:start !important; }
  :root.nocturn-theme body :is(#connection-status,#admin-account,#breadcrumb,.separator,.topbar) { color:var(--nocturn-muted) !important; }
  :root.nocturn-theme body footer,:root.nocturn-theme body footer * { font-size:11px !important; line-height:16px !important; letter-spacing:normal !important; color:var(--nocturn-muted) !important; }
  @media(max-width:1023px) {
    :root.nocturn-theme body.figma-ai-layout #dashboard > .two-col { width:100% !important; }
  }
  @media(max-width:600px) {
    :root.nocturn-theme body.figma-ai-layout .ai-menu-button { width:66px !important; }
    :root.nocturn-theme body.figma-ai-layout #dashboard > .two-col { grid-template-columns:minmax(0,1fr) !important; }
    :root.nocturn-theme body.figma-ai-layout #dashboard .two-col .compact-launcher { width:160px !important; }
    :root.nocturn-theme body.figma-ai-layout #dashboard .dashboard-actions #missing-note .compact-launcher { width:100% !important; }
    :root.nocturn-theme body.admin-page #admin-app :is(#admin-summary,#admin-home-health-summary) { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
    :root.nocturn-theme body.admin-page #admin-app :is(#admin-summary,#admin-home-health-summary) > :last-child:nth-child(odd) { grid-column:1/-1 !important; }
    :root.nocturn-theme body.admin-page #admin-app .admin-card strong { overflow-wrap:normal !important; word-break:normal !important; }
    :root.nocturn-theme body.figma-ai-layout #dashboard .stat-label { padding-right:52px !important; }
    :root.nocturn-theme body .finance-toolbar > .field:has(input[name=year]) { display:flex !important; flex-direction:column !important; align-items:flex-start !important; width:148px !important; min-width:148px !important; max-width:148px !important; }
    :root.nocturn-theme body .finance-toolbar input[name=year] { width:128px !important; min-width:128px !important; max-width:128px !important; }
  }
  @media(pointer:coarse) {
    :root.nocturn-theme body :is(button,summary,a.primary,a.secondary,.sidebar nav a,.admin-menu-grid a) { min-height:44px !important; }
    :root.nocturn-theme body :is(.icon-button,.section-help-button,.section-help-floating) { width:44px !important; min-width:44px !important; height:44px !important; min-height:44px !important; }
  }
}
:root.nocturn-theme body .sidebar nav .ai-nav-group[data-active=true] > summary { box-shadow:inset 0 -2px var(--nocturn-gold); }
:root.nocturn-theme body #members td :is(.person-name,.member-name,strong) { display:block; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
/* Completion notices such as “Gata.” use the Nocturn surface without changing progress states. */
:root.nocturn-theme body .operation-progress[data-state=done] {
  background:var(--nocturn-paper) !important; color:var(--nocturn-ink) !important; border-color:var(--nocturn-line) !important;
}


/* Permanent border; outline is reserved for keyboard focus. */
@layer nocturn-controls {
 :root.nocturn-theme body :is(button,a.primary,a.secondary,a[role=button],input[type=button],input[type=submit],input[type=reset],summary,.admin-menu-grid a,.admin-dialog-nav a,.admin-actions a,.heading-actions a,.dialog-footer a,.sidebar nav a),
 :root.nocturn-theme body input::file-selector-button {
  border:3px solid #d4ba6b !important;box-shadow:inset 0 0 0 1px #f1d98b !important;
 }
 :root.nocturn-theme body :where(button,a.primary,a.secondary,summary,.admin-actions a,.admin-dialog-nav a,.admin-menu-grid a,.heading-actions a,.dialog-footer a,.sidebar nav a):where(:hover):where(:not(:disabled):not([aria-disabled=true])) {background:#263759 !important;}
 :root.nocturn-theme body :is(button,a.primary,a.secondary,summary,.admin-actions a,.admin-dialog-nav a,.admin-menu-grid a,.heading-actions a,.dialog-footer a,.sidebar nav a):active:not(:disabled) {background:#0b1530 !important;}
 :root.nocturn-theme body :is([aria-current=page],[aria-pressed=true],[role=tab][aria-selected=true],.sidebar nav button.active,.sidebar nav a.is-active,.ai-nav-group[data-active=true] > summary) {background:#d4ba6b !important;color:#101b39 !important;}
 :root.nocturn-theme body :is(button,a,summary,input):focus-visible {outline:3px solid #77c6ff !important;outline-offset:3px;}
 :root.nocturn-theme body :is(button:disabled,[aria-disabled=true]) {opacity:.45;cursor:not-allowed;background:#15203c !important;color:#c3cbdf !important;}
}
@layer nocturn-controls {
/* A group chooses one standard size; compact icon controls keep their footprint. */
:root.nocturn-theme body :is(.nocturn-action-small,.nocturn-action-medium,.nocturn-action-wide) {box-sizing:border-box;min-height:64px !important;height:64px !important;align-items:center;justify-content:center;white-space:normal !important;text-align:center;line-height:1.25;overflow-wrap:anywhere;}
:root.nocturn-theme body .nocturn-action-small {width:160px !important;}
:root.nocturn-theme body .nocturn-action-medium {width:196px !important;max-width:100% !important;}
:root.nocturn-theme body .nocturn-action-wide {width:224px !important;max-width:100% !important;}
:root.nocturn-theme body :is(.button-row,.dialog-footer,.finance-actions,.toolbar) {gap:10px;flex-wrap:wrap;}
@media(max-width:600px){:root.nocturn-theme body :is(.nocturn-action-medium,.nocturn-action-wide){width:min(196px,100%) !important;} :root.nocturn-theme body .sidebar nav :is(.nocturn-action-wide,.nocturn-action-small){width:100% !important;}}
}
:root.nocturn-theme body .admin-context { padding:14px; border:1px solid var(--nocturn-line); margin-bottom:16px; }
:root.nocturn-theme body :is(#page-back,#admin-section-back) { flex:0 0 auto; }
/* Shared member chooser: the named input stays in its original form. */
.member-picker-field { display:flex; align-items:center; gap:6px; width:100%; max-width:360px; min-width:0; }
.member-picker-field > input { flex:1 1 auto; width:0; min-width:0; max-width:none !important; }
.member-picker-toggle { flex:0 0 auto; }
.member-picker-popup {
  position:fixed; inset:auto; margin:0; box-sizing:border-box; overflow:auto; z-index:10000;
  padding:4px; border:2px solid #d4ba6b; border-radius:6px;
  background:var(--nocturn-paper,#111b39); color:var(--nocturn-ink,#fafbff);
  box-shadow:0 8px 24px #0006; font:14px/1.45 'Segoe UI',Arial,sans-serif;
}
.member-picker-popup[hidden] { display:none !important; }
.member-picker-option { padding:8px 10px; border-radius:3px; cursor:pointer; overflow-wrap:anywhere; }
.member-picker-option:hover,.member-picker-option[aria-selected=true] { background:var(--nocturn-action,#172a50); color:var(--nocturn-label,#fff); }
.member-picker-empty { padding:8px 10px; color:var(--nocturn-muted,#c3cbdf); }

/* Status evidence spans the field grid instead of shrinking inside one cell. */
:root.nocturn-theme body #member-status-details {grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;min-width:0;max-width:none;}
:root.nocturn-theme body #member-status-details[hidden] {display:none !important;}
:root.nocturn-theme body #member-status-details .field {width:100%;min-width:0;max-width:none;}
:root.nocturn-theme body #member-status-details :is(input,textarea) {width:100%;max-width:100%;box-sizing:border-box;}
:root.nocturn-theme body #member-status-history {grid-column:1/-1;white-space:pre-line;overflow-wrap:anywhere;}
@media(max-width:600px){:root.nocturn-theme body #member-status-details{grid-template-columns:minmax(0,1fr);}}
@layer nocturn-controls {
 :root.nocturn-theme body :is(.ai-menu-button,.ai-menu-close,.ai-nav-close) {width:76px !important;min-height:44px !important;height:44px !important;padding:5px !important;}
}

@layer nocturn-controls {
 @media(max-width:600px){
  :root.nocturn-theme body .heading-actions {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;width:100%;max-width:100%;gap:10px;}
  :root.nocturn-theme body .heading-actions > *, :root.nocturn-theme body .member-actions > button {width:100% !important;min-width:0 !important;max-width:100% !important;}
 }
}

/* Fixed viewport geometry. Long content is accessible through native windows. */
@layer nocturn-fit {
 :root.nocturn-theme body.figma-ai-layout:not(.signed-out){height:100dvh!important;min-height:0!important;overflow:hidden!important;}
 :root.nocturn-theme body.figma-ai-layout > main,
 :root.nocturn-theme body.figma-ai-layout.admin-page #admin-app{position:relative;display:flex!important;flex-direction:column;flex:1 1 0!important;min-height:0!important;height:auto!important;overflow:hidden!important;padding:10px 24px 0!important;gap:8px!important;}
 :root.nocturn-theme body.figma-ai-layout .sidebar{padding-top:10px!important;gap:8px 24px!important;}
 :root.nocturn-theme body.figma-ai-layout .sidebar > nav{gap:8px!important;padding-top:6px!important;padding-bottom:6px!important;flex-wrap:nowrap!important;}
 :root.nocturn-theme body :is(.nocturn-action-small,.nocturn-action-medium,.nocturn-action-wide){height:44px!important;min-height:44px!important;padding:2px 10px!important;line-height:1.2!important;font-size:14px!important;box-sizing:border-box!important;}
 :root.nocturn-theme body .nocturn-action-small{width:128px!important;}
 :root.nocturn-theme body .nocturn-action-medium{width:160px!important;}
 :root.nocturn-theme body .nocturn-action-wide{width:192px!important;}
 :root.nocturn-theme body.figma-ai-layout .sidebar > nav > :is(button,a,details)>summary,
 :root.nocturn-theme body.figma-ai-layout .sidebar > nav > :is(button,a){width:clamp(128px,10.5vw,144px)!important;}
 :root.nocturn-theme body.figma-ai-layout .topbar{min-height:44px!important;padding:0!important;gap:10px!important;flex:0 0 auto;flex-wrap:nowrap;align-items:center;}
 :root.nocturn-theme body.figma-ai-layout .topbar > :first-child{flex:1 1 auto;min-width:0;}
 :root.nocturn-theme body.figma-ai-layout .topbar :is(#connection-status,#admin-account){display:block!important;margin-top:3px;line-height:16px;}
 :root.nocturn-theme body.figma-ai-layout .topbar > .session-controls{order:3;flex:0 0 auto;}
 :root.nocturn-theme body .nocturn-progress-slot{position:relative;box-sizing:border-box;flex:0 0 clamp(200px,24vw,320px);width:clamp(200px,24vw,320px);height:40px;min-width:0;order:2;}
 :root.nocturn-theme body .operation-progress{position:absolute!important;inset:0!important;display:grid!important;grid-template-columns:18px minmax(0,1fr) auto!important;grid-template-rows:auto auto;width:100%!important;max-width:100%!important;min-height:0!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:var(--nocturn-ink)!important;gap:0 8px!important;align-content:center;align-items:center;font-size:13px!important;line-height:1.25!important;pointer-events:none;}
 :root.nocturn-theme body .operation-progress{grid-template-rows:minmax(0,1fr) auto!important;}
 :root.nocturn-theme body .operation-progress-label{grid-row:1/-1;min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:2.5em;overflow:hidden;pointer-events:auto;}
 :root.nocturn-theme body .operation-progress:has(.operation-progress-hint:not([hidden])) .operation-progress-label{grid-row:1;-webkit-line-clamp:1;max-height:1.25em;}
 :root.nocturn-theme body .operation-progress-hint{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
 :root.nocturn-theme body .operation-progress-hourglass{width:14px!important;height:22px!important;border-block-width:2px!important;}
 :root.nocturn-theme body .operation-progress-hourglass::before,:root.nocturn-theme body .operation-progress-hourglass::after{border-inline-width:6px!important;}
 :root.nocturn-theme body .operation-progress-hourglass::before{border-top-width:8px!important;}
 :root.nocturn-theme body .operation-progress-hourglass::after{border-bottom-width:8px!important;}
 :root.nocturn-theme body .operation-progress-hint{font-size:11px!important;line-height:1.2!important;}
 :root.nocturn-theme body .operation-progress[data-state=error]{color:var(--nocturn-warning)!important;}
 :root.nocturn-theme body dialog :is(.dialog-heading,.admin-window-heading){flex-wrap:wrap!important;}
 :root.nocturn-theme body dialog .nocturn-progress-slot{flex:0 0 100%;width:100%;height:36px;}
 :root.nocturn-theme body dialog > .nocturn-progress-slot{flex:0 0 36px!important;margin:6px 16px;max-width:calc(100% - 32px);}
 :root.nocturn-theme body.figma-ai-layout .heading{flex:0 0 auto;min-height:44px!important;padding:0!important;gap:12px!important;}
 :root.nocturn-theme body.figma-ai-layout .heading h1{font-size:clamp(25px,2.4vw,32px)!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout .heading-actions{display:flex!important;align-items:center;gap:10px!important;}
 :root.nocturn-theme body.figma-ai-layout main:has(> #dashboard:not(.hidden)) > .heading .heading-actions{flex:0 0 330px!important;width:330px!important;max-width:100%;flex-wrap:nowrap!important;}
 :root.nocturn-theme body.figma-ai-layout main:has(> #dashboard:not(.hidden)) > .heading .heading-actions > :is(#import-members,#add-member){flex:0 0 160px!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout .heading.has-next-meeting{grid-template-columns:minmax(180px,1fr) minmax(200px,300px) auto;}
 :root.nocturn-theme body.figma-ai-layout #next-meeting-card{padding:6px 10px!important;margin:0!important;min-height:44px;box-sizing:border-box;}
 :root.nocturn-theme body.figma-ai-layout .admin-context{flex:0 0 auto;margin:0!important;padding:6px 10px!important;line-height:18px;}
 :root.nocturn-theme body.figma-ai-layout main > .page{flex:1 1 0!important;min-height:0!important;max-height:100%;overflow:hidden!important;}
 :root.nocturn-theme body.figma-ai-layout #dashboard{display:flex!important;flex-direction:column!important;gap:8px!important;min-height:0!important;}
 :root.nocturn-theme body.figma-ai-layout #dashboard #stats{flex:0 0 auto;gap:10px!important;}
 :root.nocturn-theme body.figma-ai-layout #dashboard .stat{min-height:76px!important;padding:8px 12px!important;}
 :root.nocturn-theme body.figma-ai-layout #dashboard > .two-col{flex:0 0 auto!important;min-height:0!important;gap:8px!important;}
 :root.nocturn-theme body.figma-ai-layout #dashboard .compact-summary{min-height:54px!important;padding:5px 10px!important;box-sizing:border-box;}
 :root.nocturn-theme body.figma-ai-layout #dashboard .dashboard-actions{margin-top:auto!important;flex:0 0 auto!important;align-self:flex-start!important;justify-self:start!important;align-items:center!important;gap:10px!important;}
 :root.nocturn-theme body.figma-ai-layout #dashboard #missing-note{width:192px!important;max-width:192px!important;overflow:visible!important;}
 :root.nocturn-theme body.figma-ai-layout #dashboard #missing-note > .notice{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;}
 :root.nocturn-theme body.figma-ai-layout #dashboard #missing-note .compact-summary{padding:0!important;min-height:44px!important;}
 :root.nocturn-theme body.figma-ai-layout main > footer{flex:0 0 auto!important;min-height:22px;padding:4px 0!important;margin-top:0!important;}
 :root.nocturn-theme body :is(.workspace-dialog,.compact-card){min-width:0;}
 :root.nocturn-theme body .compact-card:not(dialog){height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;}
 :root.nocturn-theme body .compact-summary{display:flex!important;align-items:center;gap:12px!important;}
 :root.nocturn-theme body .compact-summary h2{display:flex!important;align-items:center!important;margin:0!important;line-height:1!important;}
 :root.nocturn-theme body .settings-card.compact-card > .compact-summary{height:56px!important;min-height:56px!important;padding:6px!important;}
 :root.nocturn-theme body.figma-ai-layout main > .page.compact-card{flex:0 0 auto!important;}
 :root.nocturn-theme body .workspace-dialog .compact-body{overflow:auto!important;min-height:0!important;max-height:none!important;}
 :root.nocturn-theme body :is(.admin-dialog-nav,.admin-actions,.button-row,.meeting-actions){display:flex!important;flex-wrap:wrap;align-items:center;gap:10px!important;}
 :root.nocturn-theme body .admin-dialog-nav{margin-bottom:10px!important;}
 :root.nocturn-theme body .admin-dialog-nav > a{width:192px!important;min-height:44px!important;margin:0!important;}
 :root.nocturn-theme body #admin-workspace{display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;overflow:hidden!important;gap:10px!important;}
 :root.nocturn-theme body .admin-workspace-heading{flex:0 0 auto!important;gap:12px!important;align-items:center!important;}
 :root.nocturn-theme body #admin-section-content{flex:1 1 0!important;min-height:0!important;overflow:hidden!important;}
 :root.nocturn-theme body #admin-section-content > [data-admin-pane]{box-sizing:border-box;max-height:100%!important;overflow:hidden;}
 /* Keep the Agentoria dashboard information inline, including shorter Chrome windows. */
 :root.nocturn-theme body.admin-page #admin-app:has(#admin-section-content > #admin-overview) > .topbar > .session-controls{flex:0 0 auto!important;flex-wrap:nowrap!important;width:auto!important;gap:8px!important;}
 :root.nocturn-theme body.admin-page #admin-overview{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start;gap:10px!important;padding:0!important;}
 :root.nocturn-theme body.admin-page #admin-overview h2{margin:0!important;font-size:23px!important;line-height:1.2!important;}
 :root.nocturn-theme body.admin-page #admin-overview :is(#admin-summary,#admin-home-health-summary){grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;}
 :root.nocturn-theme body.admin-page #admin-overview .admin-card{min-width:0;min-height:76px!important;padding:8px 10px!important;}
 :root.nocturn-theme body.admin-page #admin-overview .admin-card > span{font-size:13px;line-height:1.3;}
 :root.nocturn-theme body.admin-page #admin-overview .admin-card > strong{font-size:22px!important;line-height:1.2!important;}
 :root.nocturn-theme body.admin-page #admin-overview .admin-card > p{font-size:11px!important;line-height:1.3!important;margin:4px 0 0!important;}
 :root.nocturn-theme body.admin-page #admin-overview .admin-card > p:empty{display:none;}
 :root.nocturn-theme body.admin-page #admin-overview .admin-home-health{display:grid!important;grid-template-columns:minmax(0,1fr);gap:10px!important;padding:12px!important;}
 :root.nocturn-theme body.admin-page #admin-overview .admin-home-tools{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px!important;margin:0!important;}
 :root.nocturn-theme body #admin-support{padding:12px 16px!important;}
 :root.nocturn-theme body #admin-support-list.compact-card{margin-top:10px;}
 :root.nocturn-theme body #admin-support > .admin-window-body{display:grid!important;grid-template-columns:repeat(3,minmax(0,192px));gap:12px!important;align-items:center;}
 :root.nocturn-theme body #admin-support > .admin-window-body > :is(.admin-actions,.panel-heading){display:contents!important;}
 :root.nocturn-theme body #admin-support > .admin-window-body > :is(p,label,#admin-support-list){grid-column:1/-1; margin:0!important;}
 :root.nocturn-theme body #admin-support .admin-window-body > a,:root.nocturn-theme body #admin-support .admin-window-body > :is(.admin-actions,.panel-heading) > a{width:192px!important;margin:0!important;}
 :root.nocturn-theme body #admin-support-list article{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:10px!important;}
 :root.nocturn-theme body #admin-support-list article > :is(h3,p,.admin-badge){grid-column:1/-1;margin:0!important;}
 :root.nocturn-theme body #admin-support-list article > .admin-badge{justify-self:start;}
 :root.nocturn-theme body #admin-support-list article > button{width:100%!important;margin:0!important;}
 :root.nocturn-theme body .compact-launcher{width:192px!important;min-width:0!important;}
 :root.nocturn-theme body #settings .settings-card{padding:12px!important;border-width:1px!important;}
 /* Financial summaries stay on the page; the member records use their own window. */
 :root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligations-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(300px,340px)!important;gap:10px!important;align-items:start;min-height:0!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligation-overview{order:0!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligation-commands{order:1!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligation-overview > .panel-heading{padding:8px 12px!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligation-overview h2{font-size:22px!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligation-overview .finance-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:0 10px 10px!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligation-overview .stat{min-height:0!important;padding:8px!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligation-overview .stat-label{min-height:0!important;font-size:12px!important;line-height:1.3!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligation-overview .stat-detail{font-size:11px!important;line-height:1.3!important;}
 :root.nocturn-theme body.figma-ai-layout :is(#finance-obligations,#finance-cash) .stat-detail{display:block!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligation-overview .stat-value{padding-right:36px!important;text-align:left!important;line-height:26px!important;margin:2px 0!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligation-commands > .finance-members{margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-obligations .compact-summary{min-height:52px!important;padding:4px 8px!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligation-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px!important;gap:8px!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligation-controls > .finance-rules{grid-column:1/-1;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligation-controls > button{width:100%!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-cash > .finance-stats{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;}
 @media(max-width:900px){
  :root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligations-layout{grid-template-columns:minmax(0,1fr)!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-cash > .finance-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 }
 @media(max-width:600px){
  :root.nocturn-theme body.figma-ai-layout #finance-cash > .finance-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-cash .stat-label{min-height:32px!important;font-size:12px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-cash .stat-detail{font-size:11px!important;line-height:1.3!important;}
 }
 :root.nocturn-theme body .meeting-calendar-panel{position:relative;height:100%!important;min-height:0!important;max-height:100%!important;box-sizing:border-box;gap:6px!important;padding:10px 14px!important;}
 :root.nocturn-theme body .meeting-calendar-panel > .section-help-floating{position:absolute!important;top:8px!important;right:8px!important;bottom:auto!important;margin:0!important;}
 :root.nocturn-theme body .meeting-context{flex:0 0 auto;gap:10px;align-items:center;flex-wrap:nowrap;}
 :root.nocturn-theme body .meeting-month-nav{flex:0 0 44px;margin:0!important;gap:10px;}
 :root.nocturn-theme body .meeting-month-grid{flex:1 1 0!important;min-height:0!important;grid-auto-rows:minmax(0,1fr)!important;gap:4px!important;}
 :root.nocturn-theme body .meeting-month-grid.meeting-weeks-4{grid-template-rows:20px repeat(4,minmax(0,1fr))!important;}
 :root.nocturn-theme body .meeting-month-grid.meeting-weeks-5{grid-template-rows:20px repeat(5,minmax(0,1fr))!important;}
 :root.nocturn-theme body .meeting-month-grid.meeting-weeks-6{grid-template-rows:20px repeat(6,minmax(0,1fr))!important;}
 :root.nocturn-theme body .meeting-cell{min-height:0!important;display:flex!important;flex-direction:column!important;}
 :root.nocturn-theme body .meeting-cell:has(.meeting-time-button){flex-direction:row!important;gap:4px!important;}
 :root.nocturn-theme body #meeting-month-grid .meeting-day{height:auto!important;min-height:0!important;width:auto!important;flex:1 1 0!important;padding:0!important;font-size:14px!important;}
 :root.nocturn-theme body #meeting-month-grid .meeting-time-button{width:58%!important;height:auto!important;min-height:0!important;padding:0!important;flex:0 0 58%!important;border:0!important;box-shadow:none!important;font-size:11px!important;}
 :root.nocturn-theme body .meeting-actions{flex:0 0 44px;min-height:0;flex-wrap:nowrap!important;margin:0!important;}
 @media(max-width:1023px){
  :root.nocturn-theme body.figma-ai-layout > main,:root.nocturn-theme body.figma-ai-layout.admin-page #admin-app{padding:8px 16px 0!important;}
  :root.nocturn-theme body.figma-ai-layout .ai-navigation-dialog nav{flex-wrap:nowrap!important;}
  :root.nocturn-theme body.figma-ai-layout .heading.has-next-meeting{gap:8px!important;}
  :root.nocturn-theme body.figma-ai-layout .topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 40px;gap:4px 8px!important;}
  :root.nocturn-theme body.figma-ai-layout .topbar > .session-controls{grid-row:1;grid-column:2;}
  :root.nocturn-theme body.figma-ai-layout .topbar > .nocturn-progress-slot{grid-row:2;grid-column:1/-1;width:100%;}
 }
 @media(max-width:600px){
  :root.nocturn-theme body #admin-support > .admin-window-body{grid-template-columns:minmax(0,1fr)!important;gap:8px!important;}
  :root.nocturn-theme body #admin-support-list article{grid-template-columns:repeat(2,minmax(0,1fr));}
  :root.nocturn-theme body #admin-support .admin-window-body > a,:root.nocturn-theme body #admin-support .admin-window-body > :is(.admin-actions,.panel-heading) > a{width:100%!important;}
  :root.nocturn-theme body.figma-ai-layout > main,:root.nocturn-theme body.figma-ai-layout.admin-page #admin-app{padding:6px 12px 0!important;gap:6px!important;}
  :root.nocturn-theme body.figma-ai-layout .heading h1{font-size:25px!important;}
  :root.nocturn-theme body.figma-ai-layout .heading{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px 8px!important;}
  :root.nocturn-theme body.figma-ai-layout .heading .heading-summary{min-width:0!important;}
  :root.nocturn-theme body.figma-ai-layout .heading h1{font-size:22px!important;}
  :root.nocturn-theme body.figma-ai-layout .heading #page-back{width:80px!important;}
  :root.nocturn-theme body.figma-ai-layout .heading #next-meeting-card,:root.nocturn-theme body.figma-ai-layout .heading .heading-actions{grid-column:1/-1;}
  :root.nocturn-theme body.figma-ai-layout .heading:not(:has(.heading-actions > :not([hidden]))) .heading-actions{display:none!important;}
  :root.nocturn-theme body.figma-ai-layout #dashboard .dashboard-actions > :is(#missing-note,#view-history){max-width:192px!important;}
  :root.nocturn-theme body.figma-ai-layout #dashboard #missing-note{width:calc((100vw - 34px)/2)!important;}
  :root.nocturn-theme body.figma-ai-layout .heading-actions{gap:8px!important;}
  :root.nocturn-theme body.figma-ai-layout .heading-actions > :is(button,.panel-action-group){flex:1 1 0;min-width:0;}
  :root.nocturn-theme body.figma-ai-layout main:has(> #dashboard:not(.hidden)) > .heading .heading-actions{flex:1 1 auto!important;width:100%!important;}
  :root.nocturn-theme body.figma-ai-layout main:has(> #dashboard:not(.hidden)) > .heading .heading-actions > :is(#import-members,#add-member){flex:1 1 0!important;width:calc((100% - 8px)/2)!important;min-width:0!important;}
  :root.nocturn-theme body.figma-ai-layout #dashboard .stat{min-height:68px!important;}
  :root.nocturn-theme body.figma-ai-layout #dashboard .stat-value{font-size:25px!important;}
  :root.nocturn-theme body.figma-ai-layout #dashboard .compact-summary{min-height:52px!important;}
  :root.nocturn-theme body .meeting-context{gap:6px!important;}
  :root.nocturn-theme body .meeting-cell:has(.meeting-time-button){flex-direction:column!important;gap:2px!important;}
  :root.nocturn-theme body #meeting-month-grid .meeting-time-button{width:100%!important;height:14px!important;min-height:14px!important;flex:0 0 14px!important;}
  :root.nocturn-theme body .meeting-context input{width:98px!important;min-width:0!important;max-width:98px!important;}
  :root.nocturn-theme body .meeting-context select{width:108px!important;min-width:0!important;max-width:108px!important;}
  :root.nocturn-theme body .meeting-context button{width:86px!important;min-width:0!important;}
  :root.nocturn-theme body .meeting-month-nav button{width:100px!important;font-size:12px!important;}
  :root.nocturn-theme body .meeting-month-nav h2{font-size:18px!important;}
  :root.nocturn-theme body .meeting-actions button{width:150px!important;}
  :root.nocturn-theme body .admin-dialog-nav > a{width:calc((100% - 10px)/2)!important;}
 }
}

:root.nocturn-theme body #member-form > #form-error {max-height:min(180px,25vh);overflow:auto;flex:0 0 auto;}

@layer nocturn-controls {
 :root.nocturn-theme body #settings {grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)) !important;}
 @media(max-width:600px){:root.nocturn-theme body #settings {grid-template-columns:minmax(0,1fr) !important;}}
}

@layer nocturn-controls {
 :root.nocturn-theme body :is(a.primary,a.secondary,a[role=button],.admin-menu-grid a,.admin-dialog-nav a,.admin-actions a,.heading-actions a,.dialog-footer a,.sidebar nav a):not([hidden]):not(.hidden) {display:inline-flex !important;align-items:center;justify-content:center;}
}

@layer nocturn-controls {
 @media(max-width:600px){
  :root.nocturn-theme body #member-dialog .member-tabs {display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;min-width:0;width:100%;max-width:100%;box-sizing:border-box;}
  :root.nocturn-theme body #member-dialog .member-tabs > button {width:100% !important;min-width:0 !important;max-width:100% !important;padding:7px 4px !important;}
 }
}
/* FE41 incremental readability: retain the published palette, typefaces and controls. */
@layer nocturn-fit {
 :root.nocturn-theme body .field-full-value {box-sizing:border-box;max-width:100%;min-width:0;white-space:normal;overflow-wrap:break-word;word-break:normal;font:inherit;line-height:1.45;color:inherit;padding:4px 0;grid-column:1/-1;}
 :root.nocturn-theme body.admin-page #admin-overview :is(#admin-summary,#admin-home-health-summary) {grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))!important;}
 :root.nocturn-theme body.admin-page #admin-overview :is(#admin-summary,#admin-home-health-summary)>:last-child:nth-child(odd) {grid-column:auto!important;}
 :root.nocturn-theme body.admin-page #admin-overview .admin-card strong {white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;}
 :root.nocturn-theme body.admin-page #admin-overview :is(.admin-home-health,.admin-home-pane).compact-card {padding:0!important;}
}
@layer nocturn-fit {
 :root.nocturn-theme body .member-picker-field {flex-wrap:wrap;}
 :root.nocturn-theme body .member-picker-field > .field-full-value {flex:0 0 100%;order:3;}
 :root.nocturn-theme body #meetings:not(.compact-card) > .meeting-calendar-panel {min-height:480px!important;}
 :root.nocturn-theme body #meetings.compact-card {display:block!important;}
 :root.nocturn-theme body #meetings .compact-body > .meeting-calendar-panel {height:auto!important;max-height:none!important;min-height:540px!important;}
 :root.nocturn-theme body #dashboard.compact-card {display:block!important;}
 :root.nocturn-theme body #dashboard .compact-body {display:grid;gap:12px;}
 :root.nocturn-theme body #dashboard .compact-body > .two-col {width:100%!important;}
 :root.nocturn-theme body #dashboard .compact-body .dashboard-actions {display:flex;flex-wrap:wrap;gap:10px;}
 :root.nocturn-theme body .meeting-context {flex-wrap:wrap!important;}
 :root.nocturn-theme body #meeting-month-grid .meeting-cell {display:grid!important;grid-template-rows:minmax(32px,1fr) 20px!important;grid-template-columns:minmax(0,1fr);gap:0!important;}
 :root.nocturn-theme body #meeting-month-grid .meeting-cell > .meeting-day {width:100%!important;min-height:32px!important;grid-row:1;grid-column:1;}
 :root.nocturn-theme body #meeting-month-grid .meeting-cell > :is(.meeting-time-button,.meeting-time-label) {width:100%!important;height:20px!important;min-height:20px!important;grid-row:2;grid-column:1;}
 :root.nocturn-theme body .meeting-month-nav {display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);height:auto!important;flex:0 0 auto!important;}
 :root.nocturn-theme body .meeting-month-nav h2 {white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;}
 :root.nocturn-theme body .meeting-month-nav button {width:100%!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;}
 @media(max-width:600px){
  :root.nocturn-theme body .meeting-month-nav {grid-template-columns:repeat(2,minmax(0,1fr));}
  :root.nocturn-theme body .meeting-month-nav h2 {grid-column:1/-1;grid-row:1;}
  :root.nocturn-theme body .meeting-month-nav button {grid-row:2;}
 }
}
@layer nocturn-fit {
 :root.nocturn-theme body details:not(.panel-action-group):not(.ai-nav-group) > summary {height:auto!important;min-height:52px!important;width:min(100%,320px)!important;box-sizing:border-box;padding:10px 12px!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;}
 :root.nocturn-theme body details:not(.panel-action-group):not(.ai-nav-group) > summary:has(.section-help-button) {padding-right:50px!important;}
 :root.nocturn-theme body #support-status-list > details > summary {width:100%!important;min-height:72px!important;}
 :root.nocturn-theme body :is(button:disabled,[aria-disabled=true]) {opacity:1!important;background:#15203c!important;color:#c3cbdf!important;}
 :root.nocturn-theme body #meeting-month-grid .meeting-cell {overflow:visible!important;}
}
@layer nocturn-fit {
 :root.nocturn-theme body .member-picker-field > input {width:0!important;flex:1 1 0!important;min-width:0!important;}
 :root.nocturn-theme body .meeting-month-grid.meeting-weeks-4 {grid-template-rows:20px repeat(4,minmax(54px,1fr))!important;}
 :root.nocturn-theme body .meeting-month-grid.meeting-weeks-5 {grid-template-rows:20px repeat(5,minmax(54px,1fr))!important;}
 :root.nocturn-theme body .meeting-month-grid.meeting-weeks-6 {grid-template-rows:20px repeat(6,minmax(54px,1fr))!important;}
 :root.nocturn-theme body .meeting-month-grid {min-height:min-content!important;}
}
@layer nocturn-fit {
 :root.nocturn-theme body #meeting-month-grid .meeting-cell {background:#172a50!important;color:#fff!important;}
 :root.nocturn-theme body #meeting-month-grid .meeting-day {background:#172a50!important;color:#fff!important;opacity:1!important;}
 :root.nocturn-theme body #meeting-month-grid .meeting-day:hover:not(:disabled) {background:#263759!important;}
 :root.nocturn-theme body #meeting-month-grid .meeting-day.selected {background:#d4ba6b!important;color:#101b39!important;}
 :root.nocturn-theme body #meeting-month-grid .meeting-day.selected::after {color:#101b39!important;}
 :root.nocturn-theme body .meeting-context select {width:150px!important;max-width:100%!important;}
 :root.nocturn-theme body.admin-page #admin-overview.compact-card {display:block!important;}
 @media(max-width:600px){
  :root.nocturn-theme body.admin-page #admin-app .topbar {grid-template-columns:minmax(0,1fr)!important;}
  :root.nocturn-theme body.admin-page #admin-app .topbar > .session-controls {grid-column:1!important;width:100%!important;max-width:100%!important;flex-wrap:wrap!important;}
  :root.nocturn-theme body.admin-page #admin-app .topbar > .session-controls > :is(button,details) {flex:1 1 0!important;min-width:0!important;width:100%!important;}
  :root.nocturn-theme body.admin-page #admin-app .topbar > .session-controls summary {width:100%!important;min-width:0!important;}
 }
}
@layer nocturn-fit {
 :root.nocturn-theme body #support-status-list p {color:var(--nocturn-ink)!important;}
}
@layer nocturn-fit {
 :root.nocturn-theme body :is(#admin-support-count,.compact-count) {color:#101b39!important;}
 @media(max-width:360px){
  :root.nocturn-theme body.figma-ai-layout .sidebar,:root.nocturn-theme body.figma-ai-layout.admin-page #admin-sidebar {grid-template-columns:minmax(0,1fr) 38px 42px!important;gap:8px!important;padding:8px 12px!important;}
  :root.nocturn-theme body.figma-ai-layout .sidebar .brand {grid-column:1/-1!important;grid-row:1!important;padding:0!important;max-width:100%;}
  :root.nocturn-theme body.figma-ai-layout .sidebar .brand > div {min-width:0;max-width:100%;}
  :root.nocturn-theme body.figma-ai-layout .sidebar .brand strong {white-space:normal;overflow-wrap:normal;word-break:normal;}
  :root.nocturn-theme body.figma-ai-layout .ai-menu-button {position:static!important;grid-column:1!important;grid-row:2!important;justify-self:start;}
  :root.nocturn-theme body.figma-ai-layout .sidebar .mlnr-brand {grid-column:2!important;grid-row:2!important;}
  :root.nocturn-theme body.figma-ai-layout .sidebar .provider-brand {grid-column:3!important;grid-row:2!important;}
 }
}
@layer nocturn-fit {
 :root.nocturn-theme body .nocturn-progress-slot:has(.operation-progress) {height:auto!important;min-height:40px;align-self:stretch;}
 :root.nocturn-theme body .operation-progress {position:relative!important;inset:auto!important;height:auto!important;min-height:40px!important;}
 :root.nocturn-theme body .operation-progress-label,:root.nocturn-theme body .operation-progress:has(.operation-progress-hint:not([hidden])) .operation-progress-label {display:block!important;-webkit-line-clamp:unset!important;max-height:none!important;white-space:normal!important;overflow:visible!important;overflow-wrap:break-word;}
 :root.nocturn-theme body .operation-progress-hint {white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:break-word;}
 @media(max-width:1023px){:root.nocturn-theme body.figma-ai-layout .topbar {grid-template-rows:auto auto!important;}}
}
@layer nocturn-fit {
 :root.nocturn-theme body dialog .admin-window-heading h2 {flex:1 1 220px!important;min-width:min(100%,180px)!important;max-width:100%;}
 :root.nocturn-theme body dialog .admin-window-body {min-width:0!important;max-width:100%!important;box-sizing:border-box;}
 :root.nocturn-theme body dialog .admin-cards {grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))!important;min-width:0!important;padding:0!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-cash .finance-stats {grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))!important;}
 :root.nocturn-theme body .stat-value {white-space:normal!important;overflow-wrap:break-word;}
 :root.nocturn-theme body .session-controls .panel-action-group {position:relative!important;}
 :root.nocturn-theme body .session-controls .panel-action-group-body {position:absolute!important;top:100%!important;right:0!important;left:auto!important;width:max-content!important;min-width:100%!important;max-width:calc(100vw - 24px)!important;z-index:40!important;}
 :root.nocturn-theme body :is(.nocturn-action-small,.nocturn-action-medium,.nocturn-action-wide):not(summary) {height:var(--nocturn-action-height,44px)!important;}
 :root.nocturn-theme body .table-wrap {max-width:100%!important;overflow-x:auto!important;}
 :root.nocturn-theme body :is(.stat,.stat-card,.admin-card,.compact-card,.compact-summary,.finance-stats,.finance-obligation-overview,.date-tile,.avatar,.badge,.counter,.change-mark,.admin-note,#next-meeting-card) {--nocturn-warning:#8a3910;}
 :root.nocturn-theme body .badge {color:var(--nocturn-ink)!important;}
:root.nocturn-theme body .admin-badge {color:#101a3a!important;background:#f2dfaa!important;}
 :root.nocturn-theme body .field-full-value,:root.nocturn-theme body #admin-assistant :is(p,li) {color:var(--nocturn-ink)!important;}
 :root.nocturn-theme body .finance-failure {color:#7a2e12!important;background:#fff4f0!important;}
 :root.nocturn-theme body .admin-workspace-heading {flex-wrap:wrap!important;}
 :root.nocturn-theme body .admin-workspace-heading h2 {flex:1 1 180px!important;min-width:0!important;max-width:100%!important;}
 :root.nocturn-theme body.signed-out {height:100dvh!important;min-height:0!important;overflow:hidden!important;box-sizing:border-box;}
 :root.nocturn-theme body.figma-ai-layout.signed-out > main,:root.nocturn-theme body.figma-ai-layout.signed-out > .sidebar,:root.nocturn-theme body.signed-out #admin-app {display:none!important;}
 :root.nocturn-theme body.signed-out .login-panel {box-sizing:border-box;max-height:calc(100dvh - 24px)!important;overflow:auto!important;margin:12px auto!important;}
 :root.nocturn-theme body .login-panel a {color:#b9ddff!important;}
 :root.nocturn-theme body .login-panel .login-brand {color:var(--nocturn-muted)!important;}
 :root.nocturn-theme body #admin-login > :is(button,a) {display:block!important;margin:10px auto!important;}
 :root.nocturn-theme body #password-help-dialog > form {box-sizing:border-box;padding:18px 22px!important;gap:12px!important;overflow:auto!important;}
 :root.nocturn-theme body #password-help-form > :is(h2,p,.field) {margin:0!important;}
 :root.nocturn-theme body #password-help-status:not(:empty) {padding:8px;}
 :root.nocturn-theme body #password-help-status:empty {display:none;}
 :root.nocturn-theme body .meeting-grid-scroll {display:contents;}
:root.nocturn-theme body :is(.admin-actions,.finance-actions,.button-row,.heading-actions,.session-controls) > details > summary.nocturn-action-medium {width:160px!important;max-width:100%;height:var(--nocturn-action-height,44px)!important;min-height:44px!important;padding:2px 10px!important;display:flex;align-items:center;justify-content:center;}
:root.nocturn-theme body.figma-ai-layout #dashboard .dashboard-actions > :is(#missing-note,#view-history) {width:192px!important;max-width:100%!important;}
:root.nocturn-theme body #import-server-preview details p {font-size:14px!important;line-height:1.45!important;color:var(--nocturn-ink)!important;overflow-wrap:normal!important;word-break:normal!important;}
:root.nocturn-theme body dialog :is(#pwa-uninstall-help,#pwa-install-help) :is(p,li),:root.nocturn-theme body dialog .settings-card > p {color:var(--nocturn-ink)!important;}
:root.nocturn-theme body dialog :is(#session-exit-options,#account-password-form) p {color:var(--nocturn-ink)!important;}
:root.nocturn-theme body details:not(.panel-action-group):not(.ai-nav-group) > summary:has(.section-help-button) {position:relative!important;display:block!important;text-align:left!important;}
:root.nocturn-theme body details > summary > .section-help-button {position:absolute!important;right:8px;top:50%;transform:translateY(-50%);margin:0!important;}
@media(max-width:600px){:root.nocturn-theme body.figma-ai-layout #finance-obligations .finance-obligation-overview .finance-stats {grid-template-columns:minmax(0,1fr)!important;}}
 @media(max-width:600px){
  :root.nocturn-theme body.figma-ai-layout .heading .heading-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  :root.nocturn-theme body.figma-ai-layout main > .page.compact-card > .compact-summary {padding:6px 10px!important;}
  :root.nocturn-theme body #admin-assistant .admin-card {padding:10px!important;}
  :root.nocturn-theme body #admin-assistant .admin-inset {margin:10px 0!important;min-width:0!important;}
  :root.nocturn-theme body #admin-assistant :is(p,h3,h4,li) {overflow-wrap:break-word;word-break:normal;}
  :root.nocturn-theme body .finance-column-map,:root.nocturn-theme body .finance-column-entry {grid-template-columns:minmax(0,1fr)!important;}
 }
 @media(max-width:360px){
  :root.nocturn-theme body .meeting-month-nav {grid-template-columns:minmax(0,1fr)!important;}
  :root.nocturn-theme body .meeting-month-nav button {grid-row:auto!important;}
  :root.nocturn-theme body .meeting-calendar-panel {overflow:visible!important;}
  :root.nocturn-theme body #meeting-month-grid {min-width:280px!important;}
  :root.nocturn-theme body .meeting-grid-scroll {display:block;flex:0 0 auto;min-width:0;max-width:100%;overflow-x:auto;}
  :root.nocturn-theme body #meeting-month-grid :is(.meeting-time-button,.meeting-time-label) {white-space:nowrap!important;}
  :root.nocturn-theme body dialog .dialog-heading h2 {flex:1 1 120px!important;min-width:min-content;max-width:100%;}
 }
}
@layer nocturn-fit {
 :root.nocturn-theme body .nocturn-progress-slot:not(:has(.operation-progress)) {display:none!important;}
 :root.nocturn-theme body dialog:has(> .dialog-scroll,> .compact-body,> form > .dialog-scroll) {overflow:clip!important;}
 @media(max-width:600px){
  :root.nocturn-theme body.figma-ai-layout main:has(> #dashboard:not(.hidden)) > .heading .heading-actions > :is(#import-members,#add-member) {width:100%!important;overflow-wrap:normal!important;word-break:normal!important;}
 }
}
@layer nocturn-fit {
 :root.nocturn-theme body #password-confirmation > form {display:block!important;overflow:auto!important;padding:16px!important;box-sizing:border-box;}
 :root.nocturn-theme body #password-confirmation > form > :is(h2,p,label,button) {margin:0 0 12px!important;}
 :root.nocturn-theme body #password-confirmation > form > button {display:block!important;max-width:100%!important;}
 :root.nocturn-theme body #password-confirmation [role=alert]:empty {display:none;}
}
@layer nocturn-fit {
 :root.nocturn-theme body .nocturn-progress-slot.compact-card > .compact-summary {padding:0!important;border:0!important;background:transparent!important;}
 :root.nocturn-theme body .nocturn-progress-slot.compact-card .compact-launcher {width:192px!important;max-width:100%!important;}
 :root.nocturn-theme body .nocturn-progress-dialog .operation-progress {color:var(--nocturn-ink)!important;}
}
@layer nocturn-fit {
 @media(max-width:600px){
  :root.nocturn-theme body.admin-page #admin-app .topbar > .session-controls {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  :root.nocturn-theme body.admin-page #admin-app .topbar > .session-controls > :is(button,details) {width:100%!important;overflow-wrap:normal!important;word-break:normal!important;}
 }
}
@layer nocturn-fit {
 :root.nocturn-theme body .toast {box-sizing:border-box;width:calc(100vw - 32px)!important;max-width:480px!important;max-height:min(280px,60dvh)!important;overflow:auto!important;overflow-wrap:normal!important;word-break:normal!important;}
 :root.nocturn-theme body :is(.admin-context,footer,#next-meeting-card).compact-card > .compact-summary {padding:0!important;min-height:44px!important;}
 :root.nocturn-theme body :is(.admin-context,footer,#next-meeting-card).compact-card > .compact-summary .compact-launcher {width:192px!important;max-width:100%!important;}
 :root.nocturn-theme body :is(.admin-context,footer,#next-meeting-card).compact-card .compact-body {font-size:14px!important;line-height:1.45!important;white-space:normal!important;overflow-wrap:normal!important;}
 :root.nocturn-theme body .technical-report-card {flex:0 0 auto!important;min-width:0;}
 :root.nocturn-theme body #technical-report-card .compact-launcher {width:192px!important;max-width:100%!important;}
 :root.nocturn-theme body dialog #agentoria-ui-report {margin:0!important;}
 :root.nocturn-theme body dialog #agentoria-ui-report > :is(select,button) {display:block!important;width:100%!important;max-width:100%!important;margin:10px 0!important;}
 :root.nocturn-theme body dialog #agentoria-ui-report > summary {display:none!important;}
 :root.nocturn-theme body #admin-alerts-window a:not(.primary):not(.secondary) {color:#b9ddff!important;}
}
@layer nocturn-fit {
 :root.nocturn-theme body #panel-context-holder {flex:0 0 auto!important;}
 :root.nocturn-theme body #panel-context-holder > .compact-summary {padding:0!important;}
 :root.nocturn-theme body #panel-context-holder .compact-launcher {width:192px!important;max-width:100%!important;}
 :root.nocturn-theme body footer.compact-card :is(button,button *) {color:#fff!important;font-size:14px!important;line-height:20px!important;}
 :root.nocturn-theme body footer.compact-card .dialog-heading h2 {font-size:25px!important;line-height:1.15!important;color:var(--nocturn-ink)!important;}
 :root.nocturn-theme body #agentoria-ui-report p {font-size:14px!important;line-height:1.45!important;color:var(--nocturn-ink)!important;}
 :root.nocturn-theme body #content-admin-alerts-window a:not(.primary):not(.secondary) {color:#b9ddff!important;}
}
@layer nocturn-fit {
 :root.nocturn-theme body.figma-ai-layout .sidebar > .brand.compact-card {padding:0!important;}
 :root.nocturn-theme body.figma-ai-layout .sidebar > .brand.compact-card > .compact-summary {padding:0!important;}
 :root.nocturn-theme body.figma-ai-layout .sidebar > .brand.compact-card .compact-launcher {width:192px!important;max-width:100%!important;}
 :root.nocturn-theme body.figma-ai-layout .sidebar > .brand.compact-card dialog :is(strong,span,p) {color:var(--nocturn-ink)!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;}
 :root.nocturn-theme body.figma-ai-layout .sidebar > .brand.compact-card dialog .compact-body {text-align:left!important;}
}
@layer nocturn-fit {
 :root.nocturn-theme body.figma-ai-layout main > footer.compact-card {padding:0!important;}
 :root.nocturn-theme body.figma-ai-layout #next-meeting-card.compact-card {padding:0!important;}
}
@layer nocturn-fit {
 :root.nocturn-theme body dialog .finance-generation-list {max-height:none!important;overflow:visible!important;}
 :root.nocturn-theme body .finance-generation-exceptions > :has(> [data-b5-proof]) {grid-column:1/-1!important;min-width:0;}
 :root.nocturn-theme body .finance-generation-exceptions [data-b5-proof] {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 :root.nocturn-theme body .finance-generation-exceptions [data-b5-proof] > p {grid-column:1/-1;}
 @media(max-width:600px){
  :root.nocturn-theme body .finance-generation-row {padding:10px 0!important;}
  :root.nocturn-theme body .finance-generation-row details {margin-left:0!important;}
  :root.nocturn-theme body .finance-generation-exceptions,:root.nocturn-theme body .finance-generation-exceptions [data-b5-proof] {grid-template-columns:minmax(0,1fr)!important;}
 }
}

/* Narrow finance containers retain actions in the same horizontal scroll as their values. */
html.nocturn-theme body.figma-ai-layout .table-wrap.nocturn-table-scroll-actions .finance-table td:last-child:has(button) { position:static; right:auto; }

html.nocturn-theme body.figma-ai-layout .table-wrap.finance-table.nocturn-table-scroll-actions td:last-child:has(button) { position:static; right:auto; }

/* Keep the original semantic labels separated when compacted into their own windows. */
:root.nocturn-theme body.figma-ai-layout footer.compact-card .compact-body { display:flex; flex-direction:column; gap:8px; }
:root.nocturn-theme body.figma-ai-layout #next-meeting-card.compact-card .compact-body { display:flex; flex-direction:column; gap:6px; }

:root.nocturn-theme body.admin-page dialog #pwa-uninstall-panel { padding:12px; box-sizing:border-box; }

/* FE41 incremental: constrain Assistant filters to their original flex container. */
:root.nocturn-theme body.admin-page #admin-assistant .admin-actions label:has(#assistant-search),
:root.nocturn-theme body.admin-page #admin-assistant .admin-actions label:has(#assistant-lodge) { min-width:0; max-width:100%; box-sizing:border-box; }
:root.nocturn-theme body.admin-page #admin-assistant #assistant-search,
:root.nocturn-theme body.admin-page #admin-assistant #assistant-lodge { width:100%; min-width:0; max-width:100%; box-sizing:border-box; }

/* Restore the original small calendar dialogs' content inset without changing shared dialogs. */
:root.nocturn-theme body.figma-ai-layout dialog.meeting-small-dialog { padding:20px !important; gap:12px; overflow:auto !important; }
:root.nocturn-theme body.figma-ai-layout dialog.meeting-small-dialog > h2 { margin:0; min-width:0; }
:root.nocturn-theme body.figma-ai-layout dialog.meeting-small-dialog .meeting-interval-editor { gap:12px; margin:0; min-width:0; }
:root.nocturn-theme body.figma-ai-layout #meeting-time-dialog[open] { display:grid !important; grid-template-columns:minmax(0,1fr) 32px; align-items:start; }
:root.nocturn-theme body.figma-ai-layout #meeting-time-dialog > :not(#meeting-time-close):not(h2) { grid-column:1 / -1; }
:root.nocturn-theme body.figma-ai-layout #meeting-time-dialog > h2 { grid-column:1; grid-row:1; }
:root.nocturn-theme body.figma-ai-layout #meeting-time-close { grid-column:2; grid-row:1; width:32px !important; min-width:32px !important; max-width:32px !important; height:32px !important; min-height:32px !important; padding:0 !important; margin:0; float:none; }

/* Shared Officer/Dignitary form: multiline values and a separate action row. */
:root.nocturn-theme body #annexes .master-officers > .workspace-dialog[open] {
  width:920px !important; max-width:calc(100vw - 24px) !important; min-width:0 !important;
  height:calc(100dvh - 32px) !important; max-height:calc(100dvh - 32px) !important;
}
:root.nocturn-theme body #annexes .master-officers > .workspace-dialog > .compact-body {
  display:flex !important; flex-direction:column; flex:1 1 auto !important;
  min-height:0 !important; overflow:hidden !important;
}
:root.nocturn-theme body #annexes .master-officers #officers-form {
  display:flex !important; flex-direction:column; flex:1 1 auto !important;
  min-height:0 !important; overflow:hidden !important; gap:0;
}
:root.nocturn-theme body #annexes .master-officers #officer-fields {
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  flex:1 1 auto !important; min-height:0 !important; overflow:auto !important;
  padding:14px 16px; align-items:stretch; gap:16px;
}
:root.nocturn-theme body #annexes .master-officers .officer-field {
  display:grid !important; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(40px,auto) 1fr;
  align-items:start; align-content:start; gap:6px; max-width:none !important; padding:0;
}
:root.nocturn-theme body #annexes .master-officers .office-label {
  min-height:40px; line-height:20px; display:block;
}
:root.nocturn-theme body #annexes .master-officers .member-picker-field {
  display:grid; grid-template-columns:minmax(0,1fr) 32px; gap:6px; align-items:start;
  width:100%; max-width:none; min-width:0;
}
:root.nocturn-theme body #annexes .master-officers .officer-name-editor {
  box-sizing:border-box; width:100% !important; min-width:0; min-height:64px; max-height:none;
  field-sizing:content; resize:none; overflow:hidden; white-space:pre-wrap; overflow-wrap:anywhere;
  font-family:inherit; font-size:14px !important; font-weight:400 !important; line-height:20px; padding:10px;
}
:root.nocturn-theme body #annexes .master-officers .member-picker-toggle {
  width:32px !important; min-width:32px !important; max-width:32px !important;
  height:44px !important; min-height:44px !important; max-height:44px !important;
  margin:0; padding:0 !important; align-self:start;
}
:root.nocturn-theme body #annexes .master-officers .officer-footer {
  position:static !important; flex:0 0 auto !important; display:flex; flex-wrap:wrap;
  height:auto !important; padding:12px 16px; gap:8px; min-width:0;
}
:root.nocturn-theme body #annexes .master-officers #save-officers {
  order:0; width:auto !important; min-width:min(220px,100%); max-width:100%;
  height:auto !important; min-height:44px; white-space:normal;
}
:root.nocturn-theme body #annexes .master-officers #officer-save-state {
  display:block; order:1; flex:1 1 180px; min-width:0; font-size:12px; line-height:18px;
}

@media (max-width:600px) {
  /* Temporary feedback must not squeeze the action row below its content.
     Let this dialog body scroll until the original notifications disappear. */
  :root.nocturn-theme body #annexes .master-officers > .workspace-dialog > .compact-body:has([data-workspace-feedback]:not([hidden])) {
    overflow-y:auto !important;
  }
  :root.nocturn-theme body #annexes .master-officers > .workspace-dialog > .compact-body:has([data-workspace-feedback]:not([hidden])) #officers-form {
    display:grid !important; grid-template-rows:80px auto; flex:1 0 auto !important;
  }
  :root.nocturn-theme body #annexes .master-officers #officer-fields { grid-template-columns:minmax(0,1fr) !important; }
  :root.nocturn-theme body #annexes .master-officers .officer-field { grid-template-rows:minmax(20px,auto) 1fr; }
  :root.nocturn-theme body #annexes .master-officers .office-label { min-height:20px; }
}
@media (min-width:601px) and (max-width:1000px) {
  :root.nocturn-theme body #annexes .master-officers #officer-fields { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}

@layer nocturn-fit {
/* v39: approved Master home composition. Other pages and roles retain their styles. */
.master-motto,.master-home-symbols { display:none !important; }
:root.nocturn-theme body.figma-ai-layout.master-home-design main > .topbar { min-height:0 !important; height:0 !important; padding:0 !important; overflow:visible; position:relative; z-index:3; }
:root.nocturn-theme body.figma-ai-layout.master-home-design main > .topbar > :first-child { display:none !important; }
:root.nocturn-theme body.figma-ai-layout.master-home-design .topbar .nocturn-progress-slot { position:absolute; right:0; top:10px; }
:root.nocturn-theme body.figma-ai-layout.master-home-design main:has(> #dashboard:not(.hidden)) > .heading {
 display:grid !important; grid-template-columns:minmax(0,1fr) minmax(280px,28%) minmax(0,1fr) !important; grid-template-rows:52px 68px !important;
 gap:8px 24px !important; padding:8px 0 0 !important; min-height:128px !important; align-items:center !important; flex:none !important;
}
:root.nocturn-theme body.figma-ai-layout.master-home-design main:has(> #dashboard:not(.hidden)) > .heading::before,
:root.nocturn-theme body.figma-ai-layout.master-home-design main:has(> #dashboard:not(.hidden)) > .heading::after,
:root.nocturn-theme body.figma-ai-layout.master-home-design main:has(> #dashboard:not(.hidden)) > .heading > .heading-summary,
:root.nocturn-theme body.figma-ai-layout.master-home-design main:has(> #dashboard:not(.hidden)) > .heading > .heading-actions { display:none !important; }
:root.nocturn-theme body.figma-ai-layout.master-home-design main:has(> #dashboard:not(.hidden)) > .heading > .master-motto {
 display:block !important; text-align:center; font-family:'Cormorant Garamond',Georgia,serif !important; font-size:clamp(32px,3.2vw,58px) !important; font-weight:500;
 letter-spacing:.11em; line-height:1; color:#edcb71 !important; text-shadow:0 1px 0 #5b411b; white-space:nowrap;
}
:root.nocturn-theme body.figma-ai-layout.master-home-design .master-motto-nihil { grid-column:1 !important; grid-row:2 !important; }
:root.nocturn-theme body.figma-ai-layout.master-home-design .master-motto-sine { grid-column:2 !important; grid-row:1 !important; }
:root.nocturn-theme body.figma-ai-layout.master-home-design .master-motto-deo { grid-column:3 !important; grid-row:2 !important; }
:root.nocturn-theme body.figma-ai-layout.master-home-design main:has(> #dashboard:not(.hidden)) > .heading > #next-meeting-card {
 grid-column:2 !important; grid-row:2 !important; width:100% !important; min-width:0; margin:0 !important; padding:10px 12px !important; text-align:center; box-sizing:border-box;
 background:#fafbff !important; color:#101b39 !important;
}
:root.nocturn-theme body.figma-ai-layout.master-home-design #next-meeting-card small { color:#405a86 !important; }
:root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard {
 grid-template-rows:min-content min-content minmax(0,1fr) min-content !important; flex:1 1 0 !important; min-height:0 !important; gap:12px !important;
}
:root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard::after { display:none !important; }
:root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard > .two-col {
 width:100% !important; grid-template-columns:minmax(0,26%) minmax(0,26%) !important; justify-content:space-between !important; gap:16px !important;
}
:root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .two-col .compact-summary { min-height:64px !important; padding:8px 12px !important; gap:12px !important; }
:root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .two-col .compact-summary h2 { flex:1 !important; min-width:0; }
:root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .two-col .compact-launcher { width:100% !important; min-width:0 !important; }
:root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .stat-value,
:root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .compact-count {
 display:inline-flex !important; width:auto !important; min-width:38px; height:42px !important; padding:3px 10px !important; margin:6px 0 3px !important; align-items:center !important; justify-content:center !important; box-sizing:border-box;
 background:#ffe3a1 !important; color:#101b39 !important; border-radius:12px !important; font:500 28px/1 var(--ux-font,Arial,sans-serif) !important;
}
:root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .master-home-symbols {
 display:block !important; grid-column:1 !important; width:100% !important; height:100% !important; max-height:310px; min-height:0 !important; overflow:hidden; align-self:center; pointer-events:none;
}
@media(min-width:1024px) {
  :root.nocturn-theme body.figma-ai-layout.master-home-design[data-registry-role="secretary"] #dashboard .master-home-symbols {
   transform:scale(var(--home-decoration-scale,1));transform-origin:center bottom;
  }
}
:root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard > .dashboard-actions { justify-self:center !important; align-self:center !important; justify-content:center !important; margin:0 0 12px !important; }
:root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard #missing-note { width:auto !important; }
:root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard #missing-note .compact-launcher { width:192px !important; }
:root.nocturn-theme body.figma-ai-layout.master-home-design nav [data-panel-group="account-tools"] { position:relative; margin:0 !important; }
:root.nocturn-theme body.figma-ai-layout.master-home-design nav [data-panel-group="account-tools"] > .panel-action-group-body { position:absolute; right:0; top:calc(100% + 8px); z-index:50; min-width:240px; }
@media(min-width:1024px) {
 :root.nocturn-theme body.figma-ai-layout.master-home-design .sidebar > nav { flex-wrap:nowrap; gap:8px !important; align-items:stretch !important; }
 :root.nocturn-theme body.figma-ai-layout.master-home-design .sidebar > nav > :is(button,details) { flex:1 1 0 !important; min-width:0 !important; width:auto !important; max-width:none !important; }
 :root.nocturn-theme body.figma-ai-layout.master-home-design .sidebar > nav > :is(#add-member,[data-panel-group="account-tools"],[data-page="settings"]) { flex-grow:1.55; }
 :root.nocturn-theme body.figma-ai-layout.master-home-design .sidebar > nav > button,
 :root.nocturn-theme body.figma-ai-layout.master-home-design .sidebar > nav > details > summary { width:100% !important; min-width:0 !important; max-width:none !important; font-size:clamp(11px,.95vw,15px) !important; white-space:nowrap; padding:8px 6px !important; height:100% !important; }
}
@media(max-width:1023px) {
 :root.nocturn-theme body.figma-ai-layout.master-home-design main:has(> #dashboard:not(.hidden)) > .heading { grid-template-columns:minmax(0,1fr) minmax(190px,44%) minmax(0,1fr) !important; gap:6px !important; }
 :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard > .two-col { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
 :root.nocturn-theme body.figma-ai-layout.master-home-design main:has(> #dashboard:not(.hidden)) > .heading > .master-motto { font-size:clamp(18px,3.2vw,32px) !important; letter-spacing:.05em; }
}
@media(max-width:600px) {
 :root.nocturn-theme body.figma-ai-layout.master-home-design main:has(> #dashboard:not(.hidden)) > .heading { grid-template-columns:minmax(0,1fr) minmax(150px,56%) minmax(0,1fr) !important; grid-template-rows:30px auto !important; min-height:110px !important; }
 :root.nocturn-theme body.figma-ai-layout.master-home-design main:has(> #dashboard:not(.hidden)) > .heading > .master-motto { font-size:clamp(13px,4vw,21px) !important; }
 :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard > .two-col { grid-template-columns:minmax(0,1fr) !important; }
 :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .master-home-symbols { min-height:0 !important; }
 :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .dashboard-actions { flex-wrap:wrap; }
}

}

@layer nocturn-fit {
 :root.nocturn-theme body.figma-ai-layout.master-home-design > main {overflow:hidden!important;}
 :root.nocturn-theme body.figma-ai-layout.master-home-design .heading > #next-meeting-card {display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;}
 :root.nocturn-theme body.figma-ai-layout.master-home-design nav [data-panel-group="account-tools"] > .panel-action-group-body {display:flex!important;flex-direction:column!important;width:260px!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 160px)!important;overflow-y:auto!important;padding:10px!important;box-sizing:border-box!important;gap:8px!important;}
 :root.nocturn-theme body.figma-ai-layout.master-home-design nav [data-panel-group="account-tools"]:not([open]) > .panel-action-group-body {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout.master-home-design nav [data-panel-group="account-tools"] > .panel-action-group-body > button {width:100%!important;min-width:0!important;max-width:none!important;height:44px!important;min-height:44px!important;flex:0 0 auto!important;white-space:normal!important;overflow-wrap:normal!important;}
 :root.nocturn-theme body.figma-ai-layout.master-home-design nav [data-panel-group="account-tools"] #help-support {display:flex!important;align-items:center!important;gap:8px!important;}
 :root.nocturn-theme body.figma-ai-layout.master-home-design nav [data-panel-group="account-tools"] #help-support span {display:inline!important;width:auto!important;position:static!important;white-space:normal!important;}
 @media(min-width:1024px){
  :root.nocturn-theme body.figma-ai-layout.master-home-design .sidebar > nav > [data-panel-group="account-tools"] {flex:1.6 1 0!important;}
  :root.nocturn-theme body.figma-ai-layout.master-home-design .sidebar > nav > details > summary {white-space:nowrap!important;}
 }
}

@layer nocturn-fit {
 @media(max-width:1023px){
  :root.nocturn-theme body.figma-ai-layout.master-home-design nav [data-panel-group="account-tools"] > .panel-action-group-body {position:static!important;width:100%!important;max-height:none!important;}
 }
}

@layer nocturn-fit {
 :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard.compact-card {display:block!important;flex:0 0 auto!important;min-height:0!important;}
 :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard.compact-card > .compact-summary {display:flex!important;}
 :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard.compact-card > .workspace-dialog > .compact-body {overflow-x:hidden!important;overflow-y:auto!important;}
 :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard.compact-card > .workspace-dialog .two-col {display:grid!important;width:100%!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;}
 @media(max-width:600px){
  :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .stat {min-height:76px!important;padding:8px!important;}
  :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .stat-value {height:34px!important;font-size:24px!important;margin:4px 0 0!important;}
  :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .dashboard-actions {flex-wrap:nowrap!important;}
  :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .dashboard-actions > #missing-note,
  :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .dashboard-actions #missing-note .compact-launcher,
  :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .dashboard-actions > #view-history {width:calc((100vw - 48px)/2)!important;max-width:160px!important;min-width:0!important;}
 }
}

@layer nocturn-fit {
 :root.nocturn-theme body.figma-ai-layout.master-home-design .heading #next-meeting-freshness {align-self:center!important;width:100%!important;text-align:center!important;}
 @media(min-width:1024px){
  :root.nocturn-theme body.figma-ai-layout.master-home-design .sidebar > nav > button {white-space:nowrap!important;}
  :root.nocturn-theme body.figma-ai-layout.master-home-design .sidebar > nav > #add-member {flex:1.65 1 0!important;}
  :root.nocturn-theme body.figma-ai-layout.master-home-design .sidebar > nav > [data-page="settings"] {flex:1.35 1 0!important;}
  :root.nocturn-theme body.figma-ai-layout.master-home-design:is([data-registry-role="master"],[data-registry-role="secretary"]) .sidebar > nav {display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;}
  :root.nocturn-theme body.figma-ai-layout.master-home-design[data-registry-role="master"] .sidebar > nav {grid-template-columns:repeat(9,minmax(0,1fr))!important;}
  :root.nocturn-theme body.figma-ai-layout.master-home-design:is([data-registry-role="master"],[data-registry-role="secretary"]) .sidebar > nav > :is(button,details) {width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box;}
  :root.nocturn-theme body.figma-ai-layout.master-home-design:is([data-registry-role="master"],[data-registry-role="secretary"]) .sidebar > nav > details {padding:0!important;border:0!important;}
  :root.nocturn-theme body.figma-ai-layout.master-home-design:is([data-registry-role="master"],[data-registry-role="secretary"]) .sidebar > nav > button,
  :root.nocturn-theme body.figma-ai-layout.master-home-design:is([data-registry-role="master"],[data-registry-role="secretary"]) .sidebar > nav > details > summary {height:44px!important;min-height:44px!important;max-height:44px!important;}
  :root.nocturn-theme body.figma-ai-layout[data-registry-role="treasurer"] .sidebar > nav {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design .sidebar > nav {grid-template-columns:repeat(5,minmax(0,1fr))!important;}
  :root.nocturn-theme body.figma-ai-layout[data-registry-role="treasurer"] .sidebar > nav > :is(button,details) {width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;box-sizing:border-box;}
  :root.nocturn-theme body.figma-ai-layout[data-registry-role="treasurer"] .sidebar > nav > details {padding:0!important;border:0!important;}
  :root.nocturn-theme body.figma-ai-layout[data-registry-role="treasurer"] .sidebar > nav > button,
  :root.nocturn-theme body.figma-ai-layout[data-registry-role="treasurer"] .sidebar > nav > details > summary {width:100%!important;height:44px!important;min-height:44px!important;max-height:44px!important;font-size:clamp(11px,.95vw,15px)!important;white-space:nowrap!important;padding:8px 6px!important;}
 }
 @media(min-width:1024px) and (max-width:1199px){
  :root.nocturn-theme body.figma-ai-layout.master-home-design[data-registry-role="master"] .sidebar > nav > #add-member {white-space:normal!important;line-height:16px!important;padding:2px 4px!important;}
 }
}

.master-connection-badge {display:none;}
@layer nocturn-fit {
 :root.nocturn-theme body.figma-ai-layout.master-home-design .topbar > .master-connection-badge {display:block!important;position:absolute;left:0;top:8px;font-size:11px!important;line-height:16px;font-weight:500;white-space:nowrap;}
 :root.nocturn-theme body.figma-ai-layout.master-home-design .master-connection-badge[data-connected="true"] {color:#70e290!important;}
 :root.nocturn-theme body.figma-ai-layout.master-home-design .master-connection-badge[data-connected="false"] {color:#ff8585!important;}
}

/* v41: Treasury home reuses the approved header and navigation styles. */
@layer nocturn-fit {
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design main > .topbar{ min-height:0 !important; height:0 !important; padding:0 !important; overflow:visible; position:relative; z-index:3; }
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design main > .topbar > :first-child{ display:none !important; }
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design .topbar .nocturn-progress-slot{ position:absolute; right:0; top:10px; }
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design main:has(> #finance-obligations:not(.hidden)) > .heading{
 display:grid !important; grid-template-columns:minmax(0,1fr) minmax(280px,28%) minmax(0,1fr) !important; grid-template-rows:52px 68px !important;
 gap:8px 24px !important; padding:8px 0 0 !important; min-height:128px !important; align-items:center !important; flex:none !important;
}
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design main:has(> #finance-obligations:not(.hidden)) > .heading::before,
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design main:has(> #finance-obligations:not(.hidden)) > .heading::after,
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design main:has(> #finance-obligations:not(.hidden)) > .heading > .heading-summary,
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design main:has(> #finance-obligations:not(.hidden)) > .heading > .heading-actions{ display:none !important; }
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design main:has(> #finance-obligations:not(.hidden)) > .heading > .master-motto{
 display:block !important; text-align:center; font-family:'Cormorant Garamond',Georgia,serif !important; font-size:clamp(32px,3.2vw,58px) !important; font-weight:500;
 letter-spacing:.11em; line-height:1; color:#edcb71 !important; text-shadow:0 1px 0 #5b411b; white-space:nowrap;
}
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design .master-motto-nihil{ grid-column:1 !important; grid-row:2 !important; }
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design .master-motto-sine{ grid-column:2 !important; grid-row:1 !important; }
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design .master-motto-deo{ grid-column:3 !important; grid-row:2 !important; }
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design main:has(> #finance-obligations:not(.hidden)) > .heading > #next-meeting-card{
 grid-column:2 !important; grid-row:2 !important; width:100% !important; min-width:0; margin:0 !important; padding:10px 12px !important; text-align:center; box-sizing:border-box;
 background:#fafbff !important; color:#101b39 !important;
}
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design #next-meeting-card small{ color:#405a86 !important; }
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design nav [data-panel-group="account-tools"]{ position:relative; margin:0 !important; }
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design nav [data-panel-group="account-tools"] > .panel-action-group-body{ position:absolute; right:0; top:calc(100% + 8px); z-index:50; min-width:240px; }
@media(min-width:1024px){:root.nocturn-theme body.figma-ai-layout.treasurer-home-design .sidebar > nav{ flex-wrap:nowrap; gap:8px !important; align-items:stretch !important; }
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design .sidebar > nav > :is(button,details){ flex:1 1 0 !important; min-width:0 !important; width:auto !important; max-width:none !important; }
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design .sidebar > nav > :is(#add-member,[data-panel-group="account-tools"],[data-page="settings"]){ flex-grow:1.55; }
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design .sidebar > nav > button,
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design .sidebar > nav > details > summary{ width:100% !important; min-width:0 !important; max-width:none !important; font-size:clamp(11px,.95vw,15px) !important; white-space:nowrap; padding:8px 6px !important; height:100% !important; }
}
@media(max-width:1023px){:root.nocturn-theme body.figma-ai-layout.treasurer-home-design main:has(> #finance-obligations:not(.hidden)) > .heading{ grid-template-columns:minmax(0,1fr) minmax(190px,44%) minmax(0,1fr) !important; gap:6px !important; }
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design main:has(> #finance-obligations:not(.hidden)) > .heading > .master-motto{ font-size:clamp(18px,3.2vw,32px) !important; letter-spacing:.05em; }
}
@media(max-width:600px){:root.nocturn-theme body.figma-ai-layout.treasurer-home-design main:has(> #finance-obligations:not(.hidden)) > .heading{ grid-template-columns:minmax(0,1fr) minmax(150px,56%) minmax(0,1fr) !important; grid-template-rows:30px auto !important; min-height:110px !important; }
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design main:has(> #finance-obligations:not(.hidden)) > .heading > .master-motto{ font-size:clamp(13px,4vw,21px) !important; }
}
@layer nocturn-fit{@media(max-width:1023px){:root.nocturn-theme body.figma-ai-layout.treasurer-home-design nav [data-panel-group="account-tools"] > .panel-action-group-body{position:static!important;width:100%!important;max-height:none!important;}
}
}
@layer nocturn-fit{:root.nocturn-theme body.figma-ai-layout.treasurer-home-design .heading #next-meeting-freshness{align-self:center!important;width:100%!important;text-align:center!important;}
@media(min-width:1024px){:root.nocturn-theme body.figma-ai-layout.treasurer-home-design .sidebar > nav > button{white-space:nowrap!important;}
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design .sidebar > nav > #add-member{flex:1.65 1 0!important;}
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design .sidebar > nav > [data-page="settings"]{flex:1.35 1 0!important;}
}
}
@layer nocturn-fit{:root.nocturn-theme body.figma-ai-layout.treasurer-home-design .topbar > .treasurer-connection-badge{display:block!important;position:absolute;left:0;top:8px;font-size:11px!important;line-height:16px;font-weight:500;white-space:nowrap;}
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design .treasurer-connection-badge[data-connected="true"]{color:#70e290!important;}
:root.nocturn-theme body.figma-ai-layout.treasurer-home-design .treasurer-connection-badge[data-connected="false"]{color:#ff8585!important;}
}

}

/* Equal decorative scale on the two Chrome role panels; keep controls in place. */
@layer nocturn-fit {
 @media(min-width:1024px) {
  :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .treasurer-home-symbols {
   transform:translateY(30px) scale(var(--home-decoration-scale,1));transform-origin:center bottom;
  }
  :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations #finance-add-obligation {
   transform:translateY(12px);position:relative;z-index:1;
  }
 }
}
@layer nocturn-fit {@media(min-width:1024px){
 :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations :is(.finance-stats,.finance-members,.finance-rules){position:relative;z-index:1;}
}}

/* v43: approved Members composition; Master only, original controls/dialogs. */
.members-connection-badge,.members-launch-copy,.members-master-decoration{display:none;}
@layer nocturn-fit{
:root.nocturn-theme body.figma-ai-layout.members-master-design > main{overflow:hidden!important;gap:16px!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design main > .topbar{position:relative;min-height:16px!important;height:16px!important;padding:0!important;overflow:visible;z-index:3;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .topbar > :first-child{display:none!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .topbar > .members-connection-badge{display:block!important;position:absolute;left:0;top:0;font-size:11px!important;line-height:16px;font-weight:500;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .members-connection-badge[data-connected="true"]{color:#70e290!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .members-connection-badge[data-connected="false"]{color:#ff8585!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .heading{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;min-height:84px!important;gap:16px!important;padding:0!important;align-items:center!important;flex:none!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .heading > .heading-summary{grid-column:1!important;grid-row:1!important;min-width:0!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .heading > :is(#page-back,.heading-actions){display:none!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .heading > #next-meeting-card{grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:500px!important;justify-self:center;margin:0!important;padding:12px!important;background:#fafbff!important;color:#101b39!important;box-sizing:border-box;text-align:center;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #next-meeting-freshness{color:#405a86!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto minmax(0,1fr)!important;flex:1 1 0!important;min-height:0!important;gap:0!important;overflow:hidden!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members > :is(.member-list-modes,.panel){width:calc(100% - 96px)!important;justify-self:center;margin:0!important;box-sizing:border-box;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members > .member-list-modes{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;padding:12px!important;border:1px solid #d4ba6b!important;border-bottom:0!important;border-radius:6px 6px 0 0!important;background:#0b1733!important;align-items:center!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members > .member-list-modes > button{width:100%!important;min-width:0!important;max-width:none!important;height:48px!important;margin:0!important;white-space:nowrap!important;font-family:var(--ux-heading)!important;font-size:18px!important;font-weight:600!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members > .panel{border:1px solid #d4ba6b!important;border-top:0!important;border-radius:0 0 6px 6px!important;overflow:visible!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members > .panel > .compact-summary{display:flex!important;align-items:center!important;gap:12px!important;min-height:116px!important;padding:16px 20px!important;box-sizing:border-box;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members .members-launch-copy{display:block!important;flex:1!important;min-width:0;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members .members-launch-copy h2{font-size:28px!important;margin:0 0 6px!important;color:#101b39!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members .members-launch-copy p{font-size:16px!important;margin:0!important;color:#405a86!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members > .panel > .compact-summary > h2{flex:0 0 auto!important;margin:0!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members > .panel > .compact-summary .compact-launcher{width:240px!important;max-width:100%!important;font-family:var(--ux-heading)!important;font-size:20px!important;font-weight:600!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members .members-master-decoration{display:flex!important;flex-direction:column;align-items:center;min-height:0;overflow:hidden;margin:6px 0 0!important;pointer-events:none;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .members-master-decoration svg{display:block;width:100%;height:100%;min-height:0;flex:1 1 0;overflow:hidden;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .members-master-decoration figcaption{flex:none;text-align:center;color:#edcb71!important;font:500 clamp(13px,1.3vw,22px)/1.18 var(--ux-heading);letter-spacing:.14em;padding:6px 12px 0;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .members-master-decoration figcaption span{display:block;}
:root.nocturn-theme body.figma-ai-layout.members-master-design nav [data-panel-group="account-tools"]{position:relative;margin:0!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design nav [data-panel-group="account-tools"] > .panel-action-group-body{position:absolute;right:0;top:calc(100% + 8px);z-index:50;display:flex!important;flex-direction:column;width:260px!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 160px)!important;overflow-y:auto!important;box-sizing:border-box;padding:10px!important;gap:8px!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design nav [data-panel-group="account-tools"]:not([open]) > .panel-action-group-body{display:none!important;}
@media(min-width:1024px){
:root.nocturn-theme body.figma-ai-layout.members-master-design .sidebar > nav{display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:8px!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .sidebar > nav > :is(button,details){flex:1 1 0!important;min-width:0!important;width:0!important;max-width:none!important;margin:0!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .sidebar > nav > button,:root.nocturn-theme body.figma-ai-layout.members-master-design .sidebar > nav > details > summary{width:100%!important;max-width:none!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:8px 4px!important;white-space:nowrap!important;font-family:var(--ux-heading)!important;font-size:clamp(12px,1.1vw,18px)!important;font-weight:600!important;box-sizing:border-box;}
}
@media(max-width:1023px){
:root.nocturn-theme body.figma-ai-layout.members-master-design .heading{grid-template-columns:minmax(0,1fr)!important;min-height:0!important;gap:8px!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .heading > #next-meeting-card{grid-column:1!important;grid-row:2!important;max-width:100%!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members > :is(.member-list-modes,.panel){width:100%!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members > .member-list-modes{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding:8px!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members > .member-list-modes > button{font-size:16px!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members > .panel > .compact-summary{flex-wrap:wrap!important;padding:10px!important;min-height:0!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members .members-launch-copy{flex-basis:100%!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members .members-launch-copy h2{font-size:24px!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .members-master-decoration figcaption{font-size:12px!important;letter-spacing:.04em;}
:root.nocturn-theme body.figma-ai-layout.members-master-design nav [data-panel-group="account-tools"] > .panel-action-group-body{position:static!important;width:100%!important;max-height:none!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members.compact-card{display:block!important;flex:0 0 auto!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members.compact-card > .workspace-dialog > .compact-body{overflow-y:auto!important;overflow-x:hidden!important;}
}
}
@layer nocturn-fit{
:root.nocturn-theme body.figma-ai-layout.members-master-design .heading > #next-meeting-card{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design :is(#next-meeting-date,#next-meeting-freshness){width:100%!important;text-align:center!important;align-self:center!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .members-master-decoration figcaption{font-family:var(--ux-heading)!important;font-size:clamp(13px,1.3vw,22px)!important;font-weight:500!important;line-height:1.18!important;}
}
@layer nocturn-fit{@media(min-width:1024px){
:root.nocturn-theme body.figma-ai-layout.members-master-design .sidebar > nav{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design[data-registry-role="secretary"] .sidebar > nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .sidebar > nav > :is(button,details){width:100%!important;box-sizing:border-box;}
:root.nocturn-theme body.figma-ai-layout.members-master-design .sidebar > nav > details{padding:0!important;border:0!important;}
}}
@layer nocturn-visibility{
:root.nocturn-theme body.figma-ai-layout.members-master-design .members-master-decoration figcaption{font-family:'Cormorant Garamond',Georgia,serif!important;}
}
@layer nocturn-fit{
:root.nocturn-theme body.figma-ai-layout.members-master-design #members > .panel > .compact-summary > .section-help-button{margin-left:0!important;}
}
@layer nocturn-visibility{
:root.nocturn-theme body.figma-ai-layout.members-master-design .members-master-decoration figcaption span{font-family:'Cormorant Garamond',Georgia,serif!important;}
}
@layer nocturn-fit{
:root.nocturn-theme body.figma-ai-layout.members-master-design main > footer{border-top:1px solid #8d7945!important;padding-top:10px!important;}
}
/* Advancement deadlines: one fixed dialog, one independently scrolling list. */
dialog.advancement-calendar-dialog:not([open]) { display:none !important; }
:root.nocturn-theme body #calendar.advancement-calendar-dialog {
 width:min(1010px,calc(100vw - 32px)) !important; height:auto !important; max-height:calc(100dvh - 32px) !important;
 padding:0 !important; margin:auto !important; inset:0 !important; overflow:hidden !important;
}
:root.nocturn-theme body #calendar .dialog-heading { align-items:flex-start; background:var(--nocturn-navy,#0b1230) !important; }
:root.nocturn-theme body #calendar .dialog-heading h2 { color:var(--nocturn-gold,#d5b963) !important; }
:root.nocturn-theme body #calendar .dialog-heading p { color:#d5ddf3 !important; margin:5px 0 0; font-size:15px; }
:root.nocturn-theme body #calendar .advancement-body { padding:18px 26px 10px; min-height:0; overflow-y:auto; overflow-x:hidden; color:#172747; background:#f8f9fd; }
.advancement-tools { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.advancement-tools label { font-weight:600; }
:root.nocturn-theme body #calendar select { width:auto; max-width:100%; min-height:42px; background:#fff !important; color:#172747 !important; }
.advancement-legend { margin-left:auto; display:flex; gap:18px; font-size:14px; }
.advancement-legend span { display:flex; align-items:center; gap:7px; }
.advancement-legend i,.advancement-day i { display:inline-block; width:9px; height:9px; border-radius:50%; background:#315cee; flex-shrink:0; }
.advancement-legend .past,.advancement-day.past i { background:#d99c17; }
#advancement-summary { margin:10px 0 8px; font-size:14px; }
.advancement-month-nav { display:flex; justify-content:center; align-items:center; gap:70px; margin:6px 0; }
:root.nocturn-theme body #calendar .advancement-month-nav h3 { margin:0; min-width:190px; text-align:center; color:#172747 !important; font:600 21px/1.4 var(--ux-font,Arial,sans-serif); text-transform:capitalize; }
:root.nocturn-theme body #calendar .advancement-month-nav button { width:40px !important; min-width:40px !important; flex:none; min-height:38px; padding:0 10px; font-size:24px; }
.advancement-weekdays,#advancement-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.advancement-weekdays { border:1px solid #ced6e5; background:#e9edf5; }
.advancement-weekdays span { text-align:center; padding:7px 0; font-weight:600; }
#advancement-grid { border-left:1px solid #ced6e5; border-bottom:1px solid #ced6e5; }
:root.nocturn-theme body #calendar .advancement-day,.advancement-blank { border:0 !important; border-right:1px solid #ced6e5 !important; border-top:1px solid #ced6e5 !important; border-radius:0 !important; min-height:52px; }
:root.nocturn-theme body #calendar .advancement-day { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:4px 1px !important; width:100% !important; min-width:0 !important; height:52px !important; outline:none !important; background:#f8f9fd !important; color:#172747 !important; box-shadow:none !important; font-size:16px; }
:root.nocturn-theme body #calendar .advancement-day small { display:flex; align-items:center; gap:5px; white-space:nowrap; font-size:12px; line-height:1.1; }
:root.nocturn-theme body #calendar .advancement-day[aria-current=date] > span { text-decoration:underline; text-underline-offset:3px; }
:root.nocturn-theme body #calendar .advancement-day[aria-pressed=true] { background:#fff1cc !important; outline:1px solid #d4ac46 !important; outline-offset:-1px; }
:root.nocturn-theme body #calendar .advancement-day:focus-visible { outline:3px solid #315cee !important; outline-offset:-3px; }
.advancement-details { margin-top:14px; border:1px solid #dec684; border-radius:8px; padding:12px 16px; }
:root.nocturn-theme body #calendar .advancement-details h3 { font:600 18px/1.4 var(--ux-font,Arial,sans-serif); color:#172747 !important; margin:0 0 7px; }
:root.nocturn-theme body #calendar #timeline { max-height:150px; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-gutter:stable; }
.advancement-person { display:flex; align-items:center; gap:14px; padding:9px 12px; margin:0 0 5px; background:#fff; border:1px solid #dce2ec; border-radius:6px; }
.advancement-person > div { flex:1; min-width:0; overflow-wrap:anywhere; }
.advancement-person p { margin:3px 0 0; font-size:13px; color:#53617e; }
:root.nocturn-theme body #calendar .advancement-person .text-button { width:auto !important; min-width:80px !important; }
.advancement-status { flex-shrink:0; border:1px solid #90a5ef; color:#2446a5; border-radius:20px; padding:3px 10px; font-size:12px; }
.advancement-status.past { border-color:#dda82e; color:#955b09; background:#fff9eb; }
.advancement-hint { margin:8px 0 0; text-align:center; font-size:12px; color:#53617e; }
.advancement-empty { margin:10px; text-align:center; color:#53617e; }
/* Scoped exceptions precede the shared important control layers. */
@layer nocturn-visibility {
 :root.nocturn-theme body #calendar.advancement-calendar-dialog { width:min(1010px,calc(100vw - 32px)) !important; height:fit-content !important; max-height:calc(100dvh - 32px) !important; }
 :root.nocturn-theme body #calendar.advancement-calendar-dialog:not([open]) { display:none !important; }
 :root.nocturn-theme body #calendar .dialog-footer { height:auto !important; min-height:0 !important; flex:0 0 auto !important; }
 :root.nocturn-theme body #calendar .advancement-month-nav button { width:40px !important; min-width:40px !important; height:40px !important; }
 :root.nocturn-theme body #calendar .advancement-day { width:100% !important; min-width:0 !important; max-width:none !important; height:52px !important; padding:4px 1px !important; border:0 !important; border-right:1px solid #ced6e5 !important; border-top:1px solid #ced6e5 !important; outline:none !important; box-shadow:none !important; background:#f8f9fd !important; }
 :root.nocturn-theme body #calendar .advancement-day[aria-pressed=true] { background:#fff1cc !important; outline:1px solid #d4ac46 !important; }
 :root.nocturn-theme body #calendar .advancement-day:focus-visible { outline:3px solid #315cee !important; }
 :root.nocturn-theme body #calendar .advancement-person .text-button { width:auto !important; min-width:80px !important; }
 :root.nocturn-theme body #calendar .advancement-month-nav h3,:root.nocturn-theme body #calendar .advancement-details h3 { font-family:Arial,sans-serif !important; font-weight:600 !important; }
 @media(max-width:600px) {
  :root.nocturn-theme body #calendar.advancement-calendar-dialog { width:calc(100vw - 16px) !important; max-width:calc(100vw - 16px) !important; max-height:calc(100dvh - 16px) !important; }
  :root.nocturn-theme body #calendar .advancement-day small { font-size:9px !important; }
 }
}
:root.nocturn-theme body #calendar .dialog-footer { padding:10px 18px; }
:root.nocturn-theme body #calendar .dialog-footer p { flex:1; margin:0; font-size:12px; }
@media(max-width:600px) {
 :root.nocturn-theme body #calendar.advancement-calendar-dialog { width:calc(100vw - 16px) !important; max-height:calc(100dvh - 16px) !important; }
 :root.nocturn-theme body #calendar .advancement-body { padding:12px; }
 :root.nocturn-theme body #calendar .dialog-heading h2 { font-size:25px; }
 .advancement-tools { gap:8px; } .advancement-legend { margin-left:0; width:100%; }
 .advancement-month-nav { gap:12px; }
 :root.nocturn-theme body #calendar .advancement-month-nav h3 { min-width:150px; font-size:18px; }
 :root.nocturn-theme body #calendar .advancement-day small { font-size:9px !important; gap:2px; }
 .advancement-day i { width:5px; height:5px; }
 .advancement-details { padding:9px; }
 .advancement-person { flex-wrap:wrap; gap:7px; }
 .advancement-person > div { flex-basis:100%; }
}
/* The existing Officers workspace opens directly; its launcher has no page. */
@layer nocturn-visibility {
#annexes.officers-direct-host { display:contents !important; height:0 !important; min-height:0 !important; margin:0 !important; padding:0 !important; border:0 !important; flex:none !important; overflow:visible !important; }
#annexes.officers-direct-host > .officers-panel { display:contents !important; }
#annexes.officers-direct-host > .officers-panel > :not(dialog) { display:none !important; }
}
/* Invitations retain their original forms in one direct workspace with role tabs. */
@layer nocturn-visibility {
 #invitations.invitations-direct-host,#participant-invitations { display:contents !important; }
 #invitations.invitations-direct-host::after { display:none !important; }
 #invitations.invitations-direct-host.hidden,#invitations.invitations-direct-host[hidden],#participant-invitations[hidden] { display:none !important; }
 #participant-invitations > :not(dialog) { display:none !important; }
 :root.nocturn-theme body .invitation-workspace-dialog { width:min(960px,calc(100vw - 32px)) !important; height:fit-content !important; max-height:calc(100dvh - 32px) !important; }
 :root.nocturn-theme body .invitation-workspace-dialog > .dialog-heading { background:#0a1230 !important; color:#d8bd6a !important; align-items:center !important; border-radius:0 !important; }
 :root.nocturn-theme body .invitation-workspace-dialog > .dialog-heading h2 { color:#d8bd6a !important; }
 :root.nocturn-theme body .invitation-workspace-dialog .invitation-heading-copy p { color:#d6def3 !important; }
 :root.nocturn-theme body .invitation-workspace-dialog > .dialog-heading :is(.operation-progress,.operation-progress *) { color:#e7efff !important; }
 :root.nocturn-theme body .invitation-workspace-dialog > .dialog-heading .icon-button { margin-left:auto !important; }
 :root.nocturn-theme body .invitation-workspace-dialog .invitation-role-panel[hidden] { display:none !important; }
 :root.nocturn-theme body .invitation-workspace-dialog .invitation-role-panel { padding:0 !important; border:0 !important; margin:0 !important; background:transparent !important; }
 :root.nocturn-theme body .invitation-workspace-dialog .invitation-form-heading { padding:0 !important; margin:0 0 14px !important; background:transparent !important; border:0 !important; align-items:center !important; display:flex !important; }
 :root.nocturn-theme body .invitation-workspace-dialog .invitation-form-heading .section-help-button { position:static !important; margin-left:auto !important; flex:none !important; }
 :root.nocturn-theme body .invitation-workspace-dialog .invitation-role-tabs button { width:auto !important; flex:1 !important; min-width:0 !important; height:48px !important; }
 :root.nocturn-theme body .invitation-workspace-dialog .invitation-role-tabs button[aria-selected=true] { background:#d4bb6a !important; color:#101b35 !important; }
 :root.nocturn-theme body .invitation-workspace-dialog form > .field { width:100% !important; max-width:none !important; }
 :root.nocturn-theme body .invitation-workspace-dialog form input:not([type=checkbox]) { width:100% !important; max-width:none !important; }
 :root.nocturn-theme body .invitation-workspace-dialog .invitation-form-actions button { width:auto !important; min-width:0 !important; flex:1 !important; white-space:normal !important; min-height:48px !important; }
 :root.nocturn-theme body .invitation-workspace-dialog .invitation-form-actions button.primary { background:#d4bb6a !important; color:#101b35 !important; }
}
.invitation-heading-copy { flex:1; min-width:0; }
.invitation-heading-copy p { margin:5px 0 0; color:#d6def3; font-size:15px; }
.invitation-role-tabs { display:flex; gap:10px; margin:12px 20px 0; padding:6px; background:#111b38; border-radius:6px; flex:0 0 auto; }
.invitation-workspace-dialog .compact-body { padding:22px 30px !important; min-height:0; overflow:auto; }
.invitation-workspace-dialog .invitation-form-heading h2 { margin:0; font-size:27px; }
.invitation-workspace-dialog form { display:flex; flex-direction:column; gap:16px; }
.invitation-workspace-dialog form > label:not(.field) { display:flex; align-items:center; gap:10px; }
.invitation-workspace-dialog .invitation-form-hint { color:#596782; font-size:13px; margin:0; line-height:1.5; }
.invitation-form-actions { display:flex; gap:12px; }
.invitation-workspace-dialog .notice:not([hidden]):not(.hidden) { margin-top:16px; overflow-wrap:anywhere; }
@media(max-width:600px) {
 .invitation-workspace-dialog .compact-body { padding:16px !important; }
 .invitation-workspace-dialog > .dialog-heading > img { display:none; }
 .invitation-role-tabs { margin:10px 12px 0; }
 .invitation-form-actions { flex-direction:column; }
}
/* The top Calendar action opens the original meetings window directly. */
@layer nocturn-visibility {
 #meetings.meetings-direct-host { display:contents !important; }
 #meetings.meetings-direct-host.hidden { display:none !important; }
 #meetings.meetings-direct-host > :not(dialog) { display:none !important; }
}

/* Finance-only presentation. Existing forms and financial calculations are unchanged. */
@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout .finance-data-host {display:contents!important;}
 :root.nocturn-theme body.figma-ai-layout .finance-data-host.hidden {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout .finance-data-host > :not(dialog) {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout .finance-data-host > dialog[open] {display:flex!important;}
 :root.nocturn-theme body.figma-ai-layout .finance-mlnr-group[hidden] {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-navigation-store {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-harmonized:not(.hidden) {display:flex!important;flex-direction:column!important;gap:12px!important;min-height:0!important;overflow:visible!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-harmonized > .finance-stats {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;padding:0!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design #finance-cash > .finance-stats {grid-template-columns:repeat(5,minmax(0,1fr))!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-harmonized > .finance-stats > .stat {min-height:0!important;padding:12px!important;position:relative!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-harmonized > .finance-stats .stat-value {font-size:clamp(20px,1.8vw,30px)!important;line-height:1.3!important;text-align:left!important;margin:6px 0!important;padding:0 32px 0 0!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-harmonized > .finance-stats .stat-detail {display:block!important;font-size:12px!important;line-height:1.35!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-harmonized > .finance-stats .stat-label {font-size:14px!important;min-height:0!important;padding-right:30px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-panel {margin:0!important;padding:12px 16px!important;min-height:0!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-panel > .panel-heading {padding:0 0 10px!important;min-height:32px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-panel h2 {font-size:24px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-panel .finance-preview-copy {overflow:hidden!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-workspace-tabs {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-workspace-tabs button {width:100%!important;min-width:0!important;min-height:44px!important;white-space:normal!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design :is(.finance-workspace-tabs,.finance-group-tabs) button.active {background:#d4ba6b!important;color:#0b1531!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-workspace-context {display:flex!important;align-items:center!important;gap:16px!important;flex-wrap:wrap!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-workspace-context > .field {display:flex!important;align-items:center!important;gap:10px!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-workspace-context input {width:160px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-workspace-actions {display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-workspace-actions > button {min-width:150px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-workspace-actions > button[hidden] {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-footer {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-top:12px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-table {width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-table :is(th,td) {white-space:normal!important;overflow-wrap:anywhere!important;padding:9px!important;font-size:14px!important;line-height:1.35!important;text-align:left!important;border-bottom:1px solid #d4ba6b!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-table th {background:#182b4d!important;color:#f8f9fd!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-group-tabs {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin-bottom:12px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-group-tabs button {min-width:0!important;white-space:normal!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-mlnr-group {display:flex!important;gap:12px!important;flex-wrap:wrap!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-mlnr-group > .finance-preview-panel {width:100%!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-destination {flex:1 1 240px!important;padding:16px!important;background:#f8f9fd!important;border:1px solid #ad9350!important;border-radius:8px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-destination button {width:100%!important;white-space:normal!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-import-actions {position:relative!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-import-actions > summary {cursor:pointer;padding:10px 18px;border:3px solid #d4ba6b;border-radius:5px;background:#182b4d;color:#fff;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-import-actions[open] {padding:8px!important;background:#182b4d!important;border:1px solid #d4ba6b!important;border-radius:5px!important;}
}
@media(max-width:700px),(max-height:740px){
 @layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-harmonized:not(.hidden) {gap:8px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-harmonized > .finance-stats .stat-detail {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-copy {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-panel > .panel-heading {padding-bottom:2px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-footer {margin-top:4px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-footer > span {display:none!important;}
 }
}
@media(max-width:700px){
 @layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-harmonized > .finance-stats,
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design #finance-cash > .finance-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-harmonized > .finance-stats > .stat {padding:6px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-harmonized > .finance-stats .stat-value {font-size:18px!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-workspace-tabs button {padding:4px!important;font-size:12px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-workspace-actions > button {min-width:0!important;flex:1 1 40%!important;font-size:12px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-workspace-context > span {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-panel {padding:8px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-panel h2 {font-size:20px!important;}
 }
}

@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-panel {background:#f8f9fd!important;color:#101b39!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-panel h2 {color:#101b39!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-harmonized > .finance-summary-compact {display:block!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-summary-compact > .compact-summary {min-height:44px!important;padding:4px 8px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-summary-compact > .compact-summary button {min-height:36px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-panel .compact-launcher {width:auto!important;min-width:220px!important;}
}
@media(max-width:700px){@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-workspace-context {gap:4px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-group-tabs {gap:3px!important;margin-bottom:6px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-group-tabs button {font-size:12px!important;padding:4px!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-destination {padding:4px!important;flex-basis:100%!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-footer button {min-width:0!important;width:100%!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-workspace-actions > span {display:none!important;}
}}

@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-mlnr-group[hidden] {display:none!important;}
}

@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-panel > .panel-heading {background:transparent!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-panel :is(td,.small-muted) {color:#182b4d!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-group-tabs button {width:100%!important;}
}

@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-import-actions[hidden] {display:none!important;}
}

@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design .finance-preview-value {display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden!important;overflow-wrap:anywhere!important;}
}

@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout .finance-workspace-window > .dialog-heading {gap:10px!important;}
 :root.nocturn-theme body.figma-ai-layout .finance-workspace-window > .dialog-heading h2 {flex:1!important;min-width:0!important;}
}

/* History opens directly in its existing window, above the source page. */
@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout #history.history-direct-host,
 :root.nocturn-theme body.figma-ai-layout #history.history-direct-host > .panel {display:contents!important;}
 :root.nocturn-theme body.figma-ai-layout #history.history-direct-host.hidden {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout #history.history-direct-host > .panel > :not(dialog) {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout .history-direct-dialog > .dialog-heading {gap:10px!important;}
 :root.nocturn-theme body.figma-ai-layout .history-direct-dialog > .dialog-heading h2 {flex:1!important;min-width:0!important;}
}

/* Unified account entry. Only presentation changes; original forms remain in their windows. */
@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout #settings.account-direct-host {display:contents!important;}
 :root.nocturn-theme body.figma-ai-layout #settings.account-direct-host.hidden {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout #settings.account-direct-host > :not(dialog) {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog {width:min(1080px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px)!important;height:fit-content!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;padding:0!important;}
 :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog > .dialog-heading {gap:10px!important;padding:18px 24px!important;align-items:center!important;}
 :root.nocturn-theme body.figma-ai-layout .account-heading-copy {flex:1!important;min-width:0!important;}
 :root.nocturn-theme body.figma-ai-layout .account-heading-copy h2 {font-size:32px!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout .account-heading-copy p {font-size:14px!important;color:#526581!important;margin:4px 0 0!important;}
 :root.nocturn-theme body.figma-ai-layout .account-workspace-tabs {display:flex!important;gap:10px!important;padding:10px 16px!important;}
 :root.nocturn-theme body.figma-ai-layout .account-workspace-tabs button {flex:1!important;min-width:0!important;max-width:none!important;width:auto!important;min-height:58px!important;height:auto!important;white-space:normal!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:3px!important;}
 :root.nocturn-theme body.figma-ai-layout .account-workspace-tabs small {font-size:12px!important;font-weight:400!important;}
 :root.nocturn-theme body.figma-ai-layout .account-workspace-tabs button[aria-selected=true] {background:#d4bb6a!important;color:#101b35!important;}
 :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog > .compact-body {padding:0 20px 14px!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;}
 :root.nocturn-theme body.figma-ai-layout .account-workspace-panel[hidden] {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout .account-summary {display:flex!important;align-items:center!important;gap:16px!important;padding:14px 18px!important;border:1px solid #d1ba77!important;border-radius:6px!important;background:#f5f3ed!important;margin:0 0 12px!important;}
 :root.nocturn-theme body.figma-ai-layout .account-summary p {margin:0!important;font-size:14px!important;color:#526581!important;}
 :root.nocturn-theme body.figma-ai-layout .account-summary p:first-child {font-size:19px!important;font-weight:600!important;color:#0c2143!important;}
 :root.nocturn-theme body.figma-ai-layout .account-summary-icon {font-size:35px!important;color:#152747!important;}
 :root.nocturn-theme body.figma-ai-layout .account-summary-status {margin-left:auto!important;color:#08795a!important;font-size:13px!important;}
 :root.nocturn-theme body.figma-ai-layout .account-access-grid {display:grid!important;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)!important;gap:14px!important;}
 :root.nocturn-theme body.figma-ai-layout .account-security-panel,:root.nocturn-theme body.figma-ai-layout .account-permission-card {padding:16px!important;border:1px solid #c5a553!important;border-radius:6px!important;background:#fafbfe!important;min-width:0!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout .account-security-panel > .panel-heading {display:flex!important;align-items:center!important;gap:10px!important;margin:0!important;padding:0 0 10px!important;border-bottom:1px solid #d4bb6a!important;background:transparent!important;}
 :root.nocturn-theme body.figma-ai-layout .account-security-panel > .panel-heading h2 {flex:1!important;font-size:24px!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout .account-action-row {margin:10px 0 0!important;padding:0!important;border:0!important;}
 :root.nocturn-theme body.figma-ai-layout .account-action-row > button {position:relative!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;gap:4px!important;box-sizing:border-box!important;background:#182b4b!important;color:#fafbfe!important;border:3px solid #d4bb6a!important;box-shadow:inset 0 0 0 1px #ead18a!important;min-height:74px!important;height:auto!important;width:100%!important;max-width:none!important;padding:12px 44px 12px 16px!important;text-align:left!important;border-radius:6px!important;white-space:normal!important;line-height:1.25!important;cursor:pointer!important;}
 :root.nocturn-theme body.figma-ai-layout .account-action-row > button:not(:disabled):hover {background:#263e63!important;}
 :root.nocturn-theme body.figma-ai-layout .account-action-row > button:not(:disabled):active {background:#13213b!important;}
 :root.nocturn-theme body.figma-ai-layout .account-action-row > button:focus-visible {outline:2px solid #b58a32!important;outline-offset:3px!important;}
 :root.nocturn-theme body.figma-ai-layout .account-action-title {display:block!important;font-size:18px!important;font-weight:700!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout .account-action-hint {display:block!important;font-size:13px!important;font-weight:400!important;color:#eef2fa!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout .account-action-chevron {position:absolute!important;right:14px!important;top:50%!important;transform:translateY(-50%)!important;font-size:28px!important;font-weight:400!important;color:#e2c468!important;pointer-events:none!important;}
 :root.nocturn-theme body.figma-ai-layout .account-original-host {display:contents!important;}
 :root.nocturn-theme body.figma-ai-layout .account-original-host > :not(dialog) {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout .account-logout-slot {margin-top:14px!important;padding:12px 4px 0!important;border-top:1px solid #d4bb6a!important;}
 :root.nocturn-theme body.figma-ai-layout .account-logout-slot #logout {background:transparent!important;border:0!important;box-shadow:none!important;color:#ad2130!important;min-height:32px!important;height:auto!important;width:auto!important;padding:0!important;}
 :root.nocturn-theme body.figma-ai-layout .account-logout-slot p {font-size:12px!important;color:#526581!important;margin:4px 0!important;}
 :root.nocturn-theme body.figma-ai-layout #account-panel-application,:root.nocturn-theme body.figma-ai-layout #account-panel-support {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:start!important;}
 :root.nocturn-theme body.figma-ai-layout .account-workspace-panel > .settings-card {margin:0!important;width:auto!important;min-width:0!important;}
 :root.nocturn-theme body.figma-ai-layout .account-workspace-panel .compact-summary {gap:10px!important;}
 :root.nocturn-theme body.figma-ai-layout .account-workspace-panel .compact-summary h2 {flex:1!important;min-width:0!important;}
 :root.nocturn-theme body.figma-ai-layout .account-workspace-panel .compact-launcher {width:100%!important;max-width:none!important;white-space:normal!important;height:auto!important;min-height:48px!important;}
 :root.nocturn-theme body.figma-ai-layout .account-native-tools {display:flex!important;gap:10px!important;flex-wrap:wrap!important;grid-column:1/-1!important;}
 :root.nocturn-theme body.figma-ai-layout .account-native-tools:empty {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout .account-workspace-footer {border-top:1px solid #d4bb6a!important;margin:0 20px!important;padding:10px 0 16px!important;}
 :root.nocturn-theme body.figma-ai-layout .account-workspace-footer > p {font-size:12px!important;text-align:center!important;color:#526581!important;margin:0 0 10px!important;}
 :root.nocturn-theme body.figma-ai-layout .account-common-actions {display:flex!important;gap:10px!important;flex-wrap:wrap!important;}
 :root.nocturn-theme body.figma-ai-layout .account-common-actions > button {width:auto!important;min-width:0!important;min-height:42px!important;height:auto!important;padding:10px 14px!important;white-space:normal!important;}
 :root.nocturn-theme body.figma-ai-layout .account-common-actions > button:last-child {margin-left:auto!important;}
 :root.nocturn-theme body.figma-ai-layout #settings .account-action-row[hidden],:root.nocturn-theme body.figma-ai-layout #settings .settings-card[hidden] {display:none!important;}
 @media(max-width:650px){
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog {width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog > .dialog-heading {padding:14px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-heading-copy h2 {font-size:26px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-heading-copy p {font-size:12px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-tabs {gap:5px!important;padding:8px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-tabs button {font-size:13px!important;padding:6px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-tabs small {display:none!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog > .compact-body {padding:0 12px 12px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-access-grid,:root.nocturn-theme body.figma-ai-layout #account-panel-application,:root.nocturn-theme body.figma-ai-layout #account-panel-support {grid-template-columns:minmax(0,1fr)!important;}
  :root.nocturn-theme body.figma-ai-layout .account-summary {padding:10px!important;gap:10px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-summary-status {display:none!important;}
  :root.nocturn-theme body.figma-ai-layout .account-action-row > button {min-height:100px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-footer {margin:0 12px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-common-actions > button {font-size:12px!important;padding:8px!important;}
 }
}

@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout #settings .account-workspace-panel[hidden] {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout .account-access-grid:has(.account-permission-card[hidden]) {grid-template-columns:minmax(0,1fr)!important;}
 :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog #account-panel-application > .settings-pinned {grid-column:1/-1!important;}
}

@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout .account-permission-heading {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:0 0 14px!important;padding:0 0 10px!important;border-bottom:1px solid #d4bb6a!important;background:transparent!important;}
 :root.nocturn-theme body.figma-ai-layout .account-permission-heading h2 {font-size:24px!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout .account-permission-title {font-weight:600!important;font-size:17px!important;color:#0c2143!important;margin:12px 0 6px!important;}
 :root.nocturn-theme body.figma-ai-layout .account-permission-note {font-size:13px!important;color:#526581!important;margin:0 0 20px!important;}
 :root.nocturn-theme body.figma-ai-layout .account-permission-card > .compact-summary {padding:0!important;}
 :root.nocturn-theme body.figma-ai-layout nav [data-page=settings][aria-expanded=true] {background:#d4bb6a!important;color:#101b35!important;}
}

/* Personal access links use the available field width; original copy controls stay intact. */
@layer nocturn-fit {
 :root.nocturn-theme body.figma-ai-layout :is(label:has(> #secretary-invitation-link),label:has(> #treasurer-invitation-link),#admin-private-link) {width:100%!important;max-width:none!important;min-width:0!important;}
 :root.nocturn-theme body.figma-ai-layout :is(#secretary-invitation-link,#treasurer-invitation-link,#admin-invitation-url) {width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;}
}
