:root {
  color-scheme: light;
  --bg: #f4f6f5;
  --panel: #fff;
  --ink: #1b2326;
  --ink2: #334247;
  --muted: #5b6a70;
  --line: #dde3e3;
  --line2: #c6d0d2;
  --petrol: #1f6670;
  --petrol-d: #164e56;
  --petrol-s: #e2eff0;
  --petrol-m: #7fb1b7;
  --warn: #7a4d00;
  --warn-s: #fbf0dc;
  --warn-b: #d79a2b;
  --ok: #22633d;
  --ok-s: #e2f1e7;
  --late: #b3261e;
  --late-s: #fbe9e7;
  --info: #2d4f86;
  --info-s: #e6edf8;
  --r: 10px;
}
:root[data-theme="light"] {
  color-scheme: light;
}
* {
  box-sizing: border-box;
  min-width: 0;
}
html,
body,
#root {
  height: 100%;
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.5 IBM Plex Sans,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.01em;
}
h2,
.h2 {
  font-size: 21px;
}
h3,
.h3 {
  font-size: 15px;
}
p {
  margin: 0;
}
.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}
.muted {
  color: var(--muted);
}
.sm {
  font-size: 13px;
}
.strong {
  font-weight: 600;
}
.row {
  display: flex;
  align-items: center;
}
.gap {
  gap: 8px;
}
.wrap {
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.sp {
  flex: 1;
}
.pad {
  padding: 8px 14px;
}
.r {
  text-align: right;
}
code {
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  font-size: 13px;
  background: var(--soft);
  padding: 1px 6px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn-pri:focus-visible {
  outline-color: #d79a2b;
}
.ic {
  flex: none;
}
.app {
  position: relative;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}
.app.is-m {
  grid-template-columns: minmax(0, 1fr);
}
.main {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.scroll-main {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
}
.side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  padding: 4px 8px 14px;
}
.snav button,
.side-cur button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: none;
  border-radius: 8px;
  text-align: left;
  color: var(--ink2);
  font-weight: 500;
}
.snav button:hover,
.side-cur button:hover {
  background: var(--soft);
}
.snav button.on {
  background: var(--petrol-s);
  color: var(--petrol-d);
  font-weight: 600;
}
.pill {
  margin-left: auto;
  background: var(--late);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
}
.side-cur {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.side-cur .fl {
  padding: 0 10px 4px;
}
.side-cur button {
  font-size: 14px;
  min-height: 40px;
}
.side-cur button.on {
  color: var(--petrol-d);
  font-weight: 600;
}
.side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.side-foot .btn {
  justify-content: flex-start;
  width: 100%;
  color: var(--ink2);
}
.me {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 8px 0;
}
.me > span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.mtop {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 56px;
  padding: 0 6px 0 4px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.mlogo {
  display: grid;
  place-items: center;
  width: 44px;
}
.mtitle {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  overflow: hidden;
}
.mtitle strong {
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mtitle span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--panel);
  border-top: 1px solid var(--line);
  flex: none;
  padding-bottom: env(safe-area-inset-bottom);
}
.bbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 62px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.bbar button.on {
  color: var(--petrol-d);
  font-weight: 600;
}
.bbar button.on .bi {
  background: var(--petrol-s);
}
.bi {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 30px;
  border-radius: 15px;
}
.bi .pill {
  position: absolute;
  top: -4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
}
.area {
  padding: 22px 30px 40px;
}
.is-m .area {
  padding: 12px 12px 28px;
}
.area-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.is-m .area-h h1 {
  font-size: 23px;
}
.crumbs {
  margin-bottom: 4px;
  color: var(--muted);
}
.crumbs .lnk {
  font-size: inherit;
}
.tnr {
  flex: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.tnr.big {
  font-size: 15px;
  margin-left: 6px;
}
.pane-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.pane-h.tight {
  padding: 12px 14px;
}
.pane {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.pane > .rows:last-child > .trow:last-child,
.pane > .grp:last-child .trow:last-child {
  border-radius: 0 0 var(--r) var(--r);
}
.ov {
  background: none;
  border: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ov .grp {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.today {
  margin-bottom: -6px;
}
.grp + .grp {
  border-top: 1px solid var(--line);
}
.ov .grp + .grp {
  border-top: 1px solid var(--line);
}
.gh {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 6px;
  font-size: 14px;
  color: var(--ink2);
}
.gh.late {
  color: var(--late);
}
.cnt {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  background: var(--soft);
  color: var(--muted);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 12px;
}
.seg {
  display: inline-flex;
  gap: 2px;
  background: var(--soft);
  border-radius: 9px;
  padding: 3px;
}
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  background: none;
  border-radius: 7px;
  color: var(--ink2);
  font-weight: 500;
  white-space: nowrap;
}
.seg button.on {
  background: var(--panel);
  color: var(--petrol-d);
  font-weight: 600;
  box-shadow: 0 1px 2px #00000014;
}
.tabs {
  display: flex;
  background: none;
  border-radius: 0;
  padding: 0;
  gap: 4px;
  border-bottom: 1px solid var(--line2);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 16px;
}
.tabs button {
  border-radius: 0;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tabs button.on {
  background: none;
  box-shadow: none;
  border-bottom-color: var(--petrol);
}
.area-h .tabs {
  margin-bottom: 0;
  border: 0;
  width: 100%;
}
.is-m .tabs {
  margin-left: -12px;
  margin-right: -12px;
  padding: 0 6px;
  width: auto;
}
.is-m .area-h .tabs {
  border-bottom: 1px solid var(--line2);
  width: calc(100% + 24px);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s;
}
.is-m .btn {
  min-height: 44px;
}
.btn-pri {
  background: var(--petrol);
  color: #fff;
}
.btn-pri:hover {
  background: var(--petrol-d);
}
.btn-sec {
  background: var(--panel);
  border-color: var(--line2);
  color: var(--ink);
}
.btn-sec:hover {
  background: var(--soft);
}
.btn-ghost {
  background: none;
  color: var(--petrol-d);
}
.btn-ghost:hover {
  background: var(--soft);
}
.btn-icon {
  padding: 0;
  width: 40px;
}
.is-m .btn-icon {
  width: 44px;
}
.btn-lg {
  min-height: 52px;
  font-size: 16px;
  padding: 0 20px;
}
.btn-sm {
  min-height: 32px;
  padding: 0 10px;
  font-size: 14px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.lnk {
  border: 0;
  background: none;
  padding: 0;
  color: var(--petrol-d);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--petrol-m);
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-align: left;
}
.lnk:disabled {
  color: var(--ink);
  text-decoration: none;
  cursor: default;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.5;
}
.badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.t-neutral {
  background: var(--soft);
  color: var(--ink2);
}
.t-petrol {
  background: var(--petrol-s);
  color: var(--petrol-d);
}
.t-warn {
  background: var(--warn-s);
  color: var(--warn);
}
.t-ok {
  background: var(--ok-s);
  color: var(--ok);
}
.t-info {
  background: var(--info-s);
  color: var(--info);
}
.av {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink2);
  font-weight: 600;
  flex: none;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.trow {
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-left: calc(var(--depth, 0) * 26px);
  position: relative;
}
.rows > .trow:first-child {
  border-top: 0;
}
.grp .rows {
  border-top: 1px solid var(--line);
}
.trow.sel {
  background: var(--petrol-s);
}
.trow.sel:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--petrol);
}
.trow-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  background: none;
  text-align: left;
  min-height: 56px;
  justify-content: center;
}
.trow-main.static {
  cursor: default;
}
button.trow-main:hover {
  background: #1f66700d;
}
.trow-t {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 500;
}
.trow-t .ic {
  align-self: center;
}
.tt {
  overflow-wrap: break-word;
  hyphens: auto;
}
.trow.done .tt {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: #a9b4b6;
}
.trow-m {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  font-size: 13px;
  align-items: center;
}
.trow-r {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  flex: none;
}
.amt {
  font-weight: 600;
  white-space: nowrap;
}
.exp,
.exp-sp {
  flex: none;
  width: 32px;
  height: 40px;
  margin-left: 6px;
}
.exp {
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  border-radius: 6px;
  color: var(--muted);
}
.exp:hover {
  background: var(--soft);
}
.rows.compact .trow-main {
  min-height: 48px;
  padding: 6px 10px;
}
.due {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.due.late {
  color: var(--late);
  font-weight: 600;
}
.due.today {
  color: var(--petrol-d);
  font-weight: 600;
}
.prog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.prog .bar {
  width: 56px;
  height: 6px;
  border-radius: 3px;
  background: var(--soft);
  overflow: hidden;
}
.prog .bar span {
  display: block;
  height: 100%;
  background: var(--petrol);
}
.is-m .trow {
  flex-wrap: wrap;
  padding-left: calc(var(--depth, 0) * 18px);
}
.is-m .trow-main {
  flex-basis: 100%;
  padding-bottom: 4px;
}
.is-m .trow-r {
  padding: 0 12px 10px;
  margin-left: auto;
}
.is-m .exp + .trow-main,
.is-m .exp-sp + .trow-main {
  flex-basis: calc(100% - 44px);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}
.split-w {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
}
.split-r {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 24px);
  overflow: auto;
  border-radius: var(--r);
}
.proj .split-r {
  max-height: calc(100vh - 24px);
}
.split-ph {
  background: var(--panel);
  border: 1px dashed var(--line2);
  border-radius: var(--r);
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}
.et {
  font-weight: 600;
  color: var(--ink2);
}
.detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.is-m .detail {
  padding: 14px 14px 20px;
  border-radius: var(--r);
}
.det-h h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.det-h h2 .tnr {
  font-size: 18px;
}
.det-sec {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.det-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.desc {
  color: var(--ink2);
  max-width: 68ch;
}
.statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  background: var(--panel);
  font-weight: 500;
  color: var(--ink2);
}
.is-m .sb {
  min-height: 44px;
  flex: 1 1 40%;
  justify-content: center;
}
.sb.on {
  border-color: transparent;
  font-weight: 600;
}
.sb.on.t-neutral {
  background: var(--soft);
  color: #2f3d42;
}
.sb.on.t-petrol {
  background: var(--petrol);
  color: #fff;
}
.sb.on.t-warn {
  background: var(--warn-b);
  color: #2b1c00;
}
.sb.on.t-ok {
  background: var(--ok);
  color: #fff;
}
.closebox {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 14px;
}
.closebox.ready {
  background: var(--ok-s);
}
.closebox > span {
  flex: 1 1 240px;
}
.filecard {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--panel);
  text-align: left;
  min-height: 56px;
}
.filecard:hover {
  border-color: var(--petrol-m);
  background: var(--soft);
}
.filecard > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fn {
  font-weight: 600;
}
.filecard .open {
  color: var(--petrol-d);
  font-weight: 600;
  font-size: 14px;
}
.is-m .filecard {
  flex-wrap: wrap;
}
.is-m .filecard .open {
  flex-basis: 100%;
  padding-left: 34px;
}
.files {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.composer textarea {
  width: 100%;
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}
.attach {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.attach img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.log {
  display: flex;
  flex-direction: column;
}
.le {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.le:first-child {
  border-top: 0;
}
.le-b {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.le-m {
  font-size: 13.5px;
}
.le-m time {
  margin-left: 4px;
}
.cmt {
  background: var(--soft);
  padding: 8px 10px;
  border-radius: 0 8px 8px;
  max-width: 60ch;
}
.from {
  color: var(--muted);
  text-decoration: line-through;
}
.photo {
  border: 0;
  padding: 0;
  background: none;
  align-self: flex-start;
}
.photo img {
  display: block;
  width: 220px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.bigimg {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.fileref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  align-self: flex-start;
  min-height: 40px;
  padding: 4px 12px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--panel);
  font-size: 14px;
  text-align: left;
}
.fileref:hover {
  border-color: var(--petrol-m);
}
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fl {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
}
.fh {
  font-size: 12.5px;
  color: var(--muted);
}
.inp {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--panel);
  font-size: 16px;
}
.is-d .inp {
  font-size: 15px;
}
textarea.inp {
  padding: 10px 12px;
  line-height: 1.5;
}
.inp:disabled {
  background: var(--soft);
  color: var(--ink2);
}
.inp.r {
  text-align: right;
}
.inp.narrow {
  width: auto;
  min-width: 200px;
}
.h2inp {
  font-size: 20px;
  font-weight: 600;
}
select.inp {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5b6a70 50%),
    linear-gradient(135deg, #5b6a70 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.g2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.g3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.g2.in {
  gap: 8px;
}
.span2 {
  grid-column: span 2;
}
.is-m .g2,
.is-m .g3,
.is-m .det-grid {
  grid-template-columns: minmax(0, 1fr);
}
.is-m .g2.in {
  grid-template-columns: 1fr 1fr;
}
.is-m .span2 {
  grid-column: auto;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}
.check input {
  width: 22px;
  height: 22px;
  accent-color: var(--petrol);
}
.lineed {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px 14px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lineed legend {
  font-weight: 600;
  padding: 0 6px;
  font-size: 14px;
}
.targets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--soft);
  border-radius: 8px;
  padding: 10px 12px;
}
.targets .ok {
  color: var(--ok);
}
.targets .late {
  color: var(--late);
}
.trg {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.trg select {
  flex: 1 1 220px;
}
.colsed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.colsed .inp {
  flex: 1;
}
.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line2);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}
.stepper button {
  width: 44px;
  border: 0;
  background: var(--soft);
  font-size: 22px;
  font-weight: 500;
  color: var(--petrol-d);
}
.stepper button:disabled {
  color: #b8c2c4;
  cursor: not-allowed;
}
.stv {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}
.stv input {
  width: 52px;
  border: 0;
  text-align: right;
  font-size: 18px;
  font-weight: 600;
  background: none;
  padding: 6px 0;
}
.stv span {
  color: var(--muted);
  font-size: 14px;
}
.stepper.big button {
  width: 68px;
  font-size: 30px;
  min-height: 64px;
}
.stepper.big .stv input {
  width: 64px;
  font-size: 26px;
}
.menuwrap {
  position: relative;
  display: inline-block;
}
.menu {
  position: absolute;
  top: calc(100% + 4px);
  z-index: 40;
  min-width: 230px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px #14232829;
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.menu-right {
  right: 0;
}
.menu-left {
  left: 0;
}
.menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  background: none;
  border-radius: 6px;
  text-align: left;
  white-space: nowrap;
}
.menu button:hover,
.menu button:focus-visible {
  background: var(--soft);
}
.menu button.active {
  font-weight: 600;
  color: var(--petrol-d);
}
.menu .mchk {
  margin-left: auto;
}
.menu hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 0;
}
.scrim {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: #121e216b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dlg {
  background: var(--panel);
  border-radius: 12px;
  width: min(580px, 100%);
  max-height: calc(100% - 20px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px #00000040;
}
.dlg.wide {
  width: min(1080px, 100%);
}
.dlg-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 12px 20px;
  border-bottom: 1px solid var(--line);
}
.dlg-b {
  padding: 16px 20px;
  overflow: auto;
}
.dlg-b > .detail {
  border: 0;
  padding: 0;
}
.dlg-f {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}
.is-m .scrim {
  align-items: flex-end;
  padding: 0;
}
.is-m .dlg {
  width: 100%;
  max-height: 94%;
  border-radius: 16px 16px 0 0;
}
.is-m .dlg-b {
  padding: 14px;
}
.is-m .dlg-f {
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.is-m .dlg-f .btn-pri {
  flex: 1;
}
.toasts {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  top: 14px;
  width: max-content;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 420px;
}
.is-m .toasts {
  left: 12px;
  right: 12px;
  top: 62px;
  transform: none;
  width: auto;
}
.toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--ink);
  color: #fff;
  padding: 11px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 24px #00000040;
  font-size: 14px;
  animation: tin 0.25s ease-out;
}
@keyframes tin {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }
}
.costline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.cl-i {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  text-align: left;
}
.cl-i:first-child {
  border-left: 0;
}
.cl-l {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.cl-v {
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}
.cl-btn:hover {
  background: var(--soft);
}
.cl-btn .cl-l {
  color: var(--petrol-d);
  text-decoration: underline;
  text-decoration-color: var(--petrol-m);
  text-underline-offset: 3px;
}
.cl-free {
  background: var(--petrol-s);
}
.cl-free .cl-v {
  color: var(--petrol-d);
}
.cl-v.neg {
  color: var(--late);
}
.costline.big .cl-v {
  font-size: 28px;
}
.is-m .costline {
  grid-template-columns: 1fr 1fr;
}
.is-m .cl-i:nth-child(3) {
  border-left: 0;
}
.is-m .cl-i:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}
.is-m .cl-v {
  font-size: 20px;
}
.is-m .costline.big .cl-v {
  font-size: 22px;
}
.costline.big {
  border-radius: var(--r) var(--r) 0 0;
}
.pane > .costline {
  margin: 14px 14px 0;
  width: auto;
}
.costbar {
  display: flex;
  height: 12px;
  margin: 0 14px;
  background: var(--petrol-s);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 0;
}
.cb-g {
  background: var(--petrol);
}
.cb-o {
  background: var(--petrol-m);
}
.legend {
  display: flex;
  gap: 6px 14px;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 14px 4px;
  color: var(--muted);
}
.legend span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: -8px;
}
.lg-g {
  background: var(--petrol);
}
.lg-o {
  background: var(--petrol-m);
}
.lg-f {
  background: var(--petrol-s);
  border: 1px solid var(--line2);
}
.ov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.is-m .ov-grid {
  grid-template-columns: 1fr;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.card .btn {
  align-self: flex-start;
}
.ch {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.big-t {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.kids {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px;
  padding: 6px 14px 14px;
}
.kid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  border: 1px solid var(--line2);
  background: var(--panel);
  border-radius: 10px;
  padding: 12px 14px;
}
.kid:hover {
  border-color: var(--petrol-m);
}
.mtree {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}
.chip {
  flex: none;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 19px;
  border: 1px solid var(--line2);
  background: var(--panel);
  font-weight: 500;
  white-space: nowrap;
}
.chip.on {
  background: var(--petrol);
  border-color: var(--petrol);
  color: #fff;
}
.kwrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}
.kdetail {
  width: 410px;
  position: sticky;
  top: 0;
  max-height: calc(100vh - 24px);
  overflow: auto;
}
.kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 12px;
  padding: 14px;
  overflow-x: auto;
}
.is-m .kanban {
  grid-auto-columns: 84%;
  scroll-snap-type: x mandatory;
  padding: 12px;
}
.kcol {
  background: var(--soft);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 240px;
  scroll-snap-align: start;
  outline: 2px dashed transparent;
  outline-offset: -2px;
}
.kcol.over {
  outline-color: var(--petrol);
  background: var(--petrol-s);
}
.kh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 4px;
}
.kcards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px #0000000d;
}
.kcard[draggable="true"] {
  cursor: grab;
}
.kcard.sel {
  border-color: var(--petrol);
  box-shadow: 0 0 0 2px var(--petrol-s);
}
.kc-open {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 10px 12px 6px;
  border: 0;
  background: none;
  text-align: left;
}
.kc-open .tt {
  font-weight: 600;
}
.kc-f {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 4px 4px 12px;
  font-size: 12.5px;
}
.kempty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 16px 4px;
  border: 1px dashed var(--line2);
  border-radius: 8px;
}
.wiki {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 72ch;
}
.wiki h4 {
  font-size: 16px;
  margin-top: 8px;
}
.wiki ul {
  margin: 0;
  padding-left: 20px;
}
.wikied {
  min-height: 260px;
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  font-size: 14px;
}
.vbanner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.vbanner > span {
  flex: 1 1 260px;
}
.vbanner.cur {
  background: var(--petrol-s);
  color: var(--petrol-d);
  border-left: 4px solid var(--petrol);
}
.vbanner.old {
  background: var(--warn-s);
  color: var(--warn);
  border-left: 4px solid var(--warn-b);
}
.preview {
  border: 1px solid var(--line2);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.preview.old {
  border-color: var(--warn-b);
  box-shadow: 0 0 0 3px var(--warn-s);
}
.preview svg,
.preview img {
  display: block;
  width: 100%;
  height: auto;
}
.pv-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 40px;
}
.fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.is-m .fgrid {
  grid-template-columns: 1fr;
}
.vers li button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  text-align: left;
  min-height: 52px;
}
.vers li button:hover {
  background: var(--soft);
}
.vers li.on button {
  border-color: var(--petrol-m);
  background: var(--soft);
}
.vn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--soft);
  font-weight: 700;
  flex: none;
}
.vers li.on .vn {
  background: var(--petrol);
  color: #fff;
}
.vb {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tbl th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line2);
}
.tbl td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tbl .r {
  text-align: right;
  white-space: nowrap;
}
.tbl tfoot td {
  font-weight: 600;
  border-bottom: 0;
  border-top: 2px solid var(--line2);
}
.grp .tbl {
  margin: 0 0 6px;
}
.is-m .stack thead {
  display: none;
}
.is-m .stack tr {
  display: grid;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.is-m .stack td {
  display: flow-root;
  border: 0;
  padding: 3px 0;
  padding-inline-start: 8em;
  text-align: start;
}
.is-m .stack td:before {
  content: attr(data-l);
  float: inline-start;
  width: 7.5em;
  margin-inline-start: -8em;
  color: var(--muted);
  font-size: 13px;
}
.mcards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 12px;
}
.mcard {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  margin: 0;
  font-size: 14px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}
.kv.wide dd {
  text-align: left;
}
.oline {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.allocs li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  padding: 4px 0;
  border-top: 1px dashed var(--line);
}
.tot {
  padding-top: 4px;
  font-size: 15px;
}
.gr {
  display: flex;
  flex-direction: column;
}
.gr .pane-h,
.gr-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.gr-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gr-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}
.gr-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--panel);
  min-height: 112px;
}
.gr-card:hover {
  border-color: var(--petrol);
}
.gr-c1 {
  display: flex;
  gap: 10px;
  align-items: center;
}
.gr-c1 > span {
  display: flex;
  flex-direction: column;
}
.gr-ls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  background: var(--soft);
  padding: 3px 8px;
  border-radius: 6px;
}
.gr-go {
  margin-top: 4px;
  color: var(--petrol-d);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.gr-scan {
  padding: 12px 16px 0;
}
.gr-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
}
.gr-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line2);
  border-radius: 12px;
}
.gr-rt {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gr-rt strong {
  font-size: 17px;
}
.gr-row .stepper {
  align-self: center;
}
.is-d .gr-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.warnline {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--warn);
}
.gr-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
}
.is-d .gr-foot {
  flex-direction: row;
  justify-content: flex-end;
}
.gr-foot.sticky {
  position: sticky;
  bottom: 0;
  background: linear-gradient(transparent, var(--panel) 18px);
  padding-top: 22px;
}
.gr-m .gr-foot .btn {
  width: 100%;
}
.gr-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 16px 14px;
}
.okcircle {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ok-s);
  color: var(--ok);
}
.effect {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 14px 12px;
}
.effect > * {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: left;
}
.effect button span {
  color: var(--petrol-d);
  text-decoration: underline;
  text-decoration-color: var(--petrol-m);
  text-underline-offset: 3px;
  font-size: 13px;
}
.effect div span {
  font-size: 13px;
  color: var(--muted);
}
.effect div {
  background: var(--petrol-s);
}
.effect strong {
  font-size: 20px;
}
.note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 14px;
  margin: 4px 14px;
}
.form .note,
.inv-act .note {
  margin: 0;
}
.note.ok {
  background: var(--ok-s);
  color: var(--ok);
}
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 18px;
  margin: 14px;
  border: 2px dashed #a8bcbf;
  border-radius: 12px;
  text-align: center;
  color: var(--ink2);
  background: var(--soft);
}
.drop.over {
  border-color: var(--petrol);
  background: var(--petrol-s);
}
.drop-btns {
  display: flex;
  gap: 10px;
  width: 100%;
}
.drop-btns .btn {
  flex: 1;
}
.is-m .drop .btn-pri {
  width: 100%;
}
.recog {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  margin: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.recog p {
  display: flex;
  gap: 8px;
  align-items: center;
}
.recog .ok {
  color: var(--ok);
}
.recog .on {
  font-weight: 600;
}
.spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line2);
  border-top-color: var(--petrol);
  animation: sp 0.8s linear infinite;
}
@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spin {
    animation: none;
  }
}
.inv-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}
.inv-paper {
  position: sticky;
  top: 0;
}
.paper {
  background: var(--panel);
  border: 1px solid var(--line2);
  box-shadow: 0 2px 10px #00000014;
  padding: 24px 26px;
  font-size: 12.5px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 480px;
  color: #222;
}
.paper.img {
  padding: 0;
  min-height: 0;
}
.paper.img img {
  width: 100%;
  display: block;
}
.pp-h {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.pp-to {
  margin-top: 10px;
}
.pp-t {
  width: 100%;
  border-collapse: collapse;
}
.pp-t th {
  text-align: left;
  border-bottom: 1px solid #999;
  padding: 4px;
  font-weight: 600;
}
.pp-t td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.pp-t .r,
.pp-s dd {
  text-align: right;
}
.pp-t tr.hl td {
  background: var(--soft);
  outline: 1px dashed var(--petrol-m);
}
.pp-s {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  margin: 0 0 0 auto;
  min-width: 200px;
}
.pp-s dd {
  margin: 0;
}
.pp-f {
  margin-top: auto;
  color: #777;
  font-size: 11px;
}
.inv-pos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ipos {
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ipos-g {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.is-m .ipos-g {
  grid-template-columns: 1fr 1fr;
}
.is-m .ipos-g .span2 {
  grid-column: span 2;
}
.checks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.checks li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.checks .ok {
  color: var(--ok);
}
.checks .late {
  color: var(--late);
}
.checks .warnc {
  color: var(--warn);
}
.sums {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 20px;
  margin: 0 0 0 auto;
  min-width: 240px;
  font-size: 14px;
}
.sums dd {
  margin: 0;
  text-align: right;
}
.inv-act {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.inv-act > .btn {
  align-self: flex-end;
}
.is-m .inv-act > .btn {
  align-self: stretch;
}
.inv-act .grp {
  border: 1px solid var(--line);
  border-radius: 10px;
}
.newsup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--warn-b);
  background: var(--warn-s);
  border-radius: 10px;
}
.stockbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.stockbig {
  font-size: 22px;
  font-weight: 500;
}
.stockbig span {
  color: var(--muted);
}
.stockbig strong {
  color: var(--ok);
}
.is-m .stockbig {
  font-size: 19px;
}
.stockline {
  font-weight: 500;
  color: var(--ink2);
}
.sbar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  background: var(--soft);
  overflow: hidden;
}
.sb-r {
  background: var(--warn-b);
}
.sb-f {
  background: #5aa274;
}
.addnr {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.6fr auto auto;
  gap: 8px;
  align-items: center;
}
.is-m .addnr {
  grid-template-columns: 1fr 1fr;
}
.moves li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.is-m .moves li {
  grid-template-columns: 48px 1fr;
}
.is-m .moves li > span:last-child {
  grid-column: 2;
}
.moves .in {
  color: var(--ok);
  font-weight: 700;
}
.moves .out {
  color: var(--late);
  font-weight: 700;
}
.flows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.is-m .flows {
  grid-template-columns: 1fr;
}
.flow {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.flow h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.flow li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 4px 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  align-items: start;
}
.flow li .lnk {
  grid-column: 2;
  justify-self: start;
  min-height: 32px;
}
.fchk {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line2);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.flow li.ok .fchk {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.flow li.ok .fl-t {
  color: var(--muted);
}
.flowfoot {
  margin-top: 14px;
}
.stage {
  height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--line);
}
.stage-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-weight: 500;
}
.stage-bar > span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.phone {
  width: 390px;
  height: min(844px, calc(100vh - 86px));
  flex: none;
  border: 10px solid var(--ink);
  border-radius: 44px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 24px 60px #00000040;
}
.phone .app {
  border-radius: 34px;
}
.phone .mtop {
  padding-top: 6px;
  height: 62px;
}
.ov > .costline {
  margin: 0;
}
.mflows {
  padding: 0 10px;
  font-size: 14px;
  gap: 4px;
}
.is-m .area-h > h1,
.is-m .area-h > div > h1,
.is-m .pane-h h1 {
  display: none;
}
.is-m .area-h:has(> h1:only-child) {
  display: none;
}
.is-m .tabs button {
  padding: 0 9px;
  font-size: 14.5px;
}
.is-m .scroll-main > .area {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.gr-m {
  flex: 1;
}
.gr-m .gr-foot {
  margin-top: auto;
}
.dlg .preview svg {
  max-height: 56vh;
}
.is-m .dlg .preview svg {
  max-height: none;
}
.invfull {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.invfull > .lnk {
  align-self: flex-start;
  min-height: 32px;
}
.inv-split {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
}
.btn {
  min-width: auto;
}
.pane-h .row {
  flex-wrap: wrap;
}
.is-m .dlg-f > .sm {
  flex-basis: 100%;
}
.is-m .dlg-f > .sp {
  display: none;
}
.sheetmenu {
  display: flex;
  flex-direction: column;
}
.sheetmenu button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font-size: 16px;
}
.sheetmenu button:last-child {
  border-bottom: 0;
}
.sheetmenu button.active {
  font-weight: 600;
  color: var(--petrol-d);
}
.sheetmenu .mchk {
  margin-left: auto;
}
