/* Original TMS appearances. Reuse the established functional control adapter only. */
@import url('/meridian-theme.css') screen;
@media screen {
html[data-tms-interface^="studio-"],html[data-tms-interface^="studio-"] body{
 --side:248px;--font-sans:"Inter",Arial,sans-serif;--font-mono:"JetBrains Mono",monospace;
 --bg-app:#f2f5fa;--bg-panel:#fff;--bg-subtle:#edf2f8;--bg-muted:#edf2f8;--bg-hover:#e8eef8;--bg-active:#e2e9f8;--bg-selected:#e2e9f8;--bg-overlay:#101a32b8;
 --text:#17243d;--ink:#17243d;--text-secondary:#485b78;--text-tertiary:#52647f;--muted:#485b78;--text-disabled:#63728a;--text-inverse:#fff;
 --border:#c5cfde;--border-subtle:#dae1eb;--border-control:#8391a8;--border-strong:#718099;
 --brand:#4144a7;--brand-text:#32348a;--brand-hover:#30327f;--brand-subtle:#e9e9fc;--on-brand:#fff;--focus-ring:#4144a7;
 --sidebar-bg:#fff;--sidebar-text:#263a59;--sidebar-text-muted:#4c5e78;--sidebar-text-active:#32348a;--sidebar-bg-hover:#edf1fa;--sidebar-bg-active:#e9e9fc;--sidebar-border:#c5cfde;--sidebar-indicator:#4144a7;
 --status-warning-bg:#fff1d6;--status-warning-text:#765000;--status-warning-border:#b58019;
 --status-danger-bg:#fee2e2;--status-danger-text:#991b1b;--status-danger-border:#b91c1c;
 --status-success-bg:#dcf5e7;--status-success-text:#155b36;--status-success-border:#288451;
 --status-info-bg:#e3edff;--status-info-text:#234d94;--status-info-border:#4b72b0;
 --status-neutral-bg:#e9edf3;--status-neutral-text:#45526a;--status-neutral-border:#9aa6ba;
 --radius-xs:4px;--radius-sm:7px;--radius-md:12px;--radius-lg:16px;--radius-m-group:12px;
 --elev-2:0 3px 14px #17243d0c;--elev-3:0 12px 36px #17243d20;--surface:var(--bg-panel);--canvas:var(--bg-app);--red:var(--brand);
 color-scheme:light;
}
html[data-tms-interface^="studio-"],html[data-tms-interface^="studio-"] body{--accent-500:#4144a7;--accent-600:#30327f;--accent-700:#32348a;--accent-100:#e9e9fc;--accent-200:#bfc0e6;--brand:#4144a7!important;--brand-hover:#30327f!important;--brand-pressed:#32348a!important;--text-link:#32348a!important;--focus:#4144a7!important}
html[data-tms-interface^="studio-"] :is(button.primary,.global-actions-button,.brand-mark){background:var(--brand)!important;border-color:var(--brand)!important;color:#fff!important}
html[data-tms-interface="studio-atlas"] #title{font-size:30px!important;font-weight:750!important;letter-spacing:-.8px!important}
html[data-tms-interface="studio-ledger"] #title{font-family:Georgia,serif!important;font-size:30px!important;letter-spacing:-.5px!important}
html[data-tms-interface^="studio-"] :is(button,a.button-link).danger{background:#fee2e2!important;color:#991b1b!important;border-color:#b91c1c!important}
html[data-tms-interface^="studio-"] :is(.stop-number,.stop-location,.goods-line-number,.period-caption,.period-caption *,.phone-order-entity){color:var(--text-secondary)!important;opacity:1!important}
html[data-tms-interface^="studio-"] :is(.entry-booking-fields small,.entry-connection span,.entry-routing p,.entry-destination-delivery small){opacity:1!important}
html[data-tms-interface^="studio-"] .mobile-records :is(tr,td){background:var(--bg-panel)!important}
html[data-tms-interface^="studio-"] .mobile-records td::before{color:var(--text-secondary)!important}
html[data-tms-interface^="studio-"] .dossier-tabs{overflow:visible!important;flex-wrap:wrap!important}
html[data-tms-interface^="studio-"] .entry-more-sections{position:relative;z-index:60}
html[data-tms-interface^="studio-"] .entry-more-sections>div{z-index:60;min-width:210px;box-shadow:var(--elev-3)}

/* Atlas: a broad horizontal workspace, with section menus above the working area. */
html[data-tms-interface="studio-atlas"] .heading{border:0!important;border-left:5px solid var(--brand)!important;background:transparent!important;padding:8px 18px!important;margin-bottom:24px!important}
html[data-tms-interface="studio-atlas"] .heading h1{font-size:34px!important;letter-spacing:-1px!important}
html[data-tms-interface="studio-atlas"] :is(.panel,.form-block,.filter-block,.stop-card){border-radius:16px!important;box-shadow:0 4px 20px #17243d08!important}
html[data-tms-interface="studio-atlas"] .dossier-head{border-top:5px solid #4144a7!important}
html[data-tms-interface="studio-atlas"] .dossier-tabs button[aria-selected=true]{border-radius:8px 8px 0 0!important;background:#e9e9fc!important}
@media(min-width:1100px){
 html[data-tms-interface="studio-atlas"] .sidebar{position:relative!important;inset:auto!important;width:100%!important;height:142px!important;min-height:142px!important;display:grid!important;grid-template-columns:190px minmax(0,1fr) 180px;align-items:start;padding:10px 20px 70px!important;overflow:visible!important;border-bottom:1px solid var(--border)!important;z-index:50!important}
 html[data-tms-interface="studio-atlas"] .sidebar .brand{padding:5px 0!important;font-size:24px!important}
 html[data-tms-interface="studio-atlas"] .sidebar .workspace-label{display:none!important}
 html[data-tms-interface="studio-atlas"] #nav{display:flex!important;justify-content:center;align-items:start;gap:8px;overflow:visible!important;padding:0!important;min-width:0}
 html[data-tms-interface="studio-atlas"] .nav-section{position:static!important;border:0!important;margin:0!important;min-width:0}
 html[data-tms-interface="studio-atlas"] .nav-section-toggle{padding:9px 11px!important;min-height:40px!important;white-space:nowrap;gap:6px!important;font-size:12px!important}
 html[data-tms-interface="studio-atlas"] .nav-arrange{display:none!important}
 html[data-tms-interface="studio-atlas"] .nav-section-items:not([hidden]){position:absolute!important;left:210px;right:20px;top:69px;display:flex!important;flex-wrap:wrap!important;gap:4px;padding:8px!important;background:#f2f5fa!important;border-radius:10px!important;max-height:64px;overflow:auto!important}
 html[data-tms-interface="studio-atlas"] .nav-section-items[hidden]{display:none!important}
 html[data-tms-interface="studio-atlas"] .nav-item{width:auto!important;min-height:32px!important;padding:5px 12px!important;white-space:nowrap;font-size:12px!important;border-radius:7px!important}
 html[data-tms-interface="studio-atlas"] .sidebar-foot{padding:4px 0!important;font-size:9px!important;display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
 html[data-tms-interface="studio-atlas"] .sidebar-foot small{display:none!important}
 html[data-tms-interface="studio-atlas"] .shell{margin-left:0!important}
 html[data-tms-interface="studio-atlas"] .workspace-header{position:relative!important;top:auto!important;border-bottom:0!important;box-shadow:none!important;background:transparent!important}
 html[data-tms-interface="studio-atlas"] main{max-width:1800px;margin:auto;padding:24px 36px!important}
 html[data-tms-interface="studio-atlas"] .sidebar:has(.nav-inline-editor){height:360px!important;min-height:360px!important}
 html[data-tms-interface="studio-atlas"] .sidebar:has(.nav-inline-editor) .nav-section-items:not([hidden]){max-height:275px}
}

/* Ledger: warm paper, typography and ruled rows rather than dashboard cards. */
html[data-tms-interface="studio-ledger"],html[data-tms-interface="studio-ledger"] body{
 --side:244px;--bg-app:#f6f2e9;--bg-panel:#fffdf7;--bg-subtle:#f1ecdf;--bg-muted:#f1ecdf;--bg-hover:#e9e4d8;--bg-active:#e4ecdf;--bg-selected:#e4ecdf;
 --text:#25352b;--ink:#25352b;--text-secondary:#536152;--text-tertiary:#5d6759;--muted:#536152;--border:#c5c9b9;--border-subtle:#d8dbce;--border-control:#89907d;--border-strong:#717c67;
 --accent-500:#315a40;--accent-600:#24452f;--accent-700:#284d35;--accent-100:#e4ecdf;--accent-200:#adbea4;--brand:#315a40!important;--brand-hover:#24452f!important;--brand-pressed:#284d35!important;--text-link:#284d35!important;--focus:#315a40!important;--brand-text:#284d35;--brand-hover:#24452f;--brand-subtle:#e4ecdf;--focus-ring:#315a40;
 --sidebar-bg:#eeebdf;--sidebar-text:#344635;--sidebar-text-muted:#52634e;--sidebar-text-active:#24452f;--sidebar-bg-hover:#e3e7d8;--sidebar-bg-active:#dae5d3;--sidebar-border:#bcc4ae;--sidebar-indicator:#315a40;
 --radius-xs:0;--radius-sm:2px;--radius-md:2px;--radius-lg:2px;--radius-m-group:2px;--elev-2:none;--elev-3:0 8px 22px #25352b20;
}
html[data-tms-interface="studio-ledger"] :is(h1,h2,.brand){font-family:Georgia,'Times New Roman',serif!important;letter-spacing:-.4px!important}
html[data-tms-interface="studio-ledger"] h1{font-size:34px!important}
html[data-tms-interface="studio-ledger"] .sidebar{border-right:1px solid #87977e!important}
html[data-tms-interface="studio-ledger"] .sidebar .brand{font-size:28px!important;border-bottom:1px solid #87977e;padding:22px 18px!important}
html[data-tms-interface="studio-ledger"] .nav-section-toggle{font-family:Georgia,serif!important;font-size:17px!important}
html[data-tms-interface="studio-ledger"] .nav-item{border-radius:0!important;border-bottom:1px solid #d5dacb!important;padding-top:10px!important;padding-bottom:10px!important}
html[data-tms-interface="studio-ledger"] :is(.panel,.form-block,.filter-block,.stop-card,.goods-card,.dossier-head){border-radius:0!important;box-shadow:none!important;border-width:0 0 1px!important;border-color:#b7c1aa!important}
html[data-tms-interface="studio-ledger"] .heading{border-bottom:3px double #87977e!important;padding-bottom:24px!important}
html[data-tms-interface="studio-ledger"] :is(.order-number,.order-link,.schedule-window,th){font-family:"JetBrains Mono",monospace!important}
html[data-tms-interface="studio-ledger"] table{border-collapse:collapse!important}
html[data-tms-interface="studio-ledger"] th{border-bottom:3px double #87977e!important;text-transform:uppercase;font-size:10px!important;letter-spacing:.06em}
html[data-tms-interface="studio-ledger"] td{border-bottom:1px solid #cbd2bd!important;padding-top:18px!important;padding-bottom:18px!important}
html[data-tms-interface="studio-ledger"] .dossier-head{border-bottom:3px double #87977e!important}
html[data-tms-interface="studio-ledger"] .dossier-tabs button{border-radius:0!important}
html[data-tms-interface="studio-ledger"] .badge{border-radius:3px!important;font-family:var(--font-mono)!important;font-size:11px!important}
@media(max-width:820px){
 html[data-tms-interface^="studio-"] :is(input:not([type=checkbox]):not([type=radio]),select,button.primary,button.secondary){min-height:44px!important}
 html[data-tms-interface^="studio-"] .heading h1{font-size:27px!important}
 html[data-tms-interface^="studio-"] .shell{margin-left:0!important}
}
}
