:root {
  color-scheme: light;
  --ink: #1d302d;
  --ink-soft: #52635f;
  --muted: #82908c;
  --line: #e8ece8;
  --paper: #fff;
  --canvas: #f5f7f4;
  --green: #237a61;
  --green-dark: #185e4a;
  --mint: #e9f4ef;
  --coral: #e57962;
  --coral-pale: #fff0ec;
  --yellow: #f5c66c;
  --shadow: 0 12px 36px rgba(27, 55, 47, .055);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: 0 0 252px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 27px 16px 16px; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 10px 29px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--green); display: grid; place-items: center; position: relative; }
.brand-mark span { position: absolute; width: 17px; height: 5px; background: #fff; border-radius: 5px; }
.brand-mark span:first-child { transform: rotate(90deg); }
.brand-mark span:last-child { transform: rotate(0); }
.brand-name { font: 800 17px/1 "Manrope", sans-serif; letter-spacing: -.7px; color: var(--ink); }
.brand-name > span { color: var(--green); }
.brand-name small { display: block; font: 700 8px/1.5 "DM Sans", sans-serif; letter-spacing: 1.65px; color: #8b9994; padding-top: 5px; }
.eyebrow, .nav-caption { display: block; color: #9aa6a2; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.role-switcher { padding: 0 8px 26px; }
.role-switcher select { appearance: none; width: 100%; margin-top: 10px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfb; color: var(--ink); font-size: 12px; font-weight: 600; padding: 0 34px 0 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%237d8b86' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.primary-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-caption { padding: 0 12px 9px; }
.nav-caption-spaced { padding-top: 22px; }
.nav-item { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 8px; background: transparent; padding: 0 12px; text-align: left; color: #63716d; font-size: 12px; font-weight: 500; transition: background .18s ease, color .18s ease; }
.nav-item:hover { background: #f5f8f6; color: var(--green-dark); }
.nav-item.active { background: var(--mint); color: var(--green-dark); font-weight: 700; }
.nav-icon { width: 17px; text-align: center; font-size: 17px; line-height: 1; color: #71817b; }
.nav-item.active .nav-icon { color: var(--green); }
.nav-emergency { color: var(--coral); }
.nav-new { margin-left: auto; font-size: 8px; font-weight: 700; color: var(--green); background: #d7eee3; padding: 3px 5px; border-radius: 4px; }
.sidebar-bottom { margin-top: auto; }
.help-card { border: 1px solid #e8eee9; border-radius: 10px; padding: 14px; margin: 18px 2px 17px; position: relative; background: #fcfdfc; }
.help-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--mint); font-weight: 700; font-size: 12px; margin-bottom: 9px; }
.help-card strong { display: block; font: 700 12px "Manrope", sans-serif; }
.help-card p { color: var(--muted); font-size: 10px; margin: 5px 0 10px; line-height: 1.5; }
.text-button { padding: 0; border: 0; background: none; color: var(--green); font-size: 10px; font-weight: 700; }
.text-button span { font-size: 15px; vertical-align: -1px; margin-left: 4px; }
.profile-mini { display: flex; gap: 9px; align-items: center; border-top: 1px solid var(--line); padding: 14px 6px 0; }
.avatar { flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; font-weight: 700; }
.avatar-user { background: #f0dfc7; color: #755c41; }
.profile-mini .avatar { width: 34px; height: 34px; font-size: 11px; }
.profile-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.profile-copy strong { font-size: 11px; }
.profile-copy span { color: var(--muted); font-size: 9px; }
.profile-menu { margin-left: auto; font-weight: 700; letter-spacing: 2px; }
.main-content { min-width: 0; flex: 1; }
.topbar { height: 72px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); display: flex; align-items: center; justify-content: space-between; padding: 0 38px; }
.breadcrumb { display: flex; align-items: center; gap: 12px; color: #8a9692; font-size: 11px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.crumb-divider { color: #bec7c3; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.location-pill { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #62706c; padding: 8px 10px; font-size: 10px; }
.location-pill > span:first-child { color: var(--green); font-size: 14px; }
.chevron { color: #9aa6a1; padding-left: 4px; }
.language-button { border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; padding: 7px 3px; }
.icon-button { position: relative; width: 29px; height: 29px; display: grid; place-items: center; border: 0; background: transparent; color: #63726d; border-radius: 7px; font-size: 18px; }
.icon-button:hover { background: #f0f4f1; }
.notification-button { font-size: 16px; }
.notification-button i { position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); border: 1px solid white; }
.top-avatar { width: 31px; height: 31px; font-size: 10px; }
.mobile-menu { display: none; }
.page-wrap { max-width: 1380px; padding: 19px 38px 24px; margin: 0 auto; }
.demo-banner { min-height: 31px; display: flex; gap: 7px; align-items: center; background: #eff5f0; border-radius: 6px; padding: 0 11px; margin-bottom: 23px; color: #76847e; font-size: 9px; }
.demo-banner > span:nth-child(2) { color: #587569; font-size: 8px; font-weight: 700; letter-spacing: .9px; }
.demo-dot { width: 6px; height: 6px; border-radius: 50%; background: #7bad8b; }
.demo-divider { color: #adb9b2; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 21px; }
.page-heading h1 { font: 800 24px/1.25 "Manrope", sans-serif; letter-spacing: -.9px; margin: 0; }
.page-heading p { color: #87938f; font-size: 11px; margin: 6px 0 0; }
.heading-actions { display: flex; gap: 9px; }
.button { min-height: 36px; padding: 0 13px; border-radius: 7px; font-size: 10px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: #586762; transition: transform .12s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--green); background: var(--green); color: #fff; box-shadow: 0 4px 10px rgba(35,122,97,.14); }
.button-primary:hover { background: var(--green-dark); }
.button-danger { border-color: #df7967; background: #df7967; color: white; }
.button-soft { border-color: #dcebe3; background: #eff7f2; color: var(--green-dark); }
.button-small { min-height: 30px; padding: 0 10px; font-size: 9px; }
.grid { display: grid; gap: 14px; }
.overview-grid { grid-template-columns: minmax(0, 1.5fr) minmax(250px, .9fr); }
.welcome-card { min-height: 193px; background: #eaf3ed; border-radius: 12px; padding: 24px 25px; position: relative; overflow: hidden; display: flex; align-items: center; }
.welcome-card:after { content: ""; position: absolute; width: 230px; height: 230px; border: 1px solid rgba(35,122,97,.1); border-radius: 50%; right: 27px; top: -98px; box-shadow: 0 0 0 25px rgba(35,122,97,.025), 0 0 0 50px rgba(35,122,97,.025); }
.welcome-copy { position: relative; z-index: 1; max-width: 64%; }
.welcome-kicker { color: #6f9582; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.welcome-card h2 { font: 800 22px/1.3 "Manrope", sans-serif; letter-spacing: -.8px; margin: 8px 0 5px; }
.welcome-card h2 span { color: var(--green); }
.welcome-card p { color: #73847a; font-size: 10px; line-height: 1.6; margin: 0 0 15px; }
.welcome-card .button { min-height: 32px; }
.welcome-art { position: absolute; width: 170px; height: 150px; right: 3.5%; bottom: -3px; display: flex; justify-content: center; align-items: flex-end; }
.art-sun { position: absolute; right: 23px; top: 5px; width: 54px; height: 54px; border-radius: 50%; background: #f3cb7c; }
.art-plant { position: absolute; bottom: 1px; left: 16px; width: 63px; height: 69px; background: #9fbd9d; border-radius: 60% 0 60% 20%; transform: rotate(-35deg); opacity: .8; }
.art-plant:after { content: ""; position: absolute; height: 44px; width: 43px; border-radius: 60% 0 60% 0; background: #6e9a80; transform: rotate(50deg); left: 34px; top: 28px; }
.art-person { position: relative; z-index: 1; width: 52px; height: 92px; border-radius: 25px 25px 5px 5px; background: #41886d; margin-left: 43px; }
.art-person:before { content: ""; position: absolute; width: 35px; height: 35px; border-radius: 50%; background: #d99a70; top: -28px; left: 8px; box-shadow: 2px -5px 0 4px #4e5143; }
.art-person:after { content: ""; position: absolute; width: 72px; height: 12px; background: #36795f; bottom: 0; left: -10px; border-radius: 8px 8px 0 0; }
.quick-stack { display: flex; flex-direction: column; gap: 12px; }
.quick-card { display: flex; align-items: center; gap: 12px; flex: 1; border-radius: 11px; background: #fff; border: 1px solid #edf0ed; box-shadow: 0 4px 16px rgba(35,58,50,.025); padding: 14px; }
.quick-icon { width: 37px; height: 37px; border-radius: 10px; display: grid; place-items: center; background: #eef5f0; color: var(--green); font-size: 19px; flex: 0 0 auto; }
.quick-card:nth-child(2) .quick-icon { background: #fff3e2; color: #ba8a3c; }
.quick-card strong { display: block; font: 700 11px "Manrope", sans-serif; }
.quick-card p { margin: 4px 0 0; color: #899590; font-size: 9px; }
.quick-arrow { margin-left: auto; color: #9aa69f; font-size: 15px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin: 23px 0 11px; }
.section-title-row h2 { font: 700 13px "Manrope", sans-serif; margin: 0; }
.section-title-row a, .section-link { text-decoration: none; font-size: 9px; color: var(--green); font-weight: 700; cursor: pointer; }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; }
.metric-card { background: #fff; border: 1px solid #edf0ed; border-radius: 10px; padding: 14px 15px; min-height: 91px; }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: #87948f; font-size: 9px; }
.metric-top span:last-child { color: var(--green); font-size: 14px; }
.metric-value { font: 800 19px "Manrope", sans-serif; margin-top: 9px; letter-spacing: -.4px; }
.metric-note { color: #9aa49f; font-size: 8px; margin-top: 3px; }
.two-column { grid-template-columns: minmax(0, 1.3fr) minmax(250px, .8fr); }
.panel { background: #fff; border: 1px solid #edf0ed; border-radius: 10px; box-shadow: 0 4px 16px rgba(35,58,50,.025); padding: 17px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.panel-heading h3 { font: 700 12px "Manrope", sans-serif; margin: 0; }
.panel-heading p { color: var(--muted); font-size: 9px; margin: 4px 0 0; }
.appointment-row { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid #f0f2f0; }
.doctor-avatar { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #487c68; background: #e9f1ec; font-size: 12px; font-weight: 700; }
.appointment-copy { flex: 1; min-width: 0; }
.appointment-copy strong { font-size: 10px; display: block; }
.appointment-copy span { font-size: 9px; color: #87938e; display: block; margin-top: 4px; }
.date-chip { padding: 6px 8px; border-radius: 6px; background: #f3f7f4; color: #628071; text-align: center; font-size: 8px; font-weight: 700; line-height: 1.4; }
.scheme-row { padding: 10px 0; border-top: 1px solid #f0f2f0; display: flex; gap: 9px; align-items: flex-start; }
.scheme-bullet { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: #f6f1e7; color: #aa8541; font-size: 11px; }
.scheme-row strong { display: block; font-size: 9px; line-height: 1.4; }
.scheme-row span { color: #929d98; display: block; font-size: 8px; margin-top: 3px; }
.note-card { padding: 13px; border-radius: 8px; background: #f7f9f7; color: #71807a; font-size: 9px; line-height: 1.55; }
.note-card strong { color: #496258; }
.content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.care-card, .directory-card { background: #fff; border: 1px solid #edf0ed; border-radius: 10px; padding: 16px; }
.care-card-top { display: flex; gap: 11px; align-items: center; margin-bottom: 13px; }
.care-card h3 { font: 700 12px "Manrope", sans-serif; margin: 0 0 4px; }
.care-card p { color: #899590; font-size: 9px; margin: 0; }
.rating { color: #a97e35; font-size: 9px; margin-top: 8px; }
.care-meta { border-top: 1px solid #f0f2f0; border-bottom: 1px solid #f0f2f0; padding: 10px 0; display: flex; justify-content: space-between; margin-bottom: 11px; color: #7d8b85; font-size: 8px; }
.care-card .button { width: 100%; }
.filter-row { display: flex; gap: 9px; margin-bottom: 13px; flex-wrap: wrap; }
.field, .filter-select, .text-area { border: 1px solid #e4e9e5; border-radius: 7px; background: #fff; color: var(--ink); padding: 10px 11px; outline: none; font-size: 10px; }
.field:focus, .filter-select:focus, .text-area:focus { border-color: #83b49e; box-shadow: 0 0 0 3px rgba(35,122,97,.08); }
.field { min-width: 0; }
.filter-select { min-width: 130px; }
.filter-row .field { flex: 1; }
.record-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid #f0f2f0; }
.record-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #edf4ef; color: var(--green); font-size: 15px; flex: 0 0 auto; }
.record-copy { flex: 1; }
.record-copy strong { display: block; font-size: 10px; }
.record-copy span { color: var(--muted); font-size: 8px; display: block; margin-top: 4px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 20px; background: #eef6f0; color: #60806b; font-size: 8px; font-weight: 600; }
.status-pill:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #70a57e; }
.status-pending { background: #fff5e6; color: #9b773f; }
.status-pending:before { background: #d4a759; }
.status-urgent { background: #fff0ec; color: #bd6958; }
.status-urgent:before { background: #db7765; }
.assistant-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(230px, .65fr); gap: 14px; }
.chat-panel { padding: 0; display: flex; flex-direction: column; min-height: 420px; overflow: hidden; }
.chat-header { display: flex; gap: 10px; align-items: center; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.assistant-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--green); background: var(--mint); border-radius: 10px; font-size: 17px; }
.chat-header strong { font: 700 11px "Manrope", sans-serif; display: block; }
.chat-header span { font-size: 8px; color: #83908b; display: block; margin-top: 3px; }
.online-dot { width: 7px; height: 7px; background: #7eb68c; border-radius: 50%; margin-left: auto; }
.chat-messages { display: flex; flex-direction: column; gap: 11px; padding: 18px; flex: 1; max-height: 310px; overflow-y: auto; }
.chat-message { max-width: 86%; padding: 10px 12px; border-radius: 4px 11px 11px 11px; background: #f2f6f3; color: #596a63; font-size: 10px; line-height: 1.6; white-space: pre-line; }
.chat-message.user { align-self: flex-end; background: #e5f1e9; color: #466858; border-radius: 11px 4px 11px 11px; }
.chat-compose { border-top: 1px solid var(--line); display: flex; gap: 8px; padding: 12px; }
.chat-compose .field { flex: 1; }
.assistant-disclaimer { margin: 0 12px 12px; color: #939e99; text-align: center; font-size: 8px; line-height: 1.5; }
.suggestion-chip { display: inline-block; border: 1px solid #e4eae5; color: #71827a; background: #fff; padding: 7px 9px; border-radius: 20px; font-size: 8px; margin: 3px 3px 0 0; cursor: pointer; }
.suggestion-chip:hover { background: #f0f6f2; }
.emergency-hero { padding: 22px; border: 1px solid #f6ded8; border-radius: 11px; background: #fff8f6; display: flex; gap: 18px; align-items: center; }
.sos-circle { width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; background: #fbe2dc; color: #c86857; border-radius: 50%; font-size: 23px; }
.emergency-hero h2 { font: 700 15px "Manrope", sans-serif; margin: 0 0 6px; }
.emergency-hero p { color: #8e7c77; margin: 0; font-size: 10px; line-height: 1.6; max-width: 540px; }
.emergency-actions { margin-left: auto; display: flex; flex-direction: column; gap: 7px; }
.emergency-grid { grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); margin-top: 14px; }
.contact-row { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid #f0f2f0; }
.contact-row strong { font-size: 10px; display: block; }
.contact-row span { font-size: 8px; color: var(--muted); display: block; margin-top: 4px; }
.contact-row a { margin-left: auto; text-decoration: none; font-size: 9px; color: var(--green); font-weight: 700; }
.scheme-card { background: #fff; border: 1px solid #edf0ed; border-radius: 10px; padding: 15px; }
.scheme-card h3 { font: 700 11px/1.5 "Manrope", sans-serif; margin: 10px 0 5px; }
.scheme-card p { color: #899590; font-size: 9px; line-height: 1.5; margin: 0 0 12px; }
.scheme-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { border-radius: 20px; padding: 4px 7px; background: #f1f5f2; color: #647a6d; font-size: 8px; }
.scheme-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid #f0f2f0; padding-top: 10px; }
.eligibility-box { background: #f8faf8; border: 1px solid #edf0ed; border-radius: 10px; padding: 17px; }
.eligibility-box h3 { font: 700 12px "Manrope", sans-serif; margin: 0 0 5px; }
.eligibility-box > p { font-size: 9px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { color: #718079; font-size: 9px; font-weight: 600; }
.form-field .field, .form-field .filter-select { width: 100%; }
.form-field.full { grid-column: 1 / -1; }
.form-submit { margin-top: 11px; }
.result-list { margin-top: 11px; }
.result-item { display: flex; gap: 8px; padding: 9px; border-radius: 7px; background: #eef5f0; font-size: 9px; color: #5e7568; margin-top: 6px; line-height: 1.45; }
.simple-empty { text-align: center; padding: 29px 15px; color: #84918b; }
.simple-empty .empty-icon { width: 47px; height: 47px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 14px; background: #eef5f0; color: var(--green); font-size: 20px; }
.simple-empty strong { color: #52635b; font: 700 11px "Manrope", sans-serif; display: block; }
.simple-empty p { font-size: 9px; line-height: 1.5; max-width: 300px; margin: 6px auto 13px; }
.support-type { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #f0f2f0; font-size: 10px; color: #5e6e66; }
.support-type input { accent-color: var(--green); }
.donor-card { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid #edf0ed; border-radius: 9px; padding: 13px; }
.blood-type { width: 39px; height: 39px; display: grid; place-items: center; background: #fff0ec; color: #c86857; border-radius: 10px; font: 800 12px "Manrope", sans-serif; }
.donor-info { flex: 1; }
.donor-info strong { display: block; font-size: 10px; }
.donor-info span { color: #8a9690; display: block; font-size: 8px; margin-top: 4px; }
.pharmacy-list { display: flex; flex-direction: column; gap: 9px; }
.pharmacy-row { padding: 12px; border-radius: 8px; border: 1px solid #edf0ed; background: #fff; display: flex; align-items: center; gap: 11px; }
.pharmacy-row .quick-icon { width: 33px; height: 33px; font-size: 16px; }
.pharmacy-row strong { display: block; font-size: 10px; }
.pharmacy-row span { display: block; color: #8a9690; font-size: 8px; margin-top: 4px; }
.pharmacy-row .button { margin-left: auto; }
.dashboard-list { display: grid; gap: 9px; }
.task-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f0f2f0; padding: 10px 0; }
.task-row:last-child { border-bottom: 0; }
.task-row > div:nth-child(2) { flex: 1; }
.task-row strong { display: block; font-size: 10px; }
.task-row span { display: block; color: #8a9690; font-size: 8px; margin-top: 4px; }
.app-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 29px; color: #9aa49f; font-size: 8px; }
.app-footer a { color: var(--green); font-weight: 700; text-decoration: none; }
.footer-dot { color: #c1cac5; padding: 0 4px; }
.toast { z-index: 20; position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; max-width: calc(100vw - 30px); background: #253a33; color: white; border-radius: 8px; padding: 11px 15px; font-size: 10px; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { z-index: 15; position: fixed; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(24,40,34,.38); }
.modal-card { width: min(460px, 100%); background: #fff; border-radius: 12px; padding: 21px; box-shadow: 0 20px 70px rgba(20,40,32,.2); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.modal-header h2 { font: 700 15px "Manrope", sans-serif; margin: 0; }
.modal-header p { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 5px 0 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .sidebar { width: 225px; flex-basis: 225px; }
  .topbar { padding: 0 25px; }
  .page-wrap { padding: 19px 25px 24px; }
  .overview-grid { grid-template-columns: minmax(0,1.3fr) minmax(220px,.8fr); }
  .content-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: 260px; transform: translateX(-105%); transition: transform .2s; box-shadow: 15px 0 35px rgba(20,40,32,.1); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: grid; }
  .topbar { height: 61px; padding: 0 17px; gap: 10px; }
  .breadcrumb { margin-right: auto; gap: 7px; font-size: 10px; }
  .topbar-actions { gap: 10px; }
  .location-pill { display: none; }
  .page-wrap { padding: 15px 17px 22px; }
  .overview-grid, .two-column, .emergency-grid, .assistant-layout { grid-template-columns: 1fr; }
  .welcome-card { min-height: 177px; }
  .quick-stack { flex-direction: row; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .emergency-hero { align-items: flex-start; flex-wrap: wrap; }
  .emergency-actions { margin-left: 80px; flex-direction: row; }
}
@media (max-width: 520px) {
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-heading h1 { font-size: 21px; }
  .page-heading p { max-width: 290px; line-height: 1.5; }
  .heading-actions { width: 100%; }
  .quick-stack { flex-direction: column; }
  .welcome-copy { max-width: 75%; }
  .welcome-card h2 { font-size: 19px; }
  .welcome-art { opacity: .45; right: -24px; }
  .content-grid { grid-template-columns: 1fr; }
  .topbar-actions { gap: 7px; }
  .language-button { font-size: 10px; }
  .notification-button { display: none; }
  .demo-banner { align-items: flex-start; padding: 8px 10px; line-height: 1.5; }
  .demo-dot { margin-top: 3px; flex: 0 0 auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .app-footer { flex-direction: column; }
  .emergency-actions { margin-left: 0; }
}
