/* Horizontal intake is opt-in; every rule is scoped away from vertical intake. */
.frost-dispatch.sheet-center .mm-horizontal-host{min-width:0;max-width:100%;margin-top:10px}
.frost-dispatch.sheet-center .mm-horizontal>.mm-legacy{display:none}
.frost-dispatch.sheet-center .mm-horizontal .mm-panel>summary{padding:9px 12px}
.frost-dispatch.sheet-center .mm-horizontal .mm-toolbar{padding:7px 10px;gap:6px;min-height:0}
.frost-dispatch.sheet-center .mm-horizontal .mm-toolbar>div{gap:5px}
.frost-dispatch.sheet-center .mm-horizontal .mm-toolbar button{min-height:30px;padding:4px 9px}
.frost-dispatch.sheet-center .mm-horizontal .mm-status:empty{display:none}
.frost-dispatch.sheet-center .mm-horizontal .mm-status{padding:5px 12px;margin:0;font-size:12px}
.frost-dispatch.sheet-center .mm-horizontal .mmh-navigation{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;padding:6px 10px;border-block:1px solid var(--line);background:var(--lux-row-alt)}
.frost-dispatch.sheet-center .mm-horizontal :is(.mmh-jumps,.mmh-tools){display:flex;align-items:center;gap:5px;min-width:0}
.frost-dispatch.sheet-center .mm-horizontal .mmh-jumps{flex:1 1 360px}
.frost-dispatch.sheet-center .mm-horizontal .mmh-jumps select{width:130px;max-width:32%;min-width:0;height:30px;min-height:30px;padding:3px 18px 3px 6px;font-size:12px}
.frost-dispatch.sheet-center .mm-horizontal .mmh-jumps select:first-child{width:190px;max-width:40%}
.frost-dispatch.sheet-center .mm-horizontal .mmh-tools button{min-height:28px;height:28px;padding:3px 8px;font-size:12px;border:1px solid var(--line);border-radius:4px;background:var(--field-bg);color:var(--brand)}
.frost-dispatch.sheet-center .mm-horizontal .mmh-tools output{width:39px;text-align:center;font-size:11px;color:var(--muted)}
.frost-dispatch.sheet-center .mm-horizontal .mm-workspace{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(100px,1fr) auto;gap:0;padding:0;height:clamp(330px,61dvh,540px);min-height:0;overflow:hidden}
.frost-dispatch.sheet-center .mm-horizontal .mm-tree{min-width:0;min-height:0;height:100%;max-height:none;padding:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;touch-action:pan-x pan-y;background-color:var(--panel);background-image:radial-gradient(var(--lux-primary-soft) .8px,transparent .8px);background-size:16px 16px}
.frost-dispatch.sheet-center .mm-horizontal .mmh-canvas{display:flex;flex-direction:column;align-items:flex-start;gap:18px;padding:24px;min-width:max-content;min-height:100%;box-sizing:border-box}
.frost-dispatch.sheet-center .mm-horizontal .mmh-tree-node{position:relative;display:flex;align-items:center;flex:none;min-width:0}
.frost-dispatch.sheet-center .mm-horizontal .mmh-card{position:relative;box-sizing:border-box;width:164px;flex:0 0 164px;padding:4px;border:1px solid var(--line);border-radius:6px;background:var(--field-bg);box-shadow:0 2px 5px #582f0e0a}
.frost-dispatch.sheet-center .mm-horizontal .mmh-card.mmh-route{width:220px;flex-basis:220px}
.frost-dispatch.sheet-center .mm-horizontal .mmh-card.mmh-selected{border-color:var(--brand);outline:2px solid var(--lux-primary-soft);outline-offset:2px}
.frost-dispatch.sheet-center .mm-horizontal .mmh-node{display:block;width:100%;min-height:45px;padding:4px 7px;border:1px solid transparent;border-radius:3px;background:transparent;text-align:left;color:var(--text);font-size:12px;line-height:1.4}
.frost-dispatch.sheet-center .mm-horizontal .mmh-node>span{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted)}
.frost-dispatch.sheet-center .mm-horizontal .mmh-node b{color:var(--brand-dark)}
.frost-dispatch.sheet-center .mm-horizontal .mmh-node>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.frost-dispatch.sheet-center .mm-horizontal .mmh-node.mmh-later{background:var(--lux-danger-soft);border-color:var(--lux-danger)}
.frost-dispatch.sheet-center .mm-horizontal .mmh-later :is(span,b,strong){color:var(--lux-danger)}
.frost-dispatch.sheet-center .mm-horizontal .mmh-node-tools{display:flex;align-items:center;gap:3px;min-height:25px;margin-top:2px}
.frost-dispatch.sheet-center .mm-horizontal .mmh-node-actions{display:flex;align-items:center;justify-content:flex-end;gap:3px;margin-left:auto}
.frost-dispatch.sheet-center .mm-horizontal .mmh-node-tools button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:24px;min-height:24px;width:24px;height:24px;padding:0;border:1px solid var(--line);border-radius:3px;background:var(--field-bg);color:var(--brand);font-size:14px}
.frost-dispatch.sheet-center .mm-horizontal .mmh-node-tools [data-mm-sync]{width:auto;padding-inline:4px;font-size:10px}
.frost-dispatch.sheet-center .mm-horizontal .mmh-node-tools .mmh-alias{flex:1 1 40px;min-width:0;width:48px;height:24px;min-height:24px;padding:2px 3px;font-size:10px;border:0;background:var(--lux-row-alt)}
.frost-dispatch.sheet-center .mm-horizontal .mmh-card .mm-project-checkbox{position:absolute;left:10px;top:10px;width:14px;height:14px;min-height:14px;margin:0;z-index:1}
.frost-dispatch.sheet-center .mm-horizontal .mmh-card[data-mmh-step="0"] .mmh-node{padding-left:26px}
.frost-dispatch.sheet-center .mm-horizontal .mmh-children{display:flex;flex-direction:column;gap:10px;padding-left:26px;position:relative}
.frost-dispatch.sheet-center .mm-horizontal .mmh-children>.mmh-tree-node::before{content:"";position:absolute;left:-26px;top:50%;width:26px;border-top:1px solid var(--line)}
.frost-dispatch.sheet-center .mm-horizontal .mmh-fork::before{content:"";position:absolute;left:0;top:50%;width:13px;border-top:1px solid var(--line)}
.frost-dispatch.sheet-center .mm-horizontal .mmh-fork>.mmh-tree-node::before{left:-13px;width:13px}
.frost-dispatch.sheet-center .mm-horizontal .mmh-fork>.mmh-tree-node::after{content:"";position:absolute;left:-13px;top:-5px;bottom:-5px;border-left:1px solid var(--line)}
.frost-dispatch.sheet-center .mm-horizontal .mmh-fork>.mmh-tree-node:first-child::after{top:50%}
.frost-dispatch.sheet-center .mm-horizontal .mmh-fork>.mmh-tree-node:last-child::after{bottom:50%}
.frost-dispatch.sheet-center .mm-horizontal .mm-editor{position:static;display:grid;grid-template-columns:minmax(0,420px) auto;justify-content:start;align-items:center;gap:5px 10px;min-width:0;min-height:0;padding:9px 12px;border:0;border-top:1px solid var(--line);border-radius:0;background:var(--lux-row-alt)}
.frost-dispatch.sheet-center .mm-horizontal .mm-editor-heading{margin:0;font-size:13px;gap:8px}
.frost-dispatch.sheet-center .mm-horizontal .mm-editor-heading>span:first-child{font-size:10px}
.frost-dispatch.sheet-center .mm-horizontal .mm-breadcrumb{margin:0;max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:11px}
.frost-dispatch.sheet-center .mm-horizontal .mm-current-control{position:relative;min-width:0;width:100%;max-width:420px;margin:0}
.frost-dispatch.sheet-center .mm-driver-suggestions{position:fixed;z-index:10020;box-sizing:border-box;max-height:190px;overflow:auto;overscroll-behavior:contain;padding:4px;border:1px solid var(--line);border-radius:5px;background:var(--field-bg);box-shadow:0 4px 18px #582f0e25}
.frost-dispatch.sheet-center .mm-driver-suggestions[hidden]{display:none}
.frost-dispatch.sheet-center .mm-driver-suggestions button{display:block;width:100%;padding:8px 10px;min-height:36px;border:0;border-radius:3px;text-align:left;background:transparent;color:var(--text);font-size:12px;white-space:normal}
.frost-dispatch.sheet-center .mm-driver-suggestions button:hover,.frost-dispatch.sheet-center .mm-driver-suggestions [aria-selected="true"]{background:var(--brand-soft)}
.frost-dispatch.sheet-center .mm-horizontal .mm-current-control :is(input,select){height:34px;min-height:34px;font-size:13px}
.frost-dispatch.sheet-center .mm-horizontal .mm-editor-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:0}
.frost-dispatch.sheet-center .mm-horizontal .mm-editor-actions button{min-height:32px;padding:4px 8px;font-size:12px}
.frost-dispatch.sheet-center .mm-horizontal .mm-auto-actions{display:flex;gap:5px;margin-top:4px}
.frost-dispatch.sheet-center .mm-horizontal .mm-auto-actions button{min-height:26px;padding:2px 6px;font-size:11px}
.frost-dispatch.sheet-center .mm-horizontal .mm-readonly-note{grid-column:1/-1;margin:0;font-size:11px}
.frost-dispatch.sheet-center .mm-horizontal .mm-editor-progress{grid-column:1/-1;margin:2px 0 0;height:2px}
@media(max-width:760px){
  .frost-dispatch.sheet-center .mm-horizontal .mm-workspace{height:clamp(350px,62dvh,480px)}
  .frost-dispatch.sheet-center .mm-horizontal .mm-editor{grid-template-columns:minmax(0,1fr);padding:7px 9px;gap:5px}
  .frost-dispatch.sheet-center .mm-horizontal .mm-breadcrumb{display:none}
  .frost-dispatch.sheet-center .mm-horizontal .mm-editor-actions{justify-content:flex-start}
  .frost-dispatch.sheet-center .mm-horizontal .mm-toolbar{align-items:flex-start}
  .frost-dispatch.sheet-center .mm-horizontal .mm-toolbar>div:last-child{flex-wrap:wrap}
}
@media(pointer:coarse){
  .frost-dispatch.sheet-center .mm-horizontal .mmh-node-tools button{min-width:30px;min-height:30px;width:30px;height:30px}
  .frost-dispatch.sheet-center .mm-horizontal .mmh-node-tools [data-mm-sync]{width:auto}
  .frost-dispatch.sheet-center .mm-horizontal .mmh-node{min-height:48px}
  .frost-dispatch.sheet-center .mm-horizontal .mmh-tools button,.frost-dispatch.sheet-center .mm-horizontal .mmh-jumps select{height:34px;min-height:34px}
  .frost-dispatch.sheet-center .mm-horizontal .mm-editor-actions button{min-height:36px}
}
