:root {
    --orange: #f58220;
    --orange-dark: #c95b05;
    --orange-soft: #fff1e6;
    --ink: #20242a;
    --muted: #68717d;
    --line: #dfe3e8;
    --surface: #ffffff;
    --canvas: #f5f6f8;
    --green: #18784d;
    --green-soft: #e7f6ee;
    --red: #a93b3b;
    --red-soft: #faeaea;
    --yellow: #8c5b00;
    --yellow-soft: #fff4cf;
    --shadow: 0 10px 28px rgba(28, 33, 40, .08);
}

* { box-sizing: border-box; }
html { font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--canvas); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: #9f4805; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header { background: linear-gradient(105deg, #f58220, #ef700b); color: #fff; box-shadow: 0 2px 12px rgba(91, 45, 4, .18); }
.header-inner { max-width: 1500px; margin: 0 auto; min-height: 88px; padding: 9px 20px; display: flex; align-items: center; gap: 16px; }
.brand { color: #fff; display: flex; align-items: center; gap: 13px; min-width: 290px; }
.brand:hover { text-decoration: none; }
.brand img { width: 215px; height: 66px; object-fit: contain; object-position: left center; }
.brand span { font-weight: 700; line-height: 1.15; max-width: 105px; border-left: 1px solid rgba(255,255,255,.48); padding-left: 13px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; flex: 1; }
.main-nav a { color: #fff; padding: 9px 8px; border-radius: 7px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { background: rgba(117, 47, 0, .22); text-decoration: none; }
.user-menu { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13px; white-space: nowrap; }
.user-menu form { margin: 0; }
.user-menu button { color: #fff; background: rgba(79,31,0,.25); border: 0; padding: 8px 10px; border-radius: 6px; }

.page-shell { flex: 1; width: min(1500px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 64px; }
.site-footer { text-align: center; padding: 22px; color: var(--muted); background: #eceef1; font-size: 13px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 0 0 24px; }
.page-heading h1 { margin: 5px 0 6px; font-size: clamp(27px, 3vw, 39px); letter-spacing: -.025em; }
.page-heading p, .section-heading p { margin: 0; color: var(--muted); }
.heading-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.eyebrow { color: var(--orange-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.back-link { display: inline-block; margin-bottom: 8px; color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 8px rgba(27,32,38,.04); padding: 22px; margin-bottom: 22px; }
.compact-panel { padding: 0; overflow: hidden; }
.compact-panel summary { padding: 18px 22px; font-weight: 700; cursor: pointer; }
.compact-panel[open] summary { border-bottom: 1px solid var(--line); }
.compact-panel form { padding: 18px 22px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; border: 1px solid #cfd4da; color: var(--ink); background: #fff; border-radius: 8px; font-weight: 700; text-decoration: none; }
.button:hover { border-color: #aeb5bd; background: #fafafa; text-decoration: none; }
.button-primary { color: #fff; border-color: var(--orange-dark); background: var(--orange); box-shadow: 0 4px 10px rgba(201,91,5,.2); }
.button-primary:hover { color: #fff; background: var(--orange-dark); }
.button-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.button-large { min-height: 50px; padding: 12px 24px; }

.alert { border-radius: 9px; padding: 13px 16px; margin: 0 0 18px; border: 1px solid transparent; }
.alert-success { color: var(--green); background: var(--green-soft); border-color: #b9e0cd; }
.alert-error { color: var(--red); background: var(--red-soft); border-color: #efc3c3; }
.notice { background: #f6f7f9; border-left: 4px solid var(--orange); padding: 14px 16px; border-radius: 6px; color: #4d5661; }

.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(135px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-grid article { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 10px; padding: 18px; }
.stat-grid strong { display: block; font-size: 30px; }
.stat-grid span { color: var(--muted); font-size: 14px; }
.stat-grid .stat-good { border-top-color: var(--green); }
.stat-grid .stat-muted { border-top-color: #7b8591; }
.stat-grid .stat-warn { border-top-color: #d28a00; }

label { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: 14px; }
input, select, textarea { width: 100%; border: 1px solid #cbd1d8; border-radius: 7px; background: #fff; color: var(--ink); padding: 10px 11px; min-height: 42px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(245,130,32,.18); border-color: var(--orange); }
.stack-form { display: grid; gap: 18px; }
.inline-form, .filter-bar { display: flex; align-items: flex-end; gap: 13px; flex-wrap: wrap; }
.date-inline-form { display: flex; gap: 6px; align-items: center; min-width: 235px; }
.date-inline-form input[type="date"] { min-width: 145px; padding: 8px 9px; }
.button-small { min-height: 36px; padding: 7px 10px; font-size: .78rem; }
.grow { flex: 1 1 260px; }
.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.check { flex-direction: row; align-items: center; }
.check input { width: auto; min-height: 0; }
.hint { color: var(--muted); font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: 9px; padding: 16px; display: grid; gap: 13px; }
legend { padding: 0 7px; font-weight: 800; color: var(--orange-dark); }

.auth-card { width: min(460px, 100%); margin: 45px auto; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--orange); border-radius: 13px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 7px 0; font-size: 31px; }
.auth-card > p { color: var(--muted); margin: 0 0 24px; line-height: 1.55; }
.setup-card { width: min(760px, 100%); }

.table-wrap, .matrix-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 13px 12px; text-align: left; vertical-align: middle; }
thead th { background: #f1f3f5; color: #4a535e; font-size: 12px; text-transform: uppercase; letter-spacing: .035em; }
tbody tr:hover { background: #fffaf6; }
.person-link { color: var(--ink); font-weight: 800; }
.empty { text-align: center; color: var(--muted); padding: 32px; }

.badge { display: inline-flex; align-items: center; width: max-content; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #5f6670; background: #eef0f3; }
.badge-activo { color: var(--green); background: var(--green-soft); }
.badge-baja { color: var(--red); background: var(--red-soft); }
.badge-pendiente { color: var(--yellow); background: var(--yellow-soft); }
.staff-type { display: inline-flex; width: max-content; padding: 3px 6px; border-radius: 999px; color: #46515d; background: #e9edf1; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .03em; }
.staff-honorarios { color: #785100; background: #fff1c7; }
.staff-servicio_social { color: #316179; background: #e3f2f8; }
.count-pill { padding: 8px 13px; border-radius: 999px; color: var(--yellow); background: var(--yellow-soft); font-weight: 800; }

.category-summary { display: grid; grid-template-columns: repeat(4,minmax(220px,1fr)); gap: 16px; margin-bottom: 24px; }
.cat-card.cat-index-1 { --cat: #f58220; }
.cat-card.cat-index-2 { --cat: #c25b10; }
.cat-card.cat-index-3 { --cat: #8f3b76; }
.cat-card.cat-index-4 { --cat: #5f6670; }
.category-summary article { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--cat); border-radius: 10px; overflow: hidden; }
.category-summary h2 { font-size: 18px; padding: 16px 18px; margin: 0; }
.category-summary ul { list-style: none; padding: 0; margin: 0; }
.category-summary li { display: flex; gap: 9px; padding: 10px 18px; border-top: 1px solid #edf0f2; font-size: 13px; line-height: 1.35; }
.category-summary li.done span { color: var(--green); font-weight: 900; }
.category-summary li.missing { color: #737d87; }
.category-summary li.not-applicable { color: #7a828a; background: #f1f3f5; }
.category-summary li.not-applicable span { min-width: 24px; color: #59636d; font-size: 10px; font-weight: 900; }

.matrix-table { min-width: max-content; }
.matrix-table th, .matrix-table td { border: 1px solid #d5dbe1; }
.matrix-table thead th:not(.sticky-name) { min-width: 150px; max-width: 190px; height: 110px; vertical-align: bottom; background: #dce7f2; text-transform: none; font-size: 12px; }
.matrix-table thead th span { display: block; line-height: 1.3; }
.matrix-table .sticky-name { position: sticky; left: 0; z-index: 2; min-width: 260px; max-width: 300px; background: #fff; box-shadow: 2px 0 5px rgba(30,35,40,.08); }
.matrix-table thead .sticky-name { z-index: 3; background: var(--orange); color: #fff; }
.matrix-table tbody .sticky-name a { display: block; color: var(--ink); margin-bottom: 5px; }
.matrix-cell { text-align: center; font-size: 11px; font-weight: 800; }
.matrix-cell.complete { background: var(--green-soft); color: var(--green); }
.matrix-cell.complete a { color: var(--green); }
.matrix-cell.missing { background: #f2f3f5; color: #89919a; }

/* Matriz principal: conserva la lectura tipo hoja de cálculo del piloto. */
.matrix-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 20px; }
.matrix-hero h1 { margin: 5px 0 7px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1; letter-spacing: -.035em; }
.matrix-hero p { margin: 0; color: var(--muted); }
.matrix-legend { display: inline-flex; align-items: center; gap: 7px; color: #555e68; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.matrix-legend i { width: 13px; height: 13px; border: 1px solid; border-radius: 3px; }
.legend-complete { background: var(--green-soft); border-color: #a9d8c1 !important; }
.legend-missing { background: var(--red-soft); border-color: #e8bbbb !important; }
.legend-na { background: #edf0f3; border-color: #c7ced5 !important; }

.matrix-summary { display: grid; grid-template-columns: repeat(4,minmax(155px,1fr)); gap: 12px; margin-bottom: 16px; }
.matrix-summary article { min-height: 96px; padding: 14px 17px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 10px; }
.matrix-summary span, .matrix-summary small { display: block; color: var(--muted); font-size: 12px; }
.matrix-summary span { font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.matrix-summary strong { display: block; margin: 3px 0 2px; font-size: 29px; line-height: 1.1; }
.matrix-summary .summary-progress { border-top-color: var(--green); }
.matrix-summary .summary-missing { border-top-color: var(--red); }
.matrix-summary progress, .matrix-progress progress { display: block; width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: 999px; appearance: none; background: #e4e8ec; }
.matrix-summary progress { margin-top: 9px; }
.matrix-progress progress { margin: 5px 0 3px; }
.matrix-summary progress::-webkit-progress-bar, .matrix-progress progress::-webkit-progress-bar { background: #e4e8ec; }
.matrix-summary progress::-webkit-progress-value, .matrix-progress progress::-webkit-progress-value { background: var(--green); border-radius: 999px; }
.matrix-summary progress::-moz-progress-bar, .matrix-progress progress::-moz-progress-bar { background: var(--green); border-radius: 999px; }

.compliance-card { overflow: hidden; margin-bottom: 20px; background: #fff; border: 1px solid #d8dde3; border-radius: 11px; box-shadow: 0 4px 16px rgba(27,32,38,.06); }
.matrix-tabs { display: flex; gap: 0; overflow-x: auto; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.matrix-tabs a { flex: 0 0 auto; padding: 14px 16px 12px; border-bottom: 3px solid transparent; color: #5d6670; font-size: 13px; font-weight: 800; white-space: nowrap; }
.matrix-tabs a:hover { color: var(--orange-dark); text-decoration: none; }
.matrix-tabs a.active { color: var(--orange-dark); border-bottom-color: var(--orange); background: #fff7f0; }

.matrix-toolbar { display: grid; grid-template-columns: minmax(180px,1.1fr) 140px minmax(210px,1.35fr) 140px 140px 130px 140px; align-items: end; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); background: #fff; }
.matrix-toolbar label { min-width: 0; color: #505964; font-size: 11px; text-transform: uppercase; letter-spacing: .035em; }
.matrix-toolbar input, .matrix-toolbar select { min-height: 39px; padding: 8px 9px; font-size: 13px; text-transform: none; letter-spacing: normal; }
.matrix-toolbar-actions { display: flex; grid-column: 1 / -1; align-items: center; justify-content: flex-end; gap: 7px; }
.matrix-toolbar-actions .button { min-height: 39px; padding: 8px 12px; font-size: 12px; white-space: nowrap; }

.compliance-scroll { max-height: 66vh; min-height: 350px; overflow: auto; overscroll-behavior: contain; background: #fff; scrollbar-color: #aeb6bf #edf0f2; }
.compliance-scroll:focus { outline: 3px solid rgba(245,130,32,.24); outline-offset: -3px; }
.compliance-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
.compliance-table th, .compliance-table td { padding: 0; border: 0; border-right: 1px solid #d6dce2; border-bottom: 1px solid #d6dce2; }
.compliance-table thead th { text-transform: none; letter-spacing: 0; }
.compliance-table .group-row th { position: sticky; top: 0; z-index: 5; height: 38px; }
.compliance-table .course-row th { position: sticky; top: 38px; z-index: 4; }
.provider-group { color: #fff; background: #616a74; text-align: center; font-size: 13px; font-weight: 900; text-transform: uppercase !important; letter-spacing: .055em !important; }
.provider-group.provider-1 { background: #f58220; }
.provider-group.provider-2 { background: #c25b10; }
.provider-group.provider-3 { background: #8f3b76; }
.provider-group.provider-4 { background: #5f6670; }
.matrix-person-head, .matrix-progress-head { z-index: 8 !important; color: #fff !important; background: #363d45 !important; text-align: left; font-weight: 900; text-transform: uppercase !important; letter-spacing: .04em !important; }
.matrix-person-head { left: 0; width: 255px; min-width: 255px; padding: 0 14px !important; }
.matrix-progress-head { left: 255px; width: 96px; min-width: 96px; padding: 0 10px !important; text-align: center; box-shadow: 4px 0 7px rgba(28,33,40,.11); }
.matrix-course-head { width: 140px; min-width: 140px; height: 88px; padding: 10px 9px !important; vertical-align: bottom; color: #303943; background: #e8eff5 !important; text-align: left; font-size: 11px !important; font-weight: 800; line-height: 1.23; }
.matrix-course-head span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.matrix-person { position: sticky; left: 0; z-index: 3; width: 255px; min-width: 255px; height: 64px; padding: 9px 14px !important; background: #fff; text-align: left; box-shadow: 1px 0 0 #d6dce2; }
.matrix-person > a { display: block; overflow: hidden; margin-bottom: 6px; color: #252b31; font-size: 13px; font-weight: 850; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.matrix-person > div { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; }
.matrix-person small { color: #78818b; font-size: 10px; font-weight: 600; }
.matrix-person .badge { padding: 3px 6px; font-size: 9px; }
.matrix-progress { position: sticky; left: 255px; z-index: 3; width: 96px; min-width: 96px; padding: 7px 11px !important; background: #f8f9fa; text-align: center; box-shadow: 4px 0 7px rgba(28,33,40,.08); }
.matrix-progress strong { display: block; color: #39414a; font-size: 13px; }
.matrix-progress small { color: #79828c; font-size: 10px; }
.matrix-status-cell { width: 140px; min-width: 140px; height: 64px; text-align: center; font-size: 10px; font-weight: 900; letter-spacing: .025em; }
.matrix-status-cell.completed { color: var(--green); background: var(--green-soft); }
.matrix-status-cell.missing { color: var(--red); background: var(--red-soft); }
.matrix-status-cell.not-applicable { color: #68727c; background: #edf0f3; }
.matrix-status-cell > span { display: block; }
.evidence-files { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 27px; margin-top: 4px; }
.evidence-file { position: relative; display: inline-flex; width: 22px; height: 26px; align-items: center; justify-content: center; color: #fff; background: #168054; border-radius: 3px; box-shadow: 0 1px 2px rgba(20,70,48,.22); }
.evidence-file::after { content: ''; position: absolute; top: 0; right: 0; border-top: 6px solid #d8f0e4; border-left: 6px solid transparent; }
.evidence-file:hover { color: #fff; background: #0f6843; text-decoration: none; transform: translateY(-1px); }
.evidence-file i { position: absolute; left: 4px; right: 4px; bottom: 5px; height: 2px; border-top: 1px solid rgba(255,255,255,.65); border-bottom: 1px solid rgba(255,255,255,.65); }
.evidence-file b { position: relative; z-index: 1; margin-top: -7px; font-size: 9px; line-height: 1; }
.compliance-table tbody tr:hover .matrix-person, .compliance-table tbody tr:hover .matrix-progress { background: #fff8f2; }
.compliance-table tbody tr:hover .matrix-status-cell { filter: saturate(1.15); }
.add-person-panel { margin-top: 0; }

@media (max-width: 1400px) {
    .matrix-toolbar { grid-template-columns: repeat(4,minmax(160px,1fr)); }
    .matrix-toolbar-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

.upload-panel { max-width: 920px; }
.upload-drop { position: relative; border: 2px dashed #c4cad1; border-radius: 12px; background: #fafbfc; padding: 28px; text-align: center; transition: .15s ease; }
.upload-drop.dragover { border-color: var(--orange); background: var(--orange-soft); }
.upload-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-drop label { pointer-events: none; font-size: 18px; }
.upload-drop label span { font-size: 13px; color: var(--muted); font-weight: 400; }
.file-list { position: relative; z-index: 1; pointer-events: none; margin-top: 14px; color: var(--orange-dark); font-size: 13px; font-weight: 700; }

.review-list { display: grid; gap: 16px; }
.review-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid #d89000; border-radius: 10px; padding: 20px; display: grid; grid-template-columns: minmax(280px,1fr) minmax(400px,1.25fr); gap: 24px; }
.review-file { display: flex; gap: 15px; }
.file-icon { flex: 0 0 52px; height: 58px; display: grid; place-items: center; border-radius: 8px; background: var(--orange-soft); color: var(--orange-dark); font-size: 11px; font-weight: 900; }
.review-file h2 { margin: 0 0 7px; font-size: 17px; word-break: break-word; }
.review-file p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.review-form { display: grid; grid-template-columns: 1fr 1.3fr .8fr auto; align-items: end; gap: 10px; }

.admin-grid { display: grid; grid-template-columns: repeat(3,minmax(220px,1fr)); gap: 18px; }
.admin-grid a { display: block; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--orange); border-radius: 11px; padding: 24px; color: var(--ink); box-shadow: 0 3px 10px rgba(25,30,35,.05); }
.admin-grid a:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.admin-grid strong { font-size: 34px; color: var(--orange-dark); }
.admin-grid h2 { margin: 8px 0; }
.admin-grid p { color: var(--muted); margin: 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(2,minmax(300px,1fr)); gap: 17px; }
.catalog-grid article { border-top: 5px solid var(--cat); }
.catalog-grid h2 { margin-top: 0; }
.catalog-grid ol { margin: 0; padding-left: 24px; }
.catalog-grid li { padding: 8px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf0f2; }
.course-badges { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
.badge-audience { color: #47525d; background: #e9edf1; }
.user-grid { display: grid; grid-template-columns: repeat(3,minmax(280px,1fr)); gap: 18px; }
.empty-state { text-align: center; padding: 50px; }

@media (max-width: 1180px) {
    .header-inner { align-items: flex-start; flex-wrap: wrap; gap: 5px 18px; }
    .brand { min-width: 290px; }
    .main-nav { order: 3; width: 100%; }
    .user-menu { margin-left: auto; }
    .category-summary { grid-template-columns: repeat(2,minmax(240px,1fr)); }
    .review-card { grid-template-columns: 1fr; }
    .matrix-toolbar { grid-template-columns: repeat(3,minmax(180px,1fr)); }
    .matrix-toolbar-actions { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .header-inner { padding: 9px 14px 13px; }
    .brand { min-width: 0; width: 100%; }
    .brand img { width: 220px; }
    .brand span { display: none; }
    .main-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .user-menu { position: absolute; top: 12px; right: 12px; }
    .user-menu span { display: none; }
    .page-shell { width: min(100% - 22px, 1500px); padding-top: 22px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .matrix-hero { align-items: flex-start; flex-direction: column; }
    .matrix-hero .heading-actions { justify-content: flex-start; }
    .matrix-summary { grid-template-columns: repeat(2,1fr); }
    .matrix-toolbar { grid-template-columns: 1fr; }
    .matrix-toolbar-actions { grid-column: auto; flex-wrap: wrap; }
    .matrix-toolbar-actions .button { width: auto; flex: 1 1 120px; }
    .compliance-scroll { max-height: 64vh; min-height: 320px; }
    .matrix-person-head, .matrix-person { width: 210px; min-width: 210px; }
    .matrix-progress-head, .matrix-progress { left: 210px; }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .category-summary, .catalog-grid, .admin-grid, .user-grid, .form-grid.two { grid-template-columns: 1fr; }
    .review-form { grid-template-columns: 1fr; }
    .inline-form, .filter-bar { align-items: stretch; flex-direction: column; }
    .button { width: 100%; }
    .panel { padding: 15px; }
    .auth-card { padding: 24px 20px; margin: 20px auto; }
}
