/* flow visual system — Bootstrap foundations, quiet surfaces and native typography. */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5e7;
  --green: #0071e3;
  --light: #f5f5f7;
  --red: #b42318;
  --accent: #0071e3;
  --surface: #fff;
  --shadow: 0 8px 28px rgb(0 0 0 / 4%);
  --bs-primary: #0071e3;
  --bs-primary-rgb: 0, 113, 227;
  --bs-body-color: #1d1d1f;
  --bs-body-bg: #f5f5f7;
  --bs-border-color: #e5e5e7;
  --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bs-border-radius: .75rem;
}
body { background: var(--light); color: var(--ink); font-family: var(--bs-body-font-family); font-size: 14px; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -.035em; }
h1 { font-size: 30px; }
h2 { font-size: 28px; }
p { color: var(--muted); line-height: 1.65; }
a { transition: color .18s ease; }
a:hover { color: var(--accent); }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid #0071e380; outline-offset: 4px; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.subtle, .run-note, .result-status, .hero-note { color: var(--muted); }
/* A light, translucent masthead keeps the workspace visually continuous. */
.topbar.portal-nav { min-height: 68px; padding: 14px 32px; gap: 24px; background: rgb(255 255 255 / 88%); color: var(--ink); border-bottom: 1px solid #dedee3; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.ossberger-brand { border-color: var(--line); padding-right: 24px; }
.ossberger-brand img { width: 118px; max-height: 32px; filter: brightness(0); opacity: .8; }
.brand, .brand:hover { color: var(--ink); font-size: 29px; font-weight: 650; letter-spacing: -1.8px; }
.brand span { color: var(--accent); font-size: 7px; }
.topbar.portal-nav nav { gap: 26px; }
.topbar nav > * { color: #515154; font-size: 12px; }
.topbar nav a:hover { color: var(--accent); }
.topbar .nav-active { color: var(--ink); border-color: var(--accent); }
.account-nav { color: var(--ink); font-size: 12px; gap: 20px; }
.account-identity { font-weight: 500; }
.account-identity small { color: var(--muted); opacity: 1; font-weight: 400; }
.live-dot, .local-badge i { background: var(--accent); }
/* Bootstrap variants retain native form and button behavior. */
.btn, .button { border-radius: 980px; font-size: 13px; font-weight: 500; padding: 10px 19px; line-height: 1.4; transition: background .18s ease, box-shadow .18s ease, color .18s ease; }
.btn-primary, .button.primary { --bs-btn-bg: #0071e3; --bs-btn-border-color: #0071e3; --bs-btn-hover-bg: #0077ed; --bs-btn-hover-border-color: #0077ed; --bs-btn-active-bg: #0068d1; --bs-btn-active-border-color: #0068d1; background: var(--accent); border-color: var(--accent); color: white; padding: 10px 20px; }
.button.primary:hover { background: #0077ed; }
.btn-outline-primary { --bs-btn-color: #0066cc; --bs-btn-border-color: #d2d2d7; --bs-btn-hover-bg: #edf5ff; --bs-btn-hover-color: #0066cc; --bs-btn-hover-border-color: #99c4f5; --bs-btn-active-bg: #e5f0ff; --bs-btn-active-color: #0066cc; --bs-btn-active-border-color: #99c4f5; }
.button.secondary { background: white; }
.btn-lg { font-size: 16px; padding: 14px 25px; }
.btn-sm { font-size: 12px; padding: 7px 15px; }
.account-nav .btn-outline-light { --bs-btn-color: #1d1d1f; --bs-btn-border-color: #d2d2d7; --bs-btn-hover-bg: #f5f5f7; --bs-btn-hover-color: #1d1d1f; --bs-btn-hover-border-color: #b9b9bf; }
.topbar .account-nav a.btn-light { color: white; }
.account-nav .btn-light { --bs-btn-bg: #0071e3; --bs-btn-color: #fff; --bs-btn-border-color: #0071e3; --bs-btn-hover-bg: #0077ed; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #0077ed; }
.form-control, .form-select, .field input, .field select, .field textarea, select { border: 1px solid #d2d2d7; border-radius: 9px; background-color: white; color: var(--ink); font-size: 13px; padding: 10px 12px; }
.form-control:focus, .form-select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px #0071e326; }
.form-label, .field { color: #515154; font-size: 12px; }
.form-check-input { accent-color: var(--accent); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-text, .field small, .account-card small { color: var(--muted); font-size: 11px; }
/* Public introduction */
.landing { max-width: 1400px; padding: 80px 56px 64px; }
.landing-hero { grid-template-columns: 1.08fr 1fr; gap: 64px; padding: 28px 0 96px; }
.landing-hero h1 { font-size: clamp(44px, 4.8vw, 72px); font-weight: 650; letter-spacing: -.055em; line-height: 1.04; margin: 24px 0; }
.landing-hero h1 em { color: #86868b; }
.landing-hero > div > p { font-size: 19px; line-height: 1.55; color: var(--muted); }
.hero-actions { gap: 24px; margin-top: 34px; }
.hero-sign-in { color: #0066cc; font-size: 15px; font-weight: 400; }
.hero-note { font-size: 12px; margin-top: 22px; }
.hero-diagram { border: 0; border-radius: 28px; padding: 32px; box-shadow: 0 20px 70px rgb(0 0 0 / 5%); background: #fff; }
.diagram-caption { color: var(--muted); letter-spacing: .12em; }
.diagram-product { gap: 28px; padding: 32px 8px 16px; }
.diagram-product img { width: 148px; height: 210px; }
.diagram-product h2 { font-size: 30px; letter-spacing: -.04em; }
.diagram-product p { color: var(--muted); font-size: 14px; }
.diagram-line { color: var(--accent); }
.diagram-bottom > div { border: 0; background: var(--light); border-radius: 14px; padding: 18px 10px; }
.diagram-bottom strong { font-size: 12px; font-weight: 600; }
.diagram-bottom span, .diagram-bottom small, .diagram-summary { color: var(--muted); }
.diagram-bottom > b { color: #a1a1a6; font-weight: 400; }
.diagram-summary { border-color: var(--line); }
.landing-steps { border-color: var(--line); gap: 40px; padding: 56px 0; }
.landing-steps article > span { color: var(--muted); }
.landing-steps h2 { font-size: 25px; font-weight: 600; letter-spacing: -.035em; }
.landing-steps p { font-size: 15px; }
.landing-invite { background: white; border: 0; border-radius: 24px; padding: 40px; margin-top: 16px; }
.landing-invite h2 { margin: 14px 0; }
/* Account and customer workspaces */
.portal-page { max-width: 1440px; padding: 60px 48px 80px; min-height: 70vh; }
.portal-heading { margin-bottom: 40px; }
.portal-heading h1 { font-size: 42px; font-weight: 650; margin: 14px 0; }
.portal-heading p { max-width: 680px; }
.scenario-grid { gap: 24px; }
.scenario-card { border: 0; border-radius: 22px; padding: 30px; box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .2s ease; }
.scenario-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgb(0 0 0 / 8%); }
.scenario-card h2 { font-size: 25px; line-height: 1.2; margin: 22px 0 16px; }
.scenario-card p { font-size: 12px; }
.scenario-card-status { border-color: var(--line); color: var(--muted); line-height: 1.5; }
.portal-empty { border: 0; border-radius: 24px; padding: 72px 32px; }
.empty-symbol { color: var(--accent); }
.account-shell { max-width: 500px; margin: 64px auto; }
.account-card { border: 0; border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.account-card h1 { font-size: 34px; margin: 16px 0; }
.account-links { color: #0066cc; font-size: 13px; gap: 16px; }
.account-card #error_explanation { border-radius: 12px; }
.portal-flash { border-radius: 12px; font-size: 13px; }
/* Designer: precise controls inside a soft, neutral frame. */
.scenario-bar { padding: 32px 32px 18px; }
.scenario-actions { gap: 10px; }
.scenario-actions .form-select { font-size: 12px; border-radius: 10px; }
.message { color: var(--muted); font-size: 12px; line-height: 1.5; }
.sharing-panel { background: #ebf2fa; border: 0; border-radius: 16px; padding: 20px 24px; }
.sharing-panel h2 { font-size: 18px; font-weight: 600; }
.sharing-panel p, .share-form label { color: #515f70; }
.editor-shell { border: 1px solid #dcdce0; border-radius: 18px; box-shadow: var(--shadow); grid-template-columns: 220px minmax(380px, 1fr) 295px; }
.viewer-shell { grid-template-columns: minmax(360px, 1fr) 300px; }
.palette, .inspector { background: #fafafa; border-color: var(--line); }
.panel-heading { height: 52px; font-size: 12px; border-color: var(--line); padding: 0 18px; }
.palette .panel-heading { background: #fafafa; }
.small-count { background: #eaeaed; color: #515154; border-radius: 6px; padding: 3px 7px; }
.palette > p { color: var(--muted); font-size: 11px; }
.palette .component { border: 1px solid #e5e5e7; border-radius: 10px; margin: 4px 10px; padding: 10px; min-height: 58px; background: white; transition: border-color .18s ease, background .18s ease; }
.component:hover { background: #f0f6ff; border-color: #9cc5ef; }
.component strong { color: var(--ink); font-size: 11px; font-weight: 500; }
.component small { color: var(--muted); font-size: 9px; }
.component b { color: #a1a1a6; }
.component-icon, .component-icon.base { color: #64758b; }
.component-icon.fresh { color: #b38738; }
.legend { color: var(--muted); font-size: 10px; }
.palette-footer { border-color: var(--line); color: #0066cc; font-size: 10px; }
.canvas-toolbar { height: 52px; background: white; border-color: var(--line); font-size: 12px; }
.canvas-toolbar button { border-radius: 6px; color: #515154; height: 28px; }
.canvas-toolbar button:hover { background: #f0f0f3; color: var(--accent); }
.canvas-toolbar button[data-action="plant#arrange"] { border-color: #d2d2d7; border-radius: 7px; }
.canvas { background-color: #f5f5f7; background-image: radial-gradient(#d4d4da .7px, transparent .7px); background-size: 20px 20px; }
.canvas, .canvas > .drawflow { cursor: grab; }
.canvas.canvas-panning, .canvas.canvas-panning * { cursor: grabbing !important; }
.canvas-caption { background: white; border-color: var(--line); color: var(--muted); font-size: 9px; padding: 12px 14px; }
.canvas-caption button { color: #0066cc; }
.inspector-body { padding: 20px 18px; }
.inspector-intro { color: var(--muted); font-size: 12px; }
.inspector-product-photo { display: flex; align-items: center; justify-content: center; height: 180px; margin-bottom: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f9f9fb; }
.inspector-product-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.field { margin-bottom: 18px; }
.field > span { font-size: 12px; margin-bottom: 7px; }
.field input, .field select, .field textarea { font-size: 12px; padding: 10px; }
.inspector-group { color: var(--muted); font-size: 10px; border-color: var(--line); letter-spacing: .08em; }
.delete-button { border-color: #ead4d0; border-radius: 9px; font-size: 12px; color: var(--red); }
.product-record { background: #f0f3f8; border: 0; border-radius: 12px; padding: 14px; }
.product-record dt, .product-record small { color: var(--muted); }
.customer-view .inspector :disabled { color: #515154; background: #f0f0f3; }
.drawflow .drawflow-node { border: 1px solid #d2d2d7; border-radius: 14px; box-shadow: 0 4px 14px rgb(0 0 0 / 6%); }
.drawflow .drawflow-node.selected { border-color: var(--accent); box-shadow: 0 0 0 4px #0071e31a; }
.drawflow .drawflow-node.group-selected { outline-color: var(--accent); box-shadow: 0 0 0 7px #0071e318; }
.selection-marquee { border-color: var(--accent); background: #0071e31a; }
.node-top { color: var(--muted); border-color: var(--line); padding: 12px 13px 10px; letter-spacing: .07em; }
.node-top b { color: #75859b; }
.node-title { font-weight: 600; letter-spacing: -.025em; }
.node-detail { color: var(--muted); }
.node-live { color: #515154; }
.node-article { color: #0066cc; font-size: 10px; font-weight: 500; }
.product-photo { background: #f9f9fb; border-color: var(--line); }
.node-bar { background: #e9e9ed; }
.node-bar i { background: var(--accent); }
.drawflow .drawflow-node .input, .drawflow .drawflow-node .output { background: #8291a5; box-shadow: 0 0 0 1px #c0c4cc; }
.port-label { color: #515154; border-color: #d2d2d7; border-radius: 5px; font-weight: 600; }
.drawflow .drawflow-node.backbone { border-top-color: #8291a5; }
.drawflow .drawflow-node.filling { border-top-color: #8291a5; }
.drawflow .connection .main-path { stroke: #9ba7b7; }
.drawflow .connection .main-path:hover, .drawflow .connection .main-path.selected { stroke: var(--accent); }
#flow-arrow path { fill: #9ba7b7; }
.node-buffer { background: #f0f4f9; border: 0; border-radius: 9px; }
.buffer-caption { color: #626f80; }
.buffer-percent, .buffer-volume { color: #33465f; font-weight: 600; }
.buffer-meter { height: 10px; background: #dce4ef; border: 0; border-radius: 8px; }
.buffer-meter i { background: var(--accent); border-radius: inherit; }
.unit-status { background: #f0f0f3; border-color: #a1a1a6; border-radius: 7px; }
.unit-status > span { color: var(--muted); }
.unit-status > strong { color: #515154; font-weight: 600; }
.unit-status[data-status=complete] { background: #edf4fd; border-color: var(--accent); }
/* Active material routes remain green and visually distinct from selection. */
.drawflow .connection.active .main-path { stroke: #238636; stroke-width: 8; }
.drawflow .drawflow-node.simulation-active { border-color: #238636; outline: 4px solid #238636; box-shadow: 0 0 0 7px #23863618; }
/* Playback, reports and estimate */
.playback { border-color: var(--line); border-radius: 16px; padding: 18px 22px; gap: 20px; }
.playback-title strong { font-size: 12px; color: #515154; }
.play-button { background: var(--accent); width: 36px; height: 36px; }
.playback input[type=range] { accent-color: var(--accent); }
.playback select { border-radius: 7px; font-size: 12px; }
.results { padding: 44px 32px 20px; }
.section-heading h2 { font-size: 30px; margin-top: 10px; }
.empty-state { background: white; border: 0; border-radius: 18px; padding: 40px; }
.empty-state > span { color: var(--accent); }
.empty-state h3 { font-size: 18px; }
.empty-state p { font-size: 13px; }
.answer { background: #eaf2fd; border: 0; border-radius: 14px; padding: 20px; font-size: 12px; }
.answer b { color: #436188; font-weight: 600; }
.answer.warning { background: #fff3e4; border: 0; }
.metric { border: 0; border-radius: 16px; padding: 22px 18px; box-shadow: var(--shadow); }
.metric > span { font-size: 11px; color: var(--muted); }
.metric strong { font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
.metric small { color: var(--muted); }
.result-panel { border: 0; border-radius: 18px; padding: 24px; }
.result-panel h3 { font-size: 16px; }
.time-group { color: #515154; border-color: var(--line); letter-spacing: 0; }
.time-name, .time-staff-row .time-name { color: var(--muted); }
.time-row { border-color: #f0f0f3; }
.time-track { background: #f5f5f7; border-radius: 4px; }
.time-phase { background: #9cbbdf; border-radius: 3px; }
.time-phase.manual { background: var(--accent); }
.time-phase.passive { background: #e5e5ea; }
.time-scale, .chart-legend { color: var(--muted); }
table { font-size: 13px; }
td, th { border-color: var(--line); padding: 15px 12px; }
th, .results table th { background: #f5f5f7; color: var(--muted); font-size: 11px; font-weight: 500; }
.results table td { font-size: 12px; }
.quotation-section { border: 0; border-radius: 22px; padding: 32px; }
.quote-heading { gap: 20px; }
.quote-heading h2 { font-size: 30px; }
.quote-heading p { font-size: 13px; }
.quote-count { background: #f0f0f3; color: #515154; white-space: nowrap; }
.article-code { color: var(--muted); }
.cart-quantity { background: #f5f5f7; border-color: var(--line); border-radius: 8px; }
.cart-total { border-top: 1px solid var(--line); padding: 28px 12px; }
.cart-total strong { color: var(--ink); font-size: 32px; letter-spacing: -.04em; }
.quote-note, .unpriced-items { color: var(--muted); font-size: 12px; }
.comparison { max-width: 1500px; margin: auto; padding: 48px 32px; min-height: 70vh; }
.comparison table { border-radius: 16px; overflow: hidden; }
.warning-note { border-radius: 10px; }
footer { border-color: var(--line); padding: 28px 32px; color: var(--muted); font-size: 12px; gap: 20px; }
footer > span { color: var(--muted); font-size: 11px; }
.text-button { color: #0066cc; font-size: 12px; }
@media (min-width: 1600px) {
  .editor-shell { grid-template-columns: 240px minmax(400px, 1fr) 320px; }
  .viewer-shell { grid-template-columns: minmax(400px, 1fr) 320px; }
}
@media (max-width: 1200px) {
  .editor-shell { grid-template-columns: 190px minmax(360px, 1fr) 260px; }
  .viewer-shell { grid-template-columns: minmax(360px, 1fr) 260px; }
  .topbar.portal-nav { gap: 18px; }
  .topbar.portal-nav nav { gap: 16px; }
  .landing { padding: 56px 32px; }
  .landing-hero { gap: 32px; }
}
@media (max-width: 900px) {
  .topbar.portal-nav { padding: 14px 20px; }
  .editor-shell { grid-template-columns: 175px minmax(390px, 1fr); }
  .viewer-shell { display: flex; flex-direction: column; }
  .inspector-body { max-height: 350px; }
  .landing-hero { grid-template-columns: 1fr; max-width: 680px; margin: auto; padding-bottom: 56px; }
  .landing-hero h1 { font-size: clamp(46px, 8vw, 68px); }
  .hero-diagram { margin-top: 16px; }
  .landing-steps { gap: 24px; }
  .landing-steps h2 { font-size: 22px; }
  .portal-page { padding: 40px 24px; }
}
@media (max-width: 720px) {
  .topbar.portal-nav { gap: 14px; padding: 14px 16px; }
  .ossberger-brand { padding-right: 14px; }
  .ossberger-brand img { width: 88px; }
  .account-nav { gap: 12px; }
  .account-nav .btn { padding: 7px 11px; font-size: 11px; }
  .topbar.portal-nav nav { gap: 20px; }
  .landing { padding: 40px 22px; }
  .landing-hero { padding-top: 12px; gap: 24px; }
  .landing-hero h1 { font-size: 48px; }
  .landing-hero > div > p { font-size: 17px; }
  .hero-actions { gap: 20px; }
  .hero-actions .btn-lg { font-size: 14px; }
  .hero-diagram { padding: 24px 18px; border-radius: 22px; }
  .diagram-product { gap: 20px; padding: 26px 0 16px; }
  .diagram-product img { width: 115px; height: 175px; }
  .diagram-product h2 { font-size: 26px; }
  .diagram-bottom strong { font-size: 11px; }
  .diagram-bottom small { font-size: 9px; }
  .diagram-summary { gap: 10px; font-size: 9px; }
  .landing-steps { padding: 40px 0; gap: 32px; }
  .landing-invite { padding: 28px; }
  .portal-heading h1 { font-size: 36px; }
  .account-shell { margin: 36px auto; }
  .account-card { padding: 28px; }
  .scenario-bar { padding: 26px 16px 18px; }
  .scenario-actions { width: 100%; flex-wrap: wrap; }
  .scenario-actions .form-select { width: 100%; }
  .message { margin-left: 16px; margin-right: 16px; }
  .editor-shell { border-radius: 14px; }
  .playback { margin: 12px; padding: 16px; gap: 10px; flex-wrap: wrap; }
  .playback-title { width: calc(100% - 90px); }
  .playback input[type=range] { flex-basis: 65%; }
  .results { padding: 32px 16px 16px; }
  .section-heading h2 { font-size: 26px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { padding: 18px; }
  .empty-state { padding: 28px 22px; gap: 18px; }
  .quotation-section { padding: 22px 16px; }
  .quote-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 20px; }
  .quote-heading h2 { font-size: 26px; }
  .comparison { padding: 32px 16px; }
  footer { padding: 24px 20px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scenario-card:hover { transform: none; }
}

/* Shared staffing bands stay aligned across every equipment and staff row. */
.timeline-legend{display:flex;flex-wrap:wrap;gap:10px 20px;margin:0 0 14px;font-size:12px;color:#515154}
.timeline-legend>span{display:inline-flex;align-items:center;gap:7px}
.timeline-key{display:inline-block;width:18px;height:12px;border-radius:3px;border:1px solid #00000018;flex-shrink:0}
.timeline-note{font-size:12px;margin-bottom:18px;max-width:900px}
.timeline-chart{--timeline-label-width:180px;position:relative;min-width:660px;isolation:isolate}
.timeline-bands{position:absolute;left:var(--timeline-label-width);right:0;top:0;bottom:26px;z-index:-1;overflow:hidden;border-radius:7px;pointer-events:none}
.staff-band{position:absolute;top:0;bottom:0;border-left:1px solid #52647725}
.staff-available{background:#e1f2e7}
.staff-busy{background:#fff0d1}
.off-shift{background:repeating-linear-gradient(135deg,#e1e4e9 0,#e1e4e9 4px,#edf0f4 4px,#edf0f4 9px)}
.timeline-chart .time-row{display:grid;grid-template-columns:var(--timeline-label-width) minmax(480px,1fr);height:32px;border-bottom:1px solid #1d1d1f0c}
.timeline-chart .time-name{width:auto;padding-right:14px;background:#fff;line-height:32px;font-size:11px;color:#515154}
.timeline-chart .time-track{min-width:0;width:100%;height:19px;background:transparent;border-radius:4px;border:0;align-self:center}
.timeline-chart .time-group{font-size:12px;padding:16px 0 8px;margin:0;border-color:#1d1d1f16;background:transparent;pointer-events:none}
.timeline-chart .time-phase{border:1px solid #1d1d1f20;top:2px;bottom:2px;min-width:1px;border-radius:3px}
.timeline-chart .time-phase.active{background:#789cc6}
.timeline-chart .time-phase.passive{background:#ffffff60;border-color:#7b879520}
.time-phase.waiting-staff,.timeline-key.waiting-staff{background:repeating-linear-gradient(135deg,#a52b72 0,#a52b72 4px,#c45d98 4px,#c45d98 7px);border-color:#8e205f}
.time-phase.waiting-powder,.timeline-key.waiting-powder{background:#dc982f;border-color:#aa6d14}
.time-phase.waiting-other,.timeline-key.waiting-other{background:#8c98a8;border-color:#657181}
.timeline-key.technical{background:#b9b2d2}.timeline-key.manual{background:var(--accent)}
.timeline-chart .availability-row{height:38px;border-bottom:1px solid #cdd6cf;margin-bottom:5px}
.availability-row .time-name{font-weight:600}
.timeline-chart .availability-row .time-track{height:27px;overflow:hidden;border:1px solid #88968d50}
.availability-phase{position:absolute;top:0;bottom:0;border-left:1px solid #88968d50;overflow:hidden;display:flex;align-items:center;justify-content:center;font-size:10px;color:#344a3c;white-space:nowrap}
.availability-phase span{padding:0 4px;overflow:hidden;text-overflow:ellipsis}
.availability-phase.off-shift{color:#535d6a}
.timeline-chart .time-scale{height:26px;margin-left:var(--timeline-label-width);padding:8px 0 0;color:#6e6e73}
@media(max-width:720px){.timeline-chart{--timeline-label-width:150px;min-width:630px}.timeline-legend{font-size:11px;gap:9px 14px}}

/* Playback and timeline are adjacent and use one shared simulation clock. */
.timeline-section.result-panel{margin:16px 24px 0;padding:24px;border:1px solid var(--line)}
.timeline-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;flex-wrap:wrap}
.timeline-heading h2{font-size:22px;margin:0}
.timeline-position{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;color:#b72e27;background:#fff0ee;padding:7px 12px;border-radius:9px}
.timeline-playhead-area{position:absolute;left:var(--timeline-label-width);right:0;top:0;bottom:26px;pointer-events:none;z-index:5}
.timeline-playhead{position:absolute;left:0;top:0;bottom:0;width:2px;background:#d9342b;box-shadow:0 0 0 1px #ffffffb3}
.playhead-cap{position:absolute;top:-4px;left:-4px;width:10px;height:10px;background:#d9342b;border-radius:2px;transform:rotate(45deg)}
.timeline-chart .time-track{cursor:crosshair}
.timeline-chart .time-staff-row{background:#0071e30b;height:36px;border-top:1px solid #0071e31c;border-bottom:1px solid #0071e333}
.timeline-chart .time-staff-row .time-name,.timeline-chart .availability-row .time-name{color:#0066cc;background:#eef5ff;border-left:3px solid #0071e3;padding-left:9px;font-weight:650;line-height:36px}
.timeline-chart .time-staff-row .time-track{height:23px;background:#0071e30a}
.timeline-chart .time-staff-row .time-phase.manual{background:#0071e3;border-color:#0057ad;box-shadow:0 1px 3px #0071e330;min-width:2px}
.timeline-chart .time-staff-row.staff-task-active .time-name{background:#dbeaff;color:#004d9b}
.timeline-chart .time-phase.manual.current-task{outline:2px solid #004d9b;outline-offset:2px;z-index:2}
@media(max-width:720px){.timeline-section.result-panel{margin:12px;padding:20px 16px}.timeline-heading{gap:10px}.timeline-heading h2{font-size:21px}}
