:root {
  --bg: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --ink: #0d1830;
  --ink-2: #3a4865;
  --muted: #6b7a96;
  --line: #dfe5ef;
  --line-2: #c9d3e3;
  --blue: #1566e8;
  --blue-ink: #0d4fbd;
  --blue-soft: #e6effe;
  --red: #d93a3f;
  --red-soft: #fdecec;
  --amber: #b86e00;
  --amber-soft: #fff3df;
  --green: #12875a;
  --green-soft: #e3f5ec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(13, 24, 48, .06), 0 2px 8px rgba(13, 24, 48, .05);
  --shadow-lg: 0 18px 50px rgba(13, 24, 48, .18);
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
[hidden] { display: none !important; }

/* ---------- бренд ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 19px/1 var(--display); letter-spacing: .02em; color: var(--ink); text-transform: uppercase; white-space: nowrap; }
.brand b { color: var(--blue); font-weight: 600; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--blue); position: relative; flex: none; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; bottom: 5px; width: 3px; background: #fff; border-radius: 1px; }
.brand-mark::before { left: 6px; height: 7px; box-shadow: 5px -3px 0 0 #fff; }
.brand-mark::after { left: 15px; height: 12px; }
.brand-lg { font-size: 28px; margin-bottom: 26px; }
.brand-lg .brand-mark { width: 30px; height: 30px; border-radius: 8px; }

/* ---------- кнопки и поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn-danger { color: var(--red); }
.btn-danger:hover { border-color: var(--red); background: var(--red-soft); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn-block { width: 100%; height: 44px; }
.btn:disabled { opacity: .55; cursor: default; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; font-size: 16px; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.fld { display: block; margin-bottom: 14px; }
.fld > span { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.fld > span .req { color: var(--red); margin-left: 2px; }
.fld > span .hint { font-weight: 500; color: var(--muted); margin-left: 6px; }
.fld input, .fld select, .fld textarea, .inp { width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
.fld textarea { min-height: 84px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .inp:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.fld.err input, .fld.err select, .fld.err textarea { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.fld .err-msg { color: var(--red); font-size: 12px; margin-top: 4px; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert { background: var(--red-soft); color: var(--red); border-radius: 9px; padding: 10px 12px; font-weight: 600; margin-bottom: 14px; }

/* ---------- вход ---------- */
.login-page { background: var(--blue); background-image: radial-gradient(circle at 15% 10%, #3a83f5 0, transparent 45%), radial-gradient(circle at 90% 90%, #0b4cc0 0, transparent 50%); }
.login { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 18px; padding: 34px 30px 30px; box-shadow: var(--shadow-lg); }
.login-sub { color: var(--muted); margin: 10px 0 24px; }
.login-foot { color: var(--muted); font-size: 12px; text-align: center; margin: 16px 0 0; }

/* ---------- шапка ---------- */
.app { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.top { display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
.filters { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.seg { display: flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; overflow-x: auto; scrollbar-width: none; }
.seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 7px; font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--blue); box-shadow: var(--shadow); }
.search { position: relative; flex: 0 1 260px; min-width: 120px; }
.search svg { position: absolute; left: 10px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; height: 34px; padding: 0 10px 0 32px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); outline: none; }
.search input:focus { border-color: var(--blue); background: var(--surface); }
.top-right { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; cursor: pointer; list-style: none; text-transform: uppercase; }
.avatar::-webkit-details-marker { display: none; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 230px; padding: 6px; z-index: 30; }
.menu-pop a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--ink); font-weight: 600; }
.menu-pop a:hover { background: var(--surface-2); }
.menu-who { padding: 9px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-who span { color: var(--muted); font-size: 12px; }

/* ---------- доска ---------- */
.board-wrap { flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; cursor: grab; scrollbar-width: none; }
.board-wrap::-webkit-scrollbar { display: none; }
.board-wrap.panning { cursor: grabbing; user-select: none; }
/* своя полоса прокрутки: системная на macOS прячется */
.hbar { flex: none; height: 18px; padding: 4px 20px 6px; background: var(--bg); cursor: pointer; }
.hbar::before { content: ""; display: block; height: 8px; border-radius: 6px; background: #d6deea; }
.hbar-thumb { position: relative; top: -8px; height: 8px; border-radius: 6px; background: #8fa2c0; cursor: grab; min-width: 40px; transition: background .15s; }
.hbar-thumb:hover, .hbar.drag .hbar-thumb { background: var(--blue); }
.hbar.drag .hbar-thumb { cursor: grabbing; }
.board { display: flex; gap: 14px; padding: 18px 20px 16px; height: 100%; align-items: flex-start; width: max-content; }
.col { flex: 0 0 300px; display: flex; flex-direction: column; max-height: 100%; cursor: default; background: #e3e9f3; border-radius: 14px; transition: box-shadow .2s, background .2s; }
.col-head { padding: 12px 14px 10px; }
.col-title { display: flex; align-items: baseline; gap: 8px; }
.col-step { font: 500 12px/1 var(--display); color: var(--muted); }
.col-name { font: 600 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.col-count { margin-left: auto; font: 600 13px/1 var(--display); color: var(--ink-2); background: var(--surface); border-radius: 20px; padding: 3px 8px; }
.col-sum { margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 600; min-height: 17px; }
.col-gate { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.gate-chip { font-size: 11px; font-weight: 700; color: var(--ink-2); background: rgba(255,255,255,.65); border-radius: 5px; padding: 2px 6px; }
.gate-chip.lock { background: transparent; color: var(--muted); padding-left: 0; }
.col-list { flex: 1; overflow-y: auto; padding: 2px 10px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.col-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 18px 6px; border: 1.5px dashed var(--line-2); border-radius: 10px; }
.col.drop-ok { box-shadow: inset 0 0 0 2px var(--blue); background: #dce7fa; }
.col.drop-bad { box-shadow: inset 0 0 0 2px var(--amber); background: #f6ecdc; }

.col.side { background: #e8ebf1; }
.col.side .col-name { color: var(--ink-2); }
.col-divider { flex: none; width: 2px; align-self: stretch; margin: 6px 4px; background: repeating-linear-gradient(to bottom, var(--line-2) 0 6px, transparent 6px 12px); }
.card-note { margin-top: 7px; font-size: 12px; color: var(--ink-2); background: var(--amber-soft); border-radius: 6px; padding: 5px 7px; white-space: pre-wrap; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.side-moves { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 16px; font-size: 12px; color: var(--muted); font-weight: 600; }
.side-btn { border: 1px solid var(--line-2); background: var(--surface); border-radius: 20px; padding: 4px 11px; font-weight: 700; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.side-btn:hover { border-color: var(--muted); }
.side-btn.cur { background: var(--ink); border-color: var(--ink); color: #fff; }
.stage-banner { background: var(--amber-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 2px; }
.stage-banner b { font: 600 13px/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--amber); }
.stage-banner span { white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.card { background: var(--surface); border-radius: 10px; padding: 11px 12px 10px; box-shadow: var(--shadow); cursor: grab; border: 1px solid transparent; transition: border-color .15s, transform .15s; user-select: none; }
.card:hover { border-color: var(--line-2); }
.card:active { cursor: grabbing; }
.card-title { font-weight: 700; line-height: 1.3; word-break: break-word; }
.card-sub { color: var(--muted); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-next { margin-top: 8px; font-size: 12px; color: var(--ink-2); display: flex; gap: 6px; align-items: flex-start; }
.card-next .when { font-weight: 800; white-space: nowrap; }
.card-next.overdue .when { color: var(--red); }
.card-next.today .when { color: var(--amber); }
.card-next.none { color: var(--red); font-weight: 600; }
.card-foot { margin-top: 9px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); font-weight: 600; }
.mini-av { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 11px; flex: none; text-transform: uppercase; }
.mini-av.none { background: var(--surface-2); color: var(--muted); }
.ready { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.ready i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.ready i.on { background: var(--green); }
.ready.full { color: var(--green); }
.sortable-ghost { opacity: .35; }
.sortable-chosen { box-shadow: var(--shadow-lg); }
.sortable-fallback { opacity: .95 !important; transform: rotate(2deg); box-shadow: var(--shadow-lg); }
.card.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }


/* ---------- карточка сделки ---------- */
.drawer { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(13, 24, 48, .28); opacity: 0; transition: opacity .2s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px 8px; }
.d-title { flex: 1; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; font: 700 20px/1.25 var(--body); outline: none; min-width: 0; }
.d-title:hover { border-color: var(--line); }
.d-title:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 24px 32px; }

.stepper { display: flex; gap: 4px; margin: 6px 0 14px; }
.step { flex: 1; position: relative; border: 0; background: var(--surface-2); padding: 9px 8px 8px 12px; text-align: left; cursor: pointer; font-weight: 700; font-size: 12px; color: var(--muted); border-radius: 0; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%); }
.step:first-child { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); border-radius: 8px 0 0 8px; padding-left: 10px; }
.step:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%); border-radius: 0 8px 8px 0; }
.step.done { background: var(--blue-soft); color: var(--blue-ink); }
.step.cur { background: var(--blue); color: #fff; }
.step:hover:not(.cur) { filter: brightness(.96); }
.step small { display: block; font-weight: 600; font-size: 10px; opacity: .8; margin-top: 1px; }

.d-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.d-meta .fld { margin: 0; }
.nextbox { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; background: var(--surface-2); }
.nextbox.overdue { border-color: #f3b9bb; background: var(--red-soft); }
.nextbox h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.nextbox .row { display: grid; grid-template-columns: 1fr 150px; gap: 8px; }

.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { border: 0; background: none; padding: 9px 0; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.badge { background: var(--amber-soft); color: var(--amber); border-radius: 10px; padding: 1px 7px; font-size: 11px; font-weight: 800; }
.badge.ok { background: var(--green-soft); color: var(--green); }

.act-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 18px; }
.kinds { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.kinds label { cursor: pointer; }
.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.kinds span { display: inline-block; padding: 5px 11px; border-radius: 20px; border: 1px solid var(--line-2); font-weight: 700; font-size: 12px; color: var(--ink-2); }
.kinds input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.kinds input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.act-form textarea { width: 100%; min-height: 76px; border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 11px; resize: vertical; outline: none; }
.act-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.act-row { display: grid; grid-template-columns: 170px 1fr 140px; gap: 8px; margin-top: 8px; }
.act-row .inp { padding: 7px 9px; font-size: 13px; }
.act-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.act-sub { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 2px 0 4px; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl { position: relative; padding: 0 0 16px 38px; }
.tl-dot { position: absolute; left: 4px; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 10px; }
.tl.human .tl-dot { border-color: var(--blue); background: var(--blue-soft); }
.tl-head { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.tl-head b { color: var(--ink); font-size: 13px; }
.tl-body { margin-top: 4px; white-space: pre-wrap; word-break: break-word; background: var(--surface-2); border-radius: 9px; padding: 9px 11px; }
.tl.sys .tl-body { background: none; padding: 0; color: var(--ink-2); margin-top: 1px; }
.tl-del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; margin-left: auto; padding: 0; }
.tl-del:hover { color: var(--red); }
.tl-empty { color: var(--muted); padding: 6px 0 0; }

.fgroup { margin-bottom: 18px; }
.fgroup-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 600 13px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.fgroup-h .st { margin-left: auto; font: 700 11px/1 var(--body); text-transform: none; letter-spacing: 0; }
.fgroup-h .st.ok { color: var(--green); }
.fgroup-h .st.miss { color: var(--amber); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.fgrid .wide { grid-column: 1 / -1; }
.save-state { font-size: 12px; color: var(--muted); font-weight: 600; min-height: 18px; }

.d-danger { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(13, 24, 48, .4); }
.modal-card { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 16px; padding: 22px 22px 18px; box-shadow: var(--shadow-lg); }
.modal-card h3 { margin: 0 0 4px; font: 600 20px/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.modal-card .lead { color: var(--muted); margin: 0 0 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.gate-flow { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-weight: 700; font-size: 13px; }
.gate-flow .from { color: var(--muted); }
.gate-flow .to { color: var(--blue); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 80; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
.toast.bad { background: var(--red); }

/* ---------- админка ---------- */
.admin { max-width: 1100px; margin: 0 auto; padding: 22px 20px 60px; overflow-y: auto; }
.admin-scroll { flex: 1; overflow-y: auto; }
.admin h2 { font: 600 20px/1.2 var(--display); text-transform: uppercase; letter-spacing: .03em; margin: 30px 0 6px; }
.admin h2:first-child { margin-top: 0; }
.admin .lead { color: var(--muted); margin: 0 0 14px; max-width: 720px; }
.panel { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: var(--surface-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .c { text-align: center; }
.tbl .inp { padding: 6px 9px; }
.tbl .muted { color: var(--muted); font-size: 12px; }
.matrix th.st { text-align: center; min-width: 110px; }
.radio-cell input { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
.pill { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); }
.pill.admin { background: var(--blue-soft); color: var(--blue); }
.pill.off { background: var(--red-soft); color: var(--red); }
.addrow { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; align-items: flex-start; }
.addrow .inp { width: auto; flex: 1 1 160px; }
.drag-h { cursor: grab; color: var(--muted); user-select: none; width: 22px; }

/* ---------- мобильный ---------- */
@media (max-width: 820px) {
  .top { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .filters { order: 3; flex-basis: 100%; overflow-x: auto; }
  .top-right { margin-left: auto; }
  .search { flex: 1 1 140px; }
  .board { padding: 14px 16px 14px; }
  .board-wrap { scroll-snap-type: x mandatory; cursor: default; }
  .hbar { padding: 4px 16px 6px; }
  .col { flex: 0 0 86vw; scroll-snap-align: start; }
  .drawer-body { padding: 4px 16px 28px; }
  .d-meta, .fgrid, .row2 { grid-template-columns: 1fr; }
  .act-row { grid-template-columns: 1fr 1fr; }
  .act-row .inp:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .nextbox .row { grid-template-columns: 1fr; }
  .step small { display: none; }
  .admin { padding: 16px 16px 40px; }
}
.matrix td:nth-child(2) { min-width: 260px; }
.matrix select[data-f="type"] { min-width: 130px; }
.matrix th.st { font-size: 10px; }
.btn-ghost.btn-danger { color: var(--red); }
