:root {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #243a32; background: #f5f6f2; font-size: 14px; line-height: 1.6;
  --green: #245c47; --green-dark: #183e35; --mint: #edf4e8;
  --muted: #7a8880; --border: #e5e9e1; --rail: 236px;
}
* { box-sizing: border-box; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; background: var(--green); color: white; font-weight: 600; cursor: pointer; transition: background .18s, border-color .18s, box-shadow .18s; }
button:hover { background: #194c38; }
button:disabled { opacity: .45; cursor: wait; }
.secondary { background: white; color: #4d6256; border-color: var(--border); }
.secondary:hover { background: #f0f4ed; border-color: #c5d4bf; }
.danger { background: #fff6f3; color: #b45b43; border-color: #f2dfd8; }
.danger:hover { background: #ffe9e0; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon-button { width: 40px; height: 40px; padding: 9px; background: transparent; color: #617467; border-color: var(--border); }
.icon-button:hover { background: #edf2e8; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, .table-wrap:focus-visible { outline: 3px solid #a8c888; outline-offset: 3px; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 100; padding: 12px; background: white; color: var(--green); border-radius: 8px; }
.skip-link:focus { top: 10px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: 15px; font-weight: 650; margin: 1px 0 0; }
h2 { font-size: 28px; line-height: 1.25; letter-spacing: -.7px; margin-bottom: 10px; color: #1d392c; font-weight: 700; }
h3 { font-size: 16px; letter-spacing: -.2px; margin-bottom: 12px; color: #233c2e; font-weight: 650; }
h4 { font-size: 13px; margin: 20px 0 10px; color: #526a57; }
p { margin-bottom: 14px; }
small, .muted { color: var(--muted); }
.eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: #85977b; margin-bottom: 12px; }
.sidebar { width: var(--rail); position: fixed; inset: 0 auto 0 0; z-index: 40; background: var(--green-dark); color: #f4f8ef; padding: 34px 18px 20px; display: flex; flex-direction: column; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; text-decoration: none; color: #f2f5ec; font-size: 22px; font-weight: 650; letter-spacing: -.5px; }
.brand-mark { width: 44px; height: 44px; background: #d0e3b3; color: #244b37; border-radius: 13px; display: grid; place-items: center; }
.brand-mark .icon { width: 30px; height: 30px; }
.side-brand small { display: block; margin-top: 1px; font-size: 8px; letter-spacing: 1.3px; color: #aec1b3; }
.side-label { font-size: 9px; font-weight: 600; letter-spacing: 1.3px; margin: 48px 13px 14px; color: #8ca999; }
nav { display: grid; gap: 6px; }
nav button { justify-content: flex-start; gap: 12px; padding: 12px 14px; min-height: 47px; background: transparent; color: #c1d2c8; font-size: 13px; border-radius: 9px; font-weight: 500; }
nav button:hover { background: #254c40; }
nav button[aria-current="page"] { color: #ecf8dd; background: #315749; box-shadow: inset 3px 0 #c0d99e; font-weight: 650; }
nav button[aria-current="page"] .icon { color: #cee2ab; }
.side-note { margin-top: auto; padding: 50px 13px 22px; display: flex; align-items: flex-start; gap: 11px; color: #b2c99c; }
.side-note p { font-size: 11px; margin: 0; line-height: 1.9; }
.side-note p span { font-size: 10px; color: #88a493; }
.side-account { display: flex; align-items: center; gap: 10px; padding: 18px 10px 0; border-top: 1px solid #355749; }
.avatar { width: 35px; height: 35px; border-radius: 50%; background: #456452; display: grid; place-items: center; color: #e0ebd2; font-weight: 700; flex-shrink: 0; }
.side-account strong { display: block; font-size: 12px; font-weight: 600; }
#identity { font-size: 10px; color: #9bb5a5; display: block; line-height: 1.5; }
.topbar { min-height: 84px; padding: 18px 36px; background: #fcfdf9; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 18px; min-width: 0; }
.breadcrumb { font-size: 10px; color: #8b968b; }
.breadcrumb>span:first-child { margin: 0 8px; color: #b8c0b4; }
.topbar-actions { gap: 12px; }
.topbar-actions button { font-size: 12px; min-height: 36px; padding: 8px 12px; }
.date-pill { display: flex; align-items: center; gap: 7px; color: #798774; font-size: 11px; }
.date-pill .icon { width: 15px; height: 15px; }
body[data-auth="member"] .topbar, body[data-auth="member"] main, body[data-auth="member"]>footer { margin-left: var(--rail); }
main { padding: 32px 36px 16px; min-height: calc(100dvh - 150px); }
#app { max-width: 1540px; margin: auto; }
#content { min-width: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar h2, .toolbar h3 { margin-bottom: 0; }
.page-heading { margin-bottom: 28px; align-items: flex-end; }
.page-heading .eyebrow { color: #738b60; margin-bottom: 9px; }
.page-heading h2 { font-size: 29px; }
.page-heading p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.page-heading>.actions { flex-shrink: 0; }
.work-sections { display: flex; gap: 8px; margin-bottom: 24px; }
.work-sections button { flex: 1; max-width: 240px; padding: 12px 10px; }
.work-sections button[aria-pressed="true"] { background: var(--green); color: white; border-color: var(--green); }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 22px; box-shadow: 0 3px 15px #2a4d2610; min-width: 0; }
.card-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.card-heading .section-icon { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; background: #f0f4e8; color: #6d8558; }
.card-heading h3 { margin: 0; }
.card>p.muted { font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 26px; }
.stat { padding: 21px; background: white; border: 1px solid var(--border); border-radius: 12px; }
.stat-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.stat .stat-icon { width: 34px; height: 34px; border-radius: 9px; background: #edf3e7; color: #6c8951; display: grid; place-items: center; flex-shrink: 0; }
.stat:nth-child(2) .stat-icon { color: #ba9252; background: #faf1e1; }
.stat:nth-child(3) .stat-icon { color: #7c9777; background: #edf3ea; }
.stat:nth-child(4) .stat-icon { color: #709eaa; background: #eaf2f3; }
.stat strong { display: block; font-size: 32px; letter-spacing: -1px; line-height: 1.2; margin: 12px 0 6px; font-weight: 650; }
.stat span:not(.stat-icon) { font-size: 11px; color: #7b8878; }
.stat .stat-caption { font-size: 10px; color: #a0ab99; border-top: 1px solid #f1f3ed; padding-top: 9px; margin-top: 12px; }
.filter-panel { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 22px; background: #fcfdfb; }
.filter-panel>summary { display: flex; align-items: center; gap: 9px; list-style: none; cursor: pointer; padding: 12px 16px; color: #617357; font-size: 12px; font-weight: 600; }
.filter-panel>summary::-webkit-details-marker { display: none; }
.filter-panel>summary::after { content: '+'; margin-left: auto; font-size: 18px; color: #9ba78e; }
.filter-panel[open]>summary::after { content: '−'; }
.filter-count { border-radius: 5px; padding: 1px 7px; background: #edf2e6; font-size: 10px; color: #718462; }
.filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; padding: 16px; margin: 0; }
.filters label { flex: 1; min-width: 130px; }
.filters button { flex-shrink: 0; }
#assignment-plan { background: white; border: 1px solid var(--border); border-radius: 11px; padding: 18px; margin-bottom: 16px; }
#assignment-plan label { max-width: 250px; }
label { display: grid; gap: 7px; color: #5b705e; font-size: 12px; font-weight: 600; min-width: 0; }
input, select, textarea { min-width: 0; width: 100%; min-height: 43px; border: 1px solid #dce3d6; border-radius: 8px; background: white; color: #304b37; padding: 10px 12px; outline: none; }
input::placeholder, textarea::placeholder { color: #a8b2a2; font-weight: 400; }
input:focus, select:focus, textarea:focus { border-color: #8ba477; box-shadow: 0 0 0 3px #eaf0e2; }
input[readonly] { background: #f5f7f1; color: #829176; }
input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; accent-color: var(--green); box-shadow: none; flex-shrink: 0; }
textarea { min-height: 105px; resize: vertical; }
form { display: grid; gap: 18px; }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.full { grid-column: 1/-1; }
.table-wrap { overflow-x: auto; max-width: 100%; border-radius: 9px; position: relative; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th { background: #f6f8f1; color: #7a8b6b; font-weight: 600; font-size: 10px; white-space: nowrap; }
th, td { text-align: left; padding: 15px 14px; border-bottom: 1px solid #edf0e8; vertical-align: middle; }
td { color: #546951; }
td strong { color: #344e36; font-weight: 600; }
td small { color: #9ba893; font-size: 10px; display: inline-block; margin-top: 5px; overflow-wrap: anywhere; }
tbody tr:last-child>td, tbody tr:last-child>th { border-bottom: none; }
.data-table tbody tr:hover>td { background: #fcfdf9; }
td button { min-height: 33px; padding: 7px 10px; font-size: 10px; margin: 3px 3px 3px 0; }
td button .icon { width: 14px; height: 14px; }
.note, .work-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.note { max-width: 270px; }
.record-count { font-size: 10px; padding: 5px 10px; border: 1px solid #e7ecdf; border-radius: 6px; color: #8a9a7a; background: #fafcf7; }
.record-id { max-width: 155px; font-size: 10px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.reading-alerts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.work-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.work-meta .icon { width: 14px; height: 14px; }
.work-meta>span { color: #bbc5b1; }
.section-period { font-size: 10px; color: #9aaa8b; }
.chart-controls { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.chart-controls fieldset { height: calc(100% - 36px); }
.dashboard-footnote { font-size: 10px; color: #a0ad91; margin: 18px 0 0; }
#environment-today th[scope="row"] small { display: block; font-size: 9px; color: #9cad88; margin-top: 3px; }
#environment-trend>.toolbar { margin-bottom: 8px; }
#environment-trend .card-heading { margin: 0; }
#user-suggestions h3 { display: flex; align-items: center; gap: 8px; }
#user-suggestions h3 .icon { color: #8ba16f; width: 17px; height: 17px; }
.side-account>div { min-width: 0; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 10px; line-height: 1.5; border-radius: 6px; background: #eff2e9; color: #879376; font-weight: 500; white-space: nowrap; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.ok { color: #5e8651; background: #edf5e8; }
.warn { color: #b38b47; background: #fbf3df; }
.empty { text-align: center; padding: 38px 20px; color: #93a085; font-size: 12px; border: 1px dashed #dfe7d5; border-radius: 10px; width: 100%; }
td.empty { border: 0; }
.error, #message { border-radius: 9px; padding: 13px 16px; color: #a45d3f; background: #fff3e9; border: 1px solid #f3dfc9; margin-bottom: 20px; white-space: pre-wrap; }
#message { max-width: 1540px; margin-left: auto; margin-right: auto; }
#message.success { background: #edf5e7; color: #547a45; border-color: #d9e9cb; }
.list-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; align-items: start; gap: 24px; }
.list-main { min-width: 0; }
#user-suggestions { min-width: 0; grid-column: 2; grid-row: 1; }
#user-suggestions>.card { padding: 20px; background: #fafcf7; border-color: #dfe8d6; }
#user-suggestions h3 { font-size: 14px; }
#user-suggestions .toolbar { margin-bottom: 14px; }
#user-suggestions .toolbar>button { min-height: 30px; padding: 6px 8px; font-size: 10px; }
#user-suggestions .muted { font-size: 11px; }
.suggestion-list { list-style: none; margin: 0; padding: 0; }
.suggestion-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid #e7edde; color: #6c805d; font-size: 11px; }
.suggestion-list li>div { min-width: 0; overflow-wrap: anywhere; }
.suggestion-list strong { font-weight: 600; color: #3a573b; }
.suggestion-list button { flex-shrink: 0; min-height: 33px; padding: 6px 9px; font-size: 10px; }
.suggestion-list .badge { font-size: 9px; margin-top: 5px; white-space: normal; }
.work-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 16px; }
.work-card { margin: 0; padding: 22px; display: flex; flex-direction: column; }
.work-card .toolbar { align-items: flex-start; margin-bottom: 13px; }
.work-card h3 { margin: 0; font-size: 15px; }
.work-card p { font-size: 12px; color: #829074; }
.work-card .work-note { color: #566c4f; }
.work-card>button { margin-top: auto; }
.work-card .badge { white-space: normal; }
.suggestion-section { margin: 30px 0 16px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 22px; color: #95a189; font-size: 11px; }
.pager button { padding: 7px 12px; font-size: 11px; min-height: 34px; }
.reading-grid { display: grid; grid-template-columns: repeat(3,minmax(85px,1fr)); gap: 7px; min-width: 300px; }
.reading-cell { padding: 9px 10px; border-radius: 7px; background: #f4f7ef; }
.reading-cell>span { display: block; font-size: 9px; color: #829374; line-height: 1.4; }
.reading-cell>strong { display: block; font-size: 14px; margin-top: 3px; }
.care-summary { display: grid; grid-template-columns: repeat(2,minmax(110px,1fr)); gap: 8px; min-width: 260px; }
.care-item { padding: 9px; border: 1px solid #ebf0e4; border-radius: 7px; }
.care-item strong { display: block; font-size: 11px; }
.care-item p { margin: 2px 0; font-size: 11px; }
.care-item .note { font-size: 10px; color: #94a186; }
fieldset { border: 1px solid var(--border); border-radius: 9px; padding: 3px 12px 12px; margin: 18px 0; min-width: 0; }
legend { padding: 0 7px; font-size: 11px; font-weight: 600; color: #7a9069; }
.chart-options { display: flex; flex-wrap: wrap; gap: 8px; }
.chart-options label { display: flex; align-items: center; gap: 7px; font-weight: 400; border: 1px solid #e7ebdf; background: #fafbf8; border-radius: 6px; padding: 8px 10px; color: #849377; font-size: 11px; cursor: pointer; }
.chart-options label:has(input:checked) { color: #506e3e; border-color: #ccdabb; background: #f0f5e9; }
.chart { width: 100%; height: 290px; display: block; margin-top: 8px; }
.chart text { font-family: "Segoe UI",sans-serif; font-size: 12px; fill: #95a287; }
.chart .axis { stroke: #ecf0e5; stroke-width: 1; stroke-dasharray: 3 4; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #eff2e9; }
.legend>span { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #829374; }
.env-safe { background: #e1eed6; color: #52773e; }
.env-warning { background: #fff0c7; color: #a67e2c; }
.env-missing { background: #eff0eb; color: #9aa18f; }
.environment-key { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.environment-key span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 5px; font-size: 10px; }
.environment-key span::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.comparison-table { min-width: 840px; }
#environment-today td { text-align: center; white-space: nowrap; border: 3px solid white; font-weight: 600; padding: 14px 10px; }
#environment-today th[scope="row"] { min-width: 140px; max-width: 190px; white-space: normal; position: sticky; left: 0; z-index: 1; background: #f7f9f3; color: #698455; font-size: 11px; }
.table-hint { display: none; }
.catalog-section .toolbar h3 { font-size: 16px; }
.catalog-section .toolbar button { min-height: 36px; font-size: 11px; padding: 8px 12px; }
dialog { width: min(720px,calc(100% - 40px)); max-height: 88dvh; color: inherit; background: #fff; border: 1px solid #e4e9df; border-radius: 20px; padding: 0 28px; box-shadow: 0 25px 100px #122c3440; }
dialog::backdrop { background: #122c2b80; backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 24px 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); background: white; position: sticky; top: 0; z-index: 2; }
.dialog-head h2 { font-size: 21px; margin: 0; }
.dialog-head .eyebrow { font-size: 8px; margin-bottom: 7px; }
#editor-form>p { font-size: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: #fffffff5; padding: 20px 0; border-top: 1px solid var(--border); z-index: 1; margin-top: 6px; }
.care-row { padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fcfdf9; }
.care-row h3 { font-size: 14px; color: #577747; }
.loading-state { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 100px 20px; color: #8da07a; }
.loading-state .icon { animation: rotate 1.5s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
footer { padding: 14px 36px 24px; font-size: 10px; color: #a1ab97; display: flex; justify-content: space-between; gap: 12px; }
footer>span:last-child { display: flex; align-items: center; gap: 5px; }
footer .icon { width: 12px; height: 12px; }
.login-layout { display: grid; grid-template-columns: 1.08fr 1fr; max-width: 1000px; margin: 24px auto; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: white; box-shadow: 0 18px 65px #173f3210; }
.login-story { background: var(--green-dark); padding: 48px 42px 30px; color: #dbe8d2; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-story>.eyebrow { color: #a8c18e; font-size: 8px; }
.login-story h2 { font-size: 37px; letter-spacing: -1px; line-height: 1.25; color: #f2f7eb; margin-top: 15px; }
.login-story>p { font-size: 13px; color: #a9bfab; max-width: 310px; line-height: 1.9; margin-top: 16px; }
.login-features { display: grid; gap: 14px; margin: 18px 0; }
.login-features>span { display: flex; align-items: center; gap: 11px; font-size: 12px; color: #c0d3b6; }
.login-features .icon { width: 17px; height: 17px; color: #a4be87; }
.pond-art { position: relative; min-height: 150px; margin-top: auto; padding-top: 20px; }
.pond-art>svg { width: 75px; height: 75px; fill: none; stroke: #a8c889; stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; position: relative; margin-left: 20px; }
.pond-ring { position: absolute; width: 220px; height: 180px; border: 1px solid #41664c; border-radius: 50%; transform: rotate(-20deg); left: 90px; top: -20px; box-shadow: 0 0 0 24px #31563e50,0 0 0 50px #31563e30; }
.pond-art>span { position: relative; display: block; color: #83a184; font-size: 9px; margin-top: 18px; }
.login-form-card { padding: 40px 48px; }
.login-emblem { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #edf3e7; color: #63864e; margin-bottom: 28px; }
.login-emblem .icon { width: 29px; height: 29px; }
.login-form-card h2 { font-size: 25px; margin-bottom: 12px; }
.login-form-card>p:not(.eyebrow) { color: #8b9880; font-size: 12px; }
#login-form { margin-top: 28px; gap: 19px; }
#login-form>button { margin-top: 6px; justify-content: space-between; padding: 13px 18px; }
.login-help { display: flex; align-items: center; gap: 6px; font-size: 10px !important; margin-top: 25px; }
.login-help .icon { width: 13px; height: 13px; }
.nav-backdrop { position: fixed; inset: 0; background: #102b2680; z-index: 35; border-radius: 0; }
[hidden] { display: none !important; }
@media(min-width:1600px) { main { padding: 40px 48px 20px; } }
@media(max-width:1150px) and (min-width:761px) {
  :root { --rail: 205px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  main, .topbar { padding-left: 24px; padding-right: 24px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .list-layout { grid-template-columns: minmax(0,1fr); }
  #user-suggestions { grid-column: 1; grid-row: auto; order: -1; }
}
@media(max-width:760px) {
  :root { font-size: 15px; }
  body[data-auth="member"] .topbar, body[data-auth="member"] main, body[data-auth="member"]>footer { margin-left: 0; }
  .topbar { padding: 14px 18px; min-height: 74px; position: sticky; top: 0; z-index: 25; background: #fcfdf9f5; backdrop-filter: blur(12px); }
  .topbar-left { gap: 12px; }
  .topbar-actions { gap: 6px; }
  .date-pill { display: none; }
  .topbar-actions #logout { padding: 8px; width: 36px; border: 0; background: transparent; }
  #logout>span { display: none; }
  h1 { font-size: 14px; }
  .breadcrumb { font-size: 9px; }
  main { padding: 24px 16px 16px; min-height: calc(100dvh - 145px); }
  .sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; width: 252px; }
  body.menu-open .sidebar { transform: translateX(0); visibility: visible; }
  body.menu-open { overflow: hidden; }
  body[data-role="user"][data-auth="member"] .sidebar { transform: none; visibility: visible; position: static; height: 0; width: auto; padding: 0; overflow: visible; background: none; }
  body[data-role="user"] .side-brand, body[data-role="user"] .side-label, body[data-role="user"] .side-note, body[data-role="user"] .side-account { display: none; }
  body[data-role="user"] nav { position: fixed; inset: auto 0 0; padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); background: #fffffff5; border-top: 1px solid #e5ebdf; z-index: 45; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; backdrop-filter: blur(14px); }
  body[data-role="user"] nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; color: #8a9a7f; padding: 7px 2px; min-height: 54px; }
  body[data-role="user"] nav button[aria-current="page"] { background: #edf4e7; color: #50743a; box-shadow: none; }
  body[data-role="user"] nav button[aria-current="page"] .icon { color: #50743a; }
  body[data-role="user"]>footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .page-heading { margin-bottom: 22px; gap: 16px; }
  .page-heading h2 { font-size: 25px; }
  .page-heading p { font-size: 12px; }
  .page-heading .eyebrow { font-size: 9px; }
  .page-heading>.actions { width: 100%; }
  .page-heading>.actions>button:not(.secondary) { flex: 1; }
  .toolbar { gap: 12px; }
  .card { padding: 18px; margin-bottom: 18px; border-radius: 13px; }
  .card-heading { align-items: flex-start; }
  h3 { font-size: 15px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 22px; }
  .stat { padding: 16px; border-radius: 11px; }
  .stat strong { font-size: 29px; margin: 10px 0 4px; }
  .stat span:not(.stat-icon) { font-size: 10px; }
  .stat .stat-icon { width: 29px; height: 29px; border-radius: 8px; }
  .stat .stat-icon .icon { width: 17px; height: 17px; }
  .stat .stat-caption { display: none; }
  .list-layout { display: flex; flex-direction: column; gap: 0; }
  .list-main, #user-suggestions { width: 100%; }
  #user-suggestions { order: -1; }
  #user-suggestions>.card { padding: 18px; }
  #user-suggestions .toolbar>button { min-height: 36px; font-size: 11px; }
  .suggestion-list li { font-size: 12px; padding: 14px 0; }
  .suggestion-list button { min-height: 40px; font-size: 11px; padding: 8px 12px; }
  .filter-panel { margin-bottom: 16px; }
  .filter-panel>summary { padding: 12px; font-size: 12px; min-height: 44px; }
  .filters { padding: 12px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 10px; }
  .filters label { min-width: 0; font-size: 11px; }
  .filters button { min-width: 0; padding: 10px; }
  #assignment-plan { display: flex; gap: 10px; padding: 14px; }
  #assignment-plan label { flex: 1; max-width: none; }
  label { font-size: 12px; }
  input, select, textarea { min-height: 46px; font-size: 16px; padding: 10px; }
  button { min-height: 44px; font-size: 12px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .work-cards { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .work-card { padding: 19px; }
  .work-card p { font-size: 12px; }
  .work-card .badge { font-size: 9px; }
  .work-card>button { min-height: 44px; }
  .data-table { display: block; }
  .data-table thead { display: none; }
  .data-table tbody { display: grid; gap: 14px; }
  .data-table tr { display: block; border: 1px solid #e7ecdf; border-radius: 11px; background: #fdfefa; padding: 6px 14px; }
  .data-table td { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 8px; border-bottom: 1px solid #eef2e7; padding: 12px 0; font-size: 12px; align-items: start; }
  .data-table td::before { content: attr(data-label); font-size: 11px; color: #718064; padding-top: 2px; grid-column: 1; grid-row: 1; }
  .data-table td>* { grid-column: 2; }
  .data-table td>br { display: none; }
  .data-table td>.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
  .data-table td>.row-actions button { margin: 0; }
  .data-table td>.badge { justify-self: start; }
  .data-table td button { margin: 0 0 5px; justify-self: start; min-height: 44px; padding: 10px; font-size: 11px; }
  .data-table td:has(.reading-grid), .data-table td:has(.care-summary) { display: block; }
  .data-table td:has(.reading-grid)::before, .data-table td:has(.care-summary)::before { display: block; margin-bottom: 10px; }
  .data-table td.empty { display: block; padding: 30px 10px; text-align: center; }
  .data-table td.empty::before { content: none; }
  .data-table td .note { max-width: none; }
  .reading-grid { min-width: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .reading-cell { padding: 12px; }
  .reading-cell>span { font-size: 11px; color: #6b7f5b; }
  .reading-cell>strong { font-size: 17px; }
  .care-summary { min-width: 0; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .care-item { padding: 10px; }
  .care-item .badge { font-size: 9px; }
  .pager { gap: 9px; font-size: 10px; }
  .pager button { min-height: 37px; padding: 8px 10px; }
  .chart { height: auto; min-height: 170px; }
  .chart-controls { display: block; }
  .chart-controls fieldset { height: auto; }
  .record-id { max-width: none; }
  .chart text { font-size: 21px; }
  .chart-options { gap: 7px; }
  .chart-options label { padding: 10px 9px; min-height: 42px; font-size: 10px; }
  fieldset { padding: 4px 10px 10px; margin: 16px 0; }
  .legend { gap: 12px; }
  .legend>span { font-size: 10px; }
  .table-hint { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #9aa78b; margin: 8px 0; }
  .environment-key { gap: 6px; }
  .environment-key span { font-size: 9px; }
  .comparison-table { font-size: 11px; }
  .catalog-section .toolbar { align-items: flex-start; }
  .catalog-section .toolbar button { font-size: 11px; }
  dialog { position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; max-height: 94dvh; margin: 0; border-radius: 22px 22px 0 0; padding: 0 20px env(safe-area-inset-bottom); }
  .dialog-head { padding: 22px 0 18px; margin-bottom: 20px; }
  .dialog-head h2 { font-size: 20px; }
  .dialog-head .eyebrow { font-size: 7px; }
  .care-row { padding: 15px; }
  .modal-actions { padding: 16px 0; }
  .modal-actions button { flex: 1; }
  footer { font-size: 9px; padding: 16px 18px 24px; }
  footer>span:first-child { max-width: 55%; }
  .login-layout { display: block; max-width: 450px; margin: 0 auto 24px; border: 0; background: none; box-shadow: none; overflow: visible; }
  .login-story { padding: 25px 22px; border-radius: 18px 18px 0 0; }
  .login-story h2 { font-size: 28px; margin: 9px 0; }
  .login-story>p { font-size: 12px; margin-top: 6px; margin-bottom: 0; }
  .login-story>.eyebrow { font-size: 7px; }
  .login-features, .pond-art { display: none; }
  .login-form-card { padding: 25px 22px; background: white; border-radius: 0 0 18px 18px; border: 1px solid var(--border); border-top: 0; }
  .login-emblem { display: none; }
  .login-form-card h2 { font-size: 22px; }
  .login-form-card>.eyebrow { font-size: 8px; }
  #login-form { margin-top: 20px; }
  .login-help { margin-bottom: 0; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
