:root {
  --ink: #0f172a; --ink2: #334155; --muted: #64748b; --line: #e6e8ec; --line2: #eef0f3; --line3: #cbd5e1;
  --soft: #f6f7f9; --soft2: #f8fafc; --white: #ffffff; --seg: #eceef2;
  --blue: #2563eb; --blue-bg: #eff4ff; --red: #dc2626; --red-bg: #fef2f2; --red-ink: #b91c1c;
  --green: #16a34a; --green-bg: #ecfdf3; --green-line: #bbf7d0;
  --amber: #d97706; --amber-bg: #fffbeb; --amber-line: #f59e0b; --amber-ink: #92400e;
  --orange: #ea580c; --orange-bg: #fff7ed; --orange-ink: #c2410c;
  --indigo-bg: #eef2ff; --indigo: #4338ca; --teal: #0f766e; --teal-bg: #f0fdfa;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.05);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.16);
  --bounce: cubic-bezier(.34,1.56,.64,1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e5e7eb; --ink2: #cbd5e1; --muted: #94a3b8; --line: #1f2a40; --line2: #1a2338; --line3: #334155;
  --soft: #0b1120; --soft2: #111a2c; --white: #131b2e; --seg: #0f1729;
  --blue: #60a5fa; --blue-bg: #172554; --red: #f87171; --red-bg: #2c1215; --red-ink: #fca5a5;
  --green: #4ade80; --green-bg: #0f2a1c; --green-line: #166534;
  --amber: #fbbf24; --amber-bg: #2b1f0a; --amber-line: #b45309; --amber-ink: #fcd34d;
  --orange: #fb923c; --orange-bg: #2b1a0c; --orange-ink: #fdba74;
  --indigo-bg: #1e1b4b; --indigo: #a5b4fc; --teal: #2dd4bf; --teal-bg: #0c2925;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  --shadow-lg: 0 14px 36px rgba(0,0,0,.5);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--soft); color: var(--ink); font-family: 'Segoe UI', system-ui, sans-serif; font-size: 18px; }
button { font: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
input, select, textarea { font: inherit; color: var(--ink); }
h2 { margin: 0; }
a.lk { color: var(--blue); font-weight: 700; text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
a.lk:hover, button.lk:hover { text-decoration: underline; }
button.lk { color: var(--blue); font-weight: 700; background: none; border: 0; padding: 0; }
button.lk.plain { color: var(--ink); font-weight: 600; }

header { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line);
  padding: 12px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.app-name { font-size: 22px; font-weight: 700; white-space: nowrap; }
nav { display: flex; gap: 4px; flex-grow: 1; flex-wrap: wrap; }
.tab { font-size: 19px; font-weight: 600; padding: 10px 15px; border-radius: 10px; border: 0; background: transparent; color: var(--ink2); position: relative; }
.tab:hover { background: var(--soft); }
.tab.on { background: var(--ink); color: var(--white); }
.tab .dot { position: absolute; top: 6px; right: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

.btn { font-size: 18px; font-weight: 600; padding: 11px 18px; border-radius: 10px; border: 2px solid var(--line); background: var(--white); color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: var(--line3); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn.big { font-size: 21px; font-weight: 700; padding: 12px 24px; border: 0; background: var(--blue); color: var(--white); }
.btn.big:hover { background: var(--blue); }
.btn.primary { border: 0; background: var(--blue); color: var(--white); font-weight: 700; }
.btn.dark { border: 0; background: var(--ink); color: var(--white); font-weight: 700; }
.btn.green { border: 0; background: var(--green); color: var(--white); font-weight: 700; }
.btn.red { border: 0; background: var(--red); color: var(--white); font-weight: 700; }
.btn.amber { border: 0; background: var(--amber); color: var(--white); font-weight: 700; }
.btn.orange { border: 0; background: var(--orange); color: var(--white); font-weight: 700; }
.btn.gray { border: 0; background: var(--ink2); color: var(--white); font-weight: 700; }
.btn.outline-green { border-color: var(--green); color: var(--green); }
.btn.outline-blue { border-color: var(--blue); color: var(--blue); font-weight: 700; }
.btn.outline-orange { border-color: var(--orange); color: var(--orange); font-weight: 700; }
.btn.outline-dark { border-color: var(--ink); font-weight: 700; }
.btn.small { font-size: 16px; padding: 7px 13px; border-radius: 8px; }
.btn.link { border: 0; background: transparent; color: var(--muted); text-decoration: underline; font-weight: 400; padding: 7px 6px; }
.chipbtn { font-size: 16px; font-weight: 700; padding: 7px 13px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--ink); }
.chipbtn.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chipbtn.dark.on { background: var(--ink); border-color: var(--ink); }

main { padding: 20px 24px 90px; max-width: 1640px; margin: 0 auto; }
.view { display: none; }
.view.on { display: block; }
.hint { font-size: 16px; color: var(--muted); line-height: 1.4; }
.bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.grow { flex-grow: 1; }
.lbl, .field label { font-size: 17px; font-weight: 600; color: var(--ink2); }
.sec { font-size: 15px; font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; }
.key { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--ink2); }
.key i { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }
.input { font-size: 22px; padding: 9px 13px; border-radius: 10px; border: 2px solid var(--line3); background: var(--white); }
.input.huge { font-size: 28px; font-weight: 700; width: 100%; }
.input.lb { letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.field { display: flex; flex-direction: column; gap: 6px; }
.panel { background: var(--white); border-radius: 16px; border: 1px solid var(--line); }
.empty { padding: 28px; text-align: center; color: var(--muted); font-size: 19px; white-space: normal; }

/* Dashboard */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-date { font-size: 30px; font-weight: 700; }
.find { display: flex; align-items: center; gap: 10px; }
.find label { font-size: 18px; font-weight: 600; }
.find input { font-size: 21px; padding: 8px 12px; border-radius: 10px; border: 2px solid var(--line3); width: 300px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { border-radius: 14px; padding: 14px 18px; border: 2px solid var(--line); background: var(--white); display: flex; flex-direction: column; gap: 2px; text-align: left; color: var(--ink); }
button.tile:hover { filter: brightness(.97); }
.tile .l { font-size: 17px; font-weight: 700; }
.tile .n { font-size: 42px; font-weight: 800; line-height: 1.15; }
.tile .s { font-size: 16px; }
.tile.red { background: var(--red-bg); border-color: var(--red); color: var(--red-ink); }
.tile.orange { background: var(--orange-bg); border-color: var(--orange); color: var(--orange-ink); }
.tile.green { background: var(--green-bg); border-color: var(--green-line); color: var(--green); }
.todo-panel { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.panel-title { font-size: 23px; font-weight: 700; }
.todo { display: flex; align-items: center; gap: 16px; padding: 11px 16px; border-radius: 12px; flex-wrap: wrap; }
.todo.red { background: var(--red-bg); } .todo.orange { background: var(--orange-bg); } .todo.gray { background: var(--soft); }
.todo .tag { width: 136px; font-size: 14px; font-weight: 800; letter-spacing: .05em; }
.todo.red .tag { color: var(--red); } .todo.orange .tag { color: var(--orange-ink); } .todo.gray .tag { color: var(--ink2); }
.todo .txt { flex: 1 1 300px; display: flex; flex-direction: column; gap: 2px; }
.todo .t { font-size: 21px; font-weight: 700; }
.todo .d { font-size: 17px; color: var(--muted); }
.allset { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; background: var(--green-bg); font-size: 23px; font-weight: 700; color: var(--green); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1000px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.list-panel { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.list-panel .panel-title { font-size: 20px; margin-bottom: 4px; }
.li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line2); font-size: 17px; }
.li:last-child { border-bottom: 0; }
.li .w { width: 120px; color: var(--muted); flex: none; font-size: 15px; }
.li .a { flex: 1; }
.pill { font-size: 15px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.pill.red { background: var(--red-bg); color: var(--red-ink); }
.pill.orange { background: var(--orange-bg); color: var(--orange-ink); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.gray { background: var(--soft); color: var(--ink2); }
.pill.indigo { background: var(--indigo-bg); color: var(--indigo); }

/* Tables */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink2); background: var(--soft2);
  padding: 12px 14px; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid var(--line2); font-size: 18px; }
tr.red td { background: var(--red-bg); }
tr.orange td { background: var(--orange-bg); }
tr.need td { background: var(--amber-bg); }
td.u { font-weight: 700; font-size: 20px; white-space: nowrap; }
td.nw { white-space: nowrap; }
td.actions { text-align: right; white-space: nowrap; }
td.actions .btn { margin-left: 5px; }
.more { padding: 14px; text-align: center; }

/* Parkside cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 1150px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--white); border-radius: 16px; border: 2px solid var(--line); padding: 16px 20px; display: flex; flex-direction: column; gap: 9px; }
.card.red { border-color: var(--red); } .card.orange { border-color: var(--orange); } .card.green { border-color: var(--green-line); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card-title { font-size: 25px; font-weight: 700; }
.card-rule { font-size: 15px; font-weight: 600; color: var(--ink2); }
.row { display: flex; align-items: center; gap: 14px; padding: 8px 13px; border-radius: 10px; flex-wrap: wrap; }
.row.has { background: var(--green-bg); } .row.need { background: var(--red-bg); } .row.warn { background: var(--orange-bg); }
.kind { width: 70px; font-size: 15px; font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; flex: none; }
.row-main { flex: 1 1 240px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.r-unit { font-size: 23px; font-weight: 700; }
.r-lb { font-size: 20px; font-variant-numeric: tabular-nums; }
.r-date { font-size: 16px; color: var(--muted); }
.r-date.warn { color: var(--orange-ink); font-weight: 700; }
.r-need { font-size: 23px; font-weight: 800; color: var(--red); }
.empty-card { font-size: 19px; color: var(--muted); padding: 6px 2px; }
.mkt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line2); }
.mkt .kind { width: auto; margin-right: 6px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--soft2); border: 2px solid var(--line2); color: var(--ink); }
.chip b { font-size: 18px; }
.chip .d { font-size: 14px; color: var(--ink2); }
.chip .t { font-size: 13px; font-weight: 700; color: var(--green); }
button.chip.need { background: var(--amber-bg); border-color: var(--amber-line); }
button.chip:hover { border-color: var(--amber); }
.ps-section { margin: 26px 0 12px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ps-section h2 { font-size: 24px; }

/* History */
.hist { display: flex; gap: 16px; align-items: flex-start; }
.hist-list { flex: 1 1 0; min-width: 0; }
.day { padding: 9px 18px; background: var(--soft2); border-bottom: 1px solid var(--line2); font-size: 16px; font-weight: 700; color: var(--ink2); }
.ev { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.ev.sel { background: var(--blue-bg); }
.ev .tm { width: 74px; font-size: 15px; color: var(--muted); flex: none; }
.ev .tg { width: 118px; flex: none; }
.ev .tg span { font-size: 13px; font-weight: 800; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; }
.ev .tx { flex: 1 1 300px; font-size: 17px; line-height: 1.4; }
.ev .by { font-size: 15px; color: var(--muted); flex: none; }
.trail { width: 380px; flex: none; position: sticky; top: 80px; padding: 16px 18px; border: 2px solid var(--blue); display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 120px); overflow-y: auto; }
@media (max-width: 1100px) { .hist { flex-direction: column; } .trail { width: 100%; position: static; max-height: none; } }
.trail .now { border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.trail .step { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.trail .step .w { width: 74px; font-size: 14px; color: var(--muted); flex: none; }
.trail .step .x { font-size: 16px; }

/* Backup page */
.bk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .bk { grid-template-columns: minmax(0, 1fr); } }
.bk .panel { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.bk h2 { font-size: 23px; }
.bk p { margin: 0; font-size: 18px; color: var(--ink2); line-height: 1.45; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.status { border-radius: 12px; padding: 11px 15px; font-size: 18px; font-weight: 600; }
.status.green { background: var(--green-bg); color: var(--green); }
.status.orange { background: var(--orange-bg); color: var(--orange-ink); }
.status.gray { background: var(--soft); color: var(--ink2); }
.result { border-radius: 12px; padding: 13px 17px; background: var(--soft); display: flex; flex-direction: column; gap: 9px; }
.result ul { margin: 0; padding-left: 22px; color: var(--red); font-size: 16px; max-height: 220px; overflow-y: auto; }
.result b { font-size: 19px; }

/* Grid for typing past boxes */
.grid-wrap { max-height: 50vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.pgrid { width: 100%; border-collapse: collapse; }
.pgrid th { position: sticky; top: 0; z-index: 1; font-size: 13px; padding: 9px; }
.pgrid td { padding: 5px; border-bottom: 1px solid var(--line2); font-size: 17px; }
.pgrid input, .pgrid select { font-size: 18px; padding: 6px 9px; border-radius: 8px; border: 2px solid var(--line3); width: 100%; background: var(--white); }
.pgrid td.n { color: var(--muted); font-size: 14px; width: 32px; text-align: right; }

/* Report */
.rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1000px) { .rp-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer + toast */
footer { position: fixed; bottom: 0; left: 0; right: 0; background: var(--soft); border-top: 1px solid var(--line);
  padding: 8px 24px; font-size: 16px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; z-index: 4; }
footer .btn.link { font-size: 16px; padding: 2px 4px; }
footer .ver { margin-left: auto; }
#toast { position: fixed; left: 50%; bottom: 58px; transform: translateX(-50%); background: var(--ink); color: var(--white);
  font-size: 19px; padding: 12px 14px 12px 22px; border-radius: 14px; display: none; align-items: center; gap: 22px; z-index: 30; max-width: 92vw; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
#toast.on { display: flex; }
#toast.err { background: var(--red); }
#toast.plain { padding-right: 22px; }
#toast button { font-size: 18px; font-weight: 700; padding: 8px 18px; border-radius: 10px; border: 0; background: var(--white); color: var(--ink); }

/* Dialog */
#overlay { position: fixed; inset: 0; background: rgba(17,24,39,.55); display: none; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
#overlay.on { display: flex; }
.dialog { width: 660px; max-width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--white); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.dialog.wide { width: 1100px; }
.dialog h2 { font-size: 29px; }
.dialog p { margin: 0; font-size: 19px; color: var(--ink2); line-height: 1.4; }
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kindbtn { font-size: 19px; font-weight: 600; padding: 12px 8px; border-radius: 10px; border: 2px solid var(--line); background: var(--white); color: var(--ink2); }
.kindbtn.on { border: 3px solid var(--blue); background: var(--blue-bg); color: var(--blue); font-weight: 700; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.unitinfo { font-size: 17px; font-weight: 600; min-height: 22px; }
.unitinfo.ok { color: var(--green); } .unitinfo.bad { color: var(--red); } .unitinfo.warn { color: var(--orange-ink); }
.datebox { display: flex; gap: 12px; align-items: center; }
.datebox .input { width: 240px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.quick:empty { display: none; }
.sugg { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.sugg:empty { display: none; }
.sugg button { font: inherit; text-align: left; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line2); background: var(--white); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sugg button:last-child { border-bottom: 0; }
.sugg button:hover, .sugg button.hi { background: var(--blue-bg); }
.sugg .a { font-size: 19px; font-weight: 700; color: var(--ink); }
.sugg .s { font-size: 14px; color: var(--muted); }
.sugg .new { font-size: 17px; font-weight: 700; color: var(--blue); }
.picked { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--blue-bg); border: 2px solid var(--blue); }
.picked b { font-size: 21px; flex-grow: 1; }
.warn-box { background: var(--amber-bg); border: 2px solid var(--amber-line); border-radius: 12px; padding: 13px 17px; display: flex; flex-direction: column; gap: 6px; }
.warn-box b { font-size: 19px; color: var(--amber-ink); }
.warn-box div { font-size: 17px; color: var(--amber-ink); line-height: 1.4; }
.error { background: var(--red-bg); border: 2px solid var(--red); color: var(--red); border-radius: 12px; padding: 11px 15px; font-size: 17px; font-weight: 600; white-space: pre-line; }
.summary { background: var(--soft); border-radius: 12px; padding: 13px 17px; display: flex; flex-direction: column; gap: 3px; }
.summary b { font-size: 23px; }
.summary span { font-size: 17px; color: var(--muted); }
.check { display: flex; gap: 12px; align-items: center; font-size: 18px; }
.check input { width: 24px; height: 24px; flex: none; }
.actions-row { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.actions-row .btn { font-size: 19px; padding: 13px 22px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.split .btn { font-size: 19px; padding: 15px 12px; }
.who { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.who .chipbtn { font-size: 16px; }
.cols { display: flex; gap: 8px; flex-wrap: wrap; }

@media print {
  header, footer, #toast, .noprint { display: none !important; }
  body { background: #fff; }
  main { padding: 0; }
  .panel { border-color: #999; break-inside: avoid; }
}

/* ---------- 2.1 ---------- */
.app-name { font-weight: 800; }
.more-wrap { position: relative; display: inline-block; }
.tab.more { border: 2px solid var(--line); background: var(--white); }
.tab.more.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.more-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 6px; z-index: 10; flex-direction: column; }
.more-menu.open { display: flex; }
.more-menu button { font-size: 19px; text-align: left; padding: 11px 14px; border: 0; border-radius: 8px; background: var(--white); color: var(--ink); position: relative; }
.more-menu button:hover, .more-menu button.on { background: var(--soft); }
.more-menu button .dot, .tab.more .dot { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.tiles.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1150px) { .tiles.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1050px) { .dash-cols { grid-template-columns: minmax(0, 1fr); } }
.mini3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini3 b { font-size: 27px; display: block; }
.mini3 span { font-size: 14px; color: var(--muted); }
.src { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 6px; white-space: nowrap; background: var(--soft); color: var(--ink2); }
.src.ShowMojo { background: #e0f2fe; color: #075985; }
.sec.fl { width: 84px; flex: none; }
.kb { font-size: 13px; font-weight: 800; padding: 3px 8px; border-radius: 6px; white-space: nowrap; display: inline-block; }
.kb.ShowMojo { background: #e0f2fe; color: #075985; }
.kb.Supra { background: #fef3c7; color: #854d0e; }
.kb.Mechanical { background: var(--line2); color: var(--ink2); }
.kdot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; }
.chipbtn .kdot { margin-right: 7px; }
.chipbtn { display: inline-flex; align-items: center; }
.chipbtn.dark.on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.brow { font: inherit; width: 100%; text-align: left; display: grid; grid-template-columns: 200px minmax(0, 1fr) 190px 24px; align-items: center; gap: 16px;
  padding: 13px 20px; border: 0; border-bottom: 1px solid var(--line2); background: var(--white); color: var(--ink); cursor: pointer; }
.brow:hover { background: var(--soft2); }
.brow.red { background: var(--red-bg); }
.brow .num { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; margin-left: 8px; }
.brow .w { font-size: 18px; font-weight: 600; display: block; }
.brow .s { font-size: 15px; color: var(--muted); display: block; }
.brow .s.warn { color: var(--orange-ink); font-weight: 700; }
.brow .arrow { font-size: 22px; color: var(--line3); }
@media (max-width: 900px) { .brow { grid-template-columns: 1fr; gap: 6px; } .brow .arrow { display: none; } }
.kindbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--soft); }
.kindbar div { min-width: 0; }
.back { font-size: 17px; font-weight: 600; color: var(--blue); background: none; border: 0; padding: 0; margin-bottom: 14px; }
.box-top { display: flex; gap: 16px; align-items: stretch; margin-bottom: 16px; flex-wrap: wrap; }
.box-main { flex: 1 1 520px; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.box-stats { flex: 0 1 380px; padding: 20px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.box-stats b { font-size: 32px; display: block; }
.box-stats span { font-size: 15px; color: var(--muted); }
.now-card { border-radius: 12px; padding: 13px 17px; display: flex; flex-direction: column; gap: 3px; border: 2px solid; }
.now-card .t { font-size: 14px; font-weight: 800; letter-spacing: .05em; }
.now-card .p { font-size: 22px; font-weight: 700; }
.strip { display: flex; height: 32px; border-radius: 8px; overflow: hidden; }
.strip div { border-right: 2px solid var(--white); min-width: 4px; }
.tl-row { display: flex; gap: 14px; }
.tl-when { width: 92px; flex: none; padding-top: 11px; }
.tl-when b { font-size: 16px; display: block; }
.tl-when span { font-size: 13px; color: var(--muted); }
.tl-line { width: 22px; flex: none; display: flex; flex-direction: column; align-items: center; }
.tl-line i { width: 3px; background: var(--line2); }
.tl-line .dotc { width: 16px; height: 16px; border-radius: 50%; border: 3px solid; box-sizing: border-box; }
.tl-body { flex: 1; padding: 9px 0 12px; border-bottom: 1px solid var(--line2); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tl-body .x { flex: 1 1 300px; display: flex; flex-direction: column; gap: 1px; }
.tl-body .x b { font-size: 17px; font-weight: 600; }
.tl-body .x span { font-size: 14px; color: var(--muted); }
.ev .tg { width: 128px; }
.ev .tx b { font-weight: 800; }
.ev .dotc { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.rc { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.rc .w { width: 82px; flex: none; font-size: 14px; color: var(--muted); }
.rc .a { flex: 1; font-size: 16px; }
.rc .by { flex: none; font-size: 13px; color: var(--muted); }
.pill.teal { background: var(--teal-bg); color: var(--teal); }
.kind { width: 96px; }

/* ---------- 2.1.1 ---------- */
.pill.dark { background: #1f2937; color: #ffffff; }
.brow.retired { background: var(--soft2); color: var(--muted); }
.brow.retired .num { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.brow.retired .kb { background: var(--line2); color: var(--muted); }
.brow.retired .w { color: var(--ink2); }
.legend-row { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--ink2); margin-top: 2px; }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.legend-row i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.kindbtn.on { border: 3px solid var(--blue); background: var(--blue-bg); color: var(--blue); font-weight: 700; }


/* ---------- 2.2 fresh look ---------- */
html, body { font-family: 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif; }
body, header, footer, .panel, .card, .tile, .btn, .chipbtn, .input, .dialog, .brow, .more-menu, td, th, .todo {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .2s ease, transform .2s ease; }

header { padding: 12px 28px; gap: 22px; }
.app-name { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.app-name .logo { width: 36px; height: 36px; border-radius: 9px; flex: none; display: block; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
:root[data-theme="dark"] .app-name .logo { color: #0b1120; }
nav { flex-grow: 0; background: var(--seg); padding: 4px; border-radius: 13px; gap: 2px; }
.tab { font-size: 17px; padding: 9px 17px; border-radius: 10px; color: var(--muted); }
.tab:hover { background: transparent; color: var(--ink); }
.tab.on, .tab.more.on { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.tab.more { border: 0; background: transparent; }
.tab.more .car { display: inline-block; transition: transform .3s ease; }
.tab.more[aria-expanded="true"] .car { transform: rotate(180deg); }
.hdr-sp { flex-grow: 1; }
.theme-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--muted); display: grid; place-items: center; padding: 0; }
.theme-btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.theme-btn svg { transition: transform .5s var(--bounce); }
.theme-btn:active svg { transform: rotate(-30deg) scale(.85); }

/* More menu: soft bounce */
.more-menu { display: flex; visibility: hidden; opacity: 0; transform: scale(.88) translateY(-8px); transform-origin: top left;
  border-radius: 14px; box-shadow: var(--shadow-lg); border-color: var(--line);
  transition: transform .45s var(--bounce), opacity .18s ease, visibility 0s linear .45s; }
.more-menu.open { visibility: visible; opacity: 1; transform: none; transition: transform .45s var(--bounce), opacity .18s ease, visibility 0s; }
.more-menu button { font-size: 18px; font-weight: 600; border-radius: 9px; background: transparent; transition: background-color .15s; }
.more-menu button:hover, .more-menu button.on { background: var(--soft); }

/* Buttons */
.btn { border-width: 1px; border-radius: 11px; transition: transform .15s ease, box-shadow .2s ease, background-color .2s, border-color .2s, color .2s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--line3); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn.big { border-radius: 12px; font-size: 19px; padding: 12px 22px; }
.btn.big:hover, .btn.primary:hover { filter: brightness(1.08); }
.btn.outline-green, .btn.outline-blue, .btn.outline-orange, .btn.outline-dark { border-width: 2px; }
:root[data-theme="dark"] .btn.big, :root[data-theme="dark"] .btn.primary, :root[data-theme="dark"] .btn.green,
:root[data-theme="dark"] .btn.red, :root[data-theme="dark"] .btn.orange, :root[data-theme="dark"] .btn.amber { color: #0b1120; }
.chipbtn { border-width: 1px; }
.input, .find input, .pgrid input, .pgrid select { border-width: 1px; border-color: var(--line3); background: var(--white); color: var(--ink); border-radius: 11px; }
.input:focus, .find input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); outline: none; }

/* Surfaces */
.panel, .card { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.card.red { border-color: var(--red); } .card.orange { border-color: var(--orange); } .card.green { border-color: var(--green-line); }
.dash-date { font-size: 28px; letter-spacing: -.02em; }
.panel-title { font-size: 19px; }
.list-panel .panel-title { font-size: 18px; }

/* Tiles: white with a colored dot */
.tile { border: 1px solid var(--line); background: var(--white); color: var(--ink); box-shadow: var(--shadow); padding: 16px 20px; }
.tile .l { font-size: 15px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tile .l::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tdot, var(--muted)); flex: none; }
.tile .n { font-size: 36px; font-weight: 700; letter-spacing: -.02em; }
.tile .s { font-size: 14px; color: var(--muted); }
.tile.red, .tile.orange, .tile.green { background: var(--white); border-color: var(--line); color: var(--ink); }
.tile.red { --tdot: var(--red); } .tile.red .n { color: var(--red); }
.tile.orange { --tdot: var(--orange); } .tile.orange .n { color: var(--orange); }
.tile.green { --tdot: var(--green); }
button.tile:hover { filter: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* To do: quiet rows with a colored bar */
.todo { background: var(--soft2); border-left: 4px solid var(--line3); border-radius: 10px; padding: 12px 16px; transition: opacity .3s ease, transform .3s ease, max-height .3s ease, padding .3s ease, margin .3s ease; max-height: 300px; }
.todo.red, .todo.orange, .todo.gray { background: var(--soft2); }
.todo.red { border-left-color: var(--red); } .todo.orange { border-left-color: var(--orange); }
.todo .tag { width: auto; min-width: 0; order: 2; font-size: 12px; padding: 3px 9px; border-radius: 7px; white-space: nowrap; }
.todo.red .tag { background: var(--red-bg); color: var(--red); } .todo.orange .tag { background: var(--orange-bg); color: var(--orange); }
.todo .txt { order: 1; } .todo .src { order: 3; } .todo .btn { order: 4; }
.todo .t { font-size: 18px; font-weight: 600; }
.todo .d { font-size: 15px; }
.todo .btn.red, .todo .btn.orange, .todo .btn.gray { background: var(--white); color: var(--ink); border: 1px solid var(--line); font-size: 16px; padding: 8px 15px; }
.todo.leaving { opacity: 0; transform: translateX(40px); max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -9px; overflow: hidden; }
.allset { background: var(--green-bg); color: var(--green); font-size: 20px; }

/* Pills, tags */
.pill { font-size: 13px; padding: 3px 10px; border-radius: 7px; letter-spacing: .02em; }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.orange { background: var(--orange-bg); color: var(--orange); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.gray { background: var(--line2); color: var(--ink2); }
.pill.indigo { background: var(--indigo-bg); color: var(--indigo); }
.pill.teal { background: var(--teal-bg); color: var(--teal); }
.pill.dark { background: var(--ink2); color: var(--white); }
.src { background: var(--line2); color: var(--ink2); }
:root[data-theme="dark"] .kb.ShowMojo, :root[data-theme="dark"] .src.ShowMojo { background: #0c2a3f; color: #7dd3fc; }
:root[data-theme="dark"] .kb.Supra { background: #2b220a; color: #fcd34d; }
:root[data-theme="dark"] .kb.Mechanical { background: #1e293b; color: #cbd5e1; }

/* Tables, lists */
th { font-size: 13px; color: var(--muted); background: var(--soft2); border-bottom: 1px solid var(--line); }
td { border-bottom-color: var(--line2); }
.brow { background: var(--white); border-bottom-color: var(--line2); }
.brow:hover { background: var(--soft2); }
.day { background: var(--soft2); color: var(--muted); }
.trail { border: 1px solid var(--blue); }
.now-card { border-width: 1px; }
.back { transition: transform .2s ease; } .back:hover { transform: translateX(-3px); }

/* Screens fade up */
.view.on { animation: viewIn .28s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Dialog pops in */
#overlay { display: flex; visibility: hidden; opacity: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(2px); transition: opacity .2s ease, visibility 0s linear .2s; }
#overlay.on { visibility: visible; opacity: 1; transition: opacity .2s ease, visibility 0s; }
#overlay .dialog { transform: scale(.94) translateY(10px); transition: transform .4s var(--bounce); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
#overlay.on .dialog { transform: none; }
.kindbtn { border-width: 1px; }
.kindbtn.on { border-width: 2px; }

/* Saved message slides up */
#toast { display: flex; visibility: hidden; opacity: 0; transform: translate(-50%, 30px); background: #0f172a; color: #fff;
  transition: transform .45s var(--bounce), opacity .2s ease, visibility 0s linear .45s; }
#toast.on { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition: transform .45s var(--bounce), opacity .2s ease, visibility 0s; }
:root[data-theme="dark"] #toast { background: #1e293b; border: 1px solid #334155; }
#toast button { background: #fff; color: #0f172a; }
#toast.err { background: #b91c1c; }

footer { background: var(--white); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.todo .btn.alt { color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 13px; background: transparent; border: 1px solid var(--line); }

/* ---------- 2.4 properties list ---------- */
.plist { overflow: hidden; }
.prow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) 150px 320px; gap: 16px; align-items: center; padding: 13px 20px; border-top: 1px solid var(--line2); }
.prow.phead { border-top: 0; padding: 11px 20px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--soft2); }
.prow.red { background: var(--red-bg); }
.paddr { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.paddr .lk.plain { font-size: 18px; font-weight: 700; text-align: left; }
.psub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.pact { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: nowrap; }
.pact .btn.alt { color: var(--muted); font-weight: 600; }
.grp { border-top: 1px solid var(--line); }
.prow.ghead { background: var(--soft2); border-top: 0; }
.prow.urow { padding: 9px 20px; min-height: 54px; font-size: 16px; }
.prow.urow .uname { padding-left: 34px; }
.uname { font-weight: 700; }
.fold { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 13px; padding: 0; display: inline-grid; place-items: center; transition: transform .2s ease; }
.fold:hover { color: var(--ink); }
.kbl { border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; margin: 2px 0; }
.kbl:hover { filter: brightness(.95); text-decoration: underline; }
.onmkt { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--green); }
.onmkt i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
@media (max-width: 1050px) { .prow { grid-template-columns: 1fr; gap: 6px; } .prow.phead { display: none; } .pact { justify-content: flex-start; } .prow.urow .uname { padding-left: 0; } .pact { flex-wrap: wrap; } }
.tclear { order: 5; width: 32px; height: 32px; flex: none; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 15px; line-height: 1; display: grid; place-items: center; padding: 0; transition: background-color .15s, color .15s, border-color .15s; }
.tclear:hover { border-color: var(--red); background: var(--red-bg); color: var(--red); }
.cleared-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 2px; font-size: 15px; }

/* To do buttons stay readable in dark mode */
.todo .btn.red, .todo .btn.orange, .todo .btn.gray,
:root[data-theme="dark"] .todo .btn.red, :root[data-theme="dark"] .todo .btn.orange, :root[data-theme="dark"] .todo .btn.gray { background: var(--white); color: var(--ink); border: 1px solid var(--line); }

/* Main action buttons: solid blue with white text, so they never look greyed out */
:root[data-theme="dark"] .btn.big, :root[data-theme="dark"] .btn.primary { background: #2563eb; border-color: #2563eb; color: #ffffff; }
:root[data-theme="dark"] .btn.big:hover, :root[data-theme="dark"] .btn.primary:hover { background: #1d4ed8; filter: none; }
.todo .btn[data-todo], :root[data-theme="dark"] .todo .btn[data-todo] { background: #2563eb; border-color: #2563eb; color: #ffffff; font-weight: 700; }
.todo .btn[data-todo]:hover { background: #1d4ed8; }

/* "No box needed": a clear second choice next to the blue Hang Box */
.btn.alt, .todo .btn.alt, .pact .btn.alt,
:root[data-theme="dark"] .btn.alt { background: var(--white); color: var(--ink); border: 1.5px solid var(--line3); font-weight: 700; }
.btn.alt:hover, .todo .btn.alt:hover, .pact .btn.alt:hover { border-color: var(--ink2); background: var(--soft2); }

/* ---------- 2.8 moving a box ---------- */
:root { --purple: #7c3aed; --purple-bg: #f3efff; --purple-ink: #5b21b6; }
:root[data-theme="dark"] { --purple: #a78bfa; --purple-bg: #221a40; --purple-ink: #c4b5fd; }
.btn.movebtn { border: 2px solid #7c3aed; color: var(--purple-ink); font-weight: 700; background: var(--white); }
.btn.movebtn.solid, :root[data-theme="dark"] .btn.movebtn.solid { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.btn.movebtn.solid:hover { background: #6d28d9; }
.mvtag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .03em; padding: 3px 9px; border-radius: 7px; background: var(--purple-bg); color: var(--purple-ink); white-space: nowrap; }
.mvroute { display: flex; align-items: center; gap: 14px; background: var(--purple-bg); border: 1px solid color-mix(in srgb, var(--purple) 35%, transparent); border-radius: 12px; padding: 12px 16px; }
.mvroute > div { flex: 1; min-width: 0; }
.mvroute b { font-size: 18px; }
.mvroute .mvto { color: var(--purple-ink); }
.mvarrow { font-size: 24px; font-weight: 700; color: var(--purple); }
.lbl2 { font-size: 12px; font-weight: 800; letter-spacing: .05em; color: var(--muted); }
.todo.purple { border-left-color: var(--purple); }
.todo.purple .tag { background: var(--purple-bg); color: var(--purple-ink); }
.pill.purple { background: var(--purple-bg); color: var(--purple-ink); }
.todo .btn[data-todo].movebtn, :root[data-theme="dark"] .todo .btn[data-todo].movebtn { background: #7c3aed; border-color: #7c3aed; color: #fff; }

.todo.flash { box-shadow: 0 0 0 3px var(--red); }

/* ---------- 3.0 online ---------- */
.acct-wrap { position: relative; }
.acct-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--blue-bg); color: var(--blue); font-weight: 800; font-size: 15px; padding: 0; }
.acct-menu { left: auto; right: 0; min-width: 240px; transform-origin: top right; }
.acct-who { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 12px; border-bottom: 1px solid var(--line2); margin-bottom: 4px; }
.urow2 { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line2); flex-wrap: wrap; }
.urow2:first-child { border-top: 0; }
.small-sel { font-size: 15px; padding: 7px 10px; width: auto; }
.pwbox { font-size: 28px; font-weight: 800; letter-spacing: .06em; text-align: center; padding: 18px; border-radius: 14px; background: var(--soft2); border: 1px dashed var(--line3); user-select: all; }
.online [data-open], .online #psAuto { display: none !important; }
.online:not(.role-admin) #moreMenu [data-view="backup"] { display: none; }
.role-view #hangBtn, .role-view .mquick, .role-view #addBoxesBtn, .role-view #addPropBtn, .role-view #importPropsBtn { display: none !important; }
.tabbar { display: none; }
.mquick { display: none; }

/* ---------- 3.0 phones ---------- */
@media (max-width: 760px) {
  html, body { font-size: 16px; }
  header { padding: 10px 14px; gap: 10px; flex-wrap: nowrap; padding-top: max(10px, env(safe-area-inset-top)); }
  header > nav, header .theme-btn, #hangBtn { display: none; }
  .app-name { font-size: 18px; flex-grow: 1; }
  .app-name .logo { width: 32px; height: 32px; }
  main { padding: 14px 14px calc(96px + env(safe-area-inset-bottom)); }
  footer { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    background: var(--white); border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
  .tabbar button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 4px 0; }
  .tabbar button.on { color: var(--blue); }
  .tabbar svg { display: block; }
  #toast { bottom: calc(84px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); font-size: 15px; }
  .mquick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
  .mquick button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border-radius: 18px; padding: 16px; font-size: 19px; font-weight: 700; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-align: left; box-shadow: var(--shadow); }
  .mquick button small { font-size: 13px; font-weight: 500; color: var(--muted); }
  .mquick button.pri { background: #2563eb; border-color: #2563eb; color: #fff; }
  .mquick button.pri small { color: #dbeafe; }
  .dash-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .dash-date { font-size: 22px; }
  .find input { width: 100% !important; font-size: 17px; }
  .find { width: 100%; }
  .tiles, .tiles.five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile .n { font-size: 28px; }
  .tile.big-last:last-child { grid-column: 1 / -1; }
  .todo { padding: 10px 12px; gap: 8px; }
  .todo .t { font-size: 16px; }
  .todo .src { display: none; }
  .todo .btn { font-size: 14px !important; padding: 7px 11px !important; }
  .dash-cols, .two-col, .bk, .rp-grid, .cards { grid-template-columns: minmax(0, 1fr) !important; }
  .bar { gap: 8px; }
  .chipbtn { font-size: 14px; padding: 6px 10px; }
  #propSearch, #boxSearch { width: 100% !important; }
  #overlay { align-items: flex-end; padding: 0; }
  #overlay .dialog { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .dialog h2 { font-size: 22px; }
  .dialog .two, .kinds { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .input.huge { font-size: 24px; }
  .actions-row .btn, .split .btn { flex: 1; }
  .brow { padding: 12px 14px; }
  .prow { padding: 12px 14px; }
  .prow.urow .uname { padding-left: 0; }
  .urow2 { padding: 12px 14px; }
  table { font-size: 15px; }
  .tablewrap { overflow-x: auto; }
}
.online:not(.role-admin) #importPropsBtn, .online:not(.role-admin) #smForm, .online:not(.role-admin) #smOff, .online:not(.role-admin) #bkTypeIn { display: none !important; }
