:root {
    --bg: #07080c;
    --bg-2: #101218;
    --bg-3: #171a22;
    --line: rgba(255, 244, 224, 0.1);
    --line-strong: rgba(255, 244, 224, 0.18);
    --text: #f6f1e8;
    --muted: #9b9488;
    --accent: #e7a23a;
    --accent-ink: #1a1206;
    --ok: #8fd0a8;
    --bad: #ff8d7a;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --font: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: var(--font);
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--text);
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(231, 162, 58, 0.16), transparent 55%),
        radial-gradient(700px 380px at 100% 0%, rgba(90, 120, 255, 0.08), transparent 50%),
        var(--bg);
}
a { color: var(--accent); text-decoration: none; }
button, input, select { font-family: inherit; }

.loadbar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    z-index: 50;
    background: linear-gradient(90deg, transparent, var(--accent), #fff6e4);
    opacity: 0;
    pointer-events: none;
}
html.is-busy .loadbar {
    opacity: 1;
    animation: sweep 1s ease-in-out infinite;
}
@keyframes sweep {
    0% { width: 12%; margin-left: 0; }
    100% { width: 28%; margin-left: 100%; }
}

.app { display: flex; min-height: 100vh; }
.rail {
    width: 232px;
    flex-shrink: 0;
    padding: 22px 16px;
    border-right: 1px solid var(--line);
    background: rgba(7, 8, 12, 0.72);
    backdrop-filter: blur(16px);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 650;
    letter-spacing: -0.03em;
    font-size: 1.05rem;
}
.brand-center { justify-content: center; margin-bottom: 22px; }
.mark {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: linear-gradient(160deg, #ffd27a, var(--accent) 55%, #c47d12);
    color: var(--accent-ink);
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(231, 162, 58, 0.28);
}
.clan-pill {
    margin: 22px 0 18px;
    padding: 12px 12px 10px;
    border-radius: 14px;
    background: var(--bg-3);
    border: 1px solid var(--line);
}
.clan-pill strong { display: block; font-size: 0.95rem; }
.clan-pill span { color: var(--muted); font-size: 0.78rem; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.clan-menu { position: relative; margin: 18px 0 16px; }
.clan-current {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--bg-3);
    border: 1px solid var(--line);
}
.clan-current::-webkit-details-marker { display: none; }
.clan-current::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 1.6px solid var(--muted);
    border-bottom: 1.6px solid var(--muted);
    transform: rotate(45deg);
}
.clan-menu[open] .clan-current::after { transform: rotate(225deg); top: 22px; }
.clan-current strong { display: block; font-size: 0.95rem; padding-right: 16px; }
.clan-current span { color: var(--muted); font-size: 0.78rem; }
.clan-list {
    position: absolute;
    z-index: 8;
    left: 0;
    right: 0;
    margin-top: 6px;
    padding: 6px;
    border-radius: 14px;
    background: #141820;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.clan-list form { margin: 0; }
.clan-list button {
    width: 100%;
    text-align: left;
    background: transparent;
    color: var(--text);
    border: 0;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    box-shadow: none;
    height: auto;
}
.clan-list button strong { display: block; font-size: 0.9rem; }
.clan-list button span { display: block; color: var(--muted); font-size: 0.75rem; }
.clan-list button:hover,
.clan-list button.is-current { background: rgba(231, 162, 58, 0.12); }
.clan-list .clan-new { color: var(--accent); font-weight: 650; margin-top: 4px; }
.modal {
    width: min(420px, calc(100vw - 32px));
    padding: 22px 22px 8px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #12151c;
    color: var(--text);
    box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(0, 0, 0, 0.62); }
.modal h2 {
    margin-bottom: 12px;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    text-transform: none;
    color: var(--text);
}
.nav a {
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 550;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a.active {
    color: var(--accent-ink);
    background: var(--accent);
}
.nav-split {
    height: 1px;
    margin: 14px 8px;
    background: var(--line);
}
.guide [hidden] { display: none !important; }
.guide { width: 100%; max-width: none; }
.guide .page-head { margin-bottom: 14px; }
.guide-panel {
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
    box-shadow: var(--shadow);
}
.guide-zones {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}
.guide-zones button, .guide-kinds button, .guide-tools button, .guide-more button, .guide-empty button {
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.guide-zones button {
    height: 36px;
    flex: 0 0 auto;
    border-radius: 10px;
    padding: 0 12px;
    font-weight: 700;
    font-size: 0.78rem;
}
.guide-zones button[aria-pressed="true"] { border-color: rgba(231, 162, 58, 0.5); background: var(--accent); color: var(--accent-ink); }
.guide-zones button:hover:not([aria-pressed="true"]) { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.guide-panel-body { padding: 16px 18px 18px; }
.guide-note { margin: 0 0 12px; color: var(--muted); font-size: 0.82rem; }
.guide-find { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guide-field { position: relative; display: block; }
.guide-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 17px;
    height: 17px;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}
.guide-field .control {
    width: 100%;
    height: 44px;
    padding-left: 40px;
    padding-right: 42px;
}
.guide-x {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    transform: translateY(-50%);
    cursor: pointer;
}
.guide-x svg { width: 15px; height: 15px; }
.guide-x:hover { background: var(--bg-3); color: var(--text); }
.guide-find label > span:first-child, .guide-kinds > span, .guide-sort label > span, .guide-quick > span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.guide-kinds {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.guide-kinds > span { margin: 0; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.guide-kinds > span svg { width: 13px; height: 13px; }
.guide-kinds button {
    height: 32px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-2);
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}
.guide-kinds button b { font-family: ui-monospace, monospace; font-size: 0.68rem; opacity: 0.65; font-weight: 700; }
.guide-kinds button[aria-pressed="true"] { border-color: rgba(231, 162, 58, 0.45); background: rgba(231, 162, 58, 0.14); color: #f3d7a2; }
.guide-kinds button:hover:not([aria-pressed="true"]) { border-color: var(--line-strong); }
.guide-extra-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.guide-extra-row button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}
.guide-extra-row button svg { width: 14px; height: 14px; }
.guide-extra-row button:hover { color: var(--accent); }
.guide-extra-row button:disabled { opacity: 0.35; cursor: not-allowed; }
.guide-sort-chev { transition: transform 0.15s ease; }
.guide-extra-row button[aria-expanded="true"] .guide-sort-chev { transform: rotate(180deg); }
.guide-sort {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 12px;
    align-items: end;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-2);
}
.guide-sort select {
    width: 100%;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-3);
    color: var(--text);
    padding: 0 12px;
    font-weight: 600;
}
.guide-quick { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-x: auto; }
.guide-quick > span { margin: 0; flex: 0 0 auto; }
.guide-quick button {
    height: 32px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-3);
    color: var(--muted);
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 650;
    cursor: pointer;
}
.guide-quick button[aria-pressed="true"] { border-color: rgba(231, 162, 58, 0.45); background: rgba(231, 162, 58, 0.12); color: #f3d7a2; }
.guide-status {
    margin: 0 0 6px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-2);
}
.guide-status p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.guide-status strong { color: var(--text); font-weight: 700; }
.guide-status span { margin: 0 6px; opacity: 0.45; }
.guide-status [data-zone-label] { color: var(--accent); font-weight: 650; }
.guide-status [data-kind-label] { color: var(--ok); font-weight: 650; }
.guide-hint { margin-top: 4px !important; font-size: 0.78rem; }
.guide-tools { display: flex; justify-content: flex-end; gap: 8px; margin: 8px 0 10px; font-size: 0.75rem; }
.guide-tools button { padding: 6px 8px; border-radius: 6px; }
.guide-tools button:hover { color: var(--accent); }
.guide-tools button:disabled { opacity: 0.35; cursor: not-allowed; }
.guide-list { display: grid; gap: 8px; }
.guide:not(.is-live) .guide-slot:nth-child(n + 19) { display: none; }
.guide-slot {
    overflow: hidden;
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
    transition: border-color 0.15s ease, background 0.15s ease;
}
.guide-slot:hover { border-color: var(--line-strong); }
.guide-slot[open] { border-color: rgba(231, 162, 58, 0.38); }
.guide-slot.is-moradon { border-left-color: rgba(155, 196, 210, 0.75); }
.guide-slot.is-lufer { border-left-color: rgba(155, 175, 210, 0.75); }
.guide-slot.is-eslant { border-left-color: rgba(231, 162, 58, 0.75); }
.guide-slot.is-ardream { border-left-color: rgba(180, 165, 210, 0.75); }
.guide-slot.is-delos { border-left-color: rgba(210, 165, 130, 0.75); }
.guide-slot.is-cz { border-left-color: rgba(210, 145, 145, 0.75); }
.guide-slot.is-boss { border-left-color: rgba(210, 155, 200, 0.8); }
.guide-slot summary {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    list-style: none;
    cursor: pointer;
}
.guide-slot summary::-webkit-details-marker { display: none; }
.guide-slot summary:hover { background: rgba(255, 255, 255, 0.03); }
.guide-chev { width: 16px; height: 16px; color: var(--muted); transform: rotate(-90deg); }
.guide-slot[open] .guide-chev { transform: none; color: var(--accent); }
.guide-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--bg-3);
    color: var(--accent);
}
.guide-mark svg, .guide-diff svg, .guide-pill svg { width: 14px; height: 14px; }
.guide-slot.is-moradon .guide-mark { color: #a8c8d4; }
.guide-slot.is-lufer .guide-mark { color: #a8b8d8; }
.guide-slot.is-eslant .guide-mark { color: var(--accent); }
.guide-slot.is-ardream .guide-mark { color: #c0b0d8; }
.guide-slot.is-delos .guide-mark { color: #d8b898; }
.guide-slot.is-cz .guide-mark { color: #d8a0a0; }
.guide-slot.is-boss .guide-mark { color: #d8b0d0; }
.guide-id h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--text); font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; }
.guide-boss, .guide-ek {
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 2px 8px;
    color: var(--muted);
    background: var(--bg-3);
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.guide-boss { border-color: rgba(210, 155, 200, 0.35); color: #e8cce4; }
.guide-ek { border-color: rgba(231, 162, 58, 0.35); background: rgba(231, 162, 58, 0.1); color: #f3d7a2; }
.guide-id small { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 0.75rem; font-weight: 550; }
.guide-pin { width: 12px; height: 12px; flex: 0 0 auto; color: var(--muted); opacity: 0.85; }
.guide-lv { color: var(--muted); opacity: 0.75; }
.guide-count { text-align: right; }
.guide-count b { display: block; font-family: ui-monospace, monospace; color: var(--ok); font-size: 0.95rem; }
.guide-count span { color: var(--muted); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.guide-body { border-top: 1px solid var(--line); background: rgba(7, 8, 12, 0.45); padding: 14px 16px 16px; }
.guide-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.guide-diff, .guide-pill, .guide-level {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 14, 20, 0.7);
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 700;
}
.diff-easy { color: #8fd0a8; border-color: rgba(143, 208, 168, 0.35); background: rgba(143, 208, 168, 0.1); }
.diff-mid { color: #fcd34d; border-color: rgba(252, 211, 77, 0.35); background: rgba(252, 211, 77, 0.1); }
.diff-hard { color: #fdba74; border-color: rgba(253, 186, 116, 0.35); background: rgba(253, 186, 116, 0.1); }
.diff-hot { color: #f87171; border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.1); }
.diff-boss { color: #f0abfc; border-color: rgba(240, 171, 252, 0.35); background: rgba(240, 171, 252, 0.1); }
.guide-pill svg { color: var(--ok); }
.guide-pill + .guide-pill svg { color: var(--accent); }
.guide-level { color: #f3d7a2; border-color: rgba(231, 162, 58, 0.35); background: rgba(231, 162, 58, 0.08); }
.guide-level.is-wait { color: var(--muted); border-color: var(--line); background: var(--bg-3); }
.guide-level input {
    width: 54px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    color: white;
    text-align: center;
    font-family: ui-monospace, monospace;
    font-weight: 800;
}
.guide-level.is-muted { color: var(--muted); border-color: var(--line); background: var(--bg-3); }
.guide-level.is-ok { color: #c8efd8; border-color: rgba(143, 208, 168, 0.4); background: rgba(143, 208, 168, 0.1); }
.guide-level.is-edge { color: #f3d7a2; border-color: rgba(231, 162, 58, 0.45); background: rgba(231, 162, 58, 0.12); }
.guide-level.is-bad { color: #ffc4b8; border-color: rgba(255, 141, 122, 0.4); background: rgba(255, 141, 122, 0.1); }
.guide-detail { margin: 0 0 12px; color: var(--muted); font-size: 0.75rem; }
.guide-drops {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-2);
}
.guide-drops li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.guide-drops li.tone-a { background: rgba(255, 255, 255, 0.02); }
.guide-drops li.tone-b { background: rgba(231, 162, 58, 0.04); }
.guide-drops li.tone-c { background: rgba(143, 208, 168, 0.04); }
.guide-drops li.tone-a:hover { background: rgba(255, 255, 255, 0.045); }
.guide-drops li.tone-b:hover { background: rgba(231, 162, 58, 0.08); }
.guide-drops li.tone-c:hover { background: rgba(143, 208, 168, 0.08); }
.guide-drops li.is-boss { background: rgba(231, 162, 58, 0.07); }
.guide-drops li.is-boss:hover { background: rgba(231, 162, 58, 0.12); }
.guide-fallback {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--bg-3);
    color: var(--muted);
}
.guide-fallback svg { width: 16px; height: 16px; }
.guide-icons { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.guide-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #07090d;
    object-fit: cover;
}
.guide-extra {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #10141c;
    color: #d5d0c6;
    font-size: 0.68rem;
    font-weight: 800;
}
.guide-drop-name { min-width: 0; color: var(--text); font-size: 0.84rem; font-weight: 600; line-height: 1.35; }
.guide-more, .guide-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 18px 0 8px; color: var(--muted); }
.guide-more button, .guide-empty button {
    border-radius: 12px;
    border: 1px solid rgba(231, 162, 58, 0.4);
    background: rgba(231, 162, 58, 0.12);
    color: #f3d7a2;
    padding: 10px 18px;
    font-weight: 700;
}
.guide-empty {
    margin-top: 8px;
    padding: 48px 16px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--bg-2);
}
.guide-empty h2 { margin: 0; color: var(--text); font-size: 1.2rem; }
@media (max-width: 900px) {
    .guide-find, .guide-drops, .guide-sort { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .guide-find, .guide-drops, .guide-sort { grid-template-columns: 1fr; }
    .guide-lv { display: none; }
}

.workspace { flex: 1; min-width: 0; }
.top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 16px 28px 0;
}
.top-right, .top-left { display: flex; align-items: center; gap: 10px; }
.who { color: var(--muted); font-size: 0.88rem; }
.who-link { text-decoration: none; }
.who-link:hover { color: var(--text); text-decoration: underline; }
.page {
    padding: 18px 28px 64px;
    width: 100%;
    max-width: 1100px;
    min-width: 0;
}
.page-wide { max-width: none; width: 100%; }

h1 {
    margin: 0 0 18px;
    font-size: 2rem;
    letter-spacing: -0.045em;
    font-weight: 650;
}
h2 {
    margin: 0 0 14px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-head h1 { margin: 0; }

.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.card-narrow { max-width: 440px; }
.dash-reports {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
    width: 100%;
}
@media (max-width: 1200px) {
    .dash-reports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .dash-reports { grid-template-columns: 1fr; }
}
.dash-report { margin-bottom: 0; min-width: 0; }
.dash-report-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.dash-report-head h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.02em;
}
.dash-report-hint {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.dash-bars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dash-bar-row { min-width: 0; }
.dash-bar-meta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.86rem;
}
.dash-rank {
    width: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}
.dash-label {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.dash-value {
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    font-size: 0.84rem;
}
.dash-bar-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.dash-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(231, 162, 58, 0.55), rgba(231, 162, 58, 0.95));
    min-width: 0;
    transition: width 0.35s ease;
}
.dash-report-top-earners .dash-bar-fill {
    background: linear-gradient(90deg, rgba(143, 208, 168, 0.5), rgba(143, 208, 168, 0.95));
}
.dash-report-top-farm-expense .dash-bar-fill {
    background: linear-gradient(90deg, rgba(255, 141, 122, 0.45), rgba(255, 141, 122, 0.9));
}
.dash-report-top-farm-gross .dash-bar-fill {
    background: linear-gradient(90deg, rgba(122, 168, 255, 0.45), rgba(122, 168, 255, 0.92));
}
.dash-report-farm-status .dash-bar-fill {
    background: linear-gradient(90deg, rgba(231, 162, 58, 0.45), rgba(126, 203, 143, 0.9));
}
.dash-report-top-drops .dash-bar-fill {
    background: linear-gradient(90deg, rgba(196, 130, 255, 0.45), rgba(196, 130, 255, 0.9));
}
.dash-report-farm-activity .dash-bar-fill {
    background: linear-gradient(90deg, rgba(155, 196, 210, 0.45), rgba(155, 196, 210, 0.95));
}
.dash-sub {
    display: block;
    margin-top: 3px;
    padding-left: 2rem;
    font-size: 0.72rem;
    color: var(--muted);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.stat {
    padding: 16px 16px 14px;
    border-radius: var(--radius);
    background: var(--bg-2);
    border: 1px solid var(--line);
}
.stat span { display: block; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
    .stat strong { display: block; margin-top: 6px; font-size: 1.45rem; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.chip {
    height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 0.85rem;
}
.split { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 16px; }

.field { display: block; margin-bottom: 12px; }
.field span { display: block; margin-bottom: 6px; font-size: 0.78rem; color: var(--muted); font-weight: 550; }
.control {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: var(--text);
    background: #0b0d12;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.control:hover { border-color: rgba(231, 162, 58, 0.35); }
.control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(231, 162, 58, 0.16);
    background: #10131a;
}
.control::placeholder { color: #6f6a62; }
select.control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%239b9488' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.control.is-bad,
.control.is-bad:focus {
    border-color: #ff8d7a;
    box-shadow: 0 0 0 4px rgba(255, 141, 122, 0.14);
}
.control.is-ok,
.control.is-ok:focus {
    border-color: #8fd0a8;
    box-shadow: 0 0 0 4px rgba(143, 208, 168, 0.12);
}
.secret { position: relative; display: block; }
.secret .control { padding-right: 48px; }
.eye {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.eye:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.eye:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(231, 162, 58, 0.22); }
.eye svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.eye .i-hide { display: none; }
.eye[aria-pressed="true"] { color: var(--accent); }
.eye[aria-pressed="true"] .i-show { display: none; }
.eye[aria-pressed="true"] .i-hide { display: block; }
.hint {
    display: block;
    margin: 6px 2px 0;
    font-size: 0.78rem;
    line-height: 1.3;
}
.hint-gap { margin-bottom: 1rem; }
.hint:empty { display: none; }
.hint-bad { color: var(--bad); }
.hint-ok { color: var(--ok); }
.control-compact { width: auto; min-width: 180px; height: 40px; }
.control-num { width: 120px; text-align: right; font-variant-numeric: tabular-nums; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.inline .control { width: auto; min-width: 140px; }

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 14px;
    color: var(--text);
    font-size: 0.92rem;
}
.check input {
    appearance: none;
    width: 20px; height: 20px;
    margin: 0;
    border-radius: 7px;
    border: 1px solid var(--line-strong);
    background: #0b0d12;
    display: grid;
    place-items: center;
}
.check input:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.check input:checked::after {
    content: "";
    width: 10px; height: 6px;
    border-left: 2px solid var(--accent-ink);
    border-bottom: 2px solid var(--accent-ink);
    transform: rotate(-45deg) translateY(-1px);
}
.check input:focus-visible { box-shadow: 0 0 0 4px rgba(231, 162, 58, 0.16); }

.btn {
    position: relative;
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffc56a, var(--accent));
    color: var(--accent-ink);
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(231, 162, 58, 0.18);
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: progress; }
.btn-block { width: 100%; }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line-strong);
    box-shadow: none;
    height: 40px;
}
.btn-tiny { height: 32px; padding: 0 10px; border-radius: 10px; font-size: 0.78rem; }
.btn-soft {
    background: rgba(122, 168, 255, 0.2);
    color: #c8dcff;
    border: 1px solid rgba(122, 168, 255, 0.45);
    box-shadow: none;
}
.btn-soft:hover { filter: brightness(1.08); color: #e8f0ff; }
a.btn { text-decoration: none; font-weight: 650; }
.btn.is-loading { color: transparent; }
.btn.is-loading::after {
    content: "";
    position: absolute;
    width: 16px; height: 16px;
    left: 50%; top: 50%;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    border: 2px solid rgba(26, 18, 6, 0.25);
    border-top-color: var(--accent-ink);
    animation: spin .7s linear infinite;
}
.btn-ghost.is-loading::after { border-color: rgba(246, 241, 232, 0.2); border-top-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

.alert {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
}
.alert-ok { background: rgba(143, 208, 168, 0.1); color: var(--ok); }
.alert-bad { background: rgba(255, 141, 122, 0.1); color: var(--bad); }

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty td { text-align: center; color: var(--muted); }
.actions { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.actions form { margin: 0; }
.text-link { font-weight: 600; }
.muted { color: var(--muted); }
.badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--line);
    color: var(--muted);
}
.badge-0 { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.badge-1 { color: var(--ok); background: rgba(143, 208, 168, 0.1); }
.note { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
.switch { color: var(--muted); font-size: 0.9rem; }
.switch a { font-weight: 650; }
a.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; color: var(--accent-ink); }
a.btn.btn-ghost, a.btn.btn-soft { color: inherit; }
a.btn.btn-soft { color: #c8dcff; }
a.btn.btn-ghost { color: var(--text); }

.farm-setup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    width: 100%;
}
.farm-step-pay,
.farm-step-wide { grid-column: 1 / -1; }
.farm-step { min-width: 0; }
.stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}
.stepper-btn {
    width: 34px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
}
.stepper-btn:hover { background: rgba(231, 162, 58, 0.16); }
.stepper .control {
    width: 52px;
    height: 36px;
    border: 0;
    border-radius: 0;
    text-align: center;
    padding: 0;
}
.farm-share {
    display: grid;
    grid-template-columns: minmax(120px, 1.25fr) repeat(3, minmax(0, 1fr)) minmax(0, 7.5rem);
    gap: 8px 10px;
    align-items: end;
    padding: 12px 10px;
    margin: 0 -10px;
    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
}
.farm-share > * { min-width: 0; }
.farm-share-head {
    padding-top: 0;
    margin-top: 0;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 550;
}
.farm-share-head b,
.farm-share-head .farm-share-pay { font-weight: 550; }
.farm-share-name {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-weight: 650;
    line-height: 1.3;
}
.farm-share-cell span { display: block; color: var(--muted); font-size: 0.78rem; margin-bottom: 2px; }
.farm-share-cell b { font-weight: 650; font-variant-numeric: tabular-nums; }
.farm-share-pay {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 1px;
}
.farm-pay-btn {
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}
.farm-pay-btn.is-on {
    background: rgba(92, 184, 122, 0.22);
    border-color: var(--ok);
    color: var(--ok);
    font-weight: 650;
}
.farm-pay-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    box-sizing: border-box;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    line-height: 1.2;
    text-align: center;
    font-weight: 650;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}
.farm-pay-status.is-on {
    color: var(--ok);
    background: rgba(92, 184, 122, 0.12);
    border-color: rgba(92, 184, 122, 0.35);
}
.farm-pay-list-btn.is-on {
    background: rgba(92, 184, 122, 0.18);
    border-color: var(--ok);
    color: var(--ok);
}
.farm-step { scroll-margin-top: 76px; }
.farm-step.is-on {
    opacity: 1;
    border-color: rgba(231, 162, 58, 0.7);
    box-shadow: 0 0 0 1px rgba(231, 162, 58, 0.45);
}
.farm-step.is-done,
.farm-step.is-wait { opacity: 0.5; }
.farm-step.is-done .farm-step-body,
.farm-step.is-wait .farm-step-body { pointer-events: none; }
.farm-step.is-on .farm-step-body { pointer-events: auto; }
.farm-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.farm-step-title {
    margin: 0;
    flex: 1;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    text-transform: none;
    color: var(--text);
    font-weight: 650;
}
.farm-num {
    width: 32px;
    height: 32px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
}
.farm-step.is-wait .farm-num,
.farm-step.is-done .farm-num {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line-strong);
}
.farm-step.is-done .farm-num { color: var(--ok); border-color: var(--ok); }
.farm-step-edit { display: none; }
.farm-step.is-done .farm-step-edit { display: inline; pointer-events: auto; }
.farm-step-foot { margin-top: 14px; }
.farm-step.is-wait .farm-step-foot,
.farm-step.is-done .farm-step-foot { display: none; }
.farm-line {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 12px;
    background: #0b0d12;
    border: 1px solid var(--line);
}
.farm-line-name { display: flex; align-items: center; gap: 10px; width: 100%; }
.farm-line-name .farm-name {
    flex: 1;
    min-width: 0;
    font-weight: 650;
    line-height: 1.3;
}
.farm-line-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.farm-line-tools .farm-price-input { flex: 1 1 140px; width: auto; }
.farm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.farm-chips:empty { display: none; }
.chip-x {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    padding: 0;
}
.chip-x:hover { color: var(--text); }
.farm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.farm-col {
    min-height: 180px;
    padding: 12px;
    border-radius: 16px;
    border: 1px dashed var(--line-strong);
    background: rgba(0, 0, 0, 0.18);
}
.farm-col.is-plain { min-height: 0; margin-top: 4px; }
.farm-banner {
    margin: 0 0 14px;
    font-size: 1.35rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    color: var(--accent);
}
.farm-banner.is-done { color: var(--ok); }
.farm-done { color: var(--ok); font-weight: 650; }
.farm-name { flex: 1 1 160px; min-width: 140px; }
.farm-row { flex-wrap: wrap; }
.farm-row .farm-name { flex: 1 1 160px; min-width: 140px; }
.farm-left { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.farm-qty { width: 72px; flex: none; }
.farm-price-input { width: 108px; flex: none; }
.farm-pay-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.farm-gider-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}
.farm-subhead {
    margin: 0 0 4px;
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 650;
}
.farm-subnote {
    margin: 0 0 12px;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.35;
}
.farm-pay-tick {
    color: var(--ok);
    font-weight: 700;
    margin-left: 4px;
}
.farm-pay-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 6px;
}
.farm-share.is-paid .farm-net { opacity: 0.85; }
.player-nick.is-paid .farm-pay-tick { color: var(--ok); }
.farm-ledger { margin: 14px 0 16px; }
.farm-ledger div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
}
.farm-gross {
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #d4766a;
    margin-right: 8px;
    font-weight: 550;
}
.farm-net { color: var(--ok); font-weight: 650; font-variant-numeric: tabular-nums; }
.farm-ask p { margin: 0 0 16px; }
.farm-col.is-over { border-color: var(--accent); background: rgba(231, 162, 58, 0.08); }
.farm-col .combo { margin-bottom: 10px; }
.farm-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px;
    border-radius: 12px;
    background: #0b0d12;
    border: 1px solid var(--line);
}
.farm-row[draggable="true"] { cursor: grab; }
.farm-row span { flex: 1; min-width: 0; }
.farm-row .note { flex: 1 1 100%; margin: 0; }
.farm-price { font-variant-numeric: tabular-nums; }
.farm-move, .farm-back {
    flex: none;
    height: 32px;
    min-width: 32px;
    padding: 0 8px;
    border: 0;
    border-radius: 10px;
    background: rgba(231, 162, 58, 0.16);
    color: var(--accent);
    cursor: pointer;
    font: inherit;
}
.farm-row .control-num { width: 92px; height: 36px; }

.pus-add {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}
.pus-add .btn { height: 46px; }
.pus-add .control-num { flex: none; }
.item-name { display: flex; align-items: center; gap: 10px; }
.pus-icon {
    width: 32px;
    height: 32px;
    flex: none;
    object-fit: contain;
    padding: 2px;
    border-radius: 9px;
    background: #0b0d12;
    border: 1px solid var(--line);
}
.combo { position: relative; flex: 1 1 280px; min-width: 220px; }
.combo.is-open { z-index: 30; }
.combo .control { width: 100%; padding-left: 52px; }
.combo.combo-no-preview .control { padding-left: 14px; }
.combo.is-off { opacity: 0.55; }
.combo.is-off .control { cursor: not-allowed; }
.combo-opt-plain { gap: 0; padding-left: 10px; }
.combo-preview {
    position: absolute;
    left: 8px;
    top: 7px;
    pointer-events: none;
}
.combo-pop {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 320px;
    overflow: auto;
    padding: 6px;
    border-radius: 16px;
    background: #12151c;
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
}
.combo-pop[hidden] { display: none; }
.combo-opt {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}
.combo-opt:hover,
.combo-opt.is-on { background: rgba(231, 162, 58, 0.12); }
.combo-label { flex: 1; min-width: 0; }
.combo-tag {
    flex: none;
    height: 22px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(231, 162, 58, 0.16);
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.combo-pop::-webkit-scrollbar { width: 10px; }
.combo-pop::-webkit-scrollbar-thumb {
    background: rgba(231, 162, 58, 0.35);
    border-radius: 999px;
    border: 2px solid #12151c;
}

.gate {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
}
.gate-card {
    width: min(440px, 100%);
    padding: 28px 26px 24px;
    border-radius: 24px;
    background: rgba(16, 18, 24, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.page-head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.player-nick {
    display: inline-flex;
    align-items: center;
    gap: 0;
    vertical-align: middle;
}
.class-pick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.class-pick-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
}
.class-pick-opt input { position: absolute; opacity: 0; pointer-events: none; }
.class-pick-opt:has(input:checked) {
    border-color: rgba(231, 162, 58, 0.55);
    background: rgba(231, 162, 58, 0.1);
    color: var(--text);
}
.class-pick-opt:hover { border-color: var(--line-strong); }
@media (max-width: 520px) {
    .class-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.class-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 0.35rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--bg-3);
}
.player-nick .class-icon { display: inline-block; }

.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-end;
}
.field-grow { flex: 1; min-width: min(100%, 220px); }

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #101218;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-strong);
}
.data-table tbody td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.data-table tbody tr[data-farm-row]:hover td {
    background: rgba(231, 162, 58, 0.04);
}
.farms-list-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}
.list-toolbar-farms { margin-bottom: 10px; }
.field-status { min-width: 10rem; }
.farm-date-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.farm-date-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.farm-date-fields .field { min-width: 9.5rem; }
.farm-date-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.chip-btn {
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.chip-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); }
.chip-btn.is-on {
    border-color: rgba(231, 162, 58, 0.5);
    background: rgba(231, 162, 58, 0.14);
    color: #f3d7a2;
}

.farm-list-title {
    display: block;
    font-size: 0.95rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.farm-list-when {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--muted);
}
.farm-list-farmers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin-top: 6px;
    max-width: 100%;
}
.farm-col-farmers { word-break: break-word; min-width: 0; }
.farm-nick-compact {
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
}
.farm-farmers-more {
    display: inline-block;
    position: relative;
}
.farm-farmers-more summary {
    list-style: none;
    cursor: pointer;
}
.farm-farmers-more summary::-webkit-details-marker { display: none; }
.farm-more-nicks {
    display: inline-flex;
    align-items: center;
    height: 1.5rem;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px dashed var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 650;
}
.farm-more-nicks:hover { color: var(--accent); border-color: rgba(231, 162, 58, 0.45); }
.farm-list-farmers-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: 6px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg-3);
}
.farms-table tbody tr.farm-list-main:not(:has(.farm-farmers-more[open])) td.farm-col-farmers {
    vertical-align: middle;
}
.farm-count-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 650;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.farms-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}
.farms-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
}
.farms-table th,
.farms-table td {
    min-width: 0;
    overflow: hidden;
    word-wrap: break-word;
    padding: 8px 6px;
}
.farms-table thead th {
    padding: 10px 6px;
    white-space: nowrap;
}
.farms-table tbody tr[hidden] { display: none; }
.farms-table tbody tr.farm-list-main td { vertical-align: middle; }
.farms-table .farm-col-name { width: 14%; }
.farms-table .farm-col-farmers { width: 15%; }
.farms-table .farm-col-qty { width: 11%; }
.farms-table .farm-col-money { width: 34%; }
.farms-table .farm-col-status { width: 7%; text-align: center; }
.farms-table .farm-col-pay { width: 8%; text-align: center; }
.farms-table .farm-col-actions { width: 11%; }
.page-wide .farms-table th,
.page-wide .farms-table td { padding: 10px 10px; }
.page-wide .farms-list-card { max-width: none; }
.page-wide .farms-table .row-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
}
.page-wide .farms-table .row-actions .btn {
    width: auto;
    flex: 1 1 auto;
    min-width: 4.5rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    background: rgba(122, 168, 255, 0.12);
    color: #9ec0ff;
}
.farms-table .status-pill { box-sizing: border-box; }
.status-pill.is-done {
    background: rgba(126, 203, 143, 0.14);
    color: #7ecb8f;
}
.status-pill.is-new {
    background: rgba(155, 148, 136, 0.14);
    color: #b8b0a4;
}
.status-pill.is-sale {
    background: rgba(231, 162, 58, 0.12);
    color: #f3d7a2;
}
.status-pill.is-pay {
    background: rgba(122, 168, 255, 0.14);
    color: #9ec0ff;
}
.status-pill.is-open {
    background: rgba(231, 162, 58, 0.12);
    color: #f3d7a2;
}
.farm-banner.is-new { color: var(--muted); }
.farm-banner.is-sale { color: #f3d7a2; }
.farm-banner.is-pay { color: #9ec0ff; }
.farm-banner.is-done { color: var(--ok); }

.farm-row-actions {
    text-align: right;
    vertical-align: middle !important;
}
.row-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    width: 100%;
    max-width: 100%;
}
.row-actions .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    white-space: nowrap;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 0.72rem;
}

.farm-stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}
.farm-stat-grid-money { grid-template-columns: 1fr 1fr; gap: 4px 10px; }
@media (min-width: 1280px) {
    .page-wide .farm-stat-grid-money { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.farm-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.78rem;
}
.page-wide .farm-stat { font-size: 0.8rem; padding: 5px 10px; }
.farm-stat span { color: var(--muted); flex: none; }
.farm-stat b {
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    text-align: right;
}
.farm-stat .muted-val { color: var(--muted); font-weight: 600; }
.farm-stat-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    padding: 5px 6px;
    border-radius: 8px;
    border: 1px solid rgba(231, 162, 58, 0.25);
    background: rgba(231, 162, 58, 0.06);
    font-size: 0.78rem;
}
.farm-stat-total span { color: var(--muted); }
.farm-stat-total .farm-net { font-variant-numeric: tabular-nums; }
.list-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.list-pager-info { color: var(--muted); font-size: 0.85rem; min-width: 10rem; text-align: center; }

@media (min-width: 900px) {
    .row-actions { flex-direction: row; flex-wrap: nowrap; justify-content: flex-end; }
    .row-actions .btn {
        width: auto;
        flex: 0 1 auto;
        min-width: 0;
        font-size: 0.74rem;
        padding-left: 8px;
        padding-right: 8px;
    }
}
@media (max-width: 720px) {
    .farm-date-bar { flex-direction: column; align-items: stretch; }
    .farms-table thead { display: none; }
    .farms-table tbody tr.farm-list-main {
        display: block;
        margin-bottom: 12px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.02);
    }
    .farms-table tbody tr.farm-list-main td {
        display: block;
        width: 100% !important;
        overflow: visible;
        border-bottom: 1px solid var(--line);
        padding: 10px 12px;
    }
    .farms-table tbody tr.farm-list-main td:last-child { border-bottom: 0; }
    .farms-table tbody tr.farm-list-main td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
        font-weight: 600;
    }
    .farms-table .farm-col-status { text-align: left; }
    .farms-table .farm-row-actions { text-align: left; }
    .row-actions { flex-direction: row; }
    .row-actions .btn { flex: 1; }
}

.farm-share.is-me {
    border-bottom-color: transparent;
    border-radius: 12px;
    border: 1px solid rgba(231, 162, 58, 0.55);
    background: rgba(231, 162, 58, 0.08);
}
.chip.is-me {
    outline: 1px solid rgba(231, 162, 58, 0.55);
    background: rgba(231, 162, 58, 0.08);
}
.farm-you {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(231, 162, 58, 0.2);
    color: var(--accent);
}
.farm-incele-meta { margin-top: 0; }
.farm-incele-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .app { flex-direction: column; }
    .rail { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
    .nav { flex-direction: row; flex-wrap: wrap; }
    .page, .top { padding-left: 16px; padding-right: 16px; }
    .stats, .split, .grid-2 { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .grid-2, .farm-cols, .farm-setup, .farm-incele-grid { grid-template-columns: 1fr; }
    .farm-step-pay, .farm-step-wide { grid-column: auto; }
    .farm-share { grid-template-columns: 1fr; }
    .nav-split { width: 1px; height: 22px; margin: 0 6px; }
    h1 { font-size: 1.6rem; }
}
