:root {
    color-scheme: dark;
    font-family: "Segoe UI", system-ui, sans-serif;
    background: #19191b;
    color: #ededf0;
    --sidebar: #161618;
    --panel: #212123;
    --field: #1a1a1d;
    --button: #2a2a2e;
    --border: #36363b;
    --strong-border: #44444a;
    --muted: #aaaab3;
    --accent: #e7e7ea;
    --focus: #aab9ef;
    font-size: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.65rem; line-height: 1.25; font-weight: 670; letter-spacing: -.026em; }
h2 { font-size: 1.15rem; line-height: 1.35; font-weight: 650; }
h3 { font-size: 1rem; line-height: 1.35; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); }
.error { color: #ffc6bc; border: 1px solid #664843; background: #342728; border-radius: 7px; padding: 10px 12px; overflow-wrap: anywhere; }
.boot { width: min(420px, calc(100% - 32px)); margin: 36px auto; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 214px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 25px 13px 15px; border-right: 1px solid var(--border); background: radial-gradient(ellipse at 4% 0%, #252633 0, transparent 42%), var(--sidebar); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; letter-spacing: -.018em; }
.sidebar .brand { margin: 1px 8px 27px; align-self: flex-start; }
.brand-icon { display: block; width: 31px; height: 31px; border-radius: 8px; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; min-height: 42px; padding: 8px 10px; gap: 10px; border: 1px solid transparent; border-radius: 8px; color: #cacad0; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.nav-link:hover { background: #25252b; color: #fff; transform: translateX(2px); }
.nav-link[aria-current] { background: linear-gradient(105deg, #30313e, #24242a); border-color: #424352; color: #fff; box-shadow: inset 2px 0 #a9b5e6; }
.nav-link[aria-current] { font-weight: 650; }
.nav-link .icon { color: var(--muted); }
.icon-book::before { inset: 2px 1px; border: 1.4px solid; border-radius: 2px; }
.icon-book::after { top: 3px; bottom: 3px; left: 7px; border-left: 1.4px solid; }
.guide-intro { padding-block: 24px; border-left: 3px solid #929fcb; }
.guide-intro > .button, .guide-intro #guide-access { margin-top: 14px; }
.guide-intro #guide-access .button { margin-top: 8px; }
.guide-overview { align-items: stretch; }
.telegram-widget { min-height: 42px; margin-block: 12px; }
.sidebar-bottom { margin-top: auto; padding: 13px 8px 0; border-top: 1px solid var(--border); display: grid; gap: 4px; font-size: .9rem; overflow-wrap: anywhere; }
.sidebar-profile-link { display: grid; gap: 4px; color: inherit; text-decoration: none; border-radius: 6px; }
.sidebar-profile-link:hover, .sidebar-profile-link:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.counter { margin-left: auto; background: #3c3c46; color: #eeeef5; padding: 1px 5px; border-radius: 4px; font-size: .83rem; }
.icon-favorite { font-size: 1.3rem; line-height: .8; color: #c9b879 !important; }
.workspace { max-width: 1600px; width: 100%; min-width: 0; margin-inline: auto; padding: 0 28px 32px; }
.page-header { padding: 25px 0 17px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.page-header p { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.page-header p:empty { display: none; }
#global-error { margin-bottom: 14px; }
.panel { min-width: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); }
.panel-pad { padding: 19px 20px; }
.panel-pad > h2 + p { margin-top: 7px; }
.panel-pad > h2 + form, .panel-pad > p + form,
.panel-pad > p + .button, .panel-pad > .account-data + .button { margin-top: 14px; }
label { display: block; font-size: .95rem; font-weight: 550; min-width: 0; }
label .muted { font-weight: 400; }
input:not([type="checkbox"]), textarea, select {
    min-width: 0; width: 100%; min-height: 38px; padding: 8px 10px;
    border: 1px solid var(--strong-border); border-radius: 6px; background: var(--field); color: inherit;
}
input::placeholder, textarea::placeholder { color: #9c9ca7; }
input[type="checkbox"] { accent-color: #c8c8d2; width: 15px; height: 15px; margin: 0; }
textarea { resize: vertical; }
label > input:not([type="checkbox"]), label > textarea, label > select, label > .autocomplete { margin-top: 6px; }
.checkbox { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; line-height: 1.3; }
.checkbox input { flex: 0 0 15px; }
.button {
    display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 38px;
    padding: 7px 12px; border: 1px solid var(--strong-border); border-radius: 6px;
    background: var(--button); color: #ececf0; font-size: .95rem; font-weight: 600;
    text-align: center; white-space: nowrap; line-height: 1.15;
}
.button:hover:not(:disabled):not([aria-disabled="true"]) { background: #35353b; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #232327; }
.button.primary:hover:not(:disabled) { background: #fff; border-color: #fff; }
.button.small { min-height: 30px; padding: 4px 8px; font-size: .87rem; }
.button.text { background: transparent; border-color: transparent; }
.button:disabled, .button[aria-disabled="true"], input:disabled { opacity: .5; cursor: default; }
.row-form { display: flex; align-items: center; gap: 8px; }
.checkout-login-note { margin: 10px 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.payment-choice { min-height: 34px; padding: 6px 10px; font-size: .88rem; }
.account-payment-methods { margin-top: 12px; }
.stack { display: grid; gap: 13px; align-content: start; }
.maps-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 94px auto; align-items: end; gap: 12px; margin-top: 15px; }
.form-hint { margin-top: 9px; font-size: .9rem; line-height: 1.45; }
.examples { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: .86rem; }
.examples > span { margin-right: 3px; }
.autocomplete { display: block; position: relative; }
.autocomplete input { padding-right: 31px; }
.autocomplete .picker {
    position: absolute; inset: 3px 3px 3px auto; width: 29px; background: none; border: 0; border-radius: 4px;
    color: var(--muted);
}
.picker::before, .details-toggle::before {
    display: inline-block; content: ""; width: 6px; height: 6px;
    border-bottom: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); vertical-align: 2px;
}
.picker:hover { background: var(--button); }
.suggestions {
    position: absolute; z-index: 4; top: calc(100% + 4px); left: 0; right: 0; max-height: 230px; overflow: auto;
    padding: 4px; margin: 0; list-style: none; border: 1px solid var(--strong-border);
    border-radius: 6px; background: #252529; box-shadow: 0 8px 20px #10101299;
}
.suggestions li { padding: 8px 9px; border-radius: 4px; color: #e2e2e8; cursor: pointer; overflow-wrap: anywhere; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: #3b3b43; }
.run-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 16px; color: var(--muted); min-height: 36px; border: 1px solid var(--border); border-radius: 6px; padding: 8px 11px; line-height: 1.35; }
.run-status[data-status="running"], .run-status[data-status="queued"] { color: #d0d9f5; }
.run-status[data-status="partial"], .run-status[data-status="error"] { color: #ffcfbd; border-color: #674b43; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--border); }
.table-toolbar p { margin-top: 4px; font-size: .88rem; overflow-wrap: anywhere; }
.table-toolbar select { width: auto; }
.table-filters { flex-wrap: wrap; }
.table-filters input[type="search"] { width: 198px; }
.table-filters .checkbox { min-height: 36px; padding: 6px 8px; border: 1px solid var(--strong-border); border-radius: 6px; }
.table-empty { padding: 31px 17px; }
.empty-action { margin: 0 17px 15px; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 10px 9px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
th { background: #1d1d20; color: #c3c3cc; font-size: .87rem; font-weight: 600; }
td:first-child, th:first-child { padding-left: 17px; }
td:last-child, th:last-child { padding-right: 17px; }
.company-name { font-weight: 650; min-width: 125px; }
.company-row:hover { background: #252528; }
.phone, .rating, .company-action { white-space: nowrap; }
.company-action { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.company-action .button { white-space: nowrap; }
.details-toggle { width: 31px; }
.details-toggle[aria-expanded="true"]::before { transform: rotate(225deg); vertical-align: -2px; }
.original { color: #d6ddf5; font-weight: 550; text-underline-offset: 3px; }
.original:hover { text-decoration: underline; }
.badge { display: inline-block; white-space: nowrap; background: #2c2c31; border: 1px solid #45454e; border-radius: 5px; padding: 3px 6px; color: #dedee5; font-size: .85rem; }
.badge[data-kind="missing"], .badge[data-kind="error"] { background: #3b322b; border-color: #66533f; color: #f1d4b5; }
.badge[data-kind="present"], .badge[data-kind="ready"], .badge[data-kind="done"] { background: #2b332d; border-color: #455646; color: #cde1d1; }
.badge[data-kind="new"], .badge[data-kind="running"] { background: #2e3140; border-color: #4b5064; color: #d7dff9; }
.detail-row td { background: #1b1b1e; }
.draft-action { margin-top: 10px; }
.batch-details { margin: -3px 0 16px; }
.batch-details summary { padding: 10px 13px; cursor: pointer; font-weight: 600; }
.batch-details .record { border-top: 1px solid var(--border); }
dl { display: grid; grid-template-columns: minmax(60px, auto) minmax(0, 1fr); gap: 6px 12px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
dd a { display: inline-block; margin-right: 9px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 17px; }
.records > .record + .record { border-top: 1px solid var(--border); }
.record { display: flex; justify-content: space-between; align-items: center; gap: 10px 14px; padding: 12px 16px; overflow-wrap: anywhere; }
a.record:hover { background: #28282d; }
.record-main { min-width: 0; display: grid; gap: 4px; }
.record-main .muted { font-size: .88rem; }
.record-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.records.compact { margin-top: 12px; }
.records.compact .record { padding-inline: 0; align-items: flex-start; flex-wrap: wrap; }
.records.compact .table-empty { padding: 8px 0; font-size: .9rem; }
.tabs { display: flex; gap: 5px; padding: 4px; margin-bottom: 16px; width: fit-content; border: 1px solid var(--border); border-radius: 7px; background: var(--field); }
.tabs a { padding: 6px 11px; border-radius: 5px; color: var(--muted); }
.tabs a[aria-current], .tabs a:hover { color: #f1f1f3; background: var(--button); }
.tg-settings, .account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
#tg-error { margin-bottom: 13px; }
.feed-card { display: grid; align-items: start; }
.feed-card p { line-height: 1.46; }
.feed-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.feed-actions .original { margin-right: 4px; }
.subscription-state { font-size: 1.08rem; font-weight: 650; margin-top: 10px; }
.subscription-state + p { margin-top: 5px; line-height: 1.5; }
.account-data { display: flex; flex-wrap: wrap; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.account-actions { flex-wrap: wrap; margin-top: 13px; }
.record-main > .badge { justify-self: start; }
.auth-layout { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(490px, 100%); padding: 25px; }
.auth-card h1 { margin: 23px 0 17px; }
.public-offer { margin-top: 22px; padding: 17px; display: grid; gap: 10px; border: 1px solid #414357; border-radius: 8px; background: radial-gradient(ellipse at 100% 0%, #303143, transparent 53%), #1c1c20; }
.public-offer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.public-offer-heading strong { color: #fff; font-size: 1.2rem; }
.public-offer > p { line-height: 1.5; }
.public-offer .button { width: 100%; }
.checkout-status { font-size: .88rem; line-height: 1.45; }
.public-legal-footer { width: min(490px, 100%); display: grid; gap: 8px; color: var(--muted); font-size: .82rem; text-align: center; }
.public-legal-footer nav, .site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 16px; }
.public-legal-footer a, .site-footer a { text-decoration: underline; text-decoration-color: #777987; text-underline-offset: 3px; }
.public-legal-footer strong, .site-footer strong { color: #dedff4; }
.site-footer { margin-top: 38px; padding: 18px 0 8px; border-top: 1px solid var(--border); display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .86rem; }
dialog { width: min(520px, calc(100% - 26px)); border: 1px solid var(--strong-border); border-radius: 9px; padding: 20px; background: var(--panel); color: inherit; }
dialog::backdrop { background: #101013ad; }
dialog h2 + p, dialog h2 + form { margin-top: 8px; }
dialog > p + form { margin-top: 14px; }
dialog p { line-height: 1.45; }
.dialog-actions { flex-wrap: wrap; margin-top: 11px; }
.notice { margin: 0 0 14px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); background: var(--panel); }
.notice .original { margin-left: 4px; }
.monitor { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.monitor p { margin-top: 4px; }
.monitor-options { flex-wrap: wrap; }
.monitor-options select { width: auto; }
.plan-price { margin-top: 11px; }
.plan-price strong { font-size: 1.65rem; letter-spacing: -.02em; }
.plan-price + p { margin-top: 5px; line-height: 1.45; }
.icon { display: inline-block; width: 16px; height: 16px; flex: 0 0 16px; position: relative; }
.icon::before, .icon::after { content: ""; position: absolute; }
.icon-search::before { inset: 0 4px 4px 0; border: 1.4px solid; border-radius: 50%; }
.icon-search::after { width: 7px; height: 1.4px; left: 9px; top: 12px; background: currentColor; transform: rotate(46deg); }
.icon-history::before { inset: 1px; border: 1.4px solid; border-radius: 50%; }
.icon-history::after { width: 4px; height: 5px; left: 7px; top: 4px; border-left: 1.4px solid; border-bottom: 1.4px solid; }
.icon-chat::before { inset: 2px 1px 4px; border: 1.4px solid; border-radius: 3px; }
.icon-chat::after { width: 4px; height: 4px; left: 4px; top: 10px; border-left: 1.4px solid; border-bottom: 1.4px solid; transform: skewY(-35deg); }
.icon-account::before { width: 6px; height: 6px; left: 5px; top: 1px; border: 1.4px solid; border-radius: 50%; }
.icon-account::after { width: 12px; height: 6px; left: 2px; top: 9px; border: 1.4px solid; border-radius: 5px 5px 2px 2px; }
.icon-assistant { text-align: center; line-height: 16px; }
.profile-header { display: flex; align-items: center; gap: 13px; border-left: 3px solid #929fcb; }
.account-grid { align-items: stretch; }
.profile-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 9px; background: #303444; color: #dae2ff; font-size: 1.22rem; font-weight: 700; }
.profile-identity { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.profile-identity p { margin-top: 4px; }
.profile-tools { display: flex; gap: 8px 15px; flex-wrap: wrap; margin-top: 17px; }
.profile-tools a { color: #c4cdef; }
.profile-tools a:hover, .profile-run:hover { text-decoration: underline; }
.profile-connections { list-style: none; margin: 8px 0 0; padding: 0; }
.profile-connections li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.profile-connections li:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-connections p { margin-top: 3px; overflow-wrap: anywhere; }
.profile-connections .account-actions { margin-top: 0; }
.profile-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.profile-metrics a { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--field); }
.profile-metrics a:hover { border-color: #747e9c; }
.profile-metrics strong { font-size: 1.5rem; }
.profile-metrics span { color: var(--muted); }
.profile-run { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; padding: 8px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.assistant-layout { display: grid; grid-template-columns: minmax(220px, 285px) minmax(0, 1fr); gap: 14px; align-items: start; }
.assistant-layout > section:first-child label { margin-bottom: -7px; }
.assistant-layout > section:first-child h2:not(:first-child) { margin-top: 8px; }
.assistant-presets { display: grid; gap: 6px; }
.assistant-presets .button { justify-content: flex-start; text-align: left; white-space: normal; }
.assistant-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.assistant-log { min-height: 224px; max-height: 58vh; overflow: auto; padding: 14px 16px; background: #1c1c20; }
.assistant-turn { width: fit-content; max-width: min(95%, 700px); padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); overflow-wrap: anywhere; }
.assistant-turn p { margin: 5px 0 0; line-height: 1.55; white-space: pre-wrap; }
.assistant-turn .button { margin-top: 9px; }
.assistant-user { margin-left: auto; background: #2b2e3b; }
.assistant-compose { padding: 14px 16px; border-top: 1px solid var(--border); }
.assistant-feedback > p { margin: 10px 16px; }

.admin-page { min-height: 100vh; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px max(20px, calc((100vw - 1480px) / 2)); border-bottom: 1px solid var(--border); background: var(--sidebar); }
.admin-main { width: min(1480px, calc(100% - 40px)); margin: 26px auto 48px; }
.admin-login { width: min(430px, 100%); margin: 8vh auto; }
.admin-login > p { margin-top: 7px; }
.admin-login form { margin-top: 18px; }
.admin-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.admin-title-row p { margin-top: 5px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.admin-stat { min-height: 105px; display: grid; align-content: space-between; gap: 7px; padding: 15px 17px; }
.admin-stat > span { color: var(--muted); }
.admin-stat strong { font-size: 1.65rem; line-height: 1.2; }
.admin-stat small { color: var(--muted); }
.admin-note { margin: 12px 2px 20px; font-size: .9rem; line-height: 1.5; }
.admin-users { overflow: hidden; }
.admin-search { width: min(280px, 100%); }
.admin-filters { align-items: flex-end; }
.admin-filters label:first-child { width: 135px; }
.admin-filters select { margin-top: 6px; }
.admin-table-scroll { max-height: 68vh; overflow: auto; }
.admin-table { min-width: 850px; }
.admin-table th, .admin-table td { padding: 11px 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table th { position: sticky; top: 0; z-index: 1; background: #252529; color: var(--muted); font-size: .86rem; font-weight: 600; }
.admin-table td:first-child { min-width: 210px; }
.admin-table td small { display: block; max-width: 260px; margin-top: 4px; overflow-wrap: anywhere; }
.admin-account-id { font-size: .75rem; }
.admin-status { display: inline-block; padding: 4px 7px; border: 1px solid var(--strong-border); border-radius: 5px; color: var(--muted); white-space: nowrap; }
.admin-status.is-active { border-color: #456554; color: #b7e1c5; background: #203328; }
.admin-user-actions { min-width: 260px; white-space: nowrap; }
.admin-user-actions select { width: auto; min-height: 30px; margin-right: 5px; padding-block: 4px; }
.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px; }
@media (max-width: 720px) {
    .run-status { align-items: flex-start; flex-direction: column; }
    .admin-main { width: calc(100% - 24px); margin-top: 16px; }
    .admin-header { padding-inline: 12px; }
    .admin-header > .muted { display: none; }
    .admin-title-row { flex-direction: column; }
    .admin-title-row > .row-form { flex-wrap: wrap; }
    .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .admin-stat { min-height: 94px; padding: 12px; }
    .admin-stat strong { font-size: 1.4rem; }
    .admin-search { width: 100%; }
    .admin-filters { width: 100%; align-items: stretch; flex-wrap: wrap; }
    .admin-filters label:first-child, .admin-search { width: 100%; }
    .admin-table-scroll { overflow: auto; }
}

@media (max-width: 1120px) {
    .shell { grid-template-columns: 179px minmax(0, 1fr); }
    .workspace { padding-inline: 20px; }
    .table-toolbar { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 850px) {
    .shell { display: block; }
    .sidebar { height: auto; position: static; padding: 13px 15px 10px; border-right: 0; border-bottom: 1px solid var(--border); }
    .sidebar .brand { margin: 0 0 11px; }
    .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sidebar-bottom { display: none; }
    .nav-link { justify-content: center; white-space: nowrap; }
    .workspace { padding-inline: 16px; }
    .page-header { padding-top: 20px; margin-bottom: 15px; }
}
@media (max-width: 620px) {
    .maps-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .maps-fields label:not(.limit) { grid-column: 1 / -1; }
    .maps-fields button { min-width: 0; }
    .tg-settings, .account-grid, .assistant-layout { grid-template-columns: minmax(0, 1fr); }
    .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .table-filters { width: 100%; }
    .table-filters input[type="search"] { width: 100%; }
    .table-toolbar { gap: 10px; }
    .table-scroll { overflow: visible; }
    table, tbody { display: block; }
    thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .company-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; padding: 11px 13px; border-bottom: 1px solid var(--border); }
    .company-row td { display: block; padding: 0; border: 0; }
    .company-row td:first-child, .company-row td.address { grid-column: 1 / -1; }
    .company-row td:nth-child(3) { justify-self: end; }
    .detail-row, .detail-row td { display: block; }
    .record { flex-wrap: wrap; padding: 12px; }
}
@media (max-width: 440px) {
    .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-link { justify-content: flex-start; min-height: 36px; }
    .workspace { padding-inline: 12px; }
    .panel-pad, .table-toolbar { padding-inline: 13px; }
}

.favorites-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-left: 3px solid #a9b5e6; background: radial-gradient(ellipse at 96% 0%, #303143, transparent 46%), var(--panel); }
.favorites-intro h2 { margin-top: 7px; }
.favorites-intro p { max-width: 70ch; margin-top: 7px; line-height: 1.5; }
.eyebrow { color: #aeb9e9; font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.favorites-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.favorite-card { padding: 17px; display: grid; gap: 13px; background: linear-gradient(150deg, #242428, #1f1f22); }
.favorite-card-head, .favorite-card-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.favorite-card-title { display: grid; gap: 4px; min-width: 0; }
.favorite-card-title h2 { overflow-wrap: anywhere; }
.favorite-card-details { display: grid; gap: 4px; }
.favorite-card-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.favorite-card-links a { color: #d0d7fa; text-decoration: underline; text-underline-offset: 3px; }
.favorite-card-footer { align-items: center; border-top: 1px solid var(--border); padding-top: 12px; }
.favorites-empty { min-height: 230px; display: grid; align-content: center; justify-items: center; gap: 9px; text-align: center; }
.favorites-empty p { max-width: 50ch; line-height: 1.5; }
.favorite-empty-mark { color: #d0bc72; font-size: 2.5rem; }
.favorites-loading { padding: 24px; }
.favorite-toggle { min-width: 32px; min-height: 30px; padding: 2px 7px; font-size: 1.2rem; color: #d3d3dc; }
.favorite-toggle.is-favorite { color: #f1d36e; border-color: #756438; background: #302b1e; }
.quality-flag { display: inline-flex; width: fit-content; margin: 6px 5px 0 0; padding: 3px 7px; border: 1px solid #70573a; border-radius: 999px; color: #f2c891; background: #30261d; font-size: .78rem; }
.quality-flag-button { appearance: none; cursor: pointer; font: inherit; font-size: .78rem; line-height: 1.25; text-align: left; transition: background .16s ease, border-color .16s ease; }
.quality-flag-button:hover { border-color: #a47a45; background: #3a2e22; }
.quality-flag-button.is-marked { font-weight: 650; }
.quality-flag-button:disabled { opacity: .55; cursor: wait; }
.telegram-safety { margin: 12px 0; padding: 12px 14px; border: 1px solid #665339; border-radius: 7px; background: #2b261e; color: #ead9b8; }
.telegram-safety strong { font-size: .92rem; }
.telegram-safety p { margin-top: 5px; color: #c9bda5; font-size: .88rem; line-height: 1.55; }
.guide-overview > section { min-height: 138px; position: relative; overflow: hidden; transition: border-color .16s ease, transform .16s ease; }
.guide-overview > section:hover { border-color: #5b5d73; transform: translateY(-2px); }
@media (max-width: 900px) { .favorites-grid { grid-template-columns: minmax(0, 1fr); } .favorites-intro { align-items: flex-start; flex-direction: column; } }
