:root{
  --bg:#0f1115;
  --panel:#171b22;
  --panel-2:#1e2430;
  --text:#e8ecf3;
  --muted:#9ca8bd;
  --border:#313b4d;
  --gold:#d4a843;
  --color-rep:#4fc3f7;
  --color-rep-surface:rgba(79,195,247,.12);
  --color-rep-border:rgba(79,195,247,.55);
  --color-rep-border-subtle:rgba(79,195,247,.22);
  --color-programs:#4fc3f7;
  --color-programs-surface:rgba(79,195,247,.12);
  --color-programs-border:rgba(79,195,247,.55);
  --color-programs-border-subtle:rgba(79,195,247,.22);
  --color-programbuilder:#4fc3f7;
  --color-programbuilder-surface:rgba(79,195,247,.12);
  --color-programbuilder-border:rgba(79,195,247,.55);
  --color-programbuilder-border-subtle:rgba(79,195,247,.22);
  --color-programbuilder-fee:#4fc3f7;
  --color-programbuilder-fee-surface:rgba(79,195,247,.12);
  --color-programbuilder-fee-border:rgba(79,195,247,.55);
  --color-programbuilder-fee-border-subtle:rgba(79,195,247,.22);
  --color-discovery:#4fc3f7;
  --color-discovery-surface:rgba(79,195,247,.12);
  --color-discovery-border:rgba(79,195,247,.55);
  --color-discovery-border-subtle:rgba(79,195,247,.22);
  --color-media:#4fc3f7;
  --color-media-surface:rgba(79,195,247,.12);
  --color-media-border:rgba(79,195,247,.55);
  --color-media-border-subtle:rgba(79,195,247,.22);
  --color-pastperfs:#4fc3f7;
  --color-pastperfs-surface:rgba(79,195,247,.12);
  --color-pastperfs-border:rgba(79,195,247,.55);
  --color-pastperfs-border-subtle:rgba(79,195,247,.22);
  --color-cases:#ec407a;
  --color-cases-surface:rgba(236,64,122,.12);
  --color-cases-border:rgba(236,64,122,.55);
  --color-cases-border-subtle:rgba(236,64,122,.22);
  --color-outreach:#ec407a;
  --color-outreach-surface:rgba(236,64,122,.12);
  --color-outreach-border:rgba(236,64,122,.55);
  --color-outreach-border-subtle:rgba(236,64,122,.22);
  --color-contacts:#c2185b;
  --color-contacts-surface:rgba(194,24,91,.12);
  --color-contacts-border:rgba(194,24,91,.55);
  --color-contacts-border-subtle:rgba(194,24,91,.22);
  --color-calendar:#ec407a;
  --color-calendar-surface:rgba(236,64,122,.12);
  --color-calendar-border:rgba(236,64,122,.55);
  --color-calendar-border-subtle:rgba(236,64,122,.22);
  --color-income:#ec407a;
  --color-income-surface:rgba(236,64,122,.12);
  --color-income-border:rgba(236,64,122,.55);
  --color-income-border-subtle:rgba(236,64,122,.22);
  --color-bio:#d4a843;
  --color-bio-surface:rgba(212,168,67,.12);
  --color-bio-border:rgba(212,168,67,.55);
  --color-bio-border-subtle:rgba(212,168,67,.22);
  --color-home:#d4a843;
  --color-home-surface:rgba(212,168,67,.12);
  --color-home-border:rgba(212,168,67,.55);
  --color-home-border-subtle:rgba(212,168,67,.22);
  --color-press:#d4a843;
  --color-press-surface:rgba(212,168,67,.12);
  --color-press-border:rgba(212,168,67,.55);
  --color-press-border-subtle:rgba(212,168,67,.22);
  --color-contact:#d4a843;
  --color-contact-surface:rgba(212,168,67,.12);
  --color-contact-border:rgba(212,168,67,.55);
  --color-contact-border-subtle:rgba(212,168,67,.22);
  --color-ui:#90a4ae;
  --color-ui-surface:rgba(144,164,174,.12);
  --color-ui-border:rgba(144,164,174,.55);
  --color-ui-border-subtle:rgba(144,164,174,.22);
  --color-translation:#90a4ae;
  --color-translation-surface:rgba(144,164,174,.12);
  --color-translation-border:rgba(144,164,174,.55);
  --color-translation-border-subtle:rgba(144,164,174,.22);
  --color-sitehealth:#90a4ae;
  --color-sitehealth-surface:rgba(144,164,174,.12);
  --color-sitehealth-border:rgba(144,164,174,.55);
  --color-sitehealth-border-subtle:rgba(144,164,174,.22);
  --color-publishing:#90a4ae;
  --color-publishing-surface:rgba(144,164,174,.12);
  --color-publishing-border:rgba(144,164,174,.55);
  --color-publishing-border-subtle:rgba(144,164,174,.22);
  --color-tools:#90a4ae;
  --color-tools-surface:rgba(144,164,174,.12);
  --color-tools-border:rgba(144,164,174,.55);
  --color-tools-border-subtle:rgba(144,164,174,.22);
}
*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text)}
.app{display:flex;min-height:100vh}
.auth-gate{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}
.auth-card{width:min(560px,100%);background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:20px}
.auth-card h1{margin:0 0 10px}
.sidebar{width:260px;background:var(--panel);border-right:1px solid var(--border);padding:14px;position:sticky;top:0;height:100vh;overflow:auto}
.brand{font-weight:700;letter-spacing:.03em;margin-bottom:12px}
.nav{display:flex;flex-direction:column;gap:6px}
.nav-group{display:flex;flex-direction:column;gap:6px}
.nav-group-items{display:flex;flex-direction:column;gap:6px}
.nav-group-label{margin:8px 4px 2px;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.nav-group-label--spaced{margin-top:14px}
.nav-item{background:transparent;border:1px solid var(--border);color:var(--text);padding:10px 12px;text-align:left;border-radius:10px;cursor:pointer}
.nav-item.active{border-color:var(--gold);color:var(--gold);background:rgba(212,168,67,.08)}
.nav-item[data-section="rep"]{background:var(--color-rep-surface);border-color:transparent}
.nav-item[data-section="rep"].active{background:linear-gradient(180deg,var(--color-rep-surface) 0%,rgba(79,195,247,.08) 100%);border-color:var(--color-rep);color:var(--color-rep);box-shadow:0 0 0 1px rgba(79,195,247,.15)}
.nav-item[data-section="programs"]{background:var(--color-programs-surface);border-color:transparent}
.nav-item[data-section="programs"].active{background:linear-gradient(180deg,var(--color-programs-surface) 0%,rgba(79,195,247,.08) 100%);border-color:var(--color-programs);color:var(--color-programs);box-shadow:0 0 0 1px rgba(79,195,247,.15)}
.nav-item[data-section="programbuilder"]{background:var(--color-programbuilder-surface);border-color:transparent}
.nav-item[data-section="programbuilder"].active{background:linear-gradient(180deg,var(--color-programbuilder-surface) 0%,rgba(79,195,247,.08) 100%);border-color:var(--color-programbuilder);color:var(--color-programbuilder);box-shadow:0 0 0 1px rgba(79,195,247,.15)}
.nav-item[data-section="fee-estimate"]{background:var(--color-income-surface);border-color:transparent}
.nav-item[data-section="fee-estimate"].active{background:linear-gradient(180deg,var(--color-income-surface) 0%,rgba(236,64,122,.08) 100%);border-color:var(--color-income);color:var(--color-income);box-shadow:0 0 0 1px rgba(236,64,122,.15)}
.nav-item[data-section="discovery"]{background:var(--color-discovery-surface);border-color:transparent}
.nav-item[data-section="discovery"].active{background:linear-gradient(180deg,var(--color-discovery-surface) 0%,rgba(79,195,247,.08) 100%);border-color:var(--color-discovery);color:var(--color-discovery);box-shadow:0 0 0 1px rgba(79,195,247,.15)}
.nav-item[data-section="media"]{background:var(--color-media-surface);border-color:transparent}
.nav-item[data-section="media"].active{background:linear-gradient(180deg,var(--color-media-surface) 0%,rgba(79,195,247,.08) 100%);border-color:var(--color-media);color:var(--color-media);box-shadow:0 0 0 1px rgba(79,195,247,.15)}
.nav-item[data-section="pastperfs"]{background:var(--color-pastperfs-surface);border-color:transparent}
.nav-item[data-section="pastperfs"].active{background:linear-gradient(180deg,var(--color-pastperfs-surface) 0%,rgba(79,195,247,.08) 100%);border-color:var(--color-pastperfs);color:var(--color-pastperfs);box-shadow:0 0 0 1px rgba(79,195,247,.15)}
.nav-item[data-section="cases"]{background:var(--color-cases-surface);border-color:transparent}
.nav-item[data-section="cases"].active{background:linear-gradient(180deg,var(--color-cases-surface) 0%,rgba(236,64,122,.08) 100%);border-color:var(--color-cases);color:var(--color-cases);box-shadow:0 0 0 1px rgba(236,64,122,.15)}
.nav-item[data-section="outreach"]{background:var(--color-outreach-surface);border-color:transparent}
.nav-item[data-section="outreach"].active{background:linear-gradient(180deg,var(--color-outreach-surface) 0%,rgba(236,64,122,.08) 100%);border-color:var(--color-outreach);color:var(--color-outreach);box-shadow:0 0 0 1px rgba(236,64,122,.15)}
.nav-item[data-section="contacts"]{background:var(--color-contacts-surface);border-color:transparent}
.nav-item[data-section="contacts"].active{background:linear-gradient(180deg,var(--color-contacts-surface) 0%,rgba(194,24,91,.08) 100%);border-color:var(--color-contacts);color:var(--color-contacts);box-shadow:0 0 0 1px rgba(194,24,91,.15)}
.nav-item[data-section="calendar"]{background:var(--color-calendar-surface);border-color:transparent}
.nav-item[data-section="calendar"].active{background:linear-gradient(180deg,var(--color-calendar-surface) 0%,rgba(236,64,122,.08) 100%);border-color:var(--color-calendar);color:var(--color-calendar);box-shadow:0 0 0 1px rgba(236,64,122,.15)}
.nav-item[data-section="income"]{background:var(--color-income-surface);border-color:transparent}
.nav-item[data-section="income"].active{background:linear-gradient(180deg,var(--color-income-surface) 0%,rgba(236,64,122,.08) 100%);border-color:var(--color-income);color:var(--color-income);box-shadow:0 0 0 1px rgba(236,64,122,.15)}
.nav-item[data-section="expenses"]{background:var(--color-income-surface);border-color:transparent}
.nav-item[data-section="expenses"].active{background:linear-gradient(180deg,var(--color-income-surface) 0%,rgba(236,64,122,.08) 100%);border-color:var(--color-income);color:var(--color-income);box-shadow:0 0 0 1px rgba(236,64,122,.15)}
.nav-item[data-section="bio"]{background:var(--color-bio-surface);border-color:transparent}
.nav-item[data-section="bio"].active{background:linear-gradient(180deg,var(--color-bio-surface) 0%,rgba(212,168,67,.08) 100%);border-color:var(--color-bio);color:var(--color-bio);box-shadow:0 0 0 1px rgba(212,168,67,.15)}
.nav-item[data-section="home"]{background:var(--color-home-surface);border-color:transparent}
.nav-item[data-section="home"].active{background:linear-gradient(180deg,var(--color-home-surface) 0%,rgba(212,168,67,.08) 100%);border-color:var(--color-home);color:var(--color-home);box-shadow:0 0 0 1px rgba(212,168,67,.15)}
.nav-item[data-section="press"]{background:var(--color-press-surface);border-color:transparent}
.nav-item[data-section="press"].active{background:linear-gradient(180deg,var(--color-press-surface) 0%,rgba(212,168,67,.08) 100%);border-color:var(--color-press);color:var(--color-press);box-shadow:0 0 0 1px rgba(212,168,67,.15)}
.nav-item[data-section="contact"]{background:var(--color-contact-surface);border-color:transparent}
.nav-item[data-section="contact"].active{background:linear-gradient(180deg,var(--color-contact-surface) 0%,rgba(212,168,67,.08) 100%);border-color:var(--color-contact);color:var(--color-contact);box-shadow:0 0 0 1px rgba(212,168,67,.15)}
.nav-item[data-section="ui"]{background:var(--color-ui-surface);border-color:transparent}
.nav-item[data-section="ui"].active{background:linear-gradient(180deg,var(--color-ui-surface) 0%,rgba(144,164,174,.08) 100%);border-color:var(--color-ui);color:var(--color-ui);box-shadow:0 0 0 1px rgba(144,164,174,.15)}
.nav-item[data-section="publishing"]{background:var(--color-publishing-surface);border-color:transparent}
.nav-item[data-section="publishing"].active{background:linear-gradient(180deg,var(--color-publishing-surface) 0%,rgba(144,164,174,.08) 100%);border-color:var(--color-publishing);color:var(--color-publishing);box-shadow:0 0 0 1px rgba(144,164,174,.15)}
.nav-item[data-section="translation"]{background:var(--color-translation-surface);border-color:transparent}
.nav-item[data-section="translation"].active{background:linear-gradient(180deg,var(--color-translation-surface) 0%,rgba(144,164,174,.08) 100%);border-color:var(--color-translation);color:var(--color-translation);box-shadow:0 0 0 1px rgba(144,164,174,.15)}
.nav-item[data-section="sitehealth"]{background:var(--color-sitehealth-surface);border-color:transparent}
.nav-item[data-section="sitehealth"].active{background:linear-gradient(180deg,var(--color-sitehealth-surface) 0%,rgba(144,164,174,.08) 100%);border-color:var(--color-sitehealth);color:var(--color-sitehealth);box-shadow:0 0 0 1px rgba(144,164,174,.15)}
.nav-item[data-section="tools"]{background:var(--color-tools-surface);border-color:transparent}
.nav-item[data-section="tools"].active{background:linear-gradient(180deg,var(--color-tools-surface) 0%,rgba(144,164,174,.08) 100%);border-color:var(--color-tools);color:var(--color-tools);box-shadow:0 0 0 1px rgba(144,164,174,.15)}
.nav-more{display:block;margin-top:6px}
.nav-more[hidden]{display:none!important}
.nav-more__summary{display:block;list-style:none;cursor:pointer;padding:10px 12px;border:1px solid var(--border);border-radius:10px;color:var(--muted);font-size:.82rem;background:#11151d}
.nav-more__summary::-webkit-details-marker{display:none}
.nav-more__summary::after{content:'+';float:right;color:#c9d2e4}
.nav-more[open] .nav-more__summary::after{content:'−'}
.nav-more__items{display:flex;flex-direction:column;gap:6px}
.nav-mobile-config{display:none}
.nav-mobile-config__items{display:grid;gap:6px;padding:0 8px 8px}
.nav-mobile-config__item{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.78rem}
.nav-mobile-config__item input{width:auto;margin:0;accent-color:var(--gold)}
.nav-order-controls{display:flex;flex-direction:column;gap:4px}
.nav-order-item{display:flex;align-items:center;gap:8px;padding:6px 8px;background:rgba(15,17,21,.4);border-radius:2px;border:1px solid var(--border)}
.nav-order-item label{flex:1;color:var(--text);font-size:.85rem}
.nav-order-item button{padding:4px 8px;font-size:.75rem;min-width:24px}
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--border);position:sticky;top:0;background:rgba(15,17,21,.95);backdrop-filter:blur(8px);z-index:10;flex-wrap:wrap}
.ctx{display:flex;align-items:center;gap:8px;font-size:.9rem;color:var(--muted)}
.ctx select{min-width:84px}
#langBadge{font-weight:700;letter-spacing:.06em}
.actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;flex:1 1 580px;min-width:280px}
.actions-primary,.actions-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.actions-primary .pill{white-space:nowrap}
.toggle-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid var(--border);border-radius:999px;background:var(--panel-2);color:var(--muted);font-size:.78rem;cursor:pointer;user-select:none;min-height:38px}
.toggle-chip input{width:auto;margin:0;accent-color:var(--gold)}
.toggle-chip:hover{border-color:#4c5d7d;background:#253044}
.pb-paper-preview-toggle{margin-left:auto}
.actions label{font-size:.78rem;color:var(--muted);display:flex;flex-direction:column;gap:4px}
.actions label select{min-width:150px;padding:6px 8px;font-size:.78rem}
.actions-more{margin:0;padding:0;border:0}
.actions-more summary{display:none}
.activity-summary{flex-basis:100%;width:100%;margin:4px 0 0;padding:8px 0 0;border-top:1px solid var(--border);font-size:.78rem;line-height:1.45;white-space:pre-wrap;max-height:7.5em;overflow:auto}
.activity-summary:empty{display:none;margin:0;padding:0;border-top:0}
.draft-restore-banner{
  margin:0 14px 12px;
  border:1px solid rgba(212,168,67,.28);
  border-radius:12px;
  background:linear-gradient(180deg,rgba(212,168,67,.08),rgba(212,168,67,.03));
  padding:12px 14px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.draft-restore-banner[hidden]{display:none!important}
.draft-restore-banner__copy{display:grid;gap:4px;min-width:min(100%,340px);flex:1 1 340px}
.draft-restore-banner__title{margin:0;font-size:.86rem;line-height:1.35;color:var(--text);font-weight:700}
.draft-restore-banner__meta{margin:0;font-size:.78rem;line-height:1.5;color:var(--muted)}
.draft-restore-banner__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:0 1 auto}
.draft-restore-banner__actions button{padding:7px 10px;font-size:.78rem}
.draft-restore-banner__actions .muted-link{border:0;background:transparent;color:var(--muted);padding:0;cursor:pointer}
.draft-restore-banner__actions .muted-link:hover{color:var(--text)}
.tools-subheading{margin:14px 0 6px;font-size:.88rem;color:var(--gold)}
.focus-mode .sidebar{display:none}
.focus-mode .main{width:100%}
.focus-mode .content{padding-top:8px}
.health-list{display:grid;gap:8px}
.health-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--border);border-radius:8px;padding:8px;background:#0f141c}
.health-row .label{font-size:.84rem}
.health-matrix{width:100%;border-collapse:collapse;font-size:.78rem}
.health-matrix th,.health-matrix td{border:1px solid var(--border);padding:6px 8px;text-align:center}
.health-matrix th{text-align:left;color:var(--muted);font-weight:600}
.health-issues{display:grid;gap:8px}
.health-issue{border:1px solid var(--border);border-radius:8px;padding:8px;background:#0f141c;display:flex;align-items:center;justify-content:space-between;gap:8px}
.health-issue.info{border-color:#3c6f94}
.health-issue .text{font-size:.84rem}
.health-issue .actions{display:flex;gap:6px;flex-wrap:wrap}
.health-dot{font-size:10px;margin-right:6px}
.health-dot.info{color:#9ed7ff}
button,.import-label{border:1px solid var(--border);background:var(--panel-2);color:var(--text);padding:8px 12px;border-radius:8px;cursor:pointer;font-size:.82rem;transition:background .2s,border-color .2s,transform .05s}
button:hover,.import-label:hover{border-color:#4c5d7d;background:#253044}
button:active{transform:translateY(1px)}
button.danger{border-color:#7a3b49;color:#ffb8c3;background:#2d1a20}
button.danger:hover{background:#3a2128;border-color:#9e4b5e}
.import-label input{display:none}
.pill{font-size:.75rem;border:1px solid var(--border);padding:4px 8px;border-radius:999px;color:var(--muted)}
.pill.ok{color:#94e8b1;border-color:#3a7f53;background:rgba(64,142,91,.12)}
.pill.warn{color:#ffd38a;border-color:#86683a;background:rgba(168,122,43,.14)}
.pill.err{color:#ffb3bf;border-color:#9a3f50;background:rgba(160,50,76,.16)}
.pill.info{color:#9ed7ff;border-color:#3c6f94;background:rgba(56,110,156,.14)}
.content{padding:14px}
.section{display:none;background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:14px}
.section.active{display:block}
.hidden{display:none!important}
#section-rep.active{border-color:var(--color-rep-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-rep-surface) 100%)}
#section-programs.active{border-color:var(--color-programs-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-programs-surface) 100%)}
#section-programbuilder.active{border-color:var(--color-programbuilder-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-programbuilder-surface) 100%)}
#section-discovery.active{border-color:var(--color-discovery-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-discovery-surface) 100%)}
#section-cases.active{border-color:var(--color-cases-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-cases-surface) 100%)}
#section-outreach.active{border-color:var(--color-outreach-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-outreach-surface) 100%)}
#section-contacts.active{border-color:var(--color-contacts-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-contacts-surface) 100%)}
#section-calendar.active{border-color:var(--color-calendar-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-calendar-surface) 100%)}
#section-income.active{border-color:var(--color-income-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-income-surface) 100%)}
#section-fee-estimate.active{border-color:var(--color-income-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-income-surface) 100%)}
#section-media.active{border-color:var(--color-media-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-media-surface) 100%)}
#section-media.active #mediaVideosPanel,#section-media.active #mediaPhotosPanel,#section-media.active #mediaAudioPanel{border:1px solid var(--color-media-border);border-radius:12px;background:linear-gradient(180deg,var(--color-media-surface) 0%,rgba(79,195,247,.04) 100%);padding:14px}
#section-pastperfs.active{border-color:var(--color-pastperfs-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-pastperfs-surface) 100%)}
#section-bio.active{border-color:var(--color-bio-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-bio-surface) 100%)}
#section-home.active{border-color:var(--color-home-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-home-surface) 100%)}
#section-press.active{border-color:var(--color-press-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-press-surface) 100%)}
#section-contact.active{border-color:var(--color-contact-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-contact-surface) 100%)}
#section-ui.active{border-color:var(--color-ui-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-ui-surface) 100%)}
#section-publishing.active{border-color:var(--color-publishing-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-publishing-surface) 100%)}
#section-translation.active{border-color:var(--color-translation-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-translation-surface) 100%)}
#section-sitehealth.active{border-color:var(--color-sitehealth-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-sitehealth-surface) 100%)}
#section-tools.active{border-color:var(--color-tools-border);border-width:1.5px;background:linear-gradient(180deg,var(--panel) 0%,var(--color-tools-surface) 100%)}
h2{margin:0 0 14px}
h3{margin:0;font-size:.95rem;color:var(--text)}
.admin-section-heading{margin:16px 0 8px;font-size:.86rem;letter-spacing:.01em;color:var(--gold);font-weight:600}
.grid{display:grid;gap:10px;margin-bottom:12px}
.grid.two{grid-template-columns:1fr 1fr}
.grid.one{grid-template-columns:1fr}
label{display:flex;flex-direction:column;gap:6px;font-size:.82rem;color:var(--muted)}
input,textarea,select{width:100%;background:#11151d;border:1px solid var(--border);color:var(--text);padding:10px;border-radius:8px;font-size:.9rem}
.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.toolbar button.active{border-color:var(--gold);color:var(--gold);background:rgba(212,168,67,.08)}
#section-media.active .toolbar button.active{border-color:var(--color-media);color:var(--color-media);background:var(--color-media-surface)}
.split{display:grid;grid-template-columns:300px 1fr;gap:12px}
.item-list{border:1px solid var(--border);border-radius:10px;background:#11151d;max-height:420px;overflow:auto}
.item{padding:10px;border-bottom:1px solid var(--border);cursor:pointer}
.item:last-child{border-bottom:0}
.item.active{background:rgba(212,168,67,.08);color:var(--gold)}
#section-rep.active .item.active{background:linear-gradient(90deg,var(--color-rep-surface) 0%,rgba(79,195,247,.04) 100%);color:var(--color-rep);border-left:3px solid var(--color-rep)}
#section-programs.active .item.active{background:linear-gradient(90deg,var(--color-programs-surface) 0%,rgba(79,195,247,.04) 100%);color:var(--color-programs);border-left:3px solid var(--color-programs)}
.item.dragging{opacity:.45}
.item.drop-before{box-shadow:inset 0 2px 0 rgba(212,168,67,.75)}
.item.drop-after{box-shadow:inset 0 -2px 0 rgba(212,168,67,.75)}
.item-row{display:flex;align-items:flex-start;gap:8px}
.item-row input[type="checkbox"]{width:auto;margin-top:2px}
.item-main{min-width:0;flex:1}
.item-thumb{width:54px;height:54px;border-radius:8px;overflow:hidden;border:1px solid var(--border);background:#0e131a;flex-shrink:0}
.item-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.item-handle{font-size:.9rem;color:var(--muted);cursor:grab;user-select:none;line-height:1;padding-top:2px}
.item-handle:active{cursor:grabbing}
.item-badges{display:inline-flex;gap:6px;margin-left:6px;vertical-align:middle}
.item-badge{font-size:.68rem;padding:2px 6px;border-radius:999px;border:1px solid var(--border);color:var(--muted)}
.item-badge.ok{color:#9ee0b1;border-color:#2e7d47;background:rgba(46,125,71,.16)}
.item-badge.warn{color:#ffd38a;border-color:#86683a;background:rgba(168,122,43,.14)}
.item-badge.err{color:#ffb3bf;border-color:#9a3f50;background:rgba(160,50,76,.16)}
.empty-state{padding:12px;color:var(--muted);font-size:.85rem}
.editor{display:grid;grid-template-columns:1fr;gap:8px}
.mini-preview{border:1px solid var(--border);border-radius:10px;background:#11151d;padding:10px;margin-top:6px}
.mini-preview h4{margin:0 0 8px;font-size:.82rem;color:var(--gold)}
.mini-preview__eyebrow{margin:0 0 4px;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#b7c3d8}
.mini-preview__subtitle{margin:0 0 8px;font-size:.9rem;color:var(--text)}
.mini-preview__title{margin:0 0 6px;font-size:.95rem;color:var(--text)}
.mini-preview__body{margin:0 0 6px;font-size:.82rem;color:var(--muted)}
.mini-preview__quote{margin:0 0 6px;font-size:.84rem;color:#d9e3f5;font-style:italic}
.mini-preview__meta{margin:0;font-size:.75rem;color:#b7c3d8}
.mini-preview__actions{display:flex;gap:6px;flex-wrap:wrap}
.mini-preview__actions span,.mini-preview__links span{display:inline-block;border:1px solid var(--border);background:var(--panel-2);padding:4px 8px;border-radius:999px;font-size:.74rem;color:var(--text)}
.mini-preview__links{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.cases-placeholder-card{gap:12px}
.cases-followup-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.cases-followup-actions button{min-height:40px;padding:8px 12px}
.cases-workspace{grid-template-columns:minmax(0,1fr);gap:16px}
.cases-list-panel,.cases-editor-panel{border:1px solid rgba(255,255,255,.07);border-radius:14px;background:rgba(10,14,20,.32);padding:14px}
.cases-panel-head{display:grid;gap:4px;margin-bottom:12px}
.cases-panel-head h3{margin:0}
.cases-panel-head .muted{margin:0;font-size:.8rem;line-height:1.45}
.cases-list-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 12px}
.cases-list-summary__tile{display:grid;gap:4px;padding:10px 12px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.02);text-align:left;min-height:72px}
.cases-list-summary__tile span{font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.cases-list-summary__tile strong{font-size:1rem;line-height:1.1;color:var(--text)}
.cases-list-summary__tile small{font-size:.74rem;line-height:1.35;color:var(--muted)}
.cases-list-summary__tile.is-active{border-color:rgba(236,64,122,.44);background:linear-gradient(180deg,rgba(236,64,122,.16),rgba(236,64,122,.06));box-shadow:0 0 0 1px rgba(236,64,122,.14)}
.cases-list-summary__tile.is-active span,.cases-list-summary__tile.is-active small{color:#f2cad7}
.cases-list-summary__tile.is-active strong{color:#fff0f5}
.cases-list-summary__tile--overdue{border-color:rgba(255,100,130,.24);background:rgba(255,100,130,.08)}
.cases-list-summary__tile--today{border-color:rgba(255,179,91,.24);background:rgba(255,179,91,.08)}
.cases-list-summary__tile--soon{border-color:rgba(130,182,255,.18);background:rgba(130,182,255,.07)}
.cases-list-summary__tile--waiting{border-color:rgba(255,179,91,.2);background:rgba(255,179,91,.06)}
.cases-list-summary__tile--confirmed{border-color:rgba(163,230,194,.18);background:rgba(163,230,194,.07)}
.cases-list-active-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px;padding:8px 10px;border:1px solid rgba(236,64,122,.18);border-radius:12px;background:rgba(236,64,122,.07);font-size:.8rem;color:#f2cad7}
.cases-list-active-filter strong{color:#fff0f5}
.cases-list-active-filter button{padding:5px 10px;min-height:30px;font-size:.76rem}
.cases-list-panel .item-list{max-height:none;background:transparent;border:0;border-radius:0;overflow:visible}
.cases-editor-panel{position:relative}
.cases-editor-panel::before{content:'';position:absolute;inset:0;border-radius:inherit;border:1px dashed rgba(255,255,255,.05);pointer-events:none}
.cases-editor-panel:not(.is-active){opacity:.82;background:rgba(255,255,255,.018);border-color:rgba(255,255,255,.05);transform:scale(.995);transform-origin:top center}
.cases-editor-panel:not(.is-active) .cases-panel-head h3{color:#cfd7e4}
.cases-editor-panel:not(.is-active) .cases-panel-head .muted{color:#8995ab}
.cases-editor-panel.is-active{border-color:rgba(236,64,122,.24);background:linear-gradient(180deg,rgba(236,64,122,.08),rgba(255,255,255,.015))}
.cases-quick-followup{display:none}
.cases-optional-links{margin-top:4px}
.cases-optional-links summary{cursor:pointer;color:var(--gold);font-size:.86rem;font-weight:600;list-style:none}
.cases-optional-links summary::-webkit-details-marker{display:none}
.cases-danger-actions{border:1px solid rgba(255,100,130,.2);border-radius:12px;background:rgba(255,100,130,.06);padding:8px 10px}
.cases-danger-actions summary{cursor:pointer;color:#ffb8c3;font-size:.82rem;font-weight:600;list-style:none}
.cases-danger-actions summary::-webkit-details-marker{display:none}
.cases-danger-actions button{margin-top:8px;width:100%}
.cases-card{gap:8px}
.cases-card--high-priority{border-color:rgba(255,120,82,.36);box-shadow:0 0 0 1px rgba(255,120,82,.08)}
.cases-card .item-card__meta strong{color:#f3d690;font-weight:600}
.item-card__note--action{margin-top:2px;color:var(--text);font-weight:600}
.cases-card__signals{margin-left:0;margin-top:-2px;display:flex;flex-wrap:wrap}
.cases-row{width:100%;text-align:left;display:grid;gap:12px;padding:14px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:#0f141c}
.cases-row + .cases-row{margin-top:10px}
.cases-row__status,.cases-row__main,.cases-row__due{min-width:0}
.cases-row__head{display:flex;align-items:flex-start;gap:10px;justify-content:space-between}
.cases-row__title-wrap{min-width:0;display:grid;gap:6px}
.cases-row__title{display:block;font-size:.95rem;line-height:1.35;color:var(--text)}
.cases-row__priority{align-self:flex-start;opacity:.66;font-size:.68rem;letter-spacing:.02em}
.cases-row__priority.cases-priority--high,.cases-row__priority.cases-priority--medium,.cases-row__priority.cases-priority--low{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.07);color:#c4ccd9}
.cases-row__meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
.cases-row__meta{display:grid;gap:2px;min-width:0}
.cases-row__meta-label{font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.cases-row__meta-value{font-size:.81rem;line-height:1.45;color:#cfd7e4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cases-row__action{margin:2px 0 0;font-size:.86rem;line-height:1.45}
.cases-row__support{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.cases-row__signals{font-size:.72rem;line-height:1.4;color:var(--muted)}
.cases-soft-signal{display:inline-flex;align-items:center;padding:2px 8px;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(255,255,255,.03);color:var(--muted)}
.cases-row__due{display:grid;gap:6px}
.cases-row__date{font-size:.76rem;line-height:1.4;color:var(--muted)}
.cases-row__urgency{justify-self:start}
.cases-status--open{color:#cfe5ff;border-color:rgba(130,182,255,.34);background:rgba(130,182,255,.12)}
.cases-status--waiting{color:#ffe1a8;border-color:rgba(255,179,91,.4);background:rgba(255,179,91,.14)}
.cases-status--confirmed{color:#bfe9ce;border-color:rgba(163,230,194,.3);background:rgba(163,230,194,.12)}
.cases-status--closed{color:#c0c7d3;border-color:rgba(110,118,132,.3);background:rgba(110,118,132,.14)}
.cases-priority--high{color:#ffd7b8;border-color:#b85a34;background:rgba(184,90,52,.2)}
.cases-priority--medium{color:#ffe6ad;border-color:#92703a;background:rgba(168,122,43,.16)}
.cases-priority--low{color:#d8e2f3;border-color:rgba(130,182,255,.28);background:rgba(130,182,255,.1)}
.cases-followup--missing{color:#ffd38a;border-color:rgba(212,168,67,.42);background:rgba(212,168,67,.18)}
.cases-followup--today{color:#fff1c9;border-color:rgba(255,179,91,.56);background:rgba(255,179,91,.24)}
.cases-followup--soon{color:#d9ebff;border-color:rgba(130,182,255,.4);background:rgba(130,182,255,.14)}
.cases-followup--overdue{color:#ffd4dc;border-color:rgba(255,100,130,.54);background:rgba(255,100,130,.22)}
.cases-followup--calm{color:#bfe9ce;border-color:rgba(163,230,194,.3);background:rgba(163,230,194,.12)}
.calendar-editor .editor-section{border:1px solid var(--border);border-radius:10px;background:#11151d;padding:10px;margin-bottom:10px}
#section-calendar.active .calendar-editor .editor-section{border-color:var(--color-calendar-border);background:linear-gradient(180deg,var(--color-calendar-surface) 0%,rgba(102,187,106,.04) 100%)}
.calendar-editor-current{align-items:center;background:rgba(17,21,29,.92);border:1px solid var(--border);border-radius:14px;display:flex;gap:10px;justify-content:space-between;margin-bottom:14px;padding:10px 12px;position:sticky;top:10px;z-index:3}
#perf-current-editing{color:var(--ink);font-weight:700;min-width:0}
.editor-section h3{margin:0 0 10px;font-size:.86rem;letter-spacing:.01em;color:var(--gold)}
.calendar-event-workspace{align-items:start}
.calendar-event-list-panel{border:1px solid var(--border);border-radius:10px;background:#11151d;padding:10px}
#section-calendar.active .calendar-event-list-panel{border-color:var(--color-calendar-border-subtle);background:linear-gradient(180deg,rgba(236,64,122,.07),rgba(255,255,255,.015))}
.calendar-list-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.calendar-list-head h3{margin:0;font-size:.86rem;color:var(--gold)}
.calendar-list-head .muted{margin:4px 0 0;font-size:.78rem;line-height:1.35}
.calendar-list-head .button-primary{flex:0 0 auto}
.calendar-revenue-block{display:grid;gap:8px;padding:10px 12px;margin:8px 0 10px;border:1px solid rgba(212,168,67,.24);border-radius:12px;background:linear-gradient(180deg,rgba(212,168,67,.07),rgba(255,255,255,.015))}
.calendar-revenue-block__title{margin:0;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gold)}
.calendar-revenue-block__hint{margin:0;font-size:.78rem;line-height:1.45;color:var(--muted)}
.calendar-payment-block{display:grid;gap:8px;padding-top:8px;border-top:1px solid rgba(212,168,67,.16)}
.calendar-payment-block__title{margin:0;font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;color:#e7c77e}
.calendar-payment-block__hint{margin:0;font-size:.76rem;line-height:1.45;color:var(--muted)}
.calendar-doorlist-toolbar{align-items:center}
.calendar-doorlist-summary{display:flex;align-items:center;justify-content:space-between;gap:10px}
.calendar-doorlist-summary::after{content:'+';color:#c9d2e4;font-size:1rem;line-height:1}
.calendar-doorlist-panel[open] > .calendar-doorlist-summary::after{content:'−'}
.calendar-doorlist-summary .pill{margin-left:auto;font-size:.72rem;color:#d9e2f0}
.calendar-doorlist-future{display:flex;gap:8px;flex-wrap:wrap;align-items:baseline;margin:0 0 12px;padding:10px 12px;border:1px dashed rgba(212,168,67,.28);border-radius:10px;background:rgba(212,168,67,.06);font-size:.78rem;line-height:1.45;color:var(--muted)}
.calendar-doorlist-future strong{color:#e7c77e}
.calendar-doorlist-group{display:grid;gap:8px;margin-top:12px}
.calendar-doorlist-group__head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.calendar-doorlist-group__head h4{margin:0;color:var(--text);font-size:.86rem}
.calendar-doorlist-group__head button{flex:0 0 auto}
.calendar-doorlist-table{overflow:auto;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(8,11,16,.38)}
.calendar-doorlist-table table{width:100%;min-width:1260px;border-collapse:collapse;font-size:.78rem}
.calendar-doorlist-table th,.calendar-doorlist-table td{border-bottom:1px solid rgba(255,255,255,.07);padding:6px;vertical-align:top}
.calendar-doorlist-table th{position:sticky;top:0;z-index:1;background:#151b25;color:#cfd7e4;font-weight:600;text-align:left;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase}
.calendar-doorlist-table td:first-child,.calendar-doorlist-table th:first-child{text-align:center;width:64px}
.calendar-doorlist-table input,.calendar-doorlist-table select{padding:7px 8px;border-radius:7px;font-size:.78rem}
.calendar-doorlist-table input[type="checkbox"]{width:18px;height:18px;margin:6px auto 0;accent-color:var(--gold)}
.calendar-doorlist-table button{padding:6px 8px;font-size:.74rem;white-space:nowrap}
.calendar-revenue-quick{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.calendar-revenue-quick__btn{padding:6px 10px;min-height:32px;border-radius:999px;font-size:.74rem;line-height:1.2}
.calendar-editor-divider{border:0;border-top:1px solid rgba(255,255,255,.08);margin:14px 0}
.calendar-expenses-summary{display:flex;align-items:center;justify-content:space-between;gap:10px}
.calendar-expenses-summary::after{content:'+';color:#c9d2e4;font-size:1rem;line-height:1}
.calendar-expenses-panel[open] > .calendar-expenses-summary::after{content:'\2212'}
.calendar-expenses-summary .pill{margin-left:auto;font-size:.72rem;color:#d9e2f0}
.calendar-expenses-toolbar{align-items:center;margin:10px 0 0}
.calendar-expenses-rows{display:grid;gap:8px;margin-top:10px}
.calendar-expense-row{display:grid;grid-template-columns:120px 140px 1fr 80px 100px 120px 1fr 40px;gap:8px;align-items:center;padding:8px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(8,11,16,.38)}
.calendar-expense-row input,.calendar-expense-row select{padding:7px 8px;border-radius:7px;font-size:.78rem;background:#0d1118;color:var(--text);border:1px solid var(--border)}
.calendar-expense-row .calendar-expense-note{grid-column:1 / -2}
.calendar-expense-row button{padding:6px 8px;font-size:.74rem;white-space:nowrap}
@media (max-width:1200px){.calendar-expense-row{grid-template-columns:1fr 1fr}.calendar-expense-row .calendar-expense-note{grid-column:1 / -1}}
.calendar-tools-panel,.calendar-page-settings{margin-top:12px;border-color:rgba(255,255,255,.09);background:rgba(255,255,255,.025)}
.calendar-tools-panel[open],.calendar-page-settings[open]{background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015))}
.calendar-tools-toolbar{margin:10px 0 0}
.pb-flow-strip{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 14px}
.pb-flow-strip__button{padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);color:var(--text);font-size:.78rem}
.pb-flow-strip__button--secondary{color:var(--muted);border-style:dashed;background:rgba(255,255,255,.015)}
.pb-zone-card{padding:14px 14px 16px}
#section-programbuilder.active .pb-zone-card{border-color:var(--color-programbuilder-border);background:linear-gradient(180deg,var(--color-programbuilder-surface) 0%,rgba(66,165,245,.04) 100%)}
.pb-mobile-action-bar{display:none}
.pb-mobile-shell > summary{list-style:none;cursor:pointer}
.pb-mobile-shell > summary::-webkit-details-marker{display:none}
.pb-mobile-section-summary{position:relative;display:block;padding:0}
.pb-mobile-section-summary::after{content:'−';position:absolute;right:0;top:0;color:#c9d2e4;font-size:1.12rem;line-height:1}
.pb-mobile-shell:not([open]) > .pb-mobile-section-summary::after{content:'+'}
.pb-mobile-section-summary .pb-step-heading,
.pb-mobile-section-summary .pb-selected-head{padding-right:20px}
.pb-mobile-section-body{display:grid;gap:12px}
.pb-mobile-shell[open] > .pb-mobile-section-summary{margin-bottom:12px}
.pb-split{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr)}
.pb-main-column{display:grid;gap:0;align-content:start}
.pb-secondary-stack{margin-top:12px}
.pb-secondary-hub{margin-top:14px;border-style:dashed;background:rgba(255,255,255,.015)}
.pb-secondary-hub summary{cursor:pointer;color:#c4ccd9;font-size:.88rem;font-weight:600;list-style:none}
.pb-secondary-hub summary::-webkit-details-marker{display:none}
.pb-secondary-hub summary::after{content:'+';float:right;color:#c9d2e4}
.pb-secondary-hub[open] summary::after{content:'−'}
.pb-inner-split{grid-template-columns:minmax(220px,300px) minmax(0,1fr);align-items:start}
.pb-offer-layout{align-items:start}
.pb-main-column,.pb-preview-column{display:grid;gap:14px}
.pb-main-step{display:grid;gap:14px}
.pb-step-heading{display:grid;gap:4px}
.pb-step-kicker{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.pb-step-heading h3{margin:0;font-size:1.04rem;color:var(--text)}
.pb-step-heading p{margin:0;max-width:62ch}
.pb-steps-grid{margin-bottom:4px}
.pb-setup-summary{padding:10px 12px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.02);font-size:.82rem;line-height:1.5;color:#d9e2f0}
.pb-build-summary{display:flex;flex-wrap:wrap;gap:8px}
.pb-build-summary .pill{align-self:flex-start}
.pb-duration-board{display:grid;gap:10px;padding:12px 14px;border:1px solid rgba(255,255,255,.06);border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.015))}
.pb-duration-board.ok{border-color:rgba(94,189,126,.3)}
.pb-duration-board.warn{border-color:rgba(212,168,67,.34)}
.pb-duration-board.err{border-color:rgba(191,86,105,.38)}
.pb-duration-board__top,.pb-duration-board__meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.pb-duration-board__stat{display:grid;gap:4px;min-width:180px}
.pb-duration-board__label{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.pb-duration-board__stat strong{font-size:1rem;line-height:1.25;color:var(--text)}
.pb-duration-board__meta{font-size:.8rem;line-height:1.5;color:var(--muted)}
.pb-duration-meter{height:10px;border-radius:999px;background:#0d1118;border:1px solid rgba(255,255,255,.06);overflow:hidden}
.pb-duration-meter__fill{display:block;height:100%;width:0;background:linear-gradient(90deg,rgba(148,232,177,.65),rgba(148,232,177,.95));transition:width .18s ease}
.pb-duration-meter__fill.warn{background:linear-gradient(90deg,rgba(212,168,67,.6),rgba(255,211,138,.95))}
.pb-duration-meter__fill.err{background:linear-gradient(90deg,rgba(170,72,95,.7),rgba(255,179,191,.95))}
.pb-save-strip{margin-top:2px;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.pb-save-state-wrap{display:flex;align-items:flex-start;gap:12px;min-width:min(100%,380px);flex:1 1 320px}
.pb-save-state-wrap .pill{flex:0 0 auto}
.pb-save-state-copy{display:grid;gap:3px;min-width:0}
.pb-save-state-copy strong{font-size:.9rem;line-height:1.2;color:var(--text);font-weight:600}
.pb-save-state-copy span{font-size:.8rem;line-height:1.55;color:var(--muted)}
.pb-save-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:1 1 320px;flex-wrap:wrap}
.pb-save-as-menu{position:relative}
.pb-save-as-menu summary{list-style:none;cursor:pointer;padding:8px 12px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.02);color:var(--text);font-size:.85rem;line-height:1.2}
.pb-save-as-menu summary::-webkit-details-marker{display:none}
.pb-save-as-menu summary::after{content:' ▾';color:var(--muted)}
.pb-save-as-menu[open] summary{background:rgba(255,255,255,.04)}
.pb-save-as-menu__panel{position:absolute;right:0;top:calc(100% + 8px);min-width:240px;padding:10px;border:1px solid var(--border);border-radius:12px;background:#141a24;box-shadow:0 12px 30px rgba(0,0,0,.28);display:grid;gap:8px;z-index:5}
.pb-save-as-menu__panel button{width:100%;text-align:left}
.pb-helper-copy{margin:6px 0 10px;font-size:.82rem;line-height:1.55;max-width:70ch}
.pb-smart-draft-note{margin:-4px 0 0;max-width:70ch;line-height:1.55}
.pb-export-hint{min-height:1.2em;margin:-2px 0 10px}
.pb-export-hint.ok{color:#94e8b1}
.pb-export-hint.warn{color:#ffd38a}
.pb-export-hint.err{color:#ffb3bf}
.pb-compact-toggle{margin:10px 0 0}
.pb-compact-toggle summary{cursor:pointer;list-style:none;color:var(--muted);font-size:.82rem;font-weight:600;padding:4px 0}
.pb-compact-toggle summary::-webkit-details-marker{display:none}
.pb-compact-toggle summary::after{content:'+';float:right;color:#c9d2e4}
.pb-compact-toggle[open] summary::after{content:'−'}
.pb-compact-toggle > .toolbar,
.pb-compact-toggle > .editor{margin-top:10px}
.pb-gala-setup{display:grid;gap:10px;margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.06)}
.pb-gala-setup .muted{margin:0}
.pb-secondary-toggle summary{cursor:pointer;color:var(--gold);font-size:.86rem;font-weight:600;list-style:none}
.pb-secondary-toggle summary::-webkit-details-marker{display:none}
.pb-secondary-toggle summary::after{content:'+';float:right;color:#c9d2e4}
.pb-secondary-toggle[open] summary::after{content:'−'}
#section-discovery .toolbar label{min-width:min(220px,100%)}
.discovery-layout{grid-template-columns:minmax(320px,.92fr) minmax(320px,1.08fr);align-items:start}
.discovery-top-recommendations{display:grid;gap:10px}
.discovery-top-recommendations__empty{font-size:.82rem;color:var(--muted);line-height:1.55}
.discovery-top-card{width:100%;text-align:left;display:grid;gap:6px;padding:12px;border:1px solid rgba(212,168,67,.22);border-radius:12px;background:linear-gradient(180deg,rgba(212,168,67,.08),rgba(255,255,255,.02))}
.discovery-top-card strong{font-size:.92rem;line-height:1.35}
.discovery-top-card__meta,.discovery-top-card__source{font-size:.78rem;color:var(--muted)}
.discovery-top-card__fit{margin:0;font-size:.82rem;line-height:1.55;color:var(--text)}
.discovery-results{display:grid;gap:10px}
.discovery-load-more{margin-top:12px;justify-content:center}
.discovery-card{width:100%;text-align:left;display:grid;gap:6px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#0f141c}
.discovery-card.active{border-color:var(--gold);background:rgba(212,168,67,.08)}
#section-discovery.active .discovery-card.active{border-color:var(--color-discovery-border);background:linear-gradient(180deg,var(--color-discovery-surface) 0%,rgba(255,152,0,.04) 100%)}
.discovery-card strong{font-size:.92rem;line-height:1.35}
.discovery-card__meta,.discovery-card__source{font-size:.78rem;color:var(--muted)}
.discovery-card__fit{margin:0;font-size:.82rem;line-height:1.55;color:var(--text)}
.discovery-detail{display:grid;gap:12px}
.discovery-detail__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.discovery-detail__head h4{margin:0 0 4px;font-size:1rem;color:var(--text)}
.discovery-detail__head p{margin:0}
.discovery-detail__block{display:grid;gap:6px;padding:10px 12px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.02)}
.discovery-detail__block strong{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--gold)}
.discovery-detail__block p{margin:0;line-height:1.55}
#section-outreach .toolbar label{min-width:min(220px,100%)}
.outreach-quick-filters{gap:6px}
.outreach-quick-filters button{padding:6px 10px;min-height:30px;border-radius:999px;font-size:.75rem;line-height:1.2}
.outreach-quick-filters button{display:inline-flex;align-items:center;justify-content:space-between;gap:8px}
.outreach-quick-filters button strong{font-size:.78rem;line-height:1;color:var(--text)}
.outreach-quick-filters button.active{border-color:rgba(212,168,67,.44);background:rgba(212,168,67,.14);color:#f4d98f}
.outreach-layout{grid-template-columns:minmax(320px,.9fr) minmax(340px,1.1fr);align-items:start}
.outreach-list{display:grid;gap:12px}
.outreach-summary-tile{display:grid;gap:6px;min-width:140px;padding:12px 14px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.02)}
.outreach-summary-tile span{font-size:.76rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.outreach-summary-tile strong{font-size:1.18rem;line-height:1.1;color:var(--text)}
.outreach-summary-tile small{font-size:.78rem;line-height:1.45;color:var(--muted)}
.outreach-summary-tile--warn{border-color:rgba(255,204,128,.2);background:rgba(255,204,128,.08)}
.outreach-summary-tile--ok{border-color:rgba(163,230,194,.2);background:rgba(163,230,194,.08)}
.outreach-summary-tile--gold{border-color:rgba(212,168,67,.24);background:rgba(212,168,67,.08)}
.outreach-summary-tile--info{border-color:rgba(130,182,255,.18);background:rgba(130,182,255,.07)}
.outreach-card{width:100%;text-align:left;display:grid;gap:10px;padding:14px;border:1px solid var(--border);border-radius:14px;background:#0f141c}
.outreach-card.active{border-color:var(--gold);background:rgba(212,168,67,.08);box-shadow:0 0 0 1px rgba(212,168,67,.06)}
#section-outreach.active .outreach-card.active{border-color:var(--color-outreach-border);background:linear-gradient(180deg,var(--color-outreach-surface) 0%,rgba(236,64,122,.04) 100%);box-shadow:0 0 0 1px rgba(236,64,122,.2)}
.item-card.active{border-color:var(--gold);background:rgba(212,168,67,.08);box-shadow:0 0 0 1px rgba(212,168,67,.06)}
#section-cases.active .item-card.active{border-color:var(--color-cases-border);background:linear-gradient(180deg,var(--color-cases-surface) 0%,rgba(236,64,122,.04) 100%);box-shadow:0 0 0 1px rgba(236,64,122,.2)}
#section-contacts.active .item-card.active{border-color:var(--color-contacts-border);background:linear-gradient(180deg,var(--color-contacts-surface) 0%,rgba(194,24,91,.04) 100%);box-shadow:0 0 0 1px rgba(194,24,91,.2)}
.outreach-card__active-flag{display:none}
.outreach-card__head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.outreach-card__identity{min-width:0;display:grid;gap:4px}
.outreach-card__head strong{font-size:.94rem;line-height:1.35;color:var(--text)}
.outreach-card__meta{font-size:.79rem;line-height:1.5;color:var(--muted)}
.outreach-card__decision{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.outreach-card__urgency{border-color:transparent}
.outreach-card__urgency.outreach-urgency--overdue{background:rgba(255,100,130,.2);color:#ffc7d1;border-color:rgba(255,100,130,.5)}
.outreach-card__urgency.outreach-urgency--today{background:rgba(255,179,91,.22);color:#ffe0b3;border-color:rgba(255,179,91,.5)}
.outreach-card__urgency.outreach-urgency--soon{background:rgba(110,118,132,.12);color:#d4d9e2;border-color:rgba(110,118,132,.36)}
.outreach-card__urgency.outreach-urgency--missing{background:rgba(212,168,67,.18);color:#ffd38a;border-color:rgba(212,168,67,.4)}
.outreach-card__urgency.outreach-urgency--calm{background:rgba(163,230,194,.12);color:#bfe9ce;border-color:rgba(163,230,194,.3)}
.outreach-card__recent{font-size:.76rem;line-height:1.45;color:var(--muted)}
.outreach-card__actions{display:flex;flex-wrap:wrap;gap:6px}
.outreach-card__action{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(255,255,255,.03);font-size:.72rem;line-height:1.2;color:var(--text);cursor:pointer}
.outreach-card__action:hover{border-color:rgba(212,168,67,.38);background:rgba(212,168,67,.1);color:#f4d98f}
.outreach-card__signals{display:flex;flex-wrap:wrap;gap:6px}
.outreach-signal{font-size:.7rem;line-height:1.2;padding:3px 8px}
.outreach-signal--ok{border-color:rgba(163,230,194,.3);background:rgba(163,230,194,.1);color:#bfe9ce}
.outreach-signal--warn{border-color:rgba(255,179,91,.35);background:rgba(255,179,91,.12);color:#ffe0b3}
.outreach-signal--calm{border-color:rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#c0c7d3}
.outreach-card__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.outreach-card__label{display:block;margin-bottom:3px;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.outreach-card__value{font-size:.82rem;line-height:1.5;color:var(--text)}
.outreach-card__value a,
.outreach-card__value span,
.outreach-card__value{
  overflow-wrap:anywhere;
  word-break:break-word;
}
.outreach-card__footer{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}
.outreach-card__planned{margin:0;font-size:.8rem;line-height:1.5;color:var(--text)}
.outreach-card__planned span{display:block;margin-bottom:2px;font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.outreach-card__note{margin:0;font-size:.82rem;line-height:1.55;color:var(--text)}
.outreach-status-pill{border-color:transparent}
.outreach-status-pill.outreach-status--idea{background:rgba(170,178,192,.16);color:#d6dbe4}
.outreach-status-pill.outreach-status--to-contact{background:rgba(130,182,255,.18);color:#c7ddff}
.outreach-status-pill.outreach-status--sent{background:rgba(120,208,255,.14);color:#bfe8ff}
.outreach-status-pill.outreach-status--replied{background:rgba(170,200,255,.16);color:#d7e5ff}
.outreach-status-pill.outreach-status--negotiating{background:rgba(212,168,67,.18);color:#f4d98f}
.outreach-status-pill.outreach-status--confirmed{background:rgba(163,230,194,.18);color:#d4ffea}
.outreach-status-pill.outreach-status--declined{background:rgba(255,158,174,.16);color:#ffc7d1}
.outreach-status-pill.outreach-status--archived{background:rgba(110,118,132,.16);color:#c0c7d3}
.outreach-followup-pill{border-color:transparent}
.outreach-editor{display:grid;gap:12px}
.outreach-editor__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.outreach-editor__head h4{margin:0;font-size:1rem;color:var(--text)}
.outreach-editor__head p{margin:4px 0 0}
.outreach-editor__block{display:grid;gap:8px;padding:12px 14px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.02)}
@media (max-width: 768px){
  .outreach-editor__block{padding:10px 12px}
  .outreach-editor__block label{margin-bottom:2px}
  .outreach-editor__block label input,.outreach-editor__block label select,.outreach-editor__block label textarea{min-height:44px;font-size:16px}
}
.outreach-editor__block strong{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--gold)}
.outreach-editor__block--message{border-color:rgba(212,168,67,.24);background:linear-gradient(180deg,rgba(212,168,67,.08),rgba(212,168,67,.025))}
.outreach-message-label{display:grid;gap:6px}
.outreach-message-label textarea#outreach-message-sent{min-height:128px;border-color:rgba(212,168,67,.32);background:rgba(13,18,28,.82)}
.outreach-message-label textarea#outreach-message-sent:focus{border-color:rgba(212,168,67,.56);box-shadow:0 0 0 2px rgba(212,168,67,.12)}
.outreach-editor__actions{display:flex;flex-wrap:wrap;gap:8px}
.outreach-editor__footer{margin-top:2px}
.outreach-history-entry-grid{margin-top:2px}
.outreach-history{display:grid;gap:10px}
.outreach-history__item{display:grid;grid-template-columns:110px 1fr;gap:10px;padding:10px 0;border-top:1px solid rgba(255,255,255,.06)}
.outreach-history__item:first-child{border-top:0;padding-top:0}
.outreach-history__date{font-size:.76rem;line-height:1.5;color:var(--muted)}
.outreach-history__body{display:grid;gap:6px;min-width:0}
.outreach-history__head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.outreach-history__body p{margin:0;font-size:.82rem;line-height:1.55;color:var(--text)}
.outreach-history__badge--info{color:#9ed7ff;border-color:#3c6f94;background:rgba(56,110,156,.14)}
.outreach-history__badge--gold{color:#f4d98f;border-color:#86683a;background:rgba(168,122,43,.14)}
.outreach-history__badge--ok{color:#94e8b1;border-color:#3a7f53;background:rgba(64,142,91,.12)}
.outreach-history__badge--err{color:#ffb3bf;border-color:#9a3f50;background:rgba(160,50,76,.16)}
.outreach-history__badge--calm{color:#c0c7d3;border-color:rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
.outreach-offer-panel{padding:8px 10px}
.outreach-offer-panel h3{margin-bottom:6px}
.outreach-offer-panel .muted{margin-top:4px;font-size:.78rem;line-height:1.45}
#outreach-offer-summary.pb-build-summary{gap:6px}
#outreach-offer-summary .pill{font-size:.7rem;padding:3px 8px;letter-spacing:.02em}
#outreach-offer-summary .pill.info{opacity:.92}
.outreach-offer-links{display:grid;gap:6px;max-height:200px;overflow:auto;padding-right:2px}
.outreach-offer-link{display:grid;gap:2px;padding:7px 9px;border:1px solid rgba(255,255,255,.05);border-radius:8px;background:#11161f}
.outreach-offer-link input{margin-right:8px}
.outreach-offer-link__meta{font-size:.73rem;line-height:1.35;color:var(--muted)}
.outreach-followup--due{color:#ffcc80}
.outreach-followup--overdue{color:#ff9eae}
.outreach-followup--calm{color:var(--muted)}
.outreach-followup--missing{background:rgba(212,168,67,.18);color:#ffd38a;border-color:rgba(212,168,67,.4)}
.outreach-followup--today{background:rgba(255,179,91,.22);color:#ffe0b3;border-color:rgba(255,179,91,.5)}
.outreach-followup--upcoming{background:rgba(110,118,132,.12);color:#c0c7d3;border-color:rgba(110,118,132,.3)}
.outreach-followup--overdue{background:rgba(255,100,130,.2);color:#ffc7d1;border-color:rgba(255,100,130,.5)}
.outreach-report-wrap{overflow:auto;border:1px solid rgba(255,255,255,.06);border-radius:14px;background:rgba(255,255,255,.02)}
.outreach-report{width:100%;border-collapse:collapse;font-size:.82rem}
.outreach-report th,.outreach-report td{padding:11px 12px;border-bottom:1px solid rgba(255,255,255,.06);text-align:left;vertical-align:top}
.outreach-report th{position:sticky;top:0;background:#11161f;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);z-index:1}
.outreach-report tbody tr{cursor:pointer}
.outreach-report tbody tr:hover{background:rgba(255,255,255,.02)}
.outreach-report tbody tr.active{background:rgba(212,168,67,.08)}
.outreach-report__sub{margin-top:4px;font-size:.76rem;line-height:1.45;color:var(--muted)}
.outreach-report__badges{display:flex;flex-wrap:wrap;gap:6px}
.income-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0 10px}
.income-missing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:6px 0 0}
.income-missing-card{display:grid;gap:6px;padding:10px 12px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.02)}
.income-missing-card span{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.income-missing-card strong{font-size:1rem;line-height:1.35;color:var(--text)}
.income-missing-card{width:100%;text-align:left;cursor:pointer}
.income-missing-card.is-active{border-color:rgba(212,168,67,.34);background:rgba(212,168,67,.12)}
.income-outlook-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(180px,1fr);gap:8px;overflow:auto;padding:2px 0 2px;margin:8px 0}
.income-outlook-card{display:grid;gap:6px;padding:10px 12px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.02)}
.income-outlook-card span{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.income-outlook-card strong{font-size:.88rem;line-height:1.35;color:var(--text)}
.income-outlook-card small{font-size:.75rem;line-height:1.4;color:var(--muted)}
.income-outlook-card{width:100%;text-align:left;cursor:pointer}
.income-outlook-card.is-active{border-color:rgba(212,168,67,.34);background:rgba(212,168,67,.12)}
.income-summary-card{display:grid;gap:6px;padding:12px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.02)}
#section-income.active .income-summary-card{border-color:var(--color-income-border);background:linear-gradient(180deg,var(--color-income-surface) 0%,rgba(92,107,192,.04) 100%)}
.income-summary-card span{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.income-summary-card strong{font-size:1rem;line-height:1.35;color:var(--text)}
.income-summary-card small{font-size:.76rem;line-height:1.45;color:var(--muted)}
.income-summary-card--ok{border-color:rgba(163,230,194,.2);background:rgba(163,230,194,.08)}
.income-summary-card--warn{border-color:rgba(255,204,128,.2);background:rgba(255,204,128,.08)}
.income-table-wrap{overflow:auto;border:1px solid rgba(255,255,255,.06);border-radius:14px;background:rgba(255,255,255,.02)}
.income-table{width:100%;border-collapse:collapse;font-size:.82rem}
.income-table th,.income-table td{padding:11px 12px;border-bottom:1px solid rgba(255,255,255,.06);text-align:left;vertical-align:top}
.income-table th{position:sticky;top:0;background:#11161f;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);z-index:1}
.income-table tbody tr.income-row{cursor:pointer}
.income-table tbody tr.income-row:hover{background:rgba(255,255,255,.02)}
.income-table tbody tr.income-row--confirmed{box-shadow:inset 3px 0 0 rgba(163,230,194,.45)}
.income-table tbody tr.income-row--potential{box-shadow:inset 3px 0 0 rgba(255,204,128,.45)}
.income-table tbody tr.income-row--unknown{box-shadow:inset 3px 0 0 rgba(130,182,255,.3)}
.income-table td .pill{display:inline-flex;align-items:center;white-space:nowrap}
.income-month-row td{padding:10px 12px;background:rgba(255,255,255,.03);border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}
.income-month-row__line{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.income-month-row__line strong{font-size:.86rem;letter-spacing:.04em;text-transform:uppercase;color:var(--text)}
.income-month-row__count{font-size:.76rem;line-height:1.4;color:var(--muted)}
.income-month-subtotal td{padding:9px 12px;background:rgba(255,255,255,.015)}
.income-month-subtotal__line{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:.79rem;line-height:1.45;color:var(--muted)}
.income-month-subtotal__line strong{color:var(--text);font-weight:600}
.income-table__sub{margin-top:3px;font-size:.76rem;line-height:1.45;color:var(--muted)}
.income-open-calendar{padding:6px 10px;min-height:30px;border-radius:8px;font-size:.76rem;line-height:1.2}
#section-income .toolbar{gap:6px;margin:8px 0}
.expenses-quick-add{display:none;margin:10px 0;padding:12px;border:1px solid rgba(212,168,67,.24);border-radius:12px;background:linear-gradient(180deg,rgba(212,168,67,.07),rgba(255,255,255,.015))}
.expenses-quick-add.is-visible{display:block}
.expense-more-options{margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.06)}
.expenses-list-wrap{overflow:auto;border:1px solid rgba(255,255,255,.06);border-radius:14px;background:rgba(255,255,255,.02)}
.expenses-table{width:100%;border-collapse:collapse;font-size:.82rem}
.expenses-table th,.expenses-table td{padding:11px 12px;border-bottom:1px solid rgba(255,255,255,.06);text-align:left;vertical-align:top}
.expenses-table th{position:sticky;top:0;background:#11161f;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);z-index:1}
.expenses-table tbody tr:hover{background:rgba(255,255,255,.02)}
.expenses-table td .pill{display:inline-flex;align-items:center;white-space:nowrap}
#section-expenses .toolbar{gap:6px;margin:8px 0}
.expenses-mobile-cards{padding:12px}
.expense-card{padding:12px;margin-bottom:10px;border:1px solid rgba(255,255,255,.06);border-radius:10px;background:rgba(255,255,255,.02)}
.expense-card-header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}
.expense-card-date{font-size:.9rem;font-weight:500;white-space:nowrap}
.expense-card-desc{margin-bottom:8px;font-size:.88rem;line-height:1.4;color:var(--text)}
.expense-card-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.expense-card-amount{font-weight:600;font-size:.95rem}
.expense-card-linked{margin-bottom:8px;font-size:.8rem}
.expense-card-actions{display:flex;justify-content:flex-end}
@media (max-width: 900px){
  .outreach-card__grid{grid-template-columns:1fr}
  .outreach-history__item{grid-template-columns:1fr}
  .outreach-report th,.outreach-report td{padding:10px}
  .income-missing-grid{grid-template-columns:1fr}
  .income-outlook-strip{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:1fr}
  .income-summary-grid{grid-template-columns:1fr 1fr}
  .income-table th,.income-table td{padding:10px}
  .income-open-calendar{width:100%}
  .expenses-table{display:none}
  .expenses-mobile-cards{display:block}
}
@media (min-width: 901px){
  .expenses-mobile-cards{display:none}
}
#pb-version-label{font-family:inherit}
#pb-blueprint-list{max-height:360px}
#pb-header-image-url-wrap[hidden]{display:none!important}
.pb-offer-field{display:grid;gap:8px}
.pb-offer-field__actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:-2px 0 2px}
.pb-offer-field__actions--title{justify-content:flex-end;margin-top:-4px}
.pb-offer-field__actions button{flex:0 0 auto}
.pb-offer-field__actions .muted{margin:0}
.pb-saved-summary{display:grid;gap:12px;min-height:140px}
.pb-saved-summary__head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.pb-saved-summary__head h4{margin:0;font-size:1rem;color:var(--text)}
.pb-saved-summary__copy{display:grid;gap:10px}
.pb-saved-summary__copy p{margin:0}
.pb-saved-summary__grid{display:grid;grid-template-columns:120px 1fr;gap:8px 12px;font-size:.82rem;line-height:1.55}
.pb-saved-summary__grid dt{margin:0;color:var(--muted)}
.pb-saved-summary__grid dd{margin:0;color:var(--text)}
.pb-saved-summary__meta{display:flex;flex-wrap:wrap;gap:8px}
.pb-saved-summary__hint{font-size:.8rem;color:var(--muted)}
.pb-fee-slot-note{margin:10px 0 12px;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(255,255,255,.025);font-size:.82rem;line-height:1.45}
.pb-fee-slot-note.ok{border-color:rgba(163,230,194,.28);background:rgba(163,230,194,.08);color:#cdeedb}
.pb-fee-slot-note.warn{border-color:rgba(255,179,91,.32);background:rgba(255,179,91,.10);color:#ffe1a8}
.pb-fee-topline{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr)) auto;gap:10px;align-items:stretch;margin:10px 0 14px}
.pb-fee-topline button{height:100%;min-height:58px}
.pb-fee-quick-output{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px}
.pb-fee-quick-output div{padding:10px 12px;border:1px solid rgba(255,255,255,.06);border-radius:10px;background:rgba(255,255,255,.018)}
.pb-fee-quick-output span{display:block;margin-bottom:5px;font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.pb-fee-quick-output p{margin:0;font-size:.82rem;line-height:1.5;color:#d8e0ed}
.pb-fee-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:12px 0}
.pb-fee-metric{padding:12px 14px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.02);display:grid;gap:6px}
.pb-fee-metric--primary{border-color:rgba(79,195,247,.28);background:rgba(79,195,247,.08)}
.pb-fee-metric span{font-size:.76rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.pb-fee-metric strong{font-size:1.15rem;line-height:1.2;color:var(--text);font-weight:700}
.pb-fee-metric strong.ok{color:#a3e6c2}
.pb-fee-metric strong.warn{color:#ffd28a}
.pb-fee-metric strong.err{color:#ff9aa8}
.pb-fee-adjustment-line{margin:10px 0 0;font-size:.8rem;line-height:1.62;color:var(--muted)}
.pb-fee-explainer{margin:10px 0 0;padding:12px 14px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.02);display:grid;gap:8px}
.pb-fee-explainer p{margin:0;font-size:.8rem;line-height:1.6;color:var(--muted)}
.pb-fee-explainer strong{color:var(--text);font-weight:600}
.pb-fee-risk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin-top:10px}
.pb-fee-result-card{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:10px;margin:10px 0 8px}
.pb-fee-actions-row{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px;align-items:center}
.pb-fee-wizard{display:grid;gap:12px;margin:12px 0}
.pb-fee-choice-group{padding:12px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.018)}
.pb-fee-choice-label{display:block;margin:0 0 8px;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.pb-fee-choice-buttons{display:flex;flex-wrap:wrap;gap:7px}
.pb-fee-choice-btn{padding:8px 13px;border-radius:999px;font-size:.8rem;line-height:1.2;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.09);color:var(--muted);cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.pb-fee-choice-btn:hover{border-color:#4c5d7d;background:#253044;color:var(--text)}
.pb-fee-choice-btn.active{border-color:var(--color-income);color:var(--color-income);background:var(--color-income-surface)}
.pb-fee-reality-quick{display:grid;grid-template-columns:minmax(130px,190px) repeat(3,max-content);gap:8px;align-items:end}
.pb-fee-reality-quick label{margin:0}
.pb-fee-reality-quick input{min-height:36px}
.pb-fee-scenarios{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.pb-fee-scenario-btn{padding:7px 13px;border-radius:999px;font-size:.79rem;line-height:1.2;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.09);color:var(--muted);cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.pb-fee-scenario-btn:hover{border-color:#4c5d7d;background:#253044;color:var(--text)}
.pb-fee-scenario-btn.active{border-color:var(--color-income);color:var(--color-income);background:var(--color-income-surface)}
.pb-fee-negotiation-inline{margin:4px 0 10px;font-size:.83rem;line-height:1.55;color:#d8e0ed}
.pb-fee-accordion{margin:0 0 2px}
.pb-selected-wrap{display:grid;gap:12px}
.pb-selected-wrap--primary{padding:14px;border:1px solid rgba(212,168,67,.22);border-radius:14px;background:linear-gradient(180deg,rgba(212,168,67,.08),rgba(255,255,255,.02))}
.pb-programme-has-selection #pb-step-selected{border-color:rgba(212,168,67,.34);box-shadow:0 0 0 1px rgba(212,168,67,.06)}
.pb-selected-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.pb-selected-head--controls{align-items:center}
.pb-selected-head h4{margin:0;font-size:.94rem;color:var(--text)}
.pb-selected-head p{margin:4px 0 0;max-width:64ch}
.pb-selected-actions{margin-top:-2px}
.pb-piece-editor-toggle .editor{margin-top:10px}
.pb-piece-alternatives{display:grid;gap:8px;margin-top:4px}
.pb-piece-alternatives__head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}
.pb-piece-alternatives__head strong{font-size:.82rem;color:var(--text)}
.pb-piece-alternatives__item{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 12px;border:1px solid rgba(255,255,255,.06);border-radius:10px;background:#11161f}
.pb-piece-alternatives__body{min-width:0;flex:1;display:grid;gap:4px}
.pb-piece-alternatives__body strong{font-size:.88rem;line-height:1.3;color:var(--text)}
.pb-piece-alternatives__meta{font-size:.8rem;line-height:1.5;color:var(--muted)}
.pb-piece-alternatives__empty{padding:10px 12px;border:1px dashed rgba(255,255,255,.08);border-radius:10px;background:rgba(255,255,255,.015);font-size:.8rem;line-height:1.55;color:var(--muted)}
.pb-encore-list{display:grid;gap:10px;margin-top:12px}
.pb-encore-item{padding:12px 14px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.02);display:grid;gap:10px}
.pb-encore-item__head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.pb-encore-item__label{font-size:.76rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.pb-encore-item__grid{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(140px,.8fr) auto;gap:10px;align-items:end}
.pb-encore-item__grid .button-row{display:flex;gap:8px;flex-wrap:wrap}
.pb-encore-item__empty{padding:12px 14px;border:1px dashed rgba(255,255,255,.08);border-radius:12px;color:var(--muted);font-size:.84rem;line-height:1.6}
.pb-encore-item__empty button{margin-top:10px}
.pb-quick-add-modal[hidden]{display:none!important}
.pb-quick-add-modal{position:fixed;inset:0;z-index:120;padding:18px;background:rgba(6,10,16,.52);display:grid;place-items:center;backdrop-filter:blur(10px)}
.pb-quick-add-modal__backdrop{position:absolute;inset:0}
.pb-quick-add-modal__dialog{position:relative;z-index:1;width:min(760px,100%);max-height:min(88vh,900px);overflow:auto;padding:18px;border:1px solid var(--border);border-radius:16px;background:#11161f;box-shadow:0 22px 54px rgba(0,0,0,.42);display:grid;gap:14px}
.pb-quick-add-modal__header{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.pb-quick-add-modal__header h4{margin:0;font-size:1rem;color:var(--text)}
.pb-quick-add-modal__header p{margin:4px 0 0;max-width:56ch}
body.programme-offer-modal-active{overflow:hidden}
.pb-output-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;cursor:pointer;list-style:none}
.pb-output-summary::-webkit-details-marker{display:none}
.pb-output-summary::after{content:'−';font-size:1.15rem;line-height:1;color:#c9d2e4;flex:0 0 auto}
#pb-output-shell:not([open]) .pb-output-summary::after{content:'+'}
.pb-output-summary__copy{display:grid;gap:4px}
.pb-output-summary__copy strong{font-size:1rem;line-height:1.25;color:var(--text)}
.pb-output-summary__copy span{font-size:.82rem;line-height:1.5;color:var(--muted)}
.pb-output-step__body{display:grid;gap:0;margin-top:8px}
.pb-preview-shell{margin-top:6px}
.pb-quick-picks-shell > .pb-quick-picks-wrap{margin-top:10px}
.pb-hint-cluster__head{display:grid;gap:4px}
.pb-hint-cluster__head h4{margin:0;font-size:.88rem;color:var(--text)}
#section-programbuilder.active .pb-preview-sheet{border-color:var(--color-programbuilder-border)}
.pb-preview-sheet{
  border:1px solid var(--border);
  border-radius:14px;
  background:linear-gradient(180deg,#171c24 0%,#121720 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
  padding:26px 28px;
  display:grid;
  gap:0;
  min-height:520px;
}
.pb-preview-sheet__header{display:flex;justify-content:space-between;align-items:flex-start;gap:22px}
.pb-preview-sheet__identity{display:flex;gap:16px;align-items:flex-start;min-width:0;flex:1}
.pb-preview-sheet__rule{width:2px;height:72px;background:rgba(212,168,67,.58);flex:0 0 auto;margin-top:2px}
.pb-preview-sheet__artist{margin:0 0 8px;font-size:2.1rem;line-height:1.08;color:var(--text);font-weight:700;font-family:Arial,Helvetica,sans-serif}
.pb-preview-sheet__subtitle{margin:0;font-size:.98rem;line-height:1.46;color:#c7cfdb;font-style:italic}
.pb-preview-sheet__portrait{width:118px;height:118px;max-width:100%;max-height:100%;object-fit:contain;object-position:center;overflow:hidden;background:#06070a;display:block;flex:0 0 auto}
.pb-preview-sheet__divider{border-top:1px solid rgba(255,255,255,.08);margin:22px 0 26px}
.pb-preview-sheet__eyebrow{margin:0 0 10px;font-size:.7rem;letter-spacing:.22em;text-transform:uppercase;color:#c9ac69}
.pb-preview-sheet__title{margin:0 0 14px;font-family:var(--font-serif,Georgia,serif);font-size:2.15rem;line-height:1.08;color:var(--text);font-weight:400}
.pb-preview-sheet__version{margin:0 0 18px;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:#d1c19c}
.pb-preview-sheet__body{display:grid;gap:0}
.pb-preview-sheet__body p{margin:0;color:#dde3ec;line-height:1.72}
.pb-preview-sheet__details{margin-top:16px;display:grid;gap:9px}
.pb-preview-sheet__detail{display:grid;grid-template-columns:122px minmax(0,1fr);gap:12px;align-items:start}
.pb-preview-sheet__detail strong{font-size:.69rem;letter-spacing:.08em;word-spacing:0;text-transform:uppercase;color:#c8b282;font-weight:600}
.pb-preview-sheet__detail span{color:#dde3ec;line-height:1.62}
.pb-preview-sheet__list{margin:0;padding:0;list-style:none;display:grid;gap:14px}
.pb-preview-sheet__list li{color:#e3e8f2;line-height:1.62;padding-bottom:13px;border-bottom:1px solid rgba(255,255,255,.05)}
.pb-preview-sheet__list li:last-child{padding-bottom:0;border-bottom:0}
.pb-preview-sheet__piece-title{display:block;font-family:var(--font-serif,Georgia,serif);font-size:1rem;line-height:1.35;color:#f1f4fa}
.pb-preview-sheet__piece-meta{display:block;font-size:.88rem;line-height:1.55;color:#d2d9e5}
.pb-preview-sheet__section{margin-top:28px}
.pb-preview-sheet__section-title{margin:0 0 12px;font-size:.68rem;letter-spacing:.24em;text-transform:uppercase;color:#c9ac69}
.pb-preview-sheet__empty{margin:0;color:#e1e6ef;line-height:1.7}
.pb-preview-sheet__footer{border-top:1px solid rgba(255,255,255,.1);padding-top:18px;display:grid;gap:18px;margin-top:30px}
.pb-preview-sheet__contact{display:grid;gap:5px}
.pb-preview-sheet__contact a,.pb-preview-sheet__contact span{color:#e7ebf3;text-decoration:none;word-break:break-word}
.pb-preview-column .editor-section{position:sticky;top:14px}
#pb-print-view[hidden]{display:none!important}
.pb-print-view{position:fixed;inset:0;z-index:95;background:#f1ede6;overflow:auto;padding:24px}
body.programme-print-active{overflow:hidden}
.pb-print-view__controls{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:14px 18px;margin:0 auto 18px;max-width:920px;background:rgba(255,255,255,.96);border:1px solid #ddd6ca;border-radius:14px;box-shadow:0 10px 28px rgba(0,0,0,.08);backdrop-filter:blur(10px)}
.pb-print-view__copy strong{display:block;margin:0 0 4px;font-size:.96rem;color:#1b1b1b}
.pb-print-view__copy p{margin:0;color:#5a554c;font-size:.86rem;line-height:1.55;max-width:68ch}
.pb-print-view__actions{display:flex;gap:10px;flex-wrap:wrap}
.pb-print-sheet{max-width:920px;margin:0 auto;padding:0}
.pb-print-sheet__page{background:#fff;color:#1b1b1b;padding:54px 42px 44px;box-shadow:0 18px 46px rgba(0,0,0,.08)}
.pb-print-sheet__header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}
.pb-print-sheet__identity{display:flex;gap:16px;align-items:flex-start;flex:1;min-width:0}
.pb-print-sheet__rule{width:2px;height:72px;background:#b7aea0;flex:0 0 auto;margin-top:2px}
.pb-print-sheet__artist{font-size:29px;line-height:1.08;font-weight:700;margin:0 0 8px;color:#1b1b1b;font-family:Arial,Helvetica,sans-serif}
.pb-print-sheet__subtitle{font-size:15.5px;line-height:1.38;font-style:italic;color:#2f2f2f;margin:0}
.pb-print-sheet__portrait{width:108px;height:108px;max-width:100%;max-height:100%;object-fit:contain;object-position:center;overflow:hidden;background:#06070a;border:none;display:block}
.pb-print-sheet__divider{border-top:1px solid #d8d2c8;margin:20px 0 22px}
.pb-print-sheet__title{font-family:Georgia,"Times New Roman",serif;font-size:36px;line-height:1.08;font-weight:400;margin:0 0 10px;color:#1b1b1b}
.pb-print-sheet__version{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#635844;margin:0 0 16px}
.pb-print-sheet__body p{font-size:15.5px;line-height:1.62;margin:0;color:#181818}
.pb-print-sheet__details{margin:16px 0 0;display:grid;gap:7px}
.pb-print-sheet__detail{display:grid;grid-template-columns:40mm minmax(0,1fr);column-gap:12px;align-items:start}
.pb-print-sheet__detail strong{font-size:10.5px;letter-spacing:.08em;word-spacing:0;text-transform:uppercase;color:#5f4f2c;font-weight:600}
.pb-print-sheet__detail span{color:#181818;line-height:1.56}
.pb-print-sheet__section-title{font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:#5f4f2c;margin:26px 0 8px}
.pb-print-sheet__list{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.pb-print-sheet__list li{margin:0;padding-bottom:8px;border-bottom:1px solid #ece7df}
.pb-print-sheet__list li:last-child{padding-bottom:0;border-bottom:0}
.pb-print-sheet__piece-title{display:block;font-family:Georgia,"Times New Roman",serif;font-size:16.5px;line-height:1.34;color:#161616}
.pb-print-sheet__piece-meta{display:block;font-size:14.5px;line-height:1.44;color:#242424}
.pb-print-sheet__empty{margin:0;color:#1d1d1d;line-height:1.66}
.pb-print-sheet__footer{margin-top:24px;padding-top:14px;border-top:1px solid #e0dbd1}
.pb-print-sheet__contact{display:grid;gap:4px}
.pb-print-sheet__contact a,.pb-print-sheet__contact span{color:#1b1b1b;text-decoration:none}
#pb-output-internal,#pb-output-email,#pb-output-public{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;font-size:.84rem;line-height:1.65}
#pb-piece-compatibility{margin:4px 0 0}
#pb-rep-count,#pb-blueprint-key,#pb-target-duration,#pb-current-duration,#pb-duration-status,#pb-status{white-space:nowrap}
.pb-split .editor-section .toolbar label{min-width:140px}
.pb-split .editor-section .toolbar .pill{align-self:center}
.pb-selector-toolbar--simple label{min-width:220px}
.pb-selector-toolbar--simple button{flex:0 0 auto}
.pb-split .item-list .item strong{font-size:.88rem;font-weight:600}
.pb-split .item-list .muted{display:block;margin-top:2px}
.pb-split .editor-section textarea[readonly]{background:#0d1118;color:#c9d2e4}
.pb-quick-picks-wrap{margin:12px 0 14px;padding:12px 14px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.02)}
.pb-quick-picks-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}
.pb-quick-picks-head h4{margin:0;font-size:.9rem;color:var(--text)}
.pb-quick-picks-head p{margin:0;max-width:64ch}
.pb-quick-picks{display:grid;gap:8px}
.pb-quick-picks__empty{padding:10px 0;color:var(--muted);font-size:.82rem}
.pb-quick-picks__item{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:10px 12px;border:1px solid rgba(255,255,255,.06);border-radius:10px;background:#11161f}
.pb-quick-picks__body{min-width:0;flex:1}
.pb-quick-picks__title{display:block;font-size:.9rem;font-weight:600;color:var(--text)}
.pb-quick-picks__meta{display:block;margin-top:3px;font-size:.8rem;line-height:1.5;color:var(--muted)}
.pb-quick-picks__body .item-badges{margin-top:8px}
.pb-quick-picks__item button{flex:0 0 auto;min-width:82px}
.pb-arc-builder{margin:10px 0 0;padding:14px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.02)}
.pb-arc-builder__head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}
.pb-arc-builder__head h4{margin:0;font-size:.9rem;color:var(--text)}
.pb-arc-builder__head p{margin:0;max-width:64ch}
.pb-arc-slots{display:grid;gap:10px}
.pb-arc-slot{display:grid;grid-template-columns:minmax(150px,190px) minmax(0,1fr) auto;gap:10px;align-items:end;padding:10px 12px;border:1px solid rgba(255,255,255,.05);border-radius:10px;background:#11161f}
.pb-arc-slot__label{display:grid;gap:2px}
.pb-arc-slot__label strong{font-size:.86rem;color:var(--text)}
.pb-arc-slot__label span{font-size:.76rem;line-height:1.45;color:var(--muted)}
.pb-arc-slot__label .item-badge{justify-self:start}
.pb-arc-slot select{min-width:0}
.pb-arc-slot__actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.pb-arc-hints{display:grid;gap:8px;margin-top:12px}
.pb-arc-hint{padding:10px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.06);background:#11161f;font-size:.82rem;line-height:1.55;color:#dce3ef}
.pb-arc-hint.warn{border-color:rgba(212,168,67,.28);color:#f0e0b3}
.pb-arc-hint.ok{border-color:rgba(125,207,162,.24);color:#b9ebcd}
.pb-arc-hint strong{color:inherit}
.pb-suggestion-groups{display:grid;gap:14px;margin-top:10px}
.pb-suggestion-group{padding:12px 14px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.02)}
.pb-suggestion-group__head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}
.pb-suggestion-group__head h4{margin:0;font-size:.9rem;color:var(--text)}
.pb-suggestion-group__list{display:grid;gap:8px}
.pb-suggestion-card{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:10px 12px;border:1px solid rgba(255,255,255,.05);border-radius:10px;background:#11161f}
.pb-suggestion-card__body{min-width:0;flex:1;display:grid;gap:4px}
.pb-suggestion-card__meta{display:block;font-size:.8rem;line-height:1.55;color:var(--muted)}
.pb-suggestion-card__body .item-badges{margin-top:4px}
.pb-suggestion-card button{flex:0 0 auto;min-width:128px}
.pb-blueprint-list__order{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;border:1px solid var(--border);font-size:.7rem;color:#c7d2e3;margin-right:8px;flex:0 0 auto}
.pb-item-row{display:flex;align-items:flex-start;gap:8px}
.pb-selector-toolbar .checkline{align-self:flex-end;padding-bottom:2px}
.checkline{flex-direction:row;align-items:center;gap:10px}
.checkline input[type="checkbox"]{width:auto}
.paper-preview-mode .toggle-chip{border-color:#b9a67d;background:#f4f0e8;color:#443a2b}
.paper-preview-mode .pb-preview-sheet{
  border:1px solid #d8d2c8;
  background:#fbfaf7;
  color:#171717;
  box-shadow:0 18px 42px rgba(0,0,0,.08);
}
.paper-preview-mode .pb-preview-sheet__rule{background:#b7aea0}
.paper-preview-mode .pb-preview-sheet__artist{color:#181818}
.paper-preview-mode .pb-preview-sheet__subtitle{color:#2c2c2c}
.paper-preview-mode .pb-preview-sheet__divider{border-top:1px solid #d8d2c8}
.paper-preview-mode .pb-preview-sheet__eyebrow{color:#6c5a35}
.paper-preview-mode .pb-preview-sheet__title{color:#171717}
.paper-preview-mode .pb-preview-sheet__version{color:#5f5543}
.paper-preview-mode .pb-preview-sheet__body p{color:#171717}
.paper-preview-mode .pb-preview-sheet__list li{color:#181818}
.paper-preview-mode .pb-preview-sheet__details strong{color:#5f4f2c}
.paper-preview-mode .pb-preview-sheet__detail span{color:#171717}
.paper-preview-mode .pb-preview-sheet__piece-title{color:#181818}
.paper-preview-mode .pb-preview-sheet__piece-meta{color:#262626}
.paper-preview-mode .pb-preview-sheet__list li{border-bottom:1px solid #e1ddd6}
.paper-preview-mode .pb-preview-sheet__section-title{color:#5f4f2c}
.paper-preview-mode .pb-preview-sheet__empty{color:#1d1d1d}
.paper-preview-mode .pb-preview-sheet__footer{border-top:1px solid #ded7cc}
.paper-preview-mode .pb-preview-sheet__footer,
.paper-preview-mode .pb-preview-sheet__footer p,
.paper-preview-mode .pb-preview-sheet__contact,
.paper-preview-mode .pb-preview-sheet__contact a,
.paper-preview-mode .pb-preview-sheet__contact span{
  color:#171717;
}
.paper-preview-mode .pb-preview-sheet__warning,
.pb-preview-sheet__warning{
  display:grid;
  gap:10px;
  padding:18px 18px 20px;
  border:1px solid #ddd6ca;
  border-radius:12px;
  background:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
}
.paper-preview-mode .pb-preview-sheet__warning-box,
.pb-preview-sheet__warning-box{
  display:grid;
  gap:8px;
  padding-top:4px;
}
.pb-preview-sheet__warning .pb-preview-sheet__title{margin:0}
.pb-preview-sheet__warning .pb-preview-sheet__eyebrow{margin:0;color:#6c5a35}
.pb-preview-sheet__warning .pb-preview-sheet__empty{margin:0}
.paper-preview-mode .pb-offer-field__actions button{border-color:#d0c6b5;background:#fff;color:#3c3529}
.paper-preview-mode .pb-fee-metric{background:#fff;border-color:#ddd6ca}
.paper-preview-mode .pb-fee-metric span{color:#6e6556}
.paper-preview-mode .pb-fee-metric strong{color:#1f1f1f}
.paper-preview-mode .pb-fee-adjustment-line{color:#4b5563}
.paper-preview-mode .pb-fee-explainer{background:#fff;border-color:#ddd6ca}
.paper-preview-mode .pb-fee-explainer p{color:#4b5563}
.paper-preview-mode .pb-fee-explainer strong{color:#1f1f1f}
.paper-preview-mode .pb-encore-item{background:#fff;border-color:#ddd6ca}
.paper-preview-mode .pb-encore-item__empty{border-color:#ddd6ca;color:#4b5563}
.paper-preview-mode .pb-quick-add-modal__dialog{background:#faf8f3;border-color:#ddd6ca}
.paper-preview-mode .pb-quick-picks-wrap{background:#f8f5ee;border-color:#ddd6ca}
.paper-preview-mode .pb-quick-picks__item{background:#fff;border-color:#e3ddd2}
.paper-preview-mode .pb-quick-picks__title{color:#181818}
.paper-preview-mode .pb-quick-picks__meta{color:#575757}
.paper-preview-mode .pb-arc-builder{background:#f8f5ee;border-color:#ddd6ca}
.paper-preview-mode .pb-arc-slot{background:#fff;border-color:#e3ddd2}
.paper-preview-mode .pb-arc-slot__label strong{color:#181818}
.paper-preview-mode .pb-arc-slot__label span{color:#5b5b5b}
.paper-preview-mode .pb-arc-hint{background:#fff;border-color:#e3ddd2;color:#2c2c2c}
.paper-preview-mode .pb-arc-hint.warn{border-color:#d8c493;color:#5a4720}
.paper-preview-mode .pb-arc-hint.ok{border-color:#c6dccf;color:#24452e}
.paper-preview-mode .pb-suggestion-group{background:#f8f5ee;border-color:#ddd6ca}
.paper-preview-mode .pb-suggestion-card{background:#fff;border-color:#e3ddd2}
.paper-preview-mode .pb-suggestion-card__meta{color:#575757}
.paper-preview-mode .pb-main-column .pb-quick-picks-wrap,
.paper-preview-mode .pb-main-column .pb-arc-builder,
.paper-preview-mode .pb-main-column .pb-encore-item,
.paper-preview-mode .pb-main-column .pb-encore-item__empty,
.paper-preview-mode .pb-main-column .pb-arc-slot,
.paper-preview-mode .pb-main-column .pb-arc-hint,
.paper-preview-mode .pb-main-column .pb-suggestion-group,
.paper-preview-mode .pb-main-column .pb-suggestion-card,
.paper-preview-mode .pb-main-column .pb-fee-metric,
.paper-preview-mode .pb-main-column .pb-fee-explainer,
.paper-preview-mode .pb-main-column .mini-preview,
.paper-preview-mode .pb-main-column .pb-quick-add-modal__dialog,
.paper-preview-mode .pb-secondary-hub .pb-suggestion-group,
.paper-preview-mode .pb-secondary-hub .pb-suggestion-card,
.paper-preview-mode .pb-secondary-hub .pb-fee-metric,
.paper-preview-mode .pb-secondary-hub .pb-fee-explainer{
  background:#11161f;
  border-color:rgba(255,255,255,.06);
}
.paper-preview-mode .pb-main-column .pb-quick-picks-wrap,
.paper-preview-mode .pb-main-column .pb-arc-builder,
.paper-preview-mode .pb-main-column .pb-fee-explainer,
.paper-preview-mode .pb-main-column .pb-fee-metric,
.paper-preview-mode .pb-main-column .pb-encore-item,
.paper-preview-mode .pb-main-column .pb-arc-slot,
.paper-preview-mode .pb-main-column .pb-arc-hint,
.paper-preview-mode .pb-main-column .pb-suggestion-group,
.paper-preview-mode .pb-main-column .pb-suggestion-card,
.paper-preview-mode .pb-main-column .mini-preview,
.paper-preview-mode .pb-main-column .pb-quick-add-modal__dialog,
.paper-preview-mode .pb-secondary-hub .pb-suggestion-group,
.paper-preview-mode .pb-secondary-hub .pb-suggestion-card,
.paper-preview-mode .pb-secondary-hub .pb-fee-metric,
.paper-preview-mode .pb-secondary-hub .pb-fee-explainer{
  box-shadow:none;
}
.paper-preview-mode .pb-main-column .pb-quick-picks__item,
.paper-preview-mode .pb-main-column .pb-arc-slot,
.paper-preview-mode .pb-main-column .pb-encore-item,
.paper-preview-mode .pb-main-column .pb-suggestion-card,
.paper-preview-mode .pb-secondary-hub .pb-suggestion-card{
  background:#11161f;
  border-color:rgba(255,255,255,.06);
}
.paper-preview-mode .pb-main-column .pb-quick-picks__title,
.paper-preview-mode .pb-main-column .pb-arc-slot__label strong,
.paper-preview-mode .pb-main-column .pb-encore-item__label,
.paper-preview-mode .pb-main-column .pb-suggestion-card__title,
.paper-preview-mode .pb-secondary-hub .pb-suggestion-card__title{
  color:var(--text);
}
.paper-preview-mode .pb-main-column .pb-quick-picks__meta,
.paper-preview-mode .pb-main-column .pb-arc-slot__label span,
.paper-preview-mode .pb-main-column .pb-suggestion-card__meta,
.paper-preview-mode .pb-main-column .pb-fee-adjustment-line,
.paper-preview-mode .pb-main-column .pb-fee-explainer p,
.paper-preview-mode .pb-main-column .pb-encore-item__empty,
.paper-preview-mode .pb-main-column .mini-preview__body,
.paper-preview-mode .pb-main-column .mini-preview__meta,
.paper-preview-mode .pb-main-column .mini-preview__subtitle,
.paper-preview-mode .pb-secondary-hub .pb-suggestion-card__meta{
  color:var(--muted);
}
.paper-preview-mode .pb-main-column .item-badge,
.paper-preview-mode .pb-secondary-hub .item-badge{
  background:var(--panel-2);
  border-color:var(--border);
  color:var(--muted);
}
.paper-preview-mode .pb-main-column .muted,
.paper-preview-mode .pb-secondary-hub .muted{
  color:var(--muted);
}
.paper-preview-mode .pb-main-column .item-list,
.paper-preview-mode .pb-secondary-hub .item-list{
  background:#11151d;
  border-color:var(--border);
}
.paper-preview-mode .pb-main-column .item,
.paper-preview-mode .pb-secondary-hub .item{
  background:#11151d;
  border-color:var(--border);
  color:var(--text);
}
.paper-preview-mode #pb-output-internal,
.paper-preview-mode #pb-output-email,
.paper-preview-mode #pb-output-public,
.paper-preview-mode #pb-fee-logic,
.paper-preview-mode #pb-fee-negotiation,
.paper-preview-mode #pb-fee-summary-output,
.paper-preview-mode #pb-fee-email-output,
.paper-preview-mode #pb-offer-description,
.paper-preview-mode #pb-flexible-note,
.paper-preview-mode #pb-blueprint-notes,
.paper-preview-mode #pb-piece-notes,
.paper-preview-mode #programs-intro,
.paper-preview-mode #programs-closingNote,
.paper-preview-mode #programs-item-description,
.paper-preview-mode #programs-item-formations,
.paper-preview-mode #programs-item-idealFor{
  background:#faf8f3;
  color:#202020;
  border-color:#d8d2c8;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
.paper-preview-mode #pb-output-internal,
.paper-preview-mode #pb-output-email,
.paper-preview-mode #pb-output-public{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  font-size:.86rem;
  line-height:1.68;
}
.paper-preview-mode .pb-split .editor-section textarea[readonly]{background:#faf8f3;color:#202020}
.paper-preview-mode .mini-preview{
  background:#f8f6f2;
  border-color:#d8d2c8;
}
.paper-preview-mode .mini-preview__title{color:#181818}
.paper-preview-mode .mini-preview__body,
.paper-preview-mode .mini-preview__meta,
.paper-preview-mode .mini-preview__subtitle{color:#4c4c4c}
.calendar-editor .grid.two{margin-bottom:0}
.calendar-item-line{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.calendar-item-revenue{margin-top:3px;font-size:.76rem;line-height:1.4;color:var(--muted)}
.calendar-item-active{display:inline-flex;align-items:center;border:1px solid rgba(212,168,67,.45);border-radius:999px;padding:2px 7px;font-size:.65rem;letter-spacing:.08em;text-transform:uppercase;color:#f4d98f;background:rgba(212,168,67,.14);flex:0 0 auto}
.calendar-event-row{padding:0}
.calendar-event-row__inner{display:grid;grid-template-columns:auto minmax(72px,92px) minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px}
.calendar-event-row__check{width:16px;height:16px;margin:0;align-self:start;margin-top:2px}
.calendar-event-row__date{font-weight:700;font-size:.82rem;line-height:1.2;color:#f4d98f;letter-spacing:.01em;white-space:normal}
.calendar-event-row__date--missing{font-weight:600;color:var(--muted);font-size:.76rem}
.calendar-event-row__main{min-width:0;display:grid;gap:3px}
.calendar-event-row__title{font-weight:700;font-size:.9rem;line-height:1.25;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calendar-event-row.active .calendar-event-row__title{color:#fff3cf}
.calendar-event-row__location{font-size:.75rem;line-height:1.3;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calendar-event-row__badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;max-width:118px}
.calendar-event-row__badge{display:inline-flex;align-items:center;max-width:100%;padding:2px 6px;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:rgba(255,255,255,.04);font-size:.62rem;line-height:1.2;color:#cbd4e3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calendar-event-row__badge--private{border-color:rgba(212,168,67,.36);background:rgba(212,168,67,.12);color:#f1d58e}
.calendar-event-row__badge--ok{border-color:rgba(163,230,194,.25);background:rgba(163,230,194,.10);color:#bfe9ce}
.calendar-event-row__badge--warn{border-color:rgba(255,179,91,.25);background:rgba(255,179,91,.10);color:#ffe1a8}
.calendar-event-row__badge--money{border-color:rgba(130,182,255,.24);background:rgba(130,182,255,.10);color:#d9ebff}
.calendar-item-flash{animation:calendarItemFlash 1.45s ease-out}
@keyframes calendarItemFlash{
  0%{box-shadow:inset 0 0 0 2px rgba(212,168,67,.92),0 0 0 4px rgba(212,168,67,.20);background:rgba(212,168,67,.18)}
  65%{box-shadow:inset 0 0 0 1px rgba(212,168,67,.48),0 0 0 2px rgba(212,168,67,.08)}
  100%{box-shadow:none}
}
.tools-card{border:1px solid var(--border);border-radius:10px;background:#11151d;padding:10px}
.tools-card .muted{margin:0}
.photo-preview-wrap{border:1px solid var(--border);border-radius:8px;background:#0e131a;display:flex;justify-content:center;align-items:center;min-height:220px;padding:8px}
.photo-preview-wrap{position:relative;overflow:hidden}
.photo-preview-wrap img{max-width:100%;max-height:320px;display:block;object-fit:contain}
.epk-photo-preview-wrap{width:min(100%,280px);min-height:0;aspect-ratio:4/5;margin:0 auto 10px;padding:0}
.epk-photo-preview-wrap[data-preview-aspect="portrait_3_4"]{aspect-ratio:3/4}
.epk-photo-preview-wrap[data-preview-aspect="square_1_1"]{aspect-ratio:1/1}
.epk-photo-preview-wrap[data-preview-aspect="auto"]{aspect-ratio:auto;min-height:220px;padding:8px}
.epk-photo-preview-wrap img{width:100%;height:100%;max-width:none;max-height:none;object-fit:var(--rg-img-fit, cover);object-position:var(--rg-img-position, var(--epk-preview-object-position, center center))}
.epk-photo-preview-wrap[data-preview-aspect="auto"] img{height:auto;max-width:100%;max-height:320px;object-fit:contain}
.placement-preview-wrap{width:min(100%,360px);min-height:0;aspect-ratio:16/9;margin:10px auto 0;padding:0}
.placement-preview-wrap[data-preview-aspect="landscape_3_2"]{aspect-ratio:3/2}
.placement-preview-wrap[data-preview-aspect="portrait_4_5"]{aspect-ratio:4/5;max-width:280px}
.placement-preview-wrap[data-preview-aspect="square_1_1"]{aspect-ratio:1/1;max-width:300px}
.placement-preview-wrap img{width:100%;height:100%;max-width:none;max-height:none;object-fit:var(--rg-img-fit, cover);object-position:var(--rg-img-position, var(--placement-object-position, center center))}
.public-image-placement-panel{border-color:rgba(212,168,67,.35)}
.hero-bg-preview-wrap{width:min(100%,620px);min-height:0;aspect-ratio:16/9;margin:0 auto 10px;padding:0}
.hero-bg-preview-wrap img{width:100%;height:100%;max-width:none;max-height:none;object-fit:var(--rg-img-fit, cover);object-position:var(--rg-img-position, var(--hero-preview-object-position, center center))}
.home-intro-preview-wrap{min-height:260px;overflow:hidden;position:relative}
.home-intro-preview-wrap img{width:100%;height:100%;max-height:none;object-fit:cover}
.home-intro-preview-wrap--auto,
.home-intro-preview-wrap--portrait{aspect-ratio:3/4;max-width:320px;margin:0 auto}
.home-intro-preview-wrap--landscape{aspect-ratio:3/2;max-width:520px;margin:0 auto}
.home-intro-preview-wrap--wide{aspect-ratio:16/9;max-width:620px;margin:0 auto}
.photo-preview-wrap.focus-edit{cursor:crosshair}
.photo-preview-wrap.focus-edit::after{content:'';position:absolute;width:18px;height:18px;border-radius:50%;border:1px solid rgba(212,168,67,.85);background:rgba(212,168,67,.12);left:var(--focus-x,50%);top:var(--focus-y,50%);transform:translate(-50%,-50%);pointer-events:none;box-shadow:0 0 0 4px rgba(212,168,67,.06)}
.perf-card-preview{position:relative;border:1px solid var(--border);border-radius:10px;overflow:hidden;min-height:180px;background:#0e131a}
.perf-card-preview__bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.55}
.perf-card-preview__bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(9,12,18,.15) 0%,rgba(9,12,18,.85) 100%)}
.perf-card-preview__content{position:relative;z-index:1;padding:14px}
.perf-card-preview__meta{margin:0 0 6px;font-size:.74rem;letter-spacing:.08em;color:#b7c3d8;text-transform:uppercase}
.perf-card-preview__title{margin:0 0 6px;font-size:1rem;color:var(--text)}
.perf-card-preview__detail{margin:0 0 8px;font-size:.84rem;color:var(--muted)}
.perf-card-preview__venue{margin:0;font-size:.8rem;color:#c7d1e3}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.muted{color:var(--muted);font-size:.84rem}
.muted.ok{color:#94e8b1}
.muted.err{color:#ffb3bf}
.embed-file-label{
  opacity:.82;
  border:1px dashed var(--border);
  border-radius:8px;
  padding:8px 10px;
  background:rgba(255,255,255,.01);
}
.embed-file-label input[type="file"]{
  margin-top:4px;
}
.embed-note{
  margin:-2px 0 8px;
  font-size:.78rem;
}
.menu-btn{display:none}

@media (min-width: 1025px){
  #section-calendar .split{grid-template-columns:360px minmax(0,1fr)}
  #section-calendar #perf-list{max-height:min(82vh,calc(100vh - 150px));overflow:auto}
}

@media (max-width: 1024px){
  .split{grid-template-columns:1fr}
  .discovery-layout{grid-template-columns:1fr}
  .outreach-layout{grid-template-columns:1fr}
  .pb-inner-split{grid-template-columns:1fr}
  .item-list{max-height:220px}
  .cases-list-panel .item-list{max-height:420px;overflow:auto}
  .cases-list-panel,.cases-editor-panel{padding:12px}
  .cases-list-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cases-list-summary__tile{min-height:78px}
  #section-cases .workflow-note{display:none}
  #section-cases .toolbar #cases-export-pdf{order:8;flex-basis:100%;background:transparent;color:var(--muted);border-color:rgba(255,255,255,.12)}
  .cases-quick-followup{display:grid;gap:10px;border-color:rgba(212,168,67,.26);background:linear-gradient(180deg,rgba(212,168,67,.08),rgba(255,255,255,.02))}
  .cases-quick-followup h3{margin:0;color:var(--gold);font-size:.92rem}
  .cases-quick-followup .grid.two{grid-template-columns:1fr 1fr}
  .cases-quick-followup .button-primary{width:100%;min-height:44px}
  .cases-optional-links:not([open]){padding-bottom:10px}
  .cases-danger-actions{display:block}
  #section-cases .cases-editor-panel > .toolbar #cases-delete{display:none}
  .pb-preview-sheet{min-height:0}
  .pb-preview-column .editor-section{position:static}
  .pb-arc-slot{grid-template-columns:1fr}
  .pb-arc-slot button{width:100%}
  .pb-suggestion-card{flex-direction:column}
  .pb-suggestion-card button{width:100%}
  .cases-followup-actions button{flex:1 1 120px}
  .cases-row__meta-grid{grid-template-columns:1fr}
}
@media (min-width:1025px){
  .cases-danger-actions{display:none}
}
@media (max-width: 860px){
  .nav-more{border:1px solid var(--border);border-radius:10px;background:#11151d}
  .nav-more__summary{padding:10px 12px;border-radius:10px;border:0;background:transparent}
  .nav-more__items{padding:0 8px 8px}
  .nav-mobile-config{display:block;border:1px dashed var(--border);border-radius:10px;background:#10141c}
  .nav-mobile-config__summary{list-style:none;cursor:pointer;padding:9px 12px;border-radius:10px;color:var(--muted);font-size:.78rem}
  .nav-mobile-config__summary::-webkit-details-marker{display:none}
  .nav-mobile-config__summary::after{content:'+';float:right;color:#c9d2e4}
  .nav-mobile-config[open] .nav-mobile-config__summary::after{content:'−'}
  .sidebar{position:fixed;left:0;top:0;bottom:0;transform:translateX(-100%);transition:transform .24s ease;z-index:30}
  .sidebar.open{transform:translateX(0)}
  .menu-btn{display:inline-block}
  .grid.two{grid-template-columns:1fr}
  .topbar{align-items:flex-start;flex-wrap:wrap;row-gap:8px}
  .menu-btn{order:1}
  .ctx{order:2;font-size:.82rem;flex:1 1 calc(100% - 56px);min-width:0;flex-wrap:wrap;row-gap:6px}
  .ctx select{min-width:72px;padding:8px}
  .pb-split,
  .pb-main-column,
  .pb-preview-column,
  .pb-main-step,
  .pb-selected-wrap,
  .pb-quick-picks-wrap,
  .pb-encore-list,
  .pb-suggestion-groups,
  .pb-suggestion-group,
  .pb-fee-explainer,
  .pb-fee-topline,
  .pb-fee-quick-output,
  .pb-fee-metrics,
  .pb-preview-sheet,
  .pb-print-sheet__page,
  .pb-save-strip,
  .pb-save-state-wrap,
  .pb-save-actions{
    min-width:0;
  }
  #section-programbuilder{padding-bottom:108px}
  #section-programbuilder > p.muted{display:none}
  .pb-flow-strip{position:sticky;top:64px;z-index:4;flex-wrap:nowrap;overflow:auto;padding:2px 0 8px;margin:0 0 12px;background:linear-gradient(180deg,var(--bg),rgba(15,17,21,.92))}
  .pb-flow-strip::-webkit-scrollbar{display:none}
  .pb-flow-strip__button{white-space:nowrap;flex:0 0 auto}
  .pb-mobile-action-bar{position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:9;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(12,16,24,.94);box-shadow:0 18px 40px rgba(0,0,0,.34);backdrop-filter:blur(12px)}
  .pb-mobile-action-bar button{width:100%;min-width:0;padding:10px 8px;font-size:.74rem;line-height:1.2;text-align:center}
  .pb-mobile-action-bar .button-primary{box-shadow:none}
  .pb-mobile-shell{scroll-margin-top:112px}
  .pb-mobile-shell > .pb-mobile-section-summary{padding:2px 0}
  .pb-mobile-shell[open] > .pb-mobile-section-summary{margin-bottom:10px}
  .pb-step-heading p,
  .pb-selected-head p,
  .pb-quick-picks-head p,
  .pb-output-summary__copy span,
  .pb-helper-copy,
  .pb-selected-head--controls .muted,
  #pb-smart-draft-note{display:none}
  .pb-split .editor-section .toolbar label{min-width:0;flex:1 1 100%}
  .pb-split .editor-section .toolbar button{flex:1 1 auto}
  .pb-selector-toolbar--simple{display:grid;grid-template-columns:1fr;gap:8px}
  .pb-selector-toolbar--simple label{min-width:0;width:100%}
  .pb-selector-toolbar--simple button{width:100%}
  #pb-rep-count,#pb-blueprint-key,#pb-target-duration,#pb-current-duration,#pb-duration-status,#pb-status{white-space:normal}
  .pb-offer-field__actions{align-items:flex-start}
  .pb-offer-field__actions--title{justify-content:flex-start}
  .pb-save-actions{justify-content:flex-start}
  .pb-save-as-menu{width:100%}
  .pb-save-as-menu summary{text-align:left}
  .pb-save-as-menu__panel{position:static;min-width:0;box-shadow:none;margin-top:8px}
  .pb-selected-head{display:block}
  .pb-selected-head button{margin-top:10px;width:100%}
  .pb-selected-head--controls{display:grid;grid-template-columns:1fr;gap:8px}
  .pb-selected-head--controls button{margin-top:0}
  .pb-duration-board__top,.pb-duration-board__meta{display:grid;grid-template-columns:1fr;gap:8px}
  .pb-duration-board__stat{min-width:0}
  .pb-quick-picks-shell > .pb-quick-picks-wrap{margin-top:8px}
  .pb-quick-picks-head{margin-bottom:6px}
  #pb-blueprint-list{max-height:min(42vh,360px)}
  .pb-selected-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:sticky;bottom:calc(84px + env(safe-area-inset-bottom));z-index:3;padding-top:8px;background:linear-gradient(180deg,rgba(15,17,21,0),rgba(15,17,21,.92) 24%,var(--bg))}
  .pb-selected-actions button{width:100%}
  .pb-piece-alternatives__head{display:block}
  .pb-piece-alternatives__head .muted{display:block;margin-top:4px}
  .pb-piece-alternatives__item{display:grid;grid-template-columns:1fr;gap:10px}
  .pb-piece-alternatives__item button{width:100%}
  .pb-saved-summary__head{display:block}
  .pb-saved-summary__grid{grid-template-columns:1fr}
  .pb-fee-metrics{grid-template-columns:1fr 1fr}
  .pb-fee-topline{grid-template-columns:1fr}
  .pb-fee-quick-output{grid-template-columns:1fr}
  .pb-fee-result-card{grid-template-columns:1fr}
  .pb-fee-actions-row{flex-direction:column}
  .pb-fee-actions-row button{width:100%;min-height:44px}
  .pb-fee-choice-buttons{display:grid;grid-template-columns:1fr 1fr}
  .pb-fee-choice-btn{min-height:44px;padding:10px 12px}
  .pb-fee-reality-quick{grid-template-columns:1fr 1fr}
  .pb-fee-reality-quick label{grid-column:1/-1}
  .pb-fee-reality-quick .pb-fee-choice-btn:last-child{grid-column:1/-1}
  .pb-fee-scenario-btn{min-height:44px;padding:10px 16px}
  .pb-preview-sheet{padding:16px;max-width:100%}
  .item-badges{display:flex;flex-wrap:wrap;gap:4px 6px;margin-left:0}
  .item-badge{margin:0}
  .pb-quick-picks__body .item-badges,
  .pb-suggestion-card__body .item-badges{margin-top:6px}
  .pb-build-summary{gap:6px}
  .pb-build-summary .pill{white-space:normal;line-height:1.3}
  .pb-preview-sheet__title{font-size:1.58rem}
  .pb-preview-sheet__artist{font-size:1.68rem}
  .pb-preview-sheet__header{display:grid;grid-template-columns:1fr;gap:12px}
  .pb-preview-sheet__identity{width:100%}
  .pb-preview-sheet__portrait{width:76px;height:76px}
  .pb-preview-sheet__detail{grid-template-columns:1fr;gap:2px}
  .pb-preview-sheet__detail strong{font-size:.72rem;letter-spacing:.1em}
  .pb-helper-copy{max-width:none}
  .pb-print-view{padding:12px}
  .pb-print-view__controls{display:block;padding:12px 14px}
  .pb-print-view__actions{margin-top:12px}
  .pb-print-view__actions button{width:100%}
  .pb-print-sheet__page{padding:24px 22px}
  .pb-print-sheet__header{gap:14px}
  .pb-print-sheet__portrait{width:88px;height:88px}
  .pb-print-sheet__title{font-size:1.7rem}
  .pb-print-sheet__artist{font-size:1.7rem}
  .pb-print-sheet__detail{grid-template-columns:30mm minmax(0,1fr)}
  .pb-quick-picks-head{display:block}
  .pb-quick-picks__item{display:block}
  .pb-quick-picks__item button{margin-top:10px;width:100%}
  .pb-quick-add-modal{padding:10px}
  .pb-quick-add-modal__dialog{padding:14px}
  .pb-encore-item__grid{grid-template-columns:1fr}
  .pb-arc-slot__actions{justify-content:flex-start}
  .pb-output-summary{align-items:center}
  .pb-output-summary__copy strong{font-size:.94rem}
  .pb-output-summary__copy span{font-size:.78rem}
  .actions{order:3;max-width:100%;width:100%;justify-content:flex-start;gap:10px}
  .actions-primary{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .actions-primary .pill{grid-column:1 / -1;justify-self:stretch;text-align:center}
  .actions-primary button{display:inline-flex;align-items:center;justify-content:center}
  .actions-primary .toggle-chip{grid-column:1 / -1;justify-content:center}
  .actions-more{display:block;width:100%;border:1px solid var(--border);border-radius:10px;background:#11151d}
  .actions-more summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;padding:10px 12px;color:var(--muted);font-size:.8rem}
  .actions-more summary::-webkit-details-marker{display:none}
  .actions-more summary::after{content:'+';font-size:1rem;color:var(--gold)}
  .actions-more[open] summary::after{content:'−'}
  .actions-tools{padding:0 10px 10px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .actions-tools label{grid-column:1 / -1}
  .actions-tools button,.actions-tools .import-label{padding:8px 10px;font-size:.78rem;min-width:0;display:inline-flex;align-items:center;justify-content:center;text-align:center}
  .content{padding:10px}
  .section{padding:12px;min-width:0}
  .toolbar button,.toolbar .import-label{flex:1 1 calc(50% - 8px);min-width:0;text-align:center}
  #section-outreach .toolbar,
  #section-calendar .toolbar{margin:8px 0}
  #section-income .toolbar{margin:8px 0}
  #section-outreach .tools-card > .toolbar,
  #section-calendar > .toolbar:not(.section-save-bar),
  #section-income > .toolbar{flex-wrap:nowrap;overflow:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px}
  #section-outreach .tools-card > .toolbar::-webkit-scrollbar,
  #section-calendar > .toolbar:not(.section-save-bar)::-webkit-scrollbar,
  #section-income > .toolbar::-webkit-scrollbar{display:none}
  #section-outreach .tools-card > .toolbar button,
  #section-calendar > .toolbar:not(.section-save-bar) button,
  #section-income > .toolbar button,
  #section-outreach .tools-card > .toolbar .pill,
  #section-calendar > .toolbar:not(.section-save-bar) .pill,
  #section-income > .toolbar .pill{flex:0 0 auto;white-space:nowrap}
  #section-outreach .tools-card > .toolbar label,
  #section-calendar > .toolbar:not(.section-save-bar) label,
  #section-income > .toolbar label{flex:0 0 190px;min-width:190px}
  #section-outreach .toolbar label,
  #section-calendar .toolbar label,
  #section-contacts .toolbar label,
  #section-cases .toolbar label{min-width:0;flex:1 1 100%}
  #section-outreach .toolbar button,
  #section-calendar .toolbar button,
  #section-contacts .toolbar button,
  #section-cases .toolbar button,
  #section-outreach .toolbar .pill,
  #section-calendar .toolbar .pill,
  #section-contacts .toolbar .pill,
  #section-cases .toolbar .pill{flex:1 1 calc(50% - 8px);min-width:0;text-align:center;justify-content:center}
  #section-outreach .outreach-quick-filters{flex-wrap:nowrap;overflow:auto}
  #section-outreach .outreach-quick-filters button{flex:0 0 auto;min-width:164px;min-height:38px}
  #section-outreach .toolbar .pill,
  #section-calendar .toolbar .pill{display:inline-flex;align-items:center;min-height:40px}
  #section-outreach .outreach-layout > .editor.tools-card:first-child{order:2}
  #section-outreach .outreach-layout > .editor.tools-card:last-child{order:1}
  #section-outreach #outreach-list{max-height:none;overflow:visible;padding-right:0}
  #section-outreach .outreach-card{padding:11px;gap:7px;scroll-margin-top:76px}
  #section-outreach .outreach-card__head strong{font-size:.98rem}
  #section-outreach .outreach-card__head{align-items:center}
  #section-outreach .outreach-card__decision{gap:6px}
  #section-outreach .outreach-card__actions{gap:5px}
  #section-outreach .outreach-card__action{min-height:32px;padding:6px 10px}
  #section-outreach .outreach-card__recent{font-size:.74rem}
  #section-outreach .outreach-card__signals{gap:5px}
  #section-outreach .outreach-card.active{box-shadow:0 0 0 2px rgba(212,168,67,.22)}
  #section-outreach .outreach-card__active-flag{display:inline-flex;align-items:center;border:1px solid rgba(212,168,67,.45);border-radius:999px;padding:2px 7px;font-size:.65rem;letter-spacing:.08em;text-transform:uppercase;color:#f4d98f;background:rgba(212,168,67,.14)}
  #section-outreach .outreach-editor__head{position:static;top:auto;z-index:auto;padding:0;border:0;border-radius:0;background:transparent;backdrop-filter:none}
  #section-outreach .outreach-editor__head h4{font-size:.95rem}
  #section-outreach .outreach-editor__head .item-badges{margin-left:auto}
  #section-outreach .outreach-editor .grid.two{grid-template-columns:1fr}
  #section-outreach .outreach-editor__block{gap:7px;padding:10px 11px}
  #section-outreach .outreach-editor__block--contact{order:1}
  #section-outreach .outreach-editor__block--history{order:2}
  #section-outreach .outreach-editor__block--message{order:3}
  #section-outreach .outreach-editor__block--fit{order:4}
  #section-outreach .outreach-editor__block--offers{order:5}
  #section-outreach .outreach-editor{gap:10px}
  #section-outreach .outreach-editor__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  #section-outreach .outreach-editor__actions button{width:100%;min-height:42px;padding:10px 8px}
  #section-outreach .outreach-editor__actions--contact-quick{grid-template-columns:1fr 1fr}
  #section-outreach .outreach-editor__actions--history-quick{grid-template-columns:1fr}
  #section-outreach .outreach-editor__actions--history-add{grid-template-columns:1fr}
  #section-outreach .outreach-history-entry-grid{grid-template-columns:1fr}
  #section-outreach .outreach-history{max-height:none;overflow:visible;padding-right:0}
  #section-outreach .outreach-editor__footer{position:static;bottom:auto;z-index:auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}
  #section-outreach .outreach-editor__footer .button-primary{flex:1 1 100%}
  #section-outreach .outreach-editor__footer button{min-height:42px}
  #section-calendar #perf-list{max-height:36vh}
  #section-calendar .calendar-editor{min-width:0}
  #section-calendar .calendar-editor-current{align-items:flex-start;flex-direction:column}
  #section-calendar .calendar-editor .editor-section{padding:11px}
  #section-calendar .split{grid-template-columns:1fr;gap:10px}
  #section-calendar .calendar-editor{order:1}
  #section-calendar .calendar-event-list-panel{order:2}
  #section-calendar #perf-list{max-height:34vh;overflow:auto;scroll-padding-top:8px}
  #section-calendar #perf-list .item{padding:11px 10px}
  #section-calendar #perf-list .item.active{box-shadow:inset 0 0 0 1px rgba(212,168,67,.35)}
  #section-calendar .calendar-editor .editor-section:first-child{border-color:rgba(212,168,67,.2);background:linear-gradient(180deg,rgba(212,168,67,.07),rgba(255,255,255,.02))}
  #section-calendar .calendar-editor .editor-section:first-child h3{margin-bottom:8px}
  #section-calendar .calendar-editor .editor-section details{scroll-margin-top:76px}
  #section-calendar .calendar-editor details.details-block summary{padding:8px 0}
  #section-calendar .calendar-list-head{display:grid;grid-template-columns:1fr;gap:8px}
  #section-calendar .calendar-list-head .button-primary{width:100%}
  #section-calendar .calendar-event-row__inner{grid-template-columns:auto minmax(68px,78px) minmax(0,1fr);gap:8px;padding:10px}
  #section-calendar .calendar-event-row__badges{grid-column:3;justify-content:flex-start;max-width:100%;margin-top:2px}
  #section-calendar .calendar-event-row__title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  #section-calendar .calendar-event-row__location{white-space:nowrap}
  #section-calendar .calendar-tools-toolbar{display:grid;grid-template-columns:1fr;gap:8px}
  #section-calendar .calendar-tools-toolbar label,
  #section-calendar .calendar-tools-toolbar button,
  #section-calendar .calendar-tools-toolbar .pill{width:100%;min-width:0}
  #section-calendar .calendar-editor .translation-qa{padding:8px 10px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(255,255,255,.02)}
  #section-calendar{padding-bottom:88px}
  #section-calendar .section-save-bar{position:sticky;bottom:calc(10px + env(safe-area-inset-bottom));z-index:8;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(12,16,24,.94);box-shadow:0 14px 30px rgba(0,0,0,.3);backdrop-filter:blur(10px)}
  #section-calendar .section-save-bar .button-primary{flex:1 1 100%}
  #section-calendar .section-save-bar button{min-height:42px}
  #section-calendar .section-save-bar label{flex:1 1 100%}
  #section-calendar.active .calendar-mobile-action-bar{position:sticky;bottom:calc(10px + env(safe-area-inset-bottom));z-index:8;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(12,16,24,.94);box-shadow:0 14px 30px rgba(0,0,0,.3);backdrop-filter:blur(10px)}
  .calendar-mobile-action-bar button{min-height:44px;width:100%}
  .calendar-mobile-action-bar .calendar-floating-delete{grid-column:1 / -1;border-color:rgba(204,70,70,.7);background:rgba(204,70,70,.12);color:#ffb5b5}
  #section-income .income-summary-grid{grid-template-columns:1fr 1fr}
  #section-income .income-table-wrap{max-height:56vh;overflow:auto}
  #section-income .income-table th,#section-income .income-table td{padding:9px 10px}
  #section-income .income-open-calendar{min-height:38px}
  #section-outreach input,#section-outreach select,#section-outreach textarea,
  #section-calendar input,#section-calendar select,#section-calendar textarea,
  #section-programbuilder input,#section-programbuilder select,#section-programbuilder textarea{font-size:16px;min-height:44px}
  #section-programbuilder button,
  #section-outreach button,
  #section-calendar button{min-height:42px}
  body.programbuilder-section .actions-more{width:100%;flex:1 1 100%}
  .pill{font-size:.7rem}
}
@media (max-width: 480px){
  .ctx{font-size:.78rem}
  .ctx select{min-width:64px}
  .actions-primary{grid-template-columns:1fr}
  .actions-tools{grid-template-columns:1fr}
  .toolbar button,.toolbar .import-label{flex:1 1 100%}
  #section-outreach .tools-card > .toolbar label,
  #section-calendar > .toolbar:not(.section-save-bar) label,
  #section-income > .toolbar label{flex:0 0 170px;min-width:170px}
  #section-outreach .tools-card > .toolbar button,
  #section-calendar > .toolbar:not(.section-save-bar) button,
  #section-income > .toolbar button{min-height:40px;padding:8px 10px}
  #section-outreach .outreach-quick-filters button{min-width:154px;min-height:36px}
  .pb-flow-strip{top:58px}
  .pb-mobile-action-bar{left:8px;right:8px;grid-template-columns:1fr 1fr}
  .pb-preview-sheet{padding:14px}
  .pb-preview-sheet__portrait{width:68px;height:68px}
  #section-outreach .outreach-editor__head{top:auto;padding:0}
  #section-outreach #outreach-list{max-height:none}
  #section-outreach .outreach-editor__actions,
  #section-outreach .outreach-editor__actions--contact-quick{grid-template-columns:1fr}
  #section-outreach .outreach-editor__footer{bottom:auto;padding:0}
  #section-outreach .outreach-editor__footer button{flex:1 1 100%}
  #section-calendar .calendar-editor .editor-section:first-child{position:static;top:auto}
  #section-calendar #perf-list{max-height:32vh}
  #section-calendar .section-save-bar{bottom:calc(8px + env(safe-area-inset-bottom));padding:8px}
  #section-calendar .section-save-bar button{flex:1 1 100%}
  #section-calendar.active .calendar-mobile-action-bar{bottom:calc(8px + env(safe-area-inset-bottom));padding:8px}
  #section-income .income-summary-grid{grid-template-columns:1fr}
  #section-income .income-table-wrap{max-height:52vh}
  #section-income .income-table th:nth-child(4),
  #section-income .income-table td:nth-child(4),
  #section-income .income-table th:nth-child(6),
  #section-income .income-table td:nth-child(6){display:none}
}
@media (max-width: 430px){
  .content{padding:8px}
  .section{padding:10px}
  .pb-split,
  .pb-main-column,
  .pb-preview-column,
  .pb-main-step,
  .pb-output-step,
  .pb-quick-picks-wrap,
  .pb-selected-wrap,
  .pb-encore-list,
  .pb-arc-builder,
  .pb-suggestion-groups,
  .pb-suggestion-group,
  .pb-fee-explainer,
  .pb-fee-topline,
  .pb-fee-quick-output,
  .pb-fee-metrics,
  .pb-save-strip,
  .pb-save-state-wrap,
  .pb-save-actions,
  .pb-preview-sheet,
  .pb-print-sheet__page{
    width:100%;
    min-width:0;
  }
  .pb-selector-toolbar--simple,
  .pb-split .editor-section .toolbar,
  .pb-save-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }
  .pb-selector-toolbar--simple label,
  .pb-split .editor-section .toolbar label{
    min-width:0;
    width:100%;
  }
  .pb-selector-toolbar--simple button,
  .pb-split .editor-section .toolbar button,
  .pb-save-actions button,
  .pb-save-actions .details-block{
    width:100%;
  }
  .pb-quick-picks__item,
  .pb-suggestion-card,
  .pb-encore-item,
  .pb-arc-slot{
    padding:10px 11px;
  }
  .pb-quick-picks__item button,
  .pb-suggestion-card button,
  .pb-arc-slot button,
  .pb-encore-item button{
    width:100%;
    min-width:0;
  }
  .pb-preview-sheet__header,
  .pb-print-sheet__header{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .pb-preview-sheet__identity,
  .pb-print-sheet__identity{
    width:100%;
  }
  .pb-preview-sheet__artist,
  .pb-print-sheet__artist{
    font-size:1.52rem;
  }
  .pb-preview-sheet__title,
  .pb-print-sheet__title{
    font-size:1.42rem;
  }
  .pb-preview-sheet__detail,
  .pb-print-sheet__detail{
    grid-template-columns:1fr;
    gap:2px;
  }
  .pb-preview-sheet__portrait,
  .pb-print-sheet__portrait{
    width:64px;
    height:64px;
  }
  .pb-preview-sheet__body p,
  .pb-preview-sheet__piece-meta,
  .pb-preview-sheet__contact a,
  .pb-preview-sheet__contact span,
  .pb-print-sheet__body p,
  .pb-print-sheet__piece-meta,
  .pb-print-sheet__contact a,
  .pb-print-sheet__contact span{
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .pb-build-summary{gap:6px}
  .pb-build-summary .pill{white-space:normal;line-height:1.3}
  .item-badges{display:flex;flex-wrap:wrap;gap:4px 6px;margin-left:0}
  .item-badge{margin:0}
  .item-main,.pb-quick-picks__body,.pb-suggestion-card__body,.pb-arc-slot__label,.pb-save-state-copy{min-width:0}
}
/* ── Calendar refactor: mobile header, quick edit, accordion summaries ── */
.calendar-mobile-header{display:none;position:sticky;top:0;z-index:5;background:rgba(12,16,24,.96);border:1px solid var(--border);border-radius:12px;padding:10px 12px;margin-bottom:10px;backdrop-filter:blur(10px)}
.calendar-mobile-header__info{display:grid;gap:2px;min-width:0;flex:1}
.calendar-mobile-header__title{font-weight:700;font-size:.9rem;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calendar-mobile-header__meta{font-size:.76rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calendar-mobile-header__actions{display:flex;gap:8px;align-items:center;flex-shrink:0}
.calendar-mobile-header__actions .sticky-save{min-height:38px;padding:6px 14px}

.calendar-mobile-drawer{position:fixed;inset:0;z-index:50;background:rgba(9,12,18,.97);padding:14px;overflow:auto;-webkit-overflow-scrolling:touch;display:none}
.calendar-mobile-drawer--open{display:block}
.calendar-mobile-drawer__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-weight:700;font-size:1rem;color:var(--text)}
.calendar-mobile-drawer .item-list{max-height:calc(100vh - 120px);overflow:auto}
.calendar-mobile-action-bar{display:none}
.calendar-desktop-delete-event{border-color:rgba(204,70,70,.7);background:rgba(204,70,70,.1);color:#ffb5b5}

/* Mobile: ensure drawer is visible when open */
@media (max-width: 1024px) {
  .calendar-mobile-drawer.calendar-mobile-drawer--open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

.quick-edit-section{border-color:rgba(212,168,67,.25)!important;background:linear-gradient(180deg,rgba(212,168,67,.08),rgba(255,255,255,.02))!important}
.quick-edit-section h3{color:var(--gold);margin-bottom:8px}
.calendar-quick-title-fields{display:grid}
.quick-edit-money{margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.06)}
.calendar-mobile-danger-actions{margin-top:10px;border:1px solid rgba(204,70,70,.32);border-radius:10px;background:rgba(204,70,70,.06)}
.calendar-mobile-danger-actions summary{cursor:pointer;padding:10px 12px;color:#ffb5b5;font-size:.82rem}
.calendar-mobile-danger-actions .toolbar{padding:0 10px 10px}

.accordion-summary-rich{display:flex;justify-content:space-between;align-items:center;gap:8px}
.accordion-summary-rich .pill{flex-shrink:0;font-size:.68rem}

/* Desktop: hide mobile header */
@media (min-width: 1025px){
  .calendar-mobile-header{display:none!important}
  .calendar-mobile-drawer{display:none!important}
  .calendar-editor-current{display:flex}
  /* Desktop tools: hide mobile accordion, show desktop save bar */
  .calendar-more-tools-mobile{display:none}
  .section-save-bar{display:flex}
}

/* Mobile: show mobile header, hide desktop header */
@media (max-width: 1024px){
  .calendar-mobile-header{display:flex;align-items:center;gap:10px}
  .calendar-editor-current{display:none}
  .quick-edit-section .grid.three{grid-template-columns:1fr 1fr}
  #section-calendar .calendar-editor .editor-section:first-child{position:static;top:auto}
  #section-calendar .calendar-editor details.details-block summary{padding:10px 0}
  .calendar-mobile-header__actions .button-small{min-height:38px;padding:8px 12px}
  /* Hide full event list on mobile */
  .calendar-event-list-panel{display:none}
  .split{grid-template-columns:1fr}
  /* Mobile tools: hide desktop save bar, show mobile accordion */
  .section-save-bar{display:none}
  .calendar-more-tools-mobile{display:block}
}

@page{
  size:A4 portrait;
  margin:0;
}
@media print{
  html,body{
    margin:0!important;
    padding:0!important;
    min-width:0!important;
    width:auto!important;
    height:auto!important;
    background:#fff!important;
    overflow:visible!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
  body.programme-print-active > *:not(#pb-print-view){
    display:none!important;
  }
  body.programme-print-active #pb-print-view,
  body.programme-print-active #pb-print-view *{
    visibility:visible!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
  body.programme-print-active #pb-print-view{
    display:block!important;
    position:static!important;
    left:0!important;
    top:0!important;
    right:0!important;
    inset:auto!important;
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
    overflow:visible!important;
    transform:none!important;
    scale:1!important;
    zoom:1!important;
    filter:none!important;
  }
  body.programme-print-active #pb-print-view[hidden]{
    display:none!important;
  }
  .pb-print-view__controls,
  .admin-shell,
  .admin-dialog,
  .toast,
  .overlay,
  .preview-chrome{
    display:none!important;
  }
  #pb-print-sheet,
  .pb-print-sheet{
    display:block!important;
    width:210mm!important;
    min-width:0!important;
    max-width:210mm!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    transform:none!important;
    scale:1!important;
    zoom:1!important;
  }
  .pb-print-sheet__page{
    width:210mm!important;
    min-height:auto!important;
    height:auto!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding:20mm 14.75mm 15mm!important;
    background:#fff!important;
    box-shadow:none!important;
    border:none!important;
    border-radius:0!important;
    overflow:visible!important;
    transform:none!important;
    scale:1!important;
    zoom:1!important;
    page-break-after:auto!important;
    break-after:auto!important;
    page-break-inside:auto!important;
  }
  .pb-print-sheet__page:not(:last-child){
    page-break-after:always!important;
    break-after:page!important;
  }
  .pb-print-sheet__header,
  .pb-print-sheet__body,
  .pb-print-sheet__footer,
  .pb-print-sheet__list li,
  .pb-print-sheet__contact{
    page-break-inside:avoid!important;
    break-inside:avoid!important;
  }
  .pb-print-sheet__portrait{
    page-break-inside:avoid!important;
    break-inside:avoid!important;
  }
}

.lang-compare-panel{
  flex-basis:100%;
  width:100%;
  margin:6px 0 0;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#11151d;
  font-size:.8rem;
  max-height:240px;
  overflow:auto;
}
.lang-compare-panel[hidden]{display:none!important}
.lang-compare-panel .tx-cmp-title{margin:0 0 8px;font-size:.85rem;color:var(--gold)}
.tx-cmp-table{width:100%;border-collapse:collapse;font-size:.74rem}
.tx-cmp-table td,.tx-cmp-table th{border:1px solid var(--border);padding:6px 8px;vertical-align:top}
.tx-cmp-table th{text-align:left;color:var(--muted);font-weight:600}
.tx-cmp-k{font-family:ui-monospace,Menlo,monospace;color:#b7c3d8;white-space:nowrap}
.tx-cmp-en{color:#9ed7ff}
.tx-cmp-cur{color:var(--text)}
.tx-cmp-tag{display:inline-block;padding:2px 6px;border-radius:999px;font-size:.65rem;border:1px solid var(--border);color:var(--muted)}
.tx-cmp-missing .tx-cmp-tag{color:#ffd38a;border-color:#86683a;background:rgba(168,122,43,.14)}
.tx-cmp-different .tx-cmp-tag{color:#c7d9ff;border-color:#4c6f9a}
.tx-cmp-verify .tx-cmp-tag{color:#ffd38a;border-color:#6a5e3a;background:rgba(120,100,40,.12)}
.tx-cmp-same .tx-cmp-tag{color:#94e8b1;border-color:#3a7f53;background:rgba(64,142,91,.1)}
.tx-cmp-local_only .tx-cmp-tag{color:#b7c3d8}

.translation-workspace{display:grid;gap:10px;margin-top:10px}
.tx-card{border:1px solid var(--border);border-radius:10px;background:#11151d;padding:12px}
.tx-card h3{margin:0 0 8px;font-size:.88rem;color:var(--text)}
.tx-card-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px;font-size:.76rem;color:var(--muted)}
.tx-grid{display:grid;grid-template-columns:96px 1fr 1fr;gap:6px 10px;font-size:.74rem;align-items:start}
.tx-grid-h{font-weight:600;color:var(--muted);border-bottom:1px solid var(--border);padding-bottom:4px;margin-bottom:2px}
.tx-cell-en{color:#9ed7ff;word-break:break-word;max-height:4.2em;overflow:hidden}
.tx-cell-cur{color:var(--text);word-break:break-word;max-height:4.2em;overflow:hidden}
.tx-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.tx-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.68rem;border:1px solid var(--border)}
.tx-badge-muted{color:var(--muted)}
.tx-badge-needs-translation{color:#ffd38a;border-color:#86683a;background:rgba(168,122,43,.14)}
.tx-badge-translated{color:#9ed7ff;border-color:#3c6f94;background:rgba(56,110,156,.14)}
.tx-badge-reviewed{color:#94e8b1;border-color:#3a7f53;background:rgba(64,142,91,.12)}
.translation-qa{font-size:.8rem;line-height:1.5}
.translation-qa ul{margin:6px 0 0;padding-left:1.2em}
.translation-qa li{margin:4px 0}
#perf-detail-translation-warn,
#perf-modal-longdesc-translation-warn,
#perf-modal-link-label-translation-warn,
#perf-modal-link-translation-warn{display:block;margin-top:4px}
.tx-lang-picker{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.tx-lang-picker label{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;color:var(--muted)}
#perf-tx-result{margin-top:8px}
.adm2-tx-missing-only .tx-missing-only-hide{display:none!important}

.button-primary{border-color:var(--gold);background:rgba(212,168,67,.12);color:var(--gold)}
.button-primary:hover{border-color:#e0b74a;background:rgba(212,168,67,.18)}
body.programbuilder-section #saveState,
body.programbuilder-section #activitySummary,
body.programbuilder-section #langCompareSummary{display:none!important}
body.programbuilder-section .actions-more{display:block;width:auto;border:1px solid var(--border);border-radius:10px;background:#11151d;flex:0 0 auto}
body.programbuilder-section .actions-more summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;padding:10px 12px;color:var(--muted);font-size:.8rem}
body.programbuilder-section .actions-more summary::-webkit-details-marker{display:none}
body.programbuilder-section .actions-more summary::after{content:'+';font-size:1rem;color:var(--gold)}
body.programbuilder-section .actions-more[open] summary::after{content:'−'}
body.programbuilder-section .actions-tools{padding:0 10px 10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.programbuilder-section .actions-tools label{grid-column:1 / -1}
body.programbuilder-section .actions-tools button,
body.programbuilder-section .actions-tools .import-label{min-width:0;display:inline-flex;align-items:center;justify-content:center;text-align:center}
.admin-dialog{position:fixed;inset:0;z-index:80;background:rgba(5,7,11,.72);display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(10px)}
.admin-dialog[hidden]{display:none!important}
.admin-dialog__card{width:min(720px,100%);background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:16px}
.admin-dialog__card h3{margin:0 0 8px;color:var(--gold)}
.admin-dialog__card textarea{min-height:220px}
.section-save-bar{margin-top:16px;padding-top:12px;border-top:1px solid var(--border)}
.mobile-section-save-bar{display:none}
.mobile-section-save-bar[hidden]{display:none!important}
.toolbar--tight{margin:6px 0 0}
.closeout-card{margin-top:12px}
.closeout-list{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px;font-size:.86rem}
.closeout-list label{display:flex;align-items:flex-start;gap:8px;cursor:pointer;color:var(--text)}
.closeout-list input[type="checkbox"]{width:auto;margin-top:2px;flex-shrink:0}
details.details-block summary{cursor:pointer;color:var(--gold);font-size:.86rem;font-weight:600;padding:6px 0;list-style:none}
details.details-block summary::-webkit-details-marker{display:none}
details.tools-card.details-block summary{color:var(--muted);font-weight:600}
details.details-block > .muted:first-of-type{margin-top:8px}
.publishing-summary h3.tools-subheading:first-child{margin-top:0}
code{font-family:ui-monospace,Menlo,monospace;font-size:.85em;background:rgba(0,0,0,.2);padding:1px 5px;border-radius:4px;color:#c5d4e8}
.admin-help-card{margin-bottom:12px}
.admin-help-body{padding:4px 0 2px}
.admin-help-body p{margin:0 0 10px;line-height:1.5}
.admin-help-body p:last-child{margin-bottom:0}
.admin-help-body strong{color:var(--text);font-weight:600}

/* Internal calendar view */
.internal-calendar-container{margin-top:16px}
.internal-calendar-summary{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.internal-calendar-summary__chip{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);font-size:.7rem;color:var(--muted)}
.internal-calendar-summary__chip strong{color:var(--text)}
.internal-calendar-list{display:flex;flex-direction:column;gap:12px}
.internal-calendar-event{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;padding:14px;background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.01));border:1px solid rgba(255,255,255,.08);border-radius:12px;align-items:start;cursor:pointer;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.internal-calendar-event:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(0,0,0,.14);border-color:rgba(255,255,255,.14)}
.internal-calendar-event--public{border-left:3px solid rgba(76,175,80,.42)}
.internal-calendar-event--private{background:linear-gradient(180deg,rgba(212,168,67,.08),rgba(212,168,67,.03));border-color:rgba(212,168,67,.22);border-left:3px solid rgba(212,168,67,.46)}
.internal-calendar-event--past{opacity:.84}
.internal-calendar-event--past .internal-calendar-event__date{background:rgba(94,111,135,.18);color:#bfd0e3}
.internal-calendar-event--hidden{opacity:.64;background:linear-gradient(180deg,rgba(120,128,144,.10),rgba(120,128,144,.04));border-style:dashed}
.internal-calendar-event--hidden .internal-calendar-event__title{text-decoration:line-through}
.internal-calendar-event:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.internal-calendar-event__date{display:grid;gap:5px;font-family:var(--ff-caps);font-size:.65rem;letter-spacing:.09em;color:var(--muted);text-align:center;padding:9px 6px;background:rgba(0,0,0,.16);border-radius:8px}
.internal-calendar-event__time{display:inline-flex;align-items:center;justify-content:center;padding:2px 6px;border-radius:999px;background:rgba(255,255,255,.05);font-size:.61rem;letter-spacing:.06em;color:var(--text)}
.internal-calendar-event__body{display:grid;gap:6px;min-width:0}
.internal-calendar-event__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.internal-calendar-event__title{font-weight:620;color:var(--text);font-size:.97rem;line-height:1.28;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-wrap:balance}
.internal-calendar-event__open{font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.42);white-space:nowrap}
.internal-calendar-event__meta{display:flex;flex-wrap:wrap;gap:5px 7px;font-size:.74rem;color:var(--muted)}
.internal-calendar-event__venue{color:var(--muted);opacity:.9}
.internal-calendar-event__status{font-size:.66rem;padding:2px 7px;border-radius:999px;display:inline-block;width:fit-content;font-family:var(--ff-caps);letter-spacing:.05em;border:1px solid transparent}
.internal-calendar-event__status--public{background:rgba(76,175,80,.11);color:#74c97b;border-color:rgba(76,175,80,.18)}
.internal-calendar-event__status--private{background:rgba(212,168,67,.11);color:#d7b468;border-color:rgba(212,168,67,.18)}
.internal-calendar-event__status--past{background:rgba(96,125,139,.14);color:#bfd0e3;border-color:rgba(191,208,227,.12)}
.internal-calendar-event__status--hidden{background:rgba(134,142,156,.12);color:#c8d0da;border-color:rgba(213,216,222,.12)}
.internal-calendar-event__revenue{display:flex;flex-wrap:wrap;gap:5px 7px;font-size:.72rem;color:var(--muted)}
.internal-calendar-event__revenue-amount{font-weight:600;color:var(--text)}
.internal-calendar-event__revenue-status{font-size:.66rem;padding:2px 6px;border-radius:999px;background:rgba(0,0,0,.14)}

/* Internal calendar grid view */
.internal-calendar-grid{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.internal-calendar-grid__header{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-bottom:8px}
.internal-calendar-grid__day{font-family:var(--ff-caps);font-size:.68rem;letter-spacing:.1em;color:var(--muted);text-align:center;padding:8px 4px;background:rgba(0,0,0,.15);border-radius:4px}
.internal-calendar-grid__row{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.internal-calendar-grid__cell{min-height:104px;padding:8px;background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.01));border:1px solid rgba(255,255,255,.08);border-radius:10px;display:flex;flex-direction:column;gap:6px;transition:border-color .18s ease,box-shadow .18s ease}
.internal-calendar-grid__cell--empty{background:transparent;border-color:transparent}
.internal-calendar-grid__cell--has-events{border-color:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.015)}
.internal-calendar-grid__cell--busy{background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(212,168,67,.035))}
.internal-calendar-grid__cell--today{border-color:var(--gold);box-shadow:0 0 0 2px rgba(212,168,67,.2)}
.internal-calendar-grid__cell-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.internal-calendar-grid__day-number{font-family:var(--ff-caps);font-size:.7rem;letter-spacing:.05em;color:var(--muted);text-align:center}
.internal-calendar-grid__day-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.05);font-size:.64rem;color:var(--muted)}
.internal-calendar-grid__events{display:flex;flex-direction:column;gap:4px}
.internal-calendar-grid__event{padding:6px 7px;background:rgba(0,0,0,.16);border-radius:7px;cursor:pointer;transition:all .2s;font-size:.72rem;border-left:3px solid transparent;min-width:0}
.internal-calendar-grid__event:hover{background:rgba(255,255,255,.08);transform:translateY(-1px)}
.internal-calendar-grid__event--public{border-left-color:rgba(76,175,80,.56)}
.internal-calendar-grid__event--private{background:rgba(212,168,67,.10);border-left-color:rgba(212,168,67,.6)}
.internal-calendar-grid__event--private:hover{background:rgba(212,168,67,.2)}
.internal-calendar-grid__event--past{opacity:.84}
.internal-calendar-grid__event--hidden{opacity:.6;border-left-style:dashed}
.internal-calendar-grid__event__time{display:block;font-size:.58rem;letter-spacing:.06em;color:var(--muted);margin-bottom:2px}
.internal-calendar-grid__event__title{font-weight:560;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.25;overflow-wrap:anywhere}

/* Mobile responsive */
@media (max-width:768px){
  .internal-calendar-event{grid-template-columns:1fr;gap:8px}
  .internal-calendar-event__date{width:fit-content;margin:0 auto}
  .internal-calendar-event__head{display:grid;gap:4px}
  .internal-calendar-event__open{display:none}
  .internal-calendar-summary{width:100%}
  .internal-calendar-summary__chip{font-size:.68rem}
  .internal-calendar-grid{gap:4px}
  .internal-calendar-grid__cell{min-height:78px;padding:6px}
  .internal-calendar-grid__day{font-size:.6rem;padding:6px 2px}
  .internal-calendar-grid__day-count{min-width:18px;height:18px;font-size:.6rem}
  .internal-calendar-grid__event{padding:5px 6px}
  .internal-calendar-grid__event__time{font-size:.58rem}
  .internal-calendar-grid__event__title{font-size:.7rem}
}
@media (min-width:1024px){
  .cases-workspace{gap:18px}
  .cases-row{grid-template-columns:110px minmax(0,1fr) 148px;align-items:center;padding:12px 14px}
  .cases-row__head{align-items:center}
  .cases-row__title{font-size:.93rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .cases-row__priority{font-size:.64rem}
  .cases-row__action{font-size:.84rem}
  .cases-row__support{justify-content:flex-start}
  .cases-row__due{justify-items:end;text-align:right}
  .cases-row__urgency{justify-self:end}
  .cases-row__date{white-space:nowrap}
  .cases-editor-panel:not(.is-active){padding:12px}
}

.publishing-summary{margin-top:10px}
.publishing-summary .pub-sum-table{width:100%;border-collapse:collapse;font-size:.78rem;margin:0 0 14px}
.publishing-summary .pub-sum-table th,.publishing-summary .pub-sum-table td{border:1px solid var(--border);padding:6px 8px;text-align:center}
.publishing-summary .pub-sum-table th:first-child,.publishing-summary .pub-sum-table tbody th{text-align:left;color:var(--muted);font-weight:600}
.publishing-summary .tools-subheading{margin-top:18px}
.pub-jump-tools{margin-top:14px}
.publishing-ready ul{margin:8px 0 0;padding-left:1.2em;font-size:.84rem;line-height:1.45}
.publishing-ready .ok{color:#94e8b1}

.pb-programme-image-section{
  margin:14px 0 12px;
  border-color:rgba(212,168,67,.28);
  background:rgba(212,168,67,.045);
}
.pb-programme-image-section h3{margin-top:0}
.programme-image-preview-wrap{
  width:min(100%,260px);
  min-height:0;
  aspect-ratio:1/1;
  margin:8px auto 0;
  padding:0;
}
.programme-image-preview-wrap img{
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:var(--rg-img-fit, cover);
  object-position:var(--rg-img-position, center);
}
.programme-image-preview-wrap.is-empty img{display:none}
.mini-preview__image-wrap{
  width:min(100%,180px);
  aspect-ratio:4/5;
  margin:0 0 10px;
  border:1px solid rgba(212,168,67,.22);
  background:#05070a;
  overflow:hidden;
}
.mini-preview__image-wrap img{display:block;width:100%;height:100%}

.site-image-placements{margin-top:14px}
.site-image-placement-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:10px;
  margin-top:10px;
}
.site-image-placement-grid div{
  border:1px solid var(--border);
  border-radius:8px;
  padding:10px;
  background:rgba(255,255,255,.035);
}
.site-image-placement-grid strong{
  display:block;
  color:var(--text);
  font-size:.84rem;
  margin-bottom:3px;
}
.site-image-placement-grid span{
  display:block;
  color:var(--muted);
  font-size:.76rem;
  line-height:1.35;
}

/* Multilingual title section */
.multilingual-title-section {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.multilingual-fields {
  margin-top: 12px;
}

.lang-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.lang-label {
  min-width: 40px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.lang-fields {
  flex: 1;
  display: flex;
  gap: 8px;
}

.lang-title, .lang-detail {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}

.lang-title:focus, .lang-detail:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.2);
}

.multilingual-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.button-small {
  padding: 6px 12px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-small:hover {
  background: var(--panel-2);
  border-color: var(--gold);
}

/* Sticky save button for calendar editor */
.calendar-editor {
  position: relative;
}

.calendar-editor .sticky-save {
  position: sticky;
  top: 10px;
  z-index: 10;
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.calendar-editor .sticky-save:hover {
  background: #e6b958;
}

/* Hide individual language fields when shared mode is enabled */
.multilingual-title-section.shared-mode .lang-fields .lang-title {
  opacity: 0.5;
  pointer-events: none;
}

.multilingual-title-section.shared-mode .lang-fields .lang-detail {
  opacity: 1;
  pointer-events: auto;
}

/* Accordion and Localized Fields Styling */
.accordion-section {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background: var(--panel-2);
  border: none;
  color: var(--text);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.accordion-header:hover {
  background: var(--panel);
}

.accordion-arrow {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.accordion-content {
  background: var(--panel);
  padding: 16px;
  border-top: 1px solid var(--border);
}

.localized-field-group {
  margin-bottom: 24px;
}

.localized-field-group:last-child {
  margin-bottom: 0;
}

.localized-field-group h4 {
  margin: 0 0 12px 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.localized-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.localized-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.localized-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.localized-field input,
.localized-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.localized-field input:focus,
.localized-field textarea:focus {
  outline: none;
  border-color: var(--color-calendar);
  box-shadow: 0 0 0 2px rgba(236, 64, 122, 0.2);
}

.localized-field textarea {
  resize: vertical;
  min-height: 60px;
}

/* Mobile-friendly adjustments */
@media (max-width: 768px) {
  .localized-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .accordion-header {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .accordion-content {
    padding: 14px;
  }
  
  .localized-field-group {
    margin-bottom: 20px;
  }
  
  .localized-field input,
  .localized-field textarea {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .localized-field textarea {
    min-height: 80px;
  }
}

/* Compact desktop layout */
@media (min-width: 1200px) {
  .localized-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  
  .localized-field-group h4 {
    margin-bottom: 8px;
  }
}

@media (max-width:1024px){
  #section-home,
  #section-bio,
  #section-rep,
  #section-programs,
  #section-contact,
  #section-cases,
  #section-fee-estimate,
  #section-expenses,
  #section-discovery,
  #section-outreach,
  #section-pastperfs,
  #section-media,
  #section-press,
  #section-contacts,
  #section-ui,
  #section-publishing,
  #section-sitehealth{padding-bottom:88px}
  .section.active .mobile-section-save-bar:not([hidden]){
    position:sticky;
    bottom:calc(10px + env(safe-area-inset-bottom));
    z-index:8;
    display:flex;
    margin-top:16px;
    padding:10px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    background:rgba(12,16,24,.94);
    box-shadow:0 14px 30px rgba(0,0,0,.3);
    backdrop-filter:blur(10px);
  }
  .mobile-section-save-bar button{
    width:100%;
    min-height:44px;
  }
}

@media (max-width:600px){
  .section.active .mobile-section-save-bar:not([hidden]){
    bottom:calc(8px + env(safe-area-inset-bottom));
    padding:8px;
  }
}

@media (max-width:860px){
  #section-calendar.active .calendar-mobile-action-bar{
    position:fixed;
    left:12px;
    right:12px;
    margin-top:0;
  }
  .section.active .mobile-section-save-bar:not([hidden]){
    position:fixed;
    left:12px;
    right:12px;
    margin-top:0;
  }
}

@media (max-width:600px){
  #section-calendar.active .calendar-mobile-action-bar{
    left:8px;
    right:8px;
  }
  .section.active .mobile-section-save-bar:not([hidden]){
    left:8px;
    right:8px;
  }
}
