/* Integration exceptions only; ui-v2.css is the unmodified reference. */
[hidden]{display:none!important}.btn,.icon-button,.row-action,.text-link{min-height:44px}.icon-button{min-width:44px}.field input,.field select{min-height:44px}.error-message{color:#8b2827;background:#fce9e6;padding:12px;border-radius:11px}.loading{padding:24px}.legacy-note{padding:12px 16px;border:1px solid var(--border);border-radius:12px;margin:16px 0;color:var(--muted);font-size:12px}.form-actions{position:sticky;bottom:0;background:var(--paper);padding:15px 0}.drawer{overflow-y:auto}.workspace-sidebar{z-index:20}.empty-art{height:138px;background:linear-gradient(125deg,var(--navy),var(--apricot));border-radius:12px}.nav-link{min-height:44px}.global-header .lang-picker{min-height:44px}.field label{display:block}.form-error:empty{display:none}.search-field{min-width:0}.search-field input{min-width:0;width:100%}.header-inner{flex-wrap:nowrap}.compat-links{display:flex;flex-wrap:wrap;gap:12px}.mobile-global{display:none}.drawer-layer{z-index:100}.drawer-scrim{cursor:pointer}
@media(max-width:820px){.mobile-global{display:flex;gap:4px;flex-wrap:wrap;padding:8px 15px;border-bottom:1px solid var(--border)}.mobile-global a{padding:8px;font-size:12px;min-height:44px}.profile-chip>span:not(.profile-avatar){display:none}.global-actions{gap:5px}.home-grid{grid-template-columns:1fr}.header-inner{padding:0 15px;gap:8px}.brand-text{font-size:22px}.global-actions .lang-picker{max-width:70px}.workspace-sidebar.open{z-index:60}.workspace-scrim{z-index:50}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.sidebar-back{border:0;background:transparent;text-align:left;min-height:44px}.global-header .profile-avatar>.icon{color:#fff}.field input[type=checkbox]{min-height:20px;width:20px;height:20px;margin-right:10px}.mobile-global .nav-link{min-height:44px}

.global-actions .profile-chip .profile-avatar .icon{display:inline-flex}@media(max-width:820px){.workspace-sidebar{top:var(--header)}}

#t2-module .dialog-form,.drawer-body .dialog-form{display:grid;gap:16px}.field>span{display:block;margin-bottom:6px;font-weight:700;font-size:12px}.drawer-body article{min-width:0}.drawer-body .actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.drawer-body button:not([class]){border:1px solid var(--border);border-radius:12px;background:var(--white);padding:10px 16px;min-height:44px;color:var(--navy)}#t2-module select{max-width:100%;min-height:44px;border:1px solid var(--border);border-radius:11px;padding:9px;background:var(--white)}.drawer-body input,.drawer-body select,.drawer-body textarea{max-width:100%}.drawer-body .field input[type=checkbox]{width:20px}.drawer-body h2{font-size:24px}

/* Native finance forms reuse the shared surfaces and controls. */
.expense-party-list{min-width:0;border:1px solid var(--border);border-radius:12px;padding:12px}.expense-party-list .control-row{gap:8px}.expense-party{padding:10px 0;border-bottom:1px solid var(--border)}.expense-party:last-child{border-bottom:0}.drawer-body input[type=checkbox]{min-height:20px;width:20px;height:20px;accent-color:var(--coral)}.budget-metrics strong{display:block}.budget-feedback:empty{display:none}.expense-actions{display:flex;flex-wrap:wrap;gap:8px}.settlement-card{margin-block:12px}.drawer-body .search-field{max-width:100%}

.advanced-content{display:grid;gap:16px}.advanced-content>article{min-width:0}.advanced-content article button{margin:4px}.advanced-content details{margin-block:12px}.advanced-content .field{margin-block:10px}

/* Explicit account entry points remain visible on narrow screens. */
.visitor-access{background:var(--paper);max-width:1640px;margin:0 auto;padding:12px 15px;border-bottom:1px solid var(--border)}.visitor-access .actions{display:flex;flex-wrap:wrap;gap:10px;margin:0}.visitor-access p{margin:8px 0 0;font-size:12px;color:var(--muted)}

.visitor-access.is-sticky{position:sticky;top:var(--header);z-index:29}
/* Account forms live in the page, outside the drawer's sticky action bar. */
[data-account-form] .form-actions{position:static}
/* A single account entry in the header, using the existing UI V2 tokens. */
.account-control{position:relative}.account-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:45;min-width:190px;max-width:calc(100vw - 30px);padding:6px;background:var(--paper);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-high)}.account-menu button{display:block;width:100%;min-height:44px;padding:10px 14px;border:0;border-radius:8px;background:transparent;color:var(--navy);font:inherit;text-align:left;white-space:normal}.account-menu button:hover,.account-menu button:focus-visible{background:var(--coral-light,#ffeadb);outline:2px solid var(--coral);outline-offset:-2px}
/* Native Crew pages reuse the V2 cards, fields and surfaces. */
.crew-presentation .event-card-image{max-height:260px;width:100%;object-fit:cover;border-radius:12px}.crew-description{white-space:pre-line;overflow-wrap:anywhere}.crew-member-list{padding-left:20px}.crew-member-list li{padding:9px 0;overflow-wrap:anywhere}[data-module-outlet]>.surface{margin-block:16px}[data-module-outlet] .actions{display:flex;flex-wrap:wrap;gap:8px}[data-crew-card] h2{overflow-wrap:anywhere}[data-crew-card] .card-pad{padding:18px}
[data-module-outlet] .page-head h1{min-width:0;overflow-wrap:anywhere}[data-module-outlet] .actions .btn{max-width:100%;white-space:normal}
