/* Account surfaces use the same wine and paper tones as the catalogue. */
body:is([data-view="mais"],[data-view="perfil"]) .shell {
  background: var(--brand-wine);
  color: var(--brand-cream);
}
.studio-settings {
  --settings-rule: #ede3d635;
  --settings-muted: #cdb6ad;
  width: min(100%, 880px);
  margin: 0 auto;
  padding: clamp(12px, 4vw, 46px) 0 34px;
}
.studio-settings h1 {
  margin: 0 0 26px;
  font: 600 clamp(38px, 5vw, 66px)/1.06 var(--serif);
  letter-spacing: -.035em;
}
.studio-settings h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}
.studio-directory { max-width: 650px; }
.studio-member {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 17px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-cream);
  color: var(--brand-wine);
  text-align: left;
}
.studio-member strong, .studio-member small { display: block; overflow-wrap: anywhere; }
.studio-member small { margin-top: 4px; font-size: 12px; }
.studio-member-mark {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid #3b0a1055;
  border-radius: 50%;
  font: 600 24px/1 var(--serif);
}
.studio-member svg, .studio-shortcuts svg, .studio-back svg { width: 19px; height: 19px; }
.studio-shortcuts { margin-top: 24px; border-top: 1px solid var(--settings-rule); }
.studio-shortcuts button {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) 20px;
  align-items: center;
  width: 100%;
  gap: 13px;
  min-height: 55px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--settings-rule);
  background: transparent;
  text-align: left;
}
.studio-shortcuts button:hover, .studio-back:hover { background: #ede3d60e; }
.studio-shortcuts button > svg:last-child { color: var(--settings-muted); }
.studio-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 0 12px -8px;
  padding: 6px 8px;
  color: var(--settings-muted);
  border: 0;
  background: transparent;
}
.studio-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 25px 34px;
}
.studio-account, .studio-preferences { padding-top: 18px; border-top: 1px solid var(--settings-rule); }
.studio-email { margin: 0 0 13px; overflow-wrap: anywhere; }
.studio-access-label {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--settings-rule);
  border-radius: 4px;
  font-size: 12px;
}
.studio-access-label[data-active="true"] { background: var(--brand-cream); color: var(--brand-wine); }
.studio-recheck { display: block; margin-top: 16px; }
.studio-preferences label, #delete-account-form label { display: block; margin: 14px 0 6px; font-size: 13px; }
.studio-preferences .field, #delete-account-form .field {
  width: 100%;
  min-height: 46px;
  margin: 0;
  border: 1px solid #9d7474;
  background: #27070b;
  color: var(--brand-cream);
  font-size: 16px;
}
.studio-preferences p { margin: 10px 0 15px; color: var(--settings-muted); font-size: 12px; }
.studio-settings :is(button,input):focus-visible, #delete-account-form :is(button,input):focus-visible {
  outline: 2px solid #ead0b7;
  outline-offset: 3px;
}
.studio-account-actions {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 16px 22px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--settings-rule);
}
.studio-account-actions button, .studio-dialog-actions button { min-height: 44px; }
.studio-delete-link { border: 0; background: transparent; color: #ffc0b8; text-decoration: underline; text-underline-offset: 4px; }
body[data-gate="pending"][data-view="perfil"] #main { place-items: start center; padding-block: 24px!important; }
body[data-gate="pending"] .studio-profile-grid { grid-template-columns: 1fr; }
.access-pending h1 { margin: 0 0 10px; font: 600 25px/1.2 var(--serif); }
.access-pending button { min-height: 44px; }
#delete-account-dialog {
  width: min(calc(100% - 28px), 480px);
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid #9d7474;
  border-radius: 10px;
  color: var(--brand-cream);
  background: #31090f;
}
#delete-account-dialog::backdrop { background: #120306cf; }
#delete-account-form h2 { margin: 0 0 14px; font: 600 32px/1.1 var(--serif); }
#delete-account-form p { color: #e2c9be; font-size: 13px; line-height: 1.65; }
#delete-account-feedback:empty, .asset-feedback:empty { display: none; }
.studio-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.studio-delete-confirm { padding: 10px 16px; border: 0; border-radius: 6px; color: #31090f; background: #ffc0b8; font-weight: 600; }
.studio-dialog-actions button:disabled { opacity: .6; cursor: wait; }
.asset-feedback { font-size: 13px; line-height: 1.55; }
@media (max-width: 760px) {
  .studio-profile-grid { grid-template-columns: 1fr; gap: 20px; }
  .studio-settings h1 { margin-bottom: 20px; }
  .studio-settings { padding-top: 15px; }
}

/* Profile has one personal introduction and two clear working areas. */
.studio-profile{max-width:1000px}
.studio-profile h1{font-size:clamp(36px,4.2vw,54px);font-weight:500;margin-bottom:30px}
.member-identity{display:flex;align-items:center;gap:28px;padding:0 0 32px;margin-bottom:34px;border-bottom:1px solid var(--settings-rule)}
.profile-portrait-wrap{position:relative;flex-shrink:0;align-self:center}
.profile-portrait{display:grid;place-items:center;width:120px;height:120px;padding:0;overflow:hidden;border:0;border-radius:50%;background:#ede3d6;color:#3b0a10;font:500 52px/1 var(--serif)}
.profile-portrait img,.avatar img,.studio-member-mark img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.profile-camera{position:absolute;bottom:1px;right:0;display:grid;place-items:center;width:36px;height:36px;border:3px solid #3b0a10;border-radius:50%;padding:6px;background:#ede3d6;color:#3b0a10}
.profile-camera svg{width:18px;height:18px}
.member-identity-copy{min-width:0}
.studio-profile .profile-display-name{font:500 clamp(26px,3.5vw,34px)/1.2 var(--serif);letter-spacing:-.02em;overflow-wrap:anywhere;margin:0 0 7px}
.profile-display-specialty{color:#d8c4b6;font-size:14px;margin:0 0 7px}
.profile-display-instagram{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:#d8c4b6;overflow-wrap:anywhere}
.profile-display-instagram svg{width:15px;height:15px;flex-shrink:0}
.profile-display-instagram[hidden]{display:none}
.profile-photo-actions{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0 0}
.profile-photo-actions button{min-height:36px;background:none;color:#ede3d6;border:0;border-bottom:1px solid #ede3d65c;padding:0;font:400 13px var(--sans)}
.profile-photo-actions button[hidden]{display:none}
.profile-photo-actions [data-profile-photo-remove]{color:#d8c4b6;border-bottom-color:transparent}
.profile-photo-note{font-size:12px;color:#cdb6ad;line-height:1.6;margin:8px 0 0;max-width:44ch}
.member-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr);gap:44px}
.studio-profile .studio-preferences{border:0;padding:0;min-width:0}
.studio-profile h2{font-size:17px;font-weight:500;margin-bottom:20px}
.profile-fields{border:0;margin:0;padding:0;min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:20px 18px}
.studio-preferences .profile-fields label{margin:0;color:#e2d0c3;font-size:14px;font-weight:400;min-width:0}
.studio-profile .studio-preferences .field,.profile-handle-field{display:block;width:100%;min-width:0;box-sizing:border-box;margin-top:8px;min-height:48px;padding:12px 14px;border:1px solid #b69c8f66;border-radius:9px;background:#ede3d606;color:#ede3d6;font:400 15px/1.5 var(--sans)}
.studio-profile .field::placeholder,.profile-handle-field input::placeholder{color:#c5ab9d;opacity:1}
.studio-profile :is(input,textarea){caret-color:#ede3d6}
.studio-profile ::selection{background:#ede3d6;color:#3b0a10}
.profile-handle-field{display:flex;align-items:center;gap:6px}
.profile-handle-field>span{color:#cdb6ad}
.profile-handle-field input{width:100%;min-width:0;background:transparent;color:inherit;border:0;padding:0;font:inherit;outline:none}
.profile-handle-field:focus-within{outline:2px solid #ead0b7;outline-offset:3px}
.profile-handle-field input:focus-visible{outline:none}
.studio-preferences .profile-instagram-help{display:block;margin:8px 0 0;font-size:12px;font-weight:400;line-height:1.6;color:#cdb6ad}
.profile-bio-label{grid-column:1/-1}
.profile-bio-label>span{font-size:12px;color:#cdb6ad;margin-left:6px}
.studio-profile .studio-preferences textarea{min-height:110px;resize:vertical;scrollbar-width:none}
.profile-bio-label small{display:block;text-align:right;font-size:12px;color:#cdb6ad;font-weight:400;font-variant-numeric:tabular-nums;margin-top:6px}
.profile-save{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--settings-rule);margin-top:26px;padding-top:22px}
.profile-save .primary{min-height:48px;padding:12px 23px;border-radius:9px;white-space:nowrap;font-size:14px}
.profile-save #profile-feedback{font-size:12px;line-height:1.65;margin:0;max-width:36ch}
.profile-account-summary{padding-left:30px;border-left:1px solid var(--settings-rule);min-width:0}
.profile-account-summary dl{margin:24px 0 0}
.profile-account-summary dl>div{margin-bottom:20px}
.profile-account-summary dt{font-size:12px;color:#cdb6ad;margin-bottom:5px}
.profile-account-summary dd{margin:0;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.profile-account-summary .studio-access-label{font-size:12px;border-radius:5px;padding:7px 11px}
.profile-refresh{display:inline-flex;align-items:center;gap:8px;min-height:44px;background:none;border:0;padding:0;color:#d8c4b6;font:400 13px var(--sans)}
.profile-refresh svg{width:16px;height:16px}
.profile-account-options{border-top:1px solid var(--settings-rule);margin-top:18px;padding-top:25px}
.profile-account-options h2{font-size:15px;margin-bottom:12px}
.profile-account-options button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;background:none;border:0;border-bottom:1px solid #ede3d61b;padding:10px 0;color:#ede3d6;font:400 14px var(--sans);text-align:left}
.profile-account-options svg{width:16px;height:16px;color:#cdb6ad}
.profile-account-summary .studio-delete-link{font-size:12px;min-height:44px;margin-top:20px;padding:0;color:#d8b8ae}
.profile-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.studio-profile fieldset:disabled{opacity:.65}
.studio-profile button:disabled{opacity:.55;cursor:wait}
body[data-gate="pending"] .studio-profile{width:100%}
@media(max-width:1000px){.member-layout{gap:28px;grid-template-columns:minmax(0,1.4fr) minmax(220px,1fr)}.profile-fields{grid-template-columns:1fr}.profile-account-summary{padding-left:24px}}
@media(max-width:760px){
 .studio-profile{padding-top:10px}
 .studio-profile h1{margin-bottom:26px;font-size:39px}
 .member-identity{gap:20px;align-items:flex-start;padding-bottom:28px;margin-bottom:28px}
 .profile-portrait{width:96px;height:96px;font-size:44px}
 .profile-camera{width:34px;height:34px;bottom:-1px;right:-1px}
 .studio-profile .profile-display-name{font-size:27px}
 .profile-display-specialty{font-size:13px}
 .profile-photo-actions{gap:4px 16px;margin-top:8px}
 .member-layout{grid-template-columns:1fr;gap:32px}
 .profile-fields{grid-template-columns:1fr 1fr;gap:20px 14px}
 .studio-profile .studio-preferences :is(.field,input){font-size:16px}
 .profile-save{flex-direction:column;align-items:stretch;gap:16px}
 .profile-save .primary{width:100%;justify-content:center}
 .profile-account-summary{border-left:0;border-top:1px solid var(--settings-rule);padding:26px 0 0}
 .profile-account-summary dl{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
 .profile-account-summary dl>div:last-child{grid-column:1/-1}
}
@media(max-width:420px){.profile-fields{grid-template-columns:1fr}.member-identity{gap:16px}.profile-portrait{width:84px;height:84px;font-size:39px}.profile-camera{width:32px;height:32px;padding:5px}.profile-photo-note{font-size:11px}.studio-profile .profile-display-name{font-size:25px}}
@media(prefers-reduced-motion:no-preference){.studio-profile :is(button,input,textarea){transition:background-color .16s ease,border-color .16s ease}}

.avatar:has(img),.studio-member-mark:has(img){padding:0;overflow:hidden}

/* The full navigation stays available on a compact, swipeable mobile rail. */
#nav .nav-mobile-label{display:none}
@media(max-width:760px){
 .sidebar{height:calc(68px + env(safe-area-inset-bottom,0px));padding:0 6px env(safe-area-inset-bottom,0px);overflow:hidden}
 .shell{padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
 #nav{display:flex;justify-content:flex-start;align-items:stretch;gap:2px;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:0 4px;box-sizing:border-box}
 #nav::-webkit-scrollbar{display:none}
 .sidebar #nav .nav-button{display:flex;flex:0 0 76px;width:76px;min-width:76px;min-height:64px;justify-content:center;gap:6px;padding:9px 3px 7px;margin:0;scroll-snap-align:center;border-radius:0;background:none}
 #nav .nav-button[data-page="inicio"]{order:0}
 #nav .nav-button[data-page="catalogo"]{order:1}
 #nav .nav-button[data-page="buscar"]{order:2}
 #nav .nav-button[data-page="criar"]{order:3}
 #nav .nav-button[data-page="planejar"]{order:4}
 #nav .nav-button[data-page="favoritos"]{order:5}
 #nav .nav-button[data-page="minhas"]{order:6}
 #nav .nav-button[data-page="mais"]{order:7}
 #nav .nav-button[data-page="administrar"]{order:8}
 #nav .nav-button .nav-desktop-label{display:none}
 #nav .nav-button .nav-mobile-label,#nav .nav-button.mobile-more span,#nav .nav-button[data-page="administrar"] span{display:block;font-size:10px;line-height:1.25;font-weight:400;letter-spacing:0;white-space:nowrap}
 #nav .nav-button[data-page="criar"] span:after{content:none}
 #nav .nav-button svg{width:21px;height:21px;flex-shrink:0}
 #nav .nav-button.active .nav-mobile-label,#nav .nav-button.mobile-more.active span{font-weight:600}
 #nav .nav-button:focus-visible{outline:2px solid #ede3d6;outline-offset:-5px}
}
