:root {
  --forest: #183c2f;
  --forest-2: #245443;
  --lime: #dff35b;
  --cream: #f4f1e9;
  --paper: #fffdf8;
  --ink: #17221d;
  --muted: #6c756f;
  --line: #dfe3dc;
  --danger: #a33d30;
  --shadow: 0 24px 70px rgba(24, 60, 47, 0.12);
  --font-sans: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; min-height: 100vh; background: var(--cream); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 1.5; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .18; background-image: radial-gradient(rgba(24,60,47,.22) .5px, transparent .5px); background-size: 7px 7px; z-index: 20; mix-blend-mode: multiply; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 850; letter-spacing: .13em; text-decoration: none; color: var(--forest); }
.brand-light { color: #fff; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50% 50% 46% 46%; font-size: 20px; font-style: italic; }
.brand-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.brand-logo-on-dark { filter: brightness(0) invert(1); }
.brand-logo-auth { max-width: 250px; }
.brand-logo-sidebar { max-width: 174px; }
.eyebrow { margin: 0 0 18px; color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.dark { color: var(--forest-2); }
.muted { color: var(--muted); }

.auth-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); min-height: 100vh; }
.brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 48px 7vw 40px; color: #fff; background: var(--forest); }
.brand-panel::before { content: ""; position: absolute; right: -18%; bottom: -28%; width: 72%; aspect-ratio: 1; border: 1px solid rgba(223,243,91,.25); border-radius: 50%; box-shadow: 0 0 0 70px rgba(223,243,91,.04), 0 0 0 140px rgba(223,243,91,.03); }
.brand-copy { position: relative; max-width: 680px; margin: 13vh 0 8vh; }
.brand-copy h1 { max-width: 650px; margin: 0; font-size: clamp(46px, 5.4vw, 76px); font-weight: 720; line-height: 1.02; letter-spacing: -.045em; }
.brand-copy > p:last-child { max-width: 530px; margin: 30px 0 0; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.65; }
.market-strip { position: relative; display: flex; gap: 10px; }
.market-strip span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; letter-spacing: .08em; }

.auth-panel { display: grid; place-items: center; padding: 48px; background: var(--paper); }
.auth-card { width: min(420px, 100%); }
.auth-card h2 { margin: 0 0 12px; font-size: 36px; font-weight: 720; line-height: 1.1; letter-spacing: -.035em; }
.auth-card .muted { margin: 0 0 34px; line-height: 1.55; }
.form-stack { display: grid; gap: 18px; }
.form-stack label, .field { display: grid; gap: 9px; color: #3a4841; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 50px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
textarea { padding: 14px 15px; resize: vertical; }
input:focus, select:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(36,84,67,.12); }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 0; border-radius: 8px; cursor: pointer; font-weight: 800; transition: transform .15s, background .2s, opacity .2s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(.97); }
.button:focus-visible, .nav-item:focus-visible, .switch-row:has(input:focus-visible) { outline: 3px solid rgba(36,84,67,.28); outline-offset: 3px; }
.button:disabled { cursor: wait; opacity: .6; transform: none; }
.button.primary { margin-top: 5px; color: #fff; background: var(--forest); }
.button.accent { color: var(--forest); background: var(--lime); }
.button.secondary { border: 1px solid var(--line); background: #fff; color: var(--forest); }
.button.secondary.danger { color: var(--danger); }
.message { min-height: 22px; margin: 16px 0 0; color: var(--danger); font-size: 13px; }
.message.success { color: var(--forest-2); }
.auth-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; margin-top: 18px; }
.auth-actions button { padding: 0; border: 0; color: var(--forest-2); background: transparent; cursor: pointer; font-size: 13px; font-weight: 750; text-decoration: underline; text-decoration-color: rgba(36,84,67,.35); text-underline-offset: 3px; }
.auth-actions button:hover { text-decoration-color: currentColor; }
.security-note { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.security-note span { margin-right: 7px; color: #64a06e; }

.app-shell { display: grid; grid-template-columns: 212px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 24px 14px 22px; background: var(--forest); color: #fff; z-index: 10; }
.sidebar > .brand { width: 100%; min-height: 48px; padding: 0 5px; }
.sidebar nav { display: grid; gap: 6px; margin-top: 42px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 7px; color: rgba(255,255,255,.65); background: transparent; cursor: pointer; text-align: left; font-weight: 700; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-icon { width: 22px; font-size: 20px; text-align: center; }
.sidebar-foot { display: grid; gap: 20px; margin-top: auto; padding: 18px 12px 0; border-top: 1px solid rgba(255,255,255,.14); }
.status-dot { color: rgba(255,255,255,.65); font-size: 12px; }
.status-dot span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(223,243,91,.1); }
.text-button { width: fit-content; padding: 0; border: 0; color: rgba(255,255,255,.75); background: transparent; cursor: pointer; font-size: 13px; }

.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 8; display: flex; min-height: 68px; align-items: center; gap: 16px; padding: 12px clamp(24px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgba(255,253,248,.92); backdrop-filter: blur(14px); }
.topbar-page-heading { display: flex; min-width: 0; align-items: center; gap: 12px; }
.topbar-page-heading h1 { max-width: min(46vw, 680px); overflow: hidden; margin: 0; font-size: clamp(20px, 2vw, 28px); font-weight: 760; line-height: 1.12; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.user-chip { display: flex; align-items: center; gap: 11px; margin-left: 0; }
.exchange-rates-menu { position: relative; margin-left: auto; }
.exchange-rates-menu summary { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); background: var(--paper); cursor: pointer; font-size: 12px; font-weight: 800; list-style: none; white-space: nowrap; }
.exchange-rates-menu summary::-webkit-details-marker { display: none; }
.exchange-rates-popover { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: min(330px, calc(100vw - 32px)); padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: var(--shadow); }
.exchange-rates-popover > small { display: block; margin: 3px 0 10px; color: var(--muted); font-size: 10px; }
.exchange-rates-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.exchange-rate-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; }
.exchange-rate-row strong, .exchange-rate-row span { font-size: 11px; }
.exchange-rate-row small { font-size: 9px; font-weight: 800; }
.exchange-rate-empty { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.exchange-rate-row.direction-up small { color: #28734f; }
.exchange-rate-row.direction-down small { color: #a03c31; }
.exchange-rate-row.direction-flat small { color: var(--muted); }
.user-chip > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--forest); background: var(--lime); font-weight: 900; }
.user-chip div { display: grid; }
.user-chip strong { font-size: 13px; }
.user-chip small { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.user-chip .user-quota { color: var(--forest-2); font-size: 10px; font-weight: 800; text-transform: none; }
.menu-button { display: none; border: 0; background: transparent; font-size: 22px; }
.topbar-brand-icon, .topbar-utility .topbar-brand-icon { display: block; width: 36px; height: 36px; object-fit: contain; }
.content-view { padding: 24px clamp(24px, 5vw, 78px) 80px; }
#results-section { padding: 20px clamp(14px, 2vw, 32px) 64px; }
#results-section .results-context,
#results-section .run-progress,
#results-section .source-report,
#results-section .results-toolbar,
#results-section .results-grid,
#results-section .empty-state { max-width: none; }
.results-context { display: flex; max-width: 1160px; align-items: center; justify-content: space-between; gap: 18px; margin: 0 auto 14px; }
.results-context-copy { min-width: 0; }
.results-context-copy > p { margin: 0; }
.access-notice { max-width: 1160px; margin: 22px auto -14px; padding: 16px 20px; border: 1px solid #d9bf73; border-radius: 10px; color: #624c16; background: #fff7da; font-size: 14px; line-height: 1.5; }
.access-notice strong { display: block; margin-bottom: 3px; }
.hero-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: 1160px; margin: 0 auto 34px; }
.hero-line h1 { margin: 0; font-size: clamp(34px, 3.8vw, 52px); font-weight: 720; line-height: 1.08; letter-spacing: -.04em; }
.hero-line p { margin: 14px 0 0; color: var(--muted); }
.phase-badge { flex: 0 0 auto; padding: 8px 11px; border: 1px solid rgba(36,84,67,.22); border-radius: 999px; color: var(--forest-2); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.search-card { max-width: 1160px; margin: 0 auto; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.field.wide { margin-bottom: 28px; }
.search-input-wrap { position: relative; }
.search-input-wrap span { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--forest-2); font-size: 22px; }
.search-input-wrap input { min-height: 62px; padding-left: 52px; font-size: 18px; }
.form-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.form-grid-category-only { grid-template-columns: minmax(220px, 360px); }
.sources-field { margin: 32px 0 0; padding: 28px 0 0; border: 0; border-top: 1px solid var(--line); }
.sources-field legend { padding: 0; font-size: 13px; font-weight: 800; }
.source-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.source-option { position: relative; display: flex; min-height: 58px; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.source-option:has(input:checked) { border-color: var(--forest-2); background: #f1f7ee; }
.source-option input { width: 17px; min-height: auto; accent-color: var(--forest); }
.source-option div { display: grid; gap: 3px; }
.source-option strong { font-size: 13px; }
.source-option small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.source-option.disabled { opacity: .52; cursor: not-allowed; }
.form-action { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-action p { margin: 0; color: var(--muted); font-size: 12px; }

.run-progress { display: flex; max-width: 1160px; align-items: flex-start; gap: 16px; margin: 0 auto 24px; padding: 18px 20px; border: 1px solid #d9e5be; border-radius: 10px; background: #f4f8df; }
.run-progress-body { min-width: 0; flex: 1; }
.run-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.run-progress-heading > span { color: var(--forest); font-size: 12px; font-weight: 850; }
.run-progress p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.spinner { width: 28px; height: 28px; border: 3px solid rgba(24,60,47,.16); border-top-color: var(--forest); border-radius: 50%; animation: spin .8s linear infinite; }
.run-source-progress { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.run-source-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 29px; padding: 5px 9px; border: 1px solid #d7ddd8; border-radius: 999px; color: #657069; background: #f3f5f3; font-size: 10px; }
.run-source-chip strong { color: inherit; font-size: 10px; }
.run-source-chip small { color: inherit; font-size: 9px; }
.run-source-chip.status-dispatched, .run-source-chip.status-running { border-color: #abcbe7; color: #175a91; background: #eaf5ff; }
.run-source-chip.status-running::before { width: 7px; height: 7px; border: 2px solid #7db1db; border-top-color: #175a91; border-radius: 50%; animation: spin .8s linear infinite; content: ""; }
.run-source-chip.status-succeeded { border-color: #b8ddc6; color: #17653a; background: #e9f7ee; }
.run-source-chip.status-succeeded::before { content: "✓"; }
.run-source-chip.status-empty { border-color: #d7ddd8; color: #657069; background: #f3f5f3; }
.run-source-chip.status-blocked, .run-source-chip.status-failed { border-color: #efc1ba; color: #9e3427; background: #fff0ed; }
.run-source-chip.status-blocked::before, .run-source-chip.status-failed::before { content: "!"; font-weight: 900; }
.run-source-chip.status-partial { border-color: #edd69f; color: #765318; background: #fff7df; }
.run-source-chip.status-needs_user_action { border-color: #e1c772; color: #624b08; background: #fff8d7; }
.run-source-chip.status-needs_user_action::before { content: "!"; font-weight: 900; }
.run-source-action { min-height: 28px; padding: 4px 9px; border: 0; border-radius: 999px; color: #fff; background: var(--forest); cursor: pointer; font: inherit; font-weight: 850; }
.run-source-action:active { transform: scale(.97); }
.table-price-note { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.25; }
@keyframes spin { to { transform: rotate(360deg); } }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1160px; margin: 0 auto; }
.library-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(190px, 280px) auto; max-width: none; align-items: center; gap: 12px; margin: 0 auto 20px; }
.library-query-filter { position: relative; display: block; }
.library-query-filter > span { position: absolute; top: 50%; left: 15px; z-index: 1; transform: translateY(-50%); color: var(--forest-2); font-size: 20px; }
.library-query-filter input { min-height: 46px; padding-left: 45px; background: var(--paper); }
.library-toolbar select { min-height: 46px; background: var(--paper); }
.library-filter-summary { margin: 0; color: var(--muted); font-size: 12px; font-weight: 750; white-space: nowrap; }
.library-table-wrap { display: block; }
.library-grid { display: none; max-width: none; gap: 14px; }
.listing-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 12px 35px rgba(24,60,47,.07); }
.listing-photo { display: grid; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; color: #708077; background: linear-gradient(135deg, #e8ece5, #d9e0d8); }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.listing-photo .result-photo-link { display: grid; width: 100%; height: 100%; max-width: none; place-items: center; color: inherit; text-decoration: none; }
.listing-body { padding: 20px; }
.listing-source { display: inline-flex; align-items: center; gap: 7px; color: var(--forest-2); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.source-favicon { width: 16px; height: 16px; border-radius: 3px; object-fit: contain; vertical-align: middle; }
.listing-table-photo { width: 152px; min-width: 152px; padding: 10px !important; vertical-align: top !important; }
.listing-table-photo img { display: block; width: 132px; height: 88px; border-radius: 7px; object-fit: cover; background: #eef0eb; }
.listing-photo-placeholder { display: grid; width: 132px; height: 88px; place-items: center; border-radius: 7px; color: var(--muted); background: #eef0eb; font-size: 10px; }
.listing-body h3 { min-height: 48px; margin: 9px 0 13px; font-size: 19px; font-weight: 720; line-height: 1.25; letter-spacing: -.015em; }
.listing-price { margin: 0; color: var(--forest); font-size: 26px; font-weight: 850; letter-spacing: -.03em; }
.listing-original-price { margin: 3px 0 15px; color: var(--muted); font-size: 11px; }
.listing-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 18px; }
.listing-meta span { min-height: 38px; padding: 8px 9px; border-radius: 5px; color: #405047; background: #eef0eb; font-size: 14px; line-height: 1.3; }
.listing-meta strong { display: block; margin-bottom: 2px; color: #7a847d; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.listing-link { color: var(--forest); font-size: 13px; font-weight: 800; text-decoration: none; }
.listing-link:hover { text-decoration: underline; }
.empty-state { display: grid; max-width: 1160px; min-height: 260px; place-items: center; align-content: center; margin: 0 auto; border: 1px dashed #cbd1c8; border-radius: 12px; text-align: center; }
.empty-state > span { font-size: 38px; color: var(--forest-2); }
.empty-state h3 { margin: 12px 0 4px; font-size: 23px; font-weight: 720; }
.empty-state p { margin: 0; color: var(--muted); }
.notice-card { max-width: 760px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.notice-card p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 380px; margin: 0; padding: 14px 18px; border-radius: 8px; color: #fff; background: var(--forest); box-shadow: var(--shadow); z-index: 30; }
.data-table-wrap { max-width: 1160px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 12px 35px rgba(24,60,47,.06); }
.data-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.data-table th { padding: 13px 16px; color: var(--muted); background: #f3f3ed; font-size: 10px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 15px 16px; border-top: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
.data-table td strong { display: block; max-width: 320px; }
.data-table td small { display: block; margin-top: 4px; color: var(--muted); }
.table-empty { padding: 42px; color: var(--muted); text-align: center; }
.table-action { border: 0; color: var(--forest-2); background: transparent; cursor: pointer; font-weight: 800; white-space: nowrap; }
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: var(--forest); background: #e9efdf; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.requests-view { max-width: 1320px; margin: 0 auto; }
.request-summary { overflow: hidden; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.request-summary-action { flex: 0 0 auto; min-height: 40px; padding: 9px 14px; }
.request-summary-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.request-summary-metrics > * { display: grid; gap: 4px; min-height: 76px; align-content: center; padding: 12px 16px; border: 0; color: inherit; background: var(--paper); font: inherit; text-align: left; }
.request-summary-filter { cursor: pointer; }
.request-summary-filter:hover { background: #f8faF3; }
.request-summary-filter.active { box-shadow: inset 0 -3px var(--lime); background: #f6faea; }
.request-summary-filter:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--forest-2); outline-offset: -3px; }
.request-summary strong { font-size: 24px; font-weight: 780; line-height: 1; font-variant-numeric: tabular-nums; }
.request-summary span { color: var(--muted); font-size: 12px; }
.request-toolbar { display: grid; grid-template-columns: minmax(250px, 1fr) 190px 210px auto; gap: 10px; margin: 0 0 14px; }
.request-toolbar select { min-height: 46px; font-size: 13px; }
.request-filter { position: relative; display: block; }
.request-filter span { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--forest-2); font-size: 19px; pointer-events: none; }
.request-filter input { min-height: 46px; padding-left: 43px; font-size: 13px; }
.requests-table-wrap { max-width: none; overflow-x: visible; }
.requests-table { min-width: 0; table-layout: fixed; }
.requests-table th:nth-child(1) { width: 46%; }
.requests-table th:nth-child(2) { width: 16%; }
.requests-table th:nth-child(3) { width: 14%; }
.requests-table th:nth-child(4) { width: 24%; }
.requests-table th { white-space: nowrap; }
.requests-table td { min-width: 0; padding: 14px 12px; overflow-wrap: anywhere; }
.requests-table th:not(:last-child), .requests-table td:not(:last-child) { border-right: 1px solid var(--line); }
.requests-table tr:hover td { background: #fbfcf8; }
.requests-table tr.monitored td:first-child { box-shadow: inset 3px 0 var(--lime); }
.request-owner { display: block; margin-bottom: 3px; color: var(--forest); font-size: 12px; font-weight: 800; }
.schedule-readonly { cursor: default; }
.request-primary { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; }
.request-preview-link { display: grid; width: 72px; height: 56px; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: inherit; background: #edf0ea; }
.request-preview-link img { width: 100%; height: 100%; object-fit: cover; }
.request-preview-link img.fallback { padding: 9px; object-fit: contain; opacity: .68; }
.request-copy { min-width: 0; }
.request-title-link { display: block; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; }
a.request-title-link:hover { color: var(--forest-2); text-decoration: underline; text-underline-offset: 3px; }
.request-meta { display: flex; flex-wrap: wrap; gap: 5px 9px; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 750; }
.monitor-pin { color: var(--forest-2); }
.entity-action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0 0 7px; }
.entity-action-button { display: grid; width: 32px; min-width: 32px; min-height: 32px; place-items: center; padding: 0; border: 1px solid #cfd8d1; border-radius: 7px; color: var(--forest); background: #f8faf7; cursor: pointer; font: inherit; font-size: 17px; font-weight: 850; line-height: 1; transition: border-color 160ms ease-out, color 160ms ease-out, background-color 160ms ease-out, transform 120ms ease-out; }
.entity-action-button.active { border-color: var(--forest); color: #fff; background: var(--forest); }
.entity-action-button.danger { border-color: #e2c5c1; color: #9b392f; background: #fff8f7; }
.entity-action-button:active { transform: scale(.97); }
.entity-action-button:focus-visible { outline: 3px solid rgba(36,84,67,.22); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .entity-action-button:not(.active, .danger):hover { border-color: #9fb2a6; background: #eef5e9; }
  .entity-action-button.danger:hover { border-color: #bd766e; background: #fbe8e5; }
}
.entity-comment { padding: 9px 11px; border: 1px solid #eadba9; border-radius: 7px; color: #664b1a; background: #fff9e7; font-size: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.request-comment { display: -webkit-box; overflow: hidden; margin: 8px 0 0; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.schedule-button { min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); background: #fff; cursor: pointer; font-weight: 780; line-height: 1.25; text-align: left; transition: border-color 160ms ease-out, background-color 160ms ease-out, transform 120ms ease-out; }
.schedule-button.compact { width: 100%; font-size: 11px; }
.schedule-button:hover { border-color: #aebbb3; background: #f5f7f2; }
.schedule-button:active { transform: scale(.98); }
.schedule-button:focus-visible { outline: 3px solid rgba(36,84,67,.22); outline-offset: 2px; }
.request-monitoring-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 7px; }
.monitor-stop-button { min-height: 40px; padding: 8px 10px; border: 1px solid #e2c5c1; border-radius: 8px; color: #8b352c; background: #fff8f7; cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; line-height: 1.2; transition: border-color 160ms ease-out, background-color 160ms ease-out, transform 120ms ease-out; }
.monitor-stop-button:active { transform: scale(.97); }
.monitor-stop-button:disabled { cursor: wait; opacity: .55; }
.monitor-stop-button:focus-visible { outline: 3px solid rgba(139,53,44,.2); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .monitor-stop-button:not(:disabled):hover { border-color: #bd766e; background: #fbe8e5; }
}
.request-change-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.request-change-badges span { display: inline-flex; padding: 3px 6px; border-radius: 999px; font-size: 9px; font-weight: 850; line-height: 1.2; white-space: nowrap; }
.request-change-new { color: #17653a; background: #e5f5e9; }
.request-change-price { color: #765318; background: #fff0c9; }
.history-result-count { color: var(--forest); white-space: nowrap; }
.history-pagination { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; max-width: 760px; align-items: center; gap: 10px; margin: 14px auto 0; }
.history-pagination[hidden] { display: none; }
.history-page-step, .history-page-number { min-width: 40px; min-height: 40px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); background: var(--paper); cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.history-page-step:disabled { cursor: default; opacity: .42; }
.history-page-step:not(:disabled):hover, .history-page-number:hover { border-color: #aebbb3; background: #f5f7f2; }
.history-page-step:focus-visible, .history-page-number:focus-visible { outline: 3px solid rgba(36,84,67,.22); outline-offset: 2px; }
.history-page-numbers { display: flex; min-width: 0; justify-content: center; gap: 5px; }
.history-page-number { padding: 7px; }
.history-page-number[aria-current="page"] { border-color: var(--forest); color: #fff; background: var(--forest); }
.history-page-summary { color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.new-search-panel { max-width: 1160px; margin: 18px auto 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 12px 35px rgba(24,60,47,.06); }
.new-search-panel > summary { padding: 16px 20px; color: var(--forest); cursor: pointer; font-weight: 800; }
.new-search-panel[open] > summary { border-bottom: 1px solid var(--line); }
.compact-search-card { max-width: none; box-shadow: none; border: 0; border-radius: 0; }
.compact-search-card .field.wide { margin-bottom: 18px; }
.sources-picker { margin-top: 18px; }
.sources-picker > summary { color: var(--forest); cursor: pointer; font-size: 13px; font-weight: 800; }
.sources-picker .source-list { padding-top: 2px; }
.monitoring-create-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-top: 22px; }
.monitoring-create-controls label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.monitoring-create-controls input { min-height: 42px; }
.monitoring-create-controls input[type="checkbox"] { width: 17px; min-height: auto; accent-color: var(--forest); }
.monitoring-create-controls select { min-height: 42px; }
.monitoring-create-controls .monitoring-checkbox { display: flex; min-height: 42px; align-items: center; flex-direction: row; color: var(--forest); }
.query-comment { max-width: 720px; margin: 10px 0 0; color: #5d6d64; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.results-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.results-head-actions select { min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--forest); font-weight: 750; }
.result-metrics { display: grid; max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 0 auto 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.result-metric { display: grid; min-width: 0; min-height: 72px; align-content: center; gap: 5px; padding: 11px 16px; border: 0; color: var(--ink); background: var(--paper); cursor: pointer; text-align: left; transition: color 160ms ease-out, background-color 160ms ease-out, transform 160ms ease-out; }
.result-metric strong { font-size: 24px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.result-metric span { color: var(--muted); font-size: 11px; font-weight: 750; line-height: 1.25; }
.result-metric[data-result-quick-filter="new"] strong { color: var(--forest-2); }
.result-metric[data-result-quick-filter="price_changed"] strong { color: #8a5b00; }
.result-metric.active { color: #fff; background: var(--forest); }
.result-metric.active strong, .result-metric.active span { color: inherit; }
.result-metric:disabled { cursor: default; opacity: .5; }
.result-metric:focus-visible { position: relative; z-index: 1; outline: 3px solid rgba(223,243,91,.72); outline-offset: -4px; }
.result-metric:not(:disabled):active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .result-metric:not(.active, :disabled):hover { background: #f3f6ef; } }
.listing-date-note { margin: 0 0 11px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.listing-comment { margin-top: 4px; font-size: 13px; }
.result-date-stack { min-width: 150px; color: var(--muted); font-size: 11px; line-height: 1.45; white-space: pre-line; }
.table-action-primary { min-height: 34px; margin-right: 6px; padding: 0 10px; border: 1px solid rgba(36,84,67,.2); border-radius: 6px; background: #f1f7ee; }
.table-action:not(.table-action-primary) { min-width: 28px; padding: 6px; border-radius: 5px; }
.table-action:not(.table-action-primary):hover { background: #eef0eb; }
.status-queued, .status-running { color: #765318; background: #fff0c9; }
.status-succeeded { color: #245443; background: #e7f2e9; }
.status-partial { color: #75511b; background: #fff1d2; }
.status-failed, .status-blocked { color: #8b352c; background: #fbe2df; }
.status-not_started { color: #59635c; background: #edf0ec; }
.results-toolbar { display: flex; max-width: 1160px; align-items: center; justify-content: flex-end; gap: 12px; margin: 0 auto 12px; }
.table-column-filter, .table-multi-filter { position: relative; min-width: 0; text-transform: none; }
.table-column-filter summary, .table-multi-filter summary { position: relative; display: flex; min-height: 32px; align-items: center; padding: 5px 20px 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; cursor: pointer; list-style: none; text-align: left; }
.table-column-filter summary::-webkit-details-marker, .table-multi-filter summary::-webkit-details-marker { display: none; }
.table-column-filter summary::after, .table-multi-filter summary::after { content: "⌄"; position: absolute; top: 8px; right: 7px; color: var(--muted); font-size: 11px; }
.table-column-filter summary > span, .table-multi-filter summary > span { overflow: hidden; font-size: 10px; font-weight: 820; letter-spacing: normal; text-overflow: ellipsis; white-space: nowrap; }
.table-column-filter.has-selection summary, .table-multi-filter.has-selection summary { border-color: var(--forest-2); color: var(--forest); background: #eef6e9; }
.table-filter-popover, .table-multi-filter-options { position: absolute; z-index: 12; top: calc(100% + 5px); right: 0; display: grid; width: max(210px, 100%); max-height: 280px; overflow-y: auto; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 14px 34px rgba(24,60,47,.16); }
.price-filter-popover { width: 292px; overflow: visible; padding: 12px; transform-origin: top right; }
.price-filter-panel { display: grid; gap: 10px; }
.result-filter-label { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.price-range-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.result-filter-field { display: grid; gap: 5px; color: var(--ink); font-size: 11px; font-weight: 750; }
.result-filter-field > span, .compact-sort-options legend, .result-filter-group legend { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.result-filter-field input, .result-filter-field select { width: 100%; min-height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font: inherit; }
.result-filter-field input:focus-visible, .result-filter-field select:focus-visible { border-color: var(--forest-2); outline: 2px solid rgba(36,84,67,.16); outline-offset: 1px; }
.result-filter-field input[aria-invalid="true"] { border-color: #b54f43; outline-color: rgba(181,79,67,.16); }
.price-on-request-toggle { display: grid; min-height: 38px; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 9px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #f7f8f4; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: normal; text-transform: none; }
.price-on-request-toggle:has(input:checked) { border-color: rgba(36,84,67,.28); background: #eef5e9; }
.price-on-request-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--forest); }
.price-range-error { margin: 7px 0 0; color: #9b3f35; font-size: 10px; font-weight: 700; line-height: 1.35; }
.result-filter-sheet-actions .button:disabled { cursor: not-allowed; }
.compact-sort-options, .result-filter-group { display: grid; gap: 3px; margin: 9px 0 0; padding: 9px 0 0; border: 0; border-top: 1px solid var(--line); }
.compact-sort-options label { display: flex; min-height: 32px; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 650; letter-spacing: normal; text-transform: none; }
.compact-sort-options label:has(input:checked) { background: #eef5e9; }
.compact-sort-options input { accent-color: var(--forest); }
.price-sort-segment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f3f5f0; }
.price-sort-segment label { position: relative; display: grid; min-height: 34px; place-items: center; padding: 5px 8px; border-radius: 6px; cursor: pointer; transition: color 160ms ease, background-color 160ms ease, transform 140ms cubic-bezier(.23,1,.32,1); }
.price-sort-segment label:active { transform: scale(.97); }
.price-sort-segment label:has(input:checked) { color: #fff; background: var(--forest); box-shadow: 0 1px 3px rgba(24,60,47,.18); }
.price-sort-segment input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.price-sort-segment label:has(input:focus-visible) { outline: 2px solid rgba(36,84,67,.3); outline-offset: 2px; }
.result-filter-option-list { display: grid; gap: 2px; }
.table-multi-filter-option { display: grid; min-height: 36px; grid-template-columns: 17px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 7px; border-radius: 5px; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 650; letter-spacing: normal; text-transform: none; }
.table-multi-filter-option:has(input:checked) { background: #eef5e9; }
.table-multi-filter-option input { width: 16px; min-height: auto; margin: 0; accent-color: var(--forest); }
.table-multi-filter-option small { color: var(--muted); font-size: 10px; }
.table-multi-filter-option:hover { background: #f3f5f0; }
.table-header-action, .table-header-reset { min-height: 32px; padding: 5px 8px; border: 1px solid transparent; border-radius: 7px; color: var(--ink); background: transparent; cursor: pointer; font: inherit; font-weight: 820; }
.table-header-action:hover, .table-header-reset:hover, .table-header-action.active { border-color: var(--line); background: #eef5e9; }
.table-header-reset { width: 32px; padding: 0; font-size: 17px; }
.mobile-result-filter-trigger { display: none; }
.mobile-result-filter-trigger span { display: inline-grid; min-width: 20px; height: 20px; place-items: center; margin-left: 5px; border-radius: 999px; color: #fff; background: var(--forest); font-size: 10px; }
.result-filter-sheet { width: min(480px, calc(100vw - 24px)); max-height: min(760px, calc(100dvh - 24px)); padding: 0; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 70px rgba(17,41,31,.24); }
.result-filter-sheet::backdrop { background: rgba(16,34,27,.46); backdrop-filter: blur(2px); }
.result-filter-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.result-filter-sheet-head .eyebrow { margin: 0 0 3px; }
.result-filter-sheet-head h2 { margin: 0; font-size: 22px; }
.icon-button { display: grid; width: 38px; min-height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; cursor: pointer; font-size: 22px; }
.result-filter-sheet-body { display: grid; max-height: calc(100dvh - 190px); gap: 14px; overflow-y: auto; padding: 16px 18px; }
.result-filter-sheet .result-filter-group { margin: 0; padding: 0; border: 0; }
.result-filter-sheet .result-filter-option-list { max-height: 170px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.result-filter-sheet-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.results-table-wrap { max-width: none; overflow-x: auto; }
.results-table { min-width: 1280px; table-layout: fixed; }
.results-table th, .results-table td { min-width: 0; overflow-wrap: break-word; word-break: normal; }
.results-table th { padding: 10px 12px; font-size: 12px; font-weight: 800; line-height: 1.3; }
.results-table th.col-hours, .results-table th.col-supplier { font-size: 11px; overflow-wrap: normal; white-space: nowrap; }
.results-table td { padding: 12px; font-size: 14px; line-height: 1.45; }
.results-table th:not(:last-child), .results-table td:not(:last-child) { border-right: 1px solid var(--line); }
.results-table th:nth-child(2), .results-table td:nth-child(2),
.results-table th:nth-child(3), .results-table td:nth-child(3),
.results-table th:nth-child(5), .results-table td:nth-child(5),
.results-table th:nth-child(7), .results-table td:nth-child(7) { border-right-color: rgba(24,60,47,.2); }
.results-table th:nth-child(1), .results-table td:nth-child(1) { width: 102px; }
.results-table th:nth-child(2), .results-table td:nth-child(2) { width: 244px; }
.results-table th:nth-child(3), .results-table td:nth-child(3) { width: 158px; }
.results-table th:nth-child(4), .results-table td:nth-child(4) { width: 72px; text-align: center; }
.results-table th:nth-child(5), .results-table td:nth-child(5) { width: 112px; text-align: center; }
.results-table th:nth-child(6), .results-table td:nth-child(6) { width: 164px; }
.results-table th:nth-child(7), .results-table td:nth-child(7) { width: 150px; }
.results-table th:nth-child(8), .results-table td:nth-child(8) { width: 132px; }
.results-table th:nth-child(9), .results-table td:nth-child(9) { width: 138px; }
.results-table th:nth-child(4) .table-column-filter summary { justify-content: center; text-align: center; }
.results-table .col-year, .results-table .col-source { overflow-wrap: normal; white-space: nowrap; }
.results-table td.col-hours { overflow-wrap: normal; white-space: normal; }
.results-table .col-source { overflow: hidden; text-overflow: ellipsis; }
.results-table .col-supplier, .results-table .col-location { overflow-wrap: break-word; word-break: normal; }
.results-table .result-title-link, .results-table .table-price-note { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.results-table-wrap .table-filter-popover,
.results-table-wrap .table-multi-filter-options { position: fixed; top: auto; right: auto; z-index: 24; }
.results-table-wrap .table-filter-popover:not(.price-filter-popover),
.results-table-wrap .table-multi-filter-options { width: 210px; }
.results-table-wrap .price-filter-popover { width: 292px; }
.results-table .listing-table-photo { width: auto; min-width: 0; padding: 4px !important; }
.results-table .result-photo-link { width: 100%; max-width: none; }
.results-table .listing-table-photo img,
.results-table .listing-photo-placeholder { width: 100%; max-width: none; height: auto; aspect-ratio: 4 / 3; }
.result-photo-link { display: block; width: fit-content; max-width: 100%; border-radius: 7px; }
.result-photo-link:focus-visible { outline: 3px solid rgba(36,84,67,.28); outline-offset: 2px; }
.result-title-link { color: var(--ink); font-size: 13px; font-weight: 760; line-height: 1.35; text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.result-title-link:hover { color: var(--forest-2); text-decoration: underline; }
.result-title-link:focus-visible { border-radius: 3px; outline: 3px solid rgba(36,84,67,.22); outline-offset: 2px; }
.listing-body h3 .result-title-link { font-size: inherit; font-weight: inherit; line-height: inherit; }
.result-price-value { display: inline-block; padding: 4px 7px; border-radius: 6px; color: var(--forest); background: #eaf1e2; font-size: 13px; font-weight: 850; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-price-pair { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: baseline; }
.listing-price-stack { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.listing-price-stack .listing-price { margin: 0; }
.result-previous-price { color: #8b8170; font-size: .88em; font-weight: 700; text-decoration: line-through; text-decoration-thickness: 1.5px; white-space: nowrap; }
tr.listing-price-changed .result-price-value { color: #744d00; background: #f7df9c; }
.results-table .listing-table-comment-cell { width: auto !important; padding: 0 8px 8px; border-top: 0; background: var(--paper); }
.listing-table-comment { width: 100%; }
.results-table .result-date-stack { min-width: 0; font-size: 9px; line-height: 1.4; }
.results-table .entity-action-bar { margin-bottom: 6px; }
.source-report-review { justify-self: end; min-height: 36px; padding: 7px 12px; border: 1px solid #d5e0d1; border-radius: 7px; background: #f1f7ee; line-height: 1.2; }
.review-sheet { position: fixed; z-index: 30; top: 88px; right: 24px; width: min(460px, calc(100vw - 48px)); max-height: calc(100dvh - 112px); overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 44px rgba(17, 41, 31, .2); }
.review-sheet-head { display: flex; gap: 14px; align-items: start; justify-content: space-between; }
.review-sheet-head > div { min-width: 0; }
.review-sheet h2 { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 25px; font-weight: 720; line-height: 1.1; }
.review-candidate-list { display: grid; gap: 10px; margin-top: 14px; }
.review-candidate-card { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.review-candidate-card > img { width: 94px; height: 82px; object-fit: cover; border-radius: 7px; background: var(--sand); }
.listing-photo img.listing-photo-contain,
.listing-table-photo img.listing-photo-contain,
.review-candidate-card > img.listing-photo-contain { object-fit: contain; object-position: center; }
.review-candidate-card > div { min-width: 0; }
.review-candidate-card > div:first-child { grid-column: 1 / -1; }
.review-candidate-card h3 { margin: 5px 0; font-size: 15px; line-height: 1.25; }
.review-candidate-card p { margin: 0; font-size: 12px; }
.review-reason { color: #75511b; font-size: 11px; font-weight: 800; }
.review-candidate-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.review-candidate-actions .button, .review-candidate-actions .table-action { min-height: 40px; }
.review-candidate-actions .table-action { display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: center; text-decoration: none; }
.source-report { max-width: 1160px; margin: 0 auto 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.source-report summary { padding: 13px 16px; color: var(--forest); cursor: pointer; font-size: 13px; font-weight: 800; }
.source-report-body { display: grid; border-top: 1px solid var(--line); }
.source-report-row { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(0, 2fr) max-content max-content; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; }
.source-report-row:first-child { border-top: 0; }
.source-report-row > strong { min-width: 0; overflow-wrap: anywhere; }
.source-report-row > span:not(.status-pill) { color: var(--muted); }
.source-report-error { grid-column: 1 / -1; color: #8b352c; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.segmented button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.segmented button.active { color: #fff; background: var(--forest); }
.columns-menu { position: relative; }
.columns-menu summary { min-height: 42px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 750; list-style: none; }
.columns-menu > div { position: absolute; right: 0; top: 48px; display: grid; width: 190px; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); z-index: 8; }
.columns-menu label { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.columns-menu input { width: 15px; min-height: auto; accent-color: var(--forest); }
.hidden-column { display: none; }
.listing-card { position: relative; }
.listing-card.listing-new { border-color: #8fbd82; box-shadow: 0 0 0 2px rgba(91, 145, 73, .12); }
.listing-card.listing-price-changed { border-color: #d6a943; background: #fffbef; box-shadow: 0 0 0 2px rgba(214, 169, 67, .16); }
.listing-card.listing-price-changed .listing-price { color: #8a5b00; }
.listing-card.listing-unavailable { border-color: #d7b9b5; background: #fbf7f6; }
.listing-card.listing-unavailable .listing-photo,
.listing-card.listing-unavailable .listing-source,
.listing-card.listing-unavailable .listing-body h3,
.listing-card.listing-unavailable .listing-price,
.listing-card.listing-unavailable .listing-original-price,
.listing-card.listing-unavailable .listing-meta,
.listing-card.listing-unavailable .listing-date-note,
.listing-card.listing-unavailable .listing-comment { opacity: .72; }
.listing-status-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.listing-status-badge { display: inline-flex; width: fit-content; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.listing-status-new { color: #155f37; background: #dcf3e4; }
.listing-status-price-changed { color: #7b5100; background: #f8e7b5; }
.listing-status-unavailable { color: #8b352c; background: #f7dedb; }
.table-listing-badge { margin: 0 7px 5px 0; vertical-align: middle; }
tr.listing-new > td { background: #f5fbf3; }
tr.listing-price-changed > td { background: #fffbef; }
.listing-remove-unavailable { display: inline-flex; min-height: 38px; align-items: center; margin: 0 12px 10px 0; padding: 0 12px; border: 1px solid #c98f88; border-radius: 7px; color: #8b352c; background: #fff; cursor: pointer; font-weight: 800; }
.listing-remove-unavailable:hover { color: #fff; background: #8b352c; }
.listing-card .listing-action-bar { margin-bottom: 9px; }
.listing-card .entity-action-button { width: 40px; min-width: 40px; min-height: 40px; }
.listing-card .listing-comment { font-size: 18px; font-weight: 750; }
.library-grid .listing-body { padding: 14px; }
.library-grid .listing-body h3 { min-height: 40px; margin: 8px 0 10px; font-size: 16px; }
.library-grid .listing-price { font-size: 21px; }
.library-grid .listing-original-price { margin-bottom: 11px; }
.library-grid .listing-meta { gap: 5px; margin-bottom: 13px; }
.library-grid .listing-meta span { min-height: 36px; padding: 7px; font-size: 12px; }
.library-grid .listing-action-bar { gap: 6px; }
.library-grid .entity-action-button { width: 36px; min-width: 36px; min-height: 36px; }
.library-grid .listing-comment { font-size: 15px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { width: 230px; min-height: 46px; }
.inline-form .button { min-height: 46px; }
.billing-summary { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 14px; max-width: 1160px; margin: 0 auto 26px; }
.metric-card { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.metric-card small { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.metric-card strong { display: block; margin-top: 10px; font-size: 27px; font-weight: 780; font-variant-numeric: tabular-nums; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1160px; margin: 0 auto; }
.plan-card { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.plan-card.current { border-color: var(--forest-2); box-shadow: 0 0 0 2px rgba(36,84,67,.1); }
.plan-card h3 { margin: 0 0 8px; font-size: 24px; font-weight: 720; }
.plan-card p { min-height: 42px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.plan-card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.plan-card li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 12px; }
.payment-note { max-width: 1160px; margin: 22px auto 0; padding: 20px 24px; border-left: 3px solid var(--lime); background: #eef2e8; }
.payment-note p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.site-footer { padding: 20px 28px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.site-footer a { color: inherit; }
.public-page { background: var(--cream); color: var(--ink); }
.public-content { max-width: 820px; margin: 0 auto; padding: 48px 24px; }
.public-content .brand { color: var(--forest); display: inline-flex; margin-bottom: 34px; }
.public-content h1 { color: var(--forest); font-size: clamp(34px, 6vw, 52px); font-weight: 720; line-height: 1.08; letter-spacing: -.035em; }
.public-content h2 { margin-top: 34px; color: var(--forest); }
.public-content p { max-width: 720px; font-size: 17px; line-height: 1.7; }
.noncommercial-note, .results-disclaimer { color: var(--muted); font-size: 12px; line-height: 1.5; }
.results-disclaimer { margin: 18px auto; max-width: 1160px; }
.comparison-wrap { max-width: 1160px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.comparison-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th { width: 150px; color: var(--muted); background: #f8faf8; }
.comparison-table td { min-width: 190px; font-weight: 650; }
.comparison-table tr:last-child th, .comparison-table tr:last-child td { border-bottom: 0; }
.compact-select { min-width: 135px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; }
.section-title { max-width: 1160px; margin: 28px auto 12px; font-size: 20px; }
.table-action.danger { color: #a33a2b; }
.search-trash { max-width: 1160px; margin: 18px auto 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.search-trash > summary { padding: 15px 18px; color: var(--forest); cursor: pointer; font-weight: 850; }
.search-trash > summary span { display: inline-grid; min-width: 24px; min-height: 24px; margin-left: 6px; place-items: center; border-radius: 999px; background: #e8eee8; font-size: 11px; }
.search-trash > p { margin: -3px 18px 14px; }
.search-trash .data-table-wrap { margin: 0; border-width: 1px 0 0; border-radius: 0 0 12px 12px; }
.search-trash-table { min-width: 700px; }
.search-trash-table td:first-child strong, .search-trash-table td:first-child small { display: block; }
.search-trash-table td:first-child small { margin-top: 4px; color: var(--muted); }
.feedback-layout { display: grid; max-width: 1160px; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 22px; margin: 0 auto; align-items: start; }
.feedback-form { margin: 0; padding: 28px; }
.feedback-form > * + * { margin-top: 18px; }
.source-request-fields { grid-template-columns: 1fr 2fr; }
.feedback-list { display: grid; gap: 10px; }
.feedback-card { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.feedback-card header { display: flex; justify-content: space-between; gap: 12px; }
.feedback-card h3 { margin: 0; font-size: 16px; }
.feedback-card p { margin: 9px 0 0; color: var(--muted); line-height: 1.5; white-space: pre-wrap; }
.feedback-card small { color: var(--muted); }
.feedback-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: 11px; }
.feedback-admin-controls { display: grid; grid-template-columns: 160px 1fr auto; gap: 8px; margin-top: 14px; }
.feedback-admin-controls input, .feedback-admin-controls select { min-height: 40px; }
.section-title.compact { margin-top: 0; }
.admin-workspace-section { max-width: 1160px; margin: 34px auto 0; }
.admin-storage-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.admin-storage-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.admin-storage-heading h2 { margin: 3px 0 0; font-size: 20px; }
.admin-storage-heading strong { color: var(--forest); font-size: 20px; font-variant-numeric: tabular-nums; }
.admin-storage-progress { height: 10px; margin-top: 16px; overflow: hidden; border-radius: 999px; background: #e6ece7; }
.admin-storage-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--forest); transition: width .2s ease; }
.admin-storage-summary { margin: 9px 0 0; }
.admin-storage-tables { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.admin-storage-tables span { padding: 5px 8px; border-radius: 999px; background: #eef3ef; font-size: 11px; }
.admin-storage-cleanup { margin: 12px 0 0; }
.admin-users-section, .admin-users-table-wrap { max-width: 1400px; }
.admin-users-table { min-width: 1000px; table-layout: fixed; }
.admin-users-table th:nth-child(1), .admin-users-table td:nth-child(1) { width: 21%; }
.admin-users-table th:nth-child(2), .admin-users-table td:nth-child(2) { width: 9%; }
.admin-users-table th:nth-child(3), .admin-users-table td:nth-child(3) { width: 11%; }
.admin-users-table th:nth-child(4), .admin-users-table td:nth-child(4) { width: 13%; }
.admin-users-table th:nth-child(5), .admin-users-table td:nth-child(5) { width: 14%; }
.admin-users-table th:nth-child(6), .admin-users-table td:nth-child(6) { width: 15%; }
.admin-users-table th:nth-child(7), .admin-users-table td:nth-child(7) { width: 17%; }
.admin-users-table select, .admin-users-table input { width: 100%; min-width: 0; }
.admin-user-actions { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 5px; }
.admin-user-actions .table-action { width: 100%; min-width: 0; min-height: 34px; padding: 5px 6px; border: 1px solid var(--line); background: #f7faf8; line-height: 1.2; white-space: normal; }
.admin-searches-table { min-width: 1000px; }
.admin-invite-section { margin-top: 20px; }
.admin-invite-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.admin-invite-panel > summary { padding: 17px 20px; color: var(--forest); cursor: pointer; font-weight: 850; }
.admin-invite-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 4px 20px 20px; }
.admin-invite-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.admin-invite-form input, .admin-invite-form select { min-height: 42px; }
.admin-invite-form .admin-invite-note { grid-column: span 2; }
.admin-invite-form .button { align-self: end; min-height: 42px; }
.admin-invite-panel > .message { margin: -8px 20px 18px; }
.admin-invite-link { display: flex; gap: 10px; align-items: end; margin: -4px 20px 20px; }
.admin-invite-link label { display: grid; flex: 1; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.admin-invite-link input { min-width: 0; min-height: 42px; }
.admin-invite-link .button { min-height: 42px; }
.admin-user-cell { min-width: 0; overflow-wrap: anywhere; }
.admin-user-cell small, .admin-run-cell small { color: var(--muted); font-size: 11px; }
.admin-user-phone-field { display: grid; gap: 4px; margin-top: 8px; }
.admin-user-phone-field span { color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.25; }
.admin-user-phone-field input { min-height: 34px; padding: 6px 8px; font-size: 12px; }
.admin-user-activity { min-width: 175px; font-weight: 800; }
.admin-user-activity small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 500; }
.admin-user-detail-row > td { padding: 0; background: #f7faf8; }
.admin-user-detail-panel { padding: 20px; }
.admin-user-detail-metrics { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 10px; }
.admin-user-detail-metrics div { display: grid; gap: 3px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.admin-user-detail-metrics strong { color: var(--forest); font-size: 18px; }
.admin-user-detail-metrics small { color: var(--muted); font-size: 10px; }
.admin-user-detail-section { margin-top: 20px; }
.admin-user-detail-section h3 { margin: 0 0 9px; font-size: 15px; }
.admin-user-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; color: var(--muted); font-size: 12px; }
.admin-user-detail-list article { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); }
.admin-user-detail-list article a { color: var(--forest); font-weight: 800; }
.admin-user-detail-list article small { color: var(--muted); }
.admin-user-detail-list article p { margin: 3px 0 0; color: var(--muted); white-space: pre-wrap; }
.admin-access-controls { display: contents; }
.admin-access-controls select, .admin-access-controls input { min-width: 120px; min-height: 38px; padding: 0 9px; font-size: 12px; }
.admin-access-controls input[type="date"] { min-width: 140px; }
.admin-access-controls input.note { min-width: 180px; }
.admin-run-cell { display: grid; gap: 4px; min-width: 175px; }
.admin-source-status { display: grid; gap: 5px; min-width: 210px; font-size: 12px; }
.admin-source-status .error { color: var(--danger); }
.source-control-hint { max-width: 780px; margin: -4px auto 16px; }
.source-control-matrix-wrap { max-width: 1160px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.source-control-matrix { min-width: 1030px; }
.source-control-matrix th:first-child { position: sticky; left: 0; z-index: 1; min-width: 160px; background: var(--paper); }
.source-control-matrix td { min-width: 118px; height: 54px; }
.source-matrix-source { width: 100%; padding: 6px 0; border: 0; color: var(--ink); background: transparent; font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.source-matrix-source::after { content: "⌄"; display: inline-block; margin-left: 8px; color: var(--muted); transition: transform .18s ease; }
.source-matrix-source[aria-expanded="true"]::after { transform: rotate(180deg); }
.source-control-detail-row > td { height: auto; padding: 0; background: #fafcfb; }
.source-control-detail { padding: 20px; border-top: 1px solid var(--line); }
.source-access-policies { margin: 0 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.source-access-policy-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.source-access-policy { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #eef2ef; font-size: .82rem; font-weight: 700; }
.source-access-policy.healthy { background: #e4f4e9; color: #17613a; }
.source-access-policy.unhealthy { background: #fbe9e6; color: #9d3323; }
.source-access-policy.disabled { background: #f1efec; color: #6e665c; }
.source-detail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.source-detail-heading h3 { margin: 0; font-size: 18px; }
.source-category-detail-list { display: grid; gap: 18px; }
.source-category-detail { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.source-category-toggle { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(220px, 1.2fr) minmax(0, 2fr) 22px; align-items: center; width: 100%; gap: 14px; padding: 14px 16px; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.source-category-toggle:hover { background: #f7faf8; }
.source-category-toggle > strong { font-size: 17px; }
.source-category-toggle::after { content: "⌄"; color: var(--muted); font-size: 18px; transition: transform .18s ease; }
.source-category-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.source-category-status { font-size: 12px; font-weight: 750; }
.source-category-toggle small { min-width: 0; overflow: hidden; color: var(--muted); font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.source-category-details { display: grid; gap: 10px; padding: 0 16px 16px; border-top: 1px solid var(--line); }
.source-category-details[hidden] { display: none; }
.source-route-summary { display: grid; gap: 7px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.source-route-summary > .muted { margin: 0; font-size: 12px; }
.source-route-states { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.source-result-state { color: var(--muted); font-size: 12px; font-weight: 700; }
.source-route-detail { display: grid; gap: 7px; }
.source-route-url { margin: 0; overflow-wrap: anywhere; color: var(--muted); font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.source-route-actions { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.source-route-actions a, .text-button { border: 0; padding: 0; color: var(--forest); background: transparent; font: inherit; font-weight: 750; text-decoration: underline; cursor: pointer; }
.source-example-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.source-example-table { min-width: 970px; margin: 0; }
.source-example-table td { vertical-align: middle; }
.source-example-description { display: block; max-width: 260px; margin-top: 5px; color: var(--muted); font-weight: 400; line-height: 1.4; }
.source-example-empty { padding: 18px; color: var(--muted); text-align: center; }
.source-detail-propose { margin-top: 16px; }
.route-state { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.15; text-align: center; }
.route-state.narrow { color: #14633d; background: #e2f5ea; }
.route-state.broad { color: #78500a; background: #fff0c9; }
.route-state.review_required { color: #91423a; background: #ffe4df; }
.route-state.unconfigured, .route-state.disabled { color: #5c6870; background: #e8edf0; }

.profile-view { max-width: 1160px; margin: 0 auto; }
.profile-layout { display: grid; max-width: 860px; gap: 18px; margin: 0 auto; }
.profile-card { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 12px 35px rgba(24,60,47,.06); }
.profile-card h2 { margin: 4px 0 0; font-size: 27px; font-weight: 720; letter-spacing: -.02em; }
.profile-card-kicker { margin: 0; color: var(--forest-2); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.account-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); align-items: start; gap: 24px 32px; }
.account-card > :first-child { grid-column: 1 / -1; }
.account-details { display: grid; min-width: min(420px, 58%); gap: 12px; margin: 0; }
.account-details div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.account-details div:last-child { padding-bottom: 0; border-bottom: 0; }
.account-details dt { color: var(--muted); font-size: 12px; }
.account-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 750; text-align: right; }
.profile-contact-form { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f7f8f4; }
.profile-contact-form > div > .muted { margin: 5px 0 0; font-size: 12px; line-height: 1.45; }
.profile-contact-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.profile-contact-form input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font: inherit; }
.profile-contact-form input:focus-visible { border-color: var(--forest-2); outline: 2px solid rgba(36,84,67,.16); outline-offset: 1px; }
.profile-contact-form .message { min-height: 18px; margin: 0; font-size: 11px; }
.profile-contact-form .button { justify-self: start; transition: transform 140ms cubic-bezier(.23,1,.32,1); }
.profile-contact-form .button:active { transform: scale(.97); }
.telegram-card-head { display: flex; align-items: center; gap: 14px; }
.telegram-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; color: #fff; background: #2aabee; font-size: 23px; font-weight: 850; }
.telegram-status-line { display: flex; align-items: center; gap: 9px; margin-top: 24px; }
.telegram-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #929b96; box-shadow: 0 0 0 4px rgba(108,117,111,.1); }
.telegram-card[data-status="connected"] .telegram-status-dot { background: #4f925f; box-shadow: 0 0 0 4px rgba(79,146,95,.12); }
.telegram-card[data-status="reconnect_required"] .telegram-status-dot,
.telegram-card[data-status="error"] .telegram-status-dot { background: #bd6b38; box-shadow: 0 0 0 4px rgba(189,107,56,.12); }
.telegram-description { max-width: 620px; margin: 8px 0 0; font-size: 13px; line-height: 1.55; }
.telegram-preferences { display: grid; gap: 0; margin: 24px 0 0; padding: 0; border: 0; }
.telegram-preferences legend { margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.switch-row { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch-row > span { display: grid; min-width: 0; gap: 3px; }
.switch-row strong { font-size: 13px; }
.switch-row small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.switch-row input { position: relative; flex: 0 0 auto; width: 46px; min-height: 26px; margin: 0; padding: 0; appearance: none; border: 1px solid #b7c0ba; border-radius: 999px; background: #dfe3df; cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.switch-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform 160ms cubic-bezier(.23,1,.32,1); }
.switch-row input:checked { border-color: var(--forest); background: var(--forest); }
.switch-row input:checked::after { transform: translateX(20px); }
.switch-row input:disabled { cursor: wait; opacity: .55; }
.telegram-message { min-height: 18px; margin: 14px 0 0; }
.telegram-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.telegram-actions .button { min-height: 44px; }
.telegram-privacy { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.monitor-schedule-dialog { width: min(560px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 16px; color: var(--ink); background: var(--paper); box-shadow: 0 32px 90px rgba(14,34,26,.28); }
.monitor-schedule-dialog::backdrop { background: rgba(13,30,24,.48); backdrop-filter: blur(2px); }
.monitor-schedule-form { padding: 26px; }
.monitor-schedule-form > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.monitor-schedule-form .eyebrow { margin-bottom: 7px; }
.monitor-schedule-form h2 { margin: 0; font-size: 25px; line-height: 1.15; }
.monitor-schedule-form header p:last-child { margin: 6px 0 0; }
.dialog-close { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--forest); background: #fff; cursor: pointer; font-size: 25px; line-height: 1; }
.monitor-schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.monitor-schedule-grid label { display: grid; gap: 7px; color: #3a4841; font-size: 12px; font-weight: 750; }
.monitor-schedule-grid input, .monitor-schedule-grid select { min-height: 46px; }
.monitor-dialog-summary { margin: 20px 0 0; padding: 12px 14px; border-radius: 8px; color: var(--forest); background: #eef4e7; font-weight: 800; }
.monitor-queue-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.monitor-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.monitor-dialog-actions .button { min-height: 44px; }
.agropidbir-action-button { color: var(--forest); border-color: #a8c458; background: #f4f9df; font-weight: 900; }
.agropidbir-action-button:hover { border-color: var(--lime); background: #edfac2; }
.agropidbir-dialog { width: min(780px, calc(100% - 32px)); max-width: 780px; max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 0; border-radius: 20px; color: var(--ink); background: var(--paper); box-shadow: 0 34px 100px rgba(14,34,26,.32); }
.agropidbir-dialog[open] { animation: agropidbir-in 200ms cubic-bezier(.2,.8,.2,1); }
.agropidbir-dialog::backdrop { background: rgba(13,30,24,.56); backdrop-filter: blur(3px); }
.agropidbir-panel { max-height: calc(100dvh - 32px); overflow-x: hidden; overflow-y: auto; }
.agropidbir-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 26px 28px 20px; border-bottom: 1px solid var(--line); }
.agropidbir-head .eyebrow { margin: 0 0 7px; }
.agropidbir-head h2 { margin: 0; font-size: 27px; line-height: 1.15; }
.agropidbir-head p:last-child { margin: 7px 0 0; font-size: 13px; }
.agropidbir-summary { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 16px; margin: 20px 28px 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.agropidbir-summary img { width: 92px; height: 72px; object-fit: cover; border-radius: 10px; background: #edf1e8; }
.agropidbir-summary > div { display: grid; min-width: 0; gap: 5px; }
.agropidbir-summary strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.agropidbir-summary span { color: var(--muted); font-size: 12px; }
.agropidbir-route { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); align-items: center; gap: 10px; margin: 14px 28px 0; padding: 15px 17px; border-radius: 14px; background: #edf4e9; }
.agropidbir-route > div { display: grid; min-width: 0; gap: 5px; }
.agropidbir-route span { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.agropidbir-route strong { overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; }
.agropidbir-route-arrow { color: var(--forest) !important; font-size: 18px !important; text-align: center; }
.agropidbir-transport { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 28px 0; padding: 0; border: 0; }
.agropidbir-transport legend { grid-column: 1 / -1; margin-bottom: 1px; color: #3a4841; font-size: 12px; font-weight: 850; }
.agropidbir-transport label { position: relative; display: flex; min-width: 0; min-height: 70px; align-items: center; gap: 10px; padding: 12px; border: 1px solid #cdd6cf; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.agropidbir-transport label:hover { border-color: #96a99d; }
.agropidbir-transport label:active { transform: scale(.985); }
.agropidbir-transport label:has(input:checked) { border-color: var(--forest); background: #edf5e8; box-shadow: inset 0 0 0 1px var(--forest); }
.agropidbir-transport label:focus-within { outline: 3px solid rgba(198,244,46,.42); outline-offset: 2px; }
.agropidbir-transport input { width: 20px; min-height: 20px; margin: 0; padding: 0; accent-color: var(--forest); }
.agropidbir-transport label > span { display: grid; min-width: 0; gap: 3px; }
.agropidbir-transport strong { font-size: 13px; }
.agropidbir-transport small { color: var(--muted); font-size: 10px; line-height: 1.3; }
.agropidbir-missing-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 28px 0; }
.agropidbir-missing-fields label { display: grid; min-width: 0; gap: 6px; color: #3a4841; font-size: 12px; font-weight: 800; }
.agropidbir-missing-fields label[hidden] { display: none; }
.agropidbir-missing-fields input, .agropidbir-missing-fields select { width: 100%; min-height: 46px; }
.agropidbir-missing-fields small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.35; }
.agropidbir-message { min-height: 19px; margin: 12px 28px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.agropidbir-dialog[aria-busy="true"] .agropidbir-message { color: var(--forest); font-weight: 750; }
.agropidbir-result { margin: 4px 28px 0; }
.agropidbir-result[hidden] { display: none; }
.agropidbir-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 5px 18px; padding: 20px; border-radius: 16px; color: #fff; background: var(--forest); }
.agropidbir-total > span { grid-column: 1 / -1; color: #d8e7df; font-size: 12px; }
.agropidbir-total > strong { font-size: 32px; line-height: 1; }
.agropidbir-total > small { color: #d8e7df; font-size: 12px; text-align: right; }
.agropidbir-google-attribution { margin: 7px 3px 0; color: var(--muted); font-size: 10px; text-align: right; }
.agropidbir-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.agropidbir-breakdown > div { display: grid; gap: 5px; padding: 14px 16px; background: #fff; }
.agropidbir-breakdown span, .agropidbir-payments span { color: var(--muted); font-size: 11px; }
.agropidbir-breakdown strong { font-size: 17px; }
.agropidbir-payments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.agropidbir-payments > div { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.agropidbir-payments > div.selected { border-color: var(--forest); background: #edf5e8; }
.agropidbir-payments strong { font-size: 16px; }
.agropidbir-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.agropidbir-extras p { display: grid; gap: 5px; margin: 0; padding: 13px 14px; border-radius: 12px; background: #f2f4ef; font-size: 11px; }
.agropidbir-extras span { color: #3e8e46; font-size: 17px; font-weight: 900; }
.agropidbir-preview-wrap { margin: 18px 0 0; text-align: center; }
.agropidbir-preview-wrap img { display: block; width: min(100%, 480px); height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 35px rgba(24,60,47,.12); }
.agropidbir-preview-wrap img[hidden] { display: none; }
.agropidbir-preview-wrap figcaption { margin-top: 8px; color: var(--muted); font-size: 10px; }
.agropidbir-share-actions { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.agropidbir-share-actions .button { min-height: 44px; }
.agropidbir-actions { position: sticky; z-index: 2; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding: 16px 28px 20px; border-top: 1px solid var(--line); background: rgba(250,249,244,.96); backdrop-filter: blur(10px); }
.agropidbir-actions .button { min-height: 46px; }
.agropidbir-primary-action { min-width: 286px; }
@keyframes agropidbir-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.source-challenge-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 0; border-radius: 18px; color: var(--ink); background: var(--paper); box-shadow: 0 32px 90px rgba(14,34,26,.3); }
.source-challenge-dialog[open] { animation: challenge-in 200ms cubic-bezier(.2,.8,.2,1); }
.source-challenge-dialog::backdrop { background: rgba(13,30,24,.56); backdrop-filter: blur(2px); }
.source-challenge-panel { padding: 24px; }
.source-challenge-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.source-challenge-panel .eyebrow { margin: 0 0 6px; }
.source-challenge-panel h2 { margin: 0; font-size: 25px; line-height: 1.15; }
.source-challenge-panel header p:last-child { margin: 6px 0 0; }
.source-challenge-time { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 10px; color: var(--muted); font-size: 12px; }
.source-challenge-time strong { color: var(--forest); font-size: 15px; font-variant-numeric: tabular-nums; }
.source-challenge-frame-wrap { position: relative; display: grid; width: 100%; min-height: 260px; max-height: 56dvh; place-items: start center; overflow: hidden; border: 1px solid #ccd7ce; border-radius: 12px; background: #eef2ec; touch-action: manipulation; }
.source-challenge-frame-wrap > .spinner { position: absolute; }
.source-challenge-frame-wrap[aria-busy="false"] > .spinner { display: none; }
.source-challenge-frame { display: block; width: auto; min-width: 0; height: auto; max-width: 100%; max-height: 56dvh; object-fit: contain; object-position: top center; cursor: crosshair; user-select: none; -webkit-user-drag: none; }
.source-challenge-frame[hidden] { display: none; }
.source-challenge-frame[aria-disabled="true"] { pointer-events: none; opacity: .82; }
.source-challenge-message { min-height: 22px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.source-challenge-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.source-challenge-actions .button { min-height: 44px; }
@keyframes challenge-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }

@media (max-width: 980px) {
  .auth-layout { grid-template-columns: 1fr; }
  .brand-panel { min-height: 46vh; padding: 32px 8vw; }
  .brand-copy { margin: 8vh 0 4vh; }
  .brand-copy h1 { font-size: clamp(42px, 10vw, 68px); }
  .market-strip { display: none; }
  .auth-panel { padding: 54px 24px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -230px; width: 212px; transition: left 200ms cubic-bezier(.23,1,.32,1); }
  .sidebar.open { left: 0; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  .menu-button { display: block; }
  .topbar-brand-icon { display: block; }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .billing-summary, .plans-grid { grid-template-columns: 1fr; }
  .feedback-layout { grid-template-columns: 1fr; }
}

@media (min-width: 651px) and (max-width: 1280px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -230px; width: 212px; transition: left 200ms cubic-bezier(.23,1,.32,1); }
  .sidebar.open { left: 0; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  .menu-button { display: block; }
  .topbar-brand-icon { display: block; }
}

@media (min-width: 651px) and (max-width: 900px) {
  .topbar-page-heading h1 { max-width: 30vw; font-size: 20px; }
  .user-chip strong, .user-chip #user-role { display: none; }
  .user-chip .user-quota { max-width: 80px; line-height: 1.2; text-align: right; }
  .request-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .request-toolbar .request-filter { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .brand-panel { min-height: 42vh; }
  .brand-logo-auth { max-width: 220px; }
  .brand-copy > p:last-child { font-size: 15px; }
  .topbar { min-height: 64px; flex-wrap: wrap; gap: 7px 8px; padding: 9px 16px 10px; }
  .menu-button { order: 1; }
  .exchange-rates-menu { order: 2; margin-left: auto; }
  .user-chip { order: 3; }
  .topbar-page-heading { order: 4; width: 100%; gap: 8px; }
  .topbar-page-heading h1 { max-width: none; font-size: 18px; }
  .topbar-page-heading .topbar-brand-icon { width: 24px; height: 24px; }
  .user-chip { gap: 4px; margin-left: 0; }
  .user-chip > span { width: 36px; height: 36px; }
  .user-chip div { display: grid; }
  .exchange-rates-menu { min-width: 0; }
  .exchange-rates-menu summary { max-width: 88px; overflow: hidden; padding: 8px 9px; text-overflow: ellipsis; }
  .exchange-rates-popover { position: fixed; top: 72px; right: 12px; left: 12px; width: auto; max-height: calc(100dvh - 84px); overflow: auto; }
  .exchange-rates-list { grid-template-columns: 1fr; gap: 8px; }
  .exchange-rate-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .user-chip strong, .user-chip #user-role { display: none; }
  .user-chip .user-quota { max-width: 76px; line-height: 1.2; text-align: right; }
  .content-view { padding: 16px 16px 60px; }
  .hero-line { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .hero-line h1 { font-size: 39px; }
  .phase-badge { order: -1; }
  .search-card { padding: 22px 18px; }
  .form-grid, .results-grid { grid-template-columns: 1fr; }
  .library-toolbar { grid-template-columns: 1fr; }
  .library-filter-summary { justify-self: start; }
  .library-table-wrap { display: none; }
  .library-grid { display: grid; grid-template-columns: 1fr; }
  .library-grid .entity-action-button { width: 40px; min-width: 40px; min-height: 40px; }
  .sources-picker .source-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sources-picker .source-option { min-width: 0; min-height: 50px; gap: 7px; padding: 9px 8px; }
  .sources-picker .source-option div { min-width: 0; }
  .sources-picker .source-option strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .sources-picker .source-option small { font-size: 9px; }
  .form-action { align-items: stretch; flex-direction: column; }
  .form-action .button { width: 100%; }
  .request-summary-action { min-height: 38px; padding: 8px 11px; font-size: 12px; }
  .request-summary-metrics { grid-template-columns: 1fr 1fr; }
  .request-summary-metrics > * { min-height: 68px; padding: 11px 13px; }
  .request-toolbar { grid-template-columns: 1fr; }
  .request-toolbar .request-summary-action { order: -1; min-height: 44px; }
  .requests-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .requests-table, .requests-table tbody { display: block; width: 100%; }
  .requests-table thead { display: none; }
  .requests-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 8px 24px rgba(24,60,47,.06); }
  .requests-table tr.monitored { border-color: #cdd9b0; }
  .requests-table tr.monitored td:first-child { box-shadow: inset 3px 0 var(--lime); }
  .requests-table td { display: block; width: auto; padding: 11px 13px; border: 0; background: transparent; }
  .requests-table td::before { display: block; margin-bottom: 5px; color: var(--muted); content: attr(data-label); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
  .requests-table .request-primary-cell { grid-column: 1 / -1; padding-top: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
  .requests-table .request-primary-cell::before { display: none; }
  .request-primary { grid-template-columns: 82px minmax(0, 1fr); }
  .request-preview-link { width: 82px; height: 64px; }
  .request-title-link { font-size: 15px; }
  .request-comment { font-size: 12px; -webkit-line-clamp: 3; }
  .requests-table td:nth-child(2) { grid-column: 1; }
  .requests-table td:nth-child(3) { grid-column: 2; text-align: right; }
  .requests-table td:nth-child(4) { grid-column: 1 / -1; }
  .requests-table .schedule-button { min-height: 44px; max-width: 190px; }
  .requests-table .entity-action-button { width: 40px; min-width: 40px; min-height: 40px; }
  .search-trash { margin-top: 14px; }
  .search-trash .data-table-wrap { overflow: visible; }
  .search-trash-table, .search-trash-table tbody { display: block; min-width: 0; width: 100%; }
  .search-trash-table thead { display: none; }
  .search-trash-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 11px 13px; border-bottom: 1px solid var(--line); }
  .search-trash-table td { display: block; padding: 8px 0; border: 0; }
  .search-trash-table td:first-child, .search-trash-table .request-actions { grid-column: 1 / -1; }
  .search-trash-table td::before { display: block; margin-bottom: 4px; color: var(--muted); content: attr(data-label); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
  .search-trash-table .request-actions { text-align: left; }
  .request-change-badges { justify-content: flex-start; }
  .history-pagination { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .history-page-numbers { grid-column: 1 / -1; grid-row: 1; }
  .history-page-summary { grid-column: 2; grid-row: 2; text-align: center; }
  .history-page-step { grid-row: 2; }
  #history-page-prev { grid-column: 1; justify-self: start; }
  #history-page-next { grid-column: 3; justify-self: end; }
  #results-section { padding-top: 14px; }
  .results-context { align-items: stretch; flex-direction: column; margin-bottom: 12px; }
  .results-toolbar { display: flex; margin-bottom: 10px; }
  .results-toolbar .segmented, .results-toolbar .columns-menu, .results-toolbar .result-filter-reset { display: none; }
  .mobile-result-filter-trigger { display: inline-flex; min-height: 42px; align-items: center; }
  .results-head-actions { width: 100%; }
  .results-head-actions > * { flex: 1; }
  .result-metrics { margin-bottom: 14px; }
  .result-metric { min-height: 68px; padding: 10px 11px; }
  .result-metric strong { font-size: 22px; }
  .result-metric span { font-size: 10px; }
  .listing-photo { aspect-ratio: 16 / 10; }
  .listing-price { font-size: 28px; }
  .listing-meta { grid-template-columns: 1fr; }
  #results-grid .agropidbir-action-button {
    display: inline-flex;
    width: auto;
    min-width: 112px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
  }
  #results-grid .agropidbir-action-button::after {
    content: "АгроПідбір";
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
  }
  .run-source-progress { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .run-source-chip { display: flex; width: 100%; min-width: 0; min-height: 40px; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 8px; border-radius: 8px; font-size: 11px; }
  .run-source-chip strong { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .run-source-chip small { flex: 0 0 auto; margin-left: auto; font-size: 9px; text-align: right; }
  .inline-form { width: 100%; flex-direction: column; }
  .inline-form input { width: 100%; }
  .source-request-fields, .feedback-admin-controls { grid-template-columns: 1fr; }
  .admin-invite-form, .admin-user-detail-metrics, .admin-user-detail-list { grid-template-columns: 1fr; }
  .admin-invite-link { align-items: stretch; flex-direction: column; }
  .admin-storage-heading { align-items: flex-start; flex-direction: column; }
  .admin-invite-form .admin-invite-note { grid-column: auto; }
  .source-control-detail { padding: 14px; }
  .source-category-toggle { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .source-category-toggle > strong { grid-column: 1; }
  .source-category-toggle::after { grid-column: 2; grid-row: 1; }
  .source-category-status, .source-category-toggle small { grid-column: 1 / -1; }
  .source-report { width: 100%; min-width: 0; }
  .source-report-row { grid-template-columns: minmax(0, 1fr) max-content; gap: 8px 12px; align-items: start; padding: 14px; font-size: 13px; }
  .source-report-row > strong { grid-column: 1; grid-row: 1; }
  .source-report-row > .status-pill { grid-column: 2; grid-row: 1; justify-self: end; white-space: nowrap; }
  .source-report-row > span:not(.status-pill) { grid-column: 1 / -1; line-height: 1.45; overflow-wrap: anywhere; }
  .source-report-review { grid-column: 1 / -1; width: 100%; justify-self: stretch; min-height: 42px; }
  .source-report-error { grid-column: 1 / -1; overflow-wrap: anywhere; }
  .review-sheet { top: auto; right: 0; bottom: 0; left: 0; width: auto; max-height: 88dvh; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .review-sheet-head .button { flex: 0 0 auto; min-height: 44px; padding: 0 16px; }
  .review-candidate-card { grid-template-columns: 76px minmax(0, 1fr); }
  .review-candidate-card > img { width: 76px; height: 72px; }
  .review-candidate-actions { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .review-candidate-actions .button, .review-candidate-actions .table-action { width: 100%; min-width: 0; min-height: 44px; padding-right: 12px; padding-left: 12px; line-height: 1.25; white-space: normal; }
  .profile-view { width: 100%; }
  .profile-layout { width: 100%; }
  .account-card { grid-template-columns: 1fr; gap: 20px; }
  .account-card > :first-child { grid-column: auto; }
  .account-details { width: 100%; min-width: 0; }
  .account-details div { grid-template-columns: 70px minmax(0, 1fr); }
  .profile-contact-form .button { width: 100%; }
  .telegram-actions { display: grid; grid-template-columns: 1fr; }
  .telegram-actions .button { width: 100%; }
  .switch-row { min-height: 72px; }
  .monitor-schedule-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .monitor-schedule-form { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  .monitor-schedule-grid { grid-template-columns: 1fr; }
  .monitor-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .monitor-dialog-actions .button { padding: 0 12px; }
  .agropidbir-dialog { inset: auto 0 0; width: 100%; max-width: none; max-height: 94dvh; margin: 0; border-radius: 20px 20px 0 0; }
  .agropidbir-panel { max-height: 94dvh; }
  .agropidbir-head { padding: 19px 16px 16px; }
  .agropidbir-head h2 { font-size: 22px; }
  .agropidbir-head p:last-child { font-size: 11px; }
  .agropidbir-summary { grid-template-columns: 80px minmax(0, 1fr); margin: 14px 16px 0; }
  .agropidbir-summary img { width: 80px; height: 64px; }
  .agropidbir-route { grid-template-columns: 1fr; gap: 7px; margin: 10px 16px 0; }
  .agropidbir-route-arrow { display: none; }
  .agropidbir-transport { grid-template-columns: 1fr; gap: 8px; margin: 16px 16px 0; }
  .agropidbir-transport label { min-height: 58px; }
  .agropidbir-missing-fields { grid-template-columns: 1fr; margin: 12px 16px 0; }
  .agropidbir-message { margin-right: 16px; margin-left: 16px; }
  .agropidbir-result { margin-right: 16px; margin-left: 16px; }
  .agropidbir-total { grid-template-columns: 1fr; }
  .agropidbir-total > strong { font-size: 29px; }
  .agropidbir-total > small { text-align: left; }
  .agropidbir-breakdown, .agropidbir-extras { grid-template-columns: 1fr; }
  .agropidbir-payments { grid-template-columns: 1fr; }
  .agropidbir-share-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .agropidbir-share-actions .button { min-width: 0; padding-right: 10px; padding-left: 10px; }
  .agropidbir-actions { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.45fr); gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .agropidbir-primary-action { min-width: 0; padding: 0 10px; font-size: 11px; line-height: 1.25; white-space: normal; }
  .source-challenge-dialog { width: 100%; max-width: none; max-height: 94dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .source-challenge-panel { padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); }
  .source-challenge-panel h2 { font-size: 22px; }
  .source-challenge-frame-wrap { min-height: 180px; }
  .source-challenge-frame-wrap, .source-challenge-frame { max-height: 48dvh; }
  .source-challenge-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .source-challenge-actions .button { min-width: 0; padding: 0 10px; white-space: normal; }
  .run-source-chip.status-needs_user_action { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .run-source-chip.status-needs_user_action::before { display: none; }
  .run-source-chip.status-needs_user_action .run-source-action { grid-column: 1 / -1; width: 100%; min-height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .schedule-button, .monitor-stop-button, .switch-row input, .switch-row input::after { transition-duration: 0ms; }
  .source-challenge-dialog[open], .agropidbir-dialog[open] { animation: none; }
}
