:root {
    --bg: #eceef2;
    --paper: #ffffff;
    --panel: #ffffff;
    --surface: #ffffff;
    --card: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e2e5eb;
    --soft: #f3f4f7;
    --accent: #111827;
    --accent-ink: #ffffff;
    --green: #1b6b43;
    --green-2: #dcf5e7;
    --ok-bg: #dcf5e7;
    --rust: #a33b24;
    --rust-2: #fee2e2;
    --bad-bg: #fee2e2;
    --warn: #92400e;
    --warn-bg: #ffedd5;
    --amber: #92400e;
    --amber-2: #ffedd5;
    --gold: #8a6a22;
    --slate: #4a5a68;
    --slate-2: #e0eaff;
    --info-bg: #e0eaff;
    --ok: #1b6b43;
    --bad: #a33b24;
    --link: #111827;
    --line-2: #d5d9e0;
    --radius: 16px;
    --radius-sm: 12px;
    --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 500 14.5px/1.45 var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
body.ws-shell {
  display: flex;
  align-items: stretch;
}
.ws-frame { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ws-rail {
  position: sticky;
  top: 0;
  align-self: flex-start;
  z-index: 50;
  width: 68px;
  height: 100vh;
  height: 100dvh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  background: rgba(255,253,248,.96);
  border-right: 1px solid var(--line);
}
.ws-rail-brand {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 2px;
}
.ws-rail-brand:hover { text-decoration: none; color: #fff; }
.ws-rail-item {
  width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: grid; place-items: center;
  text-decoration: none;
}
.ws-rail-item svg { width: 22px; height: 22px; display: block; }
.ws-rail-item:hover { background: var(--soft); text-decoration: none; color: var(--ink); }
.ws-rail-item.on {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}
.ws-rail-item.on:hover { color: #fff; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.bar {
  display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  background: rgba(255,253,248,.9); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.logo { font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.top-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.top-nav a { color: var(--muted); }
.top-nav a.on { color: var(--ink); font-weight: 600; }
.bar-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 24px 18px 48px; }
h1 { font-size: 1.5rem; margin: 0 0 12px; }
.muted, .hint { color: var(--muted); }
.flash, .err, .ok {
  padding: 12px 14px; border-radius: 12px; margin: 0 0 12px;
  font-weight: 500; color: var(--ink);
}
.flash.ok, .ok { background: #dcf5e7; color: var(--ink); }
.flash.err, .err { background: #fee2e2; color: var(--ink); }
.status-ok { color: var(--ok); }
.status-bad { color: var(--bad); }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: #e8efe8; color: var(--accent); font-size: .8rem;
}
.badge.off { background: #f0e4e4; color: var(--bad); }
.btn, button, .ghost {
  font: inherit; cursor: pointer; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); padding: 7px 12px; border-radius: 8px;
}
button.primary, .btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.ghost { background: transparent; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row-actions form { margin: 0; display: inline; }
label { display: grid; gap: 4px; margin-bottom: 12px; }
input, select {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff;
}
.login-box {
  max-width: 360px; margin: 12vh auto; padding: 28px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
}
.login-box h1 { margin-bottom: 8px; }
.issued {
  padding: 12px 14px; border: 1px dashed var(--accent); border-radius: 10px;
  background: #eef5f1; margin-bottom: 16px;
}
.issued code { font-size: 1.05rem; }
.svc-grid { display: grid; gap: 12px; }
.svc {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.svc .name { font-weight: 600; }

/* ——— Soft+ components layer ——— */
body {
    font-family: var(--font);
    font-weight: 500;
    font-size: 14.5px;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
a:hover { color: var(--ink); text-decoration: none; }
.top-nav a, .dock a, .gear, .icon-link, .quiet, .muted { color: var(--muted); }
.top-nav a.on, .dock a.on, .gear.on, .icon-link.on { color: var(--ink); }
.bar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.logo {
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.page, h1.page, .empty h1, .login-box h1 {
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: -0.03em;
}
.ws-rail {
    background: var(--panel);
    border-right-color: var(--line);
    box-shadow: none;
}
.ws-rail-item:hover { background: var(--soft); }
.card, .settings, .alert, .svc, .login-box, .empty,
.kpis article, .kpi .card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.kpis article, .kpis-5 article {
    border-radius: var(--radius-sm);
}
.kpis b, .kpis article b {
    font-weight: 700;
    letter-spacing: -0.02em;
}
.kpis span, .kpis article span {
    font-weight: 600;
}
button, .btn, .ghost, .btn.ghost, button.ghost {
    font-family: var(--font);
    font-weight: 600;
    border-radius: 10px;
}
/* filled primary actions */
button.primary, .btn.primary,
button[type="submit"]:not(.ghost):not(.link):not(.btn):not(.fav):not(.date-btn):not(.soft-select-btn):not(.soft-select-opt),
button:not([class]):not(.ghost):not(.soft-select-btn):not(.soft-select-opt) {
    background: var(--accent);
    color: var(--accent-ink);
    border: 1px solid transparent;
}
button.primary:hover, .btn.primary:hover,
button[type="submit"]:not(.ghost):not(.link):not(.btn):not(.fav):not(.date-btn):hover {
    background: #0b1220;
    color: var(--accent-ink);
}
/* outline / secondary */
.btn:not(.primary):not(.ghost),
button.ghost, .btn.ghost, .ghost,
.date-btn,
.soft-select-btn {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn:not(.primary):not(.ghost):hover,
button.ghost:hover, .btn.ghost:hover, .ghost:hover,
.date-btn:hover {
    background: var(--soft);
    color: var(--ink);
    border-color: var(--line);
}
.fav {
    background: transparent;
    border: 0;
    color: var(--muted);
    box-shadow: none;
}
.fav.on { color: var(--ink); }
input, select, textarea, .app-pick-btn, .app-pick-q {
    border-radius: 10px;
    border-color: var(--line);
    background: #fff;
    font-family: var(--font);
}
table.data, table {
    background: var(--panel);
}
table.data th, table th {
    color: var(--muted);
    font-weight: 600;
}
.badge {
    border-radius: 999px;
    font-weight: 600;
}
.flash, .err, .ok, .warn-box, .banner-msg, .flash.good, .flash.bad {
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-weight: 500;
}
.dock {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* Soft+ KPI / table polish */
.kpis article.good, .kpis article.bad {
    box-shadow: var(--shadow);
}
.kpis article.good { background: var(--ok-bg); border-color: #b7e4c7; }
.kpis article.bad { background: var(--bad-bg); border-color: #f0b4b4; }
table.data thead th, table.sticky thead th {
    background: var(--soft);
}
.app-pick-menu, .app-pick-btn {
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.ws-rail-item.on svg { color: inherit; }

@media (max-width: 820px) {
    body.ws-shell { flex-direction: column; }
    .ws-rail {
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 6px;
        padding: 8px 10px;
        padding-top: max(8px, env(safe-area-inset-top, 0px));
        border-right: 0;
        border-bottom: 1px solid var(--line);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ws-rail::-webkit-scrollbar { display: none; }
    .ws-rail-brand { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 0; flex-shrink: 0; }
    .ws-rail-item { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; }
    .ws-rail-item svg { width: 20px; height: 20px; }
    .bar {
        padding-left: 14px;
        padding-right: 14px;
    }
    .wrap, main.wrap {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* ——— Soft+ layout density (desktop) ——— */
.wrap, main.wrap {
    max-width: 1360px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
.kpis, .kpis-5, .kpis-6 {
    width: 100%;
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    align-items: stretch;
}
.kpis {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis article, .kpi .card {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    width: auto;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
}
.kpis span, .kpis article span, .kpi .l {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.01em;
    margin: 0;
}
.kpis b, .kpis article b, .kpi .n {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 2px 0 0;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.kpis i, .kpis small {
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--muted);
}
.filters, .card, .settings, .alert, .panel {
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 1100px) {
    .kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .kpis, .kpis-5, .kpis-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .kpis article, .kpi .card { padding: 12px 14px; }
    .kpis b, .kpis article b, .kpi .n { font-size: 1.2rem; }
}

/* ——— Soft+ system controls (select / popovers / inputs) ——— */
html { color-scheme: light; }
select,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
textarea,
.date-btn,
.soft-select-btn,
.app-pick-btn,
.app-pick-q {
    font-family: var(--font);
    font-weight: 500;
    font-size: 13.5px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: none;
    outline: none;
    min-height: 38px;
    box-sizing: border-box;
}
select:focus,
input:focus,
textarea:focus,
.date-btn:focus,
.soft-select-btn:focus,
.app-pick-btn:focus,
.app-pick-q:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}
.date-btn, .soft-select-btn, .app-pick-btn {
    cursor: pointer;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 7.2rem;
}
.date-btn.empty, .soft-select-btn.empty { color: var(--muted); }

/* custom Soft+ select */
.soft-select {
    position: relative;
    display: inline-block;
    min-width: 140px;
    max-width: 100%;
    vertical-align: top;
}
.soft-select-native {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0 0 0 0);
}
.soft-select-btn {
    width: 100%;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.8 6 6.2l4.5-4.4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 7px;
}
.soft-select.open .soft-select-btn {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}
.soft-select-menu,
.cal-pop,
.app-pick-menu {
    position: absolute;
    z-index: 80;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
    padding: 6px;
}
.soft-select-menu {
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    max-width: min(360px, 92vw);
    max-height: 280px;
    overflow: auto;
}
.soft-select-opt {
    display: grid;
    grid-template-columns: 1.1rem 1fr;
    gap: 8px;
    align-items: center;
    width: 100%;
    text-align: left;
    font: inherit;
    font-weight: 500;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    min-height: 0;
}
.soft-select-opt:hover { background: var(--soft); }
.soft-select-opt.on {
    background: var(--soft);
    font-weight: 650;
}
.soft-select-check {
    color: var(--ink);
    font-size: 0.85rem;
    line-height: 1;
    text-align: center;
}
.soft-select-opt.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* calendar pop — Soft+ */
.cal-pop {
    top: calc(100% + 6px);
    left: 0;
    width: 268px;
    padding: 10px;
}
.cal-nav {
    border-radius: 8px;
}

/* profit app-pick Soft+ (light menu, not inverted OS-dark) */
.app-pick-menu {
    top: calc(100% + 6px);
    left: 0;
    width: 300px;
    padding: 8px;
}
.app-pick-item,
.app-pick-row {
    border-radius: 8px;
}
.app-pick-item.on,
.app-pick-row:has(.app-pick-item.on) {
    background: var(--soft) !important;
    color: var(--ink) !important;
}
.app-pick-item.on i,
.app-pick-row:has(.app-pick-item.on) .app-pick-item,
.app-pick-row:has(.app-pick-item.on) .app-pick-copy {
    color: var(--muted) !important;
}
.app-pick-item:hover,
.app-pick-row:hover {
    background: var(--soft);
}
.app-pick-btn {
    padding-right: 28px;
}
.app-pick-btn::after {
    border-top-color: var(--muted);
}

/* label + control spacing in filters */
.filters label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.filters label > .soft-select,
.filters label > select,
.filters label > .date-field,
.filters label > input {
    font-weight: 500;
    color: var(--ink);
}

.filters .soft-select { min-width: 180px; max-width: 280px; }
.filters .soft-select-btn { min-width: 180px; }
label > .soft-select { width: 100%; }

/* ——— Soft+ chrome: header / file / forms / tables ——— */
.bar {
    display: flex;
    align-items: center;
    gap: 12px 16px;
    min-height: 60px;
    height: auto;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-wrap: wrap;
}
.logo {
    font-family: var(--font);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
}
.logo:hover { text-decoration: none; color: var(--ink); }
.top-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}
.top-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    line-height: 1.2;
}
.top-nav a:hover {
    color: var(--ink);
    background: var(--soft);
    text-decoration: none;
}
.top-nav a.on {
    color: var(--ink);
    background: var(--soft);
}
.top-nav span {
    font-weight: 500;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.bar-tools, .bar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.app-pick { align-items: center; }
.app-pick .add {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    padding: 0;
}
.app-pick .add:hover, .app-pick .add.on {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

/* Soft+ file picker */
.file-pick {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
}
.file-pick input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0;
}
.file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-family: var(--font);
    font-weight: 600;
    font-size: 13.5px;
    pointer-events: none;
    box-shadow: var(--shadow);
}
.file-pick:hover .file-btn {
    background: var(--soft);
    border-color: var(--line);
}
.file-name {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-name.on { color: var(--ink); }

.drop {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
}
.drop:hover { border-color: #c5cad3; background: var(--soft); }
.drop .file-pick { margin-top: 4px; }

.upload-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: flex-end;
}
.upload-meta label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.upload-meta button[type="submit"] {
    min-height: 38px;
    padding: 8px 16px;
    width: auto;
}

/* forms: settings not skinny */
.settings {
    max-width: 720px !important;
    width: 100%;
    gap: 14px;
}
.settings.wide { max-width: 880px !important; }
.settings label { gap: 6px; font-weight: 600; color: var(--muted); font-size: 12.5px; }
.settings input, .settings select, .settings textarea, .settings .soft-select {
    width: 100%;
    max-width: 100%;
}
.settings textarea {
    min-height: 96px;
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: 10px 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
}
.settings button[type="submit"],
.settings .btn,
.upload-meta button[type="submit"] {
    width: auto !important;
    align-self: flex-start;
    min-width: 140px;
}

/* tables denser Soft+ */
table.data {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
table.data th {
    background: var(--soft);
    font-size: 12px;
    font-weight: 650;
    padding: 10px 12px;
}
table.data td {
    padding: 11px 12px;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}
table.data td.wrap,
table.data td.file {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
table.data td.actions {
    white-space: nowrap;
}
table.data tr.note td {
    padding-top: 0;
    padding-bottom: 12px;
    color: var(--muted);
    font-size: 12.5px;
}
button.link, .btn.link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: 12.5px;
    text-decoration: none;
}
button.link:hover, .btn.link:hover {
    background: var(--soft);
    color: var(--ink);
}
button.link.danger, .btn.link.danger {
    background: var(--bad-bg);
    border-color: #f0b4b4;
    color: var(--ink);
}
.actions { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

input[type="date"] {
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: 7px 10px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font);
}

table.data td.period { white-space: nowrap; font-variant-numeric: tabular-nums; }
.page-head { align-items: center; }
.card h2, .upload h2 {
    font-family: var(--font);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.card > .muted { margin: 0 0 14px; max-width: 70ch; }

/* neutralize leftover native file chrome */
.drop input[type="file"],
input[type="file"].soft-file-native,
.file-pick input[type="file"] {
    color: transparent;
}
.filters input[type="date"],
.upload-meta input[type="date"],
.settings input[type="date"] {
    color-scheme: light;
}

/* ——— Soft+ select fill fix (override button paint) ——— */
.soft-select-btn,
.soft-select-opt,
button.soft-select-btn,
button.soft-select-opt {
    background: #fff !important;
    color: var(--ink) !important;
    border: 1px solid var(--line) !important;
    box-shadow: none !important;
    font-weight: 500 !important;
}
.soft-select-btn {
    border-radius: 10px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.8 6 6.2l4.5-4.4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 10px 7px !important;
}
.soft-select.open .soft-select-btn {
    border-color: var(--ink) !important;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08) !important;
}
.soft-select-menu {
    padding: 0 !important;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid var(--line) !important;
}
.soft-select-opt {
    display: grid !important;
    grid-template-columns: 1.25rem 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 10px 12px !important;
    background: #fff !important;
    color: var(--ink) !important;
    text-align: left !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
}
.soft-select-opt + .soft-select-opt {
    border-top: 1px solid var(--line) !important;
}
.soft-select-opt:hover,
.soft-select-opt.on,
.soft-select-opt:hover.on {
    background: var(--soft) !important;
    color: var(--ink) !important;
}
.soft-select-opt.on { font-weight: 650 !important; }
.soft-select-check { color: var(--ink) !important; }
.soft-select-label { color: inherit !important; }
