.profile-designer {
  box-sizing: border-box;
  width: min(1600px, calc(100vw - 32px));
  max-width: none;
  height: min(940px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: #111513;
  color: #f1efe6;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
  font-size: 15px;
  line-height: 1.5;
}
.profile-designer::backdrop { background: rgba(8,10,10,.74); backdrop-filter: blur(6px); }
.profile-designer *, .profile-designer *::before, .profile-designer *::after { box-sizing: border-box; }
.profile-designer button, .profile-designer input, .profile-designer textarea, .profile-designer select { font: inherit; }
.profile-designer button { cursor: pointer; }
.profile-designer button:disabled { cursor: default; opacity: .52; }
.profile-designer .designer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(130deg, rgba(255,121,42,.12), rgba(255,255,255,.025) 45%, transparent);
}
.profile-designer .designer-header-copy { min-width: 0; }
.profile-designer .designer-kicker, .profile-designer .designer-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #ff9b61;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.profile-designer .designer-header h2 { margin: 0; font-size: clamp(20px, 2.2vw, 29px); line-height: 1.18; }
.profile-designer .designer-header p { margin: 7px 0 0; color: rgba(241,239,230,.7); font-size: 13px; }
.profile-designer .designer-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.profile-designer .soft-btn, .profile-designer .solid-btn {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.profile-designer .soft-btn { color: #f1efe6; background: rgba(255,255,255,.06); }
.profile-designer .soft-btn:hover, .profile-designer .soft-btn:focus-visible { border-color: #ff792a; background: rgba(255,121,42,.15); }
.profile-designer .solid-btn { border-color: #ff792a; color: #17130f; background: #ff792a; }
.profile-designer .solid-btn:hover, .profile-designer .solid-btn:focus-visible { background: #ff9a5d; }
.profile-designer .designer-status {
  min-height: 0;
  margin: 0;
  padding: 0 28px;
  color: #a8e8b1;
  font-size: 13px;
  transition: min-height .16s ease, padding .16s ease;
}
.profile-designer .designer-status:not(:empty) { min-height: 36px; padding-top: 9px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.profile-designer .designer-status.is-error { color: #ffaaa0; }
.profile-designer .designer-body { display: grid; grid-template-columns: minmax(290px, 330px) minmax(0, 1fr); height: calc(100% - 105px); min-height: 0; }
.profile-designer .designer-status:not(:empty) + .designer-body { height: calc(100% - 141px); }
.profile-designer .designer-controls {
  min-height: 0;
  overflow: auto;
  border-right: 1px solid rgba(255,255,255,.11);
  background: rgba(0,0,0,.11);
  scrollbar-color: rgba(255,255,255,.25) transparent;
}
.profile-designer .designer-tabs { display: grid; grid-template-columns: 1fr 1fr; position: sticky; top: 0; z-index: 2; padding: 14px 16px 12px; background: rgba(17,21,19,.96); backdrop-filter: blur(9px); }
.profile-designer .designer-tabs button { min-height: 42px; border: 0; border-bottom: 2px solid transparent; color: rgba(241,239,230,.62); background: transparent; font-size: 15px; font-weight: 800; }
.profile-designer .designer-tabs button[aria-selected="true"] { border-color: #ff792a; color: #fff; }
.profile-designer .designer-panel { padding: 0 16px 26px; }
.profile-designer .designer-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin: 4px 0 6px; }
.profile-designer .designer-panel-heading h3 { margin: 0; font-size: 19px; }
.profile-designer .designer-panel-heading .designer-add { min-height: 32px; padding: 6px 9px; font-size: 12px; }
.profile-designer .designer-panel-note, .profile-designer .designer-note, .profile-designer .designer-help { color: rgba(241,239,230,.63); font-size: 12px; }
.profile-designer .designer-panel-note { margin: 0 0 14px; }
.profile-designer .designer-entry-group { margin: 0 -4px 14px; }
.profile-designer .designer-entry-group h4 { margin: 0 4px 5px; color: rgba(241,239,230,.5); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.profile-designer .designer-entry { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 48px; padding: 7px 9px; border: 1px solid transparent; border-radius: 10px; color: #f1efe6; text-align: left; background: transparent; }
.profile-designer .designer-entry:hover, .profile-designer .designer-entry:focus-visible { border-color: rgba(255,121,42,.5); background: rgba(255,121,42,.08); }
.profile-designer .designer-entry.is-selected { border-color: rgba(255,121,42,.82); background: rgba(255,121,42,.14); }
.profile-designer .designer-entry-icon { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; color: #ff9b61; font-size: 15px; }
.profile-designer .designer-entry > span:last-child { display: grid; min-width: 0; gap: 1px; }
.profile-designer .designer-entry strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.profile-designer .designer-entry small { overflow: hidden; color: rgba(241,239,230,.52); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-designer .designer-count { display: block; padding: 0 4px; color: rgba(241,239,230,.52); font-size: 11px; }
.profile-designer .designer-content-inspector, .profile-designer [data-designer-layout-inspector] { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.profile-designer .designer-selected-heading { margin: 0 0 15px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.035); }
.profile-designer .designer-selected-heading h4 { margin: 0; font-size: 18px; line-height: 1.25; }
.profile-designer .designer-selected-heading p { margin: 5px 0 0; color: rgba(241,239,230,.62); font-size: 12px; }
.profile-designer .field, .profile-designer .field-group { display: grid; gap: 6px; margin: 0 0 14px; }
.profile-designer .field > span, .profile-designer .field-group legend { color: rgba(241,239,230,.84); font-size: 13px; font-weight: 700; }
.profile-designer .field > small, .profile-designer .field-group > small { color: rgba(241,239,230,.55); font-size: 11px; line-height: 1.45; }
.profile-designer input:not([type="checkbox"]):not([type="color"]), .profile-designer textarea, .profile-designer select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: #f1efe6;
  background: rgba(0,0,0,.25);
  outline: none;
}
.profile-designer input:not([type="checkbox"]):not([type="color"]):focus, .profile-designer textarea:focus, .profile-designer select:focus { border-color: #ff792a; box-shadow: 0 0 0 2px rgba(255,121,42,.2); }
.profile-designer textarea { min-height: 88px; resize: vertical; }
.profile-designer select { appearance: auto; }
.profile-designer .designer-wide { width: 100%; }
.profile-designer .designer-check { display: flex; align-items: start; gap: 8px; margin: 0 0 11px; color: rgba(241,239,230,.88); font-size: 13px; }
.profile-designer .designer-check input[type="checkbox"], .profile-designer [data-category-field] { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #ff792a; }
.profile-designer .field-group { padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; }
.profile-designer .field-group legend { padding: 0 4px; }
.profile-designer .designer-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.profile-designer .designer-category-grid label { display: flex; align-items: center; gap: 5px; min-height: 32px; padding: 5px; border-radius: 6px; color: rgba(241,239,230,.8); font-size: 12px; background: rgba(255,255,255,.04); }
.profile-designer .designer-category-grid label:has(input:checked) { color: #fff; background: rgba(255,121,42,.18); }
.profile-designer .designer-remove { width: 100%; margin: 2px 0 8px; color: #ffb5a8; }
.profile-designer .designer-movement { margin: 16px 0 17px; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; }
.profile-designer .designer-movement > span { display: block; margin-bottom: 8px; color: rgba(241,239,230,.84); font-size: 13px; font-weight: 800; }
.profile-designer .designer-movement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.profile-designer .designer-movement-grid button { min-height: 36px; padding: 6px 7px; font-size: 12px; }
.profile-designer .designer-movement-grid button[data-move-column="mainRight"] { grid-column: 1 / -1; border-color: rgba(255,121,42,.55); }
.profile-designer .designer-split-check { margin-top: 17px; padding: 10px 11px; border: 1px solid rgba(255,121,42,.35); border-radius: 9px; background: rgba(255,121,42,.08); }
.profile-designer .designer-theme, .profile-designer .designer-background-settings { margin-top: 18px; }
.profile-designer .designer-color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.profile-designer .designer-color-grid label { display: grid; gap: 4px; color: rgba(241,239,230,.72); font-size: 11px; }
.profile-designer .designer-color-grid input[type="color"] { width: 100%; height: 38px; padding: 3px; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: transparent; }
.profile-designer .designer-preview-area { display: flex; min-width: 0; min-height: 0; flex-direction: column; background: #0b0e0d; }
.profile-designer .designer-preview-tools { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; min-height: 56px; padding: 10px 17px; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.025); }
.profile-designer .designer-preview-tools strong { margin-right: 5px; font-size: 14px; }
.profile-designer .designer-preview-tools .soft-btn { min-height: 32px; padding: 5px 11px; font-size: 12px; }
.profile-designer .designer-preview-tools .soft-btn[aria-pressed="true"] { border-color: #ff792a; color: #17130f; background: #ff792a; }
.profile-designer .designer-preview-tools span { overflow: hidden; margin-left: auto; color: rgba(241,239,230,.53); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-designer .designer-preview-scroll { min-height: 0; flex: 1 1 auto; overflow: auto; padding: 16px; overscroll-behavior: contain; background: radial-gradient(circle at 70% 0%, rgba(255,121,42,.08), transparent 43%); }
.profile-designer .designer-preview-shell { width: 1100px; min-height: 500px; transform-origin: top left; }
.profile-designer .designer-preview-shell > .dialog { width: 1100px; min-height: 580px; padding: 34px 38px; border-radius: 16px; color: var(--profile-text, #f1efe6); background: var(--profile-background, #101413); box-shadow: 0 16px 42px rgba(0,0,0,.24); }
.profile-designer .designer-preview-content { min-height: 500px; }
.profile-designer .designer-preview-content .creator-overview { position: relative; display: grid; grid-template-columns: minmax(210px, .33fr) minmax(0, 1fr); gap: 32px; }
.profile-designer .designer-preview-content .creator-identity { min-width: 0; }
.profile-designer .designer-preview-content .creator-portfolio { min-width: 0; }
.profile-designer .designer-preview-content .profile-main-column { min-width: 0; }
.profile-designer .designer-preview-content .profile-main-column[data-profile-column="mainRight"] { display: grid; align-content: start; gap: 16px; }
.profile-designer .designer-preview-content [data-profile-block] { position: relative; border-radius: 11px; transition: outline-color .14s ease, background .14s ease, opacity .14s ease; }
.profile-designer .designer-preview-content [data-profile-block].designer-selected { outline: 2px solid rgba(255,121,42,.9); outline-offset: 7px; background: rgba(255,121,42,.055); }
.profile-designer .designer-preview-content [data-profile-block].design-hidden { opacity: .48; outline: 1px dashed rgba(255,255,255,.35); outline-offset: 4px; }
.profile-designer .designer-preview-content .designer-block-clickable, .profile-designer .designer-preview-content .designer-clickable { cursor: pointer; }
.profile-designer .designer-preview-content .designer-inline-target { border-radius: 4px; cursor: text; }
.profile-designer .designer-preview-content .designer-inline-target:hover { outline: 1px dashed rgba(255,155,97,.9); outline-offset: 3px; }
.profile-designer .designer-preview-content .designer-inline-editing { min-width: 2em; outline: 2px solid #ff792a; outline-offset: 3px; background: rgba(0,0,0,.22); cursor: text; }
.profile-designer .designer-preview-content .designer-placeholder { color: rgba(241,239,230,.56); font-style: italic; }
.profile-designer .designer-preview-content .designer-empty-copy { margin: 12px 0; padding: 14px; border: 1px dashed rgba(255,255,255,.25); border-radius: 8px; }
.profile-designer .designer-preview-content .profile-compact-heading { position: relative; }
.profile-designer .designer-preview-content .profile-compact-heading h3, .profile-designer .designer-preview-content h3 { line-height: 1.2; }
.profile-designer .designer-preview-content .profile-bio { min-height: 1.4em; }
.profile-designer .designer-preview-content .creative-status { min-height: 1.4em; }
.profile-designer .designer-preview-content .profile-avatar { cursor: pointer; outline-offset: 5px; }
.profile-designer .designer-preview-content .profile-avatar:hover, .profile-designer .designer-preview-content .profile-avatar:focus-visible { outline: 2px solid #ff792a; }
.profile-designer .designer-preview-content .designer-inline-status { max-width: 220px; min-height: 32px; padding: 4px 7px; border: 1px solid #ff792a; border-radius: 6px; color: inherit; background: rgba(0,0,0,.3); }
.profile-designer .designer-preview-content .designer-social-url { display: inline-block; max-width: 150px; overflow: hidden; margin-left: 5px; color: inherit; font-size: 10px; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.profile-designer .designer-preview-content .designer-drag { position: absolute; z-index: 3; top: 8px; left: -34px; display: grid; width: 27px; height: 27px; place-items: center; padding: 4px; border: 1px solid rgba(255,155,97,.65); border-radius: 7px; color: #ff9b61; background: rgba(12,16,14,.9); cursor: grab; }
.profile-designer .designer-preview-content .designer-drag:hover, .profile-designer .designer-preview-content .designer-drag:focus-visible { border-color: #ff792a; color: #fff; background: #7a3217; }
.profile-designer .designer-preview-content .designer-drag:active { cursor: grabbing; }
.profile-designer .designer-preview-content .designer-drag svg { width: 18px; height: 18px; fill: currentColor; }
.profile-designer .designer-preview-content .designer-drop-column { min-height: 40px; }
.profile-designer .designer-preview-content .designer-drop-marker { display: flex; align-items: center; justify-content: center; min-height: 35px; margin: 7px 0; border: 2px dashed #ff792a; border-radius: 8px; color: #ffb98e; background: rgba(255,121,42,.1); pointer-events: none; }
.profile-designer .designer-preview-content .designer-drop-marker span { padding: 3px 8px; border-radius: 999px; color: #17130f; background: #ff9b61; font-size: 11px; font-weight: 800; }
.profile-designer .designer-preview-content .designer-dragging [data-profile-block] { user-select: none; }
.profile-designer .designer-preview-content [data-profile-block].designer-drop-target { outline: 2px dashed #ff792a; outline-offset: 4px; }
.profile-designer .portfolio-selection { margin-top: 16px; }
.profile-designer .portfolio-selection .portfolio-selection-list { max-height: 340px; overflow: auto; }
.profile-designer .portfolio-selection .portfolio-selection-row { display: grid; grid-template-columns: 26px 38px minmax(0, 1fr) 42px; gap: 6px; align-items: center; }
.profile-designer .portfolio-selection .portfolio-selection-row .portfolio-selection-thumb { width: 38px; height: 30px; overflow: hidden; border-radius: 4px; }
.profile-designer .portfolio-selection .portfolio-selection-row .portfolio-selection-thumb img { width: 100%; height: 100%; object-fit: cover; }
.profile-designer .portfolio-selection .portfolio-drag, .profile-designer .portfolio-selection .portfolio-reorder button { min-height: 27px; padding: 2px; border: 1px solid rgba(255,255,255,.16); border-radius: 5px; color: inherit; background: rgba(255,255,255,.04); }
.profile-designer .portfolio-selection .portfolio-select-label { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 2px; min-width: 0; }
.profile-designer .portfolio-selection .portfolio-select-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-designer .portfolio-selection .portfolio-select-label small { grid-column: 1 / -1; overflow: hidden; color: rgba(241,239,230,.5); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-designer .portfolio-selection .portfolio-select-label input { grid-column: 2; grid-row: 1; width: 17px; height: 17px; accent-color: #ff792a; }
.profile-designer .portfolio-selection .portfolio-reorder { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.profile-designer .portfolio-selection .portfolio-unselected { opacity: .48; }

@media (max-width: 980px) {
  .profile-designer { width: calc(100vw - 18px); height: calc(100vh - 18px); max-height: calc(100vh - 18px); }
  .profile-designer .designer-body { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); }
  .profile-designer .designer-preview-shell, .profile-designer .designer-preview-shell > .dialog { width: 920px; }
  .profile-designer .designer-preview-content .creator-overview { grid-template-columns: minmax(180px, .32fr) minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 720px) {
  .profile-designer { width: 100vw; height: 100vh; max-height: 100vh; border: 0; border-radius: 0; }
  .profile-designer .designer-header { align-items: start; min-height: 116px; padding: 16px; gap: 10px; }
  .profile-designer .designer-header-actions { flex-direction: column-reverse; gap: 6px; }
  .profile-designer .designer-header-actions button { min-width: 112px; min-height: 34px; padding: 6px 8px; font-size: 12px; }
  .profile-designer .designer-header p { display: none; }
  .profile-designer .designer-status { padding-right: 16px; padding-left: 16px; }
  .profile-designer .designer-body { display: flex; height: calc(100% - 116px); flex-direction: column; }
  .profile-designer .designer-status:not(:empty) + .designer-body { height: calc(100% - 152px); }
  .profile-designer .designer-controls { order: 2; flex: 0 0 47%; border-top: 1px solid rgba(255,255,255,.11); border-right: 0; }
  .profile-designer .designer-preview-area { order: 1; flex: 1 1 53%; min-height: 230px; }
  .profile-designer .designer-preview-tools { min-height: 45px; padding: 7px 11px; }
  .profile-designer .designer-preview-tools span { display: none; }
  .profile-designer .designer-preview-scroll { padding: 11px; }
  .profile-designer .designer-panel { padding-right: 12px; padding-left: 12px; }
}
/* Keep the editor controls separate from the shared public-profile layout. */
.profile-designer[open]{display:flex;flex-direction:column;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
.profile-designer .designer-header{flex:0 0 auto;min-height:82px;padding:16px 20px;flex-wrap:nowrap}
.profile-designer .designer-header>div{width:auto;margin:0}
.profile-designer .designer-header-copy{min-width:0;flex:1}
.profile-designer .designer-header h2{font-size:22px}
.profile-designer .designer-header-actions{flex:0 0 auto}
.profile-designer .designer-status{height:auto;flex:0 0 auto}
.profile-designer .designer-status:empty{display:none}
.profile-designer .designer-body{flex:1;height:auto!important;min-height:0}
.profile-designer .designer-controls{padding:0}
.profile-designer .designer-panel-heading{align-items:center}
.profile-designer .designer-panel-heading h3{font-size:17px;white-space:nowrap}
.profile-designer .designer-panel-heading .designer-add{width:auto;flex:0 0 auto;margin:0;white-space:nowrap}
.profile-designer .designer-eyebrow,.profile-designer .designer-selected-heading p{display:none}
.profile-designer .designer-selected-heading{padding:10px 12px;margin-bottom:14px}
.profile-designer .field>span,.profile-designer .field-group legend,.profile-designer .designer-check{font-size:15px}
.profile-designer .field>small,.profile-designer .field-group>small,.profile-designer .designer-help{font-size:12px}
.profile-designer .designer-entry-list{order:0}
.profile-designer .designer-content-inspector{order:1;margin-top:4px;padding-top:8px}
.profile-designer #profileDesignPreview>.dialog{min-height:500px;overflow:visible}
.profile-designer #profileDesignPreview [data-profile-column]{position:relative}
.profile-designer #profileDesignPreview .designer-drag{left:auto;right:0;top:0;width:30px;height:30px;padding:5px;touch-action:none}
.profile-designer #profileDesignPreview .designer-drag svg{fill:none}
.profile-designer #profileDesignPreview .designer-drop-marker{position:absolute;z-index:10;left:0;right:0;top:-17px;min-height:34px;margin:0;pointer-events:none}
.profile-designer #profileDesignPreview .designer-drop-marker[data-drop-position="after"]{top:auto;bottom:-17px}
.profile-designer #profileDesignPreview .designer-drop-marker[data-drop-position="right"]{left:auto;top:0;bottom:0;width:48%;background:#172c26ed}
.profile-designer #profileDesignPreview .designer-drop-marker span{font-size:16px;white-space:nowrap}
.profile-designer #profileDesignPreview .designer-drop-marker::after{display:none}
.profile-designer #profileDesignPreview .designer-placeholder{font-style:normal}
.profile-designer-entry{padding-bottom:10px}
.profile-form>.editor-actions{display:flex;gap:12px;flex-wrap:wrap;padding:8px 0}
@media(max-width:720px){
 .profile-designer[open]{width:100vw;height:100dvh;max-height:100dvh}
 .profile-designer .designer-header{min-height:76px;padding:10px 12px;gap:8px}
 .profile-designer .designer-header h2{font-size:17px;line-height:1.35}
 .profile-designer .designer-header-actions{gap:5px;flex-direction:row}
 .profile-designer .designer-header-actions button{min-width:0;min-height:40px;font-size:12px;padding:5px 8px}
 .profile-designer .designer-body{display:flex;flex-direction:column}
 .profile-designer .designer-preview-area{flex:1 1 48%;min-height:160px}
 .profile-designer .designer-controls{flex:1 1 52%}
 .profile-designer .designer-tabs{padding:4px 12px}
}
.profile-designer .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
