:root { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #f4f7fb; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 10% 0, #eaf1ff 0, transparent 34%), #f4f7fb; }
button, input, select { font: inherit; }
button { border: 0; border-radius: 12px; padding: 11px 16px; background: #1b4fd8; color: #fff; cursor: pointer; font-weight: 700; }
button:hover { filter: brightness(.96); }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { background: #172033; }
button.ghost { background: #edf1f7; color: #344054; }
button.danger { background: #b42318; }
.icon-btn { min-width: 44px; padding-inline: 12px; background: #edf1f7; color: #172033; }
input, select { width: 100%; border: 1px solid #d7deea; border-radius: 12px; padding: 11px 12px; background: #fff; color: inherit; }
input[type="checkbox"] { width: 18px; height: 18px; }
label { display: grid; gap: 6px; color: #475467; font-size: 13px; font-weight: 700; }
.password-field { position: relative; width: 100%; }
.password-field input { padding-right: 48px; }
.password-toggle { position: absolute; top: 50%; right: 5px; width: 38px; min-width: 38px; height: 36px; padding: 0; transform: translateY(-50%); border-radius: 9px; color: #475467; background: transparent; font-size: 18px; line-height: 1; }
.password-toggle:hover { background: #edf1f7; filter: none; }
.remember-row { display: flex; align-items: center; width: fit-content; gap: 9px; cursor: pointer; }
.remember-row input { margin: 0; }
h1, h2 { margin: 0; }
h1 { font-size: clamp(26px, 4vw, 36px); }
h2 { font-size: 20px; }
p { margin: 6px 0 0; color: #667085; }
.hidden { display: none !important; }
.app { width: min(1500px, 100%); margin: 0 auto; padding: 24px; }
.card { background: rgba(255,255,255,.96); border: 1px solid #e4e9f1; border-radius: 18px; box-shadow: 0 10px 30px rgba(25,35,60,.06); }
.login-card { width: min(430px, calc(100vw - 32px)); margin: 10vh auto; padding: 30px; text-align: center; }
.login-card form { display: grid; gap: 16px; margin-top: 24px; text-align: left; }
.brand-mark { display: block; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 20px; box-shadow: 0 8px 24px rgba(15,23,42,.18); }
.error { min-height: 22px; margin-top: 14px; color: #b42318; }
.error.setup-notice { margin-top: 24px; padding: 16px 18px; border: 1px solid #f0c36a; border-radius: 14px; color: #8a4b08; background: #fff8e8; font-size: 17px; font-weight: 750; line-height: 1.45; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.eyebrow { margin-bottom: 5px; color: #1b4fd8; font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .export-excel { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.actions .export-excel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.activity-log-button { display: inline-grid; place-items: center; }
.activity-log-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-tabs { display: flex; gap: 7px; margin-bottom: 16px; padding: 7px; overflow-x: auto; }
button.dashboard-tab { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 170px; flex: 1 0 auto; color: #475467; background: transparent; }
button.dashboard-tab:hover { color: #172033; background: #edf3ff; filter: none; }
button.dashboard-tab.active { color: #fff; background: #1b4fd8; }
.tab-count { display: inline-grid; place-items: center; min-width: 25px; height: 25px; padding: 0 7px; border-radius: 999px; color: inherit; background: rgba(71,84,103,.12); font-size: 12px; }
button.dashboard-tab.active .tab-count { background: rgba(255,255,255,.2); }
.dashboard-panel { min-width: 0; }
.toolbar { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr; gap: 12px; padding: 16px; margin-bottom: 12px; }
.toolbar-field { display: grid; gap: 6px; }
.retranslator-picker { position: relative; }
.retranslator-options { position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; right: 0; display: grid; max-height: 360px; overflow-y: auto; padding: 6px; border: 1px solid #d7deea; border-radius: 13px; background: #fff; box-shadow: 0 18px 40px rgba(15,23,42,.2); }
.retranslator-options button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 10px 11px; border-radius: 9px; color: #344054; background: transparent; text-align: left; }
.retranslator-options button:hover, .retranslator-options button:focus, .retranslator-options button[aria-selected="true"] { color: #172033; background: #edf3ff; filter: none; outline: none; }
.retranslator-options button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.retranslator-options button small { flex: 0 0 auto; color: #667085; font-weight: 700; }
.retranslator-empty { padding: 18px 12px; color: #667085; text-align: center; }
.bulkbar { display: flex; align-items: center; gap: 9px; padding: 12px 16px; margin-bottom: 12px; }
.bulkbar span { margin-right: auto; color: #475467; font-weight: 700; }
.bulkbar .bulk-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 15px; border: 1px solid transparent; }
.bulkbar .bulk-action span { margin: 0; color: inherit; }
.bulkbar .bulk-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bulkbar .bulk-action-add { color: #fff; background: #1b4fd8; border-color: #1b4fd8; }
.bulkbar .bulk-action-rnis { color: #1746b0; background: #edf3ff; border-color: #bfd0f4; }
.bulkbar .bulk-action-remove { color: #b42318; background: transparent; border-color: #efc3bf; }
.bulkbar .bulk-action-remove:hover:not(:disabled) { background: #fff1f0; filter: none; }
.bulkbar .bulk-action:disabled { cursor: not-allowed; }
.operation-status { position: sticky; top: 12px; z-index: 15; width: fit-content; margin: 0 auto 12px; padding: 11px 16px; border-radius: 999px; color: #fff; background: #172033; box-shadow: 0 12px 32px rgba(15,23,42,.25); }
.operation-status::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 9px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; vertical-align: -2px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 960px; border-collapse: collapse; }
th, td { padding: 12px 13px; border-bottom: 1px solid #edf0f5; text-align: left; vertical-align: middle; }
th { position: sticky; top: 0; z-index: 2; background: #f9fbfe; color: #667085; font-size: 12px; }
tbody tr:hover td { background: #f7faff; }
.last-message-value { display: inline-flex; padding: 5px 8px; border-radius: 9px; white-space: nowrap; }
.last-message-value.is-stale { color: #b42318; background: #fff0ee; box-shadow: inset 0 0 0 1px rgba(180,35,24,.14); font-weight: 700; }
.object-name { font-weight: 800; }
.muted { color: #667085; font-size: 12px; }
.retranslator-membership-cell { text-align: center; }
.retranslator-membership-id { margin-top: 5px; color: #667085; font-size: 13px; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #edf1f7; color: #475467; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge.ok { color: #027a48; background: #ecfdf3; }
.badge.warn { color: #b54708; background: #fff6e6; }
.badge.error { color: #b42318; background: #fef3f2; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions button { padding: 7px 10px; font-size: 12px; }
.unit-actions { align-items: center; gap: 5px; flex-wrap: nowrap; }
.row-actions .unit-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 6px 8px; border: 1px solid transparent; border-radius: 9px; font-size: 11.5px; line-height: 1.15; white-space: nowrap; }
.unit-action-icon { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.row-actions .unit-action-primary { color: #fff; background: #1b4fd8; border-color: #1b4fd8; }
.row-actions .unit-action-secondary { color: #344054; background: #f7f9fc; border-color: #d7deea; }
.row-actions .unit-action-rnis { color: #1746b0; background: #edf3ff; border-color: #bfd0f4; }
.row-actions .unit-action-rnis.rnis-status-ok .unit-action-icon { color: #067647; stroke-width: 2.4; }
.row-actions .unit-action-rnis.rnis-status-error .unit-action-icon { color: #d92d20; stroke-width: 2.4; }
.row-actions .unit-action-add { color: #fff; background: #067647; border-color: #067647; }
.row-actions .unit-action-danger { color: #b42318; background: transparent; border-color: #efc3bf; }
.row-actions .unit-action-danger:hover { background: #fff1f0; filter: none; }
.empty { padding: 42px; color: #667085; text-align: center; }
.activity-log-list { display: grid; max-height: min(62vh, 680px); overflow-y: auto; margin-top: 4px; border: 1px solid #e4e9f1; border-radius: 14px; }
.activity-log-entry { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 15px 16px; border-bottom: 1px solid #edf0f5; }
.activity-log-entry:last-child { border-bottom: 0; }
.activity-log-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #027a48; background: #ecfdf3; }
.activity-log-entry.is-remove .activity-log-mark { color: #b42318; background: #fef3f2; }
.activity-log-mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.activity-log-content { min-width: 0; }
.activity-log-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.activity-log-heading strong { overflow-wrap: anywhere; }
.activity-log-action { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; color: #027a48; background: #ecfdf3; font-size: 11px; font-weight: 850; }
.activity-log-entry.is-remove .activity-log-action { color: #b42318; background: #fef3f2; }
.activity-log-meta, .activity-log-context { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 7px; color: #667085; font-size: 12px; }
.activity-log-meta code { padding: 1px 5px; border-radius: 5px; color: #475467; background: #f2f4f7; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.activity-log-context { margin-top: 5px; color: #98a2b3; }
.admin-grid { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
.form-card, .list-card, .discovery-card { padding: 18px; }
.form-card { display: grid; gap: 13px; }
.settings-flow { display: grid; gap: 16px; }
.settings-card { padding: 20px; }
.section-heading { display: flex; align-items: flex-start; gap: 13px; }
.workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.workspace-heading > div { min-width: 0; }
.section-heading-actions { display: grid; grid-template-columns: auto 1fr auto; }
.step-number { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: #1b4fd8; font-size: 15px; font-weight: 900; }
.count-pill { align-self: center; padding: 7px 11px; border-radius: 999px; color: #344054; background: #edf1f7; font-size: 12px; font-weight: 800; white-space: nowrap; }
.connection-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 14px; margin-top: 18px; align-items: start; }
.connection-list { display: grid; gap: 10px; }
.connection-card { display: grid; gap: 15px; min-height: 82px; padding: 15px 16px; border: 1px solid #e4e9f1; border-radius: 14px; background: #fbfcff; }
.connection-card strong, .connection-card small { display: block; }
.connection-card small { margin-top: 4px; color: #667085; overflow-wrap: anywhere; }
.connection-card-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.equipment-mapping-section { border-top: 1px solid #e4e9f1; }
.equipment-mapping-summary { display: flex; align-items: center; gap: 16px; padding-top: 14px; cursor: pointer; list-style: none; }
.equipment-mapping-summary::-webkit-details-marker { display: none; }
.equipment-mapping-summary::after { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(45deg); transition: transform .18s ease; }
.equipment-mapping-section[open] .equipment-mapping-summary::after { transform: rotate(225deg); }
.equipment-mapping-summary > div { min-width: 0; flex: 1; }
.equipment-mapping-summary small { max-width: 850px; }
.equipment-mapping-count { flex: 0 0 auto; color: #667085; font-size: 13px; font-weight: 800; }
.equipment-mapping-content { display: grid; gap: 11px; padding-top: 12px; }
.equipment-mapping-actions { display: flex; justify-content: flex-end; }
.equipment-mapping-table { overflow: hidden; border: 1px solid #e4e9f1; border-radius: 12px; background: #fff; }
.equipment-mapping-header, .equipment-mapping-row { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.1fr) auto; gap: 12px; align-items: center; }
.equipment-mapping-header { padding: 9px 12px; color: #667085; background: #f7f9fc; font-size: 12px; font-weight: 800; }
.equipment-mapping-row { padding: 11px 12px; border-top: 1px solid #edf0f5; }
.equipment-mapping-row:first-of-type { border-top: 0; }
.equipment-save-button { display: grid; place-items: center; width: 42px; min-width: 42px; height: 42px; padding: 0; }
.equipment-save-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.equipment-mapping-error { padding: 12px; border-radius: 10px; color: #b42318; background: #fff1f0; font-weight: 700; }
.equipment-mapping-empty { padding: 18px 12px; color: #667085; text-align: center; }
.api-cloud-settings { display: grid; gap: 16px; }
.api-cloud-form { display: grid; grid-template-columns: minmax(260px, 1.15fr) minmax(250px, .85fr) auto; gap: 12px; align-items: end; padding: 15px; border-radius: 14px; background: #f7f9fc; }
.api-cloud-form label small { color: #667085; font-weight: 500; line-height: 1.35; }
.api-cloud-summary { display: grid; gap: 12px; }
.api-cloud-empty { padding: 18px; border: 1px dashed #cbd5e1; border-radius: 13px; color: #667085; text-align: center; }
.api-cloud-metrics { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); overflow: hidden; border: 1px solid #e4e9f1; border-radius: 14px; }
.api-cloud-metrics > div { display: grid; gap: 4px; padding: 14px; border-left: 1px solid #e4e9f1; }
.api-cloud-metrics > div:first-child { border-left: 0; }
.api-cloud-metrics small, .pass-details small { display: block; color: #667085; font-size: 12px; }
.api-cloud-metrics strong { font-size: 17px; }
.api-cloud-metrics span { color: #667085; font-size: 12px; }
.api-cloud-health, .api-cloud-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.api-cloud-health .muted { margin-left: auto; }
.api-cloud-mgp { padding: 11px 13px; border-radius: 11px; color: #344054; background: #edf3ff; font-size: 13px; }
.api-cloud-manual { border: 1px solid #d7e1f0; border-radius: 14px; background: #fbfcfe; }
.api-cloud-manual summary { padding: 14px 16px; cursor: pointer; color: #344054; font-weight: 800; }
.api-cloud-manual[open] summary { border-bottom: 1px solid #e4e9f1; }
.api-cloud-manual-form { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 14px; align-items: end; padding: 14px 16px 16px; }
.api-cloud-manual-form label small { color: #667085; font-weight: 500; }
.api-cloud-manual-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.api-cloud-statistics { border: 1px solid #e4e9f1; border-radius: 14px; }
.api-cloud-statistics summary { padding: 14px 16px; cursor: pointer; font-weight: 800; }
.api-cloud-statistics[open] summary { border-bottom: 1px solid #e4e9f1; }
.api-cloud-statistics-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 12px; align-items: end; padding: 14px; }
.api-cloud-statistics-result { padding: 0 14px 14px; }
.api-cloud-report-period { margin-bottom: 8px; color: #667085; font-size: 13px; font-weight: 700; }
.api-cloud-report-table { overflow: auto; border: 1px solid #e4e9f1; border-radius: 12px; }
.api-cloud-report-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) repeat(4, minmax(100px, 1fr)); gap: 10px; min-width: 650px; padding: 10px 12px; border-top: 1px solid #edf0f5; }
.api-cloud-report-row:first-child { border-top: 0; }
.api-cloud-report-row.header { color: #667085; background: #f7f9fc; font-size: 12px; font-weight: 800; }
.api-cloud-local { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 11px; border-radius: 11px; background: #f7f9fc; }
.api-cloud-local strong { width: 100%; }
.api-cloud-local span { color: #475467; font-size: 13px; }
.pass-list { display: grid; gap: 9px; }
.pass-card { padding: 13px; border: 1px solid #e4e9f1; border-radius: 13px; }
.pass-card header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.pass-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pass-details span { display: grid; gap: 3px; }
.result-empty { display: grid; gap: 5px; padding: 20px; border-radius: 13px; background: #f7f9fc; text-align: center; }
.result-empty span { color: #667085; }
.api-cloud-quota { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; padding: 9px 14px; border-color: #dbe2ec; border-radius: 13px; background: rgba(255,255,255,.62); box-shadow: none; }
.api-cloud-quota-copy { display: flex; min-width: 0; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.api-cloud-quota-copy strong { color: #344054; font-size: 13px; }
.api-cloud-quota-copy small { color: #667085; font-size: 12px; }
.api-cloud-quota-state { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; color: #52606d; font-size: 11px; font-weight: 750; white-space: nowrap; }
.api-cloud-quota-state i { width: 7px; height: 7px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 3px rgba(18,183,106,.1); }
.api-cloud-quota-state.is-off i { background: #d92d20; box-shadow: 0 0 0 3px rgba(217,45,32,.09); }
.api-cloud-quota.is-blocked { border-color: #ead5d4; background: rgba(255,248,247,.72); }
.client-quota-cell { min-width: 175px; }
.client-quota-cell .badge { margin-bottom: 5px; }
.client-quota-value { font-weight: 850; }
.client-quota-heading { display: flex; align-items: center; gap: 7px; }
.client-quota-edit { display: inline-grid; place-items: center; width: 28px; min-width: 28px; height: 28px; padding: 0; border: 1px solid #d7deea; border-radius: 8px; color: #475467; background: transparent; }
.client-quota-edit:hover { color: #1b4fd8; background: #edf3ff; filter: none; }
.client-quota-edit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge.paid { color: #7047a8; background: #f1eafe; }
.rnis-public-result { display: grid; gap: 4px; max-width: 720px; margin: 0 auto; padding: 8px 0; }
.rnis-public-status { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 15px; align-items: center; padding: 18px 8px; }
.rnis-public-status + .rnis-public-status { border-top: 1px solid #e8ecf3; }
.rnis-public-status > div { display: grid; gap: 5px; text-align: center; }
.rnis-public-status > strong { text-align: center; }
.rnis-public-status strong { font-size: clamp(18px, 2.4vw, 25px); line-height: 1.25; }
.rnis-public-status small { color: #667085; font-size: clamp(14px, 1.8vw, 18px); }
.rnis-public-protocol { display: block; font-weight: 500; }
.rnis-public-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: #12b76a; font-size: 23px; font-weight: 900; }
.rnis-public-status.is-error .rnis-public-icon { background: #d92d20; }
.create-panel { border: 1px solid #dfe6f0; border-radius: 14px; background: #fbfcff; }
.create-panel summary { padding: 15px 16px; color: #344054; cursor: pointer; font-weight: 800; }
.create-panel[open] summary { border-bottom: 1px solid #e4e9f1; }
.compact-form { display: grid; gap: 12px; padding: 16px; }
.client-sync-bar { display: grid; grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr); gap: 12px; align-items: end; margin-top: 18px; padding: 14px; border-radius: 14px; background: #f7f9fc; }
.sync-meta { align-self: center; color: #667085; font-size: 13px; line-height: 1.4; }
.client-filter-bar { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(180px, 260px); gap: 12px; margin: 14px 0 10px; }
.retranslator-sync-bar { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto minmax(220px, 1fr); gap: 12px; align-items: end; padding: 14px; border-radius: 14px; background: #f7f9fc; }
.admin-table-wrap { max-height: 560px; overflow: auto; border: 1px solid #e4e9f1; border-radius: 14px; }
.admin-table { min-width: 980px; }
.admin-table th { top: 0; }
.admin-table td { padding-block: 11px; }
.admin-table .row-actions { flex-wrap: nowrap; }
.client-cabinet-button { flex: 0 0 38px; display: grid; place-items: center; width: 38px; height: 36px; padding: 0 !important; }
.client-cabinet-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.client-source-missing { opacity: .65; }
.stack { display: grid; gap: 9px; margin-top: 14px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #e8ecf3; border-radius: 13px; }
.list-row strong, .list-row small { display: block; }
.list-row small { margin-top: 3px; color: #667085; }
.integrator-card { display: grid; gap: 12px; padding: 14px; border: 1px solid #e8ecf3; border-radius: 14px; }
.integrator-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.integrator-card header small { display: block; margin-top: 4px; color: #667085; }
.integrator-card .actions { align-items: center; }
.integrator-password-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 9px; align-items: end; }
.discovery-card { display: grid; gap: 16px; }
.discovery-controls { display: grid; grid-template-columns: 1.2fr 1fr auto auto; gap: 10px; align-items: end; }
.candidate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.candidate { display: grid; gap: 10px; padding: 15px; border: 1px solid #dfe6f0; border-radius: 15px; background: #fbfcff; }
.candidate-head { display: flex; justify-content: space-between; gap: 10px; }
.candidate-badges { display: flex; justify-content: flex-end; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.candidate-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; color: #475467; font-size: 13px; }
.candidate.mapping-client_missing { border: 2px solid #f04438; background: #fff7f6; box-shadow: 0 0 0 4px rgba(240,68,56,.08); }
.candidate.mapping-partial { border-color: #f79009; background: #fffcf5; }
.candidate.mapping-empty { border-color: #fdb022; }
.mapping-alert { display: grid; gap: 4px; padding: 12px; border-radius: 12px; color: #912018; background: #fee4e2; }
.mapping-alert span { font-size: 13px; line-height: 1.45; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,17,31,.5); }
.modal-card { position: relative; width: min(760px, calc(100vw - 30px)); max-height: calc(100vh - 36px); overflow: auto; padding: 20px; }
.modal-card.modal-card-wide { width: min(1040px, calc(100vw - 30px)); }
.modal-card header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.confirmation-modal-card { width: min(620px, calc(100vw - 30px)); padding: 26px; }
.confirmation-message { margin-top: 16px; font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.confirmation-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.copy-grid { display: grid; gap: 8px; }
.copy-row { display: grid; grid-template-columns: minmax(170px,.8fr) 1.4fr auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid #e7ebf2; border-radius: 12px; }
.copy-row code { overflow-wrap: anywhere; }
.copy-row-value { font-size: 18px; line-height: 1.35; }
.copy-feedback-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 122px; padding: 8px 11px; border-radius: 10px; font-size: 14px; line-height: 1.2; transition: color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.copy-feedback-icon { display: grid; place-items: center; width: 17px; height: 17px; }
.copy-feedback-icon svg { grid-area: 1 / 1; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy-check-icon { display: none; }
.copy-feedback-button.is-copied { color: #027a48; background: #ecfdf3; box-shadow: inset 0 0 0 1px rgba(2,122,72,.18); filter: none; }
.copy-feedback-button.is-copied .copy-icon { display: none; }
.copy-feedback-button.is-copied .copy-check-icon { display: block; }
.copy-all-button { margin-top: 14px; min-width: 162px; }
.warning-box { margin-top: 14px; padding: 12px; border-radius: 12px; color: #92400e; background: #fff7ed; }
.bulk-rnis-results { display: grid; gap: 8px; }
.bulk-rnis-result { display: grid; grid-template-columns: 32px minmax(180px, 1fr) minmax(180px, .8fr) minmax(170px, .75fr); gap: 13px; align-items: center; padding: 12px 14px; border: 1px solid #e4e9f1; border-radius: 13px; }
.bulk-rnis-result-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #fff; background: #12b76a; font-size: 18px; font-weight: 900; }
.bulk-rnis-result.is-error .bulk-rnis-result-icon { background: #d92d20; }
.bulk-rnis-result-unit, .bulk-rnis-result-time { display: grid; gap: 3px; min-width: 0; }
.bulk-rnis-result-unit strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-rnis-result small { color: #667085; font-size: 12px; }
.bulk-rnis-result-status { color: #027a48; font-weight: 800; }
.bulk-rnis-result.is-error .bulk-rnis-result-status { color: #b42318; }
html[data-theme="dark"] { color-scheme: dark; background: #0d1422; color: #e7ecf7; }
html[data-theme="dark"] body { background: radial-gradient(circle at 10% 0, #142748 0, transparent 34%), #0d1422; }
html[data-theme="dark"] .card { background: #141e30; border-color: #283650; }
html[data-theme="dark"] input, html[data-theme="dark"] select { background: #0e1727; border-color: #34435f; }
html[data-theme="dark"] p, html[data-theme="dark"] .muted, html[data-theme="dark"] label, html[data-theme="dark"] .bulkbar span { color: #a8b3c7; }
html[data-theme="dark"] .retranslator-membership-id { color: #a8b3c7; }
html[data-theme="dark"] th { background: #101a2b; color: #b8c3d7; }
html[data-theme="dark"] th, html[data-theme="dark"] td { border-color: #293750; }
html[data-theme="dark"] tbody tr:hover td, html[data-theme="dark"] .candidate { background: #19263b; }
html[data-theme="dark"] .last-message-value.is-stale { color: #fda29b; background: #3b2027; box-shadow: inset 0 0 0 1px rgba(253,162,155,.2); }
html[data-theme="dark"] .candidate, html[data-theme="dark"] .list-row, html[data-theme="dark"] .copy-row, html[data-theme="dark"] .integrator-card, html[data-theme="dark"] .connection-card, html[data-theme="dark"] .create-panel, html[data-theme="dark"] .admin-table-wrap { border-color: #30405d; }
html[data-theme="dark"] .connection-card, html[data-theme="dark"] .create-panel { background: #19263b; }
html[data-theme="dark"] .equipment-mapping-section, html[data-theme="dark"] .equipment-mapping-table, html[data-theme="dark"] .equipment-mapping-row { border-color: #30405d; }
html[data-theme="dark"] .equipment-mapping-table { background: #101a2b; }
html[data-theme="dark"] .equipment-mapping-header { color: #b8c3d7; background: #152137; }
html[data-theme="dark"] .equipment-mapping-error { color: #fecaca; background: #4a1d24; }
html[data-theme="dark"] .equipment-mapping-empty { color: #a8b3c7; }
html[data-theme="dark"] .equipment-mapping-count { color: #a8b3c7; }
html[data-theme="dark"] .api-cloud-form, html[data-theme="dark"] .api-cloud-report-row.header, html[data-theme="dark"] .api-cloud-local, html[data-theme="dark"] .result-empty { background: #101a2b; }
html[data-theme="dark"] .api-cloud-metrics, html[data-theme="dark"] .api-cloud-metrics > div, html[data-theme="dark"] .api-cloud-statistics, html[data-theme="dark"] .api-cloud-statistics[open] summary, html[data-theme="dark"] .api-cloud-report-table, html[data-theme="dark"] .api-cloud-report-row, html[data-theme="dark"] .pass-card { border-color: #30405d; }
html[data-theme="dark"] .api-cloud-empty { border-color: #44536d; color: #a8b3c7; }
html[data-theme="dark"] .api-cloud-metrics small, html[data-theme="dark"] .api-cloud-metrics span, html[data-theme="dark"] .api-cloud-form label small, html[data-theme="dark"] .api-cloud-report-period, html[data-theme="dark"] .result-empty span, html[data-theme="dark"] .rnis-public-status small, html[data-theme="dark"] .pass-details small { color: #a8b3c7; }
html[data-theme="dark"] .rnis-public-status + .rnis-public-status { border-color: #30405d; }
html[data-theme="dark"] .api-cloud-mgp { color: #d6deec; background: #253149; }
html[data-theme="dark"] .api-cloud-local span { color: #c6d0e1; }
html[data-theme="dark"] .api-cloud-manual { border-color: #30405d; background: #101a2b; }
html[data-theme="dark"] .api-cloud-manual[open] summary { border-color: #30405d; }
html[data-theme="dark"] .api-cloud-manual summary { color: #d6deec; }
html[data-theme="dark"] .api-cloud-manual-form label small { color: #a8b3c7; }
html[data-theme="dark"] .api-cloud-quota { border-color: #2d3b55; background: rgba(18,29,47,.72); }
html[data-theme="dark"] .api-cloud-quota.is-blocked { border-color: #56353c; background: rgba(42,25,31,.72); }
html[data-theme="dark"] .api-cloud-quota-copy strong { color: #d6deec; }
html[data-theme="dark"] .api-cloud-quota-copy small, html[data-theme="dark"] .api-cloud-quota-state { color: #8f9bb0; }
html[data-theme="dark"] .client-quota-edit { color: #b8c3d7; border-color: #3b4b67; }
html[data-theme="dark"] .client-quota-edit:hover { color: #fff; background: #253149; }
html[data-theme="dark"] .badge.paid { color: #dfc8ff; background: #3e2859; }
html[data-theme="dark"] .row-actions .unit-action-secondary { color: #d6deec; background: #18243a; border-color: #3b4b67; }
html[data-theme="dark"] .row-actions .unit-action-rnis { color: #b9ceff; background: #17294a; border-color: #31558e; }
html[data-theme="dark"] .row-actions .unit-action-rnis.rnis-status-ok .unit-action-icon { color: #6ce9a6; }
html[data-theme="dark"] .row-actions .unit-action-rnis.rnis-status-error .unit-action-icon { color: #fda29b; }
html[data-theme="dark"] .row-actions .unit-action-danger { color: #fda29b; background: transparent; border-color: #6f3a3e; }
html[data-theme="dark"] .row-actions .unit-action-danger:hover { background: #351b20; }
html[data-theme="dark"] .bulkbar .bulk-action-remove { color: #fda29b; background: transparent; border-color: #6f3a3e; }
html[data-theme="dark"] .bulkbar .bulk-action-rnis { color: #b9ceff; background: #17294a; border-color: #31558e; }
html[data-theme="dark"] .bulkbar .bulk-action-remove:hover:not(:disabled) { background: #351b20; }
html[data-theme="dark"] .bulk-rnis-result { border-color: #30405d; }
html[data-theme="dark"] .bulk-rnis-result small { color: #a8b3c7; }
html[data-theme="dark"] .bulk-rnis-result-status { color: #6ce9a6; }
html[data-theme="dark"] .bulk-rnis-result.is-error .bulk-rnis-result-status { color: #fda29b; }
html[data-theme="dark"] .retranslator-options { border-color: #34435f; background: #101a2b; }
html[data-theme="dark"] .retranslator-options button { color: #d6deec; }
html[data-theme="dark"] .retranslator-options button:hover, html[data-theme="dark"] .retranslator-options button:focus, html[data-theme="dark"] .retranslator-options button[aria-selected="true"] { color: #fff; background: #253149; }
html[data-theme="dark"] .retranslator-options button small, html[data-theme="dark"] .retranslator-empty { color: #a8b3c7; }
html[data-theme="dark"] .candidate.mapping-client_missing { border-color: #f97066; background: #351b20; box-shadow: 0 0 0 4px rgba(249,112,102,.1); }
html[data-theme="dark"] .candidate.mapping-partial { border-color: #f79009; background: #30261c; }
html[data-theme="dark"] .mapping-alert { color: #fecaca; background: #4a1d24; }
html[data-theme="dark"] .client-sync-bar, html[data-theme="dark"] .retranslator-sync-bar { background: #101a2b; }
html[data-theme="dark"] .count-pill { color: #d6deec; background: #253149; }
html[data-theme="dark"] .create-panel summary { color: #d6deec; border-color: #30405d; }
html[data-theme="dark"] .connection-card small, html[data-theme="dark"] .sync-meta { color: #a8b3c7; }
html[data-theme="dark"] button.ghost, html[data-theme="dark"] .icon-btn { background: #253149; color: #e7ecf7; }
html[data-theme="dark"] .copy-feedback-button.is-copied { color: #6ce9a6; background: #12382b; box-shadow: inset 0 0 0 1px rgba(108,233,166,.24); }
html[data-theme="dark"] .activity-log-list, html[data-theme="dark"] .activity-log-entry { border-color: #30405d; }
html[data-theme="dark"] .activity-log-meta { color: #a8b3c7; }
html[data-theme="dark"] .activity-log-context { color: #8f9bb0; }
html[data-theme="dark"] .activity-log-meta code { color: #d6deec; background: #253149; }
html[data-theme="dark"] .activity-log-mark, html[data-theme="dark"] .activity-log-action { color: #6ce9a6; background: #12382b; }
html[data-theme="dark"] .activity-log-entry.is-remove .activity-log-mark, html[data-theme="dark"] .activity-log-entry.is-remove .activity-log-action { color: #fda29b; background: #351b20; }
html[data-theme="dark"] .password-toggle { color: #c6d0e1; }
html[data-theme="dark"] .password-toggle:hover { background: #253149; }
html[data-theme="dark"] .error.setup-notice { border-color: #8b6429; color: #ffd18a; background: #2b251b; }
html[data-theme="dark"] button.dashboard-tab { color: #b8c3d7; }
html[data-theme="dark"] button.dashboard-tab:hover { color: #fff; background: #253149; }
html[data-theme="dark"] button.dashboard-tab.active { color: #fff; background: #1b4fd8; }
@media (max-width: 900px) {
  .app { padding: 14px; }
  .topbar, .modal-card header { display: grid; }
  .toolbar, .admin-grid, .discovery-controls, .integrator-password-row, .connection-layout, .client-sync-bar, .client-filter-bar, .retranslator-sync-bar, .api-cloud-form, .api-cloud-manual-form, .api-cloud-statistics-form, .api-cloud-metrics, .pass-details { grid-template-columns: 1fr; }
  .api-cloud-metrics > div { border-left: 0; border-top: 1px solid #e4e9f1; }
  .api-cloud-metrics > div:first-child { border-top: 0; }
  .api-cloud-quota { align-items: flex-start; flex-direction: column; }
  .connection-card-main, .equipment-mapping-header, .equipment-mapping-row { grid-template-columns: 1fr; }
  .equipment-mapping-summary { align-items: flex-start; flex-wrap: wrap; }
  .equipment-mapping-count { margin-left: 0; }
  .equipment-mapping-header { display: none; }
  .equipment-save-button { width: 100%; }
  .section-heading-actions { grid-template-columns: auto 1fr; }
  .section-heading-actions .count-pill { grid-column: 2; justify-self: start; }
  .bulkbar { align-items: stretch; flex-direction: column; }
  .bulk-rnis-result { grid-template-columns: 32px minmax(0, 1fr); }
  .bulk-rnis-result-time, .bulk-rnis-result-status { grid-column: 2; }
  .copy-row { grid-template-columns: 1fr; }
  .confirmation-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .activity-log-heading { display: grid; }
  .activity-log-action { justify-self: start; }
  .workspace-heading { display: grid; }
  .workspace-heading .count-pill { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .operation-status::before { animation-duration: 2s; } }
