:root {
  --ink: #102820;
  --ink-2: #1d3a31;
  --paper: #f4f3ed;
  --surface: #fffef9;
  --line: #d8ddd7;
  --muted: #68756f;
  --green: #2c6b53;
  --green-soft: #e0ede6;
  --blue: #376b8a;
  --amber: #b77823;
  --red: #a84538;
  --purple: #6d5b8c;
  --shadow: 0 18px 50px rgba(16, 40, 32, .08);
  --sans: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", STSong, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: white; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.topbar { height: 82px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; color: white; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.13); }
.brand { display: flex; align-items: center; gap: 13px; color: white; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: #bcd2c4; font-family: var(--serif); font-size: .9rem; font-weight: 800; letter-spacing: .08em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .93rem; letter-spacing: .12em; }
.brand small { margin-top: 4px; color: rgba(255,255,255,.52); font-size: .51rem; letter-spacing: .19em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.save-state { margin-right: 10px; color: rgba(255,255,255,.64); font-size: .7rem; }
.save-state i { width: 7px; height: 7px; display: inline-block; margin-right: 7px; background: #70b890; border-radius: 50%; box-shadow: 0 0 0 4px rgba(112,184,144,.12); }

.button { min-height: 39px; padding: 0 17px; border: 1px solid transparent; border-radius: 3px; font-size: .76rem; font-weight: 650; letter-spacing: .04em; }
.button.primary { color: white; background: var(--green); }
.button.primary:hover { background: #235943; }
.button.ghost { color: white; background: transparent; border-color: rgba(255,255,255,.28); }
.button.ghost:hover { background: rgba(255,255,255,.08); }
.button.ghost.dark { color: var(--ink); border-color: var(--line); }
.button.ghost.dark:hover { background: #ecefe9; }
.button.danger { color: var(--red); background: white; border-color: #dfb4ad; }
.text-button { padding: 0; color: var(--green); background: none; border: 0; font-size: .73rem; font-weight: 650; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 1.4rem; }

.app-shell { min-height: calc(100vh - 82px); display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { position: sticky; top: 82px; height: calc(100vh - 82px); padding: 26px 18px; background: #e9ebe4; border-right: 1px solid var(--line); overflow-y: auto; }
.sidebar nav { display: grid; gap: 5px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 12px; color: #516059; text-align: left; background: transparent; border: 0; border-radius: 3px; font-size: .78rem; }
.nav-item span { color: #99a39e; font-size: .56rem; letter-spacing: .1em; }
.nav-item:hover { color: var(--ink); background: rgba(255,255,255,.56); }
.nav-item.active { color: white; background: var(--ink-2); box-shadow: 0 8px 22px rgba(16,40,32,.12); }
.nav-item.active span { color: #a5cbb8; }
.sidebar-section { margin-top: 35px; padding-top: 26px; border-top: 1px solid #cfd5cf; }
.sidebar-section > p { margin: 0 0 10px; color: var(--muted); font-size: .61rem; font-weight: 700; letter-spacing: .16em; }
.sidebar select { width: 100%; padding: 10px 30px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; font-size: .7rem; }
.active-issue-summary { margin-top: 12px; padding: 13px; background: rgba(255,255,255,.6); border-left: 3px solid var(--green); }
.active-issue-summary strong { display: block; margin-bottom: 7px; font-size: .72rem; line-height: 1.45; }
.active-issue-summary span { color: var(--muted); font-size: .62rem; }
.sidebar-actions { margin-top: 28px; display: grid; gap: 2px; }
.sidebar-actions button { padding: 9px 8px; color: var(--muted); text-align: left; background: transparent; border: 0; font-size: .68rem; }
.sidebar-actions button:hover { color: var(--ink); background: rgba(255,255,255,.5); }
.storage-note { margin: 15px 8px 0; color: #8a948f; font-size: .56rem; line-height: 1.6; }

.workspace { min-width: 0; padding: clamp(28px, 4vw, 58px); }
.view { display: none; max-width: 1450px; margin: auto; }
.view.active { display: block; animation: reveal .25s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 33px; }
.page-heading.compact-heading { align-items: center; }
.page-heading h1 { margin: 7px 0 0; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.3rem); font-weight: 600; letter-spacing: -.045em; }
.page-heading > div > p:not(.eyebrow) { max-width: 720px; margin: 12px 0 0; color: var(--muted); font-family: var(--serif); line-height: 1.7; }
.eyebrow { margin: 0; color: var(--green); font-size: .57rem; font-weight: 800; letter-spacing: .19em; }
.date-block { text-align: right; }
.date-block span { display: block; color: var(--muted); font-size: .58rem; letter-spacing: .08em; }
.date-block strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: .85rem; font-weight: 500; }
.workflow-actions { display: flex; gap: 10px; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; margin-bottom: 22px; }
.kpi-card { min-height: 134px; padding: 20px; position: relative; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(16,40,32,.035); }
.kpi-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent, var(--green)); }
.kpi-card > span { color: var(--muted); font-size: .62rem; letter-spacing: .08em; }
.kpi-card strong { display: block; margin-top: 15px; font-family: var(--serif); font-size: 2.15rem; line-height: 1; }
.kpi-card small { display: block; margin-top: 11px; color: var(--muted); font-size: .58rem; }
.panel { padding: 25px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 7px 25px rgba(16,40,32,.035); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.panel-heading h2 { margin: 5px 0 0; font-family: var(--serif); font-size: 1.25rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 22px; margin-bottom: 22px; }
.dashboard-grid.lower { grid-template-columns: 1fr 1fr; margin-top: 22px; }
.attention-list { display: grid; }
.attention-item { display: grid; grid-template-columns: 10px 1fr auto; gap: 13px; align-items: start; padding: 15px 0; border-top: 1px solid #eaede8; }
.attention-dot { width: 8px; height: 8px; margin-top: 5px; background: var(--amber); border-radius: 50%; }
.attention-item.overdue .attention-dot { background: var(--red); }
.attention-item strong { display: block; font-size: .76rem; }
.attention-item p { margin: 5px 0 0; color: var(--muted); font-size: .64rem; }
.attention-item button { padding: 6px 9px; color: var(--green); background: var(--green-soft); border: 0; border-radius: 2px; font-size: .6rem; }
.status-chart { display: grid; grid-template-columns: 145px 1fr; gap: 22px; align-items: center; min-height: 215px; }
.donut { width: 138px; height: 138px; display: grid; place-items: center; position: relative; border-radius: 50%; background: conic-gradient(var(--green) 0 35%, var(--amber) 35% 70%, var(--blue) 70% 100%); }
.donut::after { content: ""; position: absolute; inset: 26px; background: var(--surface); border-radius: 50%; }
.donut > span { position: relative; z-index: 1; color: var(--muted); text-align: center; font-size: .58rem; }
.donut strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.8rem; }
.status-legend { display: grid; gap: 10px; }
.legend-row { display: grid; grid-template-columns: 9px 1fr auto; gap: 8px; align-items: center; color: var(--muted); font-size: .61rem; }
.legend-row i { width: 7px; height: 7px; border-radius: 50%; }
.legend-row strong { color: var(--ink); }
.route-panel { overflow: hidden; }
.mini-route { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 5px 0 10px; }
.mini-step { min-width: 108px; flex: 1; position: relative; padding: 15px 12px; text-align: center; background: #f0f2ed; border: 1px solid #e0e5df; }
.mini-step + .mini-step { margin-left: 17px; }
.mini-step + .mini-step::before { content: "→"; position: absolute; left: -18px; top: 50%; color: #9ba69f; transform: translateY(-50%); }
.mini-step span { display: block; margin-bottom: 8px; color: var(--green); font-size: .55rem; }
.mini-step strong { font-family: var(--serif); font-size: .75rem; }
.bar-chart { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 105px 1fr 25px; gap: 12px; align-items: center; color: var(--muted); font-size: .62rem; }
.bar-row > div { height: 8px; background: #ecefe9; border-radius: 10px; overflow: hidden; }
.bar-row i { height: 100%; display: block; background: var(--green); border-radius: inherit; }
.bar-row strong { color: var(--ink); text-align: right; }

.workflow-context { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; color: white; background: var(--ink-2); }
.workflow-context strong { display: block; font-size: .9rem; }
.workflow-context p { margin: 5px 0 0; color: rgba(255,255,255,.62); font-size: .64rem; }
.workflow-context button { color: #b8d8c8; background: transparent; border: 0; font-size: .68rem; }
.workflow-progress { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin: 17px 0 27px; }
.workflow-progress > div { height: 5px; background: #dce2dc; border-radius: 10px; overflow: hidden; }
.workflow-progress span { width: 0; height: 100%; display: block; background: var(--green); transition: width .3s ease; }
.workflow-progress p { margin: 0; color: var(--muted); font-size: .63rem; }
.flow-map { display: grid; grid-template-columns: repeat(5, minmax(145px, 1fr)); gap: 30px 28px; padding: 28px; position: relative; background: #e8ebe4; border: 1px solid var(--line); }
.flow-node { min-height: 160px; padding: 18px; position: relative; text-align: left; background: var(--surface); border: 1px solid #cfd7d0; box-shadow: 0 8px 18px rgba(16,40,32,.05); }
.flow-node::after { content: "→"; position: absolute; right: -21px; top: 50%; color: #84938a; transform: translateY(-50%); }
.flow-node:nth-child(5)::after { content: "↓"; right: 50%; top: auto; bottom: -25px; transform: translateX(50%); }
.flow-node:nth-child(n+6):nth-child(-n+9)::after { content: "←"; right: auto; left: -21px; }
.flow-node:last-child::after { display: none; }
.flow-node:nth-child(6) { grid-column: 5; grid-row: 2; }
.flow-node:nth-child(7) { grid-column: 4; grid-row: 2; }
.flow-node:nth-child(8) { grid-column: 3; grid-row: 2; }
.flow-node:nth-child(9) { grid-column: 2; grid-row: 2; }
.flow-node:nth-child(10) { grid-column: 1; grid-row: 2; }
.flow-node.active { border-color: var(--green); box-shadow: 0 0 0 2px rgba(44,107,83,.16), var(--shadow); }
.flow-node.completed { background: #edf5f0; }
.flow-node.inProgress { border-top: 4px solid var(--amber); }
.flow-node.blocked { border-top: 4px solid var(--red); }
.flow-node small { color: var(--green); font-size: .52rem; font-weight: 800; letter-spacing: .14em; }
.flow-node h3 { margin: 17px 0 8px; font-family: var(--serif); font-size: 1rem; }
.flow-node p { margin: 0; color: var(--muted); font-size: .6rem; line-height: 1.55; }
.node-status { position: absolute; right: 12px; top: 12px; width: 9px; height: 9px; background: #cbd2cc; border-radius: 50%; }
.completed .node-status { background: var(--green); }
.inProgress .node-status { background: var(--amber); box-shadow: 0 0 0 4px rgba(183,120,35,.12); }
.blocked .node-status { background: var(--red); box-shadow: 0 0 0 4px rgba(168,69,56,.12); }
.execution-panel { display: grid; grid-template-columns: 1fr 1fr; margin-top: 25px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.execution-standard, .execution-form { padding: clamp(25px, 3vw, 42px); }
.execution-standard { background: var(--ink-2); color: white; }
.execution-standard h2 { margin: 8px 0 24px; font-family: var(--serif); font-size: 1.7rem; }
.standard-substep { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.standard-substep h3 { margin: 0 0 10px; font-size: .77rem; }
.standard-substep p { margin: 0; color: rgba(255,255,255,.65); font-family: var(--serif); font-size: .74rem; line-height: 1.7; }
.standard-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.standard-meta span { padding: 9px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.68); font-size: .58rem; line-height: 1.5; }
.standard-meta b { display: block; color: #b9d7c9; font-weight: 500; }
.execution-form { margin: 0; }
.execution-form-heading { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
.execution-form-heading h2 { margin: 7px 0 0; font-family: var(--serif); font-size: 1.5rem; }
.step-badge { align-self: flex-start; padding: 7px 9px; color: var(--green); background: var(--green-soft); font-size: .55rem; font-weight: 800; letter-spacing: .12em; }
label { display: grid; gap: 7px; color: var(--muted); font-size: .64rem; font-weight: 650; }
input, select, textarea { width: 100%; padding: 11px 12px; background: white; border: 1px solid #cfd6d0; border-radius: 2px; outline: none; font-size: .76rem; font-weight: 400; }
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(44,107,83,.1); }
.execution-form > label, .execution-form .form-row { margin-bottom: 17px; }
.form-row, .form-grid { display: grid; gap: 14px; }
.form-row, .form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.filter-bar { display: grid; grid-template-columns: minmax(220px, 1fr) 145px 155px 145px auto; gap: 10px; margin-bottom: 17px; }
.search-field { position: relative; display: block; }
.search-field span { position: absolute; left: 12px; top: 50%; color: #8c9791; transform: translateY(-50%); }
.search-field input { padding-left: 34px; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); overflow-x: auto; box-shadow: 0 8px 30px rgba(16,40,32,.035); }
table { width: 100%; min-width: 980px; border-collapse: collapse; }
th { padding: 13px 15px; color: #68756f; text-align: left; background: #e9ede7; border-bottom: 1px solid var(--line); font-size: .59rem; letter-spacing: .06em; white-space: nowrap; }
td { padding: 16px 15px; border-bottom: 1px solid #e7ebe6; font-size: .7rem; vertical-align: middle; }
tbody tr:hover { background: #f8faf6; }
.issue-title-cell strong { display: block; max-width: 280px; font-size: .74rem; line-height: 1.45; }
.issue-title-cell small, .owner-cell small { display: block; margin-top: 5px; color: var(--muted); }
.status-pill, .nature-pill { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 20px; font-size: .58rem; white-space: nowrap; }
.status-pill { color: var(--pill-color, var(--green)); background: var(--pill-bg, var(--green-soft)); }
.nature-pill { color: #515f58; background: #edf0ec; }
.progress-cell { min-width: 115px; }
.progress-cell > div { height: 5px; background: #e3e8e3; border-radius: 10px; overflow: hidden; }
.progress-cell i { height: 100%; display: block; background: var(--green); }
.progress-cell span { display: block; margin-top: 5px; color: var(--muted); font-size: .55rem; }
.row-action { padding: 7px 9px; color: var(--green); background: transparent; border: 1px solid #ccd8d0; border-radius: 2px; font-size: .6rem; }
.overdue-date { color: var(--red); font-weight: 700; }
.empty-state { padding: 70px 30px; text-align: center; }
.empty-state strong { font-family: var(--serif); font-size: 1.2rem; }
.empty-state p { color: var(--muted); font-size: .7rem; }

.definition-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 25px; }
.definition-card { padding: 18px; background: var(--surface); border-top: 3px solid var(--green); box-shadow: 0 5px 18px rgba(16,40,32,.035); }
.definition-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: .9rem; }
.definition-card p { margin: 0; color: var(--muted); font-size: .62rem; line-height: 1.65; }
.standards-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 14px; }
.standard-list { display: grid; gap: 9px; }
.standard-item { background: var(--surface); border: 1px solid var(--line); }
.standard-item summary { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 17px; padding: 19px 22px; cursor: pointer; list-style: none; }
.standard-item summary::-webkit-details-marker { display: none; }
.standard-item summary > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); font-family: var(--serif); font-size: 1rem; }
.standard-item summary h2 { margin: 0; font-family: var(--serif); font-size: 1rem; }
.standard-item summary p { margin: 5px 0 0; color: var(--muted); font-size: .6rem; }
.standard-item summary > i { color: var(--muted); font-style: normal; }
.standard-item[open] summary > i { transform: rotate(45deg); }
.standard-content { padding: 0 22px 24px 89px; }
.standard-table { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.standard-record { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.standard-record h3 { margin: 0 0 10px; font-size: .76rem; }
.standard-record > p { margin: 0 0 15px; color: var(--muted); font-family: var(--serif); font-size: .7rem; line-height: 1.75; }
.record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.record-grid p { margin: 0; padding: 8px; color: var(--muted); background: #f3f5f1; font-size: .56rem; line-height: 1.5; }
.record-grid strong { display: block; color: var(--ink); }

dialog { padding: 0; border: 0; }
dialog::backdrop { background: rgba(7,20,15,.66); backdrop-filter: blur(5px); }
.issue-dialog { width: min(940px, calc(100% - 30px)); max-height: calc(100vh - 30px); background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.dialog-shell { margin: 0; }
.dialog-shell > header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; color: white; background: var(--ink); }
.dialog-shell > header .eyebrow { color: #9cc3af; }
.dialog-shell > header h2 { margin: 6px 0 0; font-family: var(--serif); font-size: 1.4rem; }
.dialog-shell > header .icon-button { color: white; border-color: rgba(255,255,255,.24); }
.dialog-body { padding: 27px; }
fieldset { margin: 0 0 20px; padding: 22px; background: var(--surface); border: 1px solid var(--line); }
legend { padding: 0 8px; color: var(--green); font-size: .65rem; font-weight: 800; letter-spacing: .09em; }
fieldset > label, fieldset .form-grid { margin-bottom: 15px; }
.dialog-shell > footer { position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; padding: 17px 28px; background: var(--surface); border-top: 1px solid var(--line); }
.presentation-dialog { width: 100vw; max-width: none; height: 100vh; max-height: none; color: white; background: var(--ink); }
.presentation-shell { min-height: 100%; padding: 7vh 7vw; position: relative; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 85% 15%, rgba(117,166,140,.18), transparent 35%), var(--ink); }
.presentation-close { position: absolute; right: 30px; top: 25px; color: white; background: transparent; border: 0; font-size: 2rem; }
.presentation-shell > .eyebrow { color: #9cc3af; }
.presentation-shell > h2 { max-width: 1000px; margin: 2vh 0 6vh; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 5.2rem); font-weight: 500; line-height: 1.25; }
.presentation-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.18); }
.presentation-kpis div { padding: 25px; background: var(--ink); }
.presentation-kpis span { color: rgba(255,255,255,.55); font-size: .7rem; }
.presentation-kpis strong { display: block; margin-top: 10px; font-family: var(--serif); font-size: 2.5rem; }
.presentation-route { display: grid; grid-template-columns: repeat(10,1fr); gap: 7px; margin-top: 5vh; }
.presentation-route div { padding: 15px 8px; text-align: center; border: 1px solid rgba(255,255,255,.16); }
.presentation-route span { display: block; margin-bottom: 8px; color: #9cc3af; font-size: .55rem; }
.presentation-route strong { font-family: var(--serif); font-size: .76rem; }
.presentation-shell > footer { display: flex; justify-content: space-between; margin-top: 7vh; padding-top: 18px; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.18); font-size: .65rem; letter-spacing: .08em; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 100; max-width: 330px; padding: 13px 17px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: .7rem; opacity: 0; pointer-events: none; transform: translateY(15px); transition: .2s ease; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .kpi-grid { grid-template-columns: repeat(3,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .definition-grid { grid-template-columns: repeat(2,1fr); }
  .flow-map { grid-template-columns: repeat(2,1fr); }
  .flow-node:nth-child(n) { grid-column: auto; grid-row: auto; }
  .flow-node:nth-child(n)::after { content: "↓"; right: 50%; left: auto; top: auto; bottom: -25px; transform: translateX(50%); }
  .flow-node:last-child::after { display: none; }
  .execution-panel { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
  .filter-bar .search-field { grid-column: span 2; }
}
@media (max-width: 780px) {
  .topbar { height: 72px; padding: 0 15px; }
  .brand small, .save-state, #presentation-button { display: none; }
  .app-shell { display: block; }
  .sidebar { height: auto; position: sticky; top: 72px; z-index: 20; display: flex; padding: 8px; border: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .sidebar nav { width: 100%; display: flex; }
  .nav-item { min-width: 95px; justify-content: center; padding: 10px 8px; white-space: nowrap; }
  .nav-item span, .sidebar-section, .sidebar-actions, .storage-note { display: none; }
  .workspace { padding: 25px 16px 45px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .date-block { text-align: left; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .status-chart { grid-template-columns: 1fr; justify-items: center; }
  .status-legend { width: 100%; }
  .dashboard-grid.lower { grid-template-columns: 1fr; }
  .flow-map { grid-template-columns: 1fr; padding: 18px; }
  .form-row, .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .search-field { grid-column: span 2; }
  .definition-grid { grid-template-columns: 1fr; }
  .standard-item summary { grid-template-columns: 42px 1fr auto; padding: 15px; }
  .standard-content { padding: 0 15px 15px; }
  .standard-table { grid-template-columns: 1fr; }
  .presentation-kpis { grid-template-columns: repeat(2,1fr); }
  .presentation-route { grid-template-columns: repeat(5,1fr); }
  .presentation-shell > footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media print {
  .topbar, .sidebar, .workflow-actions, .execution-form, .toast { display: none !important; }
  .app-shell { display: block; }
  .workspace { padding: 0; }
  .view { display: none !important; }
  #workflow-view { display: block !important; }
  .flow-map { grid-template-columns: repeat(5,1fr); }
  .execution-panel { display: block; }
  .execution-standard { color: black; background: white; }
  .standard-substep p { color: #444; }
  .standard-meta span { color: #444; border: 1px solid #ccc; }
}
