/* PSY V2 - новый интерфейс по согласованному референсу. */

:root{--green:#0e6149;--dark:#18382f;--text:#223f37;--muted:#60786f;--light:#e9f4ed;--line:#dfe9e3;--card:#fff;--bg:#f7f9f6;--shadow:0 16px 40px rgba(11,69,48,.055)}
*{box-sizing:border-box}html{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;color:var(--text);background:var(--bg);font-size:16px}body{margin:0;font-size:16px;line-height:1.53}button,input,select,textarea{font:inherit;font-size:15px}button{cursor:pointer}a{text-decoration:none;color:inherit}svg{flex-shrink:0}small,.tiny{font-size:12px}.caption{font-size:13px;color:var(--muted)}.muted{color:var(--muted)}
.demo-banner{position:sticky;top:0;z-index:20;background:#112f28;color:#f1fff9;display:flex;gap:14px;align-items:center;justify-content:center;padding:9px 18px;font-size:13px;flex-wrap:wrap}.demo-banner strong{font-size:13px}.demo-banner .tag{border:1px solid #9ecfbb;border-radius:20px;padding:2px 9px;color:#e5f9ee;font-size:12px}
.shell{display:grid;grid-template-columns:255px minmax(0,1fr);min-height:calc(100vh - 42px)}.sidebar{background:#fff;border-right:1px solid var(--line);padding:25px 16px;display:flex;flex-direction:column;position:sticky;top:40px;height:calc(100vh - 40px);overflow:auto}.logo{display:flex;align-items:center;gap:10px;padding:0 12px 12px}.logo img{width:43px;height:43px;object-fit:contain}.logo-name{font-size:22px;color:var(--green);font-weight:800;letter-spacing:-.4px}.logo-sub{font-size:12px;color:var(--muted);line-height:1.22}.nav-section{font-size:12px;font-weight:800;letter-spacing:1.6px;color:#7b9489;margin:30px 14px 10px}.nav{display:flex;align-items:center;gap:12px;padding:12px 13px;border:0;border-radius:12px;background:transparent;text-align:left;color:var(--muted);font-weight:650;font-size:15px;width:100%;white-space:nowrap}.nav:hover{background:#f0f7f3}.nav.active{background:#e3f3eb;color:var(--green)}.sidebottom{margin-top:auto;border-radius:15px;background:#e9f5ed;padding:18px 15px}.sidebottom strong{font-size:15px}.sidebottom p{font-size:13px;color:#597568;line-height:1.6;margin:7px 0 11px}.sidebottom button{background:transparent;border:0;color:var(--green);font-size:14px;font-weight:750;padding:0}
.main{min-width:0}.topbar{height:69px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);padding:0 36px;gap:16px}.topline{font-size:13px;letter-spacing:.2px;color:#718c7e}.user{display:flex;align-items:center;gap:10px;font-weight:700;font-size:14px}.avatar{width:39px;height:39px;background:#cfe8dc;border-radius:50%;color:var(--green);display:grid;place-items:center;font-size:15px;font-weight:800}.content{max-width:1370px;padding:34px 38px 72px;margin:0 auto}.kicker{font-size:12px;color:#24846a;letter-spacing:2.1px;font-weight:800;text-transform:uppercase}.pagetitle{font-size:38px;letter-spacing:-1.3px;line-height:1.14;margin:9px 0 8px;color:#183b30}.pagesub{font-size:16px;color:#587366;margin:0 0 26px}.row{display:flex;align-items:center;gap:14px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:grid;gap:18px}.twocol{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:23px}.threecol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card{border:1px solid var(--line);background:#fff;border-radius:18px;box-shadow:var(--shadow)}.pad{padding:24px}.section-title{font-size:23px;line-height:1.2;font-weight:800;letter-spacing:-.4px;margin:0 0 14px}.pill{display:inline-flex;padding:5px 10px;border-radius:25px;font-size:12px;font-weight:750;letter-spacing:.3px;background:#e8f5eb;color:var(--green)}.btn{background:var(--green);color:white;border:1px solid var(--green);padding:10px 17px;border-radius:10px;font-size:15px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}.btn.light{background:white;border-color:#c4d8cc;color:var(--green)}.btn.ghost{background:transparent;color:var(--green);border-color:transparent}.btn:hover{filter:brightness(.96)}.hero{padding:35px 40px;color:#fff;border-radius:18px;background:linear-gradient(112deg,#075741,#0b7456 68%,#3d9176);min-height:245px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.hero:after{content:'';position:absolute;width:270px;height:270px;border:1px solid #89b99a;border-radius:50%;right:-34px;top:-80px;box-shadow:-40px 55px 0 -15px rgba(217,247,220,.07)}.hero h2{font-family:Georgia,serif;font-size:36px;line-height:1.15;margin:13px 0;font-weight:500;position:relative;z-index:1}.hero p{color:#e8fff3;font-size:15px;margin:0 0 17px;max-width:600px;position:relative;z-index:1}.hero .btn{width:max-content;z-index:1}.course-icon{min-width:115px;min-height:135px;background:radial-gradient(circle at 70% 38%,#badfcb,#7eb69c 70%);border-radius:14px 0 0 14px;display:grid;place-items:center;font-family:Georgia,serif;color:#195b43;font-size:40px}.course-card{display:flex;min-height:135px;overflow:hidden;gap:0}.course-body{flex:1;min-width:0;padding:20px 21px}.course-body h3{font-size:20px;margin:9px 0 4px}.course-body p{margin:0;color:var(--muted);font-size:14px}.progress{height:8px;border-radius:20px;background:#e6efe9;overflow:hidden;margin:14px 0 8px}.progress > div{height:100%;background:#267b5c;border-radius:20px}.chip{font-size:12px;color:#347659;font-weight:800}.kv{display:grid;gap:2px}.kv label{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:#789184}.kv strong{font-size:20px}.lesson-list{border:1px solid var(--line);border-radius:17px;overflow:hidden;background:#fff}.module{padding:14px 18px;background:#eef5ef;color:#255342;font-size:15px;font-weight:800;display:flex;justify-content:space-between}.lesson-item{padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #eef2ee;cursor:pointer}.lesson-item:hover,.lesson-item.selected{background:#edf6f0}.lesson-num{display:grid;place-items:center;background:#e8f3eb;color:var(--green);border-radius:50%;width:34px;height:34px;flex-shrink:0;font-size:13px;font-weight:800}.lesson-item h4{margin:0;font-size:16px}.lesson-item p{font-size:13px;margin:3px 0 0;color:var(--muted)}.player{background:linear-gradient(145deg,#0c2820,#102c26);border-radius:17px;aspect-ratio:16/8.3;min-height:265px;display:flex;align-items:center;justify-content:center;position:relative;color:#e8fff2;margin:19px 0 14px}.player .playbig{background:rgba(255,255,255,.16);border:1px solid #b9d0c5;color:white;border-radius:50%;height:68px;width:68px;font-size:27px}.player .tools{position:absolute;bottom:16px;left:20px;right:20px;display:flex;align-items:center;gap:12px;color:#bbd7c8;font-size:13px}.bar{height:6px;border-radius:10px;background:#517669;flex:1}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin:20px 0 16px;flex-wrap:wrap}.tab{padding:10px 0;background:none;border:0;border-bottom:3px solid transparent;color:var(--muted);font-size:15px;font-weight:700}.tab.active{color:var(--green);border-color:var(--green)}.file-row{border:1px solid var(--line);border-radius:12px;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0}.file-left{display:flex;gap:13px;align-items:center}.fileicon{height:44px;width:44px;border-radius:11px;background:#f6e4df;display:grid;place-items:center;color:#a65142;font-size:15px;font-weight:900}.file-left strong{font-size:15px}.file-left p{font-size:13px;color:var(--muted);margin:3px 0 0}.comment{padding:16px 0;border-bottom:1px solid var(--line);display:flex;gap:13px}.bubble{min-width:38px;width:38px;height:38px;border-radius:50%;background:#dcece3;color:#21694b;display:grid;place-items:center;font-weight:800;font-size:14px}.comment strong{font-size:15px}.comment p{margin:7px 0 5px;font-size:15px}.comment time{font-size:12px;color:var(--muted)}.field{display:grid;gap:7px;margin:0 0 18px}.field label{font-size:14px;font-weight:700}.field input,.field select,.field textarea{width:100%;border:1px solid #cddfd4;border-radius:10px;background:#fff;padding:12px 13px;min-height:44px;font-size:15px;color:var(--text)}.field textarea{min-height:120px;resize:vertical}.meta{font-size:13px;color:#789184}.asidecard{padding:21px}.asidecard h3{font-size:18px;margin:0 0 13px}.asidecard p{font-size:14px;color:var(--muted)}.asidecard .lesson-item{padding:12px 5px;border:0;border-bottom:1px solid #e4ede7}.info{display:grid;grid-template-columns:1fr 1fr;gap:17px}.note{background:#eff6f1;padding:17px;border-radius:12px;font-size:14px;color:#3e6852}.faq{padding:17px 1px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;font-weight:700;cursor:pointer}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat{padding:20px}.stat strong{font-size:28px;display:block;margin-top:9px}.stat span{font-size:13px;color:var(--muted)}.data-table{width:100%;border-collapse:collapse}.data-table th{text-align:left;background:#f3f7f3;font-size:13px;padding:15px;color:#6f8579}.data-table td{font-size:14px;border-bottom:1px solid var(--line);padding:15px}.data-table td:first-child{font-weight:700}.empty{border:1px dashed #b5cfc1;border-radius:15px;padding:40px;color:#5e7768;text-align:center;font-size:15px}.toast{background:#e3f2e7;border:1px solid #b9ddc5;padding:12px 15px;border-radius:10px;color:#186044;font-size:13px;margin:8px 0}.signin{margin:25px auto;max-width:470px}.signin h1{font-size:36px;margin:0}.divider{border:0;border-top:1px solid var(--line);margin:18px 0}.page{display:none}.page.active{display:block}.mini-nav{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 18px}.mini-nav .btn{padding:7px 12px;font-size:13px}.navicon{width:20px;height:20px;display:inline-block;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.fakeupload{background:#f5faf5;border:2px dashed #b3d0bd;border-radius:13px;text-align:center;padding:28px;color:#48725c;font-size:15px}.fakeupload strong{font-size:17px;display:block;margin:7px 0}.bottomgap{margin-bottom:20px}
@media(max-width:1040px){.threecol,.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.twocol{grid-template-columns:minmax(0,1fr)}.sidebar{width:220px}.shell{grid-template-columns:220px 1fr}.content{padding:26px}.hero{padding:29px}.pagetitle{font-size:34px}}
@media(max-width:740px){.shell{display:block}.sidebar{position:relative;top:0;height:auto;padding:12px 12px 4px;border-bottom:1px solid var(--line)}.logo{padding:0 8px 9px}.nav-section,.sidebottom{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:6px;padding-bottom:8px}.nav{flex-shrink:0;width:auto;padding:10px 12px;font-size:13px}.nav svg{width:17px}.topbar{padding:0 19px;height:54px}.topline{font-size:12px}.content{padding:21px 15px 60px}.hero{min-height:250px;padding:26px}.hero h2{font-size:31px}.pagetitle{font-size:31px}.threecol,.stats,.info{grid-template-columns:1fr}.course-icon{min-width:85px}.pad{padding:18px}.player{min-height:180px}.lesson-item{padding:11px}.data-table{min-width:550px}.table-scroll{overflow:auto}}

/* Implementation-only adjustments. Design geometry, palette and 12px floor follow the approved reference. */
.icon-sprite{width:0;height:0;position:absolute;overflow:hidden}
.logo{text-decoration:none}.logo>span{display:grid;gap:0}.logo-name{display:block}.logo-sub{display:block}
.sidebar nav{display:block}.logout{margin-top:14px}.logout button{border:0;background:transparent;color:var(--muted);font-size:14px;padding:10px 14px;cursor:pointer}
.text-link{color:var(--green);font-size:14px;font-weight:750;text-decoration:none}.hero-kicker{color:#b9e1d0}
.clickable-card:hover,.course-card:hover{border-color:#b4d5bd;transform:translateY(-1px);transition:transform .1s ease}
.lesson-name{font-size:16px;display:block}.lesson-meta{display:block;font-size:13px;color:var(--muted);margin-top:3px}
.aside-top{align-self:start}.progress-number{font-size:35px;color:var(--green)}.with-top-space{margin-top:32px}
.video-shell{border-radius:17px;background:#09261f;overflow:hidden;margin:19px 0 14px;aspect-ratio:16/8.3;display:grid;place-items:center}
.video-shell video{width:100%;height:100%;display:block;object-fit:contain;background:#08211b}
.video-shell .player{width:100%;height:100%;margin:0;min-height:0}.empty-video p{color:#d8f7e6;font-size:16px}
.video-meta{gap:16px}.video-meta form{margin:0}.lesson-layout{margin-top:14px}
.section-nav{border-bottom:1px solid var(--line);padding:10px 0}.section-nav summary{font-size:15px;font-weight:800;cursor:pointer;color:var(--green);list-style-position:inside}
.section-nav .lesson-item{font-size:14px}.lesson-nav-title{font-size:14px;line-height:1.4}.section-nav .lesson-num{width:30px;height:30px}
.tab-panel[hidden]{display:none}.comment-form{margin:28px 0 0;border-top:1px solid var(--line);padding-top:20px}
.bodycopy{font-size:16px;line-height:1.7}.ticket{border-bottom:1px solid var(--line);padding:16px 0}.ticket p{font-size:15px}.ticket .note{margin-top:12px}
.ticket .note p{margin:7px 0 0}.faq{display:block}.faq summary{list-style:none;cursor:pointer}.faq summary:after{content:'⌄';float:right}.faq p{font-size:14px;color:var(--muted);font-weight:400}
.error{color:#9c3b2e;font-size:14px;margin:5px 0}.toast{position:static;max-width:none;margin:0 0 19px}
.signin{padding:38px;margin:48px auto}.full-width{width:100%;text-align:center}
.pagetitle{overflow-wrap:anywhere}
button,input,textarea,select{font-size:15px}
/* Never shrink any text below 12 px, including small tags, breadcrumb labels and mobile nav. */
@media(max-width:740px){.sidebar nav{display:flex;overflow-x:auto;gap:6px;padding-bottom:8px}.logout{margin-top:0}.sidebar{height:auto}.topbar{height:56px}.lesson-layout{display:block}.video-shell{aspect-ratio:16/9}.video-meta form{width:100%}.video-meta form .btn{width:100%}}

/* PSY V2: visual equivalence to the approved HTML viewed in Safari.
   The typography below remains EXACTLY the reference's 12/13/14/15/16/23/38px,
   rather than multiplying individual font declarations. The initial project
   appeared ~14-17% smaller as a whole in the user's localhost screenshots.
   Adjust the page display scale as a UNIT, preserving proportional geometry.
*/
html { zoom: 1.16; }
@media (max-width: 740px) { html { zoom: 1; } }
/* The reference has exactly the same navigation geometry and font rules. */
.user-menu { position: relative; }
.user-menu > summary {list-style:none;cursor:pointer;display:flex;align-items:center;gap:11px;font-size:14px;font-weight:700;color:var(--text);padding:6px;border-radius:11px;}
.user-menu > summary::-webkit-details-marker{display:none}
.user-menu[open] > summary,.user-menu > summary:hover{background:#eff6f1}
.user-menu .menu-panel{position:absolute;right:0;top:calc(100% + 7px);z-index:30;min-width:190px;padding:9px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 16px 38px rgba(10,60,36,.17)}
.user-menu .menu-panel a,.user-menu .menu-panel button{display:block;width:100%;padding:12px;text-align:left;color:var(--text);font-size:14px;font-weight:650;border:none;background:none;text-decoration:none;border-radius:8px;cursor:pointer}
.user-menu .menu-panel a:hover,.user-menu .menu-panel button:hover{background:#eaf4ee}
.user-menu .menu-panel form{margin:0}
.profile-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,360px);gap:23px}
.profile-main{display:grid;gap:21px}
.profile-section{padding:23px 24px}
.profile-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.profile-mini{background:#f4f8f5;border-radius:11px;padding:15px}
.profile-mini .label{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
.profile-mini strong{font-size:18px;color:var(--text)}
.access-entry{padding:16px 0;border-top:1px solid var(--line)}
.access-entry:first-of-type{border-top:0}
.access-entry .row{justify-content:space-between;align-items:center}
.access-entry .meta{line-height:1.6;margin:7px 0 12px}
.access-entry .btn{font-size:14px}
.subtle-text{color:var(--muted);font-size:14px;line-height:1.65}
.security-disclosure{border-top:1px solid var(--line);padding-top:14px;margin-top:18px}
.security-disclosure summary{cursor:pointer;color:var(--green);font-size:15px;font-weight:700}
.security-disclosure form{margin-top:18px}
.support-main{max-width:960px;display:grid;gap:22px}
.support-faq{padding:24px}
.support-faq details{border-bottom:1px solid var(--line);padding:16px 0}
.support-faq details:last-child{border-bottom:0}
.support-faq details summary{cursor:pointer;font-size:16px;font-weight:700;color:var(--text);list-style:none}
.support-faq details summary::-webkit-details-marker{display:none}
.support-faq details summary::after{content:'⌄';color:var(--green);float:right}
.support-faq details[open] summary::after{content:'⌃'}
.support-faq details p{font-size:15px;line-height:1.7;color:var(--muted);margin:12px 0 0}
.renewal-info{max-width:750px}
.payment-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--line)}
.payment-row:last-child{border-bottom:0}
.history-row{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid var(--line)}
.history-row:last-child{border-bottom:0}
@media(max-width:1040px){.profile-grid{grid-template-columns:1fr}}
@media(max-width:740px){.profile-overview{grid-template-columns:1fr}.profile-section,.support-faq{padding:18px}.user-menu .menu-panel{right:0}}


/* PSY profile and payments — approved two-page UI. Keeps the agreed HTML typography. */
.account-stack,.billing-stack{max-width:1100px;display:grid;gap:18px}
.account-card,.billing-card{padding:22px 24px}
.account-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.account-heading .section-title,.billing-card .section-title{margin:0}
.personal-values{display:grid;gap:12px;margin:0}
.personal-values>div{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;align-items:baseline}
.personal-values dt{color:var(--muted);font-size:15px}
.personal-values dd{margin:0;font-size:16px;font-weight:600;overflow-wrap:anywhere}
.helper-note{font-size:13px;color:var(--muted);line-height:1.6;margin:13px 0 0}
.account-course{background:linear-gradient(120deg,#f2faf4,#eaf4ed);border-radius:14px;padding:16px 18px;margin:12px 0}
.account-course-top,.billing-course,.billing-new-course{display:flex;align-items:center;gap:15px;min-width:0}
.abstract-course-icon{width:72px;height:76px;flex:0 0 72px;display:grid;place-items:center;background:linear-gradient(135deg,#a0c9ac 5%,#547f68 90%);border-radius:11px;position:relative;overflow:hidden}
.abstract-course-icon span{display:block;width:41px;height:41px;border-radius:50%;background:linear-gradient(140deg,#d8f0d9 0 42%,#9cc7ae 42% 72%,#b9dcca 72%);box-shadow:0 0 0 18px rgba(255,255,255,.07)}
.account-course-info,.billing-course-main{min-width:0;display:grid;gap:5px}
.account-course-name,.billing-course-name{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:18px;font-weight:750;color:var(--text)}
.account-course-info .muted,.billing-course-main>.muted{font-size:14px;line-height:1.45}
.pill-muted{background:#f1f2f0;color:#65746b}
.course-progress-meta{display:flex;justify-content:space-between;align-items:center;margin-top:14px;font-size:13px;color:var(--muted)}
.course-progress-meta strong{font-size:15px;color:var(--green)}
.account-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}
.account-history{margin-top:10px}
.account-history-row{display:flex;gap:13px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line);color:var(--text)}
.account-history-row:last-child{border-bottom:0}
.history-mark{height:28px;width:28px;flex:0 0 28px;border-radius:50%;display:grid;place-items:center;border:1px solid #bad4c4;color:var(--green);font-size:16px}
.history-content{display:grid;gap:2px;min-width:0;flex:1}
.history-content strong{font-size:15px;font-weight:650}
.history-content span{font-size:13px;color:var(--muted)}
.history-time{font-size:12px;color:var(--muted);max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-security{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.security-label{display:flex;align-items:center;gap:13px}
.security-lock{font-size:24px;color:var(--green)}
.security-label>span:last-child{display:grid;gap:2px}
.security-label strong{font-size:19px}
.security-label span span{font-size:13px;color:var(--muted)}
.account-security .security-disclosure{margin:0;padding:0;border:0;min-width:150px}
.account-security .security-disclosure summary{display:inline-flex;border:1px solid var(--line);border-radius:10px;padding:10px 14px;background:#fff;font-size:14px}
.account-security .security-disclosure[open]{flex-basis:100%}
.account-security .security-disclosure[open] summary{margin-bottom:10px}
.security-form{max-width:550px}
.billing-card>.section-title{padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:12px}
.billing-course{padding:9px 0 13px}
.billing-dates{display:flex;flex-wrap:wrap;gap:0;padding:12px 0 14px;border-top:1px solid var(--line)}
.billing-dates div{min-width:148px;border-right:1px solid var(--line);padding-right:19px;margin-right:19px;display:grid;gap:3px}
.billing-dates div:last-child{border-right:0}
.billing-dates span{font-size:13px;color:var(--muted)}
.billing-dates strong{font-size:16px;color:var(--text)}
.renewal-selection{background:#fcfefd;border-radius:12px;padding:12px 0 0}
.renewal-selection h3{font-size:18px;margin:8px 0 11px}
.billing-option-list{display:grid;gap:9px}
.billing-option{border:1px solid var(--line);border-radius:10px;padding:13px 16px;display:flex;align-items:center;gap:12px}
.billing-option:first-child{background:#f0f9f4;border-color:#d3eadb}
.option-symbol{font-size:24px;color:var(--green);line-height:1}
.option-text{display:grid;gap:2px;min-width:0;flex:1}
.option-text strong{font-size:15px}
.option-text span{font-size:13px;color:var(--muted)}
.option-price{font-size:17px;white-space:nowrap}
.checkout-note{font-size:13px;color:#687f74;line-height:1.55;margin:12px 0}
.payment-disabled{opacity:.66;cursor:not-allowed;filter:none!important}
.billing-new-course{padding:13px 0;border-bottom:1px solid var(--line)}
.billing-new-course:last-child{border-bottom:0}
.billing-new-course .billing-course-main{flex:1}
.billing-new-course .billing-course-main>strong{font-size:16px}
.billing-purchase{display:grid;justify-items:end;gap:10px}
.billing-purchase>strong{font-size:19px}
.payment-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.method-card{display:grid;grid-template-columns:30px 1fr;column-gap:9px;align-items:center;border:1px solid var(--line);border-radius:11px;padding:13px 10px}
.method-icon{grid-row:1/3;font-size:22px;color:var(--green)}
.method-card strong{font-size:13px}
.method-card span:last-child{font-size:12px;color:var(--muted)}
.legal-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.legal-row:last-child{border:0}
.legal-row>span:first-child{font-size:20px;color:var(--green)}
.legal-row span:nth-child(2){flex:1;display:grid;gap:3px}
.legal-row strong{font-size:15px}
.legal-row small{font-size:12px;color:var(--muted)}
.legal-text{font-size:16px;white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}
.legal-back{margin-top:20px}
.billing-card .payment-row>span:first-child{display:grid;gap:3px}
.billing-card .payment-row .meta{display:block}
@media(max-width:850px){.payment-methods{grid-template-columns:1fr}.billing-course,.billing-new-course{align-items:flex-start}.billing-purchase{justify-items:start}}
@media(max-width:740px){.account-card,.billing-card{padding:18px}.account-heading{align-items:flex-start;flex-direction:column}.personal-values>div{grid-template-columns:1fr;gap:3px}.billing-dates div{padding-right:12px;margin-right:12px;min-width:90px}.account-course-top{align-items:flex-start}.billing-option{flex-wrap:wrap}.option-price{margin-left:auto}.account-security{align-items:flex-start}.history-time{display:none}.billing-new-course{flex-wrap:wrap}.billing-purchase{width:100%;justify-items:start}}

.billing-option{cursor:pointer}.billing-option input{accent-color:#0e6149;width:18px;height:18px;flex:0 0 18px;margin:0}
.billing-option:has(input:checked){background:#edf7f1;border-color:#a7d2b6}.billing-option .option-symbol{display:none}
@media(max-width:740px){.billing-option{align-items:flex-start}.billing-option input{margin-top:2px}}

.legal-row-disabled{opacity:.66}.legal-row-disabled .meta{font-size:12px}

/* PSY sidebar stable v1 */
/* Remove old 40px offset left over from the reference-only demo banner. */
@media (min-width: 741px) {
  .shell { min-height: 100vh; }
  .sidebar { position: sticky; top: 0; height: 100vh; align-self: start; }
}
/* Hover must not imitate the selected navigation item. */
.sidebar .nav:not(.active):hover { background: transparent; color: var(--green); }
.sidebar .nav.active, .sidebar .nav.active:hover { background: #e3f3eb; color: var(--green); }
/* /PSY sidebar stable v1 */
