:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #111827; background: #f5f7fa; }
* { box-sizing: border-box; }
body { margin: 0; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 240px; padding: 24px 16px; overflow-y: auto; background: #111827; color: white; }
.logo { margin-bottom: 30px; font-size: 23px; font-weight: 700; }
.content { margin-left: 240px; padding: 30px; }
.user-header { display: flex; justify-content: space-between; }
.user-header details { position: relative; }
.user-header summary { padding: 7px 10px; cursor: pointer; color: #374151; }
.user-header nav { position: absolute; z-index: 10; right: 0; display: grid; min-width: 170px; padding: 8px; border: 1px solid #e5e7eb; border-radius: 10px; background: white; box-shadow: 0 8px 24px rgb(0 0 0 / 12%); }
.user-header nav a, .user-header nav button { width: 100%; padding: 9px 10px; border-radius: 7px; background: transparent; color: #111827; text-align: left; text-decoration: none; }
.user-header nav a:hover, .user-header nav button:hover { background: #f3f4f6; }
.page-title { margin: 0 0 25px; font-size: 28px; }
.page-heading, .dashboard-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.page-heading .page-title, .dashboard-heading .page-title { margin-bottom: 0; }
.company-subtitle { margin: 6px 0 0; color: #6b7280; font-size: 18px; }
.company-warning { padding: 12px 15px; border-radius: 9px; background: #fef3c7; color: #92400e; font-weight: 600; text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card, .panel { border-radius: 14px; background: white; box-shadow: 0 2px 8px rgb(0 0 0 / 6%); }
.card { padding: 22px; color: inherit; text-decoration: none; }
.card:hover { box-shadow: 0 5px 18px rgb(0 0 0 / 10%); }
.card-title { margin-bottom: 8px; color: #6b7280; }
.card-value { font-size: 30px; font-weight: 700; }
.panel { margin-bottom: 24px; padding: 22px; }
.panel.narrow { max-width: 900px; }
h2 { margin: 0 0 18px; font-size: 19px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
label { display: grid; gap: 6px; color: #374151; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 8px; background: white; color: #111827; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
textarea { resize: vertical; }
.checkbox { display: flex; align-items: center; gap: 8px; margin: 18px 0; }
.checkbox input { width: auto; }
button, .btn-secondary { display: inline-block; cursor: pointer; font: inherit; text-decoration: none; white-space: nowrap; }
.btn-primary { display: inline-block; text-decoration: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; }
th { color: #6b7280; font-size: 13px; }
.actions { display: flex; align-items: center; gap: 7px; }
.actions form { margin: 0; }
.status { font-weight: 600; }
.status.active { color: #15803d; }
.status.inactive { color: #6b7280; }
.empty { padding: 28px; color: #6b7280; text-align: center; }
.alert { margin-bottom: 20px; padding: 13px 16px; border-radius: 9px; }
.alert.success { background: #dcfce7; color: #166534; }
.alert.error { background: #fee2e2; color: #991b1b; }
.company-empty { padding: 48px 24px; text-align: center; }
.company-empty p { margin: -5px auto 24px; max-width: 560px; color: #6b7280; }
.empty-icon { margin-bottom: 12px; font-size: 42px; }
.company-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.details-grid div { min-width: 0; }
.details-grid dt { margin-bottom: 4px; color: #6b7280; font-size: 13px; }
.details-grid dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.span-2 { grid-column: span 2; }
.form-hint { margin: -4px 0 0; color: #6b7280; font-size: 13px; }
.form-actions { display: flex; gap: 10px; margin-bottom: 30px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.optional { color: #9ca3af; font-weight: 400; }
.route-summary { margin: -3px 0 0; color: #2563eb; font-weight: 600; }
.form-warning { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fef3c7; color: #92400e; }
.transport-preview { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 13px; border-radius: 9px; background: #f3f4f6; color: #4b5563; font-size: 13px; }
.place-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.place-fieldset .form-grid, .party-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.party-grid { display: grid; gap: 14px; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px 25px; }
.checkbox.prominent { padding: 13px; border-radius: 9px; background: #eff6ff; color: #1e40af; font-size: 15px; }
.summary-panel { border: 1px solid #bfdbfe; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.summary-grid > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e5e7eb; }
.summary-grid span { color: #6b7280; }
.summary-grid strong { text-align: right; overflow-wrap: anywhere; }
.summary-error strong { color: #b91c1c; }
.declaration-box { margin-top: 22px; padding: 16px; border-radius: 10px; background: #f9fafb; }
.page-heading.compact { align-items: center; margin-bottom: 18px; }
.page-heading.compact h2 { margin: 0; }
.directory-toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-tabs a { padding: 8px 12px; border-radius: 999px; background: #f3f4f6; color: #374151; text-decoration: none; }
.filter-tabs a.active { background: #dbeafe; color: #1d4ed8; font-weight: 700; }
[hidden] { display: none !important; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #eef2f7; }
.auth-shell { width: min(100%, 460px); }
.auth-brand { margin-bottom: 20px; color: #111827; font-size: 28px; font-weight: 800; text-align: center; }
.auth-card { padding: 28px; }
.auth-card h1 { margin: 0 0 22px; }
.auth-card form { display: grid; gap: 15px; }
.auth-switch { margin: 20px 0 0; color: #6b7280; text-align: center; }
.auth-switch a { color: #2563eb; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #94a3b8; font-size: 12px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: #dbe3ee; content: ''; }
.google-auth-button { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; border: 1px solid #cbd8e7; border-radius: 8px; background: #fff; color: #1f2937; font-weight: 650; text-decoration: none; }
.google-auth-button:hover { background: #f8fafc; }
.google-auth-button b { display: grid; width: 22px; height: 22px; place-items: center; color: #2563eb; font-size: 17px; }
/* Sign in with Apple — official style per Apple's Human Interface Guidelines: solid black
   button, white logo + label, same height/shape as the equivalent Google button beside it. */
.apple-auth-button { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; padding: 10px 14px; border: 1px solid #000; border-radius: 8px; background: #000; color: #fff; font-weight: 650; text-decoration: none; }
.apple-auth-button:hover { background: #1a1a1a; }
.apple-auth-button svg { flex: 0 0 18px; }
.auth-provider-note { margin: 9px 0 0; color: #64748b; font-size: 12px; text-align: center; }
.account-provider form { margin-top: 18px; }
.provider-password-form { display: grid; max-width: 620px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.provider-password-form button { grid-column: 1 / -1; justify-self: start; }
.provider-link { width: min(100%, 300px); margin-top: 16px; }
.profile-password-card .form-grid { margin-bottom: 0; }
.profile-save-button { margin-top: 22px; }
.verify-email-card > p { margin: 0 0 4px; color: #64748b; text-align: center; }
.masked-email { display: block; margin-bottom: 20px; color: #0f2745; text-align: center; }
.verification-code { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: .35em; }
.verification-resend { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; color: #64748b; font-size: 13px; }
.verification-resend form { display: inline; }
.verification-resend button { min-height: auto; padding: 0; border: 0; background: transparent; color: #087af2; font-size: inherit; font-weight: 650; }
.cargo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
fieldset { min-width: 0; margin: 0; padding: 18px; border: 1px solid #e5e7eb; border-radius: 10px; }
legend { padding: 0 7px; font-weight: 700; }
.rmpd-status { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-draft { background: #e5e7eb; color: #4b5563; }
.status-ready { background: #dbeafe; color: #1d4ed8; }
.status-sending { background: #fef3c7; color: #92400e; }
.status-sent { background: #dcfce7; color: #15803d; }
.status-send_error { background: #fee2e2; color: #b91c1c; }
.status-unknown_result { background: #ffedd5; color: #9a3412; }
.status-completed { background: #ede9fe; color: #6d28d9; }
.status-completed_by_date { background: #f1f5f9; color: #475569; }
.submission-state, .submission-result { margin-bottom: 18px; }
.submission-state.sending { border-left: 4px solid #f59e0b; }
.submission-state.unknown { border-left: 4px solid #ea580c; }
.submission-state.failed { border-left: 4px solid #dc2626; }
.submission-preview { display: block; max-width: 720px; margin: 14px 0; }
.submission-preview img { display: block; width: 100%; max-height: 480px; object-fit: contain; object-position: left top; border: 1px solid #d1d5db; border-radius: 10px; background: #f9fafb; }
.geo-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.geo-card { min-width: 0; padding: 16px; border: 1px solid #e2e8f0; border-radius: 11px; background: #f8fafc; }
.geo-card h3 { margin: 0 0 8px; font-size: 16px; }
.geo-number { margin-bottom: 10px; overflow-wrap: anywhere; color: #475569; font-family: ui-monospace, monospace; }
.geo-state, .geo-overall { font-weight: 700; }
.geo-state.transmitting { color: #15803d; }
.geo-state.not-transmitting { color: #b91c1c; }
.geo-state.checking, .geo-state.failed, .geo-overall.checking { color: #a16207; }
.geo-state.not-checked, .geo-overall.not-checked { color: #64748b; }
.geo-overall.finished { color: #15803d; }
.geo-overall.by-date { color: #64748b; }
.geo-monitoring-finished { margin-top: 16px; padding: 13px 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: white; }
.geo-monitoring-finished .form-hint { margin: 10px 0; }
.gps-finished-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: #effdf4; color: #15803d; font-size: 11px; font-weight: 700; white-space: nowrap; }
.geo-checked, .geo-error { margin: 9px 0; color: #64748b; font-size: 13px; }
.geo-error { color: #92400e; overflow-wrap: anywhere; }
.geo-history { margin-top: 18px; }
.geo-history summary { cursor: pointer; color: #334155; font-weight: 700; }
.geo-history .table-wrap { margin-top: 10px; }
.geo-history-list { display: grid; gap: 12px; margin-top: 12px; }
.geo-history-card { padding: 16px; border: 1px solid var(--brand-border); border-radius: 11px; background: #fff; box-shadow: 0 4px 14px rgb(6 31 68 / 5%); }
.geo-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--brand-border); }
.geo-history-head time { color: var(--rmpd-text); font-size: 14px; font-weight: 700; }
.geo-history-source { flex-shrink: 0; padding: 4px 8px; border-radius: 999px; background: #f1f5f9; color: var(--rmpd-muted); font-size: 11px; font-weight: 650; }
.geo-history-devices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 12px; }
.geo-history-device { min-width: 0; padding: 12px; border: 1px solid #e7edf5; border-radius: 9px; background: #f8fafc; }
.geo-history-device h4 { margin: 0 0 8px; color: var(--rmpd-text); font-size: 13px; }
.geo-history-status { display: flex; align-items: center; gap: 7px; color: #40536c; font-size: 13px; font-weight: 650; }
.geo-history-gps { margin-top: 6px; overflow: hidden; color: var(--rmpd-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.geo-history-confirmations { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.geo-history-confirmations .btn-secondary { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.rmpd-gps-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding: 14px; border: 1px solid #dce7f3; border-radius: var(--radius-sm); background: #f7fbff; }
.rmpd-gps-preview > div { min-width: 0; }
.rmpd-gps-preview span, .rmpd-gps-preview strong, .rmpd-gps-preview small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmpd-gps-preview span { color: var(--rmpd-muted); font-size: 11px; }
.rmpd-gps-preview strong { margin-top: 3px; font-size: 13px; }
.rmpd-gps-preview small { margin-top: 3px; color: var(--rmpd-muted); font-size: 11px; }
.rmpd-gps-preview p { grid-column: 1 / -1; margin: 0; color: #40658f; font-size: 12px; }
.geo-schedule { display: flex; align-items: end; flex-wrap: wrap; gap: 12px 22px; margin-top: 16px; padding: 13px 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: white; }
.geo-schedule label { min-width: 190px; }
.geo-schedule select { min-height: 40px; }
.geo-schedule > div { padding-bottom: 9px; color: #64748b; font-size: 13px; }
.geo-schedule > div strong { color: #334155; }
.geo-schedule form { margin: 0 0 1px auto; }
.dashboard-geo { margin-top: 22px; }
.dashboard-geo td { vertical-align: middle; }
.dashboard-geo select { min-width: 90px; padding: 8px 10px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.notification-bell { position: relative; font-size: 22px; text-decoration: none; }
.notification-bell span { position: absolute; right: -9px; top: -8px; min-width: 18px; padding: 2px 5px; border-radius: 10px; background: #dc2626; color: #fff; font-size: 11px; text-align: center; }
.telegram-settings { margin-top: 24px; }
.telegram-settings form + form { margin-top: 16px; }
.telegram-card { display: flex; flex-direction: column; }
.telegram-card .telegram-summary { margin-bottom: 14px; }
.telegram-card > .form-hint { margin: 0 0 18px; }
.telegram-card-actions { margin-top: auto; }
.telegram-card-actions form { margin: 0; }
.telegram-preferences { margin-top: 18px; border-top: 1px solid var(--rmpd-border); padding-top: 14px; }
.telegram-preferences summary { cursor: pointer; color: var(--rmpd-blue); font-weight: 650; }
.telegram-preferences form { margin-top: 14px; }
.check-row { display: flex; align-items: center; gap: 9px; margin: 10px 0; }
.check-row input { width: auto; height: auto; }
.notification-list { display: grid; gap: 12px; }
.notification-item { padding: 14px 16px; border: 1px solid #dbe3ee; border-left: 4px solid #94a3b8; border-radius: 10px; }
.notification-item.unread { background: #f8fbff; }
.notification-item.success { border-left-color: #16a34a; }
.notification-item.warning { border-left-color: #eab308; }
.notification-item.critical { border-left-color: #dc2626; }
.notification-item > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.notification-item time { color: #64748b; font-size: 13px; }
.notification-item p { white-space: pre-line; }
button:disabled { cursor: not-allowed; opacity: .55; }
.confirm-dialog { width: min(calc(100% - 32px), 420px); padding: 0; border: 0; border-radius: 14px; background: white; box-shadow: 0 24px 70px rgb(8 27 52 / 24%); }
.confirm-dialog::backdrop { background: rgb(8 27 52 / 48%); backdrop-filter: blur(2px); }
.confirm-dialog-card { padding: 24px; }
.confirm-dialog-card h2 { margin: 0 0 8px; }
.confirm-dialog-card p { margin: 0 0 22px; color: #6b7d94; }
.confirm-dialog-card .actions { justify-content: flex-end; }

/* CMR AI autofill (rmpd_form.html) */
.cmr-quick-fill { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 8px; margin-bottom: 18px; padding: 14px 18px; border: 1px solid #d9e8fc; border-radius: var(--radius-md); background: linear-gradient(135deg, #f4f9ff 0%, #eef6ff 55%, #eefcff 100%); }
.cmr-quick-fill-title { flex-basis: 100%; color: var(--rmpd-blue-dark); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.cmr-upload-btn { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid rgba(8, 122, 242, .28); border-radius: 999px; background: linear-gradient(135deg, rgba(8, 122, 242, .1), rgba(22, 216, 255, .12)); color: var(--rmpd-blue-dark); font-size: 14px; font-weight: 650; line-height: 1; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.cmr-upload-btn:hover { border-color: rgba(8, 122, 242, .45); background: linear-gradient(135deg, rgba(8, 122, 242, .16), rgba(22, 216, 255, .18)); box-shadow: 0 4px 14px rgba(8, 122, 242, .14); }
.cmr-upload-btn:active { transform: translateY(1px); box-shadow: none; }
.cmr-upload-btn:disabled { cursor: not-allowed; opacity: .75; box-shadow: none; transform: none; }
.cmr-upload-btn-icon { font-size: 15px; line-height: 1; }
.cmr-upload-spinner { width: 14px; height: 14px; border: 2px solid rgba(8, 122, 242, .25); border-top-color: var(--rmpd-blue); border-radius: 50%; animation: cmr-spin .7s linear infinite; }
@keyframes cmr-spin { to { transform: rotate(360deg); } }
.cmr-upload-status { color: var(--rmpd-muted); font-size: 12.5px; }
.cmr-upload-status.error { color: #b91c1c; font-weight: 600; }
@media (max-width: 640px) {
  .cmr-quick-fill { flex-direction: column; align-items: stretch; }
  .cmr-upload-btn { justify-content: center; width: 100%; }
  .cmr-upload-status { text-align: center; }
}
.cmr-review-dialog { width: min(calc(100% - 32px), 560px); }
.cmr-review-grid { display: grid; gap: 14px; margin-bottom: 18px; max-height: 55vh; overflow-y: auto; }
.cmr-review-block h3 { margin: 0 0 4px; font-size: 14px; color: #111827; }
.cmr-review-block p { margin: 0; color: #374151; font-size: 14px; line-height: 1.5; }
.cmr-review-block.cmr-needs-review { padding: 8px 10px; border-radius: 8px; background: #fef3c7; }
.cmr-review-block.cmr-needs-review h3 { color: #92400e; }
.cmr-match-ok { color: #15803d; font-weight: 600; }
.cmr-match-missing { color: #b45309; font-weight: 600; }

/* RMPD editor: one visual rhythm for native and dynamically populated controls. */
#rmpd-form { --rmpd-control-height: 46px; }
#rmpd-form .panel { margin-bottom: 18px; padding: 22px; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 2px 8px rgb(15 23 42 / 5%); }
#rmpd-form .panel > h2 { margin: 0 0 18px; color: #111827; font-size: 19px; line-height: 1.3; }
#rmpd-form .form-grid, #rmpd-form .party-grid { align-items: start; gap: 16px; margin-bottom: 18px; }
#rmpd-form .form-grid:last-child { margin-bottom: 0; }
#rmpd-form label:not(.checkbox) { min-width: 0; gap: 7px; color: #374151; font-size: 13px; font-weight: 600; line-height: 1.25; }
#rmpd-form input:not([type="checkbox"]), #rmpd-form select { height: var(--rmpd-control-height); min-width: 0; padding: 0 13px; border-color: #cbd5e1; border-radius: 9px; line-height: 44px; }
#rmpd-form select { padding-right: 36px; }
#rmpd-form input[type="datetime-local"] { line-height: normal; }
#rmpd-form textarea { min-height: 116px; padding: 12px 13px; border-color: #cbd5e1; border-radius: 9px; line-height: 1.45; }
#rmpd-form .route-summary { margin: -8px 0 0; color: #2563eb; font-size: 13px; font-weight: 600; line-height: 1.4; }
#rmpd-form .date-grid { margin-bottom: 7px; }
#rmpd-form .date-hint { margin: 0 0 18px; color: #64748b; font-size: 12px; line-height: 1.4; }
#rmpd-form .transport-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#rmpd-form .checkbox.prominent { display: inline-flex; min-height: 38px; margin: 0 0 18px; padding: 8px 11px; border: 1px solid #dbeafe; border-radius: 9px; background: #f8fbff; color: #1e40af; font-size: 14px; line-height: 1.3; }
#rmpd-form .checkbox.prominent input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: #2563eb; }
#rmpd-form .border-controls { grid-template-columns: minmax(220px, .52fr) minmax(0, 1fr); }
#rmpd-form .permit-info { padding: 14px 16px; border: 1px solid #dbe5f1; border-radius: 10px; background: #f8fafc; color: #334155; }
#rmpd-form .permit-info-title { margin-bottom: 7px; color: #475569; font-size: 13px; font-weight: 700; }
#rmpd-form .permit-info strong { display: block; margin-bottom: 4px; color: #1e293b; font-size: 14px; line-height: 1.4; }
#rmpd-form .permit-info p { margin: 0; max-width: 920px; color: #64748b; font-size: 13px; line-height: 1.5; }
@media (max-width: 1050px) { .cards { grid-template-columns: repeat(2, 1fr); } .form-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .sidebar { width: 72px; padding: 20px 10px; } .logo { font-size: 0; } .logo::after { content: 'RC'; font-size: 18px; } .menu-item { justify-content: center; font-size: 20px; } .menu-item span { display: none; } .content { margin-left: 72px; padding: 18px; } .user-header { justify-content: space-between; } .user-header > div { text-align: left; } .cards, .form-grid, .company-sections, .details-grid, .two-columns, .cargo-grid, .place-grid, .party-grid, .summary-grid, .geo-cards, #rmpd-form .transport-grid, #rmpd-form .border-controls { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } .page-heading, .dashboard-heading, .directory-toolbar { align-items: stretch; flex-direction: column; } .company-warning { text-align: center; } .actions { align-items: stretch; flex-direction: column; } .actions button, .actions a { width: 100%; text-align: center; } .form-actions { flex-direction: column; } .form-actions a, .form-actions button { width: 100%; text-align: center; } fieldset { padding: 14px; } .summary-grid > div { align-items: flex-start; flex-direction: column; } .summary-grid strong { text-align: left; } #rmpd-form .panel { padding: 17px; } .geo-schedule { align-items: stretch; flex-direction: column; } .geo-schedule form { width: 100%; margin: 0; } .geo-schedule button { width: 100%; } }

/* RMPD24 brand system */
:root {
  --brand-navy: #061326; --brand-navy-2: #0a203d; --brand-blue: #087cff;
  --brand-cyan: #16d8ff; --brand-yellow: #ffc400; --brand-surface: #ffffff;
  --brand-bg: #f2f6fb; --brand-text: #10233f; --brand-muted: #667892;
  --brand-border: #dce6f2; --brand-radius: 14px; --brand-shadow: 0 10px 30px rgb(6 31 68 / 7%);
  color: var(--brand-text); background: var(--brand-bg);
}
body { min-width: 0; background: radial-gradient(circle at 85% 0, #e7f7ff 0, transparent 27%), var(--brand-bg); color: var(--brand-text); }
a { color: #075fcb; }
.sidebar { width: 236px; padding: 18px 14px; background: linear-gradient(180deg, #061326 0%, #081a32 60%, #061326 100%); box-shadow: 8px 0 35px rgb(3 14 32 / 18%); }
.logo { display: grid; place-items: center; height: 70px; margin: 0 4px 20px; border-bottom: 1px solid rgb(22 216 255 / 18%); }
.logo img { display: block; width: 188px; max-width: 100%; height: 62px; object-fit: contain; }
.content { min-width: 0; margin-left: 236px; padding: 28px clamp(18px, 3vw, 42px) 42px; }
.user-header { align-items: center; min-height: 48px; margin: -4px 0 26px; padding-bottom: 14px; border-bottom: 1px solid var(--brand-border); }
.user-header summary { border-radius: 9px; color: var(--brand-text); font-weight: 650; }
.page-title { color: var(--brand-navy); font-size: clamp(25px, 3vw, 32px); letter-spacing: -.025em; }
.page-title-icon { display: flex; align-items: center; gap: 12px; }
.page-title-icon img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; box-shadow: 0 7px 18px rgb(4 70 150 / 16%); }
.card, .panel { border: 1px solid var(--brand-border); border-radius: var(--brand-radius); box-shadow: var(--brand-shadow); }
.panel { padding: clamp(18px, 2vw, 24px); }
.panel h2 { color: var(--brand-navy); letter-spacing: -.01em; }
.dashboard-card { display: flex; align-items: center; min-height: 112px; gap: 16px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.dashboard-card .card-value { color: var(--brand-navy); line-height: 1; }
.dashboard-card .card-title { margin: 7px 0 0; color: var(--brand-muted); font-weight: 650; }
.dashboard-heading { align-items: center; }
.dashboard-heading .page-title-icon img { width: 54px; height: 54px; }
.dashboard-geo { overflow: hidden; border-top: 3px solid var(--brand-blue); }
@media (max-width: 1250px) { .dashboard-heading + .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .dashboard-heading + .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
input, select, textarea { min-height: 44px; border-color: #cbd9e9; border-radius: 10px; background: #fff; color: var(--brand-text); }
textarea { min-height: 100px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgb(22 216 255 / 18%); border-color: var(--brand-blue); box-shadow: 0 0 0 1px var(--brand-blue); }
table { min-width: 680px; }
th { padding: 13px 12px; background: #f5f8fc; color: #586c87; font-size: 12px; letter-spacing: .025em; text-transform: uppercase; }
td { padding: 13px 12px; border-color: #e7edf5; }
tbody tr:hover { background: #f8fbff; }
.table-wrap { border: 1px solid var(--brand-border); border-radius: 12px; background: #fff; }
.table-wrap table th:first-child { border-radius: 11px 0 0; }
.table-wrap table th:last-child { border-radius: 0 11px 0 0; }
.alert { border: 1px solid transparent; border-left-width: 4px; box-shadow: 0 8px 24px rgb(21 42 75 / 7%); }
.alert.success { border-color: #86efac; background: #f0fdf4; }
.alert.error { border-color: #fca5a5; background: #fff1f2; }
.alert.warning { border-color: #fde047; background: #fefce8; color: #854d0e; }
.alert.info { border-color: #7dd3fc; background: #f0f9ff; color: #075985; }
.subscription-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 14px; border: 1px solid var(--rmpd-border); border-radius: 999px; background: #fff; color: var(--rmpd-text); font-size: 13px; font-weight: 650; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.subscription-badge:hover { border-color: var(--rmpd-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.subscription-state h2 { margin: 0 0 8px; }
.subscription-plan-name { margin: 0 0 4px; font-size: 20px; font-weight: 750; color: var(--rmpd-blue); }
.usage-bar { margin: 14px 0 6px; height: 10px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.usage-bar-fill { height: 100%; border-radius: 999px; background: var(--rmpd-blue); transition: width .2s; }
.subscription-tariffs { margin-top: 24px; }
.subscription-tariffs h2 { margin-bottom: 4px; }
.subscription-tariffs .price-description { margin: 0 0 16px; color: var(--rmpd-muted); font-size: 13px; }
.subscription-tariffs .price-card form { margin-top: auto; }
.rmpd-status, .geo-status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.status-draft { border-color: #cbd5e1; background: #f1f5f9; color: #475569; }
.status-ready { border-color: #7dd3fc; background: #effaff; color: #0369a1; }
.status-sending { border-color: #fde047; background: #fffbea; color: #8a5700; }
.status-sent { border-color: #86efac; background: #effdf4; color: #08783d; }
.status-completed { border-color: #c4b5fd; background: #f5f3ff; color: #6d28d9; }
.status-completed_by_date { border-color: #cbd5e1; background: #f1f5f9; color: #475569; }
.status-send_error { border-color: #fca5a5; background: #fff1f2; color: #b4232e; }
.status-unknown_result { border-color: #fdba74; background: #fff7ed; color: #9a4a0a; }
.geo-status-badge.success { background: #effdf4; color: #08783d; }
.geo-status-badge.danger { background: #fff1f2; color: #b4232e; }
.geo-status-badge.warning { background: #fffbea; color: #8a5700; }
.geo-status-badge.neutral { background: #f1f5f9; color: #52647b; }
.section-symbol { display: inline-grid; place-items: center; min-width: 36px; height: 26px; margin-right: 5px; border-radius: 7px; background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); color: white; font-size: 10px; letter-spacing: .08em; }
.details-grid dt, .form-hint, .company-subtitle { color: var(--brand-muted); }
.filter-tabs a { border: 1px solid #d8e4f1; background: #f7f9fc; }
.filter-tabs a.active { border-color: #7dd3fc; background: #eaf8ff; color: #075fcb; }
.auth-page { background: radial-gradient(circle at 50% 5%, rgb(8 124 255 / 26%), transparent 32%), linear-gradient(145deg, #041020, #092341); }
.auth-brand { display: grid; place-items: center; height: 112px; margin-bottom: 14px; }
.auth-brand img { width: min(100%, 340px); height: 112px; object-fit: contain; filter: drop-shadow(0 8px 18px rgb(0 120 255 / 18%)); }
.auth-card { border-color: rgb(22 216 255 / 25%); }
@media (max-width: 720px) {
  .sidebar { width: 68px; padding: 12px 8px; }
  .logo { height: 54px; margin: 0 0 14px; }
  .logo::after { content: none; }
  .logo img { width: 52px; height: 46px; object-fit: contain; object-position: center; }
  .menu-item { justify-content: center; min-height: 46px; padding: 6px; }
  .menu-item img { width: 32px; height: 32px; }
  .content { margin-left: 68px; padding: 16px 12px 30px; overflow-x: hidden; }
  .user-header { align-items: center; gap: 8px; }
  .user-header > div:first-child span { display: none; }
  .page-title-icon img { width: 40px; height: 40px; }
  .dashboard-card { min-height: 96px; }
  .dashboard-card img { width: 54px; height: 54px; flex-basis: 54px; }
  .dashboard-heading + .cards { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .notification-item > div:first-child { align-items: flex-start; flex-direction: column; }
  .auth-brand { height: 96px; margin-bottom: 10px; }
  .auth-brand img { width: min(100%, 290px); height: 96px; }
}

/* Responsive application shell */
.mobile-header, .mobile-drawer, .mobile-drawer-backdrop, .mobile-data-view, .mobile-dashboard-action { display: none; }
.nav-icon, .mobile-menu-icon, .dashboard-icon { object-fit: contain; }
.create-rmpd-link { border-color: rgb(22 216 255 / 26%); background: rgb(8 124 255 / 14%); color: #fff; }
.mobile-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

@media (max-width: 767px) {
  html { overflow-x: hidden; }
  body { width: 100%; overflow-x: hidden; }
  body.nav-open { overflow: hidden; touch-action: none; }
  .sidebar, .user-header { display: none; }
  .mobile-header { position: fixed; z-index: 80; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; height: calc(62px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 14px 0; border-bottom: 1px solid rgb(22 216 255 / 18%); background: rgb(6 19 38 / 97%); box-shadow: 0 6px 22px rgb(3 14 32 / 18%); }
  .mobile-header-button, .mobile-notification { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 0; border-radius: 11px; background: rgb(255 255 255 / 7%); color: #fff; }
  .mobile-header-button { gap: 4px; align-content: center; }
  .mobile-header-button span { width: 22px; height: 2px; border-radius: 2px; background: #fff; }
  .mobile-header-logo { position: absolute; top: env(safe-area-inset-top); left: 50%; display: grid; width: 150px; height: 62px; place-items: center; transform: translateX(-50%); }
  .mobile-header-logo img { width: 145px; height: 54px; object-fit: contain; }
  .mobile-notification { position: relative; }
  .bell-shape { position: relative; width: 17px; height: 18px; border: 2px solid #fff; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom: 0; }
  .bell-shape::before { position: absolute; right: -4px; bottom: -3px; left: -4px; height: 2px; border-radius: 2px; background: #fff; content: ''; }
  .bell-shape::after { position: absolute; bottom: -7px; left: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--brand-yellow); content: ''; }
  .mobile-notification b { position: absolute; top: 3px; right: 2px; min-width: 17px; padding: 2px 4px; border-radius: 9px; background: #e2303c; color: white; font-size: 10px; line-height: 13px; }
  .mobile-drawer-backdrop { position: fixed; z-index: 88; inset: 0; display: block; background: rgb(2 10 23 / 62%); opacity: 0; pointer-events: none; backdrop-filter: blur(2px); transition: opacity .24s ease; }
  .mobile-drawer { position: fixed; z-index: 90; top: 0; bottom: 0; left: 0; display: flex; width: min(88vw, 370px); height: 100dvh; padding: calc(13px + env(safe-area-inset-top)) 15px calc(16px + env(safe-area-inset-bottom)); flex-direction: column; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(180deg, #061326, #0a203d 72%, #061326); box-shadow: 14px 0 40px rgb(0 0 0 / 35%); transform: translateX(-104%); transition: transform .25s cubic-bezier(.22,.8,.35,1); }
  body.nav-open .mobile-drawer { transform: translateX(0); }
  body.nav-open .mobile-drawer-backdrop { opacity: 1; pointer-events: auto; }
  .mobile-drawer-top { display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid rgb(22 216 255 / 17%); }
  .mobile-drawer-top img { width: 176px; height: 54px; object-fit: contain; }
  .mobile-drawer-top button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #d8e7f8; font-size: 31px; font-weight: 300; }
  .mobile-account { display: flex; width: 100%; min-width: 0; min-height: 74px; box-sizing: border-box; align-items: center; gap: 12px; margin: 12px 0; padding: 14px 16px; border: 1px solid rgb(22 216 255 / 18%); border-radius: 13px; background: rgb(255 255 255 / 6%); color: inherit; text-decoration: none; }
  .mobile-account .user-avatar { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; }
  .mobile-account-text { display: flex; min-width: 0; flex: 1; flex-direction: column; justify-content: center; }
  .mobile-account-text strong, .mobile-account-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-account-text strong { color: #fff; font-size: 14px; line-height: 1.3; }
  .mobile-account-text small { margin-top: 3px; color: #9db2ca; font-size: 12px; line-height: 1.3; }
  .mobile-navigation { display: grid; gap: 3px; }
  .mobile-navigation .menu-item { display: flex; justify-content: flex-start; min-height: 48px; margin: 0; padding: 7px 10px; }
  .mobile-navigation .menu-item span { display: inline; }
  .mobile-drawer-footer { display: grid; gap: 4px; margin-top: auto; padding-top: 14px; border-top: 1px solid rgb(22 216 255 / 17%); }
  .mobile-drawer-footer a, .mobile-drawer-footer button { display: flex; width: 100%; min-height: 46px; align-items: center; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: #c2d2e5; font: inherit; font-weight: 600; text-align: left; text-decoration: none; }
  .content { width: 100%; max-width: 100%; margin-left: 0; padding: calc(80px + env(safe-area-inset-top)) 12px calc(28px + env(safe-area-inset-bottom)); overflow-x: hidden; }
  .page-title { font-size: 24px; }
  .page-title-icon { gap: 9px; }
  .page-title-icon img, .dashboard-heading .page-title-icon img { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }
  .dashboard-heading { margin-bottom: 12px; }
  .mobile-dashboard-action { display: flex; min-height: 88px; align-items: center; gap: 13px; margin: 0 0 14px; padding: 14px 15px; border-radius: 15px; background: linear-gradient(135deg, #075fc9, #08a9e9); color: #fff; box-shadow: 0 12px 28px rgb(8 99 207 / 24%); text-decoration: none; }
  .mobile-dashboard-action img { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 12px; object-fit: contain; }
  .mobile-dashboard-action span { min-width: 0; }
  .mobile-dashboard-action strong, .mobile-dashboard-action small { display: block; }
  .mobile-dashboard-action strong { font-size: 17px; letter-spacing: .02em; text-transform: uppercase; }
  .mobile-dashboard-action small { margin-top: 4px; color: #d9efff; font-size: 12px; }
  .mobile-dashboard-action b { margin-left: auto; font-size: 32px; font-weight: 300; }
  .dashboard-heading + .mobile-dashboard-action + .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dashboard-heading + .mobile-dashboard-action + .cards .dashboard-card { min-height: 124px; padding: 12px; align-items: flex-start; flex-direction: column; gap: 7px; }
  .dashboard-heading + .mobile-dashboard-action + .cards .dashboard-card:last-child { grid-column: 1 / -1; min-height: 104px; flex-direction: row; align-items: center; }
  .dashboard-heading + .mobile-dashboard-action + .cards .dashboard-card img { width: 46px; height: 46px; flex-basis: 46px; object-fit: contain; }
  .dashboard-card .card-value { font-size: 27px; }
  .dashboard-card .card-title { margin-top: 4px; font-size: 13px; line-height: 1.25; }
  .panel { max-width: 100%; padding: 15px; border-radius: 13px; }
  .panel h2 { font-size: 18px; }
  .desktop-data-view { display: none; }
  .mobile-data-view { display: grid; gap: 12px; }
  .dashboard-geo { margin-top: 16px; }
  .dashboard-geo > h2 { display: flex; align-items: center; margin-bottom: 14px; }
  .geo-mobile-card, .rmpd-mobile-card { min-width: 0; padding: 14px; border: 1px solid var(--brand-border); border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgb(6 31 68 / 6%); }
  .mobile-card-head a { min-width: 0; overflow-wrap: anywhere; color: var(--brand-navy); font-weight: 800; text-decoration: none; }
  .geo-transport { display: grid; gap: 2px; margin: 13px 0; padding: 10px 11px; border-radius: 9px; background: #f3f7fb; }
  .geo-transport span { color: var(--brand-muted); font-size: 13px; }
  .geo-mobile-card dl, .rmpd-mobile-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 13px; }
  .geo-mobile-card dl div, .rmpd-mobile-card dl div { min-width: 0; }
  .geo-mobile-card dt, .rmpd-mobile-card dt { color: var(--brand-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
  .geo-mobile-card dd, .rmpd-mobile-card dd { margin: 3px 0 0; overflow-wrap: anywhere; color: var(--brand-text); font-size: 13px; }
  .geo-mobile-card > label { gap: 6px; color: var(--brand-muted); font-size: 12px; }
  .geo-mobile-card select { width: 100%; min-height: 46px; }
  .rmpd-mobile-route { margin: 12px 0; padding: 9px 10px; border-radius: 8px; background: #edf7ff; color: #075fcb; font-size: 13px; font-weight: 700; }
  .rmpd-mobile-card dl div:nth-child(3), .rmpd-mobile-card dl div:nth-child(4) { grid-column: 1 / -1; }
  .mobile-card-open { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 1px solid #bdd6f2; border-radius: 9px; background: #f2f8ff; color: #075fcb; font-weight: 700; text-decoration: none; }
  .page-heading, .directory-toolbar { gap: 12px; }
  .page-heading .btn-primary, .directory-toolbar input { width: 100%; }
  .form-grid, .company-sections, .details-grid, .two-columns, .cargo-grid, .place-grid, .party-grid, .summary-grid, .geo-cards, #rmpd-form .transport-grid, #rmpd-form .border-controls { grid-template-columns: minmax(0, 1fr); }
  input, select, textarea, button, .btn-primary, .btn-secondary, .btn-danger { max-width: 100%; min-height: 46px; }
  #rmpd-form { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  #rmpd-form .panel { padding: 15px; }
  #rmpd-form .form-grid, #rmpd-form .party-grid { gap: 13px; }
  #rmpd-form .mobile-sticky-actions { position: fixed; z-index: 60; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px; margin: 0; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid #cfdeed; background: rgb(255 255 255 / 96%); box-shadow: 0 -8px 24px rgb(6 31 68 / 11%); backdrop-filter: blur(10px); }
  #rmpd-form .mobile-sticky-actions button { width: 100%; min-width: 0; padding: 8px 7px; font-size: 12px; line-height: 1.2; }
  .table-wrap { max-width: 100%; }
  .table-wrap:not(.desktop-data-view) { overflow: visible; border: 0; background: transparent; }
  .table-wrap:not(.desktop-data-view) table, .table-wrap:not(.desktop-data-view) tbody { display: block; width: 100%; min-width: 0; }
  .table-wrap:not(.desktop-data-view) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-wrap:not(.desktop-data-view) tr { display: grid; width: 100%; gap: 5px; margin-bottom: 11px; padding: 13px; border: 1px solid var(--brand-border); border-radius: 11px; background: #fff; box-shadow: 0 4px 14px rgb(6 31 68 / 5%); }
  .table-wrap:not(.desktop-data-view) tr[hidden] { display: none; }
  .table-wrap:not(.desktop-data-view) td { display: block; width: 100%; max-width: 100%; padding: 3px 0; border: 0; overflow-wrap: anywhere; }
  .table-wrap:not(.desktop-data-view) td.actions { display: flex; gap: 7px; margin-top: 5px; }
  .table-wrap:not(.desktop-data-view) td.actions a, .table-wrap:not(.desktop-data-view) td.actions form, .table-wrap:not(.desktop-data-view) td.actions button { width: 100%; }
  .table-wrap:not(.desktop-data-view) td.empty { text-align: center; }
  :focus-visible { outline: 3px solid rgb(22 216 255 / 52%); outline-offset: 2px; }
  a:active, button:active, .card:active { transform: scale(.98); }
}

@media (max-width: 340px) {
  .content { padding-right: 9px; padding-left: 9px; }
  .mobile-header-logo { width: 132px; }
  .mobile-header-logo img { width: 128px; }
  .dashboard-heading + .mobile-dashboard-action + .cards { gap: 8px; }
  .dashboard-heading + .mobile-dashboard-action + .cards .dashboard-card { min-height: 118px; padding: 10px; }
  .geo-mobile-card dl { grid-template-columns: 1fr; }
}

/* RMPD24 unified UI system */
:root {
  --rmpd-navy: #081b34;
  --rmpd-navy-soft: #102b4d;
  --rmpd-blue: #087af2;
  --rmpd-blue-dark: #0565cc;
  --rmpd-cyan: #19bde5;
  --rmpd-bg: #f4f7fb;
  --rmpd-surface: #ffffff;
  --rmpd-border: #dfe7f1;
  --rmpd-text: #10223d;
  --rmpd-muted: #6b7d94;
  --rmpd-success: #168252;
  --rmpd-warning: #b66a09;
  --rmpd-danger: #c63c45;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-card: 0 5px 18px rgb(15 43 78 / 5%);
  --brand-navy: var(--rmpd-navy);
  --brand-blue: var(--rmpd-blue);
  --brand-cyan: var(--rmpd-cyan);
  --brand-bg: var(--rmpd-bg);
  --brand-surface: var(--rmpd-surface);
  --brand-text: var(--rmpd-text);
  --brand-muted: var(--rmpd-muted);
  --brand-border: var(--rmpd-border);
  --brand-radius: var(--radius-md);
  --brand-shadow: var(--shadow-card);
}
body { background: var(--rmpd-bg); color: var(--rmpd-text); font-size: 15px; line-height: 1.45; }
.ui-icon { display: block; width: 22px; height: 22px; flex: 0 0 22px; }
.sidebar { display: flex; width: 232px; padding: 16px 14px; flex-direction: column; overflow-x: hidden; background: var(--rmpd-navy); box-shadow: none; }
.sidebar .logo { height: 62px; margin: 0 4px 18px; border-color: rgb(255 255 255 / 9%); }
.sidebar .logo img { width: 164px; height: 54px; }
.sidebar > nav { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 3px; }
.menu-item { position: relative; display: flex; align-items: center; min-height: 44px; gap: 11px; margin: 0; padding: 9px 11px; border: 0; border-radius: var(--radius-sm); color: #afc0d5; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .18s ease, color .18s ease; }
.menu-item .nav-icon { width: 21px; height: 21px; flex-basis: 21px; color: #8ba5c2; filter: none; }
.menu-item:hover { background: rgb(8 122 242 / 10%); color: #fff; }
.menu-item.active { background: rgb(8 122 242 / 20%); color: #fff; }
.menu-item.active .nav-icon { color: #73c8ff; }
.menu-item.locked { opacity: .72; }
.create-rmpd-link { margin: 5px 0; border: 1px solid rgb(54 155 255 / 22%); background: rgb(8 122 242 / 10%); color: #dcebfa; }
.sidebar-user-menu { position: relative; width: 100%; margin-top: auto; border-top: 1px solid rgb(255 255 255 / 9%); }
.sidebar-user-menu summary::-webkit-details-marker { display: none; }
.sidebar-account { display: flex; width: 100%; min-width: 0; align-items: center; gap: 10px; padding: 12px 8px 4px; border: 0; list-style: none; cursor: pointer; }
.sidebar-account-text { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.sidebar-account strong, .sidebar-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account strong { color: #f7fbff; font-size: 12px; }
.sidebar-account small { margin-top: 2px; color: #8097b2; font-size: 10px; }
.sidebar-account > .ui-icon { width: 15px; height: 15px; margin-left: auto; flex-shrink: 0; color: #7088a5; }
.sidebar-user-menu[open] .sidebar-account > .ui-icon { transform: rotate(180deg); }
.sidebar-account-menu { position: absolute; z-index: 80; right: 0; bottom: calc(100% + 8px); left: 0; display: grid; padding: 7px; border: 1px solid var(--rmpd-border); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-card); }
.sidebar-account-menu a, .sidebar-account-menu button { display: block; width: 100%; min-height: 38px; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--rmpd-text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.sidebar-account-menu a:hover, .sidebar-account-menu button:hover { background: #f1f5f9; }
.sidebar-account-menu form { margin: 0; }
.company-switcher-list { display: grid; gap: 2px; margin-bottom: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--rmpd-border); }
.company-switcher-current { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 7px; background: #eaf4ff; color: var(--rmpd-blue-dark); font-weight: 650; font-size: 13px; }
.company-switcher-current .ui-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.company-switcher-item { font-size: 13px; }
.company-switcher-add { display: block; margin-bottom: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--rmpd-border); font-size: 13px; font-weight: 650; }
.user-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid rgb(69 159 255 / 25%); border-radius: 50%; background: rgb(8 122 242 / 12%); color: #65bcff; }
.user-avatar .ui-icon { width: 19px; height: 19px; }
.content { margin-left: 232px; padding: 0 clamp(20px, 3vw, 40px) 40px; }
.user-header { min-height: 76px; margin: 0 0 28px; padding: 0; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rmpd-border); }
.header-section { display: flex; align-items: center; gap: 9px; color: var(--rmpd-text); text-align: left; }
.header-section > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: var(--radius-sm); background: #eaf4ff; color: var(--rmpd-blue); }
.header-section .ui-icon { width: 18px; height: 18px; }
.header-section strong { font-size: 15px; font-weight: 650; }
.user-header > .header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 100%; text-align: left; }
.icon-button { display: grid; width: 40px; height: 40px; min-height: 40px; place-items: center; border: 1px solid var(--rmpd-border); border-radius: var(--radius-sm); background: #fff; color: var(--rmpd-muted); }
.notification-bell { position: relative; font-size: inherit; }
.notification-bell span { top: -4px; right: -4px; }
.header-actions .user-menu { position: relative; margin: 0; }
.notification-bell .ui-icon { width: 19px; height: 19px; }
.user-header details summary { display: flex; min-width: 240px; align-items: center; gap: 10px; padding: 5px 4px 5px 7px; border: 0; list-style: none; }
.user-header details summary::-webkit-details-marker { display: none; }
.header-user { min-width: 0; flex: 1; }
.header-user { display: flex; flex-direction: column; justify-content: center; text-align: left; }
.header-user strong, .header-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-user strong { font-size: 13px; }
.header-user small { margin-top: 1px; color: var(--rmpd-muted); font-size: 11px; }
.user-header summary > .ui-icon { width: 15px; height: 15px; color: var(--rmpd-muted); transform: rotate(90deg); }
.page-title { font-size: clamp(26px, 2.4vw, 30px); font-weight: 700; }
.page-title-icon img { width: 36px; height: 36px; border: 0; border-radius: 9px; box-shadow: none; object-fit: contain; }
.title-icon-badge { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: var(--radius-sm); background: #eaf4ff; color: var(--rmpd-blue); }
.title-icon-badge .ui-icon { width: 22px; height: 22px; }
.company-subtitle { margin-top: 4px; font-size: 14px; }
.card, .panel { border: 1px solid var(--rmpd-border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.panel { padding: 24px; }
.panel h2 { font-size: 19px; font-weight: 700; }
.dashboard-heading + .mobile-dashboard-action + .cards { grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 16px; }
.dashboard-heading + .mobile-dashboard-action + .cards .dashboard-card { min-height: 108px; padding: 20px; align-items: center; gap: 14px; border: 1px solid var(--rmpd-border); border-left: 3px solid var(--rmpd-blue); background: #fff; }
.dashboard-heading + .mobile-dashboard-action + .cards .dashboard-card:nth-child(2) { border-left-color: var(--rmpd-cyan); }
.dashboard-heading + .mobile-dashboard-action + .cards .dashboard-card:nth-child(4) { border-left-color: #e6982e; }
.dashboard-heading + .mobile-dashboard-action + .cards .dashboard-card:nth-child(5) { border-left-color: #a5b2c2; }
.dashboard-card-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 11px; background: #eef6ff; color: var(--rmpd-blue); }
.dashboard-card-icon .ui-icon { width: 22px; height: 22px; }
.dashboard-card .card-value { font-size: 28px; font-weight: 700; }
.dashboard-card .card-title { margin-top: 3px; font-size: 13px; font-weight: 600; }
.dashboard-card:hover { box-shadow: 0 9px 25px rgb(15 43 78 / 8%); transform: translateY(-2px); }
.dashboard-geo { border-top: 1px solid var(--rmpd-border); }
.dashboard-geo h2 { display: flex; align-items: center; gap: 8px; }
.section-symbol { width: 30px; min-width: 30px; height: 30px; margin: 0; background: #eaf5ff; color: var(--rmpd-blue); }
.section-symbol .ui-icon { width: 17px; height: 17px; }
th { padding: 12px 14px; background: #f7f9fc; color: #6a7b91; font-size: 11px; font-weight: 700; }
td { padding: 15px 14px; }
tbody tr:hover { background: #fafcff; }
.rmpd-table { min-width: 940px; font-size: 13px; }
.rmpd-table th, .rmpd-table td { padding-right: 8px; padding-left: 8px; }
.rmpd-table .actions { min-width: 104px; align-items: stretch; flex-direction: column; }
.rmpd-table .actions .btn-secondary { min-height: 32px; padding: 6px 8px; font-size: 12px; text-align: center; }
.rmpd-table .actions .btn-danger { min-height: 32px; padding: 6px 8px; font-size: 12px; }
.geo-title, .geo-card h3, .geo-state, .geo-overall { display: flex; align-items: center; gap: 7px; }
.geo-title .ui-icon, .geo-card h3 .ui-icon { width: 18px; height: 18px; color: var(--rmpd-blue); }
.status-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #94a3b8; }
.status-dot--success { background: var(--rmpd-success); }
.status-dot--danger { background: var(--rmpd-danger); }
.status-dot--warning { background: var(--rmpd-warning); }
.status-dot--neutral { background: #94a3b8; }
.rmpd-mobile-actions { display: grid; gap: 8px; }
.rmpd-mobile-actions a, .rmpd-mobile-actions button { width: 100%; text-align: center; }
input, select, textarea, #rmpd-form input:not([type="checkbox"]), #rmpd-form select { min-height: 46px; border: 1px solid #cad7e6; border-radius: var(--radius-sm); background: #fff; color: var(--rmpd-text); font-size: 14px; }
label, #rmpd-form label:not(.checkbox) { gap: 7px; color: #40536c; font-size: 13px; font-weight: 600; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgb(8 122 242 / 12%); border-color: var(--rmpd-blue); box-shadow: none; }
button, .btn-primary, .btn-secondary, .btn-danger { min-height: 42px; padding: 10px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 650; box-shadow: none; }
.btn-primary { border: 1px solid var(--rmpd-blue); background: var(--rmpd-blue); }
.btn-primary:hover { background: var(--rmpd-blue-dark); filter: none; }
.btn-secondary { border: 1px solid #cbd8e7; background: #fff; color: #27415f; }
.btn-danger { border: 1px solid #f0c5c9; background: #fff; color: var(--rmpd-danger); }
.rmpd-status, .geo-status-badge { padding: 5px 9px; font-size: 11px; }
.rmpd-status::before { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; content: ''; }
.dashboard-map-link { color: var(--rmpd-blue); font-size: 12px; font-weight: 650; }
.gps-map-panel { display: grid; gap: 18px; }
.gps-map-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gps-map-summary > div { min-width: 0; padding: 12px 14px; border: 1px solid var(--rmpd-border); border-radius: var(--radius-sm); background: #f8fbff; }
.gps-map-summary span, .gps-map-summary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gps-map-summary span { color: var(--rmpd-muted); font-size: 12px; }
.gps-map-summary strong { margin-top: 4px; font-size: 14px; }
.gps-map-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gps-map-filters button { min-height: 38px; padding: 8px 15px; border: 1px solid var(--rmpd-border); border-radius: 999px; background: #fff; color: var(--rmpd-text); }
.gps-map-filters button.active { border-color: var(--rmpd-blue); background: #eaf4ff; color: var(--rmpd-blue); }
.rmpd-map { width: 100%; height: clamp(420px, 60vh, 680px); border: 1px solid var(--rmpd-border); border-radius: var(--radius-md); overflow: hidden; }
.map-empty { margin: -70px auto 20px; z-index: 500; padding: 10px 14px; border-radius: var(--radius-sm); background: rgb(255 255 255 / 92%); color: var(--rmpd-muted); }
.gps-timeline h2 { margin-bottom: 10px; font-size: 17px; }
#gps-timeline-list { display: grid; max-height: 260px; overflow: auto; gap: 6px; }
#gps-timeline-list button { display: grid; min-height: 42px; grid-template-columns: 110px 150px 1fr; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--rmpd-border); border-radius: 8px; background: #fff; color: var(--rmpd-text); text-align: left; }
#gps-timeline-list button:hover { background: #f7faff; }
.smart-route-panel { display: grid; gap: 16px; }
.route-summary-header { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 2fr); gap: 18px; align-items: center; }
.route-summary-header > div { display: flex; flex-direction: column; gap: 4px; }
.route-direction { color: var(--rmpd-blue); font-size: 14px; font-weight: 750; }
#route-state { font-size: 22px; }
#route-updated { color: var(--rmpd-muted); }
.route-summary-header dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.route-summary-header dl div { min-width: 0; padding: 10px 12px; border: 1px solid var(--rmpd-border); border-radius: var(--radius-sm); background: #f8fbff; }
.route-summary-header dt { color: var(--rmpd-muted); font-size: 11px; }
.route-summary-header dd { margin: 4px 0 0; overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.route-map-wrap { position: relative; min-width: 0; }
.map-latest-control { position: absolute; z-index: 500; right: 12px; bottom: 12px; border: 1px solid var(--rmpd-border); background: #fff; color: var(--rmpd-blue); box-shadow: 0 5px 18px rgb(15 43 78 / 15%); }
.route-mobile-details { display: none; }
.route-timeline h2 { margin-bottom: 12px; font-size: 17px; }
#route-timeline-list { position: relative; display: grid; gap: 8px; }
#route-timeline-list::before { position: absolute; top: 8px; bottom: 8px; left: 17px; width: 2px; background: var(--rmpd-border); content: ''; }
#route-timeline-list button { position: relative; z-index: 1; display: flex; width: 100%; min-height: 54px; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--rmpd-border); background: #fff; color: var(--rmpd-text); text-align: left; }
#route-timeline-list button span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
#route-timeline-list button small { color: var(--rmpd-muted); }
.route-event-dot { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; background: var(--event-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--event-color) 14%, transparent); }
.route-tl-dot { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; background: var(--dot-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot-color) 14%, transparent); }
.route-tl-dot--start, .route-tl-dot--last { --dot-color: var(--rmpd-blue); }
.route-tl-dot--move { --dot-color: #94a3b8; }
.route-tl-dot--stop { --dot-color: #e58b21; }
.route-tl-dot--finished { --dot-color: #15803d; }
.route-tl-item--finished { cursor: default; }
.route-empty-history { color: var(--rmpd-muted); }

@media (max-width: 1250px) { .dashboard-heading + .mobile-dashboard-action + .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .dashboard-heading + .mobile-dashboard-action + .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 767px) {
  .sidebar, .user-header { display: none; }
  .content { width: 100%; max-width: 100%; margin-left: 0; overflow-x: hidden; }
  .mobile-header { height: calc(62px + env(safe-area-inset-top)); border-bottom: 1px solid var(--rmpd-border); background: rgb(255 255 255 / 96%); box-shadow: 0 4px 16px rgb(15 43 78 / 7%); backdrop-filter: blur(12px); }
  .mobile-header-button, .mobile-notification { border: 1px solid var(--rmpd-border); background: #f7f9fc; color: var(--rmpd-navy); }
  .mobile-header-button span { background: var(--rmpd-navy); }
  .mobile-header-logo img { width: 138px; height: 50px; }
  .mobile-notification .ui-icon { width: 20px; height: 20px; }
  .mobile-drawer-top img { width: 158px; }
  .mobile-navigation .menu-item { font-size: 14px; }
  .mobile-navigation .nav-icon { width: 21px; height: 21px; flex-basis: 21px; color: #91a9c4; }
  .mobile-navigation .create-rmpd-link { min-height: 48px; background: rgb(8 122 242 / 22%); box-shadow: none; }
  .mobile-drawer-footer a, .mobile-drawer-footer button { gap: 11px; }
  .mobile-drawer-footer .ui-icon { width: 20px; height: 20px; }
  .content { padding-top: calc(82px + env(safe-area-inset-top)); }
  .page-title { font-size: 23px; }
  .mobile-dashboard-action { min-height: 92px; padding: 16px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--rmpd-navy-soft), var(--rmpd-blue)); }
  .mobile-dashboard-action .cta-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border: 1px solid rgb(255 255 255 / 22%); border-radius: 12px; background: rgb(255 255 255 / 10%); }
  .mobile-dashboard-action .cta-icon .ui-icon { width: 23px; height: 23px; }
  .mobile-dashboard-action .cta-arrow { width: 20px; height: 20px; margin-left: auto; }
  .dashboard-heading + .mobile-dashboard-action + .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dashboard-heading + .mobile-dashboard-action + .cards .dashboard-card { min-height: 112px; padding: 14px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .dashboard-heading + .mobile-dashboard-action + .cards .dashboard-card:last-child { min-height: 88px; align-items: center; flex-direction: row; }
  .dashboard-card-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .dashboard-card-icon .ui-icon { width: 19px; height: 19px; }
  .dashboard-card .card-value { font-size: 25px; }
  .panel { padding: 16px; }
  .smart-route-heading { align-items: flex-start; }
  .smart-route-heading .btn-secondary { min-height: 36px; padding: 7px 10px; }
  .smart-route-panel { width: calc(100% + 32px); margin: 0 -16px; padding: 0 0 20px; border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .route-summary-header { display: block; padding: 0 16px; }
  .route-summary-header > div { padding: 12px 0; }
  .route-summary-header dl { display: none; }
  #route-state { font-size: 19px; }
  .rmpd-map { height: clamp(350px, 53svh, 560px); border-right: 0; border-left: 0; border-radius: 0; }
  .map-latest-control { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); max-width: calc(100% - 20px); min-height: 38px; padding: 8px 11px; font-size: 12px; }
  .route-mobile-details { display: block; margin: -1px 12px 0; padding: 12px 14px; border: 1px solid var(--rmpd-border); border-radius: 0 0 var(--radius-md) var(--radius-md); background: #fff; }
  .route-mobile-details summary { color: var(--rmpd-blue); font-weight: 700; cursor: pointer; }
  .route-mobile-details p { margin: 8px 0 0; color: var(--rmpd-muted); font-size: 13px; }
  .gps-map-filters, .route-timeline { padding: 0 16px; }
  .gps-map-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .gps-map-filters button { flex: 0 0 auto; }
  #route-timeline-list button { min-height: 58px; }
  .geo-mobile-card, .rmpd-mobile-card { padding: 13px; box-shadow: none; }
  .rmpd-detail-actions, .rmpd-detail-actions form { width: 100%; }
  .rmpd-detail-actions { align-items: stretch; flex-direction: column; }
  .rmpd-detail-actions a, .rmpd-detail-actions button { width: 100%; text-align: center; }
  .confirm-dialog-card .actions { flex-direction: column-reverse; }
  .telegram-card-actions, .telegram-card-actions form, .telegram-card-actions button { width: 100%; }
  .telegram-card-actions { align-items: stretch; flex-direction: column; }
  .provider-password-form { grid-template-columns: minmax(0, 1fr); }
  .provider-password-form button { grid-column: auto; width: 100%; }
  .geo-history-card { padding: 13px; }
  .geo-history-devices { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .geo-history-confirmations { align-items: stretch; flex-direction: column; }
  .geo-history-confirmations .btn-secondary { width: 100%; text-align: center; }
  .rmpd-gps-preview { grid-template-columns: minmax(0, 1fr); }
  .rmpd-gps-preview p { grid-column: auto; }
  .gps-map-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rmpd-map { height: 58vh; min-height: 390px; }
  #gps-timeline-list button { grid-template-columns: 1fr; gap: 2px; }
}

/* єЧерга checkpoint monitoring (echerha.html) */
.echerha-intro { max-width: 640px; margin: -6px 0 18px; }
.echerha-my-panel { margin-bottom: 18px; }
.echerha-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.echerha-list-head h2 { margin: 0; }
.echerha-country-picker label { display: flex; align-items: center; gap: 8px; color: var(--rmpd-muted, #6b7280); font-size: 13px; font-weight: 650; }
.echerha-country-picker select { min-height: 36px; padding: 0 10px; border: 1px solid #dfe7f1; border-radius: 8px; }
.echerha-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.echerha-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.echerha-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.echerha-card-head strong { font-size: 15px; line-height: 1.3; }
.echerha-card-stats { display: grid; gap: 6px; margin: 0; }
.echerha-card-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.echerha-card-stats dt { color: var(--rmpd-muted, #6b7280); font-size: 12.5px; }
.echerha-card-stats dd { margin: 0; font-size: 15px; font-weight: 700; }
.echerha-card .btn-secondary { width: 100%; text-align: center; }
.echerha-subscribed-tag { margin: 0; color: #15803d; font-weight: 650; font-size: 13.5px; }
.echerha-load { margin: -4px 0 0; font-size: 12.5px; font-weight: 650; }
.echerha-load--low, .echerha-load--moderate { color: #15803d; }
.echerha-load--high { color: #a16207; }
.echerha-load--very-high { color: #c2410c; }
.echerha-load--critical { color: #b91c1c; }
.echerha-load--unknown { color: var(--rmpd-muted, #6b7280); }
.echerha-trend { margin: 0; font-size: 13px; font-weight: 650; }
.echerha-trend--up { color: #b91c1c; }
.echerha-trend--down { color: #15803d; }
.echerha-trend--stable { color: var(--rmpd-muted, #6b7280); }
.echerha-sparkline-wrap { margin: 2px 0 0; }
.echerha-sparkline { display: block; width: 100%; height: clamp(70px, 9vw, 90px); background: transparent; }
.echerha-sparkline polyline { fill: none; stroke: #087af2; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.echerha-sparkline-labels { display: flex; justify-content: space-between; margin-top: 3px; color: var(--rmpd-muted, #6b7280); font-size: 10.5px; }
.echerha-control-note { margin: 0; padding: 8px 10px; border-radius: 8px; background: #f4f9ff; color: #263c59; font-size: 12.5px; line-height: 1.5; }
@media (max-width: 640px) {
  .echerha-grid { grid-template-columns: 1fr; }
  .echerha-country-picker { width: 100%; }
  .echerha-country-picker select { flex: 1; }
  .echerha-card { gap: 8px; padding: 14px; }
  .echerha-sparkline { height: clamp(60px, 18vw, 80px); }
  .echerha-card-stats dd { font-size: 16px; }
}

/* UI polish pass: RMPD number badge, inline button icons, locked nav state */
.rmpd-number-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--rmpd-border); border-radius: 999px; background: #eef6ff; color: var(--rmpd-blue-dark); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
a.rmpd-number-badge:hover { border-color: var(--rmpd-blue); background: #e2f0ff; }
.rmpd-number-badge-arrow { width: 12px; height: 12px; flex: 0 0 12px; opacity: .7; }
.rmpd-number-badge--draft { background: #f1f5f9; color: var(--rmpd-muted); border-color: var(--rmpd-border); }
.rmpd-number-badge--lg { padding: 6px 12px; font-size: 14px; }
.btn-icon { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.mobile-card-head .rmpd-number-badge { color: var(--rmpd-blue-dark); font-weight: 650; }
.map-link { display: inline-flex; align-items: center; }
