@import "./profile-feed.css";
@import "./profile-cover-editor.css";
@import "./round-icon-button.css";
@import "./new-project-dialog.css";

/* Same width as the header and the rest of the site (user decision 16.11.2026). */
.account-page{width:min(1280px,calc(100% - 96px));margin:0 auto;padding:clamp(var(--space-6),5vw,var(--space-8)) 0 64px;overflow-wrap:anywhere}
.account-verified-banner{display:flex;align-items:center;gap:var(--space-3);margin:0 0 var(--space-5);padding:var(--space-3) var(--space-4);border:1px solid color-mix(in srgb,var(--status-teal) 54%,transparent);border-radius:var(--card-radius);background:linear-gradient(180deg,color-mix(in srgb,var(--status-teal) 16%,var(--surface)),color-mix(in srgb,var(--surface) 88%,transparent));color:var(--ink);font-size:var(--text-small);font-weight:600}
.account-verified-banner[hidden]{display:none}
.account-verified-banner>svg{width:20px;height:20px;flex:none;display:block;color:var(--status-teal)}
.account-verified-text{flex:1;min-width:0;line-height:1.45}
.account-verified-close{flex:none;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:var(--text-lead);line-height:1;cursor:pointer}
.account-verified-close:is(:hover,:focus-visible){background:color-mix(in srgb,var(--ink) 10%,transparent);color:var(--ink)}
.account-profile-feed{display:grid;gap:var(--space-5);margin-bottom:var(--space-5)}
.account-profile-feed[hidden]{display:none}
.account-heading{margin-bottom:clamp(var(--space-6),4vw,var(--space-7));max-width:65ch}
.account-heading h1{margin:0 0 12px;font-size:clamp(32px,4.6vw,58px);letter-spacing:-.04em;line-height:1.12}
.account-heading p,.account-project-text time,.account-identity-text span,.account-status{color:var(--muted)}
.account-heading p{margin:0;line-height:1.6;font-size:var(--text-small)}
/* Cards like the brief cards (user request 27.11.2026): every block is a .ui-card with its violet .ui-card-head
   (components.css); the cards stand in the brief's grid with the brief's gap (--space-cards). Inside a card the parts follow
   each other 12 px apart, 16 px under the head, as in the brief. */
#brief-intake h1.is-retyping::after{content:"";display:inline-block;width:.06em;height:.9em;margin-left:.06em;vertical-align:-.08em;background:var(--highlight);animation:retype-caret .5s steps(1) infinite}
@keyframes retype-caret{50%{opacity:0}}
::view-transition-group(project-tab-flight),::view-transition-group(brief-heading){animation-duration:.34s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
@media(prefers-reduced-motion:reduce){#brief-intake h1.is-retyping::after{display:none}}
.account-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:var(--space-cards);align-items:start}
.account-page .ui-card{display:grid;gap:var(--space-3);align-content:start;justify-items:start}
.account-page .ui-card>:is(.ui-card-head,ul,form,.account-pref-row,.account-profile,.staff-detail,.staff-role){justify-self:stretch}
.account-page .ui-card>.ui-card-head{margin-bottom:var(--space-1)}
/* An empty part (no list yet, no actions, a closed brief) takes no row and no gap. */
.account-page .ui-card>:is(div,ul):empty{display:none}
.account-delete-dialog h2{margin:0 0 var(--space-4);font-size:var(--text-h3);line-height:1.25}
.account-profile:empty{display:none}
.account-project-list{padding:0;margin:0;list-style:none}
.account-project-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-3) var(--space-4);padding:var(--space-3) 0}
.account-project-row+.account-project-row{border-top:1px solid var(--line)}
.account-project-row:first-child{padding-top:0}
.account-project-row:last-child{padding-bottom:0}
.account-project-row .account-project-text{flex:1 1 10rem}
.account-project-text small{color:var(--muted);font-size:var(--text-small);line-height:1.5}
/* The actions of an order (open the prototype, approve, pay, files): buttons in a row, their notes under them. */
.account-project-row>.account-project-actions{flex:1 1 16rem;display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}
.account-project-actions>:is(p,form){flex:1 1 100%;margin:0}
.account-form{display:grid;gap:var(--space-3);justify-items:start}
.account-form .ui-label{justify-self:stretch}
.account-telegram code{justify-self:stretch;padding:var(--space-2) var(--space-3);border:1px solid var(--line);border-radius:var(--chip-radius);background:var(--paper);overflow-wrap:anywhere;user-select:all}
.account-row-actions{display:flex;flex-wrap:wrap;gap:8px}
/* «Баланс» (user decision 27.11.2026): the sum stands out, the history is a quiet list. */
.account-balance-sum{margin:0;font-size:var(--text-h3);font-weight:600}
.account-balance-history{margin:0;font-size:var(--text-small);color:var(--muted)}
.account-project-text,.account-identity-text{display:grid;gap:var(--space-1);min-width:0}
/* Rename in place (user decision 16.11.2026): double click or Enter / F2 on the name opens a field of the same size. */
.account-project-name{justify-self:start;max-width:100%;margin-inline:-6px;padding:2px var(--space-2);border-radius:var(--chip-radius);cursor:text}
.account-project-name:hover{background:color-mix(in srgb,var(--ink) 8%,transparent)}
.account-project-name:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
/* The rename field is the design-system field (components.css); only its width and weight are its own. */
.account-project-name-input{max-width:32rem;margin:0;font-weight:600}
.account-identity-text{font-size:var(--text-small)}
.account-project-text time,.account-identity-text span{font-size:.875rem}
/* Status of a sent brief: a small violet pill under the update time (user request 17.11.2026). */
.account-project-status{justify-self:start;margin-top:4px;padding:var(--space-1) var(--space-3);border-radius:var(--control-radius);background:var(--selected);color:var(--selection-line);font-size:.8125rem;font-weight:600;line-height:1.4}
/* Cabinet buttons are the design-system buttons (.ui-button, .ui-button.quiet in components.css, user request 27.11.2026);
   «Видалити» turns red on hover, and the confirming one is red. */
.account-page .ui-button.account-delete:is(:hover,:focus-visible),.account-page .ui-button.account-delete-confirm,.account-page .ui-button.account-delete-confirm:is(:hover,:focus-visible){color:var(--danger);border-color:var(--danger)}
.account-delete-dialog{max-width:min(30rem,calc(100vw - 32px))}
.account-delete-dialog h2{overflow-wrap:anywhere}
.account-delete-status:empty{display:none}
dialog.ui-warning-dialog[data-delete-account][data-state=done]{border-color:var(--line)}
[data-delete-account] .account-delete-note{margin-top:var(--space-3);color:var(--ink)}
[data-delete-account] .account-delete-field{display:grid;gap:var(--space-2);margin-top:var(--space-4)}
[data-delete-account] .account-delete-status{margin-top:var(--space-3)}
[data-delete-account] .account-delete-done{display:flex;align-items:flex-start;gap:var(--space-3)}
[data-delete-account] .account-delete-done-icon{flex:none;width:var(--space-5);height:var(--space-5);color:var(--selection-line);margin-top:var(--space-1)}
[data-delete-account] .account-delete-done-icon svg{width:100%;height:100%;display:block}
[data-delete-account] .account-password{position:relative;display:flex;align-items:center}
[data-delete-account] .account-password input{padding-inline-end:calc(var(--action-height) + var(--space-1))}
[data-delete-account] .account-password input::-ms-reveal,[data-delete-account] .account-password input::-ms-clear{display:none}
[data-delete-account] .account-password-toggle{position:absolute;inset-block:0;inset-inline-end:0;width:var(--action-height);min-width:var(--action-height);min-height:var(--action-height);padding:0;display:grid;place-items:center;border:0;border-radius:var(--field-radius);background:transparent;color:var(--muted);cursor:pointer;transition:color var(--ease)}
[data-delete-account] .account-password-toggle svg{width:var(--space-5);height:var(--space-5);display:block}
:is(:root,:root[data-theme=light]) [data-delete-account] .account-password-toggle:is(:hover,:active,:focus-visible,[aria-pressed=true]){border-color:transparent;background:transparent;box-shadow:none;color:var(--selection-line)}
[data-delete-account] .account-password:has(.account-password-toggle:hover) input{border-color:var(--selection-line)}
[data-delete-account] .account-password-toggle:focus-visible{outline:2px solid var(--focus);outline-offset:-3px}
@media(prefers-reduced-motion:reduce){[data-delete-account] .account-password-toggle{transition:none}}
.account-page button:disabled{opacity:.6;cursor:wait}
.account-page :is(button,a):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.account-page .language-option:focus-visible{outline-offset:-3px}
.account-projects>.account-project-actions:not(:empty){margin-top:var(--space-1)}
.account-page .cloud-google,.account-page .cloud-google:hover:not(:disabled){background:var(--white);color:var(--google-ink);border-color:var(--google-line);display:inline-flex;align-items:center;justify-content:center;gap:var(--space-3);padding-inline:12px;font:500 var(--text-small)/var(--text-lead) 'Google Sans',system-ui,sans-serif}
.account-page .cloud-google img{width:20px;height:20px;object-fit:contain;flex:none}
.account-sidebar{display:grid;gap:var(--space-cards);min-width:0}
.account-profile{display:grid;gap:12px;justify-items:start}
.account-profile-actions:has(>button+button){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2);justify-self:stretch}
.account-profile-actions:has(>button+button)>button{width:100%;min-width:0}
.account-identity{display:flex;gap:12px;align-items:center;min-width:0;max-width:100%}
.account-identity .account-avatar{flex:none}
.account-pref-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:52px;font-weight:600;font-size:var(--text-small)}
.account-pref-row+.account-pref-row{border-top:1px solid var(--line);padding-top:var(--space-3)}
.account-pref-row>button{flex:none}
@media(max-width:720px){.account-columns{grid-template-columns:minmax(0,1fr)}}
.account-page .account-file-actions{margin-top:var(--space-1)}
@media(max-width:900px){.account-page{width:calc(100% - 56px)}}
@media(max-width:759px){.account-page{width:calc(100% - 40px)}}
@media(max-width:650px){.account-page{width:calc(100% - 24px)}}
/* Own photo and name (user request 18.11.2026): a 56 px avatar, larger than the 44 px one in the header; on hover or
   focus a pencil shows over it and a click picks a new picture. The name is edited in place like a project name. */
.account-avatar-edit{position:relative;flex:none;display:grid;place-items:center;width:56px;height:56px;padding:0;border:0;border-radius:50%;background:none;color:inherit;cursor:pointer}
.account-avatar-edit .account-avatar{width:56px;height:56px;font-size:var(--text-body);border:1px solid var(--ink)}
.account-avatar-pencil{position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--control-surface) 62%,transparent);color:var(--white);opacity:0;transition:opacity var(--ease)}
.account-avatar-pencil svg{width:22px;height:22px}
.account-avatar-edit:is(:hover,:focus-visible) .account-avatar-pencil{opacity:1}
.account-avatar-edit:is(:hover,:focus-visible) .account-avatar{border-color:var(--highlight)}
.account-page .account-avatar-edit:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.account-page .account-avatar-edit:disabled{opacity:1;cursor:wait}
.account-avatar-edit:disabled .account-avatar-pencil{opacity:1}
.account-identity{gap:var(--space-4)}
.account-profile-name{justify-self:start;max-width:100%;margin-inline:-6px;padding:2px var(--space-2);border-radius:var(--chip-radius);cursor:text;font-size:var(--text-body)}
.account-profile-name:hover{background:color-mix(in srgb,var(--ink) 8%,transparent)}
.account-profile-name:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.account-profile-name-input{max-width:20rem}
@media(prefers-reduced-motion:reduce){.account-avatar-pencil{transition:none}}
/* «Мої знижки» (user request 24.11.2026): the offers taken on the storefront, above the projects. */
.account-main{display:grid;gap:var(--space-cards);min-width:0}
.account-offer-list{display:grid;gap:var(--space-4);margin:0;padding:0;list-style:none}
/* The offer as a coupon (user choice 25.11.2026, variant «Купон»): a violet stub with the gift and the figure, a dashed fold,
   and the centred body. The notches are cut out of the card with a mask, so the outline stops there too (no contour round them).
   The card's own width decides the layout: under 440px the stub goes on top and the notches move to the sides of the fold. */
.account-offer-list{container-type:inline-size}
.account-offer{--stub:128px;--notch:11px;position:relative;display:grid;grid-template-columns:var(--stub) minmax(0,1fr);border:1px solid var(--line);border-radius:var(--card-radius);background:var(--surface);
  -webkit-mask:radial-gradient(circle at var(--stub) 0,transparent calc(var(--notch) - .3px),var(--black) calc(var(--notch) + .3px)),radial-gradient(circle at var(--stub) 100%,transparent calc(var(--notch) - .3px),var(--black) calc(var(--notch) + .3px));-webkit-mask-composite:source-in;mask:radial-gradient(circle at var(--stub) 0,transparent calc(var(--notch) - .3px),var(--black) calc(var(--notch) + .3px)),radial-gradient(circle at var(--stub) 100%,transparent calc(var(--notch) - .3px),var(--black) calc(var(--notch) + .3px));mask-composite:intersect}
/* The notches keep the outline (user request 25.11.2026): a ring as wide as the card border round each cut, so the line runs
   down the semicircle to the dashed fold. Drawn over the border box with the same centres as the mask, so both match. */
.account-offer::before{content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at var(--stub) 0,transparent calc(var(--notch) - .4px),var(--line) var(--notch),var(--line) calc(var(--notch) + 1px),transparent calc(var(--notch) + 1.5px)),radial-gradient(circle at var(--stub) 100%,transparent calc(var(--notch) - .4px),var(--line) var(--notch),var(--line) calc(var(--notch) + 1px),transparent calc(var(--notch) + 1.5px))}
.account-offer[data-state=expired]{opacity:.62}
.account-offer-stub{display:grid;place-items:center;align-content:center;gap:8px;padding:20px 12px;border-radius:calc(var(--card-radius) - 1px) 0 0 calc(var(--card-radius) - 1px);background:linear-gradient(160deg,var(--highlight-deep),var(--highlight) 70%,var(--highlight-soft));color:var(--highlight-ink)}
.account-offer[data-state=expired] .account-offer-stub{filter:grayscale(1)}
.account-offer-stub svg{width:52px;height:52px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.account-offer-stub b{font:700 40px/1 var(--font-display);letter-spacing:-.03em;white-space:nowrap}
.account-offer-body{display:grid;justify-items:center;align-content:center;gap:var(--space-3);min-width:0;padding:var(--space-5) 24px;border-left:1px dashed color-mix(in srgb,var(--line) 75%,transparent);text-align:center}
.account-offer-badge{display:inline-flex;align-items:center;padding:4px 12px;border-radius:var(--control-radius);background:var(--selected);color:var(--selection-line);font-size:.8125rem;font-weight:600;line-height:1.4}
.account-offer-name{margin:0;color:var(--selection-line);font:700 clamp(19px,2vw,22px)/1.25 var(--font-display);letter-spacing:-.01em}
.account-offer-terms,.account-offer-when{margin:0;max-width:34ch;font-size:var(--text-small);font-weight:400;line-height:1.55}
.account-offer-when{color:var(--muted)}
.account-offer-order{display:inline-flex;align-items:center;gap:var(--action-gap);min-height:var(--action-height);margin-top:4px;padding:var(--action-pad);border-radius:var(--control-radius);font:600 var(--action-font-size)/1.25 var(--font-text);text-decoration:none;transition:filter var(--ease),transform var(--ease)}
.account-offer-order svg{width:var(--action-icon);height:var(--action-icon);fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform var(--ease)}
.account-offer-order:is(:hover,:focus-visible){filter:brightness(1.08);transform:translateY(-1px)}
.account-offer-order:is(:hover,:focus-visible) svg{transform:translateX(3px)}
.account-offer-order:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
@container (max-width:440px){
  .account-offer{--fold:92px;grid-template-columns:1fr;
    -webkit-mask:radial-gradient(circle at 0 var(--fold),transparent calc(var(--notch) - .3px),var(--black) calc(var(--notch) + .3px)),radial-gradient(circle at 100% var(--fold),transparent calc(var(--notch) - .3px),var(--black) calc(var(--notch) + .3px));-webkit-mask-composite:source-in;mask:radial-gradient(circle at 0 var(--fold),transparent calc(var(--notch) - .3px),var(--black) calc(var(--notch) + .3px)),radial-gradient(circle at 100% var(--fold),transparent calc(var(--notch) - .3px),var(--black) calc(var(--notch) + .3px));mask-composite:intersect}
  .account-offer-stub{grid-auto-flow:column;justify-content:center;gap:var(--space-4);height:var(--fold);box-sizing:border-box;padding:0 16px;border-radius:calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0}
  .account-offer::before{background:radial-gradient(circle at 0 var(--fold),transparent calc(var(--notch) - .4px),var(--line) var(--notch),var(--line) calc(var(--notch) + 1px),transparent calc(var(--notch) + 1.5px)),radial-gradient(circle at 100% var(--fold),transparent calc(var(--notch) - .4px),var(--line) var(--notch),var(--line) calc(var(--notch) + 1px),transparent calc(var(--notch) + 1.5px))}
  .account-offer-body{border-left:0;border-top:1px dashed color-mix(in srgb,var(--line) 75%,transparent);padding:20px var(--space-panel) var(--space-5)}
}
@media (prefers-reduced-motion:reduce){.account-offer-order,.account-offer-order svg{transition:none}}
/* Staff cards (moved from intake.css, user request 27.11.2026): «Вхідні брифи» on the left, «Сповіщення про нові повідомлення»
   and «Менеджери сайту» on the right, in the same two columns as the client cards below. */
.staff-area{display:grid;gap:var(--space-cards);min-width:0;margin:0 0 var(--space-cards)}
.staff-area:empty{display:none}
.staff-split{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:var(--space-cards);align-items:start}
.staff-side{display:grid;gap:var(--space-cards);min-width:0}
.staff-list{list-style:none;padding:0;margin:0}
.staff-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--space-1) var(--space-4);padding:var(--space-3) 0}
.staff-list li+li,.staff-role-form+.staff-role,.staff-role+.staff-role{border-top:1px solid var(--line)}
.staff-list li:first-child{padding-top:0}
.staff-list li:last-child{padding-bottom:0}
.staff-list li>.account-project-text,.staff-list li>small{grid-column:1}
.staff-list li>small{justify-self:start;margin:0;white-space:nowrap}
.staff-list li>button{grid-column:2;grid-row:1 / span 2}
.staff-detail:not(:empty){display:grid;gap:var(--space-3);justify-items:start;max-height:50vh;overflow:auto;padding-top:var(--space-4);border-top:1px solid var(--line)}
.staff-detail h3,.staff-status h3{margin:0;font-size:var(--text-body);line-height:1.3}
.staff-detail p{margin:0}
.staff-detail pre{justify-self:stretch;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
.staff-detail img{display:block;max-height:66px;max-width:130px;object-fit:contain}
.staff-status{justify-self:stretch;display:grid;gap:var(--space-3);justify-items:start;padding:var(--space-4) 0;border-block:1px solid var(--line)}
.staff-status .ui-label{justify-self:stretch}
.staff-role-form{display:grid;gap:var(--space-3);justify-items:start}
.staff-role-form .ui-label{justify-self:stretch}
.staff-role{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-3);padding-top:var(--space-3);overflow-wrap:anywhere}
.staff-role-id{font-size:var(--text-small)}
@media(max-width:720px){.staff-split{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.staff-list li{grid-template-columns:minmax(0,1fr)}.staff-list li>button{grid-column:1;grid-row:auto}}

.account-public-form [hidden],.account-public-form[hidden]{display:none}
.account-public-profile,.account-public-form{display:grid;gap:var(--space-2);min-width:0;justify-self:stretch}
.account-public-profile{border-top:1px solid var(--line);padding-top:var(--space-3)}
.account-public-profile :is(p,h3){margin:0}
.account-public-form .ui-label{display:grid;gap:var(--space-1)}
.account-public-form .ui-label:has([type=checkbox]){display:flex;align-items:center}
.account-public-form :is(input,select,textarea){max-width:100%}

.account-row-actions button[hidden],.account-invitations:not(:has(.account-private-preview:not([hidden]))){display:none}
.account-invitations,.account-private-preview{justify-self:stretch;min-width:0}
.account-private-preview:not([hidden]){display:grid;gap:var(--space-3);overflow-wrap:anywhere}

.account-cabinet[hidden],.account-cabinet-panel[hidden],.account-guest-settings[hidden],.account-guest-hero[hidden],.account-completed[hidden]{display:none}
.account-cabinet-panel:not([hidden]){display:grid;gap:var(--space-cards);min-width:0}
.account-cabinet-hero{min-width:0}
.account-cabinet-publication:empty,.account-cabinet-posts .public-feed[hidden]{display:none}
.account-profile-name-row{align-self:stretch;display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);width:100%;min-width:0;padding-top:var(--space-2)}
.account-profile-name-row .public-identity-name{display:grid;gap:var(--space-1);min-width:0}
.account-profile-name-row h1{font-size:var(--text-lead)}
.account-profile-projects[aria-pressed=true]{border-color:var(--highlight);color:var(--subhead)}
.account-profile-feed .public-avatar-frame .account-public-media-action{background:transparent;border-color:transparent}
.account-profile-feed .public-avatar-frame .account-public-media-action::before{
  content:"";position:absolute;inset:var(--space-1);border-radius:50%;background:var(--highlight);
}
.account-profile-feed .public-avatar-frame .account-public-media-action svg{position:relative;color:var(--highlight-ink)}
.account-settings-dialog.ui-warning-dialog{width:min(calc(8 * var(--space-9)),calc(100vw - var(--space-4)));max-height:calc(100dvh - var(--space-4));overflow:auto;border-color:var(--line)}
.account-settings-dialog .ui-warning-dialog-head{position:sticky;top:calc(-1 * var(--space-5));z-index:1}
.account-settings-dialog .account-public-profile{border-top:0;padding-top:0}
.account-profile-photo-setting{display:flex;align-items:center;gap:var(--space-3)}
.account-profile-photo-setting .account-avatar{flex:none;width:var(--space-7);height:var(--space-7)}
.account-cabinet-workspace{position:relative;min-height:calc(4 * var(--space-9))}
.account-cabinet-workspace:empty{display:none}
.account-cabinet-workspace[data-workspace-empty]{min-height:0}
.account-cabinet-workspace .site-container{width:100%;max-width:none;padding-inline:0}
.account-cabinet-workspace #brief-intake{padding-top:var(--space-5)}
.account-workspace-skeleton{
  position:absolute;inset:var(--space-5) 0 auto;z-index:1;
  display:grid;gap:var(--space-5);pointer-events:none;
}
.account-workspace-skel-head{display:flex;align-items:center;gap:var(--space-4)}
.account-workspace-skel-icon{width:var(--space-8);height:var(--space-8);border-radius:var(--card-radius);flex:none}
.account-workspace-skel-lines{display:grid;gap:var(--space-2)}
.account-cabinet-workspace:is([data-workspace-ready=true],[data-workspace-empty]) .account-workspace-skeleton{display:none}
.account-cabinet-workspace>*:not(.account-workspace-skeleton){transition:opacity var(--ease)}
.account-cabinet-workspace:not([data-workspace-ready=true])>*:not(.account-workspace-skeleton){opacity:0}
.account-cabinet-workspace[data-workspace-ready=true][data-workspace-switching=true]>*:not(.account-workspace-skeleton){opacity:.42}
.account-cabinet .account-profile-feed{margin-bottom:var(--space-4);gap:0}
.account-projects>summary,.account-completed>summary{cursor:pointer}
.account-projects:not([open])>:not(summary),.account-completed:not([open])>:not(summary){display:none}

.account-cabinet-catalogue:not([open])>:not(summary){display:none}
.account-cabinet-catalogue>summary{cursor:pointer}
.account-preloader[hidden]{display:none}
.account-preloader{display:grid;gap:var(--space-5)}
@keyframes account-skel-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.account-skel{
  border-radius:var(--chip-radius);
  background:linear-gradient(90deg,color-mix(in srgb,var(--surface) 85%,transparent) 25%,color-mix(in srgb,var(--highlight) 18%,var(--surface)) 50%,color-mix(in srgb,var(--surface) 85%,transparent) 75%);
  background-size:200% 100%;
  animation:account-skel-shimmer 1.6s ease-in-out infinite;
}
.account-preloader-cover{
  position:relative;min-height:clamp(var(--space-8),18vw,calc(4 * var(--space-7)));
  border:var(--action-border) solid var(--line);border-radius:var(--card-radius);
  overflow:hidden;padding:var(--space-5) var(--space-5) 0;
  display:flex;flex-direction:column;justify-content:space-between;gap:var(--space-3);
  background:color-mix(in srgb,var(--surface) 75%,transparent);
}
.account-preloader-top-tabs{position:absolute;inset-block-start:0;inset-inline-end:var(--space-4);display:flex;gap:var(--space-2)}
.account-preloader-top-tab{
  width:var(--action-height);height:calc(var(--action-height) + var(--space-1));
  border:var(--action-border) solid var(--line);border-top:0;
  border-radius:0 0 var(--control-radius) var(--control-radius);
}
.account-preloader-id{display:grid;gap:var(--space-2);align-content:start}
.account-preloader-avatar{
  width:calc(var(--space-8) + var(--space-4) + var(--space-1));
  height:calc(var(--space-8) + var(--space-4) + var(--space-1));
  border-radius:50%;
}
.account-preloader-line{height:var(--space-4);width:calc(var(--space-9) + var(--space-8))}
.account-preloader-line.is-short{height:var(--space-3);width:calc(var(--space-9) + var(--space-4));opacity:.75}
.account-preloader-proj-tabs{display:flex;gap:var(--space-2);margin-top:auto}
.account-preloader-proj-tab{
  height:calc(var(--space-6) + var(--space-2));width:calc(var(--space-9) + var(--space-7));
  border-radius:var(--field-radius) var(--field-radius) 0 0;
}
.account-preloader-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4)}
.account-preloader-card{
  min-height:calc(var(--space-9) + var(--space-5));border:var(--action-border) solid var(--line);
  border-radius:var(--card-radius);
}
@keyframes account-cabinet-in{from{opacity:0;transform:translateY(var(--space-1))}to{opacity:1;transform:none}}
.account-cabinet[data-ready=true]{animation:account-cabinet-in var(--ease) both}
@media(max-width:720px){.account-preloader-cards{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.account-skel,.account-cabinet[data-ready=true]{animation:none}}
.account-catalogue-group{display:grid;gap:var(--space-3);width:100%}
.account-catalogue-group h3{margin:0;font-size:var(--text-body)}
.account-catalogue-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,calc(2 * var(--space-9))),1fr));gap:var(--space-3)}
.account-catalogue-item{color:inherit;text-decoration:none}
.account-catalogue-item:hover{text-decoration:underline;border-color:var(--selection-line)}
.account-catalogue-item svg{width:var(--action-icon);height:var(--action-icon)}
.account-catalogue-item p{margin:0}
