/* Wireframe mocks. Drawn at a fixed 760px design width and scaled to fit (see fit() in form.js). */
.m-fit {
  --m-ink: #1d3446;
  --m-line: #cfd8e0;
  --m-soft: #e3e8ee;
  --m-mute: #5b6e7d;
  --m-faint: #8494a1;
  --m-stroke: #5b6b78;
  --m-hot: #ff9f19;
  width: 760px;
  transform-origin: top left;
  color: var(--m-ink);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .02em;
}
.m-fit > * {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 22px 44px -24px rgba(0, 0, 0, .55);
}
.m-fit svg { display: block; }
.m-fit button { font: inherit; color: inherit; }

/* atoms */
.m-sk { display: block; height: 7px; border-radius: 4px; background: var(--m-soft); }
.m-chips { display: flex; gap: 6px; }
.m-chips span { border: 1px solid var(--m-line); border-radius: 4px; padding: 2px 8px; font-size: 11px; color: var(--m-mute); white-space: nowrap; }
.plan { font-style: normal; display: inline-flex; align-items: center; height: 16px; padding: 0 5px; margin-left: 6px; border-radius: 3px; font-size: 9.5px; font-weight: 700; vertical-align: 1px; }
.plan-A { border: 1px solid var(--m-line); color: var(--m-mute); }
.plan-B { border: 1px dashed #7f93a3; color: #3f5668; }
.m-note { margin: 10px 0 0; font-size: 11px; color: var(--m-mute); text-align: center; }
.m-note.left { text-align: left; }
.m-mono { font-variant-numeric: tabular-nums; font-size: 11px; color: var(--m-ink); }
.m-pill { justify-self: start; border: 1px solid var(--m-line); border-radius: 999px; padding: 0 8px; font-size: 10.5px; line-height: 18px; }
.m-pill.open { border-color: var(--m-hot); }
.m-sample { font-size: 10px; font-weight: 400; color: var(--m-faint); border: 1px solid var(--m-soft); border-radius: 3px; padding: 0 6px; }

/* app shell + role tabs */
.m-roletabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.m-roletabs button { cursor: pointer; border: 1.5px solid var(--m-line); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 12px; font-weight: 700; color: #3b4f60; }
.m-roletabs button.on { border: 2px solid var(--m-ink); color: var(--m-ink); padding: 4.5px 13.5px; }
.m-roletabs button:focus-visible { outline: 2px solid #0784b8; outline-offset: 2px; }

.m-dash { border: 1.5px solid var(--m-ink); border-radius: 10px; padding: 14px; }
.m-fit > .m-dash { border: 0; padding: 18px; }
.m-dhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--m-soft); }
.m-dhead b { font-size: 14px; }
.m-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.m-kpis + .m-kpis { margin-top: 10px; }
.m-kpis.three { grid-template-columns: repeat(3, 1fr); }
.m-kpi { border: 1px solid var(--m-line); border-radius: 8px; padding: 9px 12px 10px; }
.m-kpi span { display: block; font-size: 11px; color: var(--m-mute); }
.m-kpi b { display: block; margin-top: 6px; font-size: 22px; line-height: 1.1; color: #b3c0ca; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.m-kpi.big b { font-size: 18px; color: var(--m-ink); }
.m-kpi.is-unknown { border-style: dashed; }
.m-kpi.is-unknown b { color: var(--m-faint); font-size: 14px; font-weight: 500; }
.m-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: 10px; }
.m-panel { border: 1px solid var(--m-line); border-radius: 8px; padding: 10px 12px 12px; min-width: 0; }
.m-panel h4 { margin: 0 0 8px; font-size: 12px; }
.m-bars { width: 100%; height: 118px; }
.m-bars rect { fill: none; stroke: var(--m-stroke); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.m-bars .base { stroke: var(--m-line); vector-effect: non-scaling-stroke; }
.m-bars .line { fill: none; stroke: var(--m-ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.m-funnel div { margin: 0 0 6px; }
.m-fbar { display: block; height: 12px; border: 1.3px solid var(--m-stroke); border-radius: 3px; }
.m-funnel em { font-style: normal; font-size: 10.5px; color: var(--m-mute); }
.m-table { font-size: 10.5px; }
.m-th, .m-tr { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px; align-items: center; }
.m-th { font-weight: 700; color: var(--m-mute); padding-bottom: 4px; }
.m-th span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.m-th svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.m-tr { padding: 6px 0; border-top: 1px solid #f0f3f6; }
.m-scope { margin: 10px 0 0; font-size: 10.5px; color: var(--m-mute); }
.m-status div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; }
.m-status .m-sk { flex: 0 0 46%; }

.m-shell { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; }
.m-side { display: flex; flex-direction: column; gap: 2px; padding-right: 12px; border-right: 1px solid var(--m-soft); }
.m-side span { padding: 7px 10px; border-radius: 6px; font-size: 12px; }
.m-side span:first-child { background: #eef2f5; font-weight: 700; }
.m-side p { margin: 10px 0 0; padding: 8px 10px 0; border-top: 1px dashed var(--m-line); font-size: 10.5px; color: var(--m-faint); line-height: 1.6; }
.m-main { min-width: 0; }
.m-userbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.m-role-chip { border: 1px solid var(--m-line); border-radius: 999px; padding: 2px 10px; font-size: 11px; }
.m-count { font-size: 11px; color: var(--m-mute); }
.m-shell .m-dash { border: 0; padding: 0; }
.m-shell .m-kpi b { font-size: 18px; }

/* org chart */
.m-orghead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.m-orghead b { font-size: 14px; }
.m-orghead span { font-size: 12px; font-weight: 700; }
.m-orgsvg { width: 100%; height: auto; overflow: visible; }
.m-orgsvg .n rect { fill: #fff; stroke: var(--m-ink); stroke-width: 1.4; }
.m-orgsvg .n text { font-size: 12px; font-weight: 700; fill: var(--m-ink); }
.m-orgsvg .root rect { fill: var(--m-ink); }
.m-orgsvg .root text { fill: #fff; }
.m-orgsvg .is-b > rect { stroke: #7f93a3; stroke-dasharray: 4 3; }
.m-orgsvg .is-b > text { fill: #3f5668; }
.m-orgsvg .is-unknown > rect { stroke: #a7b4be; stroke-dasharray: 3 3; }
.m-orgsvg .is-unknown > text { fill: var(--m-faint); }
.m-orgsvg .accent > rect { stroke: var(--m-hot); stroke-width: 2; stroke-dasharray: none; }
.m-orgsvg .tag rect { fill: #fff; stroke: #7f93a3; stroke-dasharray: 3 2; stroke-width: 1; }
.m-orgsvg .tag text { font-size: 9px; font-weight: 700; fill: #3f5668; }
.m-orgsvg .l { fill: none; stroke: #9fb0bd; stroke-width: 1.3; }
.m-orgsvg .l.b { stroke-dasharray: 4 3; }
.m-orgsvg .l.is-unknown { stroke-dasharray: 3 3; stroke: #b9c5ce; }
.m-orgsvg .l.cross { stroke: var(--m-hot); stroke-width: 1.6; }
.m-orgsvg .l.dash { stroke-dasharray: 2 3; stroke: #7f93a3; }
.m-orgsvg .l.assign { stroke: var(--m-ink); stroke-dasharray: 2 3; stroke-width: 1.2; }
.m-orgsvg .l.assign.hot { stroke: var(--m-hot); stroke-width: 1.6; }
.m-orgsvg .lbl { font-size: 10.5px; fill: var(--m-mute); }
.m-orgsvg .hint { font-size: 11px; fill: var(--m-faint); }
.m-legend { margin: 8px 0 0; font-size: 10.5px; color: var(--m-mute); display: flex; align-items: center; gap: 6px; }
.m-legend i { display: inline-block; width: 18px; height: 10px; border-radius: 2px; }
.m-legend .lg-b { border: 1px dashed #7f93a3; }
.m-legend .lg-u { border: 1px dashed #b9c5ce; margin-left: 10px; }

/* sub views */
.m-subtabs { display: flex; gap: 6px; margin-bottom: 14px; }
.m-subtabs button { cursor: pointer; border: 1px solid var(--m-line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 11.5px; }
.m-subtabs button.on { background: var(--m-ink); border-color: var(--m-ink); color: #fff; }
.m-subtabs button:focus-visible { outline: 2px solid #0784b8; outline-offset: 2px; }
.m-pair { display: flex; gap: 24px; justify-content: center; align-items: flex-start; }
.m-pair > div { transition: opacity .2s ease; }
.m-pair.one { flex-direction: column; align-items: center; gap: 0; }
.m-fit .is-off { opacity: .22; }
.m-fit div.is-unknown, .m-fit p.is-unknown { opacity: .58; }

.m-phone { width: 230px; border: 2px solid var(--m-ink); border-radius: 26px; padding: 12px 12px 16px; background: #fff; }
.m-notch { width: 64px; height: 6px; border-radius: 3px; background: var(--m-ink); margin: 0 auto 10px; }
.m-ptitle { font-size: 13px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.m-field { display: block; margin: 7px 0; }
.m-field span { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--m-mute); margin-bottom: 3px; }
.m-field span svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.m-field i { display: flex; align-items: center; min-height: 30px; border: 1px solid var(--m-line); border-radius: 6px; padding: 6px 8px; font-style: normal; font-size: 11px; }
.m-field.hot i { border-color: var(--m-hot); }
.m-check { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 10.5px; }
.m-check i { width: 12px; height: 12px; border: 1.3px solid var(--m-stroke); border-radius: 2px; }
.m-btn { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--m-ink); color: #fff; text-align: center; font-size: 12px; font-weight: 700; }
.m-btn.ghost { background: #fff; color: var(--m-ink); border: 1px solid var(--m-ink); }
.m-btn.sm { display: inline-block; padding: 6px 14px; }
.m-scan { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0; padding: 8px; border: 1px dashed #9fb0bd; border-radius: 6px; font-size: 11.5px; }
.m-scan svg { width: 16px; height: 16px; fill: none; stroke: var(--m-ink); stroke-width: 1.3; }
.m-stepper { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 11px; }
.m-stepper span { flex: 1; color: var(--m-mute); }
.m-stepper b { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--m-line); border-radius: 6px; }
.m-stepper b svg { width: 12px; height: 12px; fill: none; stroke: var(--m-ink); stroke-width: 1.6; stroke-linecap: round; }
.m-stepper em { font-style: normal; font-size: 16px; font-weight: 700; min-width: 16px; text-align: center; }
.m-recent { margin-top: 12px; display: grid; gap: 6px; }

.m-desk { width: 430px; border: 1.5px solid var(--m-ink); border-radius: 10px; padding: 12px 14px 14px; background: #fff; }
.m-desk.wide { width: auto; }
.m-dtitle { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; margin-bottom: 10px; }
.m-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 10px; padding: 14px; border: 1.5px dashed #9fb0bd; border-radius: 8px; color: var(--m-mute); font-size: 11px; }
.m-drop svg { width: 20px; height: 20px; fill: none; stroke: var(--m-ink); stroke-width: 1.4; }
.m-desk .m-btn.sm { margin-top: 12px; }
.m-auto { display: flex; align-items: center; justify-content: center; margin: 22px auto 0; max-width: 520px; }

.m-box { flex: none; border: 1.4px solid var(--m-ink); border-radius: 8px; padding: 8px 12px; background: #fff; text-align: center; }
.m-box b { display: block; font-size: 12px; }
.m-box span { display: block; font-size: 10.5px; color: var(--m-mute); }
.m-box.core { background: var(--m-ink); color: #fff; }
.m-box.core span { color: rgba(255, 255, 255, .78); }
.m-box.tall { padding: 34px 12px; }
.m-box.mini { padding: 6px 10px; }
.m-arrow { position: relative; flex: 1; min-width: 80px; height: 2px; margin: 0 6px; background: var(--m-ink); }
.m-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; width: 8px; height: 10px; background: var(--m-ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.m-arrow span { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); white-space: nowrap; font-size: 10.5px; font-weight: 700; background: #fff; padding: 0 4px; }
.m-arrow.is-unknown { height: 0; background: none; border-top: 2px dashed #a7b4be; opacity: 1; }
.m-arrow.is-unknown::after { background: #a7b4be; top: -6px; }
.m-arrow.is-unknown span { color: var(--m-faint); font-weight: 400; }
.m-flowsimple { display: flex; align-items: center; padding: 46px 8px; }
.m-flow { display: grid; grid-template-columns: 1.6fr .7fr .62fr; gap: 12px; align-items: stretch; }
.m-core { display: flex; padding: 12px 0; }
.m-core .m-box { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.m-outs { justify-content: center; }
.m-src { display: flex; align-items: center; margin: 12px 0; }
.m-src .m-box { width: 136px; }
.m-src .m-arrow { margin-right: 0; }
.m-outs { display: flex; flex-direction: column; gap: 6px; }
.m-out { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--m-line); border-radius: 6px; padding: 6px 8px; font-size: 11.5px; font-weight: 700; }
.m-out.is-b { border-style: dashed; border-color: #9fb0bd; }
.m-outs p { margin: 4px 0 0; font-size: 10.5px; color: var(--m-mute); }

.secpair { justify-content: flex-start; }
.m-login { width: 290px; flex: none; border: 1.5px solid var(--m-ink); border-radius: 10px; padding: 14px 16px 16px; }
.m-ltitle { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.m-ltitle svg { width: 16px; height: 16px; fill: none; stroke: var(--m-ink); stroke-width: 1.4; }
.m-secside { flex: 1; min-width: 0; }
.m-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.m-badge { border: 1px solid var(--m-ink); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.m-audit { margin-top: 12px; border: 1px solid var(--m-line); border-radius: 8px; padding: 10px 12px; }
.m-audit > div:not(.m-dtitle) { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 11px; border-top: 1px solid #f0f3f6; }
.m-audit em { font-style: normal; }
.m-mask { font-size: 11px; color: #3b4f60; letter-spacing: .06em; }

.m-volume { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--m-line); border-radius: 8px; }
.m-volume span { font-size: 11px; color: var(--m-mute); }
.m-volume b { font-size: 16px; }

.m-close { margin-top: 12px; border: 1px solid var(--m-line); border-radius: 8px; padding: 12px; }
.m-close.is-quiet { border-style: dashed; }
.m-docs { display: flex; gap: 10px; margin-top: 12px; }
.m-docthumb { flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--m-line); border-radius: 6px; padding: 10px; font-size: 11px; }
.m-docthumb svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--m-ink); stroke-width: 1.2; }

.m-time { width: 100%; height: auto; }
.m-time .axis { stroke: #c9d3dc; stroke-width: 2; }
.m-time .tick { stroke: #9fb0bd; }
.m-time .yr { font-size: 11px; fill: var(--m-mute); }
.m-time .span { fill: #dde6ee; }
.m-time .mk circle { fill: #fff; stroke: var(--m-ink); stroke-width: 2; }
.m-time .mk text { font-size: 12.5px; font-weight: 700; fill: var(--m-ink); }
.m-time .mk .sub { font-size: 11px; font-weight: 400; fill: var(--m-mute); }
.m-time .mk.a circle { fill: var(--m-ink); }
.m-time .mk.b circle { stroke-dasharray: 3 2; }
.m-time .mk.now circle { fill: #9fb0bd; stroke: #9fb0bd; }
.m-time .mk.now text { font-weight: 400; fill: var(--m-mute); font-size: 11px; }
.m-time .unknown text { fill: var(--m-faint); font-weight: 400; }
.m-phases { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.m-phases div { border: 1px solid var(--m-line); border-radius: 8px; padding: 10px 12px; }
.m-phases div.is-b { border-style: dashed; border-color: #9fb0bd; }
.m-phases b { display: block; font-size: 12.5px; }
.m-phases span { font-size: 11px; color: var(--m-mute); }

/* answer-driven pulse */
@keyframes m-pulse {
  0% { outline-color: rgba(255, 159, 25, 0); }
  14% { outline-color: rgba(255, 159, 25, 1); }
  78% { outline-color: rgba(255, 159, 25, 1); }
  100% { outline-color: rgba(255, 159, 25, 0); }
}
@keyframes m-pulse-svg {
  0%, 100% { stroke: inherit; }
  14%, 78% { stroke: #ff9f19; stroke-width: 2.6; }
}
@keyframes m-pulse-text {
  14%, 78% { fill: #c46d00; }
}
.m-fit .pulse:not(g):not(path):not(text) { outline: 2px solid transparent; outline-offset: 3px; border-radius: 6px; animation: m-pulse 1.4s cubic-bezier(.22, .68, .2, 1); }
.m-fit g.pulse > rect, .m-fit path.pulse { animation: m-pulse-svg 1.4s cubic-bezier(.22, .68, .2, 1); }
.m-fit text.pulse, .m-fit g.pulse > text { animation: m-pulse-text 1.4s cubic-bezier(.22, .68, .2, 1); }
