/**/
.gg-fe{box-sizing:border-box;width:min(980px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:22px;border:1px solid var(--gg-ld-line-2,#555);border-radius:12px;background:var(--gg-ld-surface-1,#171717);color:var(--gg-ld-text,#f5f5f5);font:14px/1.5 system-ui,sans-serif;overflow:auto;color-scheme:dark light}
.gg-fe::backdrop{background:#000b}.gg-fe *{box-sizing:border-box}.gg-fe h2{font-size:22px;margin:0 0 10px}.gg-fe h3{font-size:16px}.gg-fe p{margin:8px 0 14px}.gg-fe button,.gg-fe select,.gg-fe input{font:inherit}.gg-fe button,.gg-fe select{border:1px solid var(--gg-ld-line-2,#777);border-radius:6px;padding:9px 12px;min-height:44px;color:inherit;background:transparent;cursor:pointer}.gg-fe option{color:CanvasText;background:Canvas}.gg-fe button:disabled{opacity:.5;cursor:default}.gg-fe :focus-visible{outline:3px solid #e69b28;outline-offset:3px}.gg-fe .fe-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}.gg-fe .fe-crop{display:block;width:100%;max-width:360px;height:auto;aspect-ratio:3/4;border:2px solid #e69b28;background:#242424;touch-action:none;cursor:move;margin:0 auto}.gg-fe .fe-drop{padding:14px;border:1px dashed var(--gg-ld-line-2,#888);margin:14px 0}.gg-fe .fe-file{max-width:100%;width:100%;margin:8px 0}.gg-fe fieldset{padding:0;border:0;min-width:0}.gg-fe legend{font-weight:700}.gg-fe label{display:block;margin-bottom:10px}.gg-fe input[type=range]{display:block;width:100%;height:30px;accent-color:#dc8d23}.gg-fe .fe-buttons{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 14px}.gg-fe .fe-previews{display:flex;align-items:start;flex-wrap:wrap;gap:12px}.gg-fe figure{margin:0;max-width:100%}.gg-fe figcaption{font-size:12px}.gg-fe .fe-preview{background:#242424;display:block;width:82px;height:110px;object-fit:cover;object-position:center 18%;border-radius:5px}.gg-fe .fe-rating{width:88px;height:88px}.gg-fe .fe-profile{width:120px;height:90px;object-fit:cover;object-position:center}.gg-fe .fe-avatar{width:56px;height:56px;border-radius:50%}.gg-fe .fe-thumb{width:36px;height:48px;object-fit:contain}.gg-fe .fe-footer{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid var(--gg-ld-line-2,#555);padding-top:14px}.gg-fe .fe-save{background:#c94c21;color:#fff;border-color:#c94c21;font-weight:700}.gg-fe .fe-status{min-height:24px;font-weight:600}
@media(prefers-color-scheme:light){.gg-fe{background:var(--gg-ld-surface-1,#fff);color:var(--gg-ld-text,#222)}}
@media(max-width:600px){.gg-fe{padding:14px;width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.gg-fe .fe-grid{grid-template-columns:1fr;gap:12px}.gg-fe .fe-crop{max-width:270px}.gg-fe h2{font-size:19px}.gg-fe .fe-footer button{flex:1}}

.gg-fe .fe-adjust{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px}.gg-fe .fe-adjust label{margin-bottom:2px}.gg-fe .fe-adjust output{font-size:12px}.gg-fe .fe-preview-block h3{margin:12px 0 8px}.gg-fe .fe-preview-block p{font-size:12px}.gg-fe .fe-footer{position:sticky;bottom:-22px;background:var(--gg-ld-surface-1,#171717);padding-bottom:12px;z-index:2}@media(prefers-color-scheme:light){.gg-fe .fe-footer{background:var(--gg-ld-surface-1,#fff)}}@media(max-width:600px){.gg-fe .fe-footer{bottom:-14px}}

/**/
.gg-fe .fe-drop{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}.gg-fe .fe-pick{position:relative;display:inline-flex;margin:0}.gg-fe .fe-pick .fe-file{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.gg-fe .fe-pick-b{display:inline-flex;align-items:center;min-height:44px;padding:9px 16px;border:1px solid #e69b28;border-radius:6px;font-weight:700;color:#e69b28}.gg-fe .fe-pick:focus-within .fe-pick-b{outline:3px solid #e69b28;outline-offset:3px}.gg-fe .fe-pick:hover .fe-pick-b{background:#e69b2822}.gg-fe .fe-pick-t{font-size:13px;opacity:.8}.gg-fe .fe-rl{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.gg-fe .fe-rl output{font-size:12px;font-variant-numeric:tabular-nums;opacity:.75}

/**/
.gg-fe .fe-brush-surface{position:relative;overflow:hidden}
.gg-fe .fe-brushing .fe-crop{cursor:crosshair;border-style:dashed}
.gg-fe .fe-brush-ring{position:absolute;pointer-events:none;border:1px solid white;box-shadow:0 0 0 1px #222,inset 0 0 0 1px #3338;border-radius:50%;transform:translate(-50%,-50%)}
.gg-fe .fe-brush-tools{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;margin-top:8px}
.gg-fe .fe-brush-tools label{flex:1 1 10em;margin:0}
.gg-fe .fe-brush-tools [aria-pressed=true]{background:#e69b28;color:#201509;border-color:#e69b28}
.gg-fe .fe-brush-surface .fe-crop:focus-visible{outline-offset:-5px}

/**/
.gg-fe [hidden]{display:none!important}.gg-fe .fe-steps{position:sticky;top:-22px;z-index:3;background:var(--gg-ld-surface-1,#171717);padding-top:6px;padding-bottom:6px;display:flex;gap:8px;padding:0;list-style:none;margin:8px 0 18px;flex-wrap:wrap}.gg-fe .fe-steps li{padding:7px 10px;border:1px solid var(--gg-ld-line-2,#666);border-radius:6px}.gg-fe .fe-steps [aria-current]{border-color:#e69b28;font-weight:700;box-shadow:inset 0 -3px #e69b28}.gg-fe .fe-original{display:block;max-width:100%;max-height:48dvh;width:auto;height:auto;margin:auto;object-fit:contain}.gg-fe .fe-final{display:block;width:auto;max-width:100%;height:44dvh;object-fit:contain;margin:auto}.gg-fe .fe-source h3{margin:0 0 12px}.gg-fe .fe-vk{color:inherit}.gg-fe .fe-refusal{margin:14px 0;padding:14px;border:1px solid #d98151;border-radius:8px}.gg-fe .fe-refusal select,.gg-fe textarea{width:100%;margin-top:6px;min-width:0;color:inherit;background:var(--gg-ld-surface-1,#171717)}.gg-fe textarea{border:1px solid var(--gg-ld-line-2,#666);border-radius:6px;padding:8px;font:inherit}.gg-fe .fe-next{background:#a93e18;color:#fff}.gg-fe .fe-footer{align-items:center}.gg-fe .fe-cancel{margin-left:auto}.gg-fe .fe-reject{color:inherit;border-color:#d98151}@media(max-width:600px){.gg-fe .fe-steps{top:-14px;gap:5px;font-size:12px}.gg-fe .fe-steps li{padding:6px}.gg-fe .fe-footer{gap:7px}.gg-fe .fe-footer button{flex:1 1 40%;padding:8px}.gg-fe .fe-final{height:38dvh}}

.gg-fe.fe-account,.gg-fe.fe-portrait{margin:auto}.gg-fe.fe-account .fe-crop,.gg-fe.fe-account .fe-thumb{aspect-ratio:1;height:auto}.gg-fe.fe-account .fe-thumb{border-radius:50%}

/**/
.gg-fe.fe-portrait {
  --fe-edge: var(--gg-ld-line-2,#515155);
  --fe-accent: #d78c32;
  width: min(940px,calc(100% - 24px));
  overscroll-behavior: contain;
}
.fe-portrait .fe-studio-heading,
.fe-portrait .fe-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gg-fe.fe-portrait h2 {margin: 0; font-size: clamp(16px,2vw,22px); line-height: 1.24; overflow-wrap: anywhere}
.gg-fe.fe-portrait .fe-drop {margin: 0; padding: 0; border: 0; flex: none}
.fe-portrait .fe-pick-t {position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%)}
.gg-fe.fe-portrait .fe-pick-b {padding: 5px 10px; white-space: nowrap; border-color: var(--fe-edge); color: inherit; font-size: 13px}
.fe-portrait .fe-source, .fe-portrait .fe-confirm {margin-top: 16px}
.fe-portrait .fe-modes {display: flex; gap: 4px; padding: 3px; margin: 12px 0; border: 1px solid var(--fe-edge); border-radius: 9px}
.gg-fe.fe-portrait .fe-modes button {flex: 1; padding: 4px 6px; border: 1px solid transparent; font-weight: 650}
.gg-fe.fe-portrait .fe-modes button[aria-pressed=true],
.gg-fe.fe-portrait .fe-brush-tools button[aria-pressed=true],
.gg-fe.fe-portrait [data-command=before][aria-pressed=true] {color: #21160a; background: #e6a14e; border-color: #e6a14e}
.gg-fe.fe-portrait .fe-grid {grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: start; gap: 20px}
.fe-portrait .fe-stage {min-width: 0; padding: 6px 10px 12px; border: 1px solid var(--fe-edge); border-radius: 9px; background: #141518; color: #f7f5f0}
.fe-portrait .fe-view-bar {margin-bottom: 5px; font-size: 13px; font-weight: 650}
.gg-fe.fe-portrait .fe-view-bar button {min-width: 88px; padding: 4px 10px}
.gg-fe.fe-portrait .fe-brush-surface {width: min(100%,36dvh,350px); margin: auto}
.gg-fe.fe-portrait .fe-crop, .gg-fe.fe-portrait .fe-lens {width: 100%; max-width: none; height: auto; aspect-ratio: 3/4; border: 0; border-radius: 2px}
.fe-portrait .fe-lens {position: absolute; inset: 0; pointer-events: none}
.fe-portrait[data-mode=color] .fe-crop {cursor: default}
.fe-portrait .fe-controls {min-width: 0; scrollbar-width: thin}
.gg-fe.fe-portrait fieldset {margin: 0}
.gg-fe.fe-portrait legend {margin-bottom: 10px; padding: 0; font-size: 16px}
.gg-fe.fe-portrait .fe-buttons, .gg-fe.fe-portrait .fe-brush-tools {margin: 4px 0 10px}
.gg-fe.fe-portrait .fe-adjust {margin-top: 12px}
.fe-portrait .fe-style {max-width: 100%; margin-left: 4px}
.gg-fe.fe-portrait .fe-lens-tools {display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto}
.gg-fe.fe-portrait .fe-loupe {padding: 3px 4px; min-width: 48px; color-scheme: dark}
.gg-fe.fe-portrait .fe-brush-tools label {flex: 1 1 100%; margin: 6px 0}
.fe-portrait fieldset > p {font-size: 13px; opacity: .85}
.fe-portrait fieldset > p:empty {display: none}
.fe-portrait .fe-tv {margin: 14px 0}
.gg-fe.fe-portrait .fe-tv h3 {margin: 0 0 8px; font-size: 14px}
.fe-portrait .fe-tv-plates {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; align-items: end}
.fe-portrait .fe-tv figcaption {margin: 0 0 4px}
.fe-portrait .fe-plate {display: flex; align-items: center; gap: 6px; min-width: 0; color: #fff9f1; background: linear-gradient(110deg,#3e2d2b,#16191e); border-bottom: 1px solid #aa6257}
.fe-portrait .fe-plate b {min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 5px; font-size: 13px}
.fe-portrait .fe-plate-photo {display: block; flex: none; overflow: hidden}
/**/
.fe-portrait .fe-tv-focus .fe-plate {clip-path: polygon(0 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%)}
.fe-portrait .fe-tv-focus .fe-plate-photo {
  width: clamp(36px,3.8vw,55px); height: clamp(45px,4.65vw,67px);
  border-inline-start: 2px solid #ec6954;
  clip-path: polygon(8px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 8px);
}
.fe-portrait .fe-tv-side .fe-plate {padding: 2px 6px; background: #232b36; border-bottom-color: #7389a0}
.fe-portrait .fe-tv-side .fe-plate-photo {width: clamp(20px,2.1vw,30px); aspect-ratio: 1}
.gg-fe.fe-portrait .fe-plate .fe-preview {width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 0; object-position: 50% 40%}
.gg-fe.fe-portrait .fe-tv-side .fe-preview {object-position: 50% 32%}
.gg-fe.fe-portrait .fe-status {min-height: 0; margin: 8px 0; font-size: 13px; overflow-wrap: anywhere}
.gg-fe.fe-portrait .fe-footer {justify-content: flex-end; gap: 7px}
.gg-fe.fe-portrait .fe-footer button {flex: 0 1 auto; margin: 0}
.fe-portrait .fe-footer .fe-next, .fe-portrait .fe-footer .fe-save {order: 1; min-width: 6.5em}
.fe-portrait .fe-footer .fe-back {margin-right: auto}
@media (max-width: 650px) {
  .fe-portrait .fe-tv-focus .fe-plate-photo {height: 42px}
  .gg-fe.fe-portrait {width: calc(100% - 12px); padding: 10px; max-width: none; max-height: calc(100dvh - 12px)}
  .gg-fe.fe-portrait[data-step="2"][open] {display: flex; flex-direction: column; height: calc(100dvh - 12px); overflow: hidden}
  .fe-portrait .fe-studio-heading {gap: 5px}
  .gg-fe.fe-portrait .fe-modes {flex: none; margin: 6px 0}
  .gg-fe.fe-portrait .fe-grid {flex: 1; min-height: 0; grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); align-items: stretch; gap: 6px}
  .gg-fe.fe-portrait .fe-stage {padding: 2px 8px 6px}
  .fe-portrait .fe-view-bar {margin: 0}
  .gg-fe.fe-portrait .fe-brush-surface {width: min(100%,27dvh,230px)}
  .gg-fe.fe-portrait .fe-controls {overflow-y: auto; padding: 2px 4px; overscroll-behavior: contain}
  .gg-fe.fe-portrait .fe-controls legend {position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden}
  .gg-fe.fe-portrait .fe-status {font-size: 12px; margin: 4px 0}
  .gg-fe.fe-portrait .fe-footer {position: static; padding: 5px 0 0}
}
@media (max-height: 550px) {
  .fe-portrait .fe-tv-side .fe-plate-photo {width: 19px}
}
@media (max-width: 650px) and (max-height: 520px) {
  .gg-fe.fe-portrait[data-step="2"][open] {display: block; height: auto; overflow-y: auto}
  .gg-fe.fe-portrait .fe-grid {grid-template-rows: auto auto}
}
