@import url("/navigation-selection.css") layer(navigation-selection);
@layer treasurer-desktop;
@layer secretary-phone;
@layer master-finance-list {
 /* A full-value caption must not change the width used to decide whether it is needed. */
 body[data-registry-role=master] .finance-members-dialog .toolbar {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
 }
 body[data-registry-role=master] .finance-members-dialog .toolbar > :is(input,select) {
  box-sizing:border-box!important;width:100%!important;min-width:0!important;grid-row:1!important;
 }
 body[data-registry-role=master] .finance-members-dialog .toolbar > input,
 body[data-registry-role=master] .finance-members-dialog .toolbar > input + .field-full-value {grid-column:1!important;}
 body[data-registry-role=master] .finance-members-dialog .toolbar > select,
 body[data-registry-role=master] .finance-members-dialog .toolbar > select + .field-full-value {grid-column:2!important;}
 @media(max-width:540px) {
  body[data-registry-role=master] .finance-members-dialog .toolbar {grid-template-columns:minmax(0,1fr)!important;}
  body[data-registry-role=master] .finance-members-dialog .toolbar > :is(input,select,.field-full-value) {grid-column:1!important;grid-row:auto!important;}
 }
 body[data-registry-role=master] .finance-members-dialog[open] {
  display:flex!important;flex-direction:column!important;box-sizing:border-box!important;
  height:min(48rem,calc(100dvh - 16px))!important;max-height:calc(100dvh - 16px)!important;
 }
 body[data-registry-role=master] .finance-members-dialog > .compact-body {
  display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;
  max-height:none!important;gap:6px!important;padding:8px!important;
 }
 body[data-registry-role=master] .finance-members-dialog .compact-body > :is(.toolbar,.finance-note,.panel-heading) {
  flex:none!important;margin:0!important;padding:2px 4px!important;
 }
 body[data-registry-role=master] .finance-members-dialog .compact-body > .finance-table-slot {
  display:flex!important;flex-direction:column!important;flex:1 1 0!important;height:auto!important;min-height:0!important;
 }
 body[data-registry-role=master] .finance-members-dialog :is(.finance-table-slot,details) > .table-wrap {
  flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:auto!important;
 }
 body[data-registry-role=master] .finance-members-dialog .compact-body > details[open] {
  display:flex!important;flex-direction:column!important;flex:1 1 7rem!important;min-height:0!important;
 }
 body[data-registry-role=master] .finance-members-dialog details[open]::details-content {
  display:flex;flex-direction:column;min-height:0;flex:1 1 0;
 }
 @media(max-height:600px) {
  body[data-registry-role=master] .finance-members-dialog > .dialog-heading {padding:4px 8px!important;min-height:44px!important;}
  body[data-registry-role=master] .finance-members-dialog > .dialog-heading h2 {margin:0!important;font-size:20px!important;line-height:1.2!important;}
  body[data-registry-role=master] .finance-members-dialog .compact-body > details {margin:0!important;padding:2px 4px!important;}
  body[data-registry-role=master] .finance-members-dialog details > .finance-note {margin:4px 0!important;line-height:1.3!important;}
 }
}
/* Phone-only overrides precede other layers so their important declarations
   can reset the shared full-height dialog without changing desktop rules. */
@layer phone-interface {
 
 
}


@layer mobile-navigation;
/* Treasurer phone overview: intrinsic rows, reserved help controls, natural page scroll.
   Keep the existing touch/mobile boundary; narrow mouse windows remain unchanged. */
@layer mobile-navigation {
 
}
@layer support-window, uniform-controls, nocturn-visibility, nocturn-fit, nocturn-controls;
/* Shared palette for the three officer panels. Earlier layer wins against legacy important colors. */
@layer uniform-controls {
 /* Keep native empty boxes and checkmarks readable even under the dark root theme. */
 :root.nocturn-theme body input[type=checkbox] {color-scheme:light!important;appearance:auto!important;accent-color:#192b4e!important;}

 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) {
  --uniform-action:#192b4e;--uniform-gold:#d4ba6b;--uniform-ink:#102443;--uniform-field:#fff;
 }
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) :is(button,input[type=button],input[type=submit],input[type=reset],a.button,[role=button],summary.compact-launcher,.ai-nav-group > summary) {
  background:var(--uniform-action)!important;color:#fff!important;border-color:#c6a84c!important;
 }
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) :is(button,input[type=button],input[type=submit],input[type=reset],a.button,[role=button],summary.compact-launcher,.ai-nav-group > summary):is(:hover,:active,[aria-pressed=true],[aria-current=page],[aria-selected=true],.active,.is-active,[data-active=true]):not([data-navigation-selection], :disabled, [aria-disabled=true]) {
  background:var(--uniform-gold)!important;color:var(--uniform-ink)!important;
 }
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) :is(button,[role=button],a.button,summary.compact-launcher) :is(span,strong,small,svg) {color:inherit!important;}
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=reset]),select,textarea,option,[contenteditable=true]) {
  background:var(--uniform-field)!important;color:var(--uniform-ink)!important;border-color:#ad9350!important;caret-color:var(--uniform-ink)!important;color-scheme:light!important;-webkit-text-fill-color:var(--uniform-ink)!important;
 }
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) :is(input,textarea)::placeholder {color:#536884!important;-webkit-text-fill-color:#536884!important;opacity:1!important;}
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) input:is([type=radio],[type=range]) {accent-color:var(--uniform-gold)!important;}
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) input::file-selector-button {background:var(--uniform-action)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #c6a84c!important;}
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) input::file-selector-button:is(:hover,:active) {background:var(--uniform-gold)!important;color:var(--uniform-ink)!important;-webkit-text-fill-color:var(--uniform-ink)!important;}
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) :is(button,input[type=button],input[type=submit],input[type=reset],[role=button],a.button):active {transition:none!important;}
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) dialog {
  background:#fff!important;color:var(--uniform-ink)!important;--nocturn-soft:#fff;--nocturn-ink:#102443;--nocturn-muted:#536884;
 }
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) dialog :is(header,footer,form,fieldset,nav,section,[role=tabpanel],.dialog-heading,.dialog-scroll,.dialog-footer,.compact-body,.panel,.toolbar,.member-tabs,.member-actions,.member-section,.member-dialog-nav,.account-workspace-footer,.admin-window-heading,.admin-window-body,.as-footer) {background:#fff!important;color:var(--uniform-ink)!important;}
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) dialog :is(h1,h2,h3,h4,p,label,legend,small,.eyebrow,.form-section-title,.small-muted,.muted,.field,.member-status,.notice,.as-explanation) {color:var(--uniform-ink)!important;}
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) dialog :is(p,.form-section-title,.notice) {background:#fff!important;}
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) dialog :is(.error,[role=alert],.notice.error) {color:#8a2e2b!important;border-color:#8a2e2b!important;}
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) :is(input,select,textarea)[aria-invalid=true] {border-color:#8a2e2b!important;}
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) :is(button,input,select,textarea,[role=button],summary):focus-visible {outline:2px solid #ad9350!important;outline-offset:3px!important;}
 :root.nocturn-theme body[data-registry-role]:is([data-registry-role=master],[data-registry-role=secretary],[data-registry-role=treasurer]) :is(button,input,select,textarea):disabled {opacity:.6!important;}
}
@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design :is(#finance-mlnr.finance-inline-info,#finance-cash.finance-cash-fixed):not(.hidden) {overflow:auto!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-mlnr.finance-inline-info > * {flex-shrink:0!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-cash.finance-cash-fixed > :not(.finance-cash-symbols) {flex-shrink:0!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design #finance-mlnr-group-0:not([hidden]) {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:stretch!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs {display:flex!important;flex-direction:column!important;min-width:0!important;margin:0!important;padding:16px!important;background:#f8f9fd!important;color:#102443!important;border:1px solid #ad9350!important;border-radius:8px!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs > .panel-heading {padding:0 0 12px!important;background:transparent!important;color:#102443!important;border:0!important;border-radius:0!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs h2 {font-size:24px!important;color:#102443!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs .finance-stats {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:0!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs .stat {min-width:0!important;padding:12px!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs .stat-value {font-size:clamp(22px,1.8vw,30px)!important;line-height:1.3!important;margin:6px 0!important;text-align:left!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs .finance-note {background:transparent!important;color:#365472!important;font-size:13px!important;line-height:1.45!important;margin:10px 0 0!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-cash [data-finance-ledger-launch] {min-height:44px!important;min-width:200px!important;}
 :root.nocturn-theme body.figma-ai-layout #finance-cash > .finance-cash-symbols {display:none!important;}
 @media(min-width:1024px) and (min-height:780px){
  :root.nocturn-theme body.figma-ai-layout #finance-cash > .finance-cash-symbols {display:block!important;width:min(1100px,100%)!important;height:clamp(90px,16vh,180px)!important;min-height:0!important;max-height:180px!important;flex:1 1 180px!important;margin:0 auto!important;overflow:hidden!important;}
 }
 @media(max-width:767px){
  :root.nocturn-theme body.figma-ai-layout #finance-cash [data-finance-ledger-launch] {order:-1!important;}
  :root.nocturn-theme body.figma-ai-layout.finance-workspace-design #finance-mlnr-group-0:not([hidden]) {grid-template-columns:minmax(0,1fr)!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs {padding:12px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs h2 {font-size:22px!important;}
 }
 :root.nocturn-theme body dialog.rules-simple-dialog:has(#finance-rules-form) {width:min(640px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;}
 :root.nocturn-theme body #finance-rules-form.rules-simple {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;padding:0!important;}
 :root.nocturn-theme body #finance-rules-form.rules-simple > .rules-simple-year-source[hidden] {display:none!important;}
 :root.nocturn-theme body #finance-rules-form.rules-simple > :is(.field,div,details) {grid-column:1/-1!important;margin:0!important;min-width:0!important;}
 :root.nocturn-theme body #finance-rules-form.rules-simple .finance-rule-semesters {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;}
 :root.nocturn-theme body #finance-rules-form.rules-simple .field {min-width:0!important;width:100%!important;margin:0!important;}
 :root.nocturn-theme body #finance-rules-form.rules-simple .field :is(input:not([type=checkbox]),select) {box-sizing:border-box!important;width:100%!important;min-width:0!important;}
 :root.nocturn-theme body #finance-rules-form.rules-simple > details > summary {display:list-item!important;min-height:44px!important;padding:10px 0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--nocturn-ink)!important;text-align:left!important;}
 :root.nocturn-theme body #finance-rules-form.rules-simple > details:not([open]) > :not(summary) {display:none!important;}
 :root.nocturn-theme body #finance-rules-form.rules-simple > details[open] > :not(summary) {margin-top:10px!important;}
 :root.nocturn-theme body #finance-rules-form.rules-simple :is(.finance-rule-taxes,.finance-rule-dates) {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 16px!important;}
 :root.nocturn-theme body #finance-rules-form.rules-simple .rules-simple-footer {display:flex!important;justify-content:flex-end!important;}
 :root.nocturn-theme body #finance-rules-form.rules-simple .rules-simple-footer button {min-height:44px!important;margin:0!important;}
 :root.nocturn-theme body #finance-rules-form.rules-simple .finance-rule-actions {display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:0!important;}
 :root.nocturn-theme body #finance-rules-form.rules-simple .finance-rule-actions [hidden] {display:none!important;}
 @media(max-width:480px){
  :root.nocturn-theme body #finance-rules-form.rules-simple :is(.finance-rule-semesters,.finance-rule-taxes,.finance-rule-dates) {grid-template-columns:minmax(0,1fr)!important;}
  :root.nocturn-theme body #finance-rules-form.rules-simple .rules-simple-footer button {width:100%!important;}
 }
 :root.nocturn-theme body #member-finance-new-field {display:flex!important;align-items:center!important;gap:10px!important;grid-column:1/-1!important;margin:8px 0!important;width:100%!important;}
 :root.nocturn-theme body #member-finance-new-field[hidden] {display:none!important;}
 :root.nocturn-theme body #member-finance-new-field > input {width:22px!important;height:22px!important;min-height:22px!important;flex:none!important;}
 :root.nocturn-theme body #finance-member-operation-form {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
 :root.nocturn-theme body #finance-member-operation-form > :is(p,details,button) {grid-column:1/-1!important;}
 :root.nocturn-theme body #finance-member-operation-form > .field {width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;}
 :root.nocturn-theme body #finance-member-operation-form > .field[hidden] {display:none!important;}
 :root.nocturn-theme body #finance-member-operation-form .field :is(input,select) {width:100%!important;min-width:0!important;box-sizing:border-box!important;}
 :root.nocturn-theme body dialog.finance-dialog:has(#finance-member-operation-form) > .dialog-heading {display:flex!important;flex-wrap:nowrap!important;align-items:flex-start!important;gap:12px!important;}
 :root.nocturn-theme body dialog.finance-dialog:has(#finance-member-operation-form) > .dialog-heading h2 {flex:1!important;min-width:0!important;font-size:26px!important;}
 :root.nocturn-theme body dialog.finance-dialog:has(#finance-member-operation-form) > .dialog-heading > .icon-button {flex:none!important;margin:0!important;}
 :root.nocturn-theme body #finance-member-operation-form > details > summary {display:list-item!important;background:transparent!important;border:0!important;box-shadow:none!important;width:100%!important;min-width:0!important;padding:4px 0!important;min-height:36px!important;text-align:left!important;color:#d4ba6b!important;}
 :root.nocturn-theme body #finance-member-operation-form > details:not([open]) > :not(summary) {display:none!important;}
 :root.nocturn-theme body #finance-member-operation-form > button[type="submit"] {justify-self:end!important;min-height:44px!important;border:1px solid #d4ba6b!important;border-radius:6px!important;background:#d4ba6b!important;color:#101a36!important;box-shadow:none!important;}
 @media(max-width:600px){:root.nocturn-theme body #finance-member-operation-form {grid-template-columns:minmax(0,1fr)!important;}}
}
/* The individual local-obligation dialog keeps all original financial controls and validation. */
@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout dialog.finance-dialog.obligation-simple {width:min(580px,calc(100vw - 24px))!important;padding:0!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;background:#111a36!important;border:1px solid #d4ba6b!important;border-radius:12px!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple > .dialog-heading {display:flex!important;align-items:center!important;gap:10px!important;padding:20px 24px!important;min-height:0!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple > .dialog-heading h2 {flex:1!important;min-width:0!important;font-size:28px!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple > .dialog-heading > .icon-button {order:3!important;margin:0!important;flex:none!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple > .dialog-scroll {padding:0 24px 20px!important;max-height:none!important;overflow:visible!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple form.obligation-simple-form {display:flex!important;flex-direction:column!important;gap:20px!important;margin:0!important;padding:0!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .obligation-year-source {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .obligation-year-context {display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:10px!important;margin:0!important;padding:10px 0!important;border-block:1px solid #34415e!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .field.obligation-year-context select {width:170px!important;max-width:100%!important;min-width:0!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple :is(.obligation-main-fields,.obligation-extra-fields) {display:grid!important;grid-template-columns:minmax(0,1fr) 155px!important;gap:16px 12px!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple :is(.obligation-member,.obligation-reference) {grid-column:1/-1!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .field {margin:0!important;min-width:0!important;width:100%!important;max-width:none!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .field :is(input,select) {width:100%!important;max-width:100%!important;min-width:0!important;min-height:44px!important;box-sizing:border-box!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .obligation-details {padding-top:14px!important;border-top:1px solid #34415e!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .obligation-details > summary {display:list-item!important;color:#d4ba6b!important;min-height:36px!important;width:100%!important;min-width:0!important;margin:0!important;padding:2px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;text-align:left!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .obligation-required-hint {display:block!important;margin:4px 0 0 16px!important;color:#c4cee4!important;font-size:12px!important;font-weight:400!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .obligation-details:not([open]) > :not(summary) {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .obligation-details[open] > .obligation-extra-fields {margin-top:16px!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .obligation-extra-fields > [hidden] {display:none!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .obligation-footer {display:flex!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:10px!important;padding-top:16px!important;border-top:1px solid #34415e!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .obligation-footer > button {width:auto!important;min-width:0!important;min-height:44px!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .obligation-footer > button.secondary {border:1px solid #78819a!important;box-shadow:none!important;border-radius:6px!important;}
 :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .obligation-footer > button[type="submit"] {border:1px solid #d4ba6b!important;background:#d4ba6b!important;color:#101a36!important;box-shadow:none!important;border-radius:6px!important;}
 @media(max-width:500px){
  :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple > .dialog-heading {padding:16px!important;}
  :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple > .dialog-heading h2 {font-size:24px!important;}
  :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple > .dialog-scroll {padding:0 16px 16px!important;}
  :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple :is(.obligation-main-fields,.obligation-extra-fields) {grid-template-columns:minmax(0,1fr)!important;}
  :root.nocturn-theme body.figma-ai-layout dialog.obligation-simple .obligation-footer > button {flex:1!important;}
 }
}
/* Finance overview: equal actions followed by the existing masonic artwork. */
@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design #finance-obligations > .finance-obligation-actions {
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important;width:100%!important;
 }
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design #finance-obligations > .finance-obligation-actions > button {
  width:100%!important;min-width:0!important;min-height:44px!important;height:100%!important;margin:0!important;box-sizing:border-box!important;white-space:normal!important;
 }
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design #finance-obligations > .finance-home-symbols {
  display:block!important;flex:0 0 auto!important;align-self:center!important;width:100%!important;height:clamp(100px,20dvh,240px)!important;margin:8px 0 0!important;pointer-events:none;overflow:hidden;
 }
 @media(max-width:700px){
  :root.nocturn-theme body.figma-ai-layout.finance-workspace-design #finance-obligations > .finance-obligation-actions {grid-template-columns:minmax(0,1fr)!important;}
  :root.nocturn-theme body.figma-ai-layout.finance-workspace-design #finance-obligations > .finance-home-symbols {height:clamp(64px,16dvh,110px)!important;}
 }
}
/* Authorized devices only: role pages replace the long account/settings list. */
@layer nocturn-fit {
 :root.nocturn-theme body #authorized-devices-dialog {width:min(820px,calc(100vw - 32px))!important;max-height:none!important;overflow:visible!important;padding:0!important;color-scheme:light;--nocturn-paper:#fafbff;--nocturn-ink:#123254;--nocturn-muted:#536b88;--nocturn-line:#c4a651;--nocturn-action:#192d4e;--nocturn-label:#fff;--ux-focus:#87651c;border-radius:12px!important;font:14px/1.5 'Segoe UI',system-ui,sans-serif!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-heading {display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:16px!important;padding:20px 24px!important;border-bottom:1px solid #c4a651!important;border-radius:12px 12px 0 0!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-heading > div {min-width:0;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-heading h2 {font-size:28px!important;line-height:1.2!important;margin:0!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-heading p {margin:5px 0 0!important;color:#536b88!important;}
 :root.nocturn-theme body #authorized-devices-dialog button {width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:36px!important;box-shadow:none!important;border:1px solid #c4a651!important;border-radius:5px!important;padding:8px 14px!important;font:500 14px/1.3 'Segoe UI',system-ui,sans-serif!important;}
 :root.nocturn-theme body #authorized-devices-dialog .icon-button {width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;flex:none!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-roles {display:flex!important;gap:8px!important;margin:18px 24px 0!important;padding:0!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-role {display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;flex:1!important;padding:12px 8px!important;background:#fff!important;border-color:#dce1e9!important;color:#123254!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-role[aria-pressed=true] {background:#192d4e!important;border-color:#c4a651!important;color:#fff!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-role > span {display:inline!important;width:auto!important;min-width:0!important;max-width:none!important;flex:0 1 auto!important;font:inherit!important;color:inherit!important;white-space:normal!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-role-count {font-size:12px!important;color:inherit!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-message {margin:16px 24px 0!important;padding:0!important;color:#536b88!important;font:14px/1.4 'Segoe UI',system-ui,sans-serif!important;}
 :root.nocturn-theme body #authorized-devices-dialog #authorized-devices {display:block!important;min-height:220px!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:12px 24px 18px!important;}
 :root.nocturn-theme body #authorized-devices-dialog .authorized-device-row {display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:16px!important;margin:0!important;padding:14px 0!important;border:0!important;border-bottom:1px solid #dce1e9!important;background:transparent!important;border-radius:0!important;}
 :root.nocturn-theme body #authorized-devices-dialog .authorized-device-row > div:first-child {min-width:0;overflow-wrap:anywhere;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-name {margin:0!important;font:500 14px/1.4 'Segoe UI',system-ui,sans-serif!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-presence {margin:4px 0 0!important;font:12px/1.4 'Segoe UI',system-ui,sans-serif!important;color:#536b88!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-sync {text-align:right;font:12px/1.4 'Segoe UI',system-ui,sans-serif!important;font-variant-numeric:tabular-nums;color:#536b88!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-sync span {display:block!important;color:inherit!important;}
 :root.nocturn-theme body #authorized-devices-dialog button.devices-link {background:transparent!important;color:#123254!important;border:0!important;padding:8px 0!important;text-decoration:underline!important;text-decoration-color:#c4a651!important;text-underline-offset:4px;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-pager {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:10px 0 0!important;font:12px/1.4 'Segoe UI',system-ui,sans-serif!important;color:#536b88!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-pager > div {display:flex!important;align-items:center!important;gap:16px!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-pager button {font-size:12px!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-footer {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;margin:0 24px!important;padding:16px 0!important;border-top:1px solid #c4a651!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-footer > span {font:12px/1.4 'Segoe UI',system-ui,sans-serif!important;color:#536b88!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-close {min-width:90px!important;min-height:40px!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-detail-heading {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:4px 0 10px!important;}
 :root.nocturn-theme body #authorized-devices-dialog :is(.devices-detail-heading,.devices-confirm) h3 {margin:0!important;font:500 16px/1.4 'Segoe UI',system-ui,sans-serif!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-details {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)!important;gap:8px 18px!important;margin:0!important;font:14px/1.4 'Segoe UI',system-ui,sans-serif!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-details dt {margin:0!important;color:#536b88!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-details dd {margin:0!important;text-align:right!important;overflow-wrap:anywhere!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-detail-actions {display:flex!important;justify-content:flex-end!important;gap:12px!important;margin:16px 0 0!important;}
 :root.nocturn-theme body #authorized-devices-dialog button.devices-revoke {background:#fff!important;color:#9a3434!important;border-color:#d9b3b3!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-confirm {padding:8px 0 0!important;overflow-wrap:anywhere;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-confirm p {margin:10px 0!important;font:14px/1.4 'Segoe UI',system-ui,sans-serif!important;}
 :root.nocturn-theme body #authorized-devices-dialog .devices-empty {margin:14px 0!important;}
 @media(max-width:600px) {
  :root.nocturn-theme body #authorized-devices-dialog {width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;}
  :root.nocturn-theme body #authorized-devices-dialog .devices-heading {padding:14px 16px!important;}
  :root.nocturn-theme body #authorized-devices-dialog .devices-heading h2 {font-size:24px!important;}
  :root.nocturn-theme body #authorized-devices-dialog .devices-roles {flex-wrap:wrap!important;margin:12px 16px 0!important;}
  :root.nocturn-theme body #authorized-devices-dialog .devices-role {flex:1 1 100px!important;}
  :root.nocturn-theme body #authorized-devices-dialog .devices-role:first-child {flex-basis:100%!important;}
  :root.nocturn-theme body #authorized-devices-dialog #authorized-devices {padding:10px 16px 14px!important;min-height:190px!important;}
  :root.nocturn-theme body #authorized-devices-dialog .authorized-device-row {grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;}
  :root.nocturn-theme body #authorized-devices-dialog .devices-sync {grid-column:1!important;grid-row:2!important;text-align:left!important;}
  :root.nocturn-theme body #authorized-devices-dialog .authorized-device-row .devices-link {grid-column:2!important;grid-row:1 / span 2!important;}
  :root.nocturn-theme body #authorized-devices-dialog .devices-details {grid-template-columns:minmax(0,1fr)!important;gap:2px!important;}
  :root.nocturn-theme body #authorized-devices-dialog .devices-details dd {text-align:left!important;margin-bottom:6px!important;}
  :root.nocturn-theme body #authorized-devices-dialog .devices-footer {margin:0 16px!important;padding:12px 0!important;gap:12px!important;}
  :root.nocturn-theme body #authorized-devices-dialog .devices-message {margin:12px 16px 0!important;}
 }
 @media(max-height:650px) and (min-width:601px) {
  :root.nocturn-theme body #authorized-devices-dialog .devices-heading {padding-block:12px!important;}
  :root.nocturn-theme body #authorized-devices-dialog #authorized-devices {min-height:180px!important;}
  :root.nocturn-theme body #authorized-devices-dialog .devices-footer {padding-block:12px!important;}
 }
}
.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):not([data-navigation-selection]) { 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; }
/* Financial reports need room for all columns inside their sandboxed preview. */
:root.nocturn-theme body dialog:is(#member-dialog,.finance-dialog-wide):has(.finance-report-preview) { width:min(1600px,calc(100vw - 32px)) !important; }
:root.nocturn-theme body dialog.finance-dialog-wide .finance-report-preview { display:block; box-sizing:border-box; min-width:0; }
: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):not([data-navigation-selection]) {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:is(.master-home-design,.secretary-mlnr-navigation) .sidebar > nav { flex-wrap:nowrap; gap:8px !important; align-items:stretch !important; }
 :root.nocturn-theme body.figma-ai-layout:is(.master-home-design,.secretary-mlnr-navigation) .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:is(.master-home-design,.secretary-mlnr-navigation) .sidebar > nav > :is(#add-member,[data-panel-group="account-tools"],[data-page="settings"]) { flex-grow:1.55; }
 :root.nocturn-theme body.figma-ai-layout:is(.master-home-design,.secretary-mlnr-navigation) .sidebar > nav > button,
 :root.nocturn-theme body.figma-ai-layout:is(.master-home-design,.secretary-mlnr-navigation) .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:is(.master-home-design,.secretary-mlnr-navigation) .sidebar > nav > [data-panel-group="account-tools"] {flex:1.6 1 0!important;}
  :root.nocturn-theme body.figma-ai-layout:is(.master-home-design,.secretary-mlnr-navigation) .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:is(.master-home-design,.secretary-mlnr-navigation) .sidebar > nav > button {white-space:nowrap!important;}
  :root.nocturn-theme body.figma-ai-layout:is(.master-home-design,.secretary-mlnr-navigation) .sidebar > nav > #add-member {flex:1.65 1 0!important;}
  :root.nocturn-theme body.figma-ai-layout:is(.master-home-design,.secretary-mlnr-navigation) .sidebar > nav > [data-page="settings"] {flex:1.35 1 0!important;}
  :root.nocturn-theme body.figma-ai-layout:is(.master-home-design,.secretary-mlnr-navigation):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(8,minmax(0,1fr))!important;}
  :root.nocturn-theme body.figma-ai-layout:is(.master-home-design,.secretary-mlnr-navigation)[data-registry-role="secretary"] .sidebar > nav {grid-template-columns:repeat(6,minmax(0,1fr))!important;}
  :root.nocturn-theme body.figma-ai-layout:is(.master-home-design,.secretary-mlnr-navigation):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:is(.master-home-design,.secretary-mlnr-navigation):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:is(.master-home-design,.secretary-mlnr-navigation):is([data-registry-role="master"],[data-registry-role="secretary"]) .sidebar > nav > button,
  :root.nocturn-theme body.figma-ai-layout:is(.master-home-design,.secretary-mlnr-navigation):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:is(.treasurer-home-design,.treasurer-mlnr-navigation) .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:is(.treasurer-home-design,.treasurer-mlnr-navigation) .sidebar > nav{ flex-wrap:nowrap; gap:8px !important; align-items:stretch !important; }
:root.nocturn-theme body.figma-ai-layout:is(.treasurer-home-design,.treasurer-mlnr-navigation) .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:is(.treasurer-home-design,.treasurer-mlnr-navigation) .sidebar > nav > :is(#add-member,[data-panel-group="account-tools"],[data-page="settings"]){ flex-grow:1.55; }
:root.nocturn-theme body.figma-ai-layout:is(.treasurer-home-design,.treasurer-mlnr-navigation) .sidebar > nav > button,
 :root.nocturn-theme body.figma-ai-layout:is(.treasurer-home-design,.treasurer-mlnr-navigation) .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:is(.treasurer-home-design,.treasurer-mlnr-navigation) .sidebar > nav > button{white-space:nowrap!important;}
:root.nocturn-theme body.figma-ai-layout:is(.treasurer-home-design,.treasurer-mlnr-navigation) .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 > .member-list-modes > #members-active{grid-column:1!important;grid-row:1!important;}
:root.nocturn-theme body.figma-ai-layout.members-master-design #members > .member-list-modes > #members-archive{grid-column:-2!important;grid-row:1!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;}
}
/* 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[data-registry-role=master] #finance-cash > .finance-stats:not(.finance-summary-compact) {background:transparent!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role=master] #finance-cash > .finance-stats:not(.finance-summary-compact) > .stat {border-radius:12px!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:not([data-navigation-selection]) {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]:not([data-navigation-selection]) {background:#d4bb6a!important;color:#101b35!important;}
}

/* Account window: size its existing controls to fit a normal desktop viewport. */
@layer nocturn-visibility {
 @media(min-width:900px) {
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog > .dialog-heading {padding:10px 20px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog .account-heading-copy h2 {font-size:28px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog .account-workspace-tabs {padding:6px 16px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog .account-workspace-tabs button {min-height:48px!important;padding:6px 10px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog > .compact-body {padding-bottom:8px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog .account-summary {padding:8px 18px!important;margin-bottom:8px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog :is(.account-security-panel,.account-permission-card) {padding:12px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog .account-security-panel > .panel-heading {padding-bottom:6px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog .account-action-row {margin-top:6px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog .account-action-row > button {min-height:54px!important;padding:4px 40px 4px 12px!important;gap:2px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog .account-logout-slot {margin-top:10px!important;padding-top:8px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog .account-workspace-footer {padding:8px 0 10px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog .account-workspace-footer > p {margin-bottom:6px!important;}
 }
 @media(min-width:900px) and (max-height:700px) {
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog > .dialog-heading {padding-block:6px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog .account-workspace-footer {padding-block:4px!important;}
  :root.nocturn-theme body.figma-ai-layout .account-workspace-dialog .account-workspace-footer > p {margin-bottom:4px!important;}
 }
}

/* Master desktop toolbar: original member actions align with the single Home entry. */
@layer nocturn-visibility {
 @media(min-width:1024px) {
  :root.nocturn-theme body.figma-ai-layout.master-top-actions .sidebar > nav {display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important;}
  :root.nocturn-theme body.figma-ai-layout.master-top-actions .sidebar > nav > :is(button,details) {width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;box-sizing:border-box!important;}
  :root.nocturn-theme body.figma-ai-layout.master-top-actions .sidebar > nav > details {padding:0!important;border:0!important;}
  :root.nocturn-theme body.figma-ai-layout.master-top-actions .sidebar > nav > button:where(:not([data-page="finance-tools"])),
  :root.nocturn-theme body.figma-ai-layout.master-top-actions .sidebar > nav > details > summary {display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:none!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;padding:4px 6px!important;box-sizing:border-box!important;font-size:clamp(11px,.95vw,15px)!important;line-height:1.15!important;white-space:normal!important;}
  :root.nocturn-theme body.figma-ai-layout.master-top-actions .sidebar > nav > #import-members {grid-column:7!important;}
  :root.nocturn-theme body.figma-ai-layout.master-top-actions .sidebar > nav > #add-member {grid-column:8!important;}
  :root.nocturn-theme body.figma-ai-layout.master-top-actions #page-back.topbar-home-duplicate {display:none!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;}
}
/* v59 compact: the original actions occupy only one medium button. */

@layer nocturn-fit {
 :root.nocturn-theme body.participant-app > main > .app-attention {
  position:absolute !important;top:10px !important;right:24px !important;left:auto !important;bottom:auto !important;
  display:block !important;order:0 !important;flex:none !important;width:184px !important;height:40px !important;
  min-height:0 !important;margin:0 !important;padding:0 !important;border:0 !important;background:transparent !important;box-shadow:none !important;z-index:4;
 }
 :root.nocturn-theme body.participant-app > main > .app-attention:is([hidden],.hidden) {display:none !important;}
 :root.nocturn-theme body.participant-app .app-attention-copy {display:none !important;}
 :root.nocturn-theme body.participant-app .app-attention-actions > :is(#install-pwa,#apply-web-update) {
  display:flex !important;align-items:center !important;justify-content:center !important;
  width:184px !important;min-width:0 !important;max-width:184px !important;height:40px !important;min-height:40px !important;
  margin:0 !important;padding:7px 12px !important;border:2px solid #d4bb6a !important;border-radius:6px !important;
  font:600 14px/1.2 'Segoe UI',sans-serif !important;white-space:nowrap !important;box-sizing:border-box !important;
  background:#172b4a !important;color:#f7e5b7 !important;box-shadow:inset 0 0 0 1px #f7dfa329,0 2px 6px #0003 !important;
  animation:compact-action-attention 2s ease-in-out 2;
 }
 :root.nocturn-theme body.participant-app .app-attention-actions > #apply-web-update {background:#d4bb6a !important;color:#0c1b37 !important;box-shadow:inset 0 0 0 1px #f9e4ac,0 2px 7px #0003 !important;}
 :root.nocturn-theme body.participant-app .app-attention-actions > button:focus-visible {outline:2px solid #f8f9ff !important;outline-offset:3px;}
 :root.nocturn-theme body.participant-app .app-attention-actions > button:hover {filter:brightness(1.08);}
 :root.nocturn-theme body.participant-app .app-attention-actions > button:disabled {animation:none;cursor:wait;}
 @keyframes compact-action-attention {0%,100%{filter:brightness(1);}50%{filter:brightness(1.08) drop-shadow(0 0 3px #d4bb6a70);}}
 @media(prefers-reduced-motion:reduce){:root.nocturn-theme body.participant-app .app-attention-actions > button {animation:none !important;}}
 :root.nocturn-theme body.participant-app:has(main > :is(#pwa-install-banner:not([hidden]),#update-banner:not(.hidden))) main > .topbar > .nocturn-progress-slot {right:204px !important;width:clamp(160px,20vw,300px) !important;}
 @media(max-width:1023px){
  :root.nocturn-theme body.participant-app:has(main > :is(#pwa-install-banner:not([hidden]),#update-banner:not(.hidden))) main > .topbar {height:44px !important;min-height:44px !important;}
  :root.nocturn-theme body.participant-app:has(main > :is(#pwa-install-banner:not([hidden]),#update-banner:not(.hidden))) main > .topbar:has(.operation-progress) {height:84px !important;min-height:84px !important;}
  :root.nocturn-theme body.participant-app:has(main > :is(#pwa-install-banner:not([hidden]),#update-banner:not(.hidden))) main > .topbar > .nocturn-progress-slot {position:absolute !important;grid-area:1 / 1 / -1 / -1 !important;align-self:start !important;left:0 !important;right:0 !important;top:44px !important;width:100% !important;}
 }
 @media(max-width:767px){
  :root.nocturn-theme body.participant-app > main > .app-attention {right:12px !important;}
  :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .master-home-symbols {min-height:64px !important;}
 }
 :root.nocturn-theme body.figma-ai-layout :is(#dashboard,#finance-obligations).compact-card > :is(.master-home-symbols,.treasurer-home-symbols) {display:block !important;width:100% !important;height:clamp(64px,18dvh,140px) !important;min-height:64px !important;max-height:140px !important;margin:8px 0 !important;transform:none !important;}
 :root.nocturn-theme body.figma-ai-layout :is(#dashboard,#finance-obligations).compact-card:has(> :is(.master-home-symbols,.treasurer-home-symbols)) {background:transparent !important;border:0 !important;padding:0 !important;}
 :root.nocturn-theme body.figma-ai-layout :is(#dashboard,#finance-obligations).compact-card:has(> :is(.master-home-symbols,.treasurer-home-symbols)) > .compact-summary {background:#fafbff !important;border:1px solid #d4bb6a !important;border-radius:6px !important;}
 @media(min-width:768px) and (max-height:780px){
  :root.nocturn-theme body.figma-ai-layout:is(.master-home-design,.treasurer-home-design) > main {gap:6px !important;}
  :root.nocturn-theme body.figma-ai-layout:is(.master-home-design,.treasurer-home-design) main:has(> :is(#dashboard:not(.hidden),#finance-obligations:not(.hidden))) > .heading {
   grid-template-columns:minmax(0,1fr) minmax(420px,55%) minmax(0,1fr) !important;grid-template-rows:24px 52px !important;min-height:80px !important;padding:0 !important;gap:4px 16px !important;
  }
  :root.nocturn-theme body.figma-ai-layout:is(.master-home-design,.treasurer-home-design) main:has(> :is(#dashboard:not(.hidden),#finance-obligations:not(.hidden))) > .heading > .master-motto {font-size:24px !important;line-height:1 !important;}
  :root.nocturn-theme body.figma-ai-layout:is(.master-home-design,.treasurer-home-design) main:has(> :is(#dashboard:not(.hidden),#finance-obligations:not(.hidden))) > .heading > #next-meeting-card {padding:4px 8px !important;gap:2px !important;}
  :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard .master-home-symbols {flex:1 1 0 !important;height:0 !important;min-height:64px !important;transform:none !important;}
  :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard > .dashboard-actions {margin-block:0 !important;}
  :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations {gap:4px !important;grid-template-rows:auto auto auto auto minmax(64px,1fr) !important;}
  :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-stats .stat {min-height:84px !important;padding:6px 8px !important;}
  :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-stats .stat-label {min-height:20px !important;}
  :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .finance-stats .stat-value {padding:2px 8px !important;margin:2px 0 !important;font-size:18px !important;}
  :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations #finance-add-obligation {grid-row:4 !important;grid-column:2 !important;align-self:center !important;transform:none !important;margin-block:0 !important;}
  :root.nocturn-theme body.figma-ai-layout.treasurer-home-design #finance-obligations .treasurer-home-symbols {min-height:64px !important;transform:none !important;}
 }
}

/* v60: scoped access windows use the same paper, navy and gold as the panels. */
@layer nocturn-visibility {
 :root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#login-panel,#password-help-dialog,#password-recovery-dialog) {
  color-scheme:light;--nocturn-paper:#fafbff;--nocturn-soft:#f5f3ed;--nocturn-ink:#101b39;
  --nocturn-muted:#526581;--nocturn-gold:#d4bb6a;--nocturn-line:#b49a50;--nocturn-action:#182b4b;--nocturn-label:#fafbff;
  --ink:#101b39;--muted:#526581;--white:#fafbff;--cream:#fafbff;--border:#b49a50;
  background:#fafbff !important;color:#101b39 !important;border:1px solid #b49a50 !important;border-radius:9px !important;
  box-shadow:0 20px 64px #0008 !important;box-sizing:border-box;
 }
 :root.nocturn-theme body:has(#login-panel.master-access-simple).signed-out > #login-panel {
  width:min(560px,calc(100vw - 32px)) !important;max-width:560px !important;max-height:calc(100dvh - 32px) !important;
  margin:16px auto !important;padding:24px !important;overflow-y:auto !important;overflow-x:hidden !important;text-align:left !important;
 }
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel > h1 {
  font:500 32px/1.15 'Cormorant Garamond',Georgia,serif !important;color:#101b39 !important;
  margin:0 0 16px !important;padding:0 0 16px !important;border-bottom:1px solid #d4bb6a;
 }
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel > img {display:block;margin:0 auto 12px !important;padding:6px !important;background:#0b1230 !important;border-radius:6px !important;box-sizing:border-box;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel .login-brand {justify-content:center;margin:12px 0 18px !important;color:#526581 !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#login-panel,#password-help-dialog,#password-recovery-dialog) :is(p,ol) {font-size:14px !important;line-height:1.5 !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel .commercial-login {gap:12px !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#login-panel,#password-help-dialog,#password-recovery-dialog) form:not([hidden]) {display:grid !important;gap:12px !important;margin:0 !important;max-width:none !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#login-panel,#password-help-dialog,#password-recovery-dialog) .field:not([hidden]) {display:grid !important;width:100% !important;max-width:none !important;min-width:0 !important;box-sizing:border-box;gap:6px !important;margin:0 !important;font-size:14px !important;font-weight:600 !important;color:#101b39 !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#login-panel,#password-help-dialog,#password-recovery-dialog) :is(input:not([type=hidden]),select) {
  width:100% !important;max-width:none !important;min-width:0 !important;min-height:44px !important;box-sizing:border-box !important;
  padding:10px 12px !important;margin:0 !important;background:#fff !important;color:#101b39 !important;border:1px solid #b49a50 !important;border-radius:6px !important;font:400 14px/1.4 'Segoe UI',sans-serif !important;
 }
 :root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#login-panel,#password-help-dialog,#password-recovery-dialog) input[readonly] {background:#f0f2f7 !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#login-panel,#password-help-dialog,#password-recovery-dialog) :is(button:not(.section-help-button),summary) {
  width:100% !important;max-width:none !important;min-width:0 !important;min-height:44px !important;height:auto !important;box-sizing:border-box !important;
  margin:0 !important;padding:9px 12px !important;border:3px solid #d4bb6a !important;border-radius:5px !important;
  background:#182b4b !important;color:#fafbff !important;box-shadow:inset 0 0 0 1px #ead18a !important;
  font:600 14px/1.25 'Segoe UI',sans-serif !important;text-align:center !important;white-space:normal !important;
 }
 :root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#login-panel,#password-help-dialog,#password-recovery-dialog) button:not(:disabled):hover {background:#263e63 !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#login-panel,#password-help-dialog,#password-recovery-dialog) :is(button,input,summary,select):focus-visible {outline:2px solid #87651c !important;outline-offset:3px !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel details {padding:12px 0 0 !important;margin:0 !important;border:0 !important;border-top:1px solid #d4bb6a !important;background:transparent !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel details[open] > summary {margin-bottom:12px !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel:has(#invitation-details[open]) #invitation-details {padding-top:0 !important;border-top:0 !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel #invitation-password-note {margin:0 !important;color:#526581 !important;font-size:13px !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel :is(#login-exit,#pwa-access-retry):not([hidden]) {display:block;margin-top:12px !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel #pwa-access-status:not([hidden]) {padding:10px 12px !important;margin:0 0 12px !important;background:#f5f3ed !important;border:1px solid #d4bb6a;border-radius:6px;color:#101b39 !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel #pwa-uninstall-panel {margin-top:16px !important;padding-top:12px !important;border-top:1px solid #d4bb6a !important;background:transparent !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel a {color:#244f88 !important;}
 :root.nocturn-theme[data-presentation=desktop] body.signed-out > #login-panel.master-access-simple:has(#treasurer-desktop-reconnect:not([hidden])) {
  width:min(500px,calc(100vw - 32px)) !important;
  overflow:visible !important;
  background:#fff !important;
 }
 #login-panel:has(#treasurer-desktop-reconnect:not([hidden])) > :is(#master-access-help,#phone-connect-from-laptop) {display:none !important;}
 #treasurer-desktop-reconnect {display:grid;gap:8px;}
 #treasurer-desktop-reconnect > p {margin:0 0 4px;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#password-help-dialog,#password-recovery-dialog) {width:min(560px,calc(100vw - 32px)) !important;max-height:calc(100dvh - 32px) !important;padding:0 !important;overflow-y:auto !important;overflow-x:hidden !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#password-help-dialog,#password-recovery-dialog) > form {padding:24px !important;max-height:none !important;overflow:visible !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#password-help-dialog,#password-recovery-dialog) h2 {font:500 32px/1.15 'Cormorant Garamond',Georgia,serif !important;color:#101b39 !important;margin:0 !important;padding:0 0 16px !important;border-bottom:1px solid #d4bb6a;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#password-help-dialog,#password-recovery-dialog) p {margin:0 0 4px !important;color:#526581 !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#login-panel,#password-help-dialog,#password-recovery-dialog) :is([hidden],.hidden) {display:none !important;}
 @media(max-width:600px),(max-height:700px){
  :root.nocturn-theme body:has(#login-panel.master-access-simple).signed-out > #login-panel {padding:18px !important;}
  :root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#password-help-dialog,#password-recovery-dialog) > form {padding:18px !important;}
  :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel > h1,:root.nocturn-theme body:has(#login-panel.master-access-simple) :is(#password-help-dialog,#password-recovery-dialog) h2 {font-size:28px !important;padding-bottom:12px !important;}
 }
}

/* v61: Master access only; original controls and authentication are retained. */
@layer nocturn-visibility {
 :root.nocturn-theme body:has(#login-panel.master-access-simple).signed-out > #login-panel.master-access-simple {position:relative !important;width:min(480px,calc(100vw - 32px)) !important;max-width:480px !important;padding:28px !important;margin:auto !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple [hidden] {display:none !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple > h1 {font-size:34px !important;border:0 !important;margin:0 42px 8px 0 !important;padding:0 !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .login-brand {display:flex !important;justify-content:flex-start !important;gap:12px !important;margin:0 40px 22px 0 !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .login-brand img {width:38px !important;height:38px !important;border-radius:6px !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .login-brand span {font:500 27px/1.1 'Cormorant Garamond',Georgia,serif !important;color:#526581 !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .master-access-intro {margin:0 0 22px !important;color:#526581 !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .master-access-role:not([hidden]) {display:table !important;margin:8px 0 22px !important;padding:7px 11px !important;border:1px solid #ddcd9d !important;border-radius:5px !important;background:#f4efdf !important;color:#4e411c !important;font-weight:600 !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .master-access-help {position:absolute !important;right:22px !important;top:28px !important;width:32px !important;min-width:32px !important;max-width:32px !important;height:32px !important;min-height:32px !important;padding:0 !important;border:3px solid #d4bb6a !important;border-radius:5px !important;background:#182b4b !important;color:#fafbff !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple form:not([hidden]) {gap:18px !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .commercial-login {gap:12px !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple :is(#invitation-details,#invitation-lodge) {padding:0 !important;border:0 !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple :is(#invitation-details,#invitation-lodge) > summary {display:none !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple #invitation-details:not([open]) {display:none !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple :is(#login-error,#commercial-login-error):empty {display:none !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .master-password-input {position:relative;display:block;min-width:0;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .master-password-input input {padding-right:48px !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .password-toggle {position:absolute !important;right:2px !important;top:2px !important;display:grid !important;place-items:center !important;width:40px !important;height:40px !important;min-height:40px !important;padding:0 !important;border:0 !important;background:transparent !important;box-shadow:none !important;color:transparent !important;font-size:0 !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .password-toggle::before {content:'';width:21px;height:21px;background:center/21px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526581' stroke-width='1.6'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .master-passkey {background:transparent !important;color:#182b4b !important;border-width:1px !important;box-shadow:none !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple #password-help-open {width:max-content !important;justify-self:center !important;min-height:32px !important;padding:4px !important;border:0 !important;background:transparent !important;color:#526581 !important;box-shadow:none !important;text-decoration:underline;text-underline-offset:3px;font-size:13px !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #master-access-info {width:min(560px,calc(100vw - 32px)) !important;max-height:calc(100dvh - 32px) !important;overflow:auto !important;padding:22px !important;color:#101b39 !important;background:#fafbff !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #master-access-info p {font:400 15px/1.5 'Segoe UI',sans-serif !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #master-access-tools > * {margin-top:12px !important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #master-access-tools .settings-card {max-height:none !important;overflow:visible !important;}
 @media(max-height:700px),(max-width:500px){:root.nocturn-theme body:has(#login-panel.master-access-simple).signed-out > #login-panel.master-access-simple {padding:22px 20px !important;} :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .master-access-help {top:22px !important;right:20px !important;} :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .login-brand {margin-bottom:18px !important;}}
}

/* v62: scoped opt-in invitation dialog; no existing panels are restyled. */
@layer nocturn-visibility {
 :root.nocturn-theme body #participant-login-setup {color-scheme:light;--nocturn-paper:#fafbff;--nocturn-soft:#f5f3ed;--nocturn-ink:#101b39;--nocturn-muted:#526581;--nocturn-gold:#d4bb6a;--nocturn-line:#b49a50;--nocturn-action:#182b4b;--nocturn-label:#fafbff;--ink:#101b39;--muted:#526581;--white:#fafbff;--cream:#fafbff;--border:#b49a50;width:min(560px,calc(100vw - 32px))!important;max-width:560px!important;max-height:calc(100dvh - 32px)!important;overflow:auto!important;padding:24px!important;border:1px solid #b49a50!important;border-radius:9px!important;background:#fafbff!important;color:#101b39!important;box-sizing:border-box!important;}
 :root.nocturn-theme body #participant-login-setup .dialog-heading {display:flex!important;gap:12px!important;align-items:center!important;margin:0 0 18px!important;padding:0 0 16px!important;background:transparent!important;border:0!important;border-bottom:1px solid #d4bb6a!important;border-radius:0!important;}
 :root.nocturn-theme body #participant-login-setup h2 {flex:1!important;font:500 32px/1.15 'Cormorant Garamond',Georgia,serif!important;color:#101b39!important;margin:0!important;}
 :root.nocturn-theme body #participant-login-setup :is(.section-help-button,.icon-button) {width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;margin:0!important;padding:0!important;border:3px solid #d4bb6a!important;border-radius:5px!important;background:#182b4b!important;color:#fafbff!important;}
 :root.nocturn-theme body #participant-login-setup form {display:grid!important;gap:18px!important;padding:0!important;margin:0!important;}
 :root.nocturn-theme body #participant-login-setup p {font:400 14px/1.5 'Segoe UI',sans-serif!important;color:#526581!important;margin:0!important;overflow-wrap:anywhere;}
 :root.nocturn-theme body #participant-login-setup p:empty {display:none!important;}
 :root.nocturn-theme body #participant-login-setup .field {display:grid!important;gap:6px!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;color:#101b39!important;font:600 14px/1.4 'Segoe UI',sans-serif!important;}
 :root.nocturn-theme body #participant-login-setup input {width:100%!important;max-width:none!important;min-width:0!important;min-height:44px!important;height:44px!important;box-sizing:border-box!important;margin:0!important;padding:10px 12px!important;border:1px solid #b49a50!important;border-radius:6px!important;background:#fff!important;color:#101b39!important;font:400 14px/1.4 'Segoe UI',sans-serif!important;}
 :root.nocturn-theme body #participant-login-setup input[readonly] {background:#f0f2f7!important;}
 :root.nocturn-theme body #participant-login-setup button[type=submit] {width:100%!important;max-width:none!important;min-height:44px!important;margin:0!important;padding:9px 12px!important;border:3px solid #d4bb6a!important;border-radius:5px!important;background:#182b4b!important;color:#fafbff!important;font:600 14px/1.25 'Segoe UI',sans-serif!important;box-sizing:border-box!important;}
 :root.nocturn-theme body #participant-login-setup [hidden] {display:none!important;}
}
@layer nocturn-visibility {:root.nocturn-theme body #login-panel.master-access-simple .master-access-role {max-width:100%!important;overflow-wrap:anywhere!important;white-space:normal!important;}}
/* v63: align only the two existing participant access actions. */
@layer nocturn-visibility {
 :root.nocturn-theme body .invitation-workspace-dialog .invitation-role-panel > button:is([data-installation-role],[data-participant-login]):not([hidden]) {display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:top!important;box-sizing:border-box!important;width:240px!important;max-width:calc(50% - 6px)!important;min-width:0!important;height:64px!important;min-height:64px!important;margin:0!important;padding:8px 12px!important;white-space:normal!important;line-height:1.25!important;text-align:center!important;}
 :root.nocturn-theme body .invitation-workspace-dialog .invitation-role-panel > button[data-installation-role]:not([hidden]) {margin-right:12px!important;}
 @media(max-width:600px) {
  :root.nocturn-theme body .invitation-workspace-dialog .invitation-role-panel > button:is([data-installation-role],[data-participant-login]):not([hidden]) {height:88px!important;min-height:88px!important;}
 }
}

/* Single help entry in the existing identity band; outside document flow. */
@layer nocturn-fit {
 :root.nocturn-theme body .main-help {position:absolute!important;top:2px;left:50%;transform:translateX(-50%);width:300px;display:flex!important;flex-direction:column;align-items:center;gap:2px;z-index:4;}
 :root.nocturn-theme body .main-help[hidden],:root.nocturn-theme body.signed-out .main-help {display:none!important;}
 :root.nocturn-theme body .main-help #help-support {width:176px!important;min-height:40px!important;height:40px!important;padding:5px 12px!important;margin:0!important;}
 :root.nocturn-theme body #main-help-hint {font-size:12px!important;line-height:16px!important;text-align:center;color:var(--nocturn-muted)!important;margin:0!important;}
 :root.nocturn-theme body .main-help-short {display:none!important;}
 :root.nocturn-theme body #support-direct-host {display:contents!important;}
 :root.nocturn-theme body #support-direct-host > .compact-summary {display:none!important;}
 :root.nocturn-theme body #support-direct-host .compact-body > h2 {display:none!important;}
 @media(max-width:1023px) {
  :root.nocturn-theme body .main-help {top:100%;left:12px;right:auto;transform:none;width:150px;gap:2px;}
  :root.nocturn-theme body .main-help #help-support {width:100px!important;height:32px!important;min-height:32px!important;align-self:flex-start;margin-left:62px!important;}
  :root.nocturn-theme body #main-help-hint {font-size:11px!important;line-height:14px!important;}
  :root.nocturn-theme body .main-help-full {display:none!important;}
  :root.nocturn-theme body .main-help-short {display:inline!important;white-space:nowrap;}
 }
}

/* Compact Contact entry; simultaneous app notices reserve a separate row below. */
@layer nocturn-fit {
 :root.nocturn-theme body #contact-message-alert {position:absolute!important;top:8px!important;right:24px!important;left:auto!important;bottom:auto!important;display:block!important;width:max-content!important;max-width:min(560px,46vw)!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;z-index:4;}
 :root.nocturn-theme body #contact-message-alert[hidden] {display:none!important;}
 :root.nocturn-theme body #contact-message-alert > button {display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:auto!important;max-width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;margin:0!important;padding:6px 12px!important;border:1px solid #c45a60!important;border-radius:6px!important;background:#111a36!important;color:#ff7979!important;font:600 14px/1.2 'Segoe UI',sans-serif!important;box-shadow:none!important;white-space:nowrap!important;}
 :root.nocturn-theme body #contact-message-alert > button :is(.contact-message-copy,.contact-message-signal,span) {color:#ff7979!important;}
 :root.nocturn-theme body #contact-message-alert .contact-message-signal {font-size:24px!important;line-height:1!important;font-weight:800!important;animation:contact-message-pulse 1.5s ease-in-out infinite;}
 :root.nocturn-theme body #contact-message-alert > .small-muted {display:block!important;max-width:100%;color:#ff7979!important;font-size:11px!important;line-height:1.2!important;}
 :root.nocturn-theme body #contact-message-alert > .small-muted:empty {display:none!important;}
 @keyframes contact-message-pulse {0%,100%{opacity:1}50%{opacity:.35}}
 @media(max-width:767px){
  :root.nocturn-theme body #contact-message-alert {top:0!important;right:0!important;max-width:140px!important;}
  :root.nocturn-theme body #contact-message-alert > button {height:32px!important;min-height:32px!important;padding:4px 7px!important;gap:4px!important;font-size:12px!important;}
  :root.nocturn-theme body #contact-message-alert .contact-message-copy {font-size:0!important;}
  :root.nocturn-theme body #contact-message-alert .contact-message-copy::after {content:'Mesaj nou';font-size:12px!important;}
  :root.nocturn-theme body #contact-message-alert .contact-message-signal {font-size:21px!important;}
 }
 @media(prefers-reduced-motion:reduce){:root.nocturn-theme body #contact-message-alert .contact-message-signal {animation:none!important;}}
}

/* Reserve real space when both attention actions are visible, on every role/page. */
@layer nocturn-fit {
 :root.nocturn-theme body.participant-app:has(main > :is(#pwa-install-banner:not([hidden]),#update-banner:not(.hidden))) main > .topbar:has(> #contact-message-alert:not([hidden])) {
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;
  height:auto!important;min-height:0!important;padding:58px 0 0!important;flex:none!important;
 }
 :root.nocturn-theme body.participant-app:has(main > :is(#pwa-install-banner:not([hidden]),#update-banner:not(.hidden))) main > .topbar > #contact-message-alert:not([hidden]) {
  position:relative!important;inset:auto!important;display:flex!important;flex-direction:column!important;align-items:flex-end!important;
  flex:0 0 100%!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;
 }
 :root.nocturn-theme body.participant-app:has(main > :is(#pwa-install-banner:not([hidden]),#update-banner:not(.hidden))) main > .topbar:has(> #contact-message-alert:not([hidden])) > .nocturn-progress-slot {
  position:relative!important;inset:auto!important;flex:0 0 100%!important;width:100%!important;max-width:100%!important;grid-area:auto!important;
 }
}

/* Compact desktop tariff row: six visible amounts, no scrolling. */
@layer nocturn-visibility {
 @media(min-width:1024px){
  :root.nocturn-theme body.figma-ai-layout.finance-workspace-design #finance-mlnr.finance-inline-info:not(.hidden) {display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto minmax(0,1fr)!important;grid-template-areas:'tabs' 'context' 'stats' 'groups'!important;gap:4px!important;overflow:hidden!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-workspace-tabs {grid-area:tabs!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-workspace-context {grid-area:context!important;gap:8px!important;min-height:34px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-workspace-context input {width:100px!important;min-height:32px!important;height:32px!important;padding:4px 8px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-workspace-actions {grid-area:context!important;justify-self:end!important;align-self:center!important;margin-left:300px!important;gap:10px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-workspace-actions .small-muted {font-size:12px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-workspace-actions button {width:auto!important;min-width:205px!important;min-height:34px!important;height:34px!important;padding:3px 8px!important;font-size:12px!important;white-space:nowrap!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-stats {grid-area:stats!important;gap:8px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-stats > .stat {padding:8px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-stats .stat-value {font-size:25px!important;line-height:1.1!important;margin:4px 0!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-stats .stat-detail {font-size:11px!important;line-height:1.2!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-mlnr-workspace {grid-area:groups!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;min-height:0!important;gap:4px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-group-tabs {flex:0 0 auto!important;margin:0!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr :is(.finance-workspace-tabs,.finance-group-tabs) button {min-height:36px!important;height:36px!important;padding:3px 8px!important;font-size:13px!important;}
  :root.nocturn-theme body.figma-ai-layout.finance-workspace-design #finance-mlnr-group-0:not([hidden]) {grid-template-columns:minmax(0,1fr) minmax(0,2fr)!important;gap:10px!important;flex:0 0 auto!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs {padding:8px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs > .panel-heading {padding:0 0 6px!important;min-height:0!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs h2 {font-size:18px!important;line-height:1.15!important;margin:0!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr #finance-local-semesters .finance-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr #finance-mlnr-tariffs .finance-stats {grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs .stat {display:flex!important;flex-direction:column!important;justify-content:space-between!important;padding:8px!important;min-height:78px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs .stat-label {font-size:12px!important;line-height:1.2!important;min-height:16px!important;padding-right:24px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs .stat-value {font-size:22px!important;line-height:1.1!important;margin:4px 0!important;padding:0!important;white-space:nowrap!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs .stat-detail {font-size:11px!important;line-height:1.2!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs .finance-note {font-size:11px!important;line-height:1.2!important;margin:4px 0 0!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr .section-help-button {width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;padding:0!important;font-size:13px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr .finance-inline-tariffs > button {align-self:flex-start!important;margin:5px 0 0!important;min-height:30px!important;height:30px!important;padding:3px 8px!important;font-size:12px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr #finance-mlnr-tariffs {position:relative!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr #finance-mlnr-tariffs:has(> button:not([hidden])) > .panel-heading {padding-right:238px!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr #finance-mlnr-tariffs > button:not([hidden]) {position:absolute!important;top:4px!important;right:8px!important;width:230px!important;min-width:230px!important;max-width:230px!important;min-height:26px!important;height:26px!important;margin:0!important;font-size:12px!important;white-space:nowrap!important;}

  :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role="treasurer"] > .sidebar > nav {display:flex!important;flex-wrap:nowrap!important;gap:8px!important;}
  :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role="treasurer"] > .sidebar > nav > :is(button,a,.ai-nav-group) {flex:1 1 0!important;width:auto!important;min-width:0!important;}

  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-summary-compact {padding:0!important;border:0!important;background:transparent!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-summary-compact > .compact-summary {display:none!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-summary-compact > dialog:not([open]) {display:block!important;position:static!important;inset:auto!important;transform:none!important;grid-column:1/-1!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-summary-compact > dialog:not([open]) > .dialog-heading {display:none!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-summary-compact > dialog:not([open]) > .compact-body {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;padding:0!important;background:transparent!important;overflow:visible!important;}
  :root.nocturn-theme body.figma-ai-layout #finance-mlnr > .finance-summary-compact .compact-body > .stat {padding:8px!important;}

 }
}

@layer nocturn-visibility {
/* Account .91: symmetric actions; original forms, permissions and restore checks retained. */
:root.nocturn-theme body.figma-ai-layout #account-workspace-dialog.as-account-dialog{min-height:0!important;inset:auto!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;margin:0!important;}
:root.nocturn-theme body.figma-ai-layout #account-workspace-dialog .as-original-rack > .settings-card > :not(dialog){display:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog{width:min(1000px,calc(100vw - 40px))!important;max-width:1000px!important;height:auto!important;max-height:calc(100dvh - 40px)!important;border-radius:14px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog > .dialog-heading{padding:20px 24px!important;gap:10px!important;align-items:center!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog .account-heading-copy{flex:1!important;min-width:0!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog .account-heading-copy h2{font-size:32px!important;line-height:1.12!important;margin:0!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog .account-heading-copy > p{font-size:14px!important;line-height:20px!important;margin:6px 0 0!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog > .compact-body{display:block!important;flex:none!important;padding:24px!important;overflow:visible!important;min-height:0!important;max-height:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog :is(.account-workspace-tabs,.as-legacy-panel,.as-legacy-footer){display:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-original-rack{display:contents!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-original-rack > .settings-card{padding:0!important;margin:0!important;border:0!important;min-height:0!important;background:transparent!important;box-shadow:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-original-rack > .settings-card > .compact-summary{display:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-home-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:24px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-column{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;gap:12px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-column-heading{display:flex!important;justify-content:space-between!important;align-items:center!important;min-height:30px!important;margin:0 0 2px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-column-heading h3{font:500 17px/24px Arial,sans-serif!important;margin:0!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog :is(.as-action,.as-secondary){box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;width:100%!important;min-width:0!important;max-width:none!important;white-space:normal!important;margin:0!important;border:1px solid #c6a84c!important;border-radius:8px!important;box-shadow:0 2px 5px #14234110!important;font:500 16px/22px Arial,sans-serif!important;padding:12px 16px!important;height:64px!important;min-height:64px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog .as-action{background:#192b4e!important;color:#fff!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog .as-secondary{height:42px!important;min-height:42px!important;font-size:14px!important;background:#f5f4f1!important;color:#162746!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-footer{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;gap:12px!important;padding:14px 24px!important;border-top:1px solid #d6c892!important;flex:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout :is(.as-account-dialog,.as-managed-dialog) .as-question{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;margin:0!important;border:1px solid #c6a84c!important;border-radius:50%!important;background:transparent!important;color:#162746!important;font:500 16px/1 Arial,sans-serif!important;box-shadow:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-column-heading .as-question{width:28px!important;min-width:28px!important;max-width:28px!important;flex-basis:28px!important;height:28px!important;min-height:28px!important;font-size:14px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout :is(.as-account-dialog,.as-managed-dialog) .section-help-button{display:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout :is(.as-account-dialog,.as-managed-dialog) .as-explanation{margin:12px 24px 0!important;padding:12px 15px!important;border:1px solid #dacb9a!important;border-radius:8px!important;background:#f3f1e8!important;color:#162746!important;flex:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-explanation > div{display:flex;justify-content:space-between;align-items:center;gap:12px;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-explanation strong,:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-explanation p{font:400 14px/21px Arial,sans-serif!important;color:#162746!important;margin:4px 0!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-explanation-close{width:28px!important;min-width:28px!important;min-height:28px!important;height:28px!important;padding:0!important;background:transparent!important;color:#162746!important;border:0!important;box-shadow:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-source-actions,:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-help-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-view > .as-action{margin-top:18px!important;min-height:44px!important;height:44px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-view label{display:block!important;font-size:15px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-view select{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;padding:9px 12px!important;margin:8px 0 0!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout #automatic-backups{display:block;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout #automatic-backups label{display:block!important;margin-top:18px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout #account-verify-copy{width:100%!important;min-height:44px!important;margin:16px 0 0!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-managed-dialog .as-instruction{display:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-managed-dialog{width:min(1000px,calc(100vw - 40px))!important;border-radius:12px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-managed-dialog > .dialog-heading{gap:10px!important;align-items:center!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-managed-dialog > .dialog-heading h2{flex:1!important;min-width:0!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout [data-as-security=password] > dialog > .compact-body > :not(#password-settings):not([data-workspace-feedback]){display:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout [data-as-security=devices] > dialog > .compact-body > :not(#load-devices):not(#authorized-devices):not([data-workspace-feedback]){display:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-passkey{margin-top:16px!important;}
@media(max-width:767px){
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog{width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog > .dialog-heading{padding:14px 16px!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog > .compact-body{padding:16px!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-home-grid{gap:12px!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog .as-action{font-size:14px!important;padding:10px 8px!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-footer{padding:12px 16px!important;gap:8px!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog .account-heading-copy h2{font-size:26px!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog .account-heading-copy > p{font-size:12px!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog .as-secondary{font-size:12px!important;padding:8px 4px!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-source-actions,:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-help-grid{grid-template-columns:minmax(0,1fr)!important;}
}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog [hidden],:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-managed-dialog [hidden]{display:none!important;}

/* Explicit restore confirmation uses the original protected commit handler. */
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-restore-native{display:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-restore-dialog{width:min(1000px,calc(100vw - 40px))!important;border-radius:12px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-restore-phrase{display:block!important;margin:16px 0!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-restore-phrase input{display:block!important;width:100%!important;box-sizing:border-box!important;margin-top:8px!important;min-height:44px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-restore-action{display:block!important;width:100%!important;min-height:44px!important;margin:12px 0!important;border-radius:8px!important;border:1px solid #8a2e2b!important;background:#8a2e2b!important;color:#fff!important;}

}

/* One bounded support workspace, with only its message history scrolling. */
@layer support-window {
 :root.nocturn-theme body .support-workspace-bar > .field-full-value {display:none!important;}
 :root.nocturn-theme body .support-unified-window .nocturn-progress-slot:has(.operation-progress[data-state=done]):not(:has(.operation-progress:not([data-state=done]))) {display:none!important;}

 :root.nocturn-theme body .support-unified-window {width:min(900px,calc(100vw - 24px))!important;height:min(780px,calc(100dvh - 32px))!important;max-height:calc(100dvh - 32px)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;}
 :root.nocturn-theme body .support-unified-window:not([open]) {display:none!important;}
 :root.nocturn-theme body .support-unified-window > .dialog-heading {flex:none!important;}
 :root.nocturn-theme body .support-unified-window > .compact-body {flex:1!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding:16px!important;}
 :root.nocturn-theme body #support-direct-host.support-unified-host {display:contents!important;}
 :root.nocturn-theme body .support-workspace {display:flex!important;flex-direction:column!important;gap:10px!important;flex:1!important;min-height:0!important;min-width:0!important;}
 :root.nocturn-theme body .support-workspace-bar {display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:8px!important;align-items:center!important;flex:none!important;}
 :root.nocturn-theme body .support-workspace-bar > label {grid-column:1/-1!important;font-size:13px!important;margin:0!important;}
 :root.nocturn-theme body .support-workspace-bar :is(select,button) {box-sizing:border-box!important;min-width:0!important;min-height:38px!important;height:38px!important;width:auto!important;margin:0!important;padding:6px 10px!important;font-size:14px!important;line-height:20px!important;}
 :root.nocturn-theme body .support-workspace-bar select {width:100%!important;max-width:100%!important;text-overflow:ellipsis!important;}
 :root.nocturn-theme body .support-history {flex:none!important;margin:0!important;padding:0!important;border:0!important;}
 :root.nocturn-theme body .support-history > summary {width:auto!important;min-height:24px!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important;color:#102443!important;font-size:13px!important;line-height:24px!important;}
 :root.nocturn-theme body .support-history p {font-size:12px!important;margin:2px 0!important;}
 :root.nocturn-theme body .support-history-pages {display:flex!important;gap:8px!important;}
 :root.nocturn-theme body .support-history-pages button {width:auto!important;min-height:30px!important;height:auto!important;font-size:12px!important;padding:4px 8px!important;}
 :root.nocturn-theme body .support-workspace-status {flex:none!important;font-size:13px!important;line-height:18px!important;margin:0!important;}
 :root.nocturn-theme body .support-new-message {flex:1!important;min-height:0!important;overflow:auto!important;}
 :root.nocturn-theme body .support-new-message h3 {margin:4px 0 12px!important;}
 :root.nocturn-theme body .support-new-message form {display:flex!important;flex-direction:column!important;gap:12px!important;}
 :root.nocturn-theme body .support-new-message :is(select,textarea) {box-sizing:border-box!important;width:100%!important;max-width:100%!important;}
 :root.nocturn-theme body .support-new-message textarea {height:160px!important;min-height:100px!important;}
 :root.nocturn-theme body .support-new-message button {align-self:flex-end!important;}
 :root.nocturn-theme body .support-conversation-slot {display:flex!important;flex-direction:column!important;flex:1!important;min-height:0!important;}
 :root.nocturn-theme body .support-workspace .contact-conversation-inline {position:static!important;display:flex!important;flex:1!important;flex-direction:column!important;gap:8px!important;width:100%!important;max-width:100%!important;min-height:0!important;max-height:none!important;height:100%!important;overflow:hidden!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
 :root.nocturn-theme body .support-workspace .contact-conversation-inline > h2 {display:none!important;}
 :root.nocturn-theme body .support-workspace .contact-conversation-inline > p {flex:none!important;font-size:13px!important;line-height:18px!important;margin:0!important;}
 :root.nocturn-theme body .support-workspace .contact-conversation-messages {display:block!important;margin:0!important;flex:1!important;min-height:50px!important;overflow:auto!important;overscroll-behavior:contain!important;padding:8px!important;border:1px solid #d1d7df!important;border-radius:6px!important;}
 :root.nocturn-theme body .support-workspace .contact-conversation-messages article {margin:0 0 12px!important;padding:8px!important;border:0!important;border-bottom:1px solid #e2e5e9!important;border-radius:0!important;}
 :root.nocturn-theme body .support-workspace .contact-conversation-messages p {overflow-wrap:anywhere!important;white-space:pre-wrap!important;line-height:1.45!important;margin:0 0 5px!important;font-size:14px!important;}
 :root.nocturn-theme body .support-workspace .contact-conversation-messages article > p:first-child {font-size:12px!important;}
 :root.nocturn-theme body .support-workspace .contact-conversation-inline form {display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px 10px!important;flex:none!important;}
 :root.nocturn-theme body .support-workspace .contact-conversation-inline form > :is(label,p) {grid-column:1/-1!important;font-size:12px!important;line-height:16px!important;margin:0!important;}
 :root.nocturn-theme body .support-workspace .contact-conversation-inline textarea {box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;height:70px!important;min-height:60px!important;max-height:120px!important;resize:vertical!important;margin:0!important;}
 :root.nocturn-theme body .support-workspace .contact-conversation-inline button {height:auto!important;min-height:32px!important;min-width:0!important;width:auto!important;padding:5px 10px!important;font-size:13px!important;line-height:18px!important;align-self:flex-start!important;}
 :root.nocturn-theme body .support-workspace .contact-conversation-inline form button {grid-column:2!important;grid-row:2!important;align-self:end!important;min-height:40px!important;}
 :root.nocturn-theme body .support-workspace [hidden],:root.nocturn-theme body .support-workspace .contact-conversation-inline:not([open]) {display:none!important;}
 @media(max-width:600px){
  :root.nocturn-theme body .support-unified-window {width:calc(100vw - 12px)!important;height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;}
  :root.nocturn-theme body .support-unified-window > .compact-body {padding:12px!important;}
  :root.nocturn-theme body .support-workspace-bar {grid-template-columns:1fr 1fr!important;}
  :root.nocturn-theme body .support-workspace-bar select {grid-column:1/-1!important;}
 }
}

/* Touch/mobile navigation only. Desktop media and handlers remain unchanged. */
@layer mobile-navigation {
 
}

/* Desktop pages fit their viewport. Mobile layout and dialog scrolling are unchanged. */
@layer support-window {
 @media(min-width:1024px){
  :root.nocturn-theme body.participant-app.figma-ai-layout:not(.signed-out) > main {overflow:hidden!important;gap:6px!important;}
  :root.nocturn-theme body.participant-app.figma-ai-layout > main > .page {overflow:hidden!important;}
  :root.nocturn-theme body.participant-app.figma-ai-layout #finance-status:not(:empty) {margin-top:0!important;padding:5px 10px!important;}
  :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr.finance-inline-info:not(.hidden) {overflow:hidden!important;gap:4px!important;}
  :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > .finance-mlnr-workspace {justify-content:flex-start!important;gap:6px!important;}
  :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr .finance-inline-tariffs {padding:6px!important;}
  :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr .finance-inline-tariffs > .panel-heading {padding-bottom:4px!important;}
  :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > .finance-stats > .stat {padding:6px!important;}
 }
}

@layer support-window{@media(min-width:1024px){
 :root.nocturn-theme body.participant-app.figma-ai-layout > main > .topbar{height:auto!important;min-height:44px!important;padding-right:204px!important;box-sizing:border-box;gap:10px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout > main > .topbar > .phone-guide-launch-row{order:1!important;flex:0 0 auto!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout > main > .topbar > .nocturn-progress-slot{position:relative!important;inset:auto!important;order:2!important;flex:0 1 200px!important;width:200px!important;min-width:160px;}
 :root.nocturn-theme body.participant-app.figma-ai-layout > main > .topbar > .nocturn-progress-slot:empty{display:none!important;}
 }}
 @layer support-window{@media(min-width:1024px) and (max-height:900px){
 :root.nocturn-theme body.participant-app.figma-ai-layout .finance-preview-panel .finance-preview-table{display:none!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout .finance-preview-panel .finance-preview-copy{display:none!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout .finance-preview-panel{padding:8px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout .finance-preview-footer{margin-top:4px!important;}
 }}

@media (min-width:1024px) {
 :root.nocturn-theme body.figma-ai-layout.master-home-design .topbar > .master-connection-badge {position:static;order:0;flex:0 0 auto;}
 :root.nocturn-theme body.figma-ai-layout.master-home-design .topbar > .phone-guide-launch-row {order:1;}
}

@layer nocturn-fit {
 @media (max-width:1023px) {
  :root.nocturn-theme body.figma-ai-layout.master-home-design main > .topbar {height:20px!important;min-height:20px!important;}
  :root.nocturn-theme body.figma-ai-layout.master-home-design .topbar > .master-connection-badge {top:0;}
 }
}
#secretary-invitation-panel #secretary-cnp-form {display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin:12px 0 20px;}
#secretary-invitation-panel #secretary-cnp-form button {width:auto;min-width:210px;}

#account-phone-guide-slot .phone-guide-launch-row {margin:0;display:block;}
#account-phone-guide-slot #phone-guide-launch {width:100%;}

@layer support-window {
 @media (min-width:1024px) {
  :root.nocturn-theme body.participant-app.figma-ai-layout.figma-ai-layout > main > .topbar > .nocturn-progress-slot {position:absolute!important;left:auto!important;right:204px!important;top:0!important;width:200px!important;min-width:160px;}
 }
}

@layer support-window {
 @media (min-width:1024px) {
  :root.nocturn-theme body.participant-app.figma-ai-layout > .sidebar:has(> nav .ai-nav-group[open]) {z-index:10!important;}
 }
}

@layer uniform-controls {
 #account-workspace-dialog #account-phone-guide-slot #phone-guide-launch {width:100%!important;height:64px!important;min-height:64px!important;}
 :root.nocturn-theme body dialog.member-finance-simple .dialog-heading h2 {color:#102443!important;}
 :root.nocturn-theme body dialog.member-finance-simple .member-finance-balances {display:flex!important;flex-wrap:wrap!important;background:transparent!important;gap:16px 32px!important;}
 :root.nocturn-theme body dialog.member-finance-simple .member-finance-amount {font:30px/1.5 Georgia,serif!important;color:#102443!important;}
 :root.nocturn-theme body dialog.member-finance-simple .finance-actions {display:flex!important;flex-wrap:wrap!important;gap:10px!important;}
 :root.nocturn-theme body dialog.member-finance-simple .finance-actions > button {width:auto!important;min-width:0!important;min-height:44px!important;}
 :root.nocturn-theme body dialog.member-finance-simple .finance-rule-settings > summary {display:list-item!important;background:transparent!important;color:#102443!important;text-align:left!important;width:100%!important;min-width:0!important;padding:12px 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
 :root.nocturn-theme body dialog.member-finance-simple .finance-rule-settings:not([open]) > :not(summary) {display:none!important;}
 :root.nocturn-theme body dialog.member-finance-simple .finance-rule-settings h3 {color:#102443!important;background:transparent!important;}
 :root.nocturn-theme body dialog.finance-member-receipt-dialog .finance-rule-settings > summary {display:list-item!important;background:transparent!important;color:#102443!important;text-align:left!important;width:100%!important;min-width:0!important;border:0!important;box-shadow:none!important;}
 :root.nocturn-theme body dialog.finance-member-receipt-dialog .finance-rule-settings:not([open]) > :not(summary) {display:none!important;}
}

/* Registrul este accesibil din centrul panourilor Maestrului și Secretarului. */
:root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard > .two-col { grid-template-columns:minmax(0,26%) minmax(160px,22%) minmax(0,26%) !important; align-items:center; }
:root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard #dashboard-members { width:100%; }
@media(max-width:600px) { :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard > .two-col { grid-template-columns:minmax(0,1fr) !important; } }

@layer nocturn-visibility {
 @media(min-width:1024px) { :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard > .two-col { grid-template-columns:minmax(0,26%) minmax(160px,22%) minmax(0,26%) !important; } }
}

/* Alinierea butonului central, fără ruperea textului. */
@layer nocturn-visibility {
 :root.nocturn-theme body.figma-ai-layout.master-home-design #dashboard #dashboard-members {
  justify-self:center !important; align-self:center !important;
  width:min(100%, 240px) !important; min-width:0 !important; max-width:none !important;
  white-space:nowrap !important; text-align:center !important;
 }
}

/* Direct registry: the original page is only a host, never an intermediate screen. */
#members.member-registry-direct-host:not(.hidden),
#members.member-registry-direct-host > .panel { display:contents!important; }
#members.member-registry-direct-host > .panel > .compact-summary { display:none!important; }
:root.nocturn-theme body #members.member-registry-direct-host .member-registry-dialog .member-list-modes { display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:0 0 16px!important;width:100%!important; }
:root.nocturn-theme body #members.member-registry-direct-host .member-registry-dialog .member-list-modes button { width:100%!important;min-width:0!important;max-width:none!important;padding:10px 6px!important; }
.member-registry-dialog .member-list-modes button[aria-pressed="true"] { background:#d4ba6b!important;color:#0b1733!important; }
@media(max-width:767px){.member-registry-dialog .member-list-modes { gap:6px; }.member-registry-dialog .member-list-modes button { padding:10px 6px!important; }}

/* Member entry only: the original import action follows the three form tabs. */
@layer support-window {
 :root.nocturn-theme body #member-dialog .member-entry-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;padding:6px 16px!important;flex:none!important;background:#fff!important;min-width:0!important;box-sizing:border-box!important;}
 :root.nocturn-theme body #member-dialog .member-entry-actions > .member-tabs{display:contents!important;}
 :root.nocturn-theme body #member-dialog .member-entry-actions :is(.member-tabs > button,#import-members){width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:7px 4px!important;white-space:normal!important;}
 :root.nocturn-theme body #member-dialog[data-member-mode=edit] .member-entry-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 :root.nocturn-theme body #member-dialog[data-member-mode=edit] #import-members{display:none!important;}
 @media(max-width:600px){:root.nocturn-theme body #member-dialog[data-member-mode=add] .member-entry-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
}

/* Finance proportions: presentation only, original controls, dialogs and illustration retained. */
@layer support-window {
 :root.nocturn-theme body.participant-app.figma-ai-layout :is(#finance-obligations,#finance-mlnr) .finance-stats{background:transparent!important;border:0!important;border-radius:0!important;gap:16px!important;padding:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout :is(#finance-obligations,#finance-mlnr) .finance-stats > .stat{border-radius:12px!important;border:1px solid #b29a58!important;box-sizing:border-box!important;}
 @media(min-width:1100px){
 :root.nocturn-theme body.participant-app.figma-ai-layout:has(:is(#finance-obligations,#finance-mlnr):not(.hidden)) > main > .heading{min-height:0!important;padding-top:4px!important;padding-bottom:4px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout:has(:is(#finance-obligations,#finance-mlnr):not(.hidden)) > main > .heading h1{font-size:30px!important;line-height:1.1!important;margin:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout :is(#finance-obligations,#finance-mlnr):not(.hidden){gap:12px!important;overflow:auto!important;align-content:start!important;min-height:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations:not(.hidden){display:flex!important;flex-direction:column!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr:not(.hidden){display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;grid-template-rows:none!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > :is(.finance-toolbar,.finance-stats,.finance-workspace-tabs){grid-column:1/-1!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > .finance-even-col{display:contents!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > .finance-panel:last-child{grid-column:1/-1!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout :is(#finance-obligations,#finance-mlnr) > .finance-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;flex:none!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout :is(#finance-obligations,#finance-mlnr) > .finance-stats > .stat{min-height:84px!important;padding:10px 12px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout :is(#finance-obligations,#finance-mlnr) .stat-label{font-size:13px!important;line-height:1.25!important;min-height:0!important;padding-right:28px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout :is(#finance-obligations,#finance-mlnr) .stat-value{font-size:28px!important;line-height:1.05!important;text-align:left!important;padding:0!important;margin:6px 0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout :is(#finance-obligations,#finance-mlnr) .stat-detail{display:block!important;font-size:11px!important;line-height:1.3!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout :is(#finance-obligations,#finance-mlnr) > :is(.finance-toolbar,.finance-workspace-context){margin:0!important;min-height:32px!important;flex:none!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout :is(#finance-obligations,#finance-mlnr) > :is(.finance-toolbar,.finance-workspace-context) .field{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;font-size:13px!important;width:auto!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout :is(#finance-obligations,#finance-mlnr) > :is(.finance-toolbar,.finance-workspace-context) input{width:150px!important;min-height:32px!important;height:32px!important;padding:5px 10px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout :is(#finance-obligations,#finance-mlnr) > .finance-workspace-tabs{gap:12px!important;margin:0!important;flex:none!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout :is(#finance-obligations,#finance-mlnr) > .finance-workspace-tabs button{border-radius:8px!important;min-height:34px!important;height:auto!important;padding:6px 10px!important;font-size:13px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations > .finance-workspace-actions{display:flex!important;gap:16px!important;flex:none!important;margin:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations > .finance-workspace-actions > :is(button,details):not([hidden]){flex:1 1 0!important;width:auto!important;min-width:0!important;border-radius:9px!important;min-height:40px!important;height:auto!important;font-size:14px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations > svg{flex:0 1 180px!important;height:180px!important;min-height:100px!important;max-height:180px!important;margin:12px auto 0!important;width:100%!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > .finance-panel,:root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > .finance-even-col > .finance-panel{padding:10px 12px!important;border-radius:12px!important;margin:0!important;min-height:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr :is(#finance-local-semesters,#finance-mlnr-tariffs) > .panel-heading{padding:0 0 8px!important;margin:0!important;min-height:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr :is(#finance-local-semesters,#finance-mlnr-tariffs) h2{font-size:20px!important;line-height:1.1!important;margin:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-local-semesters > .finance-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr-tariffs > .finance-stats{grid-template-columns:minmax(0,1fr)!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr :is(#finance-local-semesters,#finance-mlnr-tariffs) .stat{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:3px 8px!important;padding:8px 10px!important;min-height:62px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr :is(#finance-local-semesters,#finance-mlnr-tariffs) .stat-label{grid-column:1!important;grid-row:1!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr :is(#finance-local-semesters,#finance-mlnr-tariffs) .stat-value{grid-column:2!important;grid-row:1/3!important;align-self:center!important;text-align:right!important;padding-right:24px!important;font-size:25px!important;white-space:nowrap!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr :is(#finance-local-semesters,#finance-mlnr-tariffs) .stat-detail{grid-column:1!important;grid-row:2!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr :is(#finance-local-semesters,#finance-mlnr-tariffs) > .finance-note{font-size:11px!important;line-height:1.25!important;margin:6px 0 0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr .compact-summary{padding:0!important;margin:0!important;min-height:32px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr .compact-summary .compact-launcher{width:auto!important;max-width:100%!important;min-height:32px!important;height:auto!important;font-size:16px!important;line-height:1.2!important;text-align:left!important;border-radius:7px!important;padding:5px 10px!important;}
 }
}

@layer support-window { @media(min-width:1100px){
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr:not(.hidden){grid-template-columns:repeat(6,minmax(0,1fr))!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > :is(.finance-toolbar,.finance-stats,.finance-workspace-tabs,.finance-panel:last-child){grid-column:1/-1!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-local-semesters{grid-column:span 4!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr-tariffs{grid-column:span 2!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > .compact-card,:root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > .finance-even-col > .compact-card{grid-column:span 3!important;padding:8px 10px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > .compact-card:last-child{grid-column:1/-1!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout :is(#finance-obligations,#finance-mlnr) .finance-stats > .stat{gap:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr :is(#finance-local-semesters,#finance-mlnr-tariffs) > .finance-note{display:block!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr :is(#finance-local-semesters,#finance-mlnr-tariffs) .stat-value{padding-right:30px!important;font-size:23px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr .compact-summary .compact-launcher{font-size:14px!important;min-height:28px!important;padding:4px 8px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout.treasurer-home-design main:has(> #finance-obligations:not(.hidden)) > .heading{grid-template-rows:24px 44px!important;gap:4px 16px!important;min-height:0!important;height:auto!important;padding:4px 0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout.treasurer-home-design .heading > .master-motto{font-size:27px!important;line-height:1!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout.treasurer-home-design .heading #next-meeting-card{padding:5px 8px!important;min-height:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations > .finance-toolbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations > .finance-toolbar > button:not([hidden]){width:auto!important;min-height:32px!important;height:auto!important;margin:0!important;padding:5px 12px!important;font-size:12px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations > .finance-obligations-layout{display:flex!important;flex-direction:column!important;gap:12px!important;width:100%!important;min-height:0!important;flex:none!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations .finance-obligation-overview{display:block!important;padding:0!important;border:0!important;background:transparent!important;margin:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations .finance-obligation-overview > .panel-heading{padding:0!important;margin:0 0 5px!important;min-height:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations .finance-obligation-overview h2{font-size:19px!important;line-height:1.1!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations .finance-obligation-overview > .finance-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations .finance-obligation-overview .stat{padding:10px 12px!important;min-height:84px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations .finance-obligation-commands{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;background:transparent!important;border:0!important;padding:0!important;margin:0!important;min-width:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations .finance-obligation-commands > .panel-heading{grid-column:1/-1!important;padding:0!important;margin:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations .finance-obligation-controls{display:contents!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations .finance-obligation-commands :is(.finance-members,.finance-rules){width:100%!important;min-width:0!important;max-width:none!important;padding:5px!important;border-radius:9px!important;margin:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations .finance-obligation-commands .compact-summary{padding:0!important;min-width:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations .finance-obligation-commands .compact-launcher{width:100%!important;min-width:0!important;font-size:14px!important;min-height:34px!important;margin:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations #finance-add-obligation{grid-column:auto!important;grid-row:auto!important;transform:none!important;min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;min-height:40px!important;}
 }}

@layer support-window{@media(min-width:1100px){
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations :is(.finance-obligation-overview,.finance-obligation-commands){width:100%!important;align-self:stretch!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations .finance-obligation-commands :is(.finance-members,.finance-rules){grid-column:auto!important;grid-row:auto!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations .finance-obligation-commands .compact-summary{min-height:34px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations > svg{transform:none!important;--home-decoration-scale:1!important;max-width:100%!important;align-self:center!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-obligations .finance-stats .stat-value{background:transparent!important;border-radius:0!important;font-family:'Cormorant Garamond',Georgia,serif!important;color:#94702a!important;}
}}

@layer support-window{@media(min-width:1100px){
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr:not(.hidden){gap:10px!important;grid-auto-rows:max-content!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > .finance-stats > .stat{min-height:78px!important;padding:8px 10px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > :is(#finance-local-semesters,#finance-mlnr-tariffs){height:auto!important;max-height:none!important;overflow:visible!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > .compact-card,:root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > .finance-even-col > .compact-card{padding:6px 10px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr .compact-summary{min-height:28px!important;}
}}

@layer support-window{@media(min-width:1100px){
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > .finance-toolbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout #finance-mlnr > .finance-toolbar > button:not([hidden]){min-height:32px!important;height:32px!important;width:auto!important;font-size:12px!important;padding:5px 10px!important;}
}}

/* Invitation-only compaction. Never target home, navigation or shared dialogs. */
@layer nocturn-visibility {
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal > .invitation-role-tabs {background:transparent!important;padding:0!important;gap:16px!important;margin:14px 24px 0!important;border:0!important;box-shadow:none!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal > .dialog-heading {padding:16px 24px!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal > .compact-body {padding:16px 24px!important;overflow:auto!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal .invitation-form-heading {margin-bottom:10px!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal .invitation-role-panel > [id$="-renewal-status"] {margin:6px 0 10px!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal form {gap:12px!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal .invitation-compact-fields {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:16px!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal .invitation-compact-fields > .field {min-width:0!important;width:100%!important;margin:0!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal .invitation-form-actions {justify-content:center!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal .invitation-form-actions button.primary,
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal .invitation-role-panel > button[data-installation-role]:not([hidden]) {background:#1b2d4e!important;color:#fff!important;border:2px solid #c5a44b!important;width:min(100%,560px)!important;max-width:100%!important;min-height:44px!important;height:auto!important;padding:10px 16px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:12px auto 0!important;flex:0 0 auto!important;box-sizing:border-box!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal .invitation-form-actions button.primary {margin:0!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal .invitation-form-hint {text-align:center!important;font-size:12px!important;line-height:1.4!important;margin:0!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal #secretary-cnp-form {display:flex!important;flex-flow:row wrap!important;justify-content:space-between!important;align-items:center!important;gap:8px 12px!important;margin:8px 0 14px!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal #secretary-cnp-form label {margin:0!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal #secretary-cnp-save-status {font-size:12px!important;color:#596782!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal > .dialog-footer {padding:12px 24px!important;}
 @media(max-width:600px) {
  :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal .invitation-compact-fields {grid-template-columns:minmax(0,1fr)!important;gap:12px!important;}
  :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal > .invitation-role-tabs {margin:12px 16px 0!important;gap:12px!important;}
  :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal > .compact-body,
  :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal > .dialog-heading,
  :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal > .dialog-footer {padding:12px 16px!important;}
 }
}

@layer nocturn-visibility {
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal .invitation-send-step {display:flex;flex-direction:column;gap:10px;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode {height:fit-content!important;max-height:calc(var(--invitation-visible-height,100dvh) - 12px)!important;width:min(960px,calc(100vw - 16px))!important;margin-top:max(6px,var(--invitation-visible-top,0px))!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode > .dialog-heading {padding:6px 12px!important;min-height:48px!important;gap:8px!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode > .dialog-heading > img,
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode .invitation-heading-copy > p {display:none!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode > .dialog-heading h2 {font-size:22px!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode > .invitation-role-tabs {margin:6px 12px 0!important;gap:12px!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode > .invitation-role-tabs button {height:44px!important;min-height:44px!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode > .compact-body {padding:8px 12px!important;overflow:visible!important;flex:none!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode .invitation-step-toolbar {padding:7px 12px 0!important;font-size:13px!important;color:#596782!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode [data-invitation-step-hidden]:is(#secretary-cnp-form,*) {display:none!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode .invitation-compact-fields,
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode .invitation-role-panel > form:not(#secretary-cnp-form),
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode .notice {display:contents!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode > .dialog-footer {display:flex!important;justify-content:flex-end!important;gap:8px!important;padding:8px 12px!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode > .dialog-footer button {width:auto!important;min-width:0!important;flex:1!important;min-height:44px!important;margin:0!important;padding:8px!important;font-size:14px!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode #secretary-cnp-form {margin:0!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode .invitation-role-panel > button[data-installation-role]:not([hidden]) {margin:0 auto!important;}
}

@layer nocturn-visibility {
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode {position:fixed!important;left:calc(var(--invitation-visible-left,0px) + 8px)!important;right:auto!important;top:calc(var(--invitation-visible-top,0px) + 6px)!important;margin:0!important;width:min(960px,calc(var(--invitation-visible-width,100vw) - 16px))!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-tight-mode #secretary-cnp-form,
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-tight-mode .invitation-send-step {display:contents!important;}
 :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-tight-mode > .dialog-footer button {padding:4px!important;}
}

@layer nocturn-visibility { :root.nocturn-theme body .invitation-workspace-dialog.invitation-compact-proposal.invitation-step-mode > .dialog-heading > .section-help-button {position:static!important;flex:none!important;margin:0!important;width:44px!important;height:44px!important;min-height:44px!important;} }

/* Treasurer desktop home only: original controls and financial handlers are retained. */
@layer treasurer-desktop {@media(min-width:1100px){
 :root.nocturn-theme body.treasurer-desktop-home > main {overflow:visible!important;}
 :root.nocturn-theme body.treasurer-desktop-home #finance-obligations:not(.hidden) {display:flex!important;flex-direction:column!important;overflow:visible!important;gap:8px!important;}
 :root.nocturn-theme body.treasurer-desktop-home #finance-obligations > .finance-toolbar:empty {display:none!important;}
 :root.nocturn-theme body.treasurer-desktop-home #finance-obligations > .finance-obligations-layout {display:contents!important;}
 :root.nocturn-theme body.treasurer-desktop-home #finance-obligations > .finance-workspace-tabs {order:0!important;}
 :root.nocturn-theme body.treasurer-desktop-home .treasurer-primary-actions {order:1!important;}
 :root.nocturn-theme body.treasurer-desktop-home #finance-obligations .finance-obligation-overview {order:2!important;flex:none!important;}
 :root.nocturn-theme body.treasurer-desktop-home #finance-obligations .finance-obligation-commands {order:3!important;flex:none!important;}
 :root.nocturn-theme body.treasurer-desktop-home .treasurer-primary-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;flex:none;}
 :root.nocturn-theme body.treasurer-desktop-home .treasurer-primary-actions > button {width:100%!important;min-height:48px!important;height:auto!important;margin:0!important;padding:8px 12px!important;font-size:18px!important;line-height:1.25!important;background:#761d3b!important;color:#fff!important;border-radius:8px!important;}
 :root.nocturn-theme body.treasurer-desktop-home .treasurer-primary-actions > button:hover {background:#8b2548!important;}
 :root.nocturn-theme body.treasurer-desktop-home .treasurer-primary-actions > button:focus-visible {outline:3px solid #fff!important;outline-offset:2px!important;}
 :root.nocturn-theme body.treasurer-desktop-home .sidebar > nav {display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;}
 :root.nocturn-theme body.treasurer-desktop-home .sidebar > nav > :is(button,details) {width:100%!important;}
 :root.nocturn-theme body.treasurer-desktop-home #finance-obligations > .treasurer-home-symbols {order:4!important;flex:1 1 0!important;min-height:48px!important;height:0!important;max-height:none!important;width:100%!important;transform:none!important;--home-decoration-scale:1!important;overflow:visible!important;}
}}
@layer support-window { @media (min-width:1100px) {
 :root.nocturn-theme body.participant-app.figma-ai-layout.treasurer-home-design #finance-obligations .finance-obligation-commands {min-height:56px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout.treasurer-home-design #finance-obligations .finance-obligation-commands :is(.finance-members,.finance-rules) {align-self:start!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout.treasurer-home-design #finance-obligations .finance-obligation-commands :is(.finance-members,.finance-rules) > .compact-summary {position:relative!important;height:44px!important;min-height:44px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout.treasurer-home-design #finance-obligations .finance-obligation-commands :is(.finance-members,.finance-rules) > .compact-summary > h2 {width:100%!important;height:100%!important;margin:0!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout.treasurer-home-design #finance-obligations .finance-obligation-commands :is(.finance-members,.finance-rules) .compact-launcher {height:100%!important;min-height:40px!important;}
 :root.nocturn-theme body.participant-app.figma-ai-layout.treasurer-home-design #finance-obligations .finance-members > .compact-summary .section-help-button {position:absolute!important;right:5px!important;top:50%!important;transform:translateY(-50%)!important;z-index:2!important;}
}}
@layer support-window { @media (min-width:1100px) and (max-width:1199px) {
 :root.nocturn-theme body.participant-app.figma-ai-layout.treasurer-home-design #finance-obligations .finance-obligation-commands :is(.finance-members,.finance-rules) {align-self:center!important;}
}}

@layer support-window { @media (min-width:1200px) and (max-height:780px) {
 :root.nocturn-theme body.participant-app.figma-ai-layout.treasurer-home-design #finance-obligations #finance-add-obligation {align-self:start!important;}
}}

/* Casa și bancă: original controls, aligned without altering other panels. */
@layer support-window {
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role=treasurer] #finance-cash.finance-cash-fixed:not(.hidden){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:min-content!important;align-content:start!important;gap:10px!important;overflow:visible!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role=treasurer] #finance-cash > :is(.finance-workspace-tabs,.finance-workspace-context,.finance-cash-symbols){grid-column:1 / -1!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role=treasurer] #finance-cash > .finance-workspace-actions{display:contents!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role=treasurer] #finance-cash > .finance-summary-compact{display:block!important;min-width:0!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role=treasurer] #finance-cash > .finance-summary-compact > .compact-summary{min-height:44px!important;height:100%!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role=treasurer] #finance-cash > .finance-summary-compact > .compact-summary h2{height:100%!important;margin:0!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role=treasurer] #finance-cash > .finance-summary-compact .compact-launcher,
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role=treasurer] #finance-cash > .finance-workspace-actions > button{width:100%!important;min-width:0!important;min-height:44px!important;height:100%!important;margin:0!important;white-space:normal!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role=treasurer] #finance-cash :is(.finance-summary-compact,.finance-workspace-actions) .compact-launcher::after{content:none!important;}
 :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role=treasurer] #finance-cash > .finance-cash-symbols{display:block!important;width:min(900px,100%)!important;height:clamp(90px,22vh,240px)!important;max-height:none!important;margin:20px auto 0!important;overflow:visible!important;}
 @media(max-width:700px){
  :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role=treasurer] #finance-cash.finance-cash-fixed:not(.hidden){grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role=treasurer] #finance-cash [data-finance-ledger-launch]{order:0!important;}
  :root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role=treasurer] #finance-cash > .finance-cash-symbols{display:none!important;}
 }
 @media(max-height:600px){:root.nocturn-theme body.figma-ai-layout.finance-workspace-design[data-registry-role=treasurer] #finance-cash > .finance-cash-symbols{display:none!important;}}
}

@layer support-window {
 :root.nocturn-theme body[data-registry-role=treasurer] > dialog.cash-short-dialog[open]{position:fixed!important;inset:0!important;margin:auto!important;width:min(96vw,440px)!important;max-width:96vw!important;max-height:calc(100dvh - 12px)!important;padding:8px!important;overflow:visible!important;background:#0b1230!important;color:#fff!important;border:1px solid #d4ba6b!important;border-radius:8px!important;}
 :root.nocturn-theme body[data-registry-role=treasurer] > dialog.cash-short-dialog header h2{font-size:18px!important;line-height:1.2!important;margin:0 0 6px!important;color:#d4ba6b!important;}
 :root.nocturn-theme body[data-registry-role=treasurer] > dialog.cash-short-dialog .cash-short-content label{display:grid!important;gap:3px!important;font-size:14px!important;}
 :root.nocturn-theme body[data-registry-role=treasurer] > dialog.cash-short-dialog .cash-short-content :is(input,button){width:100%!important;min-height:44px!important;height:auto!important;}
 :root.nocturn-theme body[data-registry-role=treasurer] > dialog.cash-short-dialog nav{display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;gap:8px!important;margin-top:6px!important;}
 :root.nocturn-theme body[data-registry-role=treasurer] > dialog.cash-short-dialog nav button{min-width:0!important;width:100%!important;min-height:44px!important;}
 :root.nocturn-theme body[data-registry-role=treasurer] > dialog.cash-short-dialog .cash-short-error{margin:4px 0!important;color:#fff!important;font-size:14px!important;}
}

@layer support-window {
 :root.nocturn-theme body[data-registry-role=treasurer] > dialog.cash-short-dialog :is(header,nav){background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;}
 :root.nocturn-theme body[data-registry-role=treasurer] > dialog.cash-short-dialog header{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;}
 :root.nocturn-theme body[data-registry-role=treasurer] > dialog.cash-short-dialog header h2{margin:0!important;background:transparent!important;color:#d4ba6b!important;}
 :root.nocturn-theme body[data-registry-role=treasurer] > dialog.cash-short-dialog header button{min-width:44px!important;width:44px!important;min-height:44px!important;margin:0!important;}
 :root.nocturn-theme body[data-registry-role=treasurer] > dialog.cash-short-dialog :is(label,nav span){color:#fff!important;background:transparent!important;}
 :root.nocturn-theme body[data-registry-role=treasurer] > dialog.cash-short-dialog .cash-short-content{margin-top:4px!important;}
}

@layer support-window {
 :root.nocturn-theme body[data-registry-role=treasurer] > dialog.cash-short-dialog[open]{top:var(--cash-short-top, 6px)!important;bottom:auto!important;margin:0 auto!important;}
}

/* MLNR retains the existing six-command Treasurer bar at compact desktop widths. */
@layer nocturn-fit { @media (min-width:1024px) and (max-width:1099px) {
 :root.nocturn-theme body.figma-ai-layout.treasurer-mlnr-navigation .sidebar > nav {display:flex!important;}
 :root.nocturn-theme body.figma-ai-layout.treasurer-mlnr-navigation .sidebar > nav > [data-page="settings"] {flex:1 1 0!important;}
} }

/* Decorative MLNR marks retain their layout space under the production CSP. */
:root.nocturn-theme .sidebar > .mlnr-brand,
:root.nocturn-theme #mlnr .mlnr-info-kicker { visibility: hidden; }
/* UX: scope home emphasis to the Master's dashboard. No navigation or role changes. */
@layer uniform-controls {
 :root.nocturn-theme body.figma-ai-layout.master-home-design[data-registry-role="master"][data-registry-page="dashboard"] #dashboard :is(.compact-launcher,#view-history) {background:#172c46!important;color:#f6f0df!important;border:1px solid #607186!important;box-shadow:none!important;}
 :root.nocturn-theme body.figma-ai-layout.master-home-design[data-registry-role="master"][data-registry-page="dashboard"] #dashboard #dashboard-members {border-width:2px!important;box-shadow:none!important;font-weight:600!important;}
}

/* Role access surfaces only: explanatory copy and the existing authentication controls. */
@layer nocturn-visibility {
 :root.nocturn-theme body.signed-out:has(#login-panel.master-access-simple){min-height:100dvh!important;height:auto!important;overflow:visible!important;}
 :root.nocturn-theme body.signed-out:has(#login-panel.master-access-simple) #login-panel.master-access-simple {width:min(480px,calc(100vw - 24px))!important;max-height:none!important;overflow:visible!important;padding:20px!important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .login-brand {margin-bottom:12px!important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .master-access-intro {margin-bottom:12px!important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple form:not([hidden]) {gap:10px!important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .commercial-login {gap:10px!important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .master-access-alternatives {display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;align-items:stretch!important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .master-access-alternatives :is(#passkey-login,#password-help-open){width:100%!important;max-width:none!important;min-height:44px!important;margin:0!important;padding:8px!important;font-size:14px!important;line-height:1.3!important;white-space:normal!important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .master-passkey-hint {margin:0!important;color:#526581!important;font-size:14px!important;line-height:1.4!important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple input {font-size:16px!important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .password-toggle {width:44px!important;height:44px!important;min-height:44px!important;right:0!important;top:0!important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .master-access-help {width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;right:14px!important;top:14px!important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #password-help-dialog {max-height:none!important;overflow:visible!important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #password-help-dialog > form {padding:18px!important;gap:10px!important;}
 :root.nocturn-theme body:has(#login-panel.master-access-simple) #password-help-dialog h2 {padding-bottom:10px!important;font-size:28px!important;}
 @media(max-height:600px){
  :root.nocturn-theme body.signed-out:has(#login-panel.master-access-simple){padding:8px!important;}
  :root.nocturn-theme body.signed-out:has(#login-panel.master-access-simple) #login-panel.master-access-simple {width:min(480px,calc(100vw - 16px))!important;padding:12px!important;margin:0 auto!important;}
  :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .login-brand {height:46px!important;align-items:flex-start!important;margin-bottom:6px!important;}
  :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .login-brand img {align-self:center!important;}
  :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .login-brand span {font-size:18px!important;line-height:20px!important;}
  :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple > h1 {position:absolute!important;left:62px!important;top:34px!important;font-size:22px!important;line-height:24px!important;margin:0!important;}
  :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .master-access-intro {margin-bottom:6px!important;}
  :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple form:not([hidden]),:root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .commercial-login,:root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .master-access-alternatives {gap:6px!important;}
  :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .field:not([hidden]) {grid-template-columns:64px minmax(0,1fr)!important;align-items:center!important;gap:4px!important;}
  :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple .master-access-help {right:8px!important;top:8px!important;}
  :root.nocturn-theme body:has(#login-panel.master-access-simple) #password-help-dialog > form {padding:12px!important;gap:6px!important;}
  :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple #commercial-login-error:not(:empty) {padding:6px!important;margin:0!important;font-size:14px!important;line-height:1.3!important;}
 }
 @media(min-width:560px) and (max-height:460px){
  :root.nocturn-theme body:has(#login-panel.master-access-simple) #password-login-form {grid-template-columns:1fr 1fr!important;}
  :root.nocturn-theme body:has(#login-panel.master-access-simple) #password-login-form > :is(button,#commercial-login-error){grid-column:1/-1!important;}
  :root.nocturn-theme body:has(#login-panel.master-access-simple) #login-panel.master-access-simple #password-login-form .field:not([hidden]) {grid-template-columns:1fr!important;gap:2px!important;}
 }
}

@layer nocturn-visibility {
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog{overflow:visible!important;max-height:calc(100dvh - 16px)!important;width:min(720px,calc(100vw - 16px))!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog>.dialog-heading{padding:10px 14px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog>.compact-body{padding:10px 14px!important;overflow:visible!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-home-grid{grid-template-columns:minmax(0,1fr)!important;gap:0!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-column{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-column-heading{grid-column:1/-1!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-section-nav{display:flex!important;align-items:center;gap:12px;margin:0 0 8px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-section-nav select{flex:1;min-height:38px;font-size:14px;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog :is(.as-action,.as-secondary){min-height:44px!important;height:auto!important;padding:8px 10px!important;font-size:14px!important;line-height:18px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog .as-action{background:#f5f4f1!important;color:#162746!important;box-shadow:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-footer{padding:8px 14px!important;gap:8px!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog[data-as-explaining]>.compact-body{display:none!important;}
:root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog .as-explanation{position:static!important;margin:6px 14px!important;padding:8px!important;}
@media(max-height:500px){
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog>.dialog-heading{padding:6px 10px!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog .account-heading-copy h2{font-size:20px!important;line-height:24px!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog .account-heading-copy>p{font-size:12px!important;line-height:14px!important;margin:2px 0 0!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog>.compact-body{padding:4px 10px!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-column-heading{display:none!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-column{gap:4px!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-account-dialog :is(.as-action,.as-secondary){min-height:36px!important;padding:5px 6px!important;font-size:14px!important;line-height:18px!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-section-nav{margin-bottom:4px!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-section-nav select{min-height:36px;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-footer{padding:4px 10px 6px!important;}
 :root.nocturn-theme:has(#account-workspace-dialog):has(#account-workspace-dialog) body.figma-ai-layout .as-help-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;}
}
}

@layer uniform-controls {
@media(max-height:500px){
#account-workspace-dialog.as-account-dialog #account-phone-guide-slot #phone-guide-launch{height:40px!important;min-height:40px!important;font-size:14px!important;line-height:17px!important;padding:3px 5px!important;}
#account-workspace-dialog.as-account-dialog .as-section-nav select{min-height:36px!important;height:36px!important;}
#account-workspace-dialog.as-account-dialog>.dialog-heading :is(.as-question,.icon-button){width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;flex-basis:36px!important;}
}
#members .member-registry-dialog .registry-fixed-tools>button{width:auto!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important;}
#members .member-registry-dialog .member-list-modes{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;margin:0!important;gap:4px!important;}
#members .member-registry-dialog .member-list-modes button{width:100%!important;min-width:0!important;max-width:none!important;flex:none!important;}
#members .member-registry-dialog .registry-fixed-tools{display:grid!important;grid-template-columns:auto 1fr auto!important;}
#members .member-registry-dialog .registry-filter-summary{font-size:13px!important;line-height:16px!important;grid-column:1/-1;order:3;}
}

@layer uniform-controls {#members .member-registry-dialog .registry-filter-summary[hidden]{display:none!important;}#members .member-registry-dialog>.dialog-heading h2{font-size:20px!important;line-height:24px!important;}#members .member-registry-dialog>.dialog-heading button{height:36px!important;min-height:36px!important;width:36px!important;min-width:36px!important;padding:0!important;}#members .member-registry-dialog>.dialog-heading{min-height:0!important;padding:6px 12px!important;}}

/* Short registry: one row of fixed commands leaves usable space for its list. */
@layer uniform-controls {
#members .member-registry-dialog[data-simplified-registry] #registry-list-mode{display:none!important;}
@media(max-height:500px){
#members .member-registry-dialog[data-simplified-registry]>.dialog-heading .icon-button{height:36px!important;min-height:36px!important;width:36px!important;min-width:36px!important;max-width:36px!important;max-height:36px!important;}
#members .member-registry-dialog[data-simplified-registry] .registry-fixed-tools{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;}
#members .member-registry-dialog[data-simplified-registry] .registry-fixed-tools>*:not([hidden]){width:auto!important;min-width:0!important;min-height:36px!important;height:36px!important;padding:4px!important;font-size:14px!important;line-height:18px!important;flex:1 1 auto!important;}
#members .member-registry-dialog[data-simplified-registry] #registry-list-mode{display:block!important;flex:0 1 88px!important;}
#members .member-registry-dialog[data-simplified-registry] .member-list-modes{display:none!important;}
#members .member-registry-dialog[data-simplified-registry][data-registry-view=list] #registry-filter-reset{display:none!important;}
#members .member-registry-dialog[data-simplified-registry][data-registry-view=filters] #registry-list-mode{display:none!important;}
#members .member-registry-dialog[data-simplified-registry] .table-wrap table{display:table!important;min-width:720px!important;width:100%!important;}
#members .member-registry-dialog[data-simplified-registry] .table-wrap thead{display:table-header-group!important;position:static!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;overflow:visible!important;}
#members .member-registry-dialog[data-simplified-registry] .table-wrap tbody{display:table-row-group!important;}
#members .member-registry-dialog[data-simplified-registry] .table-wrap tr{display:table-row!important;padding:0!important;}
#members .member-registry-dialog[data-simplified-registry] .table-wrap :is(th,td){display:table-cell!important;padding:4px 8px!important;position:static!important;}
#members .member-registry-dialog[data-simplified-registry] .table-wrap td::before{display:none!important;}
#members .member-registry-dialog[data-simplified-registry] .table-wrap th{font-size:12px!important;line-height:16px!important;}
}
}

@layer uniform-controls {
:root.nocturn-theme body dialog.simplified-calendar{max-height:calc(100dvh - 16px)!important;overflow:visible!important;}
:root.nocturn-theme body dialog.simplified-calendar :is(.compact-body,.meeting-calendar-panel){height:auto!important;max-height:none!important;overflow:visible!important;min-height:0!important;}
:root.nocturn-theme body dialog.simplified-calendar .meeting-calendar-panel{display:flex!important;flex-direction:column!important;gap:6px!important;padding:8px!important;}
:root.nocturn-theme body dialog.simplified-calendar .calendar-section-nav{display:flex!important;align-items:center!important;gap:8px!important;}
:root.nocturn-theme body dialog.simplified-calendar .calendar-section-nav select{flex:1!important;min-width:0!important;font-size:16px!important;min-height:40px!important;}
:root.nocturn-theme body dialog.simplified-calendar .calendar-configuration .meeting-context{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;}
:root.nocturn-theme body dialog.simplified-calendar .calendar-configuration :is(input,select,button){width:100%!important;min-width:0!important;max-width:none!important;font-size:14px!important;min-height:40px!important;}
:root.nocturn-theme body dialog.simplified-calendar :is([hidden],[data-calendar-week-hidden]){display:none!important;}
:root.nocturn-theme body dialog.simplified-calendar .meeting-month-grid{grid-auto-rows:minmax(36px,1fr)!important;}
:root.nocturn-theme body dialog.simplified-calendar .meeting-month-grid .meeting-weekday{font-size:14px!important;line-height:18px!important;}
:root.nocturn-theme body dialog.simplified-calendar .calendar-week-nav{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;}
:root.nocturn-theme body dialog.simplified-calendar .calendar-week-nav button{font-size:14px!important;line-height:18px!important;width:auto!important;min-height:36px!important;padding:4px!important;}
:root.nocturn-theme body dialog.simplified-calendar .meeting-actions{display:flex!important;align-items:center!important;gap:6px!important;}
:root.nocturn-theme body dialog.simplified-calendar .meeting-actions button{width:auto!important;min-width:0!important;min-height:36px!important;font-size:14px!important;padding:4px 6px!important;}
:root.nocturn-theme body dialog.simplified-calendar #meeting-calendar-status{font-size:14px!important;line-height:18px!important;}
:root.nocturn-theme body dialog.simplified-calendar #meeting-interval{margin:6px 0!important;font-size:14px!important;line-height:18px!important;}
:root.nocturn-theme body #meeting-interval-dialog{padding:10px!important;max-height:none!important;overflow:visible!important;}
:root.nocturn-theme body #meeting-interval-dialog .meeting-interval-editor{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:0 0 8px!important;}
:root.nocturn-theme body #meeting-interval-dialog input{width:100%!important;min-width:0!important;font-size:16px!important;}
@media(max-height:500px){
:root.nocturn-theme body dialog.simplified-calendar>.dialog-heading{padding:4px 8px!important;min-height:36px!important;}
:root.nocturn-theme body dialog.simplified-calendar>.dialog-heading h2{font-size:18px!important;line-height:22px!important;}
:root.nocturn-theme body dialog.simplified-calendar>.compact-body{padding:0!important;}
:root.nocturn-theme body dialog.simplified-calendar .meeting-calendar-panel{padding:4px 8px!important;gap:4px!important;}
:root.nocturn-theme body dialog.simplified-calendar .meeting-month-nav{margin:2px 0!important;}
:root.nocturn-theme body dialog.simplified-calendar .meeting-month-nav h2{font-size:16px!important;line-height:20px!important;}
:root.nocturn-theme body dialog.simplified-calendar .meeting-month-nav button{font-size:14px!important;line-height:16px!important;min-height:32px!important;padding:2px!important;}
:root.nocturn-theme body dialog.simplified-calendar .meeting-month-grid{grid-template-rows:18px 40px!important;grid-auto-rows:40px!important;gap:2px!important;}
:root.nocturn-theme body dialog.simplified-calendar .meeting-day{font-size:16px!important;min-height:24px!important;}
:root.nocturn-theme body dialog.simplified-calendar .meeting-cell{min-height:40px!important;}
}
}

@layer uniform-controls{@media(max-height:500px){#members .member-registry-dialog[data-simplified-registry][data-registry-view=filters] .toolbar{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;padding:4px 0!important;}#members .member-registry-dialog[data-simplified-registry][data-registry-view=filters] .toolbar :is(.search,input,select){width:100%!important;max-width:none!important;min-width:0!important;}}}

@layer support-window {
#members .member-registry-dialog[data-simplified-registry] #member-count{flex:0 0 auto!important;height:auto!important;min-height:fit-content!important;overflow:visible!important;white-space:normal!important;}
:root.nocturn-theme body dialog.simplified-calendar .calendar-selection[hidden],:root.nocturn-theme body dialog.simplified-calendar .calendar-configuration[hidden]{display:none!important;}
:root.nocturn-theme body dialog.simplified-calendar>.dialog-heading{display:grid!important;grid-template-columns:minmax(0,1fr) 36px 36px!important;gap:4px!important;align-items:center!important;padding:4px 8px!important;}
:root.nocturn-theme body dialog.simplified-calendar>.dialog-heading h2{font-size:18px!important;line-height:22px!important;grid-column:1!important;grid-row:1!important;}
:root.nocturn-theme body dialog.simplified-calendar>.dialog-heading .icon-button{grid-column:3!important;grid-row:1!important;}
:root.nocturn-theme body dialog.simplified-calendar>.dialog-heading .section-help-button{grid-column:2!important;grid-row:1!important;position:static!important;transform:none!important;}
:root.nocturn-theme body dialog.simplified-calendar>.dialog-heading button{width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;}
:root.nocturn-theme body dialog.simplified-calendar>.compact-body{overflow:visible!important;padding:0!important;}
:root.nocturn-theme body dialog.simplified-calendar .meeting-calendar-panel{padding:4px 8px!important;gap:4px!important;}
:root.nocturn-theme body dialog.simplified-calendar .calendar-section-nav{font-size:0!important;gap:0!important;}
:root.nocturn-theme body dialog.simplified-calendar .calendar-section-nav select{height:36px!important;min-height:36px!important;padding:4px!important;font-size:14px!important;}
:root.nocturn-theme body dialog.simplified-calendar #meeting-interval{font-size:14px!important;line-height:18px!important;margin:0!important;}
}

@layer dialog-edge-controls {
:root.nocturn-theme body dialog:is(.simplified-long-form,.simplified-calendar)>.dialog-heading:has(>.section-help-button){grid-template-columns:36px minmax(0,1fr) 36px!important;gap:4px!important;padding:4px 8px!important;}
:root.nocturn-theme body dialog:is(.simplified-long-form,.simplified-calendar)>.dialog-heading>h2{grid-column:2!important;grid-row:1!important;font-size:18px!important;line-height:22px!important;}
:root.nocturn-theme body dialog:is(.simplified-long-form,.simplified-calendar)>.dialog-heading>.section-help-button{grid-column:1!important;grid-row:1!important;position:static!important;transform:none!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;}
:root.nocturn-theme body dialog:is(.simplified-long-form,.simplified-calendar)>.dialog-heading>.icon-button{grid-column:3!important;grid-row:1!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;}
}
@layer nocturn-fit {@media(min-width:600px) and (max-width:1023px) and (max-height:500px){
:root.nocturn-theme body.master-home-design[data-registry-role=master]>.sidebar{grid-template-columns:minmax(0,1fr) 130px 150px 76px!important;align-items:center!important;column-gap:8px!important;}
:root.nocturn-theme body.master-home-design[data-registry-role=master]>.sidebar>.brand{grid-column:1!important;grid-row:1!important;min-width:0!important;}
:root.nocturn-theme body.master-home-design[data-registry-role=master]>.sidebar>.main-help{position:static!important;transform:none!important;grid-column:2!important;grid-row:1!important;width:130px!important;margin:0!important;}
:root.nocturn-theme body.master-home-design[data-registry-role=master] .main-help #help-support{margin:0!important;align-self:center!important;width:100px!important;}
:root.nocturn-theme body.master-home-design[data-registry-role=master]>.sidebar>.provider-brand{grid-column:3!important;grid-row:1!important;margin:0!important;}
:root.nocturn-theme body.master-home-design[data-registry-role=master]>.sidebar>.ai-menu-button{grid-column:4!important;grid-row:1!important;position:static!important;width:76px!important;min-width:0!important;margin:0!important;}
:root.nocturn-theme body.master-home-design[data-registry-role=master]>.sidebar>.mlnr-brand{display:none!important;}
}}

@layer uniform-controls {
#member-dialog #member-form #delete-member{background:#fff8f5!important;color:#922923!important;border-color:#922923!important;box-shadow:none!important;margin-right:12px!important;}
#member-dialog #member-form #save-member{background:#d4bb6a!important;color:#101b39!important;font-weight:700!important;}
#member-dialog #member-form #member-back{background:#f6f3eb!important;color:#162746!important;}
:root.nocturn-theme body.master-home-design[data-registry-role=master] #ai-navigation.ai-navigation-dialog{display:flex;flex-direction:column;gap:8px!important;}
:root.nocturn-theme body.master-home-design[data-registry-role=master] #ai-navigation.ai-navigation-dialog:not([open]){display:none!important;}
:root.nocturn-theme body.master-home-design[data-registry-role=master] #ai-navigation>nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important;min-width:0!important;min-height:0!important;overflow:auto!important;}
:root.nocturn-theme body.master-home-design[data-registry-role=master] #ai-navigation>nav>button{width:100%!important;min-width:0!important;max-width:none!important;white-space:normal!important;}
:root.nocturn-theme body dialog:has(#finance-movement-form [name=to_account],#finance-import-form) button[type=submit]{width:auto!important;min-width:0!important;max-width:100%!important;white-space:normal!important;}
}

@layer uniform-controls {
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) :is(.calendar-review,.calendar-selection,.calendar-configuration)[hidden]{display:none!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .calendar-review{display:flex!important;flex-direction:column!important;gap:6px!important;min-height:0!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .calendar-draft-list{max-height:calc(100dvh - 200px)!important;min-height:36px!important;overflow:auto!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .calendar-draft-list p{margin:0 0 6px!important;font-size:14px!important;line-height:18px!important;}
@media(max-height:500px){
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .meeting-context label{gap:2px!important;font-size:14px!important;line-height:18px!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .meeting-context :is(select,button){height:36px!important;min-height:36px!important;padding:2px 4px!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .meeting-month-nav{display:grid!important;grid-template-columns:36px minmax(0,1fr) 36px!important;align-items:center!important;gap:4px!important;margin:0!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .meeting-month-nav h2{grid-column:2!important;grid-row:1!important;margin:0!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .meeting-month-nav button{width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;font-size:0!important;padding:0!important;grid-row:1!important;}
:root.nocturn-theme body dialog.simplified-calendar #meeting-month-previous{grid-column:1!important;}
:root.nocturn-theme body dialog.simplified-calendar #meeting-month-next{grid-column:3!important;}
:root.nocturn-theme body dialog.simplified-calendar #meeting-month-previous::after{content:'‹';font-size:24px;}
:root.nocturn-theme body dialog.simplified-calendar #meeting-month-next::after{content:'›';font-size:24px;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .meeting-grid-scroll{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .meeting-month-grid{height:auto!important;grid-template-rows:18px 54px!important;grid-auto-rows:54px!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .meeting-cell{min-height:54px!important;display:flex!important;flex-direction:column!important;gap:2px!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .meeting-cell button{width:100%!important;min-width:0!important;min-height:24px!important;height:24px!important;padding:0!important;font-size:14px!important;line-height:20px!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) :is(.calendar-week-nav,.meeting-actions) button{height:36px!important;min-height:36px!important;}
}
}

@layer uniform-controls {
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .meeting-month-grid [data-calendar-week-hidden]{display:none!important;}
@media(max-height:500px){:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .meeting-cell button{flex:0 0 24px!important;max-height:24px!important;}}
}

@layer uniform-controls {
:root.nocturn-theme body .cash-short-dialog .cash-short-content{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;min-height:0!important;}
:root.nocturn-theme body .cash-short-dialog .cash-short-content :is(button,input){width:100%!important;min-width:0!important;max-width:none!important;white-space:normal!important;font-size:14px!important;min-height:44px!important;height:auto!important;padding:4px!important;}
:root.nocturn-theme body .cash-short-dialog .cash-short-content label{min-width:0!important;font-size:14px!important;line-height:18px!important;}
:root.nocturn-theme body .cash-short-dialog .cash-short-content .cash-short-error{grid-column:1/-1!important;}
:root.nocturn-theme body .cash-short-dialog>nav{grid-template-columns:auto minmax(0,1fr) auto!important;gap:4px!important;}
:root.nocturn-theme body .cash-short-dialog>nav span{font-size:14px!important;line-height:18px!important;}
}

@layer dialog-edge-controls {
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form>.dialog-heading{grid-template-columns:minmax(0,1fr) 36px 76px!important;grid-template-rows:auto 36px!important;gap:4px!important;padding:4px 8px!important;}
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form>.dialog-heading>div:first-child{grid-column:1/3!important;grid-row:1!important;}
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form>.dialog-heading>#close-dialog{display:none!important;}
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form>.dialog-heading>#member-back{grid-column:3!important;grid-row:1!important;margin:0!important;min-width:0!important;width:76px!important;}
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form>.dialog-heading>.audit-fit-section{grid-column:1!important;grid-row:2!important;font-size:14px!important;}
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form>.dialog-heading>.section-help-button{grid-column:2!important;grid-row:2!important;position:static!important;width:36px!important;min-width:36px!important;max-width:36px!important;margin:0!important;}
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form>.dialog-heading>#delete-member{grid-column:3!important;grid-row:2!important;width:76px!important;min-width:0!important;margin:0!important;}
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form>.dialog-heading :is(button,select){height:36px!important;min-height:36px!important;padding:4px!important;font-size:14px!important;}
}
@layer support-window {
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form [data-fit-section-heading]{display:none!important;}
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form .member-actions{width:auto!important;min-width:0!important;flex:0 0 auto!important;}
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form .dialog-footer{gap:4px!important;}
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form .dialog-footer button{min-height:36px!important;height:36px!important;}
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form #save-help{font-size:13px!important;line-height:16px!important;flex:1 0 100%!important;}
}

@layer uniform-controls { @media(max-height:300px){
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form .dialog-footer button{height:36px!important;min-height:36px!important;max-height:36px!important;}
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form .field-full-value{font-size:14px!important;line-height:18px!important;padding:2px 0!important;}
:root.nocturn-theme body dialog#member-dialog.audit-fit[data-fit-compact] #member-form :is(input,select):not([type=checkbox]):not([type=hidden]){height:36px!important;min-height:36px!important;padding:4px 6px!important;}
}}

@layer uniform-controls {
:root.nocturn-theme body .cash-short-dialog .cash-short-context{display:grid!important;grid-template-columns:minmax(90px,0.8fr) minmax(0,1.2fr)!important;gap:6px!important;align-items:center!important;margin:2px 0!important;}
:root.nocturn-theme body .cash-short-dialog .cash-short-context input{min-width:0!important;width:100%!important;font-size:14px!important;}
:root.nocturn-theme body .cash-short-dialog .cash-short-context p{margin:0!important;white-space:pre-line!important;font-size:14px!important;line-height:18px!important;}
@media(max-height:300px){
:root.nocturn-theme body[data-registry-role=treasurer]>.cash-short-dialog :is(header button,nav button,.cash-short-content button,.cash-short-context input){height:36px!important;min-height:36px!important;padding:3px 4px!important;}
:root.nocturn-theme body[data-registry-role=treasurer]>.cash-short-dialog header{min-height:36px!important;}
}}

@layer uniform-controls {
@media(max-width:600px),(max-height:500px){
:root.nocturn-theme body #password-confirmation>form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px 8px!important;padding:8px!important;overflow:visible!important;}
:root.nocturn-theme body #password-confirmation>form>:is(h2,p,label,button){margin:0!important;min-width:0!important;}
:root.nocturn-theme body #password-confirmation h2{grid-area:1/1/2/3!important;font-size:20px!important;line-height:24px!important;}
:root.nocturn-theme body #password-confirmation .confirmation-intro{grid-area:2/1/3/3!important;font-size:14px!important;line-height:18px!important;}
:root.nocturn-theme body #password-confirmation .field{grid-area:3/1/4/3!important;font-size:14px!important;line-height:18px!important;gap:2px!important;}
:root.nocturn-theme body #password-confirmation input{min-height:36px!important;height:36px!important;font-size:16px!important;}
:root.nocturn-theme body #password-confirmation [role=alert]{grid-area:5/1/6/3!important;font-size:14px!important;line-height:18px!important;}
:root.nocturn-theme body #password-confirmation button{width:100%!important;min-width:0!important;min-height:36px!important;height:36px!important;font-size:14px!important;line-height:18px!important;padding:3px 5px!important;}
:root.nocturn-theme body #password-confirmation [data-confirmation-action=visibility]{grid-area:4/1/5/2!important;}
:root.nocturn-theme body #password-confirmation [data-confirmation-action=passkey]{grid-area:4/2/5/3!important;}
:root.nocturn-theme body #password-confirmation [data-confirmation-action=confirm]{grid-area:6/1/7/2!important;}
:root.nocturn-theme body #password-confirmation [data-confirmation-action=cancel]{grid-area:6/2/7/3!important;}
}}

@layer uniform-controls {
:root.nocturn-theme body.figma-ai-layout #account-workspace-dialog .as-action{background:#f5f4f1!important;color:#162746!important;box-shadow:none!important;}
:root.nocturn-theme body.figma-ai-layout #account-workspace-dialog .as-action:hover:not(:disabled){background:#e8e0c9!important;}
:root.nocturn-theme body.figma-ai-layout #account-workspace-dialog .as-action:active:not(:disabled){background:#dccb9d!important;}
:root.nocturn-theme body.figma-ai-layout #account-workspace-dialog .as-action:focus-visible{outline:3px solid #315d96!important;outline-offset:2px!important;}
:root.nocturn-theme body.figma-ai-layout #account-workspace-dialog .as-action:disabled{opacity:.5!important;cursor:not-allowed!important;}

}
@layer dialog-edge-controls {
/* Match the desktop controls while keeping the existing button box sizes. */
:root.nocturn-theme body.figma-ai-layout[data-registry-role=master] #account-workspace-dialog {
  & button:is(.as-action,.as-secondary,.as-question):not(.as-original-rack *),
  & > .dialog-heading > .icon-button {
    border-color:#c6a84c!important;
    box-shadow:inset 0 0 0 2px #c6a84c,inset 0 0 0 3px #f1d98b!important;
    background:var(--uniform-action,#192b4e)!important;
    color:#fff!important;
    &:hover:not(:disabled,[aria-disabled=true]) {background:#263759!important;}
    &:active:not(:disabled,[aria-disabled=true]) {background:#0b1530!important;}
  }
  & button:is(.as-action,.as-secondary):not(.as-original-rack *) {font-weight:600!important;}
}
}
@layer mobile-navigation {
@media(max-width:1023px){
:root.nocturn-theme body.master-home-design[data-registry-role=master] #ai-navigation.ai-navigation-dialog[open]{display:flex!important;flex-direction:column!important;gap:6px!important;overflow:visible!important;max-height:calc(100dvh - 16px)!important;}
:root.nocturn-theme body.master-home-design[data-registry-role=master] #ai-navigation.ai-navigation-dialog>nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;overflow:visible!important;width:100%!important;}
:root.nocturn-theme body.master-home-design[data-registry-role=master] #ai-navigation.ai-navigation-dialog>nav>:is(button,a){width:100%!important;min-width:0!important;max-width:none!important;white-space:normal!important;}
}
@media(max-width:1023px) and (max-height:320px){
:root.nocturn-theme body.master-home-design[data-registry-role=master] #ai-navigation.ai-navigation-dialog{padding:8px!important;}
:root.nocturn-theme body.master-home-design[data-registry-role=master] #ai-navigation.ai-navigation-dialog :is(nav>button,nav>a,.icon-button){height:auto!important;min-height:36px!important;line-height:18px!important;font-size:14px!important;padding:3px 6px!important;}
}}

@layer treasurer-desktop {
@media(max-height:320px){
:root.nocturn-theme body[data-registry-role=treasurer]>dialog.cash-short-dialog>nav{height:auto!important;min-height:40px!important;flex-shrink:0!important;overflow:visible!important;padding:2px!important;box-sizing:border-box!important;}
:root.nocturn-theme body[data-registry-role=treasurer]>dialog.cash-short-dialog :is(nav button,header button){height:36px!important;min-height:36px!important;padding:3px 5px!important;}
}}
@layer phone-interface {
@media(max-width:1023px){:root.nocturn-theme body.master-home-design[data-registry-role=master] #ai-navigation.ai-navigation-dialog[open]{display:flex!important;flex-direction:column!important;}}
}

@layer uniform-controls {
@media(max-width:600px),(max-height:500px){
:root.nocturn-theme body #password-confirmation{width:min(440px,calc(100vw - 16px))!important;max-height:calc(100dvh - 8px)!important;overflow:visible!important;}
:root.nocturn-theme body #password-confirmation>form{padding:6px!important;gap:2px 8px!important;}
:root.nocturn-theme body dialog.account-password-compact{max-height:calc(100dvh - 16px)!important;overflow:visible!important;}
:root.nocturn-theme body dialog.account-password-compact>.compact-body{display:block!important;padding:6px 10px!important;overflow:visible!important;min-height:0!important;}
:root.nocturn-theme body dialog.account-password-compact .account-password-sections{margin:4px 10px!important;width:calc(100% - 20px)!important;min-height:36px!important;height:36px!important;font-size:14px!important;}
:root.nocturn-theme body dialog.account-password-compact #password-settings:not([hidden]),:root.nocturn-theme body dialog.account-password-compact #account-password-form:not([hidden]){display:contents!important;}
:root.nocturn-theme body dialog.account-password-compact [data-account-password-hidden]{display:none!important;}
:root.nocturn-theme body dialog.account-password-compact :is(label,p,summary){margin:0 0 4px!important;font-size:14px!important;line-height:18px!important;}
:root.nocturn-theme body dialog.account-password-compact #account-password-form :is(input,button){min-height:36px!important;height:36px!important;margin:2px 0!important;}
:root.nocturn-theme body dialog.account-password-compact[data-password-duplicate-error]>.dialog-heading .nocturn-progress-slot{display:none!important;}
}
}

@layer treasurer-desktop {
:root.nocturn-theme body[data-registry-role=treasurer]>dialog.cash-short-dialog>header{display:grid!important;grid-template-columns:minmax(0,1fr) 104px 36px!important;gap:4px!important;align-items:center!important;}
:root.nocturn-theme body[data-registry-role=treasurer]>dialog.cash-short-dialog>header h2{font-size:18px!important;line-height:22px!important;}
:root.nocturn-theme body[data-registry-role=treasurer]>dialog.cash-short-dialog>header [data-cash-year]{width:104px!important;min-width:0!important;min-height:36px!important;height:36px!important;font-size:14px!important;padding:3px 4px!important;}
:root.nocturn-theme body[data-registry-role=treasurer]>dialog.cash-short-dialog>.cash-short-context{display:block!important;}
:root.nocturn-theme body[data-registry-role=treasurer]>dialog.cash-short-dialog>.cash-short-context p{font-size:14px!important;line-height:18px!important;white-space:pre-line!important;margin:2px 0!important;}
}

@layer uniform-controls {
@media(max-height:500px){
:root.nocturn-theme body.figma-ai-layout #meeting-time-dialog[open]{display:grid!important;grid-template-columns:minmax(0,1fr) 36px!important;gap:4px 8px!important;padding:8px!important;overflow:visible!important;max-height:calc(100dvh - 16px)!important;}
:root.nocturn-theme body.figma-ai-layout #meeting-time-dialog>h2{font-size:18px!important;line-height:22px!important;margin:0!important;}
:root.nocturn-theme body.figma-ai-layout #meeting-time-dialog>:is(p,label){font-size:14px!important;line-height:18px!important;margin:0!important;}
:root.nocturn-theme body.figma-ai-layout #meeting-time-dialog :is(input,button){min-height:36px!important;height:36px!important;padding:3px 6px!important;margin:0!important;}
:root.nocturn-theme body.figma-ai-layout #meeting-time-dialog #meeting-time-close{width:36px!important;min-width:36px!important;height:36px!important;}
}}

@layer uniform-controls {@media(max-height:500px){
:root.nocturn-theme body #authorized-devices-dialog[open]{box-sizing:border-box!important;width:calc(100vw - 16px)!important;max-width:640px!important;max-height:calc(100dvh - 16px)!important;height:auto!important;min-height:0!important;margin:auto!important;padding:0!important;display:flex!important;flex-direction:column!important;gap:4px!important;overflow:visible!important;}
:root.nocturn-theme body #authorized-devices-dialog .devices-heading{min-height:0!important;padding:4px 8px!important;gap:4px!important;}
:root.nocturn-theme body #authorized-devices-dialog .devices-heading h2{font-size:18px!important;line-height:22px!important;margin:0!important;}
:root.nocturn-theme body #authorized-devices-dialog .devices-heading p{font-size:14px!important;line-height:18px!important;margin:0!important;}
:root.nocturn-theme body #authorized-devices-dialog .devices-roles{display:flex!important;gap:4px!important;margin:0!important;padding:0 8px!important;flex-shrink:0!important;}
:root.nocturn-theme body #authorized-devices-dialog .devices-roles button{min-width:0!important;width:auto!important;flex:1 1 0!important;}
:root.nocturn-theme body #authorized-devices-dialog button{height:auto!important;min-height:36px!important;margin:0!important;padding:4px!important;font-size:14px!important;line-height:18px!important;}
:root.nocturn-theme body #authorized-devices-dialog .devices-heading button{width:36px!important;min-width:36px!important;height:36px!important;}
:root.nocturn-theme body #authorized-devices-dialog #authorized-devices{min-height:0!important;padding:4px 8px!important;flex:1 1 auto!important;}
:root.nocturn-theme body #authorized-devices-dialog .devices-empty{margin:0!important;padding:0!important;font-size:14px!important;line-height:18px!important;}
:root.nocturn-theme body #authorized-devices-dialog .devices-pager{padding:2px 0!important;font-size:14px!important;}
:root.nocturn-theme body #authorized-devices-dialog .devices-footer{display:flex!important;gap:6px!important;margin:0!important;padding:4px 8px!important;flex-shrink:0!important;}
:root.nocturn-theme body #authorized-devices-dialog .devices-footer span{font-size:14px!important;line-height:18px!important;}
:root.nocturn-theme body #authorized-devices-dialog .devices-message{padding:0 8px!important;margin:0!important;font-size:14px!important;line-height:18px!important;}
}}

@layer uniform-controls {
  :root.nocturn-theme[data-presentation="desktop"]
  body:is([data-registry-role="treasurer"], [data-registry-role="secretary"]) #authorized-devices-dialog[open] {
    width: min(700px, calc(100vw - 16px)) !important;

    & > #authorized-devices { min-height: 0 !important; }

    & :is(.devices-link, .devices-close, .devices-retry, .devices-back, .devices-revoke) {
      box-sizing: border-box;
      min-height: 44px !important;
      padding: 4px 12px !important;
      border: 3px solid #c6a84c !important;
      border-radius: 5px !important;
      background: var(--uniform-action, #192b4e) !important;
      color: #fff !important;
      box-shadow: inset 0 0 0 1px #f1d98b !important;
      font: 600 14px/1.2 var(--treasury-interface-font, "Segoe UI", Arial, sans-serif) !important;
      text-decoration: none !important;
    }

    & :is(.authorized-device-row > .devices-link, .devices-close) {
      width: 96px !important;
      height: 44px !important;
    }

    & .devices-close { margin-inline-start: auto !important; }

    & .devices-confirm > .devices-detail-actions {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      width: min(100%, 284px);
      margin-inline-start: auto !important;

      & > button {
        width: 100% !important;
        white-space: normal !important;
      }
    }

    @media (max-height: 500px) {
      & .authorized-device-row { padding-block: 4px !important; }
      & .devices-pager { margin-top: 4px !important; }
      & .devices-pager > div { gap: 4px !important; }
      & .devices-detail-heading { margin: 0 0 4px !important; }

      & .devices-details {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) !important;
        gap: 2px 8px !important;
        line-height: 1.25 !important;
      }

      & .devices-details dd { margin: 0 !important; text-align: right !important; }
      & .devices-detail-actions { margin-top: 4px !important; gap: 4px !important; }
      & .devices-confirm { padding-top: 0 !important; }
      & .devices-confirm p { margin-block: 4px !important; }
    }

    @media (max-height: 380px) {
      /* The header closes the dialog. The confirmation contains the revocation warning. */
      & > .devices-footer { display: none !important; }
    }

    @media (max-height: 320px) {
      & > #authorized-devices { padding-block: 2px !important; }
      & .devices-detail-heading { margin-bottom: 2px !important; }
      & .devices-detail-heading > .devices-link { min-height: 36px !important; }
      & .devices-details { row-gap: 1px !important; line-height: 1.2 !important; }
      & .devices-detail-actions { margin-top: 2px !important; }
    }

    @media (max-width: 300px) and (max-height: 380px) {
      & .devices-heading h2 { text-wrap: balance; }
      & .authorized-device-row { gap: 2px 6px !important; }
      & .authorized-device-row > .devices-link { grid-row: 1 !important; width: 74px !important; }
      & .authorized-device-row .devices-sync { grid-column: 1 / -1 !important; }
      & .authorized-device-row .devices-sync > span { display: inline !important; }
      & .authorized-device-row .devices-sync > span + span::before { content: " · "; }
      & .devices-pager { margin-top: 2px !important; }
      & .devices-pager button { min-height: 36px !important; }
      & .devices-detail-heading > .devices-link { min-height: 36px !important; padding-inline: 6px !important; }
      & .devices-detail-actions button { padding-inline: 6px !important; }
    }
  }
}

@layer mobile-navigation {}

@layer dialog-edge-controls {
:root.nocturn-theme body dialog.simplified-long-form:has(#finance-takeover-form,#finance-temple-plan-form)>.dialog-heading{display:grid!important;grid-template-columns:36px minmax(0,1fr) 36px!important;align-items:center!important;gap:4px!important;min-height:44px!important;padding:4px 8px!important;}
:root.nocturn-theme body dialog.simplified-long-form:has(#finance-takeover-form,#finance-temple-plan-form)>.dialog-heading>h2{grid-column:2!important;grid-row:1!important;min-width:0!important;width:auto!important;max-width:100%!important;}
:root.nocturn-theme body dialog.simplified-long-form:has(#finance-takeover-form,#finance-temple-plan-form)>.dialog-heading:not(:has(>.section-help-button))>h2{grid-column:1/span 2!important;}
}

@layer uniform-controls {
:root.nocturn-theme body #password-confirmation [data-confirmation-hidden],:root.nocturn-theme body #password-confirmation [data-confirmation-action=message][hidden]{display:none!important;}
:root.nocturn-theme body #password-confirmation[data-confirmation-view=message] [role=alert]{grid-area:2/1/3/3!important;}
:root.nocturn-theme body #password-confirmation[data-confirmation-view=message] [data-confirmation-action=message]{grid-area:3/1/4/2!important;height:auto!important;}
:root.nocturn-theme body #password-confirmation[data-confirmation-view=message] [data-confirmation-action=cancel]{grid-area:3/2/4/3!important;height:auto!important;}
:root.nocturn-theme body #password-confirmation[data-confirmation-view=password] [data-confirmation-action=message]{grid-area:2/1/3/3!important;}
:root.nocturn-theme body dialog.member-finance-simple[data-finance-sections][data-fit-compact] .member-finance-balances{gap:4px!important;margin:0!important;}
:root.nocturn-theme body dialog.member-finance-simple[data-finance-sections][data-fit-compact] .member-finance-balances>section{padding:0!important;margin:0!important;}
:root.nocturn-theme body dialog.member-finance-simple[data-finance-sections][data-fit-compact] .member-finance-amount{font-size:22px!important;line-height:26px!important;margin:0!important;}
:root.nocturn-theme body dialog.member-finance-simple[data-finance-sections][data-fit-compact] :is(.member-finance-label,.member-finance-balances .small-muted){font-size:14px!important;line-height:18px!important;margin:0!important;}
:root.nocturn-theme body dialog.member-finance-simple[data-finance-sections][data-fit-compact] .audit-fit-pages button{height:36px!important;min-height:36px!important;}
}
@layer dialog-edge-controls {
:root.nocturn-theme body dialog.audit-fit.member-finance-simple[data-finance-sections][data-fit-compact]>.dialog-heading{min-height:40px!important;padding:2px 8px!important;}
:root.nocturn-theme body dialog.audit-fit.member-finance-simple[data-finance-sections][data-fit-compact]>.dialog-heading h2{font-size:18px!important;line-height:22px!important;}
:root.nocturn-theme body dialog.audit-fit.member-finance-simple[data-finance-sections][data-fit-compact]>.dialog-heading button{height:36px!important;min-height:36px!important;width:36px!important;min-width:36px!important;padding:2px!important;}
}

@layer uniform-controls{:root.nocturn-theme body dialog.member-finance-simple[data-finance-sections][data-fit-compact] .member-finance-balances{display:contents!important;}}

@layer uniform-controls {
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .calendar-saved[hidden]{display:none!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .meeting-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:4px!important;height:auto!important;min-height:0!important;flex:none!important;margin:0!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) #meeting-calendar-status{width:100%!important;margin:0!important;padding:0!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) #meeting-calendar-save{justify-self:end!important;}
@media(max-height:320px){
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .calendar-review{gap:2px!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .calendar-draft-list{max-height:36px!important;min-height:36px!important;}
:root.nocturn-theme body dialog.simplified-calendar:has(#meeting-month-grid) .meeting-calendar-panel{padding:4px 8px!important;gap:4px!important;}
}
}

@layer mobile-navigation{@media(max-width:1023px){:root.nocturn-theme body.master-home-design[data-registry-role=master] #ai-navigation.ai-navigation-dialog>nav{grid-template-rows:none!important;grid-auto-rows:max-content!important;}}}

@layer uniform-controls{:root.nocturn-theme body dialog.simplified-calendar .calendar-saved #meeting-saved-program{max-height:calc(100dvh - 116px)!important;overflow:auto!important;margin:0!important;}}
