.operations-ui {
    --radius-xl: .5rem;
    --radius-2xl: .75rem;
    --radius-3xl: .75rem;
    --font-weight-bold: 600;
    --font-weight-extrabold: 650;
    --font-weight-black: 650;
    --text-3xl: 1.5rem;
    --text-3xl--line-height: 1.35;
    --text-4xl: 1.75rem;
    --text-4xl--line-height: 1.3;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.5;
    background: #f5f7f9;
    min-height: 100vh;
    min-height: 100dvh;
}
.operations-ui :where(h1) { font-size: 24px; font-weight: 650; line-height: 1.4; letter-spacing: -.035em; overflow-wrap: anywhere; }
.operations-ui :where(h2) { letter-spacing: -.025em; }
.operations-ui :where(input, select, textarea) { min-width: 0; max-width: 100%; }
.operations-ui :where(fieldset) { min-width: 0; }
.operations-ui :where(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid #047857; outline-offset: 3px; }
.operations-ui :where(input, select, textarea):disabled { cursor: not-allowed; }
.operations-ui :where(section[id], form[id], h2[id]) { scroll-margin-top: 84px; }
.ops-shell { --ops-header-height: 60px; --ops-content-width: 1600px; }
.ops-header { position: sticky; top: 0; z-index: 35; height: var(--ops-header-height); display: flex; align-items: center; gap: 22px; padding: 0 24px; border-bottom: 1px solid #e2e8f0; background: #fff; }
.ops-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 16px; font-weight: 750; letter-spacing: -.04em; color: #123f35; text-decoration: none; }
.ops-brand-symbol { display: grid; place-items: center; width: 30px; height: 32px; border-radius: 8px; background: #0b5746; color: #fff; font-size: 18px; }
.ops-brand-name > span { color: #e57b63; }
.ops-surface-label { padding-left: 22px; border-left: 1px solid #e2e8f0; color: #64748b; font-size: 13px; }
.ops-mobile-title, .ops-menu-trigger { display: none; }
.ops-account { margin-left: auto; display: flex; align-items: center; gap: 18px; color: #475569; font-size: 13px; }
.ops-account button { min-height: 36px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 6px; color: #475569; background: #fff; }
.ops-workspace { display: grid; grid-template-columns: 244px minmax(0, 1fr); max-width: 1920px; margin: 0 auto; }
.ops-sidebar { position: sticky; top: var(--ops-header-height); height: calc(100vh - var(--ops-header-height)); height: calc(100dvh - var(--ops-header-height)); align-self: start; padding: 20px 14px 28px; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid #e2e8f0; background: #fff; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.ops-main { display: flex; flex-direction: column; min-width: 0; min-height: calc(100vh - var(--ops-header-height)); padding: 20px 28px 0; }
.ops-page-content { width: 100%; min-width: 0; }
.ops-main > :where(.ops-page-content, .ops-breadcrumb, .ops-readonly, footer) { width: 100%; max-width: var(--ops-content-width); margin-inline: auto; }
/* The shell owns page width; nested editors and dialogs keep their own limits. */
.ops-page-content > :where(div, section, form, main):not(.fixed):not([role='dialog']) { width: 100%; min-width: 0; max-width: none; margin-inline: 0; }
.ops-page-header { display: flex; flex-direction: column; gap: 16px; }
.ops-page-header > div { min-width: 0; }
.ops-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.ops-page-actions > :where(a, button, select) { max-width: 100%; min-height: 40px; }
.ops-panel { min-width: 0; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; padding: 20px; }
.ops-breadcrumb { display: flex; gap: 9px; align-items: center; margin-bottom: 18px; font-size: 12px; color: #64748b; }
.ops-breadcrumb span:last-child { color: #475569; }
.ops-readonly { margin-bottom: 20px; border: 1px solid #f3d599; border-radius: 8px; padding: 12px 16px; background: #fffbeb; color: #854d0e; }
.ops-section-links { display: flex; flex-wrap: wrap; gap: 6px; }
.operations-ui .ops-section-links > a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 13px; border: 1px solid #dce3e9; border-radius: 7px; background: #fff; color: #475569; font-size: 13px; font-weight: 550; }
.operations-ui .ops-section-links > a:hover { border-color: #9cb6ac; color: #145443; }
.operations-ui .ops-section-links > a[aria-current] { border-color: #145443; background: #145443; color: #fff; }
.ops-editor-heading { scroll-margin-top: 88px; }
.ops-menu-search { position: relative; margin: 0 2px 16px; }
.ops-menu-search > svg { position: absolute; top: 12px; left: 11px; width: 16px; height: 16px; color: #64748b; pointer-events: none; }
.ops-menu-search input { width: 100%; height: 40px; padding: 0 10px 0 34px; border: 1px solid #e2e8f0; border-radius: 7px; background: #f8fafc; font-size: 13px; color: #334155; outline-offset: 2px; }
.ops-menu-search input::placeholder { color: #64748b; }
.ops-navigation { display: grid; gap: 6px; }
.ops-navigation-single, .ops-navigation-group > summary { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 9px 10px; border-radius: 7px; list-style: none; font-size: 14px; font-weight: 600; color: #334155; text-decoration: none; }
.ops-navigation-group > summary::-webkit-details-marker { display: none; }
.ops-navigation-single > svg, .ops-navigation-group > summary > svg { width: 18px; height: 18px; flex-shrink: 0; color: #64748b; }
.ops-navigation-group > summary > span { flex: 1; }
.ops-navigation-group > summary > .ops-navigation-chevron { width: 14px; height: 14px; }
.ops-navigation-group[open] > summary > .ops-navigation-chevron { transform: rotate(180deg); }
.ops-navigation-items { display: grid; gap: 2px; margin: 2px 0 6px; }
.ops-navigation-items > a { display: block; min-height: 36px; padding: 8px 10px 8px 38px; border-radius: 7px; color: #526173; font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.ops-navigation :where(a, summary):hover { background: #f1f5f9; color: #164e3f; }
.ops-navigation a.active { background: #e9f4ef; color: #095441; font-weight: 650; box-shadow: inset 3px 0 0 #138064; }
.ops-navigation a.active > svg { color: #095441; }
.ops-menu-empty { padding: 16px 8px 8px; color: #64748b; font-size: 13px; }
.ops-menu-reset { justify-self: start; padding: 8px; color: #047857; font-size: 13px; font-weight: 600; }
.ops-skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: #fff; border: 2px solid #047857; padding: 10px 16px; border-radius: 8px; }
.ops-skip-link:focus { top: 8px; }
.ops-menu-dialog { position: fixed; inset: 0 0 0 auto; width: min(92vw, 380px); max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: #1e293b; }
.ops-menu-dialog[open] { display: flex; flex-direction: column; }
.ops-menu-dialog::backdrop { background: rgb(15 23 42 / .4); }
.ops-menu-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(18px, env(safe-area-inset-top)) 20px 18px; border-bottom: 1px solid #e2e8f0; }
.ops-menu-dialog-header h2 { margin: 0; font-size: 18px; font-weight: 650; }
.ops-menu-dialog-header p { margin-top: 4px; font-size: 12px; color: #64748b; }
.ops-menu-close { width: 44px; height: 44px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 26px; color: #475569; }
.ops-menu-dialog-body { flex: 1; min-height: 0; padding: 16px; overflow-y: auto; overscroll-behavior: contain; overscroll-behavior-y: contain; }
.ops-menu-dialog .ops-navigation-items > a { min-height: 44px; padding-top: 12px; padding-bottom: 12px; font-size: 14px; }
.ops-menu-dialog .ops-navigation-single, .ops-menu-dialog .ops-navigation-group > summary { min-height: 44px; }
.ops-menu-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 16px; }
.ops-menu-shortcuts a { display: grid; place-items: center; min-height: 42px; padding: 8px; border: 1px solid #d6e8df; border-radius: 7px; background: #f1f8f4; text-align: center; font-size: 13px; font-weight: 600; color: #145443; }
.ops-menu-dialog-footer { padding: 12px 20px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid #e2e8f0; }
.ops-menu-dialog-footer button { min-height: 42px; width: 100%; border: 1px solid #e2e8f0; border-radius: 7px; font-size: 13px; color: #475569; }

@media (min-width: 640px) {
    .ops-page-header { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
    .ops-page-header > :first-child:not(.ops-page-actions) { flex: 1 1 240px; }
    .ops-page-header > .ops-page-actions { justify-content: flex-end; }
}
@media (min-width: 1024px) {
    .ops-shell { --ops-header-height: 56px; }
    .ops-header { gap: 16px; padding-inline: 20px; }
    .ops-surface-label { padding-left: 16px; }
    .ops-account { gap: 12px; }
    .ops-workspace { grid-template-columns: 220px minmax(0, 1fr); }
    .ops-sidebar { padding: 12px 10px 20px; }
    .ops-main { padding: 14px 20px 0; }
    .ops-breadcrumb { margin-bottom: 10px; }
    .ops-readonly { margin-bottom: 14px; padding: 10px 14px; }
    .ops-panel { padding: 16px; }
    .ops-page-header { gap: 12px; }
    .ops-menu-search { margin-bottom: 10px; }
    .ops-menu-search > svg { top: 10px; }
    .ops-menu-search input { height: 36px; }
    .ops-navigation { gap: 2px; }
    .ops-navigation-single, .ops-navigation-group > summary { min-height: 36px; padding: 7px 9px; }
    .ops-navigation-items { gap: 0; margin: 0 0 2px; }
    .ops-navigation-items > a { min-height: 30px; padding: 5px 8px 5px 35px; }
}
@media (max-width: 1023px) {
    .ops-shell { --ops-header-height: 56px; }
    .ops-header { gap: 12px; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
    .ops-brand-name, .ops-surface-label, .ops-account, .ops-sidebar { display: none; }
    .ops-mobile-title { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
    .ops-menu-trigger { display: flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 44px; padding: 0 4px; color: #334155; font-size: 13px; }
    .ops-menu-trigger svg { width: 20px; height: 20px; }
    .ops-workspace { display: block; }
    .ops-main { padding: 18px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
    .ops-breadcrumb { margin-bottom: 14px; }
}
@media (max-width: 639px) {
    .operations-ui :where(h1) { font-size: 22px; }
    .operations-ui :where(input:not([type='checkbox']):not([type='radio']), select, textarea) { font-size: 16px; }
    .ops-menu-search input { font-size: 16px; }
    .ops-panel { padding: 16px; }
    .ops-page-actions { width: 100%; }
    .ops-page-actions > :where(a, button, select) { flex: 1 1 calc(50% - 4px); min-width: 0; justify-content: center; text-align: center; }
    .ops-page-actions > select { flex-basis: 100%; width: 100%; text-align: start; }
}
@media print {
    .operations-ui { min-height: 0; background: #fff; }
    .ops-header, .ops-sidebar, .ops-breadcrumb, .ops-menu-dialog, .ops-skip-link, .ops-main > footer { display: none !important; }
    .ops-workspace { display: block; max-width: none; }
    .ops-main { min-height: 0; padding: 0; }
    .ops-main > .ops-page-content { max-width: none; }
    .ops-page-header[class~='print:hidden'] { display: none; }
}
