:root {
 color-scheme: light dark;
 --ink: #101012;
 --fg-inv: #fff;
 --mut: #45454e;
 --line: #e4e4e8;
 --line2: #efeff1;
 --bg: #f6f6f7;
 --card: #fff;
 --bad: #b42318;
 --ok: #0a7043;
 --chip: #eeeef0;
 --chip-fg: #4a4a52;
 --okbg: #e7f4ed;
 --badbg: #fdeceb;
 --scroll-shadow: rgba(0, 0, 0, 0.16);
 --shadow: 0 1px 2px rgba(16, 16, 18, 0.05), 0 1px 1px rgba(16, 16, 18, 0.03);
 --shadow-lg: 0 16px 40px rgba(16, 16, 18, 0.14), 0 3px 10px rgba(16, 16, 18, 0.07);
 --wm: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
 --r1: 20px;
 --r2: 32px;
 --r3: 999px;
 --ctl: 38px;
 --ctl-sm: 34px;
}
@media (prefers-color-scheme: dark) {
 :root:not([data-theme="light"]) {
  --ink: #ededf0;
  --fg-inv: #131315;
  --mut: #c6c6d0;
  --line: #2c2c31;
  --line2: #242427;
  --bg: #0f0f11;
  --card: #171719;
  --bad: #f2988f;
  --ok: #85cb9c;
  --chip: #26262b;
  --chip-fg: #c2c2c9;
  --okbg: #16291e;
  --badbg: #331d1a;
  --scroll-shadow: rgba(0, 0, 0, 0.6);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.55);
 }
}
:root[data-theme="dark"] {
 color-scheme: dark;
 --ink: #ededf0;
 --fg-inv: #131315;
 --mut: #c6c6d0;
 --line: #2c2c31;
 --line2: #242427;
 --bg: #0f0f11;
 --card: #171719;
 --bad: #f2988f;
 --ok: #85cb9c;
 --chip: #26262b;
 --chip-fg: #c2c2c9;
 --okbg: #16291e;
 --badbg: #331d1a;
 --scroll-shadow: rgba(0, 0, 0, 0.6);
 --shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
 --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.55);
}
:root[data-theme="light"] { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
body {
 margin: 0;
 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 font-size: 0.9375rem;
 color: var(--ink);
 background: var(--bg);
 line-height: 1.55;
 -webkit-font-smoothing: antialiased;
 text-rendering: optimizeLegibility;
}
a { color: inherit; }
[hidden] { display: none !important; }
.sprite { display: none; }
.i {
 width: 18px;
 height: 18px;
 flex: none;
 fill: none;
 stroke: currentColor;
 stroke-width: 1.75;
 stroke-linecap: round;
 stroke-linejoin: round;
}
td a:not(.btn), .card a:not(.btn), .empty a:not(.btn) {
 text-decoration: underline;
 text-decoration-thickness: 1px;
 text-underline-offset: 2px;
 text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
}
td a:hover, .card a:hover, .empty a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
:where(:focus-visible) { border-radius: var(--r1); }
h1 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
h2 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; margin: 32px 0 12px; }
h3 { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.card h2 { margin: 0 0 12px; }
.card h3 { margin: 0 0 10px; }
.card .tablewrap + h3, .card p + h3, .card table + h3 { margin-top: 24px; }
.bar {
 display: flex;
 align-items: center;
 gap: 14px;
 padding: 10px 24px;
 background: color-mix(in srgb, var(--card) 88%, transparent);
 backdrop-filter: saturate(180%) blur(12px);
 border-bottom: 1px solid var(--line);
 flex-wrap: wrap;
 position: sticky;
 top: 0;
 z-index: 20;
}
.bar .brand {
 font-weight: 600;
 font-size: 0.875rem;
 white-space: nowrap;
 padding-left: 14px;
 border-left: 1px solid var(--line);
}
.wm { font-family: var(--wm); font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.bar .wm { font-size: 1.0625rem; text-decoration: none; }
.login .wm { display: block; font-size: 1.375rem; margin-bottom: 8px; }
.bar nav { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; align-items: center; }
.bar nav a {
 display: inline-flex;
 align-items: center;
 text-decoration: none;
 color: var(--mut);
 min-height: var(--ctl-sm);
 padding: 0 14px;
 border-radius: var(--r3);
 font-size: 0.875rem;
 font-weight: 500;
 white-space: nowrap;
}
.bar nav a:hover { color: var(--ink); background: var(--line2); }
.bar nav a.active { color: var(--fg-inv); background: var(--ink); }
.bar form { margin: 0; }
.bar nav.crumb { gap: 8px; color: var(--mut); font-size: 0.875rem; }
.bar nav.crumb a { min-height: 0; padding: 0; border-radius: 0; }
.bar nav.crumb a:hover { color: var(--ink); background: none; }
.barend { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.barend > .muted { margin-right: 8px; }
.barend .sep { width: 1px; align-self: stretch; margin: 4px 8px; background: var(--line); }
.ico {
 position: relative;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: var(--ctl-sm);
 height: var(--ctl-sm);
 min-height: 0;
 padding: 0;
 background: var(--card);
 color: var(--ink);
 border: 1px solid var(--line);
 border-radius: var(--r3);
 cursor: pointer;
}
.ico:hover:enabled, a.ico:hover { color: var(--ink); background: var(--line2); }
.ico .i { width: 18px; height: 18px; }
.ico .n {
 position: absolute;
 top: 2px;
 right: 2px;
 min-width: 16px;
 height: 16px;
 padding: 0 4px;
 box-sizing: border-box;
 border-radius: var(--r3);
 background: var(--bad);
 color: var(--fg-inv);
 font-size: 0.625rem;
 font-weight: 700;
 line-height: 16px;
 text-align: center;
}
[data-tip] { position: relative; }
[data-tip]::after {
 content: attr(data-tip);
 position: absolute;
 top: calc(100% + 6px);
 left: 50%;
 transform: translateX(-50%);
 z-index: 30;
 padding: 4px 8px;
 border-radius: var(--r1);
 background: var(--ink);
 color: var(--fg-inv);
 font-size: 0.75rem;
 font-weight: 500;
 line-height: 1.3;
 white-space: nowrap;
 opacity: 0;
 pointer-events: none;
 transition: opacity 120ms ease;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; }
[data-tip].tipleft::after, .racts [data-tip]::after, .barend > :last-child [data-tip]::after,
td.acts [data-tip]::after {
 left: auto;
 right: 0;
 transform: none;
}
td.acts [data-tip]::after { top: auto; bottom: calc(100% + 6px); }
.imp {
 background: var(--ink);
 color: var(--fg-inv);
 text-align: center;
 padding: 6px;
 font-size: 0.875rem;
}
.imp.bad { background: var(--badbg); color: var(--bad); }
.imp.bad a { color: inherit; }
.wrap { max-width: 960px; margin: 0 auto; padding: 32px 24px 80px; }
.foot { display: flex; justify-content: center; gap: 24px; padding: 0 24px 48px; font-size: 0.8125rem; color: var(--mut); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.wrap.wide { max-width: 1220px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 8px; }
.pagehead h1 { margin: 0; }
.pagehead .actions { margin: 0; }
.back { margin: 0 0 6px; font-size: 0.8125rem; }
.back a { display: inline-flex; align-items: center; gap: 4px; color: var(--mut); text-decoration: none; }
.back a:hover { color: var(--ink); }
.back .i { width: 14px; height: 14px; margin-left: -2px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0 12px; }
.tile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); padding: 18px 22px; box-shadow: var(--shadow); }
.tile > span { display: block; order: 1; color: var(--mut); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.01em; }
.tile > b { display: block; order: 2; margin-top: 6px; font-size: 1.625rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile > .d { display: block; order: 3; margin-top: auto; padding-top: 8px; font-size: 0.75rem; color: var(--mut); font-variant-numeric: tabular-nums; }
.tile.ok > b { color: var(--ok); }
.tile.bad > b { color: var(--bad); }
a.tile { text-decoration: none; }
a.tile:hover { border-color: var(--mut); }
.card {
 background: var(--card);
 border: 1px solid var(--line);
 border-radius: var(--r2);
 padding: 22px 26px;
 margin-bottom: 16px;
 box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card > .row { padding: 12px 0; border-top: 1px solid var(--line2); }
.card > .row:first-child { border-top: 0; padding-top: 0; }
.card > .row:last-child { padding-bottom: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.row > :first-child { flex: 1 1 0; min-width: 0; }
.card.row { padding: 22px 26px; }
.rowend { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.small { font-size: 0.8125rem; word-break: break-all; }
.flash {
 display: flex;
 align-items: center;
 gap: 8px;
 background: var(--okbg);
 color: var(--ok);
 border-radius: var(--r1);
 padding: 10px 14px;
 margin: 12px 0 20px;
 font-size: 0.9375rem;
 overflow-wrap: anywhere;
}
.flash .i { flex: none; width: 16px; height: 16px; }
.flash.bad { background: var(--badbg); color: var(--bad); }
.empty {
 border: 1px dashed var(--line);
 border-radius: var(--r2);
 padding: 32px 26px;
 text-align: center;
 color: var(--mut);
 margin-bottom: 16px;
}
.empty p { margin: 0 0 4px; }
.empty .btn { margin-top: 12px; }
.notice {
 display: flex;
 align-items: flex-start;
 gap: 12px;
 background: var(--card);
 border: 1px solid var(--line);
 border-radius: var(--r2);
 padding: 16px 22px;
 margin-bottom: 16px;
 box-shadow: var(--shadow);
}
.notice > .i { margin-top: 2px; color: var(--mut); }
.notice.ok > .i { color: var(--ok); }
.notice.bad > .i { color: var(--bad); }
.notice .ntext { flex: 1 1 0; min-width: 0; }
.notice p { margin: 0; }
.notice p + p { margin-top: 4px; }
.notice .badge { margin-left: 6px; }
.notice .btn, .notice form { flex: none; align-self: center; }
.seg { display: inline-flex; gap: 4px; padding: 4px; max-width: 100%; overflow-x: auto; background: var(--line2); border-radius: var(--r3); }
.seg a {
 display: inline-flex;
 align-items: center;
 min-height: calc(var(--ctl) - 8px);
 padding: 0 14px;
 border-radius: var(--r3);
 font-size: 0.8125rem;
 font-weight: 500;
 color: var(--mut);
 text-decoration: none;
 white-space: nowrap;
}
.seg a:hover { color: var(--ink); }
.card .seg a { text-decoration: none; }
.seg a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
@media (max-width: 560px) {
 .notice { flex-wrap: wrap; }
 .notice .btn, .notice form, .notice > button { flex: 1 0 100%; margin-top: 10px; }
}
.u { margin-left: 3px; font-size: 0.72em; color: var(--mut); }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.charts .card { margin: 0; min-width: 0; }
.chart { position: relative; }
.chead { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.chead h3 { margin: 0; }
.chead .seg { margin-left: auto; }
.chart svg { display: block; width: 100%; height: auto; color: var(--ink); touch-action: pan-y; }
.cempty {
 display: grid;
 place-items: center;
 min-height: 168px;
 margin: 0;
 padding: 0 20px;
 background: var(--line2);
 border-radius: var(--r1);
 color: var(--mut);
 font-size: 0.875rem;
 text-align: center;
}
.chart .line { stroke-dasharray: 1; animation: chdraw 720ms cubic-bezier(0.32, 0.72, 0, 1) both; }
.chart .area { animation: chfade 620ms ease-out both; }
@media (prefers-color-scheme: dark) {
 :root:not([data-theme="light"]) .chart .area { fill: currentColor; fill-opacity: 0.07; }
}
:root[data-theme="dark"] .chart .area { fill: currentColor; fill-opacity: 0.07; }
.chart .last { animation: chfade 300ms ease-out 620ms both; }
.chart .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: chgrow 460ms cubic-bezier(0.32, 0.72, 0, 1) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes chdraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes chfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes chgrow { from { transform: scaleY(0); } }
.chart .pt { opacity: 0; transition: r 120ms ease, opacity 120ms ease; }
.chart .pt.on { opacity: 1; r: 4.5; }
.chart .bar { transition: fill-opacity 120ms ease; }
.chart .bar.on { fill-opacity: 1; }
.chart .cross { opacity: 0; transition: opacity 140ms ease, transform 130ms cubic-bezier(0.32, 0.72, 0, 1); }
.chart .cross line { stroke: currentColor; stroke-opacity: 0.22; }
.chart.hov .cross { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
 .chart .line, .chart .area, .chart .last, .chart .bar { animation: none; }
 .chart .line { stroke-dasharray: none; }
 .chart .pt, .chart .cross, .chart .bar { transition: none; }
}
@media (max-width: 700px) {
 .cplot { overflow-x: auto; overscroll-behavior-x: contain; }
 .cplot svg { touch-action: auto; }
 .cplot svg.wide { min-width: 760px; }
 .cplot svg.narrow { min-width: 380px; }
}
.tip {
 position: absolute;
 opacity: 0;
 pointer-events: none;
 background: var(--ink);
 color: var(--fg-inv);
 font-size: 0.75rem;
 line-height: 1.35;
 text-align: center;
 border-radius: var(--r1);
 padding: 6px 9px;
 white-space: nowrap;
 transform: translate(-50%, calc(-100% - 12px));
 transition: opacity 140ms ease;
}
.chart.hov .tip { opacity: 1; transition: left 110ms ease, top 110ms ease, opacity 140ms ease; }
.tip b { display: block; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.tip span { opacity: 0.7; }
.tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
.tablewrap {
 overflow-x: auto;
 background-color: var(--card);
 background-image:
  linear-gradient(to right, var(--card) 40%, transparent),
  linear-gradient(to left, var(--card) 40%, transparent),
  radial-gradient(farthest-side at 0 50%, var(--scroll-shadow), transparent),
  radial-gradient(farthest-side at 100% 50%, var(--scroll-shadow), transparent);
 background-position: 0 0, 100% 0, 0 0, 100% 0;
 background-size: 48px 100%, 48px 100%, 12px 100%, 12px 100%;
 background-repeat: no-repeat;
 background-attachment: local, local, scroll, scroll;
 border: 1px solid var(--line);
 border-radius: var(--r2);
 margin-bottom: 16px;
}
.card .tablewrap { border: 0; border-radius: 0; background-color: transparent; margin-bottom: 0; }
.card table.list td { overflow-wrap: break-word; }
table.list { width: 100%; border-collapse: separate; border-spacing: 0; }
table.list th, table.list td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line2); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
table.list th { color: var(--mut); font-weight: 500; font-size: 0.8125rem; }
table.list th a.sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
table.list th a.sort .i { width: 13px; height: 13px; opacity: 0; transition: opacity 120ms ease; }
table.list th a.sort:hover { color: var(--ink); }
table.list th a.sort:hover .i { opacity: 0.5; }
table.list th a.sort.asc, table.list th a.sort.desc { color: var(--ink); }
table.list th a.sort.asc .i, table.list th a.sort.desc .i { opacity: 1; }
table.list th a.sort.asc .i { transform: rotate(180deg); }
table.list tr:last-child td { border-bottom: 0; }
table.list td.num, table.list th.num { text-align: right; }
table.list th:first-child, table.list td:first-child { padding-left: 22px; }
table.list th:last-child, table.list td:last-child { padding-right: 22px; }
.card table.list th:first-child, .card table.list td:first-child { padding-left: 0; }
.card table.list th:last-child, .card table.list td:last-child { padding-right: 0; }
table.list td.num { font-weight: 600; white-space: nowrap; }
table.list th.num { white-space: nowrap; }
.wide table.list td.num, .wide table.list th.num,
.wide table.list td.acts, .wide table.list th.acts { width: 1%; }
.wide table.list td.grow, .wide table.list th.grow { width: 100%; }
table.list tr:hover td { background: var(--line2); }
table.list.flat tr:hover td { background: none; }
table.list tr:not(.pkg) + tr.pkg td { border-top: 1px solid var(--line); }
table.list tr.on td, table.list tr.on:hover td { background: var(--okbg); }
table.list .sec2 { display: block; color: var(--mut); font-size: 0.8125rem; font-weight: 400; }
.money, table.list td.money { color: var(--ok); }
table.list td.acts { text-align: right; white-space: nowrap; }
table.list td.acts > * + * { margin-left: 8px; }
.why { display: block; color: var(--mut); font-size: 0.8125rem; font-weight: 400; margin-top: 2px; max-width: 62ch; }
td.num .why { max-width: none; }
table.items { min-width: 440px; }
table.list input, table.list select, table.items input, table.items select { min-height: var(--ctl-sm); padding: 0 10px; }
table.list select, table.items select { width: auto; }
table.items input[name="qty"] { width: 6ch; text-align: right; }
table.items input[name="unit"] { width: 9ch; text-align: right; }
.lede { font-size: 1.0625rem; margin: 0 0 4px; }
.prewrap { white-space: pre-line; }
table.list form { display: inline; }
table.list button:not(.ico) { min-height: var(--ctl-sm); padding: 0 16px; font-size: 0.875rem; }
button, .btn {
 font: inherit;
 font-size: 0.875rem;
 font-weight: 500;
 line-height: 1.35;
 background: var(--ink);
 color: var(--fg-inv);
 border: 0;
 border-radius: var(--r3);
 min-height: var(--ctl);
 padding: 0 18px;
 cursor: pointer;
 text-decoration: none;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 7px;
 transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
button:hover:enabled, .btn:hover { background: color-mix(in srgb, var(--ink) 84%, var(--card)); }
button.sec, .btn.sec { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
button.sec:hover:enabled, .btn.sec:hover { background: var(--line2); border-color: var(--line); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button:disabled:hover { background: var(--ink); }
button.sec:disabled:hover { background: var(--card); }
.pwr.off { color: var(--bad); background: var(--badbg); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.pwr.off:hover:enabled { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, var(--card)); }
.pwr:not(.off):hover:enabled { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
button.linkbtn { background: none; color: var(--mut); border: 0; min-height: var(--ctl-sm); padding: 0 16px; font-size: 0.875rem; }
button.linkbtn:hover, button.linkbtn:hover:enabled { color: var(--ink); background: var(--line2); }
button .i, .btn .i { width: 16px; height: 16px; }
input, textarea, select {
 box-sizing: border-box;
 font: inherit;
 width: 100%;
 border: 1px solid var(--line);
 background: var(--card);
 color: var(--ink);
}
input, select {
 min-height: var(--ctl);
 padding: 0 18px;
 border-radius: var(--r3);
}
select {
 appearance: none;
 padding-right: 40px;
 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
 background-repeat: no-repeat;
 background-position: right 14px center;
 background-size: 16px 16px;
}
select::-ms-expand { display: none; }
details.fold > summary {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
 cursor: pointer;
 list-style: none;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary > h2 { margin: 0; }
details.fold > summary::after {
 content: "";
 flex: none;
 width: 16px;
 height: 16px;
 background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
 transition: transform 150ms ease;
}
details.fold[open] > summary::after { transform: rotate(180deg); }
details.fold[open] > summary { margin-bottom: 12px; }
.pick { border-top: 1px solid var(--line2); margin: 16px 0; padding-top: 16px; }
.actions .grow { flex: 1 1 200px; min-width: 0; width: auto; }
.actions .ico { width: var(--ctl); height: var(--ctl); }
.actions .mark { margin: 0; }
.seen .ico { width: var(--ctl); height: var(--ctl); }
.seen .ico:hover:enabled, .seen a.ico:hover,
.pickbox .ico:hover:enabled, .pickbox a.ico:hover, .savebar .ico:hover:enabled { background: var(--line2); }
.seen .ico.bad, .rowtools .ico.bad { color: var(--bad); }
.ico.go { background: var(--ink); color: var(--fg-inv); border-color: var(--ink); }
.seen .ico.go:hover:enabled, .pickbox .ico.go:hover:enabled, .savebar .ico.go:hover:enabled {
 background: color-mix(in srgb, var(--ink) 84%, var(--card));
}
.ico.go.busy::after { border-color: var(--fg-inv); border-right-color: transparent; }
.rowtools { white-space: nowrap; text-align: right; width: 1%; }
.rowtools > * { margin-left: 6px; vertical-align: middle; }
.rowtools [data-tip]::after { top: auto; bottom: calc(100% + 6px); left: auto; right: 0; transform: none; }
.chead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.chead h2, .chead h3 { margin: 0; }
.cardlist { table-layout: auto; }
.actions.end { justify-content: flex-end; }
@media (max-width: 560px) {
 .cardlist .hidesm { display: none; }
}
@media (pointer: fine) {
 .onphone { display: none; }
}
.rowtools .ico { width: var(--ctl-sm); height: var(--ctl-sm); border: 1px solid var(--line); background: var(--card); }
.rowtools .ico:hover:enabled, .rowtools a.ico:hover { background: var(--line2); }
.rowtools .ico.bad { color: var(--bad); }
.rowtools .ico.bad:hover:enabled { background: var(--badbg); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
table.list td input { width: 100%; }
.mono { font-variant-numeric: tabular-nums; }
.savebar { position: sticky; bottom: 16px; display: flex; justify-content: center; pointer-events: none; margin-top: 24px; }
.savebar button { pointer-events: auto; box-shadow: var(--shadow-lg); }
.savebar .ico { width: auto; min-width: 148px; padding: 0 28px; border-radius: var(--r3); }
.pick + h3 { margin-top: 24px; }
button[data-busy] { position: relative; }
button.busy { color: transparent; pointer-events: none; }
button.busy .i { visibility: hidden; }
button.busy::after {
 content: "";
 position: absolute;
 top: 50%;
 left: 50%;
 width: 16px;
 height: 16px;
 margin: -8px 0 0 -8px;
 border: 2px solid var(--fg-inv);
 border-right-color: transparent;
 border-radius: var(--r3);
 animation: turn 700ms linear infinite;
}
button.sec.busy::after, .btn.sec.busy::after { border-color: var(--ink); border-right-color: transparent; }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes unfurl { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
 .rise { animation: rise 240ms cubic-bezier(0.32, 0.72, 0, 1) both; }
 .reveal { animation: rise 420ms cubic-bezier(0.32, 0.72, 0, 1) both; }
 .reveal:nth-of-type(1) { animation-delay: 0ms; }
 .reveal:nth-of-type(2) { animation-delay: 60ms; }
 .reveal:nth-of-type(3) { animation-delay: 120ms; }
 .reveal:nth-of-type(4) { animation-delay: 180ms; }
 .reveal:nth-of-type(5) { animation-delay: 240ms; }
 .reveal:nth-of-type(n+6) { animation-delay: 300ms; }
 tr.rise > td { animation: unfurl 240ms cubic-bezier(0.32, 0.72, 0, 1) both; }
 .pickbox[open] { animation: rise 200ms cubic-bezier(0.32, 0.72, 0, 1) both; }
}
.pick h3 { margin: 0 0 10px; }
textarea {
 min-height: 96px;
 padding: 9px 18px;
 border-radius: calc(var(--ctl) / 2);
 resize: vertical;
}
input[type="checkbox"], input[type="radio"] {
 appearance: auto;
 width: auto;
 min-height: 0;
 padding: 0;
 border: 0;
 background: none;
 accent-color: var(--ink);
}
label { display: block; font-size: 0.8125rem; color: var(--mut); margin: 14px 0 8px; }
.hp { position: absolute; left: -9999px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.fields .f { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.fields .f label { margin: 0 0 8px; }
.fields.withsave { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.fields .inline { display: flex; align-items: center; gap: 8px; min-height: var(--ctl); margin: 0; }
.fields .full { grid-column: 1 / -1; }
.fields h3 { margin: 14px 0 0; }
.fields > h3:first-child { margin-top: 0; }
.fields .actions { margin: 6px 0 0; }
.fields > .hint { margin: 0; }
.fields .f .hint { margin: 6px 0 0; }
.fields .hint.bad { color: var(--bad); }
.sum { border: 1px solid var(--line); border-radius: var(--r1); padding: 4px 14px 12px; }
.sum .row { padding: 6px 0; }
.sum .tot { border-top: 1px solid var(--line2); margin-top: 4px; padding-top: 10px; font-size: 1.0625rem; }
.sum p { margin: 10px 0 0; }
@media (max-width: 560px) {
 .fields { grid-template-columns: 1fr; }
 .pagehead .actions { width: 100%; }
}
.chead .tools { display: flex; align-items: center; gap: 8px; }
.picklist { display: grid; gap: 8px; margin: 0 0 12px; }
.pickrow {
 display: flex;
 align-items: center;
 gap: 12px;
 margin: 0;
 padding: 9px 14px;
 min-height: var(--ctl);
 border: 1px solid var(--line);
 border-radius: var(--r1);
 color: var(--ink);
 font-size: 0.9375rem;
 cursor: pointer;
}
.pickfind { margin: 2px 0 18px; }
.pickrow .pbody { display: grid; gap: 2px; min-width: 0; }
.pickrow .pname,
.pickrow .pmeta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pickrow .pmeta { color: var(--mut); font-size: 0.8125rem; }
.pickrow:hover { background: var(--line2); }
.pickrow:has(:checked) { border-color: var(--ink); }
.rename { display: flex; gap: 8px; align-items: center; flex: 1 1 320px; }
.rename .ico { width: var(--ctl); height: var(--ctl); border: 1px solid var(--line); background: var(--card); }
.rename .ico:hover:enabled { background: var(--line2); }
.rename .ico.go { background: var(--ink); border-color: var(--ink); color: var(--fg-inv); }
.rename .ico.go:hover:enabled { background: color-mix(in srgb, var(--ink) 84%, var(--card)); border-color: var(--ink); }
.rename input { max-width: 420px; }
.rename.wide { width: 100%; }
.rename.wide input { flex: 1; max-width: none; }
.steps { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 8px; }
.steps li:last-child { margin-bottom: 0; }
.card .actions:last-child { margin-bottom: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0 16px; }
.actions form { margin: 0; }
.actions input, .actions select { width: auto; }
.actions input[type="search"], .actions input[name="q"], .actions input[name="place_id"] { flex: 1 1 260px; min-width: 0; }
@media (max-width: 560px) {
 .actions { flex-direction: column; align-items: stretch; }
 .actions > *, .actions form, .actions button, .actions .btn { width: 100%; }
 .actions .btn { text-align: center; }
 .actions input[type="search"], .actions input[name="q"] { flex: none; }
 .row > form, .row > .btn, .row > button { width: 100%; }
}
.muted { color: var(--mut); font-size: 0.875rem; }
.sub { margin: 4px 0 0; }
.inline { display: inline-block; }
.center { text-align: center; }
.badge { font-size: 0.75rem; background: var(--chip); border-radius: var(--r3); padding: 4px 10px; color: var(--chip-fg); font-weight: 500; display: inline-flex; align-items: center; line-height: 1.2; vertical-align: middle; white-space: nowrap; }
.badge.bad { background: var(--badbg); color: var(--bad); }
.badge.ok { background: var(--okbg); color: var(--ok); }
.mark { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
a.badge { text-decoration: none; }
a.badge:hover { text-decoration: underline; }
.stars { color: var(--ink); letter-spacing: 2px; }
.rec { display: grid; grid-template-columns: 168px 1fr auto; gap: 10px 20px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line2); }
.rec:first-child { border-top: 0; padding-top: 0; }
.rec:last-child { padding-bottom: 0; }
.rmeta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rmeta .when { color: var(--mut); font-size: 0.8125rem; }
.rbody { min-width: 0; }
.rbody p { margin: 0 0 8px; overflow-wrap: anywhere; }
.rbody > :last-child { margin-bottom: 0; }
.who { display: flex; align-items: center; gap: 8px; }
.avatar { width: 28px; height: 28px; border-radius: var(--r3); object-fit: cover; flex: none; }
.racts { display: flex; align-items: center; gap: 2px; }
.racts .btn, .racts button:not(.ico) { min-height: var(--ctl-sm); padding: 0 16px; }
.racts form { margin: 0; }
@media (max-width: 700px) {
 .rec { grid-template-columns: 1fr auto; }
 .rmeta { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
}
.facts { margin-bottom: 20px; }
.facts .fact { display: grid; grid-template-columns: 140px 1fr auto; gap: 6px 20px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line2); }
.facts .fact:first-child { border-top: 0; padding-top: 0; }
.facts .fact:last-child { padding-bottom: 0; }
.facts .flabel { color: var(--mut); font-size: 0.8125rem; }
.facts .fseen { color: var(--mut); font-size: 0.75rem; white-space: nowrap; }
@media (max-width: 560px) {
 .facts .fact { grid-template-columns: 1fr; }
 .facts .fseen { text-align: left; }
}
.chg { display: grid; grid-template-columns: 108px 1fr; gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--line2); }
.chg:first-child { border-top: 0; padding-top: 0; }
.chg:last-child { padding-bottom: 0; }
.cwhen { color: var(--mut); font-size: 0.8125rem; white-space: nowrap; }
.cbody p { margin: 4px 0 0; }
.cval { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 8px 34px; margin-top: 6px; font-size: 0.875rem; }
.cval .was { position: relative; color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1px; }
.cval .now { color: var(--ok); }
.cval .was::after { content: "→"; position: absolute; top: 0; right: -24px; color: var(--mut); }
.cgo { margin-top: 10px; }
.cgo .btn { min-height: var(--ctl-sm); padding: 0 16px; }
.daymark line { stroke: var(--bad); stroke-width: 1.5; stroke-dasharray: 4 4; }
.daymark circle { fill: var(--card); }
.daymark .dot { fill: var(--bad); }
.rec, .chg { scroll-margin-top: 88px; }
.rec:target, .chg:target {
 background: var(--line2);
 border-radius: var(--r1);
 border-top-color: transparent;
 box-shadow: 0 0 0 2px var(--ink);
 padding: 14px;
 margin: 0 -14px;
}
@media (max-width: 560px) {
 .chg { grid-template-columns: 1fr; }
 .cval { grid-template-columns: 1fr; gap: 4px; }
 .cval .was::after { content: none; }
}
.caught { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; border: 1px solid var(--line); border-radius: var(--r1); padding: 10px 12px; margin: 10px 0 0; font-size: 0.9375rem; }
.caught .when { color: var(--mut); font-size: 0.8125rem; }
.caught > p, .caught > dl { flex-basis: 100%; margin: 0; }
.caught .cdata { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; font-size: 0.8125rem; }
.caught .cdata dt { color: var(--mut); }
.caught .cdata dd { margin: 0; }
.caught .cacts { display: flex; gap: 8px; }
.caught > .btn, .caught .cacts { margin-left: auto; }
.caught .btn { min-height: var(--ctl-sm); padding: 0 16px; }
.more { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; }
.more .muted { font-size: 0.8125rem; }
.seg .cnt { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: var(--r3); background: var(--chip); color: var(--chip-fg); font-size: 0.6875rem; font-weight: 600; }
.seg a.on .cnt { background: var(--line2); }
.complaint p { margin: 0 0 8px; }
.copybox {
 display: flex;
 align-items: flex-start;
 gap: 10px;
 background: var(--bg);
 border: 1px solid var(--line);
 border-radius: var(--r1);
 padding: 10px 12px;
 margin: 10px 0 0;
 font-size: 0.9375rem;
}
.copybox .copytext { flex: 1; min-width: 0; }
.copybox .ico { flex: none; }
.replies .actions { margin: 8px 0 0; }

.login { --ctl: 44px; max-width: 380px; margin: 9vh auto; padding: 0 16px; text-align: center; }
.login .wm { text-decoration: none; }
.login h1 { font-size: 1.375rem; margin: 0 0 20px; }
.login .card, .login .notice { text-align: left; }
.login .card { padding: 22px 24px; margin-bottom: 0; }
.login .card > form > :last-child { margin-bottom: 0; }
.login form p { margin: 20px 0 0; }
.login button { width: 100%; }
.login .notice { margin-bottom: 0; }
.login > p { margin: 18px 0 0; font-size: 0.875rem; }
.login > p a { color: var(--mut); }
.login > p a:hover { color: var(--ink); }
.tick { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; font-size: 0.9375rem; color: var(--ink); }
.tick input, .fields .inline input { width: 15px; height: 15px; flex: none; }
.tick input { margin-top: 3px; }
.dft .left { margin-right: auto; }
.dft button { white-space: nowrap; }
dialog.gate::backdrop { backdrop-filter: blur(6px); }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.qr-card { background: #fff; color: #1b1b1b; border: 1px solid var(--line); border-radius: var(--r2); padding: 16px; text-align: center; }
.qr-card img { width: 100%; max-width: 200px; height: auto; }
.qr-card .url { font-size: 0.75rem; color: #595959; word-break: break-all; }
.qr { background: #fff; padding: 8px; border-radius: var(--r1); }
.payout { display: flex; align-items: flex-start; gap: 16px 24px; flex-wrap: wrap; }
.payout > div { flex: 1 1 320px; }
.payout .qr { flex: none; }
.payout .mark { display: flex; margin: 0 0 10px; }
.payout .sum { margin: 0 0 14px; }
@media (max-width: 720px) {
 :root { --ctl: 44px; --ctl-sm: 40px; }
 .bar { padding: 10px 20px; gap: 8px; }
 .bar .brand { flex: 1; margin-right: 0; }
 .bar nav { order: 3; flex: 1 1 100%; flex-wrap: wrap; row-gap: 4px; }
 .bar nav a { padding: 0 16px; }
 .bar form { order: 2; margin-left: auto; }
 .tiles { grid-template-columns: 1fr 1fr; }
 .wrap { padding: 24px 20px 64px; }
 .card { padding: 18px 22px; }
}
@media (max-width: 880px) {
 .charts { grid-template-columns: 1fr; }
}
.doc { max-width: 720px; margin: 0 auto; }
.doc h2 { margin: 44px 0 12px; }
.doc > p { margin: 12px 0 0; font-size: 1rem; line-height: 1.6; }
.doc > .card + h2, .doc > .inv + h2 { margin-top: 44px; }
.claims .row { justify-content: flex-start; gap: 16px; }
.claims .row > b { flex: 0 0 3.5rem; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.inv { background: var(--ink); color: var(--fg-inv); border-radius: var(--r2); padding: 24px; }
.inv .inv-lede { color: var(--fg-inv); opacity: 0.7; font-size: 0.875rem; margin: 0 0 20px; }
.inv ul { list-style: none; margin: 0; padding: 0; }
.inv li + li { margin-top: 16px; }
.inv li b { display: block; font-size: 0.9375rem; }
.inv li span { opacity: 0.7; font-size: 0.875rem; }
dialog {
 box-sizing: border-box;
 padding: 0;
 border: 0;
 color: var(--ink);
 background: var(--card);
 text-align: left;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(2px); }
dialog.modal {
 margin: auto;
 width: min(460px, calc(100vw - 32px));
 border: 1px solid var(--line);
 border-radius: var(--r2);
 box-shadow: var(--shadow-lg);
}
dialog.set[open] {
 display: flex;
 flex-direction: column;
 width: min(620px, calc(100vw - 32px));
 max-height: 86dvh;
}
dialog.set .fields { margin-bottom: 30px; }
dialog.drawer[open] {
 margin: 0 0 0 auto;
 width: min(420px, 100vw);
 max-width: 100vw;
 height: 100dvh;
 max-height: 100dvh;
 display: flex;
 flex-direction: column;
 border-left: 1px solid var(--line);
 box-shadow: var(--shadow-lg);
}
dialog[open] { animation: dfade 140ms ease; }
dialog.drawer[open] { animation: dslide 180ms cubic-bezier(0.32, 0.72, 0, 1); }
@keyframes dfade { from { opacity: 0; transform: translateY(6px); } }
@keyframes dslide { from { transform: translateX(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
 dialog[open], dialog.drawer[open] { animation: none; }
}
.pickbox[open] {
 width: min(860px, calc(100vw - 32px));
 max-height: calc(100dvh - 48px);
 padding: 22px 24px 24px;
 overflow-y: auto;
}
.pickbox .phd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pickbox .phd h3 { margin: 0; }
.pickbox .pick:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.pickbox .pick.withmap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: 0 24px; align-items: start; }
.pickbox .pick.withmap > h3, .pickbox .pick.withmap > .facts, .pickbox .pick.withmap > .actions { grid-column: 1; }
.pickbox .pick.withmap > .pmap { grid-column: 2; grid-row: 1 / span 3; }
.pmap { width: 100%; border-radius: var(--r1); border: 1px solid var(--line); display: block; }
.pickbox .actions [data-tip]::after { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; transform: none; }
.pickbox .rowend [data-tip]::after, .pickbox .phd [data-tip]::after { left: auto; right: 0; transform: none; }
.pickbox .phd [data-tip]::after { top: calc(100% + 6px); bottom: auto; }
@media (max-width: 640px) {
 .pickbox .pick.withmap { grid-template-columns: minmax(0, 1fr); }
 .pickbox .pick.withmap > .pmap { grid-column: 1; grid-row: auto; margin-bottom: 14px; }
}
.waiting { position: relative; pointer-events: none; }
.waiting::before {
 content: "";
 position: absolute;
 inset: 0;
 z-index: 2;
 background: color-mix(in srgb, var(--card) 62%, transparent);
 border-radius: var(--r1);
}
.waiting::after {
 content: "";
 position: absolute;
 top: 50%;
 left: 50%;
 z-index: 3;
 width: 26px;
 height: 26px;
 margin: -13px 0 0 -13px;
 border: 2px solid var(--ink);
 border-right-color: transparent;
 border-radius: var(--r3);
 animation: turn 700ms linear infinite;
}
.ask { width: min(380px, calc(100vw - 32px)); padding: 22px 24px 20px; }
.ask p { margin: 0 0 18px; }
.ask .actions { margin: 0; }
.dhd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line); }
.dhd h2 { margin: 0; }
.dbd { padding: 16px 20px; overflow-y: auto; }
.drawer .dbd { flex: 1; padding: 0; }
.dft { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.dft .muted { margin-right: auto; }
.arow { display: block; padding: 14px 20px; border-bottom: 1px solid var(--line2); text-decoration: none; color: inherit; }
.arow:hover { background: var(--line2); }
.arow .ahd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.arow .ahd b, .arow .ahd span:first-child { font-size: 0.9375rem; }
.arow .ahd .when { color: var(--mut); font-size: 0.75rem; white-space: nowrap; }
.arow p { margin: 2px 0 0; color: var(--mut); font-size: 0.8125rem; }
.arow.read .ahd span:first-child { color: var(--mut); }
@media print {
 .bar, .noprint, .imp, .foot { display: none !important; }
 body { background: #fff; color: #1b1b1b; }
 .wrap { max-width: none; padding: 0; }
 .qr-card, .card, .tablewrap { border: 1px solid #000; break-inside: avoid; box-shadow: none; }
 .card .tablewrap { border: 0; }
}
