.layout{min-height:100vh;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-text-color, #000000)}.layout-header{padding:16px;border-bottom:1px solid rgba(0,0,0,.1);background-color:var(--tg-theme-bg-color, #ffffff)}.layout-header h1{font-size:20px;font-weight:600;margin:0 0 8px}.user-greeting{font-size:14px;color:var(--tg-theme-hint-color, #999999)}.layout-main{flex:1;padding:16px;overflow-y:auto}@media (prefers-color-scheme: dark){.layout-header{border-bottom-color:#ffffff1a}}.card{background:var(--tg-theme-bg-color, #ffffff);border-radius:12px;padding:16px;box-shadow:0 2px 8px #0000001a;border:1px solid rgba(0,0,0,.05);margin-bottom:16px}.card-title{font-size:18px;font-weight:600;margin:0 0 12px;color:var(--tg-theme-text-color, #000000)}.card-content{color:var(--tg-theme-text-color, #000000)}@media (prefers-color-scheme: dark){.card{border-color:#ffffff1a}}.btn{border:none;border-radius:12px;font-family:inherit;font-weight:500;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;min-height:44px}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background-color:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff)}.btn-primary:hover:not(:disabled){opacity:.9}.btn-secondary{background-color:#0000000d;color:var(--tg-theme-text-color, #000000)}.btn-secondary:hover:not(:disabled){background-color:#0000001a}.btn-outline{background-color:transparent;border:1px solid var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-color, #2481cc)}.btn-outline:hover:not(:disabled){background-color:#2481cc1a}.btn-danger{background-color:#f44;color:#fff}.btn-danger:hover:not(:disabled){background-color:#f33}.btn-small{padding:8px 16px;font-size:14px;min-height:36px}.btn-medium{padding:12px 24px;font-size:16px}.btn-large{padding:16px 32px;font-size:18px;min-height:52px}.btn-full-width{width:100%}@media (prefers-color-scheme: dark){.btn-secondary{background-color:#ffffff1a;color:var(--tg-theme-text-color, #ffffff)}.btn-secondary:hover:not(:disabled){background-color:#fff3}}.calculation-form{display:flex;flex-direction:column;gap:16px}.form-group{display:flex;flex-direction:column;gap:8px}.form-label{font-size:14px;font-weight:500;color:var(--tg-theme-text-color, #000000)}.form-input{padding:12px;border:1px solid rgba(0,0,0,.2);border-radius:8px;font-size:16px;font-family:inherit;background-color:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-text-color, #000000);min-height:44px}.form-input:focus{outline:none;border-color:var(--tg-theme-button-color, #2481cc)}.form-input:disabled{opacity:.5;cursor:not-allowed}.form-error{padding:12px;background-color:#ffebee;color:#c62828;border-radius:8px;font-size:14px}.form-hint{padding:12px;background-color:#2481cc1a;color:var(--tg-theme-text-color, #000000);border-radius:8px;font-size:14px;line-height:1.5}.polling-info{margin-top:1rem;padding:1rem;background:var(--tg-theme-secondary-bg-color, #f0f0f0);border-radius:8px;text-align:center}.polling-info p{margin:.5rem 0;font-size:.9rem;color:var(--tg-theme-text-color, #000)}.polling-hint{font-size:.85rem!important;color:var(--tg-theme-hint-color, #666)!important;font-style:italic}@media (prefers-color-scheme: dark){.form-input{border-color:#fff3}.form-error{background-color:#c6282833}.form-hint{background-color:#2481cc33}}.calculation-result{display:flex;flex-direction:column;gap:1rem;padding:1rem}.profile-name{font-size:1.5rem;font-weight:600;margin:0 0 .5rem;color:var(--tg-theme-text-color, #000)}.profile-date{font-size:.9rem;color:var(--tg-theme-hint-color, #999);margin:0}.section-title{font-size:1.2rem;font-weight:600;margin:0 0 1rem;color:var(--tg-theme-text-color, #000)}.codes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:.75rem}.code-badge{display:flex;flex-direction:column;align-items:center;padding:.75rem;background:var(--tg-theme-secondary-bg-color, #f0f0f0);border-radius:8px;text-align:center}.code-name{font-size:.85rem;color:var(--tg-theme-hint-color, #666);margin-bottom:.25rem}.code-number{font-size:1.5rem;font-weight:700;color:var(--tg-theme-button-color, #3390ec)}.opener-text{font-size:1rem;line-height:1.6;color:var(--tg-theme-text-color, #000);margin:0}.summary-list,.strengths-list,.weaknesses-list,.formula-list,.signals-list,.explanation-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.75rem}.summary-item,.strength-item,.weakness-item,.formula-item,.signal-item,.explanation-item{display:flex;align-items:flex-start;gap:.5rem;line-height:1.5;color:var(--tg-theme-text-color, #000)}.summary-item{padding-left:1rem;position:relative}.summary-item:before{content:"•";position:absolute;left:0;color:var(--tg-theme-button-color, #3390ec);font-weight:700}.strength-icon,.weakness-icon,.formula-icon,.signal-icon{font-size:1.2rem;flex-shrink:0}.signal-resource{color:var(--tg-theme-text-color, #000)}.signal-deficit{color:var(--tg-theme-destructive-text-color, #d32f2f)}.conflicts-list{display:flex;flex-direction:column;gap:1.5rem}.conflict-item{padding:1rem;background:var(--tg-theme-secondary-bg-color, #f5f5f5);border-radius:8px;border-left:3px solid var(--tg-theme-button-color, #3390ec)}.conflict-title{font-size:1.1rem;font-weight:600;margin:0 0 .5rem;color:var(--tg-theme-text-color, #000)}.conflict-description{font-size:.95rem;line-height:1.5;color:var(--tg-theme-text-color, #000);margin:0 0 .75rem}.conflict-manifestations,.conflict-advice{margin-top:.75rem;font-size:.9rem}.conflict-manifestations strong,.conflict-advice strong{display:block;margin-bottom:.5rem;color:var(--tg-theme-text-color, #000)}.conflict-manifestations ul{list-style:none;padding-left:1rem;margin:.5rem 0 0}.conflict-manifestations li{padding-left:1rem;position:relative;margin-bottom:.25rem}.conflict-manifestations li:before{content:"→";position:absolute;left:0;color:var(--tg-theme-hint-color, #999)}.conflict-advice p{margin:.5rem 0 0;line-height:1.5;color:var(--tg-theme-text-color, #000)}.practices-list{display:flex;flex-direction:column;gap:1.5rem}.practice-category{padding:1rem;background:var(--tg-theme-secondary-bg-color, #f5f5f5);border-radius:8px}.practice-category-title{font-size:1.1rem;font-weight:600;margin:0 0 1rem;color:var(--tg-theme-button-color, #3390ec)}.practice-item{margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--tg-theme-hint-color, #e0e0e0)}.practice-item:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.practice-title{font-size:1rem;font-weight:600;margin:0 0 .5rem;color:var(--tg-theme-text-color, #000)}.practice-text{font-size:.9rem;line-height:1.5;color:var(--tg-theme-text-color, #000);margin:.5rem 0}.demo-badge{display:inline-block;padding:.25rem .75rem;background:var(--tg-theme-button-color, #3390ec);color:#fff;border-radius:12px;font-size:.85rem;font-weight:600;margin-bottom:.75rem}.demo-text{font-size:.95rem;line-height:1.5;color:var(--tg-theme-text-color, #000);margin:0 0 1rem}@media (max-width: 480px){.codes-grid{grid-template-columns:repeat(2,1fr)}.calculation-result{padding:.5rem}}.profile-list{display:flex;flex-direction:column;gap:16px}.profile-item{display:flex;justify-content:space-between;align-items:center;padding:12px;border-radius:8px;cursor:pointer;transition:background-color .2s;margin-bottom:8px}.profile-item:last-child{margin-bottom:0}.profile-item:hover{background-color:#00000008}.profile-item.selected{background-color:#2481cc1a;border:1px solid var(--tg-theme-button-color, #2481cc)}.profile-info{flex:1;display:flex;flex-direction:column;gap:4px}.profile-header{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.profile-name{font-size:16px;font-weight:600;margin:0;color:var(--tg-theme-text-color, #000000)}.profile-date{font-size:14px;color:var(--tg-theme-hint-color, #999999);margin:0}.profile-badge{display:inline-block;padding:2px 8px;border-radius:8px;font-size:11px;font-weight:600;text-transform:uppercase}.profile-badge.main{background-color:#4caf50;color:#fff}.profile-badge.demo{background-color:#ff9800;color:#fff}.profile-badge.full{background-color:#2196f3;color:#fff}.profile-actions{display:flex;gap:8px;align-items:center}@media (prefers-color-scheme: dark){.profile-item:hover{background-color:#ffffff0d}.profile-item.selected{background-color:#2481cc33}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}.modal-content{width:100%;max-width:400px;max-height:90vh;overflow-y:auto}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.modal-header h2{font-size:20px;font-weight:600;margin:0;color:var(--tg-theme-text-color, #000000)}.modal-close{background:none;border:none;font-size:32px;line-height:1;color:var(--tg-theme-hint-color, #999999);cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s}.modal-close:hover{background-color:#0000000d}.create-profile-form{display:flex;flex-direction:column;gap:16px}.modal-actions{display:flex;gap:12px}.modal-actions .btn{flex:1}@media (prefers-color-scheme: dark){.modal-close:hover{background-color:#ffffff1a}}.home-page,.calculation-page,.result-page,.profiles-page{display:flex;flex-direction:column;gap:16px}.welcome-text{line-height:1.6;color:var(--tg-theme-text-color, #000000);margin:0 0 16px}.loading-state{text-align:center;padding:40px 20px;color:var(--tg-theme-hint-color, #999999)}.result-actions{display:flex;gap:12px;margin-top:16px}.result-actions .btn{flex:1}.chat-page{display:flex;flex-direction:column;height:calc(100vh - 120px);max-height:600px}.chat-info{display:flex;flex-direction:column;gap:12px}.chat-info p{margin:0;font-size:14px;line-height:1.5;color:var(--tg-theme-text-color, #000000)}.chat-messages{flex:1;overflow-y:auto;padding:16px 0;display:flex;flex-direction:column;gap:12px;-webkit-overflow-scrolling:touch}.chat-message{display:flex;flex-direction:column;max-width:80%;animation:fadeIn .3s ease}.chat-message.user{align-self:flex-end}.chat-message.assistant{align-self:flex-start}.message-content{padding:12px 16px;border-radius:12px;line-height:1.5;word-wrap:break-word}.chat-message.user .message-content{background-color:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff);border-bottom-right-radius:4px}.chat-message.assistant .message-content{background-color:#0000000d;color:var(--tg-theme-text-color, #000000);border-bottom-left-radius:4px}.message-content.typing{display:flex;gap:4px;padding:16px}.message-content.typing span{width:8px;height:8px;border-radius:50%;background-color:var(--tg-theme-hint-color, #999999);animation:typing 1.4s infinite}.message-content.typing span:nth-child(2){animation-delay:.2s}.message-content.typing span:nth-child(3){animation-delay:.4s}.message-time{font-size:11px;color:var(--tg-theme-hint-color, #999999);margin-top:4px;padding:0 4px}.empty-chat{text-align:center;padding:40px 20px;color:var(--tg-theme-hint-color, #999999)}.empty-chat p{margin:0;line-height:1.6}.chat-input-form{display:flex;gap:8px;padding-top:12px;border-top:1px solid rgba(0,0,0,.1)}.chat-input{flex:1;padding:12px;border:1px solid rgba(0,0,0,.2);border-radius:12px;font-size:16px;font-family:inherit;background-color:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-text-color, #000000);min-height:44px}.chat-input:focus{outline:none;border-color:var(--tg-theme-button-color, #2481cc)}.chat-input:disabled{opacity:.5;cursor:not-allowed}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes typing{0%,60%,to{transform:translateY(0);opacity:.7}30%{transform:translateY(-10px);opacity:1}}@media (prefers-color-scheme: dark){.chat-message.assistant .message-content{background-color:#ffffff1a}.chat-input-form{border-top-color:#ffffff1a}.chat-input{border-color:#fff3}}.forecast-page{display:flex;flex-direction:column;gap:16px}.forecast-header{text-align:center}.forecast-header h2{font-size:20px;font-weight:600;margin:0 0 8px;color:var(--tg-theme-text-color, #000000)}.forecast-date{font-size:14px;color:var(--tg-theme-hint-color, #999999);margin:0;text-transform:capitalize}.forecast-text{font-size:16px;line-height:1.6;color:var(--tg-theme-text-color, #000000);margin:0}.forecast-list{margin:0;padding-left:20px;color:var(--tg-theme-text-color, #000000)}.forecast-list li{margin-bottom:8px;line-height:1.6}.premium-options{display:flex;flex-direction:column;gap:12px}.materials-page{display:flex;flex-direction:column;gap:16px}.materials-intro{margin:0;line-height:1.6;color:var(--tg-theme-text-color, #000000)}.material-item{display:flex;flex-direction:column;gap:12px}.material-info{display:flex;flex-direction:column;gap:8px}.material-title{font-size:18px;font-weight:600;margin:0;color:var(--tg-theme-text-color, #000000)}.material-description{font-size:14px;line-height:1.5;color:var(--tg-theme-text-color, #000000);margin:0}.material-type{display:inline-block;padding:4px 12px;background-color:#2481cc1a;color:var(--tg-theme-button-color, #2481cc);border-radius:12px;font-size:12px;font-weight:500;width:fit-content}.empty-state,.loading-state,.error-state{text-align:center;padding:40px 20px;color:var(--tg-theme-hint-color, #999999)}.referral-page{display:flex;flex-direction:column;gap:16px}.referral-description{margin:0;line-height:1.6;color:var(--tg-theme-text-color, #000000)}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;text-align:center}.stat-item{display:flex;flex-direction:column;gap:4px}.stat-value{font-size:24px;font-weight:700;color:var(--tg-theme-button-color, #2481cc)}.stat-label{font-size:12px;color:var(--tg-theme-hint-color, #999999);text-transform:uppercase}.referral-link-container{display:flex;gap:8px;margin-bottom:8px}.referral-link-input{flex:1;padding:12px;border:1px solid rgba(0,0,0,.2);border-radius:8px;font-size:14px;font-family:inherit;background-color:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-text-color, #000000);overflow:hidden;text-overflow:ellipsis}.referral-code{font-size:14px;color:var(--tg-theme-hint-color, #999999);margin:0;font-family:monospace}.referral-rules{margin:0;padding-left:20px;color:var(--tg-theme-text-color, #000000)}.referral-rules li{margin-bottom:8px;line-height:1.6}.error-state{color:#c62828}@media (prefers-color-scheme: dark){.referral-link-input{border-color:#fff3}}.history-page{display:flex;flex-direction:column;gap:16px}.history-intro{margin:0;line-height:1.6;color:var(--tg-theme-text-color, #000000)}.history-item{display:flex;flex-direction:column;gap:12px}.history-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}.history-name{font-size:18px;font-weight:600;margin:0;color:var(--tg-theme-text-color, #000000)}.history-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase}.history-badge.full{background-color:#2196f3;color:#fff}.history-badge.demo{background-color:#ff9800;color:#fff}.history-date,.history-created{font-size:14px;color:var(--tg-theme-hint-color, #999999);margin:0}.history-codes{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.code-badge{display:inline-block;padding:6px 12px;background-color:#2481cc1a;color:var(--tg-theme-button-color, #2481cc);border-radius:8px;font-size:12px;font-weight:500}.empty-state{text-align:center;padding:40px 20px;color:var(--tg-theme-text-color, #000000)}.empty-state p{margin:0 0 8px}.empty-hint{font-size:14px;color:var(--tg-theme-hint-color, #999999)}.loading-state,.error-state{text-align:center;padding:20px;color:var(--tg-theme-text-color, #000000)}.error-state{color:#c62828;margin-bottom:16px}.profile-empty,.profile-pending,.profile-ready{display:flex;flex-direction:column;gap:1rem;padding:1rem}.empty-icon,.pending-icon,.profile-icon{font-size:4rem;text-align:center;margin-bottom:1rem}.profile-empty h2,.profile-pending h2,.profile-ready h2{text-align:center;margin:0 0 .5rem;color:var(--tg-theme-text-color, #000)}.empty-text,.pending-text{text-align:center;color:var(--tg-theme-hint-color, #666);line-height:1.5;margin-bottom:1.5rem}.pending-tips{margin:1.5rem 0;padding:1rem;background:var(--tg-theme-secondary-bg-color, #f5f5f5);border-radius:8px}.pending-tips h3{font-size:1rem;margin:0 0 .75rem;color:var(--tg-theme-text-color, #000)}.pending-tips ul{list-style:none;padding:0;margin:0}.pending-tips li{padding:.5rem 0 .5rem 1.5rem;position:relative;color:var(--tg-theme-text-color, #000)}.pending-tips li:before{content:"•";position:absolute;left:0;color:var(--tg-theme-button-color, #3390ec);font-weight:700}.profile-header{text-align:center;margin-bottom:1.5rem}.profile-name{font-size:1.2rem;font-weight:600;margin:.5rem 0;color:var(--tg-theme-text-color, #000)}.profile-date{font-size:.9rem;color:var(--tg-theme-hint-color, #666);margin:.5rem 0}.profile-codes{margin:1.5rem 0}.profile-codes h3{font-size:1.1rem;margin:0 0 1rem;color:var(--tg-theme-text-color, #000)}.codes-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:.75rem}.code-preview{display:flex;flex-direction:column;align-items:center;padding:.75rem;background:var(--tg-theme-secondary-bg-color, #f0f0f0);border-radius:8px;text-align:center}.code-label{font-size:.85rem;color:var(--tg-theme-hint-color, #666);margin-bottom:.25rem}.code-value{font-size:1.5rem;font-weight:700;color:var(--tg-theme-button-color, #3390ec)}.profile-opener{margin:1.5rem 0;padding:1rem;background:var(--tg-theme-secondary-bg-color, #f5f5f5);border-radius:8px}.profile-opener p{margin:0;line-height:1.6;color:var(--tg-theme-text-color, #000)}.profile-actions{margin-top:1rem;display:flex;flex-direction:column;gap:.75rem}.loading-state{text-align:center;padding:2rem;color:var(--tg-theme-hint-color, #666)}.navigation{display:flex;gap:4px;padding:8px 4px;background-color:var(--tg-theme-bg-color, #ffffff);border-top:1px solid rgba(0,0,0,.1);overflow-x:auto;-webkit-overflow-scrolling:touch;flex-wrap:nowrap}.nav-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 8px;border:none;background:none;cursor:pointer;border-radius:8px;transition:background-color .2s;color:var(--tg-theme-text-color, #000000);font-size:12px;min-width:55px;flex-shrink:0;position:relative}.nav-item:hover{background-color:#0000000d}.nav-item.active{background-color:#2481cc1a;color:var(--tg-theme-button-color, #2481cc)}.nav-icon{font-size:20px;line-height:1}.nav-label{font-size:10px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.nav-badge{position:absolute;top:4px;right:4px;background-color:#f44;color:#fff;font-size:10px;font-weight:600;padding:2px 6px;border-radius:10px;min-width:18px;text-align:center}@media (prefers-color-scheme: dark){.navigation{border-top-color:#ffffff1a}.nav-item:hover{background-color:#ffffff0d}}.debug-toggle{position:fixed;bottom:80px;right:16px;width:48px;height:48px;border-radius:50%;background-color:#f44;color:#fff;border:none;font-size:20px;cursor:pointer;z-index:9999;box-shadow:0 2px 8px #0000004d;display:flex;align-items:center;justify-content:center}.debug-toggle:hover{background-color:#f33}.debug-panel{position:fixed;bottom:140px;right:16px;width:90%;max-width:400px;max-height:400px;z-index:9998;background:var(--tg-theme-bg-color, #ffffff);border-radius:12px;box-shadow:0 4px 16px #0000004d}.debug-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.debug-header h3{margin:0;font-size:16px;font-weight:600}.debug-actions{display:flex;gap:8px}.debug-logs{max-height:300px;overflow-y:auto;font-family:monospace;font-size:11px;line-height:1.4;background-color:#0000000d;padding:8px;border-radius:8px}.debug-log-item{margin-bottom:4px;word-break:break-all;color:var(--tg-theme-text-color, #000000)}.debug-empty{text-align:center;color:var(--tg-theme-hint-color, #999999);margin:20px 0}@media (prefers-color-scheme: dark){.debug-logs{background-color:#ffffff0d}}.app{min-height:100vh;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-text-color, #000000)}.loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;text-align:center;gap:16px;padding:20px}.loading .hint{color:var(--tg-theme-hint-color, #999999);font-size:14px}.app>*:not(.navigation){flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.app>*:not(.navigation)::-webkit-scrollbar{width:4px}.app>*:not(.navigation)::-webkit-scrollbar-track{background:transparent}.app>*:not(.navigation)::-webkit-scrollbar-thumb{background:#0003;border-radius:2px}.app>*:not(.navigation)::-webkit-scrollbar-thumb:hover{background:#0000004d}@media (prefers-color-scheme: dark){.app>*:not(.navigation)::-webkit-scrollbar-thumb{background:#fff3}.app>*:not(.navigation)::-webkit-scrollbar-thumb:hover{background:#ffffff4d}}body{margin:0;padding:0}#root{width:100%;min-height:100vh}
