:is(.app-layout,.auth-shell,.workspace-dialog,.legal-page){--ink:#193c32;--muted:#61736a;--paper:#f8faf5;--line:#dce5d8;--surface-soft:#f5f8f1;--accent:#b9dfbf;--accent-soft:#edf5e7;--accent-ink:#28674e;--sidebar:#193b30;color:var(--ink);font-family:Arial,Helvetica,sans-serif}.app-layout{background:var(--paper);min-height:100dvh}:is(.app-layout,.auth-shell,.workspace-dialog) .btn{min-height:46px;box-shadow:none;border-radius:11px;font-size:14px;font-weight:600}:is(.app-layout,.auth-shell,.workspace-dialog) .btn:hover{transform:none}:is(.app-layout,.auth-shell,.workspace-dialog) .btn-primary{color:#fff;background:#205944}:is(.app-layout,.auth-shell,.workspace-dialog) .btn-primary:hover:not(:disabled){background:#164a37}:is(.app-layout,.auth-shell,.workspace-dialog) .btn:disabled{color:#7b897d;opacity:1;background:#e9eee4}:is(.app-layout,.auth-shell,.workspace-dialog) .glass{border-color:var(--line);box-shadow:none;background:#fff}:is(.app-layout,.auth-shell,.workspace-dialog) :is(h1,h2,h3){color:var(--ink);letter-spacing:-.035em;font-weight:600}:is(.app-layout,.auth-shell,.workspace-dialog) :is(.input,.textarea){background:#fbfcf8;border-color:#dce5d8;border-radius:11px;font-size:16px}:is(.app-layout,.auth-shell,.workspace-dialog) :is(.input,.textarea):focus{border-color:#518d66;box-shadow:0 0 0 3px #518d6612}:is(.app-layout,.auth-shell,.workspace-dialog) :is(button,a,summary,input,textarea):focus-visible{outline-offset:3px;outline:3px solid #408165}.app-layout .sidebar{z-index:40;background:#193b30}.app-layout .sidebar:before,.app-layout .sidebar:after{display:none}.app-layout .workspace-caption{letter-spacing:.04em;color:#b0c4b8;font:11px/1.5 Arial,sans-serif}.app-layout .sidebar .side-link{color:#c2d1c6;font-weight:500}.app-layout .sidebar .side-link.active{color:#fff;background:#2b5140;border-color:#50735b;box-shadow:inset 3px 0 #b9dfbf}.app-layout .sidebar .side-link:hover{color:#fff;background:#294c3d;border-color:#0000}.app-layout .sidebar .balance-card{background:#214335;border-color:#42634d}.app-layout .balance-label,.app-layout .sidebar .balance-number small{color:#c0d0c2}.app-layout .balance-number{letter-spacing:-.03em;margin-bottom:15px;font-size:34px}.app-layout .balance-buy{color:#23402e;background:#d8ebbc;font-size:13px}.app-layout .balance-buy:hover{background:#e6f4d5}.app-layout .account-email,.app-layout .account-signout{color:#c2d3c5}.app-layout .account-identity{border-color:#42634d}.app-layout .account-action-error{color:#ffe3c1;font-size:12px}.app-layout .support-link{background:0 0;border-color:#42634d}.app-layout .support-link small{color:#b3c9ba}.app-layout .sidebar-home{color:#dce9de;background:#254738;border-color:#42634d}.app-layout .app-header{margin-bottom:24px;padding-bottom:24px}.app-layout .app-header h1{font-size:clamp(29px,3vw,38px)}.app-layout .page-intro{color:var(--muted);font-size:15px}.app-layout .credit-display{box-shadow:none;border-radius:11px}.app-layout .panel{border-radius:17px}.app-layout .panel-title{margin-bottom:18px}.app-layout .panel-title h2{font-size:22px}.app-layout .panel-title p{font-size:13px;line-height:1.6}.app-layout .source-panel:before{display:none}.app-layout .source-panel .textarea{background:#f8faf5;min-height:240px}.form-step{letter-spacing:.09em;text-transform:uppercase;color:#6a8068;margin-bottom:10px;font-size:10px;font-weight:600;display:block}.app-layout .compact-picker-label{color:#60765e;letter-spacing:.025em;text-transform:none;font-size:11px}.app-layout .compact-options{background:#f1f5eb;border-color:#e0e7d9}.app-layout .compact-options button{color:#5e735e;font-size:13px;font-weight:500}.app-layout .compact-options button.selected{color:#244d31;background:#fff;border-color:#81a67a;box-shadow:0 2px 6px #27432f06}.app-layout .compact-picker p{min-height:0;font-size:12px;line-height:1.6}.tuning-details>summary{cursor:pointer;color:#56724f;justify-content:space-between;align-items:center;gap:12px;min-height:44px;font-size:13px;line-height:1.6;list-style:none;display:flex}.tuning-details>summary::-webkit-details-marker{display:none}.tuning-details>summary>span:last-child{flex-shrink:0;align-items:center;gap:6px;font-size:12px;display:flex}.tuning-details[open]>summary{border-bottom:1px solid var(--line);margin-bottom:18px;padding-bottom:15px}.tuning-details[open]>summary svg{transform:rotate(45deg)}.app-layout .sales-goal-note{color:#685323;overflow-wrap:anywhere;background:#fff9e9;border:1px solid #e5debf;border-radius:12px;margin-top:18px;padding:16px 18px;font-size:13px;line-height:1.6}.app-layout .sales-goal-note strong{color:#59451e;font-size:14px;display:block}.app-layout .sales-goal-note p{margin:8px 0 0}.app-layout .sales-goal-note button{color:#59451e;max-width:100%;min-height:44px;font:inherit;text-align:left;cursor:pointer;text-underline-offset:3px;background:0 0;border:0;align-items:center;gap:8px;margin-top:6px;padding:0;font-weight:600;text-decoration:underline;display:inline-flex}.app-layout .sales-goal-note button svg{flex-shrink:0}.app-layout .format-row{border-color:#e7edde}.app-layout .format-row small{font-size:12px}.app-layout .format-row strong{font-weight:600}.app-layout .stepper button,.app-layout .preset{background:#f6f8f0;border-color:#dce5d8;min-height:44px}.app-layout .crystal-count{color:#406b42;background:#edf5e7;border:1px solid #dce8d3;justify-content:center;min-width:44px}.app-layout .details summary{font-size:14px;font-weight:500}.app-layout .summary-bar{border-radius:14px;margin-top:22px;position:static;box-shadow:0 5px 22px #234f3d08}.app-layout .summary-bar strong{font-size:16px}.app-layout .summary-bar small{font-size:12px}.app-layout .save-note{margin:0;font-size:12px}.balance-empty{background:#edf4e6;border:1px solid #d9e5ce;border-radius:16px;justify-content:space-between;align-items:center;gap:20px;margin:0 0 24px;padding:21px 24px;display:flex}.balance-empty h2{margin:0 0 7px;font-size:18px}.balance-empty p{color:#5e755a;margin:0;font-size:13px;line-height:1.6}.balance-empty>.btn{flex-shrink:0}.draft-restored{color:#42633d;background:#eef4e8;border-radius:10px;margin:0 0 18px;padding:13px 17px;font-size:13px;line-height:1.6}.payment-status{color:#775e22;background:#fff9e9;border:1px solid #e5debf;border-radius:13px;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px;padding:17px 20px;display:flex}.payment-status p{flex:1;min-width:200px;margin:0;font-size:13px;line-height:1.6}.payment-status-success{color:#36633c;background:#edf5e7;border-color:#dce8d3}.app-layout .history-card{border-radius:16px}.app-layout .history-card:hover{border-color:#94ad88;transform:none;box-shadow:0 8px 25px #234f3d06}.app-layout .history-card-top strong{font-size:14px;font-weight:600}.app-layout .history-card p{font-size:14px}.app-layout .status.COMPLETED{color:#3e703c;background:#e8f3e1}.history-empty{text-align:center;padding:42px 24px!important}.history-empty h2{margin:12px 0;font-size:25px}.history-empty p{color:var(--muted);max-width:430px;margin:0 auto 23px;font-size:14px;line-height:1.7}.profile-purchase{border-top:1px solid var(--line);padding:20px 0}.profile-purchase p{color:var(--muted);margin:0 0 14px;font-size:13px}.account-danger{border-top:1px solid var(--line);margin-top:8px;padding-top:20px}.account-danger summary{cursor:pointer;color:#746c59;min-height:36px;font-size:13px}.account-danger p{color:var(--muted);font-size:13px;line-height:1.7}.app-layout .profile-avatar{color:#476e40;background:#edf5e7;border-color:#dce8d3}.app-layout .collection{--soft:#edf5e7;--accent:#3f7b50}.app-layout .collection-hook{background:#f0f6e9;border-left-color:#67945c}.app-layout .collection-topic[aria-current=true]{background:#ecf4e5;box-shadow:inset 3px 0 #67945c}.app-layout .collection-filters button[aria-pressed=true]{background:#205944;border-color:#205944}.app-layout .collection-reader{box-shadow:none;scroll-margin-top:20px}.workspace-footer{border-top:1px solid var(--line);max-width:1320px;color:var(--muted);flex-wrap:wrap;gap:12px 24px;margin:36px auto 0;padding-top:18px;font-size:12px;display:flex}.workspace-footer a{align-items:center;min-height:36px;display:inline-flex}.workspace-dialog{background:#fff;border:1px solid #dce5d8;border-radius:22px;width:min(480px,100vw - 32px);max-height:calc(100dvh - 40px);margin:auto;padding:28px;overflow:auto;box-shadow:0 25px 100px #132c2429}.workspace-dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#152d2473}.workspace-dialog-head{justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:15px;display:flex}.workspace-dialog-head h2{margin:7px 0 0;font-size:26px;line-height:1.2}.dialog-close{color:#54734f;cursor:pointer;background:#f6f8f1;border:1px solid #e1e7da;border-radius:50%;flex-shrink:0;place-items:center;width:44px;height:44px;display:grid}.workspace-dialog>p{color:var(--muted);font-size:14px;line-height:1.7}.workspace-dialog .purchase-price{color:var(--ink);letter-spacing:-.05em;margin:16px 0;font-size:40px;line-height:1.2}.purchase-price span{letter-spacing:0;color:var(--muted);margin-top:8px;font-size:14px;display:block}.purchase-benefits{gap:12px;margin:22px 0;padding:0;font-size:13px;list-style:none;display:grid}.purchase-benefits li{align-items:flex-start;gap:10px;line-height:1.5;display:flex}.purchase-benefits svg{color:#5f8c55;flex-shrink:0}.workspace-dialog .purchase-provider-note{background:#f2f6ec;border-radius:10px;padding:14px;font-size:12px}.purchase-submit{width:100%;margin-top:10px}.workspace-dialog .purchase-legal{margin:15px 0 0;font-size:11px;line-height:1.7}.purchase-legal a,.auth-legal a{text-underline-offset:3px;text-decoration:underline}.workspace-dialog .modal-actions{justify-content:flex-end;gap:10px;margin-top:22px;display:flex}.workspace-dialog .modal-summary{background:#f4f7ee;border-radius:11px;padding:17px;font-size:14px}.auth-shell{background:#f8faf5;min-height:100dvh;padding:40px 20px}.auth-shell .auth-card{background:#fff;border:1px solid #dce5d8;border-radius:22px;padding:32px;box-shadow:0 18px 65px #234f3d07}.auth-shell .auth-card h1{margin-top:28px;font-size:32px}.auth-shell .auth-tabs{background:#f1f5eb;border-color:#e0e7d9}.auth-shell .auth-tab.active{color:#28543a;background:#fff;box-shadow:0 2px 8px #234f3d08}.auth-shell .auth-card>p{font-size:14px;line-height:1.7}.auth-shell .auth-legal{color:var(--muted);margin:20px 0 0;font-size:11px}.legal-page{background:#f8faf5;min-height:100dvh;padding:0 22px}.legal-nav{justify-content:space-between;align-items:center;gap:20px;max-width:1040px;margin:auto;padding:24px 0;font-size:13px;display:flex}.legal-nav>a:last-child{align-items:center;gap:8px;min-height:44px;display:flex}.legal-main{max-width:800px;margin:36px auto 0;padding-bottom:50px}.legal-main>header h1{letter-spacing:-.045em;overflow-wrap:anywhere;margin:12px 0 18px;font-size:clamp(32px,5vw,46px);line-height:1.15}.legal-main>header>p{color:#61745f;font-size:15px;line-height:1.8}.legal-draft{color:#705824;background:#fff7e5;border:1px solid #ecdfb9;border-radius:12px;margin:24px 0;padding:16px 20px;font-size:13px;line-height:1.7}.legal-toc{color:#54764f;border-block:1px solid #dce5d8;flex-wrap:wrap;gap:8px 18px;margin:25px 0;padding:20px 0;font-size:12px;display:flex}.legal-toc a{text-underline-offset:4px;padding:6px 0;text-decoration:underline}.legal-section{border-bottom:1px solid #e2e9db;padding:24px 0;scroll-margin-top:24px}.legal-section h2{letter-spacing:-.025em;margin:0 0 18px;font-size:23px;line-height:1.35}.legal-section p,.legal-section li,.legal-section dd{overflow-wrap:anywhere;color:#4b6252;font-size:15px;line-height:1.85}.legal-section p{margin:12px 0}.legal-section ul{padding-left:20px}.legal-section dt{color:#75816c;margin-top:14px;font-size:12px}.legal-section dd{margin:3px 0 0}.legal-placeholder{color:#835d27;background:#fff3d9;border-radius:4px;padding:2px 5px}.legal-footer{color:#60745b;border-top:1px solid #dce5d8;flex-wrap:wrap;gap:24px;max-width:1040px;margin:auto;padding:24px 0;font-size:12px;display:flex}.legal-footer a{align-items:center;min-height:44px;display:flex}@media (min-width:1181px){.app-layout .generator-workspace{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}}@media (max-width:900px){.balance-empty{flex-direction:column;align-items:flex-start;gap:15px}.balance-empty>.btn{width:100%}}@media (max-width:850px){.app-layout .sidebar{position:relative}}@media (max-width:700px){.auth-shell .auth-card{padding:25px 22px}.workspace-dialog{padding:22px}.legal-nav{padding:15px 0}.legal-nav .brand{font-size:14px}.legal-nav>a:last-child{font-size:12px}.legal-main{margin-top:22px}.legal-main>header>p{font-size:14px}.legal-section{padding:22px 0}.legal-section h2{font-size:21px}.legal-section p,.legal-section li,.legal-section dd{font-size:14px}.legal-draft{padding:15px;font-size:12px}}@media (max-width:520px){.app-layout .side-nav{background:#193b30;border-color:#41634a;box-shadow:0 8px 28px #173c3229}.app-layout .sidebar .side-link.active{box-shadow:inset 0 -2px #b9dfbf}.app-layout .balance-number{margin:0;font-size:23px}.app-layout .balance-buy{min-height:40px;padding:8px;font-size:11px}.app-layout .sidebar .balance-number small:after{content:"кр."}.app-layout .panel-title h2{font-size:21px}.app-layout .source-panel .textarea{min-height:190px}.app-layout .form-step{margin-bottom:8px}.app-layout .balance-empty{margin-bottom:18px;padding:18px}.balance-empty h2{font-size:17px}.balance-empty p{font-size:12px}.app-layout .summary-bar{gap:14px}.workspace-dialog .modal-actions{flex-direction:column-reverse}.workspace-dialog .modal-actions .btn{width:100%}.workspace-dialog .purchase-price{font-size:35px}.profile-purchase>.btn{width:100%;font-size:13px}.legal-nav{gap:10px}.legal-nav .brand-mark{width:30px;height:30px}.legal-page{padding:0 18px}}
