/* Alpha-Gal Living v1.5.3: membership comparison / link restoration / mobile top-profile cleanup */
:root{--agl153-green:#176448;--agl153-pale:#edf5ef;--agl153-border:#c9ded2;--agl153-ink:#153d30}
.agl153-compare{background:#fff;color:var(--agl153-ink);border:1px solid var(--agl153-border);border-radius:15px;overflow:hidden;margin:14px 0;max-width:100%;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,sans-serif;box-shadow:0 2px 10px #16452c0c}
.agl153-compare summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:14px 15px;font-weight:750;font-size:14px;background:var(--agl153-pale);line-height:1.35;user-select:none}
.agl153-compare summary::-webkit-details-marker{display:none}
.agl153-compare summary:focus-visible{outline:3px solid #83ba97;outline-offset:-3px}
.agl153-lock{display:inline-flex;width:22px;height:22px;flex:0 0 22px;color:var(--agl153-green);align-items:center;justify-content:center}
.agl153-lock svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.agl153-toggle-text{flex:1}
.agl153-expand{margin-left:auto;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .15s}
.agl153-compare[open] .agl153-expand{transform:rotate(225deg)}
.agl153-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.agl153-table{border-collapse:collapse;width:100%;min-width:345px;font-size:13px;line-height:1.3;table-layout:fixed;color:inherit}
.agl153-table th,.agl153-table td{padding:10px 8px;border-bottom:1px solid #e2ebe4;text-align:center;vertical-align:middle;word-break:normal;overflow-wrap:break-word}
.agl153-table th:first-child,.agl153-table td:first-child{text-align:left;width:39%;font-weight:650}
.agl153-table thead th{background:#f5f9f6;color:#21513e;font-weight:750}
.agl153-table thead th:first-child{width:39%}
.agl153-table tbody tr:last-child td{border-bottom:0}
.agl153-yes{font-size:18px;font-weight:850;color:#167347}
.agl153-no{font-size:18px;color:#71847b}
.agl153-small{font-size:12px;line-height:1.3}
.agl153-note{font-size:12px;line-height:1.5;color:#4a6657;margin:9px 14px 6px}
.agl153-actions{display:flex;flex-wrap:wrap;gap:8px;padding:10px 13px 15px}
.agl153-actions button{border-radius:11px;padding:10px 12px;min-height:43px;border:1px solid #1e7354;background:#176448;color:white;font:bold 13px system-ui;cursor:pointer}
.agl153-actions button.agl153-outline{color:#176448;background:white}
.agl153-actions button:focus-visible{outline:3px solid #8ccca1;outline-offset:2px}
.agl153-site-link{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;font:700 14px/1.4 system-ui,sans-serif;color:#155e42;text-decoration:none;padding:9px 12px;border-radius:11px;border:1px solid transparent;min-height:43px;box-sizing:border-box}
.agl153-site-link:hover,.agl153-site-link:focus-visible{color:#0f4d34;background:#e7f3e9;border-color:#c7dfd0;text-decoration:underline}
.agl153-site-link:focus-visible{outline:3px solid #83ba97;outline-offset:2px}
.agl153-home-what-link{margin-left:8px}
.agl-guest-signup-banner .agl153-compare{margin-bottom:0}
.agl-guest-signup-banner .agl153-compare summary{color:#1a543c}
#agl-first-launch-welcome .agl153-compare{margin:8px 0 4px;text-align:left}
#agl-first-launch-welcome .agl153-compare summary{font-size:13px}
#agl-first-launch-welcome .agl153-actions button{margin:0;min-height:40px;width:auto;flex:1 1 140px;font-size:13px}
#agl-account-panel .agl153-compare{margin:12px 0}
#agl-premium-page .agl153-compare{margin:14px auto 20px;max-width:960px}
#agl-premium-page .agl-premium-comparison{display:none!important}/* replace legacy free/premium comparison with consistent three-tier table */
.agl153-premium-lock{display:inline-flex;vertical-align:middle;margin-right:6px;color:#237650;font-size:13px;line-height:1.2}
.agl153-premium-lock svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
/* The bundled React app has ONE direct icon-button in .mobile-header: its redundant Profile button.
   The bottom-nav Profile control and menu links remain untouched. */
@media(max-width:1039px){.mobile-header > button.icon-button{display:none!important}}
@media(max-width:480px){.agl153-table th,.agl153-table td{padding:9px 6px;font-size:12px}.agl153-table th:first-child,.agl153-table td:first-child{width:36%}.agl153-compare summary{padding:12px 11px}.agl153-home-what-link{display:inline-flex;margin-left:0}}
@media(prefers-reduced-motion:reduce){.agl153-expand{transition:none}}
body.agl-dark .agl153-compare,body.dark .agl153-compare,[data-theme="dark"] .agl153-compare{background:#183a30;color:#f2fff5;border-color:#416b58}
body.agl-dark .agl153-compare summary,body.dark .agl153-compare summary,[data-theme="dark"] .agl153-compare summary{background:#234a3b;color:#f6fff8}
body.agl-dark .agl153-table thead th,body.dark .agl153-table thead th,[data-theme="dark"] .agl153-table thead th{background:#24513d;color:white}
body.agl-dark .agl153-table td,body.dark .agl153-table td,[data-theme="dark"] .agl153-table td{border-color:#38674e}
body.agl-dark .agl153-note,body.dark .agl153-note,[data-theme="dark"] .agl153-note{color:#d2eddd}
body.agl-dark .agl153-actions button.agl153-outline,body.dark .agl153-actions button.agl153-outline,[data-theme="dark"] .agl153-actions button.agl153-outline{color:#f0fff3;background:#244939;border-color:#83b69a}
body.agl-dark .agl153-site-link,body.dark .agl153-site-link,html.agl-dark-mode .agl153-site-link{color:#d4ffe4}
html.agl-dark-mode .agl153-compare{background:#183a30!important;color:#f2fff5!important;border-color:#416b58!important}
html.agl-dark-mode .agl153-compare summary{background:#234a3b!important;color:#f6fff8!important}
html.agl-dark-mode .agl153-table thead th{background:#24513d!important;color:#f6fff8!important}
html.agl-dark-mode .agl153-note{color:#d2eddd!important}
html.agl-dark-mode .agl153-table td{border-color:#38674e!important}
html.agl-dark-mode .agl153-actions button.agl153-outline{color:#f0fff3!important;background:#244939!important;border-color:#83b69a!important}
