/* Wex Records — shared label identity. Component layouts live in label-*.css. */
:root {
  --bg: #0c0c10;
  --panel: #17151d;
  --panel-raised: #211e28;
  --paper: #faf4f8;
  --soft: #d4cbd5;
  --muted: #a99eaf;
  --pink: #ff248e;
  --edge: #eee0f01b;
  --surface-edge: #f2deec25;
  --accent-wash: #ff248e13;
  --action-fill: linear-gradient(115deg,#ff91c7 0%,#ff53ab 42%,#ff248e 100%);
  --action-hover: linear-gradient(115deg,#ffabd5 0%,#ff6db8 42%,#ff409f 100%);
  --label-ease: cubic-bezier(.22,.68,0,1);
  --gutter: clamp(16px,3.5vw,56px);
}
html { scroll-padding-top: 118px; scrollbar-color: #71516a #0c0c10; }
body { font-size: 1rem; line-height: 1.65; letter-spacing: -.015em; --ambient-line-opacity: .38; --ambient-glow-opacity: .76; }
body[data-view="home"] { --ambient-line-opacity: .52; --ambient-glow-opacity: .95; }
.ambient-scene {
  background: radial-gradient(ellipse at 16% 0%,#391426 0,transparent 45%),radial-gradient(ellipse at 95% 55%,#25192666,transparent 48%),#0c0c10;
}
.ambient-glow-one { background: radial-gradient(ellipse,#ff14804d 0%,#ff248e1b 28%,transparent 65%); }
.ambient-glow-two { background: radial-gradient(ellipse,#ec40972d 0%,#bd438217 26%,transparent 65%); }
.ambient-lines { background-position: center 14vh; opacity: var(--ambient-line-opacity); }
.ambient-scene::after { background: linear-gradient(180deg,#0c0c1000 10%,#0c0c1033 65%,#0c0c1077); }
.page-shell { max-width: 1664px; }
.masthead {
  position: sticky; top: 12px; z-index: 35;
  height: 84px; gap: 20px; margin: 16px auto 10px; padding: 0 18px 0 10px;
  border: 1px solid #f4d6e523; border-image: none; border-radius: 24px;
  background: linear-gradient(115deg,#19131ddb,#111015ec 65%);
  box-shadow: inset 0 1px 0 #ffffff07,0 10px 35px #0003;
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.masthead::after { content:""; position:absolute; pointer-events:none; bottom:-1px; left:6%; width:35%; height:1px; background:linear-gradient(90deg,transparent,#ff55aa80,transparent); }
.masthead .wordmark { width: 250px; margin-left: 4px; }
.masthead .wordmark img { filter: drop-shadow(0 4px 12px #0002); }
.masthead nav { gap: 4px; padding: 5px; border: 0; border-radius: 15px; background: #08070a38; box-shadow: none; }
.masthead .nav-key { position:relative; display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:9px 15px; border-radius:11px; font-size:.875rem; font-weight:600; color:#b7aeba; white-space:nowrap; transition:color .18s,background .18s,box-shadow .18s; }
.masthead .nav-key[aria-current="page"] { color:#fff1f8; background:linear-gradient(135deg,#ff2c9226,#ff2c920d); box-shadow:inset 0 0 0 1px #ff6cb441; }
.masthead .nav-key[aria-current="page"]::after { content:""; position:absolute; height:2px; bottom:4px; left:30%; right:30%; border-radius:2px; background:#ff469f; box-shadow:0 0 9px #ff248e55; }
.masthead .nav-key:hover { color:#fff4fa; background-color:#ffffff06; }
.masthead .nav-key.profile { margin-left:3px; border-color:#f1d3e61d; gap:7px; }
.masthead #auth-nav { gap:4px; }
.masthead #auth-nav .auth-nav-exit { width:32px; min-height:36px; color:#a194a5; }
.masthead .auth-nav-register { color:#ff92c6; }
#main-content { min-height:50vh; }
#main-content > :is(.section,.commerce-page,.auth-page,.support-page,.studio-layout,.home-page) { animation:label-page-in .35s var(--label-ease) both; }
.section { max-width:1320px; padding:40px 0; }
.section-title { gap:18px; margin-bottom:28px; }
.section h1,.commerce-heading h1,.studio-heading h1 { font-weight:750; letter-spacing:-.055em; text-shadow:none; }
.section h1 { font-size:clamp(2rem,3.1vw,3rem); line-height:1.13; }
.section h2,.panel h2,.dialog-inner h2 { font-weight:700; letter-spacing:-.035em; }
.section h3 { font-weight:650; }
.subtle,.field-hint { color:var(--muted); line-height:1.65; }
.subtle { font-size:.875rem; }
.panel,.empty,.job,.commerce-block {
  border:1px solid var(--surface-edge); border-radius:22px;
  background:linear-gradient(135deg,#211c25f2,#141218fa 80%);
  box-shadow:inset 0 1px 0 #ffffff05,0 15px 36px -25px #000c;
}
.empty { padding:clamp(24px,4vw,46px); align-items:center; }
.empty h2,.empty h3 { color:var(--paper); }
.empty p { max-width:58ch; font-size:1rem; }
.empty-icon { min-width:50px; height:50px; border-radius:16px; background:linear-gradient(145deg,#ff248e25,#ff248e08); border:1px solid #ff69b438; }
:is(.primary,.home-primary,.key,.home-secondary,.preset-chip,.round-key) { border-radius:11px; font-weight:600; }
:is(.primary,.home-primary) { min-height:44px; padding:11px 20px; font-size:.875rem; color:#2a071b; border-color:#ffb5dba3; box-shadow:inset 0 1px 0 #ffffff7a,0 5px 22px #ff248e26; }
.key { min-height:38px; padding:9px 13px; color:#e0d6e1; font-size:.875rem; border-color:#ead1e024; background:linear-gradient(150deg,#ffffff07,#ffffff02); box-shadow:inset 0 1px 0 #ffffff05; }
.key.mini { min-height:34px; padding:7px 11px; font-size:.8125rem; }
.minor { font-size:.8125rem; color:#bdb0c2; }
.round-key { border-radius:10px; }
:is(button,a,input,textarea,select,summary,[role="button"]):focus-visible { outline:2px solid #ff8cc3; outline-offset:4px; }
:is(button,input,textarea,select):disabled { opacity:.48; }
.key.danger,.minor.danger { color:#ff9db8; }
.field { min-width:0; }
.field > span { color:#ddd0df; font-size:.875rem; font-weight:600; letter-spacing:-.01em; }
.field input,.field textarea,.field select,.search,.prompt,.catalog-search {
  border:1px solid #e8d1e123; border-radius:12px; background-color:#0c0b11b8;
  color:#f3eaf3; font-size:.9375rem; line-height:1.55;
  box-shadow:inset 0 2px 7px #0002; transition:border-color .18s,box-shadow .18s,background-color .18s;
}
.field input:not([type="checkbox"]):not([type="range"]),.field select,.search,.catalog-search { min-height:44px; }
.field input::placeholder,.field textarea::placeholder,.search::placeholder,.prompt::placeholder,.catalog-search::placeholder { color:#8f8498; opacity:1; }
.field input:focus,.field textarea:focus,.field select:focus,.search:focus,.prompt:focus,.catalog-search:focus { border-color:#ff55a7b3; background-color:#16101a; box-shadow:0 0 0 3px #ff248e12; outline-offset:1px; }
.field > small { display:block; font-size:.75rem; color:#a99caf; line-height:1.65; }
.field select { appearance:none; padding-right:38px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23d2bdcc' stroke-width='1.7'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-position:right 13px center; background-repeat:no-repeat; }
.field select option { background:#19151e; color:#faf4f8; }
input[type="checkbox"] { width:17px; height:17px; flex-shrink:0; accent-color:#ff3a9b; }
input[type="range"] { accent-color:#ff459f; cursor:pointer; }
#connection:not([hidden]) { margin:18px auto 0; max-width:1320px; padding:12px 17px; border:1px solid #ff8db63b; border-radius:12px; background:#311627; color:#f0c4da; font-size:.875rem; }
.form-error { font-size:.875rem; color:#ff9fb9; line-height:1.65; }
dialog { border:1px solid #e9b7d140; border-radius:24px; background:radial-gradient(ellipse at 100% 0,#ff248e0f,transparent 45%),#19141e; box-shadow:0 32px 100px #0009,inset 0 1px 0 #ffffff0c; }
dialog::backdrop { background:#060509b8; backdrop-filter:blur(9px); -webkit-backdrop-filter:blur(9px); }
#dialog[open] { animation:label-dialog-in .2s var(--label-ease); }
.dialog-inner { padding:28px; }
.dialog-head { margin-bottom:22px; padding-bottom:18px; border-bottom:1px solid #ecd9e51b; }
.dialog-head h2 { font-size:1.375rem; }
.dialog-head .round-key { background:#ffffff05; border:1px solid #ffffff12; }
.dialog-text { font-size:1rem; line-height:1.7; color:#d0c1d3; }
.dialog-actions { gap:10px; margin-top:24px; }
#notices { z-index:10060; }
.notice { border:1px solid #ff73b448; border-radius:15px; background:linear-gradient(135deg,#322033,#1c1621); color:#fce8f4; box-shadow:0 12px 35px #0006; padding:14px 18px; font-size:.875rem; line-height:1.55; }
.studio-help-trigger { color:#e6b6cf; border-color:#f4a0ce50; }
.studio-help-tooltip { width:370px; border-radius:18px; font-size:.9375rem; line-height:1.65; background:linear-gradient(145deg,#2a1d2c,#17121d); border-color:#ff86be4d; }
.studio-help-tooltip > strong { font-size:1rem; }
.site-legal { max-width:1440px; margin-top:46px; padding:24px 0 18px; gap:10px 24px; color:#a497ab; font-size:.75rem; letter-spacing:0; border-top-color:#ddc0d11e; }
.site-legal #site-copyright { color:#e6d7e4; font-weight:650; }
.site-legal > a { margin-left:auto; color:#eeafcf; text-underline-offset:5px; }
.site-legal > a:hover { color:#ff86c1; text-decoration:underline; }
@keyframes label-page-in { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:none; } }
@keyframes label-dialog-in { from { opacity:0; transform:translateY(8px) scale(.985); } to { opacity:1; transform:none; } }
@media (max-width:1100px) {
  .masthead { padding-right:10px; gap:12px; }
  .masthead .wordmark { width:222px; }
  .masthead .nav-key { padding:9px 11px; }
}
@media (max-width:760px) {
  html { scroll-padding-top:132px; }
  .masthead { top:7px; height:auto; min-height:0; flex-direction:column; align-items:stretch; gap:5px; padding:6px 8px 8px; margin-top:8px; border-radius:19px; background:linear-gradient(120deg,#20131fef,#100e15f5 70%); border-color:#f6bfda25; box-shadow:inset 0 1px 0 #ffffff09,0 8px 26px #0003; }
  .masthead .wordmark { width:clamp(150px,42vw,184px); height:48px; margin:0 0 0 3px; overflow:visible; display:flex; align-items:center; align-self:flex-start; }
  .masthead .wordmark img { width:100%; height:100%; object-fit:contain; object-position:left center; }
  .masthead nav { width:100%; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:3px; gap:3px; border:1px solid #eed5e515; border-radius:13px; background:#09080d7a; }
  .masthead #auth-nav { display:contents; }
  .masthead .nav-key,.masthead #auth-nav .nav-key { min-width:0; min-height:42px; padding:8px 4px; font-size:clamp(11px,3.1vw,13px); line-height:1.25; border-radius:10px; -webkit-tap-highlight-color:transparent; }
  .masthead .nav-key[aria-current="page"] { background:linear-gradient(135deg,#ff379b2e,#ff379b13); box-shadow:inset 0 0 0 1px #ff7bb83b,0 2px 7px #0002; }
  .masthead .nav-key[aria-current="page"]::after { bottom:3px; left:38%; right:38%; height:2px; }
  .masthead .nav-key.profile { margin:0; gap:4px; border-color:transparent; }
  .masthead .nav-key.profile span { display:inline; }
  .masthead .nav-key.profile svg { display:none; }
  .masthead #auth-nav .auth-nav-exit { position:absolute; top:11px; right:12px; display:flex; width:40px; min-height:40px; padding:8px!important; border:1px solid #efd1e223; background:#ffffff04; color:#c6adbd; border-radius:12px; }
  .masthead .nav-key[href="#library"] { display:flex; }
  .masthead:has(.auth-nav-register) nav { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .masthead:has(.auth-nav-register) .nav-key[href="#library"] { display:none; }
  .masthead #auth-nav .auth-nav-register { position:absolute; top:11px; right:12px; display:inline-flex; min-height:38px; padding:8px 11px; font-size:12px; border:1px solid #ff82be4d; border-radius:11px; color:#ffc1df; background:linear-gradient(120deg,#ff278d23,#ff278d0d); box-shadow:inset 0 1px 0 #ffd4e80c; }
  .section { padding:26px 0; }
  .section-title { gap:14px; margin-bottom:22px; }
  .field input,.field textarea,.field select,.search,.prompt,.catalog-search { font-size:1rem; }
  .site-legal { margin-top:30px; padding-top:22px; gap:8px 18px; }
  .site-legal > a { margin-left:0; }
  .site-legal > span:nth-child(2) { flex-basis:100%; }
  .dialog-inner { padding:22px; }
}
@media (prefers-reduced-motion:reduce) {
  #main-content > :is(.section,.commerce-page,.auth-page,.support-page,.studio-layout,.home-page),#dialog[open] { animation:none; }
  .masthead .nav-key,.field input,.field textarea,.field select,.search,.prompt { transition:none; }
}
@media (forced-colors:active) {
  .masthead,dialog,.panel,.empty,.job { background:Canvas; border-color:CanvasText; box-shadow:none; }
  .masthead::after,.masthead .nav-key::after { display:none; }
  .field select { appearance:auto; background-image:none; }
}
