:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #231b3d;
  background: #f5f6fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; margin: 0; background: #f5f6fb; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 16% 16%, #e9e2ff 0, transparent 32%), radial-gradient(circle at 83% 85%, #e8edf9 0, transparent 28%), #f7f8fc; }
.login-card { width: min(100%, 440px); padding: 38px; border: 1px solid #e4e1ef; border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 22px 60px rgba(42, 24, 95, .12); }
.login-card h1 { margin: 35px 0 10px; font-size: 26px; letter-spacing: -.65px; }
.login-card > p { margin: 0 0 26px; color: #756d8f; line-height: 1.55; }

.brand { display: inline-flex; align-items: center; gap: 9px; color: #251747; font-weight: 850; letter-spacing: .4px; }
.brand small { display: block; margin-top: 1px; color: #9479e8; font-size: 10px; letter-spacing: 1.6px; }
.brand-mark { width: 29px; height: 29px; border-radius: 10px; background: linear-gradient(135deg,#875bf6,#5631d7); position: relative; box-shadow: 0 7px 15px rgba(92,55,221,.25); }
.brand-mark::after { content: ""; position: absolute; width: 10px; height: 10px; border: 3px solid white; border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; left: 7px; top: 7px; transform: rotate(35deg); }

.form-stack, .modal-form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: #4f4769; font-weight: 700; font-size: 14px; }
label small { color: #8b819d; font-weight: 500; }
input { min-width: 0; height: 47px; padding: 0 14px; border: 1px solid #dcd6ec; border-radius: 12px; outline: none; color: #241a43; background: white; }
input:focus { border-color: #7545e9; box-shadow: 0 0 0 4px #eae2ff; }
.form-error { margin: -4px 0 0; color: #bc284e; font-size: 13px; }

.button, .row-button { min-height: 40px; padding: 0 14px; border: 1px solid #ddd7ec; border-radius: 10px; color: #392d57; background: #fff; font-weight: 750; }
.button:hover, .row-button:hover { border-color: #aa94df; background: #fbfaff; }
.button.primary { border-color: #6836df; color: #fff; background: linear-gradient(135deg,#7645e9,#5d2dd7); box-shadow: 0 8px 16px rgba(99,50,221,.2); }
.button.primary:hover { background: linear-gradient(135deg,#7040e0,#5128c8); }
.button.full { width: 100%; }
.button.small, .row-button { min-height: 33px; padding: 0 11px; font-size: 13px; }
.row-button { min-height: 30px; color: #655582; }
.text-button { padding: 0; border: 0; color: #6640cf; background: transparent; font-size: 13px; font-weight: 800; }
.text-button:hover { color: #4826ae; }

.portal { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 16px; background: #20153e; color: white; display: flex; flex-direction: column; }
.sidebar .brand { color: #fff; margin: 0 10px 41px; }
.sidebar .brand small { color: #c0b0f7; }
.nav { display: grid; gap: 3px; }
.nav-label { margin: 0 12px 8px; color: #9085ae; font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.nav-label.space { margin-top: 24px; }
.nav button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 43px; padding: 0 12px; border: 0; border-radius: 10px; color: #c9c0e2; background: transparent; text-align: left; font-weight: 700; }
.nav button i { display: grid; width: 18px; place-items: center; color: #aea1d1; font-style: normal; font-size: 17px; }
.nav button:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav button.active { color: #fff; background: #7040df; box-shadow: 0 7px 15px rgba(0,0,0,.15); }
.nav button.active i { color: #fff; }
.sidebar-footer { margin-top: auto; padding: 17px 11px 2px; border-top: 1px solid rgba(255,255,255,.12); color: #cfc7e2; }
.sidebar-footer strong { display: block; margin-bottom: 3px; color: white; font-size: 14px; }
.sidebar-footer span { font-size: 12px; }

.main { min-width: 0; padding: 28px 40px 52px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 31px; }
.eyebrow { margin: 0 0 5px; color: #8469c4; font-size: 11px; font-weight: 850; letter-spacing: .85px; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -1.05px; }
h2 { color: #231941; }
.user-actions { display: flex; align-items: center; gap: 10px; color: #625879; font-size: 13px; }
.user-actions div { display: grid; gap: 1px; }
.user-actions strong { color: #392d57; font-size: 13px; }
.user-actions small { color: #877d99; }
.user-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #6640cf; background: #e8e1fd; font-weight: 850; }
.icon-button { display: grid; width: 34px; height: 34px; margin-left: 4px; place-items: center; border: 1px solid #e0dbea; border-radius: 10px; color: #635478; background: white; font-size: 19px; }
.icon-button:hover { border-color: #aa94df; color: #502bb5; }

.view-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 22px; }
.view-header h2 { margin: 0 0 7px; font-size: 25px; letter-spacing: -.8px; }
.view-header p:not(.eyebrow) { margin: 0; max-width: 710px; color: #766d8d; line-height: 1.5; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.period-controls { display: inline-flex; padding: 3px; border: 1px solid #e2ddec; border-radius: 10px; background: white; }
.period { min-height: 30px; padding: 0 9px; border: 0; border-radius: 7px; color: #7a6f8d; background: transparent; font-size: 12px; font-weight: 750; }
.period.active { color: #5731bd; background: #ece5ff; }
.period:disabled { opacity: .45; cursor: default; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.metric-card, .panel { border: 1px solid #e4e0ed; border-radius: 16px; background: white; box-shadow: 0 7px 22px rgba(45,29,91,.035); }
.metric-card { position: relative; overflow: hidden; padding: 18px; }
.metric-card::after { content: ""; position: absolute; right: -15px; bottom: -15px; width: 60px; height: 60px; border-radius: 50%; background: #f2effa; }
.metric-card.green::after { background: #e1f6eb; }
.metric-card.rose::after { background: #fde5eb; }
.metric-card span, .metric-card small { position: relative; z-index: 1; }
.metric-card span { display: block; color: #756a91; font-size: 13px; font-weight: 700; }
.metric-card strong { position: relative; z-index: 1; display: block; margin-top: 9px; color: #261747; font-size: 29px; letter-spacing: -.8px; }
.metric-card small { display: block; margin-top: 6px; color: #958aa8; font-size: 12px; line-height: 1.3; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr); gap: 17px; margin-top: 17px; }
.split-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.panel { padding: 21px; }
.panel h3 { margin: 0; color: #281b48; font-size: 17px; letter-spacing: -.25px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.panel-heading p { margin: 5px 0 0; color: #817691; font-size: 13px; line-height: 1.35; }
.panel p { color: #786f8e; line-height: 1.5; }
.soft-tag { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; border-radius: 8px; color: #695b91; background: #eeeaf8; font-size: 12px; font-weight: 800; }
.status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 6px 10px; border-radius: 999px; color: #176b51; background: #def6ea; font-size: 12px; font-weight: 800; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.warn { color: #a45e13; background: #fff0d5; }

.bars { display: grid; gap: 15px; padding: 6px 1px 1px; }
.bar-row { display: grid; grid-template-columns: 105px minmax(80px,1fr) 24px; align-items: center; gap: 11px; }
.bar-row > span { color: #716782; font-size: 12px; }
.bar-row > div { height: 9px; overflow: hidden; border-radius: 99px; background: #eeebf5; }
.bar-row i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg,#8354ec,#b499fd); }
.bar-row strong { color: #392b57; font-size: 12px; text-align: right; }
.usage-main { display: flex; align-items: baseline; gap: 8px; margin: 23px 0 13px; }
.usage-main strong, .consumption-number strong { color: #2a1b4a; font-size: 32px; letter-spacing: -1px; }
.usage-main span, .consumption-number span { color: #7d7294; font-size: 13px; font-weight: 700; }
.progress { height: 10px; overflow: hidden; border-radius: 99px; background: #eeeaf6; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#7544e5,#9e75ff); }
.progress.large { height: 13px; margin-top: 22px; }
.usage-row { display: flex; justify-content: space-between; gap: 16px; margin: 15px 0 0; color: #605672; font-size: 14px; font-weight: 700; }
.usage-row strong { color: #251747; }
.muted-copy { margin: 13px 0 0; color: #887e9d !important; font-size: 12px; }

.problem-list { display: grid; }
.problem-item { display: grid; grid-template-columns: auto 68px minmax(0,1fr); align-items: center; gap: 10px; padding: 11px 0; border: 0; border-bottom: 1px solid #eeeaf5; color: #41335e; background: transparent; text-align: left; }
.problem-item:last-child { border-bottom: 0; }
.problem-item:hover strong { color: #6240c9; }
.problem-item em { overflow: hidden; color: #7a6f8d; font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.assistant-summary { display: flex; min-height: 213px; flex-direction: column; align-items: flex-start; }
.assistant-summary .panel-heading { width: 100%; }
.assistant-summary > strong { color: #3d2d5d; }
.assistant-summary > p { margin: 7px 0 13px; font-size: 13px; }
.agent-orb { display: grid; width: 39px; height: 39px; margin: 0 0 10px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg,#895df3,#5d34d1); box-shadow: 0 8px 15px rgba(99,50,221,.2); }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: -1px 0 19px; }
.search { position: relative; display: block; min-width: min(100%, 330px); flex: 1; }
.search span { position: absolute; top: 13px; left: 13px; color: #897f9c; font-size: 19px; font-weight: 400; }
.search input { width: 100%; padding-left: 38px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chips button { min-height: 33px; padding: 0 10px; border: 1px solid #e4deee; border-radius: 9px; color: #746a87; background: #fff; font-size: 12px; font-weight: 750; }
.filter-chips button.selected { border-color: #bca4f8; color: #5a33c0; background: #f1ebff; }
.table-panel { padding: 21px 0 4px; }
.table-panel > .filters, .table-panel > .panel-heading { margin-right: 21px; margin-left: 21px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 0 18px 11px; color: #847996; font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; }
td { padding: 14px 18px; border-top: 1px solid #eeeaf5; color: #4e4367; font-size: 13px; vertical-align: middle; }
td strong { display: block; color: #2b1d4a; font-size: 13px; }
td small { display: block; max-width: 230px; margin-top: 3px; overflow: hidden; color: #887d99; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.clickable-table tbody tr { cursor: pointer; }
.clickable-table tbody tr:hover { background: #fbfaff; }
.open-row { color: #6942ce; font-size: 12px; font-weight: 800; white-space: nowrap; }
.empty { padding: 33px 15px; color: #887e9e; line-height: 1.6; text-align: center; }
.empty.compact { padding: 22px 12px; }
.tag { display: inline-flex; padding: 5px 8px; border-radius: 8px; color: #695b91; background: #f0edf8; font-size: 11px; font-weight: 800; white-space: nowrap; }
.tag.accepted, .tag.completed { color: #147a55; background: #def5ea; }
.tag.pending, .tag.arrived { color: #a76517; background: #fff0d7; }
.tag.no_car, .tag.cancelled, .tag.no_show { color: #be3154; background: #ffe5ec; }

.presence { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #aaa1b8; }
.presence.online { background: #23a66e; box-shadow: 0 0 0 3px #e4f6ec; }
.voice-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 15px; }
.voice-summary-grid article { display: grid; gap: 6px; min-height: 89px; padding: 16px 18px; border: 1px solid #e4e0ed; border-radius: 14px; background: white; box-shadow: 0 7px 22px rgba(45,29,91,.03); }
.voice-summary-grid span { color: #7c7190; font-size: 12px; font-weight: 700; }
.voice-summary-grid strong { overflow: hidden; color: #2c1f4a; font-size: 21px; letter-spacing: -.4px; text-overflow: ellipsis; white-space: nowrap; }
.voice-info { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; padding: 13px 15px; border: 1px solid #d9e8ff; border-radius: 12px; color: #3b5d85; background: #f1f7ff; font-size: 13px; line-height: 1.45; }
.voice-info strong { color: #3977c7; font-size: 16px; }
.voice-library { padding: 0; overflow: hidden; }
.voice-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-bottom: 1px solid #eeeaf5; }
.voice-library-heading h3 { margin: 0; }
.voice-library-heading p { margin: 5px 0 0; color: #817691; font-size: 13px; }
.voice-search { flex: 0 1 290px; }
.voice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.voice-card { display: flex; min-height: 253px; flex-direction: column; justify-content: space-between; gap: 16px; padding: 18px; border: 0; border-right: 1px solid #eeeaf5; border-bottom: 1px solid #eeeaf5; border-radius: 0; background: #fff; }
.voice-card:hover { background: #fcfbff; }
.voice-card.selected { border: 2px solid #7040df; background: #faf8ff; box-shadow: 0 9px 19px rgba(102,58,222,.11); }
.voice-card-top, .voice-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.voice-avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; color: #6340c9; background: #ece5ff; font-weight: 900; }
.voice-card strong { color: #281a49; }
.voice-card p { margin: 5px 0 0; color: #766c8d; font-size: 13px; line-height: 1.45; }
.voice-language { color: #827599; font-size: 11px; font-weight: 750; }
.voice-preview { width: 100%; height: 34px; accent-color: #6f3edf; }
.voice-preview-unavailable { display: grid; height: 34px; place-items: center; border-radius: 8px; color: #9b91a8; background: #f7f5f9; font-size: 11px; }
.voice-rating { color: #b27a16; font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.notice { display: flex; gap: 11px; margin-top: 18px; padding: 15px; border: 1px solid #e2d8fb; border-radius: 13px; color: #63547d; background: #f7f3ff; line-height: 1.48; font-size: 14px; }
.notice strong { color: #463071; }

.plan-card h3 { margin-top: 14px; font-size: 22px; }
.plan-price { margin: 12px 0 22px; color: #2a1b4a; font-size: 34px; font-weight: 850; letter-spacing: -1px; }
.plan-price small { color: #817595; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.plan-details { display: grid; gap: 10px; }
.plan-details div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid #eeeaf5; }
.plan-details span { color: #7d7294; font-size: 13px; }
.plan-details strong { color: #362752; font-size: 13px; text-align: right; }
.consumption-card { display: flex; flex-direction: column; }
.consumption-number { display: grid; gap: 1px; margin: 17px 0 0; }
.consumption-card .muted-copy { margin-top: auto; }

.settings-list { display: grid; gap: 15px; max-width: 940px; }
.setting-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.setting-card h3 { margin-bottom: 7px; }
.setting-card p { max-width: 650px; margin: 0; font-size: 14px; }
.switch { display: grid; grid-template-columns: auto auto; grid-template-rows: 26px; align-items: center; column-gap: 9px; min-width: 118px; color: #625475; font-size: 12px; white-space: nowrap; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { position: relative; width: 45px; height: 26px; border-radius: 20px; background: #c9c2d7; transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: .2s; }
.switch input:checked + span { background: #7040df; }
.switch input:checked + span::after { transform: translateX(19px); }
.switch input:focus + span { outline: 3px solid #e8e0ff; }
.disabled-setting { opacity: .86; }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(28,19,52,.4); backdrop-filter: blur(2px); }
.modal { position: relative; width: min(100%, 710px); max-height: min(790px, calc(100vh - 44px)); overflow-y: auto; padding: 28px; border: 1px solid #e4dff0; border-radius: 20px; background: #fff; box-shadow: 0 25px 65px rgba(30,18,62,.28); }
.modal-close { position: absolute; top: 14px; right: 16px; display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 8px; color: #6e6380; background: transparent; font-size: 24px; line-height: 1; }
.modal-close:hover { color: #2d204a; background: #f2eff7; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-right: 33px; }
.modal-heading h2 { margin: 0; font-size: 26px; letter-spacing: -.7px; }
.modal-heading p:not(.eyebrow) { margin: 6px 0 0; color: #766d8d; line-height: 1.45; }
.route-box { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 22px 0 18px; overflow: hidden; border: 1px solid #e6e1ef; border-radius: 13px; background: #e6e1ef; }
.route-box div { display: grid; gap: 4px; padding: 14px; background: #faf9fc; }
.route-box span, .detail-grid dt { color: #8a7f9d; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .45px; }
.route-box strong { color: #33254f; font-size: 14px; }
.route-box small { color: #796e8c; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 28px; margin: 0; }
.detail-grid div { padding: 12px 0; border-bottom: 1px solid #eeeaf5; }
.detail-grid dt { margin-bottom: 4px; }
.detail-grid dd { margin: 0; color: #42345e; font-size: 14px; font-weight: 650; }
.modal-section-title { margin: 24px 0 11px !important; font-size: 15px !important; }
.timeline { display: grid; gap: 0; }
.timeline > div { position: relative; display: grid; gap: 2px; padding: 0 0 15px 22px; border-left: 1px solid #ddd6ec; }
.timeline > div:last-child { padding-bottom: 0; }
.timeline i { position: absolute; top: 4px; left: -5px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #8153e9; box-shadow: 0 0 0 1px #8153e9; }
.timeline strong { color: #453661; font-size: 13px; }
.timeline span { color: #8b809d; font-size: 12px; }
.timeline p { margin: 0; color: #857b97; }
.call-summary { padding: 14px; border-radius: 11px; color: #55486c; background: #f8f7fb; line-height: 1.55; font-size: 14px; white-space: pre-wrap; }
.audio-player { width: 100%; margin-top: 14px; }
.transcript { max-height: 260px; overflow: auto; margin: 0; padding: 14px; border-radius: 11px; color: #514464; background: #f8f7fb; font: 13px/1.55 Inter, ui-sans-serif, sans-serif; white-space: pre-wrap; }
.flag-list { display: grid; gap: 9px; }
.flag-list > div { display: grid; grid-template-columns: max-content minmax(0,1fr) max-content; gap: 5px 12px; align-items: center; padding: 12px; border: 1px solid #f1dce2; border-radius: 11px; background: #fff8fa; }
.flag-list strong { color: #97314c; font-size: 13px; }
.flag-list span { min-width: 0; color: #65495a; font-size: 13px; }
.flag-list small { grid-column: 1 / 3; color: #987a87; font-size: 11px; }
.flag-list .retracted { border-color: #e7e4eb; background: #fafafa; opacity: .7; }
.flag-list em { color: #776a83; font-size: 11px; font-style: normal; font-weight: 750; }
.simple-list { display: grid; }
.simple-list button { display: grid; grid-template-columns: 60px auto minmax(0,1fr); gap: 10px; align-items: center; padding: 11px 0; border: 0; border-bottom: 1px solid #eeeaf5; color: #4d3d66; background: transparent; text-align: left; }
.simple-list button:hover strong { color: #633ec9; }
.simple-list em { color: #887d99; font-size: 12px; font-style: normal; text-align: right; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; max-width: min(390px, calc(100vw - 44px)); padding: 14px 17px; border-radius: 12px; color: white; background: #28203f; box-shadow: 0 16px 35px rgba(22,15,42,.25); }

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .voice-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .portal { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 17px; }
  .sidebar .brand { margin: 0 0 15px; }
  .nav { display: flex; overflow-x: auto; gap: 5px; }
  .nav-label { display: none; }
  .nav button { flex: 0 0 auto; width: auto; }
  .nav-label.space { display: none; }
  .sidebar-footer { display: none; }
  .main { padding: 24px 20px 38px; }
}

@media (max-width: 670px) {
  .login-card { padding: 28px 22px; }
  .main { padding: 20px 13px 32px; }
  .topbar, .view-header { align-items: flex-start; flex-direction: column; }
  .header-actions { width: 100%; justify-content: space-between; }
  .user-actions { width: 100%; justify-content: flex-end; }
  .cards, .overview-grid, .split-sections, .voice-grid, .voice-summary-grid { grid-template-columns: 1fr; }
  .voice-library-heading { align-items: flex-start; flex-direction: column; }
  .voice-search { width: 100%; }
  .setting-card { align-items: flex-start; flex-direction: column; gap: 15px; }
  .route-box, .detail-grid { grid-template-columns: 1fr; }
  .modal { padding: 23px 18px; }
  th, td { padding-right: 13px; padding-left: 13px; }
  .table-panel > .filters, .table-panel > .panel-heading { margin-right: 13px; margin-left: 13px; }
  .filter-chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .filter-chips button { flex: 0 0 auto; }
  .voice-actions .button { flex: 1; }
}

@media (max-width: 430px) {
  .cards { grid-template-columns: 1fr; }
  .period-controls { display: none; }
  .simple-list button { grid-template-columns: 55px auto; }
  .simple-list em { grid-column: 1 / -1; text-align: left; }
  .flag-list > div { grid-template-columns: 1fr auto; }
  .flag-list span, .flag-list small { grid-column: 1 / -1; }
}
