:root{--bg: #0d1117;--bg2: #161b22;--bg3: #21262d;--bg4: #2d333b;--border: #30363d;--text: #c9d1d9;--dim: #6e7681;--blue: #008170;--green: #3fb950;--yellow: #d29922;--red: #f85149;--purple: #a371f7;--cyan: #39d5d3;--orange: #f0883e;--shadow: rgba(0, 0, 0, .4);--c-primary: #008170;--c-primary-dark: #005A4E;--c-secondary: #1c3343;--c-accent: #724f34;--tint-primary: rgba(0, 129, 112, .12);--tint-primary-strong: rgba(0, 129, 112, .18);--radius: 8px;--radius-lg: 12px;--font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--font-mono: "JetBrains Mono", "Fira Code", monospace}[data-theme=light]{--bg: #ffffff;--bg2: #f6f8fa;--bg3: #eaeef2;--bg4: #d0d7de;--border: #d0d7de;--text: #1f2328;--dim: #656d76;--blue: #008170;--green: #1a7f37;--yellow: #9a6700;--red: #cf222e;--purple: #8250df;--cyan: #0891b2;--orange: #bc4c00;--shadow: rgba(0, 0, 0, .1);--c-primary: #008170;--c-primary-dark: #005A4E;--c-secondary: #1c3343;--c-accent: #724f34;--tint-primary: rgba(0, 129, 112, .1);--tint-primary-strong: rgba(0, 129, 112, .16)}[data-theme=auto]{--bg: #0d1117;--bg2: #161b22;--bg3: #21262d;--bg4: #2d333b;--border: #30363d;--text: #c9d1d9;--dim: #6e7681;--blue: #008170;--green: #3fb950;--yellow: #d29922;--red: #f85149;--purple: #a371f7;--cyan: #39d5d3;--orange: #f0883e;--shadow: rgba(0, 0, 0, .4);--c-primary: #008170;--c-primary-dark: #005A4E;--c-secondary: #1c3343;--c-accent: #724f34;--tint-primary: rgba(0, 129, 112, .12);--tint-primary-strong: rgba(0, 129, 112, .18)}@media (prefers-color-scheme: light){[data-theme=auto]{--bg: #ffffff;--bg2: #f6f8fa;--bg3: #eaeef2;--bg4: #d0d7de;--border: #d0d7de;--text: #1f2328;--dim: #656d76;--blue: #008170;--green: #1a7f37;--yellow: #9a6700;--red: #cf222e;--purple: #8250df;--cyan: #0891b2;--orange: #bc4c00;--shadow: rgba(0, 0, 0, .1);--c-primary: #008170;--c-primary-dark: #005A4E;--c-secondary: #1c3343;--c-accent: #724f34;--tint-primary: rgba(0, 129, 112, .1);--tint-primary-strong: rgba(0, 129, 112, .16)}}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%;background:var(--bg);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;overscroll-behavior:none}body.app-mode{overflow:hidden;height:100%;position:fixed;top:0;right:0;bottom:0;left:0;width:100%}.app-shell{display:flex;flex-direction:column;height:100vh;height:100dvh;width:100%;margin:0 auto;background:var(--bg);overflow:hidden;overscroll-behavior:none;padding-top:env(safe-area-inset-top)}@media (min-width: 768px){.app-shell{max-width:640px}}.app-main{flex:1;min-height:0;display:flex;flex-direction:column}.page{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 16px calc(88px + env(safe-area-inset-bottom))}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;background:var(--bg2);border-top:1px solid var(--border);display:flex;padding:10px 0;padding-bottom:calc(10px + env(safe-area-inset-bottom));z-index:100}@media (min-width: 768px){.bottom-nav{max-width:640px}}@media (max-width: 767px){.bottom-nav{max-width:100%}}.nav-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 4px;cursor:pointer;text-decoration:none;color:var(--dim);font-size:10px;min-height:56px;transition:color .15s}.nav-item.active{color:var(--blue)}.nav-item svg{width:26px;height:26px}.nav-item--hero{justify-content:flex-end}.nav-item--hero .nav-hero-btn{width:54px;height:54px;border-radius:50%;margin-top:-26px;margin-bottom:2px;display:flex;align-items:center;justify-content:center;background:var(--bg2);border:3px solid var(--bg2);box-shadow:0 4px 14px #00000047;transition:transform .12s,box-shadow .12s}.nav-item--hero.active .nav-hero-btn{border-color:var(--blue);box-shadow:0 4px 16px #58a6ff73}.nav-item--hero:active .nav-hero-btn{transform:scale(.94)}.tab-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;margin:0 -16px 16px;padding:14px 16px 8px;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:6;background:var(--bg)}.tab-header__left{display:flex;align-items:center;gap:11px;min-width:0}.tab-header__icon{width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden}.tab-header__titles{min-width:0}.tab-header__wordmark{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);line-height:1;margin-bottom:3px}.tab-header__name{font-size:18px;font-weight:700;line-height:1.1}.tab-header__right{flex-shrink:0}.tab-counter{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.1;padding:5px 12px;border-radius:10px;background:var(--bg3);border:1px solid var(--border);min-width:62px}.tab-counter__num{font-size:16px;font-weight:800;color:var(--text)}.tab-counter__label{font-size:10.5px;color:var(--dim);font-weight:600}.step-badge{display:inline-flex;align-items:center;justify-content:center;padding:3px 12px;border-radius:999px;background:var(--bg3);border:1px solid var(--border);font-size:12.5px;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums}.sheet-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:150;background:#00000073;display:flex;align-items:flex-end;animation:sheet-fade .18s ease}.sheet{width:100%;max-width:640px;margin:0 auto;background:var(--bg2);border-top-left-radius:18px;border-top-right-radius:18px;border-top:1px solid var(--border);max-height:72dvh;display:flex;flex-direction:column;padding:8px 16px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -8px 30px #00000059;animation:sheet-up .24s cubic-bezier(.22,1,.36,1)}.sheet__grip{width:40px;height:4px;border-radius:2px;background:var(--border);margin:4px auto 12px;flex-shrink:0}.sheet__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;flex-shrink:0}.sheet__body{overflow-y:auto;-webkit-overflow-scrolling:touch}@keyframes sheet-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes sheet-fade{0%{opacity:0}to{opacity:1}}.card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-lg);padding:16px;margin-bottom:12px}.card-title{font-size:13px;font-weight:600;color:var(--dim);text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px}.level-ok{color:var(--green)}.level-attention{color:var(--cyan)}.level-warning{color:var(--yellow)}.level-critical{color:var(--red)}.risk-bar{height:6px;border-radius:3px;background:var(--bg3);overflow:hidden;margin:8px 0}.risk-bar-fill{height:100%;border-radius:3px;transition:width .5s ease}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 18px;border-radius:var(--radius);border:none;cursor:pointer;font-family:var(--font);font-size:14px;font-weight:500;transition:opacity .15s,transform .1s;text-decoration:none}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--blue);color:#fff}.btn-secondary{background:var(--bg3);color:var(--text);border:1px solid var(--border)}.btn-danger{background:var(--red);color:#fff}.btn-full{width:100%}.form-group{margin-bottom:14px}.form-label{display:block;font-size:13px;color:var(--dim);margin-bottom:5px}.form-input{width:100%;background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px;color:var(--text);font-family:var(--font);font-size:16px;outline:none;transition:border-color .15s}.form-input:focus{border-color:var(--blue)}.score-big{font-size:48px;font-weight:700;line-height:1}.score-ring{position:relative;display:inline-flex;align-items:center;justify-content:center}.chat-messages{display:flex;flex-direction:column;gap:10px;padding-bottom:16px}.chat-bubble{max-width:82%;padding:10px 13px;border-radius:16px;font-size:14px;line-height:1.5;white-space:pre-wrap;word-break:break-word}.chat-bubble.user{align-self:flex-end;background:var(--blue);color:#fff;border-bottom-right-radius:4px}.chat-bubble.assistant{align-self:flex-start;background:var(--bg3);border:1px solid var(--border);border-bottom-left-radius:4px}.chat-input-bar{position:fixed;bottom:calc(76px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);width:100%;background:var(--bg2);border-top:1px solid var(--border);padding:10px 12px;display:flex;gap:8px;z-index:99}@media (min-width: 768px){.chat-input-bar{max-width:640px}}.chat-input-bar textarea{flex:1;background:var(--bg3);border:1px solid var(--border);border-radius:20px;padding:9px 14px;color:var(--text);font-family:var(--font);font-size:16px;resize:none;outline:none;min-height:40px;max-height:120px;transition:border-color .15s}.chat-input-bar textarea:focus{border-color:var(--blue)}.chat-view{display:flex;flex-direction:column;flex:1;min-height:0;padding:16px 16px 0;overflow:hidden;overscroll-behavior:none}.chat-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-top:4px;-webkit-overflow-scrolling:touch}.chat-input-inline{flex-shrink:0;display:flex;align-items:flex-end;gap:8px;padding:12px 0;margin-bottom:calc(88px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--border)}.chat-round-btn{flex-shrink:0;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--bg3);border:1px solid var(--border);color:var(--text);cursor:pointer;position:relative;transition:background .12s,transform .1s}.chat-round-btn:active{transform:scale(.94)}.chat-round-btn svg{width:19px;height:19px}.chat-round-btn__badge{position:absolute;top:-3px;right:-3px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--blue);color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center}.chat-input-inline textarea{flex:1;background:var(--bg3);border:1px solid var(--border);border-radius:20px;padding:9px 14px;color:var(--text);font-family:var(--font);font-size:16px;resize:none;outline:none;min-height:40px;max-height:120px;transition:border-color .15s}.chat-input-inline textarea:focus{border-color:var(--blue)}.scale-question{margin-bottom:24px}.scale-labels{display:flex;justify-content:space-between;font-size:12px;color:var(--dim);margin-top:4px}input[type=range]{width:100%;height:4px;accent-color:var(--blue);margin:12px 0 4px}.choice-options{display:flex;flex-direction:column;gap:8px;margin-bottom:24px}.choice-option{padding:12px 16px;border-radius:var(--radius);border:1px solid var(--bg4);background:var(--bg2);color:var(--fg);font-size:14px;text-align:left;cursor:pointer;transition:all .2s}.choice-option:hover{border-color:var(--blue);background:var(--bg3)}.choice-option.selected{border-color:var(--blue);background:var(--tint-primary);font-weight:600}.pair-options{display:flex;align-items:center;gap:12px;margin-bottom:24px}.pair-option{flex:1;padding:16px 12px;border-radius:var(--radius);border:1px solid var(--bg4);background:var(--bg2);color:var(--fg);font-size:14px;font-weight:500;text-align:center;cursor:pointer;transition:all .2s}.pair-option:hover{border-color:var(--blue);background:var(--bg3)}.pair-option.selected{border-color:var(--blue);background:var(--tint-primary-strong);font-weight:700}.pair-vs{color:var(--dim);font-size:13px;font-weight:600;flex-shrink:0}.progress-dots{display:flex;gap:6px;justify-content:center;margin-bottom:20px}.progress-dot{width:8px;height:8px;border-radius:4px;background:var(--bg4);transition:all .2s}.progress-dot.active{background:var(--blue);width:20px}.progress-dot.done{background:var(--green)}.rec-banner{background:linear-gradient(135deg,#1a1f2e,#1f2937);border:1px solid var(--purple);border-radius:var(--radius-lg);padding:16px;margin-bottom:12px}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.page-title{font-size:20px;font-weight:700}.pcg-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;border-bottom:1px solid var(--border);background:var(--bg);width:100%}.pcg-header__brand{display:inline-flex;align-items:center}.pcg-header__logo{display:block;width:48px;height:48px;border-radius:10px}.pcg-header__product{display:inline-flex;align-items:baseline;gap:0;color:var(--text);text-decoration:none}.pcg-header__product:hover{opacity:.8}.pcg-header__product-name{font-weight:700;font-size:16px;line-height:1}.pcg-header__product-by{font-size:13px;color:var(--dim);line-height:1}.pcg-footer{border-top:1px solid var(--border);background:var(--bg2);padding:24px 20px;font-size:13px;color:var(--dim)}.pcg-footer__inner{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:12px}.pcg-footer__links{display:flex;flex-wrap:wrap;gap:14px}.pcg-footer__links a{color:var(--dim);text-decoration:none}.pcg-footer__links a:hover{color:var(--text);text-decoration:underline}.pcg-footer__copy{font-size:12px;opacity:.8}.auth-screen{min-height:100dvh;display:flex;flex-direction:column;align-items:stretch;background:var(--bg)}.auth-screen__body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px}.auth-logo{font-size:40px;margin-bottom:8px}.auth-title{font-size:24px;font-weight:700;margin-bottom:4px}.auth-subtitle{color:var(--dim);font-size:14px;margin-bottom:32px;text-align:center}.auth-card{width:100%;max-width:380px}.auth-toggle{text-align:center;margin-top:16px;font-size:14px;color:var(--dim)}.auth-toggle span{color:var(--blue);cursor:pointer}.auth-tabs{display:flex;gap:6px;margin-bottom:14px;background:var(--bg2);padding:4px;border-radius:var(--radius);border:1px solid var(--border)}.auth-tab{flex:1;background:none;border:none;padding:8px 10px;border-radius:6px;font-family:inherit;font-size:13px;font-weight:600;line-height:15px;color:var(--dim);cursor:pointer;transition:background .15s,color .15s}.auth-tab.active{background:var(--blue);color:#fff}.auth-tab:not(.active):hover{color:var(--text)}.text-dim{color:var(--dim)}.text-sm{font-size:13px}.mt-8{margin-top:8px}.mt-16{margin-top:16px}.gap-8{gap:8px}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.spinner{width:24px;height:24px;border:2px solid var(--border);border-top-color:var(--blue);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-msg{background:#f851491a;border:1px solid var(--red);border-radius:var(--radius);padding:10px 12px;font-size:13px;color:var(--red);margin-bottom:12px}.auth-hintbox{font-size:12.5px;text-align:center;margin-top:14px;padding:9px 10px;background:var(--bg3);border-radius:var(--radius);line-height:1.5;color:var(--dim)}.auth-hintlink{color:var(--blue);font-weight:700;cursor:pointer;text-decoration:underline}.auth-below{text-align:center;margin-top:12px}.auth-cardtitle{margin:0 0 12px;font-size:15px;font-weight:600;color:var(--text);text-align:center}.auth-quickcheck{width:100%;margin-top:24px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 18px;background:var(--bg2);border:1px solid var(--border);border-radius:12px;color:var(--text);text-align:center;cursor:pointer;transition:border-color .15s,background .15s}.auth-quickcheck:hover{border-color:var(--blue);background:var(--bg3)}.auth-quickcheck__title{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600}.auth-quickcheck__sub{font-size:13px;line-height:1.5;color:var(--dim)}@media (width <= 380px){.auth-quickcheck{padding:14px 12px}.auth-quickcheck__title{font-size:14px}.auth-quickcheck__sub{font-size:12.5px}}.auth-fieldhint{margin:6px 0 0;font-size:12px;color:var(--dim);line-height:1.5}.auth-linkline{font-size:12.5px;color:var(--blue);cursor:pointer;text-decoration:underline}.auth-legal{font-size:11.5px;color:var(--dim);text-align:center;margin-top:16px;line-height:1.5}.auth-legal a{color:var(--blue);text-decoration:underline}.pcg-toast{position:fixed;top:calc(16px + env(safe-area-inset-top));right:16px;z-index:300;display:flex;align-items:center;gap:8px;max-width:min(320px,calc(100vw - 32px));padding:11px 14px;background:var(--bg2);border:1px solid var(--blue);border-radius:10px;color:var(--text);font-size:13px;line-height:1.45;box-shadow:0 10px 26px #00000073;animation:pcg-toast-auf .18s ease-out}.pcg-toast svg{color:var(--blue);flex-shrink:0}@keyframes pcg-toast-auf{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
