/* Психотека: личный кабинет и папки. Изолировано от каталога и методик. */
body[data-account] .site-header nav>a:not(.round-link):not(.site-btn){
 background:#f0f6f1!important;color:#224939!important;border-color:#c8dfd0!important;
 box-shadow:none!important;
}
html.dark body[data-account] .site-header nav>a:not(.round-link):not(.site-btn){
 background:#29463a!important;color:#ecf6ef!important;border:1px solid #527a63!important;
 box-shadow:none!important;
}
html.dark body[data-account] .site-header nav>a:not(.round-link):not(.site-btn):hover{
 background:#355c49!important;border-color:#85ac91!important;
}
html.dark body[data-account] .site-header .site-logo .psy-brand-mark,
html.dark body[data-account] .psy-account-footer-brand img{
 content:url("brand-mark-dark.svg?v=20261026dark2")!important;
 background:transparent!important;filter:none!important;box-shadow:none!important;
 padding:0!important;border:0!important;border-radius:0!important;
 object-fit:contain!important;
}
html.dark body[data-account] .site-header .site-logo,
html.dark body[data-account] .site-header .site-logo .psy-wordmark,
html.dark body[data-account] .site-header .site-logo .psy-wordmark .psy-word-start{color:#f1f7ef!important}
html.dark body[data-account] .site-header .site-logo .psy-wordmark .psy-word-end{color:#dcc5a4!important}
html.dark body[data-account] .psy-account-footer-brand{color:#edf7f0}
html.dark body[data-account] .psy-account-footer{background:#162a22;color:#eaf4eb;border-color:#43614f}
html.dark body[data-account] .psy-account-footer p{color:#c8d9cb}
body[data-account="profile"] .site-account.psy-studio{width:min(100% - 40px,1360px)!important;max-width:1360px!important;margin:29px auto 80px!important;padding:0!important}
.psy-studio *{box-sizing:border-box}
.psy-studio-hero{
 position:relative;isolation:isolate;overflow:hidden;min-height:300px;
 display:grid;grid-template-columns:minmax(0,1.17fr) minmax(250px,.83fr);
 border:1px solid #3a705a;border-radius:29px;
 background:radial-gradient(circle at 79% 19%,rgba(196,221,185,.23),transparent 33%),linear-gradient(121deg,#173c31 3%,#235943 68%,#52715a 120%);
 color:#f3f8f1;box-shadow:0 21px 56px rgba(20,57,39,.12);
}
.psy-studio-hero:after{content:"";position:absolute;inset:-1px 21% -1px auto;transform:skew(-27deg);width:12%;background:#ffffff0d;pointer-events:none;z-index:-1}
.psy-studio-hero-copy{padding:clamp(28px,4.2vw,58px) clamp(25px,4.7vw,66px);position:relative;z-index:1}
.psy-studio-eyebrow{display:flex;align-items:center;gap:10px;color:#ddceb0;font:800 11px/1.4 system-ui,sans-serif;letter-spacing:.17em}
.psy-studio-spark{font-size:15px;color:#e4b985}
.psy-studio-hero h1{margin:12px 0 11px!important;font-size:clamp(39px,4.5vw,64px)!important;line-height:1.06!important;font-weight:820;letter-spacing:-.052em;color:#fff!important}
.psy-studio-title-dot{color:#cba781}
.psy-studio-hero-copy>p{font-size:clamp(14px,1.35vw,17px);line-height:1.6;color:#d8e9dc;margin:0 0 26px;max-width:520px}
.psy-studio-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.psy-studio-links a{display:inline-flex;align-items:center;gap:6px;justify-content:center;text-decoration:none;min-height:43px;padding:10px 16px;border-radius:12px;background:#ffffff14;border:1px solid #a9cdb166;color:#f4f9f2;font-size:13px;font-weight:750;transition:transform .18s,background .18s}
.psy-studio-links a:first-child{background:#f8f6ee;color:#224737;border-color:#f8f6ee}
.psy-studio-links a:hover{background:#ffffff2d;transform:translateY(-2px)}
.psy-studio-links a:first-child:hover{background:#e7e9da}
.psy-studio-hero-art{position:relative;min-height:270px;display:grid;place-items:center;overflow:hidden}
.psy-studio-orbit{position:absolute;width:320px;height:320px;border:1px solid #def1d13b;border-radius:50%;right:9%;top:-9%;box-shadow:0 0 0 44px #a4c6a30a,0 0 0 89px #e6ead30b}
.psy-studio-paper{position:absolute;width:190px;height:213px;top:29px;left:50%;border-radius:19px;border:1px solid #ede5cd;box-shadow:0 20px 40px #082b214d}
.psy-studio-paper-back{background:#d8c09a;transform:translateX(-33%) rotate(14deg)}
.psy-studio-paper-front{background:linear-gradient(140deg,#fbfcf4,#e4f0e4);transform:translateX(-58%) rotate(-8deg);padding:40px 25px}
.psy-studio-paper-front span{display:block;background:#95b3a5;border-radius:5px;height:9px;margin-bottom:15px}
.psy-studio-paper-front span:nth-child(2){width:73%}.psy-studio-paper-front span:nth-child(3){width:86%}
.psy-studio-paper-front i{display:grid;place-items:center;position:absolute;bottom:25px;right:24px;background:#d6e7d6;border-radius:50%;color:#426c57;width:43px;height:43px;font-size:23px;font-style:normal}
.psy-studio-art-caption{position:absolute;bottom:26px;right:29px;color:#e4efe3;font:700 11px/1.3 system-ui,sans-serif;letter-spacing:.07em}
.psy-studio-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:start;gap:clamp(20px,3vw,38px);margin-top:37px}
.psy-studio-left,.psy-studio-right{min-width:0}
.psy-studio-section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:7px 0 17px;scroll-margin-top:100px}
.psy-studio-index{color:#9a805b;font-size:11px;font-weight:850;letter-spacing:.14em}
.psy-studio-section-heading h2{font-size:clamp(24px,2.4vw,31px);line-height:1.2;margin:7px 0 8px;color:#204a38}
.psy-studio-section-heading p{color:#607d6d;font-size:14px;margin:0;line-height:1.6}
.psy-studio-small-link{color:#2a6d51;text-decoration:none;font-size:13px;font-weight:800;white-space:nowrap;padding:9px}
.psy-studio #profileForm{margin:0!important;padding:clamp(19px,2.5vw,32px)!important}
.psy-studio #profileForm .psy-profile-heading{display:flex;gap:18px;align-items:center}
.psy-studio #profileForm h2{font-size:20px}
.psy-studio #profileForm>.account-actions{margin-top:24px}
.psy-studio-security{margin-top:35px;scroll-margin-top:92px}
.psy-studio-security #psyAccountAccess,.psy-studio-security #privatePhoneCard{margin:0 0 16px!important}
.psy-studio .psy-account-quicklinks{display:none!important}
.psy-studio-right{position:sticky;top:105px}
.psy-collections-studio{
 margin:0!important;padding:clamp(22px,3vw,35px)!important;
 border:1px solid #d5e4d6!important;border-radius:27px!important;
 background:linear-gradient(142deg,#fff,#f4f8f0 92%)!important;
 box-shadow:0 18px 48px #153f2a10!important;color:#244d38!important;
}
.psy-collection-topline{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:7px}
.psy-collection-kicker{font-size:11px;color:#9b7b51;font-weight:850;letter-spacing:.14em}
.psy-collection-count{font-size:12px;font-weight:800;background:#e6f2e8;border:1px solid #d0e4d4;color:#34614a;border-radius:999px;padding:6px 11px}
.psy-collections-studio h2{font-size:clamp(26px,2.55vw,37px);line-height:1.13;letter-spacing:-.035em;margin:5px 0 12px;color:#1c4735}
.psy-collection-lead{font-size:14px;line-height:1.65;color:#637d6c!important;max-width:540px;margin:0 0 20px!important}
.psy-collection-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:21px 0 15px}
.psy-collection-tools h3{font-size:16px;font-weight:850;margin:0;color:#295440}
.psy-collection-arrows{display:flex;gap:7px}
.psy-collections-studio button.psy-scroll-arrow{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #cbded0;border-radius:50%;background:#f2f8f2;color:#2b6046;font-size:21px}
.psy-scroll-arrow:disabled{opacity:.35;cursor:default}
.psy-folder-wheel{
 display:flex;gap:13px;overflow-x:auto;overscroll-behavior-x:contain;
 scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:6px 3px 17px;
 scrollbar-color:#b0c9b5 transparent;scrollbar-width:thin;
}
.psy-folder-tile{
 flex:0 0 clamp(176px,42%,238px);min-width:0;min-height:190px;display:flex;flex-direction:column;
 scroll-snap-align:start;padding:16px!important;border:1px solid #d2dfd1!important;
 border-radius:19px!important;background:#ecf4e8!important;color:#244f3c!important;
 box-shadow:0 8px 19px #193b2710;transition:transform .24s ease,box-shadow .24s ease,border-color .2s;
 text-align:left;position:relative;overflow:hidden;
}
.psy-folder-tile:nth-child(3n+2){background:#f3ede1!important;border-color:#e3d7c5!important}
.psy-folder-tile:nth-child(3n+3){background:#e7f0ee!important;border-color:#d0dfda!important}
.psy-folder-tile:hover,.psy-folder-tile:focus-visible{transform:translateY(-4px);box-shadow:0 15px 27px #1c4a301d;border-color:#94bea0!important}
.psy-folder-icon{display:block;width:75px;height:63px;position:relative;margin:3px 0 auto}
.psy-folder-icon:before{content:"";position:absolute;left:5px;top:8px;width:35px;height:14px;background:#bfccab;border-radius:7px 9px 0 0}
.psy-folder-icon:after{content:"";position:absolute;left:0;bottom:2px;width:72px;height:47px;background:linear-gradient(155deg,#afc99e,#7fa78e);border:1px solid #739a83;border-radius:8px 11px 10px 10px;box-shadow:inset 0 2px #ffffff48}
.psy-folder-tile:nth-child(3n+2) .psy-folder-icon:before{background:#dfc49e}
.psy-folder-tile:nth-child(3n+2) .psy-folder-icon:after{background:linear-gradient(150deg,#dec6a2,#c1a078);border-color:#b39775}
.psy-folder-tile:nth-child(3n+3) .psy-folder-icon:after{background:linear-gradient(150deg,#9dbeb4,#6d9d91)}
.psy-folder-title{display:block;font-size:16px;font-weight:850;line-height:1.25;margin:12px 0 5px;overflow-wrap:anywhere}
.psy-folder-meta{display:block;color:#59735e;font-size:12px}
.psy-folder-chevron{position:absolute;right:17px;top:17px;font-size:20px;color:#668f74}
.psy-folder-empty{flex:1 0 100%;min-height:143px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;border:1px dashed #aecbb5;border-radius:17px;background:#f7fbf6;color:#486d55;text-align:center;padding:19px;font-size:13px}
.psy-folder-empty strong{font-size:15px}
.psy-collections-studio .psy-folder-form{display:flex;gap:8px;margin:14px 0}
.psy-collections-studio .psy-folder-form input{min-width:0;max-width:none;flex:1 1 170px;min-height:45px;background:#fff;color:#214b38;border:1px solid #bfdbc7;border-radius:12px}
.psy-collections-studio .psy-folder-form button{min-height:45px;background:#276c50!important;color:#fff!important;border-color:#276c50!important;border-radius:12px}
.psy-collections-studio button{font:750 13px/1.3 system-ui,sans-serif;cursor:pointer}
.psy-collection-notice{min-height:18px;font-size:12px!important;color:#587e63!important;margin:7px 0 0!important}
.psy-favorites-wrap{margin-top:25px;border-top:1px solid #dfeade;padding-top:22px}
.psy-favorites-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.psy-favorites-head h3{font-size:17px;margin:0;color:#28513d}
.psy-favorites-head span{font-size:12px;color:#77917b}
.psy-favorites-list,.psy-folder-detail-list{list-style:none;margin:13px 0 0;padding:0;display:grid;gap:8px}
.psy-favorites-list li,.psy-folder-detail-list li{display:flex;align-items:center;gap:9px;padding:11px 13px;background:#f6faf6;border:1px solid #dce9de;border-radius:12px;min-width:0}
.psy-favorites-list a,.psy-folder-detail-list a{flex:1 1 auto;min-width:0;color:#295e45;overflow-wrap:anywhere;text-decoration:none;font-weight:750;font-size:13px}
.psy-favorites-list a:hover,.psy-folder-detail-list a:hover{text-decoration:underline}
.psy-collections-studio .psy-mini-remove{flex:none;border:1px solid #dce8dd;background:#fff;color:#5c6d5e;border-radius:9px;padding:6px 9px;font-size:12px}
.psy-collection-empty-note{color:#65816b!important;font-size:13px!important;margin:12px 0 0!important}
.psy-folder-detail[hidden],.psy-collection-overview[hidden]{display:none!important}
.psy-folder-detail{animation:psy-folder-enter .24s ease both}
@keyframes psy-folder-enter{from{opacity:0;transform:translateX(9px)}to{opacity:1;transform:translateX(0)}}
.psy-folder-back{background:transparent!important;border:0!important;padding:0!important;color:#2a7552!important;text-decoration:underline;text-underline-offset:4px;margin-bottom:17px}
.psy-folder-detail-icon{font-size:35px;margin:13px 0}
.psy-folder-detail h3{margin:0 0 7px;font-size:25px;color:#234d38}
.psy-folder-detail>p{color:#617969;font-size:13px;line-height:1.6}
.psy-folder-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.psy-folder-detail-actions button{min-height:40px;border:1px solid #bcd4c1;background:#ecf5ed;color:#285b40;border-radius:11px;padding:8px 12px}
.psy-folder-detail .psy-add-favorite{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:17px 0}
.psy-folder-detail .psy-add-favorite select{flex:1;min-width:150px;max-width:100%;height:44px;border:1px solid #c0d7c5;border-radius:10px;background:#fff;color:#244b38;padding:7px 10px}
.psy-folder-detail .psy-add-favorite button{background:#276e52;color:#fff;border:0;padding:11px 14px;border-radius:10px}
.psy-studio-library-link{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#eee6d7;border:1px solid #e4d3bc;padding:19px 24px;margin-top:16px;border-radius:17px;color:#5e4a33;text-decoration:none}
.psy-studio-library-link span{font-size:13px}.psy-studio-library-link strong{font-size:14px;color:#4c6847}
.psy-collections-studio :is(a,button,input,select):focus-visible,.psy-studio-links a:focus-visible{outline:3px solid #c6ab79;outline-offset:3px}
html.dark body[data-account="profile"] .psy-studio-hero{background:radial-gradient(circle at 79% 19%,#a3c1ac22,transparent 39%),linear-gradient(122deg,#132e27,#204633 75%,#4c6546);border-color:#507260}
html.dark body[data-account="profile"] .psy-studio-section-heading h2{color:#ebf6e9}
html.dark body[data-account="profile"] .psy-studio-section-heading p{color:#bcd4c3}
html.dark body[data-account="profile"] .psy-studio-index{color:#cdb287}
html.dark body[data-account="profile"] .psy-studio-small-link{color:#c6e4bf}
html.dark body[data-account="profile"] .psy-collections-studio{background:linear-gradient(146deg,#203b30,#172e27)!important;border-color:#4b6c58!important;color:#eaf6eb!important}
html.dark .psy-collections-studio h2,html.dark .psy-collection-tools h3,html.dark .psy-favorites-head h3,html.dark .psy-folder-detail h3{color:#edf8ed}
html.dark .psy-collections-studio .psy-collection-lead,html.dark .psy-folder-detail>p{color:#bbd7c3!important}
html.dark .psy-collection-count{background:#2d5340;color:#dcebd9;border-color:#567962}
html.dark .psy-collections-studio .psy-scroll-arrow{background:#355641;color:#ecf6e7;border-color:#6a8873}
html.dark .psy-folder-tile{background:#2b4b39!important;border-color:#5b765b!important;color:#f0f7e8!important}
html.dark .psy-folder-tile:nth-child(3n+2){background:#4a4033!important;border-color:#806e53!important}
html.dark .psy-folder-tile:nth-child(3n+3){background:#2a4b47!important;border-color:#537e74!important}
html.dark .psy-folder-title{color:#f1f6ee}
html.dark .psy-folder-meta{color:#d0dfd0}
html.dark .psy-folder-chevron{color:#c6d8c8}
html.dark .psy-folder-empty{background:#233d31;border-color:#65816a;color:#d8e9d7}
html.dark .psy-folder-form input,html.dark .psy-folder-detail .psy-add-favorite select{background:#152b22!important;color:#edf7ef!important;border-color:#52715c!important}
html.dark .psy-favorites-wrap{border-color:#476854}
html.dark .psy-favorites-list li,html.dark .psy-folder-detail-list li{background:#294536;border-color:#496a56;color:#e6f4e6}
html.dark .psy-favorites-list a,html.dark .psy-folder-detail-list a{color:#e8f6e8}
html.dark .psy-favorites-head span,html.dark .psy-collection-empty-note,html.dark .psy-collection-notice{color:#bed8c4!important}
html.dark .psy-collections-studio .psy-mini-remove{background:#365342;color:#e2f0e5;border-color:#607b63}
html.dark .psy-collections-studio .psy-folder-back{color:#c5e6c8!important}
html.dark .psy-folder-detail-actions button{background:#35523f;color:#e3f1e4;border-color:#628068}
html.dark .psy-studio-library-link{background:#383a2b;border-color:#78684b;color:#e7dec7}
html.dark .psy-studio-library-link strong{color:#e0edd7}
@media(max-width:1050px){
 .psy-studio-hero{grid-template-columns:1fr 260px}
 .psy-studio-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .psy-studio-right{top:90px}
}
@media(max-width:800px){
 body[data-account="profile"] .site-account.psy-studio{width:calc(100% - 24px)!important;margin-top:15px!important}
 .psy-studio-grid{grid-template-columns:1fr;margin-top:23px}
 .psy-studio-right{position:static;grid-row:1}
 .psy-studio-hero{grid-template-columns:1fr minmax(90px,155px);min-height:240px}
 .psy-studio-hero-copy{padding:26px 20px}
 .psy-studio-hero-art{min-height:240px;opacity:.62}
 .psy-studio-paper{width:135px;height:165px;left:20%;top:31px}
 .psy-studio-orbit{right:-130px}
 .psy-studio-art-caption{display:none}
 .psy-studio-links a{padding:9px 11px;min-height:38px;font-size:12px}
 .psy-studio-hero h1{font-size:clamp(32px,5.5vw,46px)!important}
}
@media(max-width:500px){
 .psy-studio-hero{display:block;min-height:0;border-radius:22px}
 .psy-studio-hero-art{position:absolute;inset:0 0 0 auto;width:40%;opacity:.18;pointer-events:none}
 .psy-studio-hero-copy{position:relative;z-index:2}
 .psy-studio-links{max-width:290px;gap:7px}
 .psy-studio-links a{padding:8px 10px}
 .psy-collections-studio{padding:20px!important;border-radius:20px!important}
 .psy-folder-tile{flex-basis:72%;min-height:174px}
 .psy-studio-library-link{flex-direction:column;align-items:flex-start}
 .psy-studio-section-heading{align-items:start}
 .psy-studio #profileForm .psy-profile-heading{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
 .psy-studio-links a,.psy-folder-tile{transition:none!important}
 .psy-folder-tile:hover{transform:none}
 .psy-folder-wheel{scroll-behavior:auto}
 .psy-folder-detail{animation:none}
}
html.reduce-motion .psy-studio-links a,html.reduce-motion .psy-folder-tile{transition:none!important}
html.reduce-motion .psy-folder-wheel{scroll-behavior:auto}
html.reduce-motion .psy-folder-detail{animation:none}


/* Кабинет 2.0 – спокойный баннер без кнопок и управление слева. */
body[data-account="profile"] .psy-studio-hero{
 min-height:230px!important;
 grid-template-columns:minmax(0,1.3fr) minmax(200px,.7fr)!important;
}
body[data-account="profile"] .psy-studio-hero-copy{
 padding:clamp(27px,3vw,44px) clamp(24px,4vw,55px)!important;
 align-self:center;
}
body[data-account="profile"] .psy-studio-hero-copy>p{margin-bottom:0!important}
body[data-account="profile"] .psy-studio-hero h1{font-size:clamp(37px,4.1vw,57px)!important}
body[data-account="profile"] .psy-studio-hero-art{min-height:230px}
body[data-account="profile"] .psy-studio-paper{width:154px;height:174px;top:19px}
body[data-account="profile"] .psy-studio-paper-front{padding:31px 22px}
body[data-account="profile"] .psy-studio-paper-front i{width:35px;height:35px;bottom:17px}
body[data-account="profile"] .psy-studio-grid{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 column-gap:clamp(18px,2.5vw,34px)!important;
 align-items:start!important;
}
body[data-account="profile"] .psy-studio-left{
 display:grid;
 grid-template-columns:minmax(0,1fr);
 gap:0;
}
body[data-account="profile"] .psy-studio-side-nav{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
 margin:0 0 25px;padding:17px 18px;
 border:1px solid #e1d2bd;border-radius:19px;
 background:#f1eae0;
 box-shadow:0 9px 25px rgba(69,50,32,.05);
}
body[data-account="profile"] .psy-studio-side-caption{
 grid-column:1/-1;color:#8b6b4e;
 font:850 11px/1.4 system-ui,sans-serif;letter-spacing:.13em;
 margin-bottom:3px;
}
body[data-account="profile"] .psy-studio-side-link{
 display:flex;align-items:center;gap:9px;min-width:0;min-height:47px;
 padding:10px 13px;
 color:#fff7eb!important;background:#795743!important;
 border:1px solid #684735;border-radius:12px;
 font:750 13px/1.25 system-ui,sans-serif;
 text-decoration:none;transition:transform .2s,background .2s;
}
body[data-account="profile"] .psy-studio-side-link:nth-of-type(even){background:#8a654b!important}
body[data-account="profile"] .psy-studio-side-link span:nth-child(2){flex:1;min-width:0}
body[data-account="profile"] .psy-studio-side-link .psy-nav-icon{
 display:grid;place-items:center;width:24px;height:24px;flex:none;
 color:#f9ebd5;background:#ffffff1c;border-radius:7px;
 font-size:15px;
}
body[data-account="profile"] .psy-studio-side-link:hover{
 background:#654733!important;transform:translateY(-2px);
}
body[data-account="profile"] .psy-studio-side-link:focus-visible{
 outline:3px solid #cea876;outline-offset:3px;
}
body[data-account="profile"] .psy-studio-right{position:static!important}
html.dark body[data-account="profile"] .psy-studio-side-nav{
 background:#332c25;border-color:#705843;box-shadow:none;
}
html.dark body[data-account="profile"] .psy-studio-side-caption{color:#d9bf9d}
html.dark body[data-account="profile"] .psy-studio-side-link{
 background:#70533e!important;border-color:#97775b!important;color:#f8eddb!important;
}
html.dark body[data-account="profile"] .psy-studio-side-link:nth-of-type(even){background:#614835!important}
html.dark body[data-account="profile"] .psy-studio-side-link:hover{background:#8b6246!important}

/* Поиск и цвета папок – один стиль в обоих режимах. */
.psy-collections-studio .psy-folder-form{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) auto;
 align-items:center;gap:10px;
}
.psy-collections-studio #psyFolderName{width:100%;max-width:100%}
.psy-collections-studio .psy-folder-palette{
 grid-column:1/-1;width:100%;min-width:0;
 padding:10px 13px 12px;margin:3px 0 0;
 border:1px solid #dae6d9;border-radius:13px;background:#f7faf5;
}
.psy-collections-studio .psy-folder-palette legend{
 padding:0 6px;color:#64795d;font-size:12px;font-weight:800;
}
.psy-collections-studio .psy-folder-palette-options{
 display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:35px;
}
.psy-collections-studio .psy-folder-color-choice{
 position:relative;display:inline-grid;place-items:center;
 width:34px;height:34px;border:2px solid transparent;border-radius:11px;
 cursor:pointer;
}
.psy-collections-studio .psy-folder-color-choice input{
 position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;
}
.psy-collections-studio .psy-folder-color-swatch{
 display:block;width:25px;height:25px;border-radius:8px;
 background:var(--folder-swatch,#98b69e);
 border:1px solid #00000013;pointer-events:none;
}
.psy-folder-color-swatch[data-color="sage"]{--folder-swatch:#4b997b}
.psy-folder-color-swatch[data-color="clay"]{--folder-swatch:#b78262}
.psy-folder-color-swatch[data-color="sky"]{--folder-swatch:#7299c7}
.psy-folder-color-swatch[data-color="lilac"]{--folder-swatch:#8c76cf}
.psy-folder-color-swatch[data-color="amber"]{--folder-swatch:#d5a151}
.psy-folder-color-swatch[data-color="rose"]{--folder-swatch:#d77b8c}
.psy-collections-studio .psy-folder-color-choice:has(input:checked){
 border-color:#335e46!important;background:#fff;box-shadow:0 0 0 1px #ffffffbd;
}
.psy-collections-studio .psy-folder-color-choice:has(input:focus-visible){
 outline:3px solid #c49b65;outline-offset:2px;
}
.psy-collections-studio .psy-folder-search-box{display:grid;gap:7px;margin:17px 0 13px}
.psy-collections-studio .psy-folder-search-box label{
 font-weight:780;font-size:13px;color:#355744;
}
.psy-collections-studio .psy-folder-search-box input{
 width:100%;min-width:0;min-height:45px;
 border:1px solid #c2d8c8;border-radius:12px;
 background:#fff;color:#234b39;padding:11px 15px;
 font-size:14px;outline-offset:3px;
}
.psy-collections-studio #psyFolderSearchCount{font-size:12px;color:#64806a}
.psy-collections-studio .psy-folder-search-inside{margin:17px 0 8px}
.psy-collections-studio .psy-folder-palette-edit{margin:21px 0 6px}

/* Избранный оттенок у папки сохраняется и в ее открытом содержимом. */
.psy-collections-studio .psy-folder-tile{
 --folder-front:#83ab8f;--folder-back:#b4c9ab;--folder-edge:#6f9983;--folder-surface:#edf4e9;
 background:var(--folder-surface)!important;
 border-color:color-mix(in srgb,var(--folder-edge),white 60%)!important;
}
.psy-collections-studio .psy-folder-tile[data-folder-color="sage"]{--folder-front:#83ab8f;--folder-back:#b4c9ab;--folder-edge:#6f9983;--folder-surface:#edf4e9}
.psy-collections-studio .psy-folder-tile[data-folder-color="clay"]{--folder-front:#c88d76;--folder-back:#e1b8a2;--folder-edge:#b47864;--folder-surface:#fbefea}
.psy-collections-studio .psy-folder-tile[data-folder-color="sky"]{--folder-front:#81aebf;--folder-back:#b8d2dc;--folder-edge:#6a98ae;--folder-surface:#edf5f9}
.psy-collections-studio .psy-folder-tile[data-folder-color="lilac"]{--folder-front:#a395c0;--folder-back:#d0c3e0;--folder-edge:#907fac;--folder-surface:#f3eef8}
.psy-collections-studio .psy-folder-tile[data-folder-color="amber"]{--folder-front:#d1ae71;--folder-back:#e6cda3;--folder-edge:#b99a64;--folder-surface:#faf4e6}
.psy-collections-studio .psy-folder-tile[data-folder-color="rose"]{--folder-front:#d77b8c;--folder-back:#e8b3bc;--folder-edge:#b9677a;--folder-surface:#f9edf0}
.psy-collections-studio .psy-folder-tile .psy-folder-icon:before{background:var(--folder-back)!important}
.psy-collections-studio .psy-folder-tile .psy-folder-icon:after{
 background:linear-gradient(145deg,var(--folder-back),var(--folder-front))!important;
 border-color:var(--folder-edge)!important;
}
.psy-collections-studio .psy-folder-detail-icon{
 display:flex;align-items:center;height:80px;
}
.psy-collections-studio .psy-folder-detail-icon .psy-folder-icon{
 --folder-front:#83ab8f;--folder-back:#b4c9ab;--folder-edge:#6f9983;
}
.psy-collections-studio .psy-folder-detail[data-folder-color="clay"] .psy-folder-detail-icon .psy-folder-icon{--folder-front:#c88d76;--folder-back:#e1b8a2;--folder-edge:#b47864}
.psy-collections-studio .psy-folder-detail[data-folder-color="sky"] .psy-folder-detail-icon .psy-folder-icon{--folder-front:#81aebf;--folder-back:#b8d2dc;--folder-edge:#6a98ae}
.psy-collections-studio .psy-folder-detail[data-folder-color="lilac"] .psy-folder-detail-icon .psy-folder-icon{--folder-front:#a395c0;--folder-back:#d0c3e0;--folder-edge:#907fac}
.psy-collections-studio .psy-folder-detail[data-folder-color="amber"] .psy-folder-detail-icon .psy-folder-icon{--folder-front:#d1ae71;--folder-back:#e6cda3;--folder-edge:#b99a64}
.psy-collections-studio .psy-folder-detail[data-folder-color="rose"] .psy-folder-detail-icon .psy-folder-icon{--folder-front:#d77b8c;--folder-back:#e8b3bc;--folder-edge:#b9677a}
.psy-collections-studio .psy-folder-detail-icon .psy-folder-icon:before{background:var(--folder-back)!important}
.psy-collections-studio .psy-folder-detail-icon .psy-folder-icon:after{
 background:linear-gradient(145deg,var(--folder-back),var(--folder-front))!important;
 border-color:var(--folder-edge)!important;
}

/* Красный – только для необратимого действия. */
.psy-collections-studio .psy-folder-detail-actions #psyFolderDelete.psy-folder-delete{
 color:#a53736!important;background:#fff0ed!important;
 border:1px solid #e2a8a3!important;
 box-shadow:none!important;font-weight:850!important;
}
.psy-collections-studio .psy-folder-detail-actions #psyFolderDelete:hover{
 background:#fbd8d4!important;border-color:#c7746a!important;
}
.psy-collections-studio .psy-folder-detail-actions #psyFolderDelete:focus-visible{
 outline:3px solid #d6746b;outline-offset:2px;
}
html.dark .psy-collections-studio .psy-folder-search-box label,
html.dark .psy-collections-studio .psy-folder-palette legend{color:#d2e6d6!important}
html.dark .psy-collections-studio .psy-folder-search-box input{
 background:#142b22!important;border-color:#567a62!important;color:#edf6ee!important;
}
html.dark .psy-collections-studio .psy-folder-palette{
 background:#253e30!important;border-color:#53715e!important;
}
html.dark .psy-collections-studio .psy-folder-color-choice:has(input:checked){
 background:#eaf7ef!important;border-color:#d2e7cc!important;
}
html.dark .psy-collections-studio .psy-folder-tile{
 background:color-mix(in srgb,var(--folder-front),#182f26 72%)!important;
 border-color:var(--folder-edge)!important;
}
html.dark .psy-collections-studio .psy-folder-detail-actions #psyFolderDelete{
 color:#ffd8d4!important;background:#552d2c!important;border-color:#ae645e!important;
}
html.dark .psy-collections-studio .psy-folder-detail-actions #psyFolderDelete:hover{
 background:#723735!important;border-color:#c07e76!important;
}
/* Сайдбар вынесен из сетки анкеты: у него нет общих строк высотой с формой. */
@media(min-width:1160px){
 body[data-account="profile"] .psy-studio-side-nav{
  position:sticky;top:98px;
 }
}
@media(max-width:800px){
 body[data-account="profile"] .psy-studio-grid{grid-template-columns:1fr!important}
 body[data-account="profile"] .psy-studio-right{grid-row:auto!important}
 body[data-account="profile"] .psy-studio-hero{grid-template-columns:minmax(0,1fr) 145px!important}
 body[data-account="profile"] .psy-studio-side-nav{margin-bottom:23px}
}
@media(max-width:520px){
 body[data-account="profile"] .psy-studio-hero{display:block!important}
 body[data-account="profile"] .psy-studio-hero-copy>p{margin:0}
 body[data-account="profile"] .psy-studio-side-nav{grid-template-columns:1fr 1fr;padding:12px;gap:7px}
 body[data-account="profile"] .psy-studio-side-link{font-size:12px;padding:9px}
 body[data-account="profile"] .psy-studio-side-link .psy-nav-icon{width:19px;height:19px}
 .psy-collections-studio .psy-folder-search-box input{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
 body[data-account="profile"] .psy-studio-side-link{transition:none}
 body[data-account="profile"] .psy-studio-side-link:hover{transform:none}
}
html.reduce-motion body[data-account="profile"] .psy-studio-side-link{transition:none}

/* Убираем случайную черную рамку у заголовка при входе в папку. */
.psy-collections-studio #psyFolderDetailName:focus{outline:none}
.psy-collections-studio #psyFolderDetailName:focus-visible{
 outline:2px solid #c7a579;outline-offset:5px;border-radius:4px;
}


/* Кабинет 3.0: самостоятельная боковая панель и две одинаковые рабочие колонки.
   Панель НЕ растягивается на высоту анкеты и не перекрывает блок безопасности. */
body[data-account="profile"] .psy-studio-grid {
 display:grid!important;
 grid-template-columns:164px minmax(0,1fr) minmax(0,1fr)!important;
 gap:clamp(16px,1.65vw,25px)!important;
 align-items:start!important;
 margin-top:28px!important;
}
body[data-account="profile"] .psy-studio-left {
 display:block!important;
 min-width:0!important;
}
body[data-account="profile"] .psy-studio-right{
 grid-column:3!important;
 grid-row:1!important;
 min-width:0!important;
 align-self:start!important;
}
body[data-account="profile"] .psy-studio-side-nav{
 grid-column:1!important;
 grid-row:1!important;
 justify-self:stretch!important;
 align-self:start!important;
 display:flex!important;
 flex-direction:column!important;
 align-items:stretch!important;
 gap:7px!important;
 width:100%!important;
 height:auto!important;
 min-height:0!important;
 max-height:none!important;
 padding:14px 10px!important;
 margin:0!important;
 border-radius:16px!important;
}
body[data-account="profile"] .psy-studio-side-caption{
 display:block!important;
 padding:0 5px!important;
 margin:0 0 7px!important;
 font-size:10px!important;
 white-space:normal!important;
}
body[data-account="profile"] .psy-studio-side-link{
 display:flex!important;
 flex:0 0 auto!important;
 align-items:center!important;
 justify-content:flex-start!important;
 gap:7px!important;
 width:100%!important;
 height:45px!important;
 min-height:45px!important;
 max-height:45px!important;
 padding:8px 9px!important;
 border-radius:10px!important;
 font-size:12px!important;
 line-height:1.2!important;
 white-space:nowrap!important;
}
body[data-account="profile"] .psy-studio-side-link .psy-nav-icon{
 flex:0 0 20px!important;
 width:20px!important;
 height:20px!important;
 border-radius:6px!important;
}
body[data-account="profile"] .psy-studio-side-link span:nth-child(2){
 flex:1 1 auto!important;
 min-width:0!important;
 overflow:hidden!important;
 text-overflow:ellipsis!important;
}
body[data-account="profile"] .psy-studio-side-link>span:last-child{
 flex:0 0 auto!important;
}
body[data-account="profile"] #psyInfo,
body[data-account="profile"] #profileForm,
body[data-account="profile"] .psy-studio-security{
 width:100%!important;
 min-width:0!important;
 grid-column:auto!important;
 grid-row:auto!important;
}
body[data-account="profile"] .psy-studio-left .psy-studio-section-heading{
 margin-top:4px;
}
body[data-account="profile"] .psy-studio-security{
 margin-top:30px!important;
}
@media(max-width:1159px){
 body[data-account="profile"] .psy-studio-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  row-gap:20px!important;
 }
 body[data-account="profile"] .psy-studio-side-nav{
  grid-column:1/-1!important;
  grid-row:1!important;
  position:static!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  padding:11px!important;
  gap:8px!important;
 }
 body[data-account="profile"] .psy-studio-side-caption{
  flex:0 0 100%!important;
  margin:0!important;
 }
 body[data-account="profile"] .psy-studio-side-link{
  width:auto!important;
  max-width:100%!important;
  flex:1 0 130px!important;
 }
 body[data-account="profile"] .psy-studio-left{
  grid-column:1!important;
  grid-row:2!important;
 }
 body[data-account="profile"] .psy-studio-right{
  grid-column:2!important;
  grid-row:2!important;
 }
}
@media(max-width:839px){
 body[data-account="profile"] .psy-studio-grid{
  grid-template-columns:minmax(0,1fr)!important;
 }
 body[data-account="profile"] .psy-studio-left{
  grid-column:1!important;
  grid-row:2!important;
 }
 body[data-account="profile"] .psy-studio-right{
  grid-column:1!important;
  grid-row:3!important;
 }
}
@media(max-width:520px){
 body[data-account="profile"] .psy-studio-side-nav{gap:7px!important}
 body[data-account="profile"] .psy-studio-side-link{
  flex:1 1 calc(50% - 7px)!important;
  min-width:0!important;
  padding:8px!important;
 }
}


/* Кабинет 4.0: переключаемые вкладки и светлая гармоничная палитра.
   Важные состояния оформлены отдельными панелями, не помещены под анкетой. */
body[data-account="profile"] .psy-studio-grid{
 grid-template-columns:168px minmax(0,1fr) minmax(0,1fr)!important;
 align-items:start!important;
 column-gap:clamp(18px,1.9vw,28px)!important;
}
body[data-account="profile"] .psy-studio-left[hidden],
body[data-account="profile"] .psy-studio-pane[hidden]{display:none!important}
body[data-account="profile"] .psy-studio-left,
body[data-account="profile"] .psy-studio-right{min-width:0}
body[data-account="profile"] .psy-studio-left{
 grid-column:2!important;grid-row:1!important;
 display:block!important;
}
body[data-account="profile"] .psy-studio-right{
 grid-column:3!important;grid-row:1!important;
 display:block!important;
}
body[data-account="profile"] .psy-studio-side-nav{
 grid-column:1!important;grid-row:1!important;
 padding:11px!important;gap:6px!important;
 background:#f3f7f2!important;border:1px solid #d4e2d7!important;
 border-radius:18px!important;box-shadow:0 12px 36px #193e2610!important;
}
body[data-account="profile"] .psy-studio-side-caption{
 display:block!important;color:#94795c!important;
 font-size:10px!important;font-weight:850!important;
 letter-spacing:.115em!important;padding:6px 7px 7px!important;
}
body[data-account="profile"] .psy-studio-side-link{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 width:100%!important;min-height:46px!important;max-height:none!important;height:auto!important;
 gap:8px!important;padding:10px 11px!important;
 color:#294f3c!important;background:transparent!important;
 border:1px solid transparent!important;border-radius:11px!important;
 box-shadow:none!important;font:750 12px/1.32 system-ui,-apple-system,"Segoe UI",sans-serif!important;
 cursor:pointer!important;text-align:left!important;
 white-space:normal!important;transition:background .17s,box-shadow .17s,transform .17s!important;
}
body[data-account="profile"] .psy-studio-side-link:nth-of-type(even){
 background:transparent!important;
}
body[data-account="profile"] .psy-studio-side-link:hover{
 background:#e3ede5!important;border-color:#d4e3d7!important;
 transform:none!important;
}
body[data-account="profile"] .psy-studio-side-link[aria-selected="true"],
body[data-account="profile"] .psy-studio-side-link[aria-selected="true"]:hover{
 background:#2a694f!important;border-color:#245a44!important;
 color:#fffdf6!important;box-shadow:0 5px 15px #21553b30!important;
 transform:none!important;
}
body[data-account="profile"] .psy-studio-side-link .psy-nav-icon{
 display:grid;place-items:center;flex:0 0 25px!important;
 width:25px!important;height:25px!important;
 border-radius:8px!important;font-size:14px!important;
 color:#647d69!important;background:#e5eee7!important;
}
body[data-account="profile"] .psy-studio-side-link[aria-selected="true"] .psy-nav-icon{
 color:#e9efd9!important;background:#ffffff26!important;
}
body[data-account="profile"] .psy-studio-side-link span:nth-child(2){
 overflow:visible!important;text-overflow:clip!important;
 white-space:normal!important;
}
body[data-account="profile"] .psy-studio-side-link:focus-visible{
 outline:3px solid #bd9467!important;outline-offset:2px!important;
}
body[data-account="profile"] .psy-studio-pane{
 animation:psy-profile-pane-enter .21s ease-out both;
}
@keyframes psy-profile-pane-enter{
 from{opacity:.6;transform:translateY(5px)}
 to{opacity:1;transform:translateY(0)}
}
body[data-account="profile"] .psy-studio-section-heading,
body[data-account="profile"] .psy-studio-collections-heading{
 display:flex!important;
 align-items:flex-start!important;
 justify-content:flex-start!important;
 min-height:122px!important;
 margin:0!important;
 padding:4px 2px 20px!important;
 gap:12px!important;
}
body[data-account="profile"] .psy-studio-section-heading h2,
body[data-account="profile"] .psy-studio-collections-heading h2{
 margin:6px 0 7px!important;font-size:clamp(25px,2.4vw,33px)!important;
 letter-spacing:-.025em!important;line-height:1.16!important;
}
body[data-account="profile"] .psy-studio-section-heading p{
 margin:0!important;line-height:1.45!important;font-size:13px!important;
}
body[data-account="profile"] .psy-studio-left #profileForm,
body[data-account="profile"] .psy-collections-studio{
 border-radius:24px!important;
 border:1px solid #d5e5dc!important;
 box-shadow:0 14px 37px rgba(22,61,39,.055)!important;
 background:linear-gradient(160deg,#fff 35%,#fafdf9)!important;
}
body[data-account="profile"] .psy-collections-studio{
 padding:clamp(19px,2.5vw,30px)!important;
}
body[data-account="profile"] .psy-collection-overview > h2,
body[data-account="profile"] .psy-collection-overview > .psy-collection-lead{display:none!important}
body[data-account="profile"] .psy-collection-overview > .psy-collection-topline{
 justify-content:flex-end!important;min-height:32px;margin:0 0 15px!important;
}
body[data-account="profile"] .psy-collection-overview > .psy-collection-topline > .psy-collection-kicker{display:none!important}
body[data-account="profile"] .psy-collection-count{font-size:12px!important}
body[data-account="profile"] .psy-studio #profileForm .psy-profile-heading{
 align-items:center!important;padding-bottom:20px!important;
}
body[data-account="profile"] .psy-studio #avatarPreview,
body[data-account="profile"] .psy-avatar-preview{
 display:grid!important;place-items:center!important;flex:0 0 auto!important;
 width:108px!important;height:108px!important;
 min-width:108px!important;min-height:108px!important;
 aspect-ratio:1!important;border-radius:50%!important;overflow:hidden!important;
 background:#e3f0e7!important;color:#26714f!important;
 border:3px solid #fff!important;outline:1px solid #c8ddcf!important;
 box-shadow:0 6px 20px #214f3522!important;font-size:38px!important;
}
body[data-account="profile"] #avatarPreview img{
 display:block!important;width:100%!important;height:100%!important;
 border-radius:50%!important;object-fit:cover!important;
}
body[data-account="profile"] #profileForm .psy-avatar-controls h2{
 font-size:17px!important;line-height:1.3!important;
}
body[data-account="profile"] #profileForm .psy-avatar-controls small{
 max-width:330px;line-height:1.45!important;
}
body[data-account="profile"] .psy-studio-security{
 margin-top:0!important;
}
body[data-account="profile"] #psySecurity .psy-studio-section-heading{
 min-height:122px!important;
}
body[data-account="profile"] #psySecurity .account-card{
 margin-bottom:15px!important;
}
body[data-account="profile"] .psy-studio-settings-form,
body[data-account="profile"] .psy-studio-subscription-card{
 display:grid;gap:12px;padding:clamp(23px,2.9vw,34px)!important;
}
body[data-account="profile"] .psy-studio-settings-form h3,
body[data-account="profile"] .psy-studio-subscription-card h3{
 font-size:21px;color:#244c38;margin:0 0 8px;
}
body[data-account="profile"] .psy-studio-settings-form label:not(.psy-studio-check){
 font-size:13px;font-weight:800;color:#27533d;
}
body[data-account="profile"] .psy-studio-settings-form select{
 width:100%;min-height:46px;padding:10px 13px;
 border:1px solid #cbded2;border-radius:11px;
 background:#fff;color:#224737;margin-bottom:6px;
}
body[data-account="profile"] .psy-studio-settings-form .psy-studio-check{
 display:flex;align-items:center;gap:10px;font-size:13px;
}
body[data-account="profile"] .psy-studio-settings-form .psy-studio-check input{
 margin:0;accent-color:#2f7753;width:18px;height:18px;
}
body[data-account="profile"] .psy-studio-settings-form .account-actions{margin-top:12px}
body[data-account="profile"] .psy-studio-subscription-card p{
 line-height:1.65;color:#607a68;margin:0 0 12px;
}
body[data-account="profile"] .psy-studio-subscription-card .site-btn{
 display:inline-flex;align-items:center;justify-content:center;
 justify-self:start;min-height:44px;
 padding:10px 17px;text-decoration:none;
}
body[data-account="profile"] .psy-studio-subscription-mark{
 display:grid;place-items:center;width:62px;height:62px;
 border-radius:18px;background:#eaf2e7;color:#ad8a5f;font-size:34px;
}
body[data-account="profile"] .psy-studio-grid[data-active-panel="folders"] .psy-studio-left{display:none!important}
body[data-account="profile"] .psy-studio-grid[data-active-panel="folders"] .psy-studio-right{
 grid-column:2 / 4!important;
}
body[data-account="profile"] .psy-studio-grid[data-active-panel="folders"] .psy-collections-studio{
 max-width:100%;
}
html.dark body[data-account="profile"] .psy-studio-side-nav{
 background:#20382c!important;border-color:#496c54!important;
 box-shadow:none!important;
}
html.dark body[data-account="profile"] .psy-studio-side-caption{color:#d4b58d!important}
html.dark body[data-account="profile"] .psy-studio-side-link{
 background:transparent!important;border-color:transparent!important;
 color:#d8e8d9!important;
}
html.dark body[data-account="profile"] .psy-studio-side-link:hover{
 background:#2e4c3a!important;border-color:#4c735a!important;
}
html.dark body[data-account="profile"] .psy-studio-side-link[aria-selected="true"]{
 background:#41775a!important;border-color:#679d76!important;color:#fff!important;
}
html.dark body[data-account="profile"] .psy-studio-side-link .psy-nav-icon{
 background:#345440!important;color:#bcd1be!important;
}
html.dark body[data-account="profile"] .psy-studio-side-link[aria-selected="true"] .psy-nav-icon{
 color:#edf5e8!important;background:#ffffff25!important;
}
html.dark body[data-account="profile"] #profileForm,
html.dark body[data-account="profile"] .psy-collections-studio{
 background:linear-gradient(150deg,#1c342a,#20372d)!important;
 border-color:#426452!important;
}
html.dark body[data-account="profile"] #avatarPreview{
 background:#365f47!important;color:#ecf5e8!important;
 border-color:#20382d!important;outline-color:#557b62!important;
}
html.dark body[data-account="profile"] .psy-studio-settings-form h3,
html.dark body[data-account="profile"] .psy-studio-subscription-card h3{color:#eff6ec}
html.dark body[data-account="profile"] .psy-studio-settings-form select{
 background:#1b3429;color:#ebf6ee;border-color:#52715c;
}
html.dark body[data-account="profile"] .psy-studio-subscription-card p{color:#c3d4c5}
@media(max-width:1159px){
 body[data-account="profile"] .psy-studio-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body[data-account="profile"] .psy-studio-side-nav{grid-column:1/-1!important}
 body[data-account="profile"] .psy-studio-side-link{
  flex:1 1 130px!important;width:auto!important;
 }
 body[data-account="profile"] .psy-studio-left{grid-column:1!important;grid-row:2!important}
 body[data-account="profile"] .psy-studio-right{grid-column:2!important;grid-row:2!important}
 body[data-account="profile"] .psy-studio-grid[data-active-panel="folders"] .psy-studio-right{
  grid-column:1/-1!important;
 }
}
@media(max-width:839px){
 body[data-account="profile"] .psy-studio-grid{grid-template-columns:minmax(0,1fr)!important}
 body[data-account="profile"] .psy-studio-left{grid-column:1!important;grid-row:2!important}
 body[data-account="profile"] .psy-studio-right{grid-column:1!important;grid-row:3!important}
 body[data-account="profile"] .psy-studio-grid[data-active-panel="folders"] .psy-studio-right{
  grid-column:1!important;grid-row:2!important;
 }
 body[data-account="profile"] .psy-studio-section-heading,
 body[data-account="profile"] .psy-studio-collections-heading{
  min-height:0!important;padding:3px 1px 17px!important;
 }
}
@media(max-width:520px){
 body[data-account="profile"] .psy-studio-side-link{
  flex:1 1 calc(50% - 7px)!important;min-height:42px!important;
 }
 body[data-account="profile"] #avatarPreview{width:88px!important;height:88px!important;min-width:88px!important;min-height:88px!important}
 body[data-account="profile"] .psy-studio-hero{min-height:190px!important}
}
@media(prefers-reduced-motion:reduce){
 body[data-account="profile"] .psy-studio-pane{animation:none!important}
 body[data-account="profile"] .psy-studio-side-link{transition:none!important}
}
html.reduce-motion body[data-account="profile"] .psy-studio-pane{animation:none!important}


/* Кабинет 5.0: увеличенное личное меню, гармоничные иконки,
   ровная палитра и подтверждение удаления по центру. */
@media(min-width:1160px){
 body[data-account="profile"] .psy-studio-grid{
  grid-template-columns:224px minmax(0,1fr) minmax(0,1fr)!important;
  column-gap:clamp(18px,2.2vw,28px)!important;
 }
}
body[data-account="profile"] .psy-studio-side-nav{
 gap:9px!important;
 padding:19px 13px!important;
 border-radius:22px!important;
 background:linear-gradient(160deg,#fcfaf6,#f3f6ed)!important;
 border:1px solid #dce5d7!important;
 box-shadow:0 16px 32px rgba(40,67,48,.065)!important;
}
body[data-account="profile"] .psy-studio-side-caption{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 padding:2px 9px 11px!important;
 margin:0 0 4px!important;
 font:850 12px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif!important;
 letter-spacing:.11em!important;color:#85664c!important;
}
body[data-account="profile"] .psy-studio-side-caption:after{
 content:"✦";font:500 21px/1 Georgia,serif;color:#c49b73;
}
body[data-account="profile"] .psy-studio-side-link{
 display:flex!important;align-items:center!important;
 min-height:58px!important;height:auto!important;max-height:none!important;
 padding:9px 12px!important;gap:12px!important;
 font:750 14px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif!important;
 border-radius:14px!important;
 color:#2e5541!important;
}
body[data-account="profile"] .psy-studio-side-link .psy-nav-icon{
 flex:0 0 37px!important;width:37px!important;height:37px!important;
 background:#e8f0e9!important;
 border:1px solid #d9e7dc!important;
 border-radius:11px!important;
 color:#507a5f!important;
}
body[data-account="profile"] .psy-studio-side-link .psy-nav-icon svg{
 display:block;width:21px;height:21px;fill:none;
 stroke:currentColor;stroke-width:1.7;
 stroke-linecap:round;stroke-linejoin:round;
}
body[data-account="profile"] .psy-studio-side-link[aria-selected="true"]{
 background:linear-gradient(115deg,#24624a,#2d7455)!important;
 box-shadow:0 7px 18px rgba(26,79,51,.19)!important;
}
body[data-account="profile"] .psy-studio-side-link[aria-selected="true"] .psy-nav-icon{
 background:rgba(255,255,255,.14)!important;
 border-color:rgba(255,255,255,.23)!important;
 color:#fff5da!important;
}
body[data-account="profile"] .psy-studio-side-link:not([aria-selected="true"]):hover .psy-nav-icon{
 color:#266148!important;background:#d9e9dd!important;
}
html.dark body[data-account="profile"] .psy-studio-side-nav{
 background:linear-gradient(160deg,#263c30,#20362b)!important;
 border-color:#4a6b53!important;
 box-shadow:none!important;
}
html.dark body[data-account="profile"] .psy-studio-side-link{
 color:#e4f2e7!important;
}
html.dark body[data-account="profile"] .psy-studio-side-link .psy-nav-icon{
 background:#345443!important;border-color:#53745f!important;color:#c4ddca!important;
}
html.dark body[data-account="profile"] .psy-studio-side-link[aria-selected="true"]{
 color:#fff!important;background:linear-gradient(120deg,#347356,#3c8363)!important;
}
html.dark body[data-account="profile"] .psy-studio-side-link[aria-selected="true"] .psy-nav-icon{
 background:#ffffff1d!important;border-color:#ffffff36!important;color:#fff3d5!important;
}

/* Ровно шесть одинаковых квадратов: состояние выбора не меняет геометрию. */
.psy-collections-studio .psy-folder-palette-options{
 display:flex!important;flex-flow:row wrap!important;
 align-items:center!important;justify-content:flex-start!important;
 gap:9px!important;min-height:44px!important;padding:1px!important;
}
.psy-collections-studio .psy-folder-color-choice{
 box-sizing:border-box!important;
 display:grid!important;place-items:center!important;
 position:relative!important;
 flex:0 0 42px!important;width:42px!important;min-width:42px!important;
 max-width:42px!important;height:42px!important;min-height:42px!important;max-height:42px!important;
 padding:0!important;margin:0!important;line-height:0!important;
 background:transparent!important;
 border:0!important;border-radius:12px!important;box-shadow:none!important;
 align-self:center!important;justify-self:center!important;
 cursor:pointer!important;
}
.psy-collections-studio .psy-folder-color-choice input{
 position:absolute!important;inset:0!important;
 width:100%!important;height:100%!important;
 margin:0!important;padding:0!important;
 opacity:0!important;cursor:pointer!important;
 z-index:2;
}
.psy-collections-studio .psy-folder-color-swatch{
 box-sizing:border-box!important;
 width:29px!important;height:29px!important;
 min-width:29px!important;min-height:29px!important;
 max-width:29px!important;max-height:29px!important;
 margin:0!important;padding:0!important;
 display:block!important;
 border:1px solid rgba(30,54,42,.13)!important;
 border-radius:9px!important;
 box-shadow:inset 0 1px 2px rgba(255,255,255,.16)!important;
 transform:none!important;transition:box-shadow .16s ease!important;
}
.psy-collections-studio .psy-folder-color-choice:has(input:checked){
 background:transparent!important;border:0!important;box-shadow:none!important;
 outline:2px solid #2f7757!important;outline-offset:-2px!important;
}
.psy-collections-studio .psy-folder-color-choice:has(input:focus-visible){
 outline:3px solid #c79f6e!important;outline-offset:2px!important;
}
.psy-collections-studio .psy-folder-color-choice:has(input:checked) .psy-folder-color-swatch{
 box-shadow:inset 0 1px 2px rgba(255,255,255,.2),0 0 0 2px #fff!important;
}
html.dark .psy-collections-studio .psy-folder-color-choice:has(input:checked){
 background:transparent!important;
 border:0!important;
 outline-color:#d8e6d0!important;
}
html.dark .psy-collections-studio .psy-folder-color-choice:has(input:checked) .psy-folder-color-swatch{
 box-shadow:0 0 0 2px #1f392b!important;
}
@media(max-width:1159px){
 body[data-account="profile"] .psy-studio-side-nav{gap:9px!important}
 body[data-account="profile"] .psy-studio-side-link{
  flex:1 1 155px!important;width:auto!important;
 }
}
@media(max-width:520px){
 body[data-account="profile"] .psy-studio-side-nav{padding:13px!important}
 body[data-account="profile"] .psy-studio-side-link{
  flex:1 1 calc(50% - 9px)!important;min-width:0!important;
  min-height:53px!important;padding:8px!important;
  gap:7px!important;font-size:12px!important;
 }
 body[data-account="profile"] .psy-studio-side-link .psy-nav-icon{
  flex-basis:30px!important;width:30px!important;height:30px!important;
 }
 body[data-account="profile"] .psy-studio-side-link .psy-nav-icon svg{width:18px;height:18px}
}

/* Без системного confirm: собственное диалоговое окно в центре экрана. */
.psy-collections-studio .psy-folder-delete-dialog{
 position:fixed!important;inset:0!important;
 box-sizing:border-box!important;
 width:min(450px,calc(100vw - 28px))!important;
 max-width:450px!important;max-height:calc(100dvh - 30px)!important;
 margin:auto!important;padding:0!important;
 border:1px solid #e8d8d3!important;border-radius:24px!important;
 background:#fffdfa!important;color:#233b31!important;
 box-shadow:0 26px 90px rgba(15,31,24,.35)!important;
 overflow:auto!important;
 z-index:15000!important;
}
.psy-collections-studio .psy-folder-delete-dialog:not([open]){display:none!important}
.psy-collections-studio .psy-folder-delete-dialog[open]{display:block!important}
.psy-collections-studio .psy-folder-delete-dialog::backdrop{
 background:rgba(15,34,27,.58)!important;
 backdrop-filter:blur(5px);
}
.psy-collections-studio .psy-folder-delete-inner{
 display:flex;flex-direction:column;align-items:center;gap:0;
 text-align:center;padding:33px 32px 29px;
}
.psy-collections-studio .psy-folder-delete-symbol{
 display:grid;place-items:center;
 width:68px;height:68px;margin:0 0 15px;
 border-radius:20px;
 background:#fbece8;color:#a8443e;
 border:1px solid #f0cfc7;
}
.psy-collections-studio .psy-folder-delete-symbol svg{
 display:block;width:31px;height:31px;
}
.psy-collections-studio .psy-folder-delete-dialog h2{
 color:#283c30!important;font-size:24px!important;
 font-weight:820!important;letter-spacing:-.025em;
 line-height:1.22!important;margin:0 0 12px!important;
}
.psy-collections-studio .psy-folder-delete-description{
 color:#425c4b!important;font-size:14px!important;
 line-height:1.65!important;margin:0 0 7px!important;
 overflow-wrap:anywhere;
}
.psy-collections-studio .psy-folder-delete-description strong{
 color:#203d2e;font-weight:800;
}
.psy-collections-studio .psy-folder-delete-help{
 margin:0!important;color:#728375!important;
 font-size:12px!important;line-height:1.55!important;
}
.psy-collections-studio .psy-folder-delete-actions{
 display:grid;grid-template-columns:1fr 1fr;gap:10px;
 width:100%;margin-top:26px;
}
.psy-collections-studio .psy-folder-delete-actions button{
 display:inline-flex;justify-content:center;align-items:center;
 min-height:46px;padding:10px 13px!important;
 border-radius:12px!important;
 font:800 13px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif!important;
 cursor:pointer;transition:background .16s;
}
.psy-collections-studio .psy-folder-delete-actions .psy-folder-delete-cancel{
 background:#f3f8f3!important;color:#2b6449!important;
 border:1px solid #d1e2d4!important;
}
.psy-collections-studio .psy-folder-delete-actions .psy-folder-delete-cancel:hover{
 background:#e7f2e9!important;
}
.psy-collections-studio .psy-folder-delete-actions .psy-folder-delete-confirm{
 background:#ad4946!important;color:#fff!important;
 border:1px solid #9e3938!important;
}
.psy-collections-studio .psy-folder-delete-actions .psy-folder-delete-confirm:hover{
 background:#963936!important;
}
.psy-collections-studio .psy-folder-delete-actions button:focus-visible{
 outline:3px solid #d7a26b!important;outline-offset:2px!important;
}
html.dark .psy-collections-studio .psy-folder-delete-dialog{
 background:#1f3429!important;color:#f0f6ef!important;
 border-color:#58715b!important;
}
html.dark .psy-collections-studio .psy-folder-delete-dialog h2,
html.dark .psy-collections-studio .psy-folder-delete-description strong{
 color:#f0f7f0!important;
}
html.dark .psy-collections-studio .psy-folder-delete-description{color:#d2e1d5!important}
html.dark .psy-collections-studio .psy-folder-delete-help{color:#b9cabc!important}
html.dark .psy-collections-studio .psy-folder-delete-symbol{
 background:#4c3331;color:#ffd4c8;border-color:#8e544d;
}
html.dark .psy-collections-studio .psy-folder-delete-cancel{
 background:#2c4b39!important;color:#dff0df!important;border-color:#54775c!important;
}
@media(max-width:440px){
 .psy-collections-studio .psy-folder-delete-inner{padding:26px 18px 22px}
 .psy-collections-studio .psy-folder-delete-actions{gap:8px}
}
@media(prefers-reduced-motion:reduce){
 .psy-collections-studio .psy-folder-color-swatch,
 .psy-collections-studio .psy-folder-delete-actions button{transition:none!important}
}

/* Дополнительные оттенки: общий порядок и HEX с библиотекой. */
.psy-folder-color-swatch[data-color="turquoise"]{--folder-swatch:#4ca6a4}
.psy-collections-studio .psy-folder-tile[data-folder-color="turquoise"]{--folder-front:#4ca6a4;--folder-back:#93cdcb;--folder-edge:#398d8b;--folder-surface:#edf8f7}
.psy-collections-studio .psy-folder-detail[data-folder-color="turquoise"] .psy-folder-detail-icon .psy-folder-icon{--folder-front:#4ca6a4;--folder-back:#93cdcb;--folder-edge:#398d8b}
.psy-folder-color-swatch[data-color="coral"]{--folder-swatch:#e38f7f}
.psy-collections-studio .psy-folder-tile[data-folder-color="coral"]{--folder-front:#e38f7f;--folder-back:#f1bfb3;--folder-edge:#d17567;--folder-surface:#fdf1ec}
.psy-collections-studio .psy-folder-detail[data-folder-color="coral"] .psy-folder-detail-icon .psy-folder-icon{--folder-front:#e38f7f;--folder-back:#f1bfb3;--folder-edge:#d17567}
.psy-folder-color-swatch[data-color="plum"]{--folder-swatch:#995f97}
.psy-collections-studio .psy-folder-tile[data-folder-color="plum"]{--folder-front:#995f97;--folder-back:#c3a0c2;--folder-edge:#854b84;--folder-surface:#f5edf5}
.psy-collections-studio .psy-folder-detail[data-folder-color="plum"] .psy-folder-detail-icon .psy-folder-icon{--folder-front:#995f97;--folder-back:#c3a0c2;--folder-edge:#854b84}
.psy-folder-color-swatch[data-color="indigo"]{--folder-swatch:#6875b8}
.psy-collections-studio .psy-folder-tile[data-folder-color="indigo"]{--folder-front:#6875b8;--folder-back:#a6b1d6;--folder-edge:#54639f;--folder-surface:#eff1fa}
.psy-collections-studio .psy-folder-detail[data-folder-color="indigo"] .psy-folder-detail-icon .psy-folder-icon{--folder-front:#6875b8;--folder-back:#a6b1d6;--folder-edge:#54639f}
.psy-folder-color-swatch[data-color="olive"]{--folder-swatch:#8fa35d}
.psy-collections-studio .psy-folder-tile[data-folder-color="olive"]{--folder-front:#8fa35d;--folder-back:#c5cf9b;--folder-edge:#798a49;--folder-surface:#f4f6e7}
.psy-collections-studio .psy-folder-detail[data-folder-color="olive"] .psy-folder-detail-icon .psy-folder-icon{--folder-front:#8fa35d;--folder-back:#c5cf9b;--folder-edge:#798a49}
.psy-folder-color-swatch[data-color="apricot"]{--folder-swatch:#ebb176}
.psy-collections-studio .psy-folder-tile[data-folder-color="apricot"]{--folder-front:#ebb176;--folder-back:#f3d0aa;--folder-edge:#d59b60;--folder-surface:#fff5ea}
.psy-collections-studio .psy-folder-detail[data-folder-color="apricot"] .psy-folder-detail-icon .psy-folder-icon{--folder-front:#ebb176;--folder-back:#f3d0aa;--folder-edge:#d59b60}
.psy-folder-color-swatch[data-color="slate"]{--folder-swatch:#718896}
.psy-collections-studio .psy-folder-tile[data-folder-color="slate"]{--folder-front:#718896;--folder-back:#afbec6;--folder-edge:#5d788a;--folder-surface:#f0f5f7}
.psy-collections-studio .psy-folder-detail[data-folder-color="slate"] .psy-folder-detail-icon .psy-folder-icon{--folder-front:#718896;--folder-back:#afbec6;--folder-edge:#5d788a}
.psy-folder-color-swatch[data-color="cocoa"]{--folder-swatch:#917766}
.psy-collections-studio .psy-folder-tile[data-folder-color="cocoa"]{--folder-front:#917766;--folder-back:#c6ab98;--folder-edge:#786150;--folder-surface:#f6f1ed}
.psy-collections-studio .psy-folder-detail[data-folder-color="cocoa"] .psy-folder-detail-icon .psy-folder-icon{--folder-front:#917766;--folder-back:#c6ab98;--folder-edge:#786150}
/* Четкие, равномерные столбцы без скачков при выборе цвета. */
.psy-collections-studio .psy-folder-palette-options{
 display:grid!important;
 grid-template-columns:repeat(auto-fill,42px)!important;
 align-items:center!important;justify-content:start!important;
 gap:8px!important;
 width:100%!important;
}
@media(max-width:520px){
 .psy-collections-studio .psy-folder-palette-options{grid-template-columns:repeat(auto-fill,42px)!important;}
}
