/* MoxuBatch product styles. Colour, type and geometry come from ../shared/moxu-tokens.css; only layout and components live here. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.bar { height: var(--bar-h); padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-soft); }
.bar__right { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-bright); display: grid; place-items: center; color: var(--accent); }
.brand__mark svg { width: 16px; height: 16px; }
.brand__name { font-size: 14px; font-weight: 600; letter-spacing: -0.015em; }
.brand__name em { font-style: normal; color: var(--accent); }
.brand__sub { font-size: 11px; color: var(--text-dim); }
.privacy-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); font-size: 11.5px; font-weight: 600; }
.privacy-pill svg { width: 13px; height: 13px; color: var(--ok); }
.page { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 44px 24px; cursor: pointer; border: 1.5px dashed var(--line-bright); border-radius: var(--r-xl); background: var(--bg-deep); transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-wash); }
.drop__title { font-size: 17px; font-weight: 600; }
.drop__sub { color: var(--text-dim); font-size: 13px; }
.status { margin: 0; min-height: 1.4em; color: var(--text-dim); font-size: 13px; }
.status.is-error { color: var(--danger); }
.status.is-ok { color: var(--ok); }
.work { display: flex; flex-direction: column; gap: 14px; }
.fileinfo { margin: 0; color: var(--text-dim); font-size: 13px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.step__h { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.step__n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--accent-wash); color: var(--accent); font-size: 12px; font-weight: 700; }
.pro-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pro); border: 1px solid var(--pro); border-radius: 999px; padding: 1px 8px; }
.hint { margin: 0; color: var(--text-dim); font-size: 12.5px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.input, .select { width: 100%; height: 38px; padding: 0 11px; background: var(--bg-deep); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-md); font: inherit; }
.input:hover, .select:hover { border-color: var(--line-bright); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); }
.mapping { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.slot { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--bg-deep); }
.slot__label { font-size: 12.5px; font-weight: 600; }
.outputs { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.preview { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.preview th, .preview td { padding: 6px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line-soft); }
.preview th { color: var(--text-dim); font-weight: 600; background: var(--bg-deep); }
.preview th.is-new, .preview td.is-new { color: var(--accent-bright); }
.preview td.is-new { font-family: var(--font-mono); }
.limit { margin: 0; font-size: 12.5px; color: var(--pro); }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn { height: 34px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid transparent; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--primary { background: var(--accent); border-color: var(--accent-deep); color: #04121e; height: 38px; padding: 0 20px; }
.btn--primary:hover:not(:disabled) { background: var(--accent-bright); }
.btn--ghost { color: var(--text-dim); border-color: var(--line); }
.btn--ghost:hover:not(:disabled) { color: var(--text); border-color: var(--line-bright); }
.foot { margin: 0; color: var(--text-faint); font-size: 12.5px; max-width: 70ch; }
.mp-save { display: flex; gap: 8px; }
.mp-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mp-item { display: flex; align-items: center; gap: 8px; }
.mp-item__name { flex: 1; font-size: 13px; }
.mp-del { width: 28px; height: 28px; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--text-dim); }
.mp-status { margin: 6px 0 0; font-size: 12.5px; color: var(--text-dim); }
.mp-status.is-ok { color: var(--ok); }
@media (max-width: 640px) { .bar { padding: 0 12px; } .brand__sub { display: none; } .page { padding: 12px; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
