/* Shared readable UI: the parameter detail copy defines the 14px minimum. */
:root { --ui-font-min: 14px; }
body { font-size: 16px; }
input, select, textarea { font-size: max(16px, var(--ui-font-min)); }
.user-menu-options { min-width: 210px; }
.age-track { min-height: 74px; }
.age-segment { min-width: 76px; }
.age-segment span { white-space: normal; overflow-wrap: anywhere; }
.stage-controls [data-remove-stage].is-cancel { color: #302a26; background: #fff; border: 1px solid #b9ada1; }
.weight-grid.is-provisional { filter: grayscale(1); opacity: .55; }
.weight-grid.is-provisional .weight-card { background: #eee; }
.ex-tabs { display: flex; gap: 8px; margin: 12px 0 18px; padding: 5px; border-radius: 14px; background: #f0ebe4; }
.ex-tabs[hidden] { display: none; }
.ex-tabs button { flex: 1; min-height: 44px; padding: 9px 14px; border: 0; border-radius: 10px; background: transparent; color: #4e4842; font: inherit; font-weight: 800; cursor: pointer; }
.ex-tabs [aria-selected="true"] { color: #fff; background: #302a26; }
.ex-editor, .rating-dialog { box-sizing: border-box; max-height: calc(100dvh - 32px); margin: auto; overflow-y: auto; overscroll-behavior: contain; scroll-padding: 72px 0; }
.rating-dialog { padding: 20px; width: min(980px,calc(100% - 24px)); }
.rating-dialog > .dialog-close, .ex-editor > .dialog-close { position: sticky; top: 0; float: right; z-index: 5; width: 44px; height: 44px; margin: 0 0 8px 8px; background: #fffdf7; box-shadow: 0 2px 8px #0002; font-size: 28px; }
.rating-heading { clear: both; grid-template-columns: 58px minmax(0,1fr) auto; }
.rating-mascot { display: none; }
.rating-dialog .dialog-actions, .ex-editor .dialog-actions { position: sticky; bottom: -20px; z-index: 3; display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 0 max(14px,env(safe-area-inset-bottom)); margin-top: 16px; border-top: 1px solid #d6cbbd; background: #fffdf7; box-shadow: 0 -8px 12px #fffdf7; }
.rating-dialog .dialog-actions .button, .ex-editor .dialog-actions .button { min-height: 44px; }
.range-shell { padding: 6px 9px; border: 2px solid #b9ada1; border-radius: 10px; background: #fffdf7; touch-action: pan-y; }
.range-shell:focus-within { outline: 3px solid #4776e6; outline-offset: 2px; }
.range-shell > input { touch-action: pan-y; }
.range-shell.is-disabled { opacity: .55; cursor: default; }
.range-shell .score-range-labels { line-height: 18px; }
.rating-control { grid-template-columns: minmax(0,1fr) 68px; }
.eve-button { width: 64px; height: 64px; }
.eve-button > i { display: none; }
.eve-button > span { font-size: 34px; }
.eve-button > small { font-size: 14px; }
.eve-button.is-summary > span { font-size: 25px; }
.eve-button.is-summary > small { bottom: 5px; }
.eve-button.is-unavailable, .sub-eve-button.is-unavailable { color: #6a6660; background: repeating-linear-gradient(135deg,#e6e4df,#e6e4df 6px,#f1f0ec 6px,#f1f0ec 12px); border: 2px dashed #8b8378; box-shadow: none; }
.eve-button.is-unavailable::after, .sub-eve-button.is-unavailable::after { content: ' \1F512'; font-size: 14px; }
.subparameter-control.has-eve { grid-template-columns: minmax(0,1fr) 48px 82px; }
.sub-eve-button { font-size: 14px; }
.expanded-rating-actions { display: flex; gap: 10px; }
.expanded-rating-actions .button { flex: 1; min-height: 48px; }
.eve-dialog { box-sizing: border-box; width: min(680px,calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 22px; border: 1px solid #d0c4b2; border-radius: 22px; background: #fffdf7; }
.eve-dialog::backdrop { background: #241e23a6; }
.eve-dialog h2 { margin: 10px 40px 12px 0; font-size: 26px; }
.eve-dialog .dialog-close { float: right; position: sticky; top: 0; width: 44px; height: 44px; }
.eve-dialog .dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.eve-holder { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid #d7cdbc; border-radius: 14px; background: #fff; }
.eve-holder .generated-avatar { flex: 0 0 58px; width: 58px; height: 58px; }
.eve-holder input { width: 20px; height: 20px; }
.eve-conflict-group { display: grid; gap: 8px; border: 0; padding: 0; margin: 18px 0; }
.eve-conflict-group legend { margin-bottom: 8px; font-weight: 800; }
.eve-catalog-group { margin: 18px 0; }
.eve-catalog-group h3 { margin: 0 0 10px; }
.eve-catalog-detail { padding: 12px 0; border-top: 1px solid #ddd3c4; }
.eve-catalog-detail > strong { display: block; margin-bottom: 8px; }
.eve-catalog-holders { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-plan-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.admin-plan-controls label { display: grid; gap: 6px; }
.admin-plan-controls input, .admin-plan-controls select { min-height: 44px; }
.admin-plan-controls [name="account"] { min-width: 260px; }
.admin-plan-result { display: grid; gap: 8px; margin: 14px 0; }
.admin-plan-form { padding: 14px; border: 1px solid #d7cdbc; border-radius: 14px; }
.admin-plan-form p { margin: 4px 0 12px; }
@media (max-width:700px) {
    .rating-dialog { width: calc(100% - 20px); padding: 14px; max-height: calc(100dvh - 24px); }
    .rating-heading { grid-template-columns: 52px minmax(0,1fr); }
    .rating-dialog .live-average { grid-column: 1 / -1; }
    .rating-dialog .dialog-actions, .ex-editor .dialog-actions { bottom: -14px; }
    .rating-dialog .dialog-actions .button { flex: 1 1 120px; }
    .rating-control { grid-template-columns: minmax(0,1fr) 68px; }
    .range-shell { min-height: 72px; }
    .rating-rows, .rating-subpanel { min-width: 0; }
    .weight-grid { min-width: 0; }
    .age-segment { flex-basis: 90px !important; flex-shrink: 0 !important; }
    .age-segment small { white-space: normal; }
    .admin-plan-controls [name="account"] { min-width: 0; width: 100%; }
    .ex-tabs button { padding: 9px 8px; }
}

.range-shell { min-width: 0; height: auto; min-height: 72px; grid-template-rows: 35px 18px; }
.range-shell input { inset: 6px 9px auto; width: calc(100% - 18px); }
@media (max-width:700px) { .rating-dialog .stars { --star-size: clamp(18px,5vw,24px) !important; } }

small, sub, sup { font-size: var(--ui-font-min); }

/* Ratings use stars; importance retains the fuchsia range. */
.range-edit { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:1px solid #b9ada1; border-radius:10px; color:#302a26; background:#fff; font:inherit; font-size:22px; cursor:pointer; }
.range-edit:disabled { opacity:.45; cursor:default; }
.weight-picker { grid-template-columns:minmax(0,1fr) 44px; column-gap:8px; }
.weight-picker output, .weight-picker small { grid-column:1 / -1; }
.subparameter-control { grid-template-columns:minmax(0,1fr) 44px 42px; }
.rating-control { grid-template-columns:minmax(0,1fr) 44px 64px; }
.rating-subpanel .subparameter-control.has-eve { grid-template-columns:minmax(0,1fr) 82px; grid-template-areas:"stars edit" "value eve"; }
.rating-subpanel .range-shell { grid-area:stars; }
.rating-subpanel .range-edit { grid-area:edit; justify-self:end; }
.rating-subpanel .subparameter-control output { grid-area:value; text-align:left; }
.rating-subpanel .sub-eve-button { grid-area:eve; }
.rating-subpanel .subparameter-row { grid-template-columns:minmax(0,1fr); }
.wellbeing-control { grid-template-columns:minmax(0,1fr) 44px 38px !important; }
.detail-reminder { padding:14px; margin:0 0 12px; border:1px solid #e4b95a; border-radius:12px; background:#fff3cf; }
.detail-reminder p { margin:0 0 10px; font-size:14px; line-height:1.5; }
.expanded-rating .range-shell { min-height:72px; }
.expanded-rating .range-shell input { height:35px; touch-action:none; }
.expanded-rating.is-importance .range-shell { display:block; min-height:64px; border:0; padding:0; background:transparent; }
.expanded-rating.is-importance .range-shell input { position:static; opacity:1; width:100%; height:64px; }
.expanded-rating.is-importance .stars, .expanded-rating.is-importance .score-range-labels { display:none; }
.admin-users-table { width:100%; }
.admin-users-table th button { border:0; background:transparent; padding:10px 0; font:inherit; font-weight:800; color:inherit; cursor:pointer; white-space:nowrap; }
.admin-users-table td small { display:block; overflow-wrap:anywhere; max-width:260px; color:#6a625b; }
.admin-pagination { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:16px 0 0; }
.admin-tabs { max-width:520px; }
@media (max-width:700px) {
    .rating-control { grid-template-columns:minmax(0,1fr) 44px 54px; gap:5px; }
    .eve-button { width:54px; }
    .rating-dialog .stars { --star-size:clamp(17px,5vw,24px) !important; }
    .range-shell { padding-left:6px; padding-right:6px; }
    .range-shell > input { left:6px; width:calc(100% - 12px); }
    .admin-pagination { flex-wrap:wrap; }
}

.expanded-rating:not(.is-importance) .expanded-rating-scale { display:none; }
.private-review-score { grid-template-columns:minmax(0,1fr) 44px 38px; padding:0; border:0; background:transparent; }
.private-review-score .stars, .private-review-score .star-units { font-size:var(--star-size); }
.private-review-score .score-range-labels { color:#665522; }

/* One readable column leaves enough room for all five stars and both actions. */
.rating-rows { grid-template-columns:minmax(0,1fr); align-items:start; }
.rating-row { align-content:start; }
.weight-picker { grid-template-columns:43px minmax(0,1fr) 44px; }
.weight-picker output { grid-column:1; }
.weight-picker input { grid-column:2; }
.weight-picker .range-edit { grid-column:3; }
.weight-picker small { grid-column:1 / -1; }
@media (min-width:701px) {
    .rating-row { grid-template-columns:44px minmax(140px,.8fr) minmax(230px,1.4fr) 48px; }
    .rating-subpanel .subparameter-row { grid-template-columns:minmax(0,1fr) minmax(260px,1fr); }
}
@media (max-width:700px) {
    .rating-row > .parameter-icon { grid-row:1; }
    .rating-row > .rating-control { grid-column:1 / -1; }
    .rating-row > .rating-detail-toggle { grid-column:1 / -1; }
}

.weight-grid { align-items:start; }
.weight-card { align-content:start; }
.weight-picker { grid-column:1 / -1; }
.weight-subpanel .subparameter-row { grid-template-columns:minmax(0,1fr); }

@media (max-width:700px) { .expanded-rating .stars { --star-size:17px; } }

/* Criteria and details share the same vivid gold, including half stars. */
.rating-row > .rating-control > .range-shell { background:#fff4ce; }
.rating-subpanel .star-unit::before { color:var(--sun-deep); }
.ex-eve-total { display:block; margin:5px 0; color:#78600e; font-size:14px; font-weight:800; }
.unsaved-dialog { width:min(480px,calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow:auto; }
.unsaved-dialog .dialog-actions { display:flex; flex-wrap:wrap; gap:10px; }
.unsaved-dialog .dialog-actions .button { flex:1 1 170px; }

/* Scores and details share the same reading order on every screen. */
.rating-row { grid-template-columns:44px minmax(120px,.7fr) minmax(0,1.6fr); }
.rating-row > .rating-control, .rating-subpanel .subparameter-control.has-eve { grid-template-columns:minmax(100px,1fr) 48px 70px 44px; grid-template-areas:"stars eve value edit"; gap:9px; }
.rating-control > .range-shell { grid-area:stars; }
.rating-control > .eve-button { grid-area:eve; }
.rating-control > .range-edit { grid-area:edit; }
.rating-control > .rating-value, .rating-subpanel .subparameter-control > .rating-value { grid-area:value; display:grid; place-items:center; min-height:60px; padding:5px; border-radius:13px; background:#ffdf70; color:#302719; font:1000 30px/1 Nunito,sans-serif; text-align:center; white-space:nowrap; box-shadow:inset 0 0 0 1px #d4aa3c55; }
.rating-dialog .eve-button { width:48px; height:48px; border-radius:12px; }
.rating-dialog .eve-button > span, .rating-dialog .eve-button.is-summary > span { font-size:23px; }
.rating-dialog .eve-button > small, .rating-dialog .eve-button.is-summary > small { font-size:11px; bottom:3px; }
.rating-dialog .eve-button.is-unavailable::after { position:absolute; right:-3px; top:-6px; font-size:12px; }
.rating-subpanel .sub-eve-button { width:48px; min-height:44px; padding:4px; font-size:12px; }
.rating-subpanel .sub-eve-button.is-unavailable::after { font-size:10px; }
.rating-subpanel .subparameter-row { grid-template-columns:minmax(0,1fr); }
.rating-row > .rating-detail-toggle { grid-column:2 / -1; }
.rating-dialog .dialog-actions .delete-card, .ex-editor .dialog-actions .delete-card { margin-inline-end:auto; flex:0 0 auto; color:#a12840; }
.expanded-rating-actions { align-items:center; flex-wrap:wrap; }
.expanded-rating-actions [data-expanded-eve][hidden] { display:none; }
.expanded-rating-actions .expanded-eve { flex:0 0 auto; min-width:64px; }
@media(max-width:800px) {
 .rating-row { grid-template-columns:44px minmax(0,1fr); }
 .rating-row > .rating-control { grid-column:1 / -1; grid-row:auto; }
 .rating-row > .rating-detail-toggle { grid-column:1 / -1; }
}
@media(max-width:500px) {
 .rating-row > .rating-control, .rating-subpanel .subparameter-control.has-eve { grid-template-columns:minmax(85px,1fr) 42px 56px 36px; gap:5px; }
 .rating-control > .rating-value, .rating-subpanel .subparameter-control > .rating-value { font-size:26px; min-height:54px; }
 .rating-dialog .eve-button, .rating-subpanel .sub-eve-button { width:42px; }
 .rating-dialog .range-edit { width:36px; }
 .rating-subpanel { padding:7px; }
 .rating-subpanel .subparameter-row { padding:8px 6px; }
 .rating-dialog .range-shell { padding-left:4px; padding-right:4px; }
 .rating-dialog .range-shell > input { left:4px; width:calc(100% - 8px); }
 .rating-dialog .dialog-actions .delete-card, .ex-editor .dialog-actions .delete-card { flex-basis:100%; text-align:left; justify-content:flex-start; }
}

/* Editor actions remain visible while only the rounded panel contents scroll. */
.rating-dialog{padding:0;overflow:hidden;max-height:calc(100dvh - 24px)}
.rating-dialog[open]{display:flex;flex-direction:column}
.rating-dialog-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;margin-top:64px;padding:0 20px 20px;scroll-padding-top:16px}
.rating-dialog-footer{flex:0 0 auto;padding:12px 20px max(12px,env(safe-area-inset-bottom));border-top:1px solid #d6cbbd;background:#fffdf7}
.rating-dialog-footer .dialog-actions{position:static;bottom:auto;margin:0;padding:0;border:0;box-shadow:none}
.rating-dialog>.dialog-close,.ex-editor>.dialog-close{position:absolute;top:14px;right:14px;float:none;margin:0}
.self-avatar-dialog>.dialog-close{top:14px;right:14px}
.ex-editor .avatar-dialog-scroll,.self-avatar-dialog .avatar-dialog-scroll{margin-top:64px;padding-top:0}
.self-avatar-dialog .dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
.editor-save-dock{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom),calc(var(--ryex-bottom-controls-inset,0px) + 12px));z-index:80;max-width:calc(100vw - 32px)}
.editor-save-dock[hidden]{display:none!important}
.ex-editor>.editor-save-dock,.rating-dialog>.editor-save-dock,.self-avatar-dialog>.editor-save-dock{position:absolute;right:68px;top:14px;bottom:auto;z-index:7}
.editor-save-button{position:relative;display:flex;gap:7px;align-items:center;min-height:44px;padding:8px 12px;border:2px solid #9f7825;border-radius:14px;background:#ffdc65;color:#382d1b;font:800 12px Nunito,sans-serif;cursor:pointer;box-shadow:0 3px 9px #32251b24}
.editor-save-button:focus-visible{outline:3px solid #4776e6;outline-offset:3px}
.editor-save-button i{width:8px;height:8px;border-radius:50%;background:#b85f05;flex:none}
.editor-save-dock[data-state=saved] .editor-save-button{border-color:#8db5a2;background:#f0faf4;color:#30634a;opacity:1;cursor:default}
.editor-save-dock[data-state=saved] i{background:#258352}
.editor-save-dock[data-state=saving] i{background:#4776e6;animation:editing-pulse 1s infinite alternate}
.editor-save-dock [data-save-feedback]{position:absolute;right:0;top:100%;width:min(300px,calc(100vw - 40px));box-sizing:border-box;padding:12px;border:1px solid #d79b8a;border-radius:12px;background:#fff7ec;color:#7e382e;font:400 13px/1.4 Nunito,sans-serif;box-shadow:0 5px 18px #302a2626;z-index:8}
[data-setup]>.editor-save-dock [data-save-feedback]{top:auto;bottom:100%}
.editor-save-dock [data-save-feedback] a{display:block;margin-top:7px;font-weight:800;color:#a52349}
.ranking-tools .ranking-add{min-height:44px;padding:9px 14px;order:3;white-space:nowrap;gap:7px}
.ranking-tools{flex-wrap:wrap}
.personality-stage-manager .age-track .age-segment{flex-basis:72px;min-width:0;min-height:96px;padding:10px}
.stage-segment-content{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;width:100%}
.stage-segment-copy{flex:1 1 85px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px}
.personality-stage-avatar{display:flex;flex:0 1 66px;flex-direction:column;align-items:center;justify-content:center;gap:4px;max-width:100%}
.personality-stage-avatar .generated-avatar{width:44px;height:44px;max-width:100%;flex:none;border-radius:13px;box-shadow:none}
.personality-stage-avatar small{font-size:10px;font-weight:800;line-height:1.15;white-space:normal;overflow-wrap:normal}
@keyframes editing-pulse{to{opacity:.3}}
@media(max-width:700px){.rating-dialog-scroll{padding:0 12px 14px}.rating-dialog-footer{padding-left:12px;padding-right:12px}.rating-dialog-footer .dialog-actions{gap:7px}.rating-dialog-footer .button{padding:9px 11px}.ranking-tools{width:100%}.ranking-tools .ranking-add{margin-left:auto}.personality-stage-manager .age-track .age-segment{padding:8px 4px;flex-basis:58px}.personality-stage-avatar .generated-avatar{width:34px;height:34px}}
@media(prefers-reduced-motion:reduce){.editor-save-dock[data-state=saving] i{animation:none}}

/* Keep the list actions together, with Add immediately after sorting. */
.ranking-card>.card-heading{flex-wrap:wrap}.ranking-card>.card-heading .ranking-tools{display:flex;flex-wrap:wrap;align-items:end;justify-content:flex-end;gap:9px;min-width:0;max-width:100%;margin-inline-start:auto}
.ranking-tools .ranking-add{order:0;align-self:end;margin:0;height:44px;min-height:44px;padding-block:0}
.ranking-tools .list-preferences-status{grid-column:1/-1;order:0}
.setup-actions{align-items:center;flex-wrap:wrap}
.setup-actions [data-save-setup]{margin-inline-start:auto}
.setup-actions .setup-submit{margin:0}
.setup-actions .button,.avatar-dialog-footer .button,.rating-dialog-footer .button,.expanded-rating-actions .button{box-sizing:border-box;height:48px;min-height:48px;padding-block:0;align-self:center;line-height:1.2}
@media(max-width:700px){.ranking-card>.card-heading{grid-template-columns:minmax(0,1fr)}.ranking-card>.card-heading .ranking-tools{display:grid;width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr);flex-direction:row}.ranking-tools .sort-control{width:auto;min-width:0}.ranking-tools .ranking-add{grid-column:2;justify-self:end}.setup-actions [data-save-setup]{margin-inline-start:auto}}
/* Align the date panel with the stage it edits. */
.personality-return { margin-bottom: 16px; }
.setup-heading h1 { margin: 0; font-size: clamp(31px, 5vw, 48px); letter-spacing: -.04em; }
.personality-stage-manager { --selected-stage-color: var(--sun); }
.personality-stage-manager .stage-controls {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 12px 20px;
    margin-top: 13px;
    padding: 12px 16px;
    border: 2px solid var(--selected-stage-color);
    border-radius: 12px;
    background: var(--paper);
}
.personality-stage-manager .stage-controls.is-preview { --selected-stage-color: #db6484; }
.stage-controls::before {
    content: "";
    position: absolute;
    left: var(--stage-connector-x,50%);
    bottom: 100%;
    width: 3px;
    height: 15px;
    transform: translateX(-50%);
    background: var(--selected-stage-color);
}
.stage-edit-title { margin: 0 0 8px; font-weight: 800; }
.stage-age-field > span { display: block; margin-bottom: 4px; color: #685727; font-size: 14px; font-weight: 800; }
.stage-age-field output { font-weight: 800; }
.stage-controls .stage-step { min-width: 44px; min-height: 44px; padding-inline: 9px; }
.stage-controls .stage-step:not(:disabled) { border-color: var(--ink); color: var(--ink); background: #fff; cursor: pointer; }
.stage-controls .stage-step:not(:disabled):hover { background: #fff2bf; }
.stage-controls button:disabled { cursor: not-allowed; }
.stage-controls [data-save-stage]:disabled { background: #efdee1; color: #704754; opacity: 1; }
.stage-controls .stage-step:disabled { border-color: transparent; color: #756a61; background: #ebe6de; opacity: 1; }
.stage-edit-actions, .stage-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.stage-tools { justify-content: end; }
.stage-tools .stage-remove { margin: 0; width: auto; }
.stage-segment-copy {
    display: grid;
    flex: 1 1 45px;
    min-width: 0;
    overflow-wrap: anywhere;
    color: inherit;
}
.personality-stage-manager .stage-segment-content { flex-basis: 76px; flex-shrink: 1; min-width: 0; color: #534630; }
.personality-stage-manager .stage-segment-content.is-active { background: var(--selected-stage-color); color: var(--ink); }
.personality-stage-manager .stage-segment-content.is-preview { background: #fbd5e1; box-shadow: inset 0 0 0 2px #db6484; }
.stage-segment-content .personality-stage-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 3px;
    border: 1px solid rgba(52, 38, 23, .28);
    border-radius: 12px;
    background: rgba(255, 255, 255, .58);
}
@media (max-width: 700px) {
    .personality-stage-manager .age-track .stage-segment-content { flex-basis: 48px; flex-shrink: 1; flex-direction: column; padding: 6px 3px; }
    .stage-segment-content .stage-segment-copy { flex: auto; font-size: 12px; }
    .personality-stage-manager .age-track .stage-segment-copy small { font-size: 11px; }
    .stage-tools { justify-content: start; }
    .mobile-nav[data-mobile-help] { grid-template-columns: repeat(6,minmax(0,1fr)); }
    .mobile-nav[data-mobile-help] a { padding-inline: 2px; min-width: 0; text-align: center; }
    .mobile-nav[data-mobile-help] a span { overflow-wrap: anywhere; font-size: 11px; line-height: 1.15; }
}
.detail-card .detail-avatar {
    width: clamp(88px, 12vw, 136px);
    height: clamp(88px, 12vw, 136px);
    flex: none;
    transform: none;
    overflow: hidden;
}
.detail-card .detail-top { grid-template-columns: auto minmax(0, 1fr); }
.detail-top h2 { overflow-wrap: anywhere; }
.detail-top small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.35; }
.detail-score-value { display: block; }
.detail-score-value > span, .detail-score-caption { color: #6f5710; font-weight: 700; }
.detail-score-caption { display: block; margin-top: 5px; font-size: 14px; font-weight: 600; }
.detail-summary { margin: 0 0 18px; color: var(--ink); line-height: 1.45; }
.detail-score-heading { margin: 0 0 8px; font-size: 15px; font-weight: 900; }
.detail-score-featured > div:not(.is-eve) { background: #e7f5eb; box-shadow: inset 0 0 0 1px #b5d5be; }
.app-downloads {
    --badge-height: 46px;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding: 14px 16px;
    border: 1px solid rgba(80, 56, 9, .22);
    border-radius: 18px;
    background: var(--cream);
}
.app-downloads-copy { display: grid; gap: 3px; }
.app-downloads-copy strong { color: var(--ink); font-size: 15px; line-height: 1.2; }
.app-downloads-copy small { color: #68552a; font-size: 13px; }
.app-downloads-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.download-badge { position: relative; display: block; height: var(--badge-height); border-radius: 7px; }
.download-badge img { display: block; width: auto; height: 100%; }
.download-badge--google { width: calc(var(--badge-height) * 3.35); }
.download-badge--google img { position: absolute; inset-block-start: 50%; left: 50%; height: 149%; max-width: none; transform: translate(-50%, -50%); }
.download-badge:is(a):hover { transform: translateY(-2px); }
.download-badge:is(a):focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.download-badge-status { display: grid; justify-items: center; gap: 4px; }
.download-badge-status small { color: #68552a; font-size: 12px; font-weight: 700; }
.home-hero-media { display: grid; flex: 0 0 min(52vw, 630px); gap: 24px; min-width: 0; }
.home-hero-media > .hero-art { width: 100%; }
.app-downloads--hero {
    --badge-height: 52px;
    justify-content: space-between;
    background: var(--paper);
    box-shadow: 0 4px 0 rgba(99, 64, 0, .18);
}
.app-downloads--hero .app-downloads-copy strong { font-size: 17px; }
.demo-dashboard { align-items: start; }
.site-footer { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.footer-connect { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-connect:not(:has(> *)) { display: none; }
.site-footer .footer-connect > .footer-social {
    flex: 1 1 400px;
    display: grid;
    align-content: center;
    padding: 13px 16px;
    border: 1px solid rgba(80, 56, 9, .22);
    border-radius: 18px;
    background: rgba(255, 247, 223, .46);
}
.footer-connect .footer-social-label { color: var(--ink); font-size: 14px; }
.app-downloads--footer { flex: 1 1 354px; justify-content: space-between; }
.site-footer .footer-main { padding-top: 13px; border-top: 1px solid rgba(80, 56, 9, .25); }
@media (max-width: 1000px) {
    .home-hero-media { flex-basis: auto; width: min(100%, 720px); align-self: center; }
}
@media (max-width: 700px) {
    .app-downloads, .app-downloads--hero { --badge-height: clamp(36px, 11.3vw, 46px); }
}
