.portfolio-dashboard{max-width:none}
.portfolio-dashboard .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.portfolio-dashboard>.workspace-finance[hidden],.portfolio-dashboard>.dash-section[hidden]{display:none!important}
.portfolio-dashboard .workspace-page__heading{position:relative;padding-right:190px;margin:5px 0 15px}
.view--workspace .portfolio-dashboard .workspace-page__heading>span{display:block;color:#807d70;font-size:10px;letter-spacing:1.7px}
.portfolio-dashboard .workspace-page__heading h1{font-size:clamp(34px,4vw,52px);letter-spacing:-2.5px;margin:4px 0}
.portfolio-dashboard .workspace-page__heading p{max-width:none;color:#797970}
.portfolio-dashboard .creator-video-upload__toggle{position:absolute;right:0;top:28px;margin:0;background:#cafa59;color:#152019;border:0;border-radius:8px;padding:13px 16px;font-size:12px;font-weight:800;cursor:pointer}
.portfolio-dashboard .creator-video-upload{margin:0 0 16px}
.portfolio-dashboard__stats{display:flex;align-items:stretch;gap:8px;margin:0 0 14px}
.portfolio-dashboard__stats>div{display:flex;align-items:baseline;gap:6px;min-width:108px;padding:12px 14px;background:#fff;border:1px solid #dddeda;border-radius:9px}
.portfolio-dashboard__stats strong{font-size:22px;line-height:1;color:#171c16}
.portfolio-dashboard__stats small{font-size:10px;color:#7c8177}
.portfolio-dashboard__stats>a{margin-left:auto;display:grid;place-items:center;min-width:110px;padding:0 14px;border:1px solid #d9dcd5;border-radius:9px;background:#fff;color:#171c16;text-decoration:none;font-size:11px;font-weight:800}
.portfolio-dashboard__columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,278px);gap:14px;align-items:start}
.portfolio-dashboard__works,.portfolio-dashboard__side-card{min-width:0;border:1px solid #dddeda;border-radius:11px;background:#fff;box-shadow:0 4px 18px #25331b08}
.portfolio-dashboard__works{padding:18px 19px}
.portfolio-dashboard__works-head,.portfolio-dashboard__side-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
.portfolio-dashboard__works-head small,.portfolio-dashboard__side-head small{font-size:9px;letter-spacing:1.4px;font-weight:800;color:#806e51}
.portfolio-dashboard__works-head h2,.portfolio-dashboard__side-head h2{margin:2px 0 0;color:#111914;font-size:23px;line-height:1.1;letter-spacing:-.8px}
.portfolio-dashboard__tools{display:flex;gap:7px}
.portfolio-dashboard__tools input,.portfolio-dashboard__tools select{width:155px;height:31px;padding:5px 10px;border:1px solid #d6dad0;border-radius:6px;background:#faf9f5;color:#444c42;font-size:11px}
.portfolio-dashboard__tools select{width:148px;padding-right:26px;background:#fff}
.portfolio-dashboard__tabs{display:flex;gap:5px;flex-wrap:wrap;margin:15px 0 5px}
.portfolio-dashboard__tabs button{border:1px solid #dedfd6;border-radius:5px;background:#fff;color:#4c5149;padding:7px 9px;font-size:10px;cursor:pointer}
.portfolio-dashboard__tabs button.is-active{background:#171b18;border-color:#171b18;color:#fff}
.portfolio-dashboard__group{font-size:11px;color:#454a42;border-bottom:1px solid #e2e4dc;margin:18px 0 0;padding:0 0 8px;font-weight:800}
.portfolio-dashboard__row{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #e6e7e1}
.portfolio-dashboard__row:last-child{border-bottom:0}
.portfolio-dashboard__row.is-hidden .portfolio-dashboard__thumb,.portfolio-dashboard__row.is-hidden .portfolio-dashboard__row-info{opacity:.55}
.portfolio-dashboard__thumb{position:relative;display:grid;place-items:center;width:120px;aspect-ratio:16/9;overflow:hidden;border:0;border-radius:6px;background:#202823;color:#fff;cursor:pointer}
.portfolio-dashboard__thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.portfolio-dashboard__play{position:relative;display:grid;place-items:center;width:28px;height:28px;border:1px solid #fff9;border-radius:50%;background:#0005;font-size:11px}
.portfolio-dashboard__duration{position:absolute;right:4px;bottom:4px;padding:2px 3px;border-radius:2px;background:#000a;color:#fff;font-size:9px}
.portfolio-dashboard__row-info{min-width:0}
.portfolio-dashboard__title-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.portfolio-dashboard__title-line h4{margin:0;font-size:13px;color:#171d16;overflow-wrap:anywhere}
.portfolio-dashboard__state{padding:3px 6px;border:1px solid #cfe2a4;border-radius:99px;background:#f5f9eb;color:#65843c;font-size:9px;white-space:nowrap}
.portfolio-dashboard__row-info p{font-size:10px;color:#555e51;margin:4px 0;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.portfolio-dashboard__meta{display:block;color:#909387;font-size:9px;line-height:1.4}
.portfolio-dashboard__row-actions{display:flex;align-items:center;gap:4px;margin-left:-8px}
.portfolio-dashboard__row-actions>button,.portfolio-dashboard__menu>summary{display:grid;place-items:center;box-sizing:border-box;width:26px;height:26px;padding:0;border:1px solid #dfe1d9;border-radius:50%;background:#fff;color:#767d70;font-size:13px;cursor:pointer}
.portfolio-dashboard__row-actions>button:hover,.portfolio-dashboard__menu>summary:hover{border-color:#acd461;color:#334b1e}
.portfolio-dashboard__row-actions>.portfolio-dashboard__featured{color:#a2a89a}
.portfolio-dashboard__featured svg{display:block;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.portfolio-dashboard__row-actions>.portfolio-dashboard__featured.is-featured{color:#8db631;background:#f4fbdc;border-color:#b1db3c}
.portfolio-dashboard__featured.is-featured svg{fill:currentColor}
.portfolio-dashboard__row-actions>.portfolio-dashboard__switch{width:28px;height:16px;border-radius:99px;background:#dce0d6;position:relative}
.portfolio-dashboard__switch:before{content:'';position:absolute;width:10px;height:10px;left:2px;top:2px;border-radius:50%;background:white;box-shadow:0 1px 2px #0002;transition:transform .16s}
.portfolio-dashboard__switch.is-on{background:#a9e432}
.portfolio-dashboard__switch.is-on:before{transform:translateX(12px)}
.portfolio-dashboard__menu{position:relative}
.portfolio-dashboard__menu>summary{list-style:none;font-weight:bold}
.portfolio-dashboard__menu>summary::-webkit-details-marker{display:none}
.portfolio-dashboard__menu>div{position:absolute;right:0;top:32px;z-index:10;width:190px;padding:12px;border:1px solid #d9dbd4;border-radius:8px;background:#fff;box-shadow:0 8px 24px #0002}
.portfolio-dashboard__menu>.portfolio-dashboard__menu-items{width:205px;padding:5px}
.portfolio-dashboard__menu-items>button,.portfolio-dashboard__menu-items>a{display:block;width:100%;padding:9px 10px;border:0;border-radius:5px;background:transparent;text-align:left;color:#263429;text-decoration:none;font-size:11px;cursor:pointer}
.portfolio-dashboard__menu-items>button:hover,.portfolio-dashboard__menu-items>a:hover{background:#f1f8e4}
.portfolio-dashboard__menu-items>.is-danger{color:#a44037}
.portfolio-dashboard__section-menu>summary svg{display:block;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.portfolio-dashboard__menu label{display:grid;gap:5px;color:#465240;font-size:11px}
.portfolio-dashboard__menu select{width:100%;padding:7px;border:1px solid #cdd8bc;border-radius:5px;background:#fff}
.portfolio-dashboard__dialog{width:min(480px,calc(100vw - 32px));border:1px solid #d6dfc8;border-radius:14px;padding:20px;background:#fff;color:#1a271d;box-shadow:0 20px 60px #16231355}
.portfolio-dashboard__dialog::backdrop{background:#10211699}
.portfolio-dashboard__dialog h2{margin:0 0 16px;font-size:20px}
.portfolio-dashboard__dialog form>label{display:grid;gap:6px;margin:0 0 13px;font-size:12px;font-weight:700}
.portfolio-dashboard__dialog input,.portfolio-dashboard__dialog textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #ccd9bf;border-radius:7px;font:inherit;font-weight:400}
.portfolio-dashboard__dialog-buttons{display:flex;justify-content:flex-end;gap:8px}
.portfolio-dashboard__dialog-buttons button{padding:9px 15px;border:1px solid #ced8c4;border-radius:7px;background:#fff;cursor:pointer}
.portfolio-dashboard__dialog-buttons button:last-child{background:#cafa59;border-color:#cafa59;font-weight:800}
.portfolio-dashboard__error{color:#ad4339;font-size:11px}
.portfolio-dashboard__side{display:grid;gap:9px}
.portfolio-dashboard__side-card{padding:14px}
.portfolio-dashboard__side-head{padding-bottom:10px;border-bottom:1px solid #e3e5df}
.portfolio-dashboard__side-head h2{font-size:17px}
.portfolio-dashboard__side-head>a{display:grid;place-items:center;width:25px;height:25px;border:1px solid #e1e3dd;border-radius:50%;color:#53624c;text-decoration:none}
.portfolio-dashboard__identity{display:flex;align-items:center;gap:9px;margin:10px 0}
.portfolio-dashboard__identity>[data-avatar]{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:50%;background:#e7f2d1;overflow:hidden}
.portfolio-dashboard__identity img{width:100%;height:100%;object-fit:cover}
.portfolio-dashboard__identity b{display:block;font-size:12px;overflow-wrap:anywhere}
.portfolio-dashboard__identity small{display:block;font-size:9px;color:#82897c;line-height:1.45;max-height:30px;overflow:hidden}
.portfolio-dashboard__profile-action{display:block;text-align:right;text-decoration:none;color:#181f19;font-size:10px;font-weight:700}
.portfolio-dashboard__public-row{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #e7e8e3;font-size:10px}
.portfolio-dashboard__public-row:last-child{border-bottom:0}
.portfolio-dashboard__public-row img{width:28px;height:22px;object-fit:cover;border-radius:3px;background:#17221a}
.portfolio-dashboard__public-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portfolio-dashboard__empty-small{color:#80877d;font-size:11px}
.portfolio-dashboard__completion .portfolio-dashboard__side-head{border:0}
.portfolio-dashboard__completion .portfolio-dashboard__side-head>strong{color:#518523;font-size:15px}
.portfolio-dashboard__progress{height:4px;border-radius:99px;background:#e2e7da;overflow:hidden}
.portfolio-dashboard__progress span{display:block;height:100%;background:#b6ea49}
.portfolio-dashboard__completion ul{list-style:none;margin:8px 0 0;padding:0;font-size:10px;color:#858a80;line-height:1.7}
.portfolio-dashboard__completion li.is-complete{color:#5e8d3b}
.portfolio-dashboard__empty{padding:30px 10px;color:#6e7869;font-size:12px;text-align:center}
@media(max-width:960px){.portfolio-dashboard__columns{grid-template-columns:minmax(0,1fr) 230px}.portfolio-dashboard__row{grid-template-columns:90px minmax(0,1fr)}.portfolio-dashboard__thumb{width:90px}.portfolio-dashboard__row-actions{grid-column:2;justify-content:flex-end}}
@media(max-width:900px){.portfolio-dashboard__columns{grid-template-columns:1fr}.portfolio-dashboard__row{grid-template-columns:120px minmax(0,1fr) auto}.portfolio-dashboard__thumb{width:120px}.portfolio-dashboard__row-actions{grid-column:auto}.portfolio-dashboard__side{grid-template-columns:repeat(2,minmax(0,1fr))}.portfolio-dashboard__completion{grid-column:1/-1}.portfolio-dashboard .workspace-page__heading{padding-right:0;padding-bottom:48px}.portfolio-dashboard .creator-video-upload__toggle{top:auto;bottom:0;left:0;right:auto}.portfolio-dashboard__stats{flex-wrap:wrap}.portfolio-dashboard__stats>div{flex:1;min-width:80px}.portfolio-dashboard__stats>a{min-height:44px}}
@media(max-width:480px){.portfolio-dashboard__works{padding:14px}.portfolio-dashboard__works-head{display:block}.portfolio-dashboard__tools{margin-top:12px}.portfolio-dashboard__tools label{flex:1}.portfolio-dashboard__tools input,.portfolio-dashboard__tools select{width:100%}.portfolio-dashboard__side{grid-template-columns:1fr}.portfolio-dashboard__completion{grid-column:auto}.portfolio-dashboard__row{grid-template-columns:90px minmax(0,1fr);gap:9px}.portfolio-dashboard__thumb{width:90px}.portfolio-dashboard__row-actions{grid-column:2}.portfolio-dashboard__row-info p{display:none}}

/* Кадр превью видео */
.portfolio-frame-dialog{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:20px;background:rgba(8,13,10,.72)}
.portfolio-frame-dialog__card{width:min(720px,100%);max-height:90vh;overflow:auto;background:#fff;color:#1b281e;border:1px solid #d5dfcf;border-radius:12px;padding:18px;display:grid;gap:12px}
.portfolio-frame-dialog__card h3{margin:0;font-size:20px}
.portfolio-frame-dialog__card p{margin:0;color:#66745f;font-size:12px}
.portfolio-frame-dialog__card video{width:100%;max-height:360px;background:#000;border-radius:8px}
.portfolio-frame-dialog__range{display:flex;align-items:center;gap:10px}
.portfolio-frame-dialog__range input{flex:1}
.portfolio-frame-dialog__actions{display:flex;justify-content:flex-end;gap:8px}
.portfolio-frame-dialog__actions button{padding:9px 14px;border:1px solid #cbd9bb;border-radius:6px;background:#fff;color:#1b281e;font-weight:700;cursor:pointer}
.portfolio-frame-dialog__actions .portfolio-frame-dialog__save{background:#cefa66;border-color:#cefa66}
html[data-theme="dark"] .portfolio-frame-dialog__card{background:#101a14;color:#e8efe4;border-color:rgba(120,150,120,.22)}
html[data-theme="dark"] .portfolio-frame-dialog__card p{color:#a6b5a8}
html[data-theme="dark"] .portfolio-frame-dialog__actions button{background:rgba(20,29,23,.78);border-color:rgba(120,150,120,.32);color:#e8efe4}
html[data-theme="dark"] .portfolio-frame-dialog__actions .portfolio-frame-dialog__save{background:#d5ff6b;border-color:#d5ff6b;color:#142017}


.portfolio-dashboard__row-actions>.portfolio-dashboard__frame-btn{width:auto;min-width:0;padding:0 10px;font-size:10px;font-weight:700;letter-spacing:0}
html[data-theme="dark"] .portfolio-dashboard__row-actions>.portfolio-dashboard__frame-btn{border-color:rgba(120,150,120,.32);color:#d5ff6b}


/* Кнопки действий: контрастные, «Кадр» — прямоугольная */
.portfolio-dashboard__row-actions>.portfolio-dashboard__frame-btn{min-width:54px;height:26px;padding:0 10px;border-radius:7px!important;background:#d5ff6b;border-color:#d5ff6b;color:#142017;font-size:10px;font-weight:800;letter-spacing:0}
.portfolio-dashboard__row-actions>.portfolio-dashboard__frame-btn:hover{background:#e6ffa1;border-color:#e6ffa1;color:#142017}
html[data-theme="dark"] .portfolio-dashboard__row-actions>button,
html[data-theme="dark"] .portfolio-dashboard__menu>summary{background:rgba(28,42,33,.95);border-color:rgba(120,150,120,.32);color:#d5ff6b}
html[data-theme="dark"] .portfolio-dashboard__row-actions>button:hover,
html[data-theme="dark"] .portfolio-dashboard__menu>summary:hover{background:rgba(40,60,46,.98);border-color:#d5ff6b;color:#e8efe4}
html[data-theme="dark"] .portfolio-dashboard__row-actions>.portfolio-dashboard__featured.is-featured{background:#d5ff6b;border-color:#d5ff6b;color:#142017}
html[data-theme="dark"] .portfolio-dashboard__row-actions>.portfolio-dashboard__switch{background:rgba(70,90,75,.9)}
html[data-theme="dark"] .portfolio-dashboard__row-actions>.portfolio-dashboard__switch.is-on{background:#a9e432}


html[data-theme="dark"] .portfolio-dashboard__row-actions>.portfolio-dashboard__featured.is-featured svg{fill:#142017!important;stroke:#142017!important}
html[data-theme="dark"] .portfolio-dashboard__row-actions>.portfolio-dashboard__featured.is-featured{color:#142017!important}
html[data-theme="dark"] .portfolio-dashboard__row-actions>.portfolio-dashboard__switch.is-on{background:#6e8f55!important}


.portfolio-frame-dialog__actions .portfolio-frame-dialog__save,
html[data-theme="dark"] .portfolio-frame-dialog__actions .portfolio-frame-dialog__save{color:#142017!important;font-weight:800}

@media(max-width:480px){.portfolio-dashboard__tools label{min-width:0}.portfolio-dashboard__tools input,.portfolio-dashboard__tools select{box-sizing:border-box}}

