/* ESC APPS - shared look. Gold on black, Oswald. */
@font-face { font-family: "Oswald"; font-weight: 400; font-display: swap; src: url("/assets/fonts/oswald-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("/assets/fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url("/assets/fonts/oswald-latin-700-normal.woff2") format("woff2"); }

:root {
  --gold: #d4af37;
  --gold-hi: #ffd24a;
  --bg: #0a0a0a;
  --panel: #16161a;
  --panel-2: #1f1f26;
  --header: #0a0a0a;
  --line: #4a4436;
  --text: #f5f0dd;
  --muted: #8a8371;
  --red: #c0392b;
  --green: #4caf7d;
}
/* The globe/studio theme set (same 8 presets, same colours as ESC STUDIO).
   ESC Gold above is the default. Label Theme is the partner slot and
   currently carries the ESC Gold colours, as in the studio. */
[data-theme="esc-daylight"] {
  --gold: #a07a30; --gold-hi: #d4af37; --bg: #f2ede3; --panel: #fbf8f1;
  --panel-2: #ffffff; --header: #efe8d8; --line: #b0a892; --text: #1c1a16;
  --muted: #6e675a; --red: #a93226; --green: #2e7d5b;
}
[data-theme="midnight-purple"] {
  --gold: #a78bfa; --gold-hi: #e8c04a; --bg: #0d0a14; --panel: #171226;
  --panel-2: #1f1932; --header: #0d0a14; --line: #4a4370; --text: #e8e2f5;
  --muted: #8a82a3; --red: #c0392b; --green: #4caf7d;
}
[data-theme="studio-teal"] {
  --gold: #2dd4bf; --gold-hi: #ffd24a; --bg: #081110; --panel: #0f1c1a;
  --panel-2: #152825; --header: #081110; --line: #42564f; --text: #e2f0ec;
  --muted: #7d938c; --red: #c0392b; --green: #4caf7d;
}
[data-theme="amber-console"] {
  --gold: #e8862e; --gold-hi: #f5a623; --bg: #0f0b06; --panel: #1a1409;
  --panel-2: #241b0c; --header: #0f0b06; --line: #4a4130; --text: #f5ead2;
  --muted: #8a7d63; --red: #c0392b; --green: #4caf7d;
}
[data-theme="mono"] {
  --gold: #e8e8e8; --gold-hi: #f2f2f2; --bg: #0a0a0a; --panel: #141414;
  --panel-2: #1c1c1c; --header: #0a0a0a; --line: #4a4a4a; --text: #f2f2f2;
  --muted: #8a8a8a; --red: #c0392b; --green: #4caf7d;
}
[data-theme="label-theme"] {
  --gold: #d4af37; --gold-hi: #ffd24a; --bg: #0a0a0a; --panel: #16161a;
  --panel-2: #1f1f26; --header: #0a0a0a; --line: #4a4436; --text: #f5f0dd;
  --muted: #8a8371; --red: #c0392b; --green: #4caf7d;
}
[data-theme="high-contrast"] {
  --gold: #ffd24a; --gold-hi: #ffe27a; --bg: #000000; --panel: #0a0a0a;
  --panel-2: #141414; --header: #000000; --line: #6e6e6e; --text: #ffffff;
  --muted: #c8c8c8; --red: #ff5a4a; --green: #4caf7d;
}

/* 25 more themes (owner ask, Nov 20): variety pack. The five light
   ones (sakura, desert-sand, peach-sorbet, sky-paper, matcha) also
   flip logo ink to the dark variant, like esc-daylight. */
[data-theme="sunset-strip"] {
  --gold: #ff7847; --gold-hi: #ffb347; --bg: #140a0e; --panel: #1f1016;
  --panel-2: #29161e; --header: #140a0e; --line: #5a3542; --text: #f7e8e0;
  --muted: #a3837a; --red: #e5484d; --green: #4caf7d;
}
[data-theme="ultraviolet"] {
  --gold: #8b5cf6; --gold-hi: #c4b5fd; --bg: #0c0716; --panel: #150d26;
  --panel-2: #1d1433; --header: #0c0716; --line: #463366; --text: #ece7fa;
  --muted: #9587b8; --red: #e5484d; --green: #4caf7d;
}
[data-theme="crimson-noir"] {
  --gold: #e63946; --gold-hi: #ff6b5e; --bg: #120608; --panel: #1c0a0d;
  --panel-2: #260e12; --header: #120608; --line: #57262c; --text: #f6e3e1;
  --muted: #a37f7c; --red: #ff5a4a; --green: #4caf7d;
}
[data-theme="emerald-city"] {
  --gold: #10b981; --gold-hi: #6ee7b7; --bg: #06110c; --panel: #0c1d14;
  --panel-2: #12261b; --header: #06110c; --line: #2f5240; --text: #e2f2e8;
  --muted: #7fa08d; --red: #e5484d; --green: #4caf7d;
}
[data-theme="deep-ocean"] {
  --gold: #38bdf8; --gold-hi: #7dd3fc; --bg: #050d14; --panel: #0a1824;
  --panel-2: #0f2233; --header: #050d14; --line: #2c4a61; --text: #e0eef7;
  --muted: #7d97a8; --red: #e5484d; --green: #4caf7d;
}
[data-theme="copper-canyon"] {
  --gold: #d97b4f; --gold-hi: #f0a868; --bg: #110a06; --panel: #1c120a;
  --panel-2: #261910; --header: #110a06; --line: #57402c; --text: #f5e9dc;
  --muted: #a38a70; --red: #e5484d; --green: #4caf7d;
}
[data-theme="neon-tokyo"] {
  --gold: #ff2e88; --gold-hi: #ff7ac0; --bg: #0d0612; --panel: #180b22;
  --panel-2: #22102f; --header: #0d0612; --line: #55254f; --text: #f9e6f3;
  --muted: #a87ba0; --red: #e5484d; --green: #4caf7d;
}
[data-theme="forest-floor"] {
  --gold: #a3b86b; --gold-hi: #d4e79a; --bg: #0a0f06; --panel: #131a0d;
  --panel-2: #1a2413; --header: #0a0f06; --line: #445230; --text: #ecf2df;
  --muted: #93a37c; --red: #e5484d; --green: #4caf7d;
}
[data-theme="royal-amethyst"] {
  --gold: #b388ff; --gold-hi: #d8b4fe; --bg: #0e0817; --panel: #180f29;
  --panel-2: #211638; --header: #0e0817; --line: #4d3a6e; --text: #efe9fa;
  --muted: #9c8bb5; --red: #e5484d; --green: #4caf7d;
}
[data-theme="espresso"] {
  --gold: #c89b6a; --gold-hi: #e8c491; --bg: #0d0806; --panel: #17100b;
  --panel-2: #201711; --header: #0d0806; --line: #4f3d2f; --text: #f3e9dd;
  --muted: #a08b76; --red: #e5484d; --green: #4caf7d;
}
[data-theme="arctic-night"] {
  --gold: #6ec3df; --gold-hi: #a5e3f5; --bg: #070c10; --panel: #0e171d;
  --panel-2: #15222b; --header: #070c10; --line: #38505e; --text: #e6f2f7;
  --muted: #87a3b0; --red: #e5484d; --green: #4caf7d;
}
[data-theme="burgundy"] {
  --gold: #d4a24a; --gold-hi: #f0c46a; --bg: #120609; --panel: #1e0a10;
  --panel-2: #2a0f18; --header: #120609; --line: #5c2f3d; --text: #f7e9e6;
  --muted: #ab8a8c; --red: #e5484d; --green: #4caf7d;
}
[data-theme="cyber-lime"] {
  --gold: #a3e635; --gold-hi: #d9f99d; --bg: #0a0e04; --panel: #141c08;
  --panel-2: #1c290d; --header: #0a0e04; --line: #475c22; --text: #eff7dd;
  --muted: #97a87c; --red: #e5484d; --green: #4caf7d;
}
[data-theme="slate-storm"] {
  --gold: #94a3b8; --gold-hi: #cbd5e1; --bg: #0a0d12; --panel: #131922;
  --panel-2: #1a2330; --header: #0a0d12; --line: #3f4f63; --text: #e8edf3;
  --muted: #8b99ab; --red: #e5484d; --green: #4caf7d;
}
[data-theme="rose-gold"] {
  --gold: #e8a598; --gold-hi: #f7c8bc; --bg: #130a0a; --panel: #201211;
  --panel-2: #2a1917; --header: #130a0a; --line: #5c3d38; --text: #f9ebe7;
  --muted: #b08f88; --red: #e5484d; --green: #4caf7d;
}
[data-theme="midnight-oil"] {
  --gold: #f59e0b; --gold-hi: #fbbf24; --bg: #060809; --panel: #0d1114;
  --panel-2: #141a1f; --header: #060809; --line: #3d4a52; --text: #ecefe9;
  --muted: #8b969c; --red: #e5484d; --green: #4caf7d;
}
[data-theme="lavender-haze"] {
  --gold: #c4a7e8; --gold-hi: #e6d7fa; --bg: #0f0c16; --panel: #1a1526;
  --panel-2: #241d36; --header: #0f0c16; --line: #50456e; --text: #f0ebfa;
  --muted: #a296ba; --red: #e5484d; --green: #4caf7d;
}
[data-theme="coral-reef"] {
  --gold: #ff7a66; --gold-hi: #ffa08a; --bg: #100807; --panel: #1e100c;
  --panel-2: #291711; --header: #100807; --line: #5f3a2e; --text: #f9eae4;
  --muted: #b08d7f; --red: #e5484d; --green: #4caf7d;
}
[data-theme="vintage-brass"] {
  --gold: #b08d3e; --gold-hi: #d9b45c; --bg: #0e0c07; --panel: #181410;
  --panel-2: #221c15; --header: #0e0c07; --line: #54492f; --text: #f2ecdc;
  --muted: #a2987d; --red: #e5484d; --green: #4caf7d;
}
[data-theme="glacier-mint"] {
  --gold: #5eead4; --gold-hi: #99f6e4; --bg: #060f0e; --panel: #0c1c1a;
  --panel-2: #122825; --header: #060f0e; --line: #2f524b; --text: #e4f5f1;
  --muted: #7fa8a0; --red: #e5484d; --green: #4caf7d;
}
[data-theme="sakura"] {
  --gold: #c24a7a; --gold-hi: #e87aa5; --bg: #faf1f2; --panel: #fffafa;
  --panel-2: #ffffff; --header: #f7e8ea; --line: #d9b3bc; --text: #2b1a1e;
  --muted: #8a6a72; --red: #b03050; --green: #2e7d5b;
}
[data-theme="desert-sand"] {
  --gold: #b0782e; --gold-hi: #d99a3d; --bg: #f5efe2; --panel: #fdf9ef;
  --panel-2: #ffffff; --header: #f0e7d3; --line: #c4b28f; --text: #241c10;
  --muted: #77694e; --red: #a93226; --green: #2e7d5b;
}
[data-theme="peach-sorbet"] {
  --gold: #d96f32; --gold-hi: #f59a56; --bg: #fdf2ea; --panel: #fffaf5;
  --panel-2: #ffffff; --header: #fae7d7; --line: #e0bda3; --text: #2b1a10;
  --muted: #96755e; --red: #a93226; --green: #2e7d5b;
}
[data-theme="sky-paper"] {
  --gold: #2f6fb2; --gold-hi: #4a90d9; --bg: #eef3f8; --panel: #f8fbfe;
  --panel-2: #ffffff; --header: #e2ebf4; --line: #aebfd2; --text: #14202e;
  --muted: #61758a; --red: #a93226; --green: #2e7d5b;
}
[data-theme="matcha"] {
  --gold: #6a8f3c; --gold-hi: #8fbc54; --bg: #f1f4e6; --panel: #fafcf3;
  --panel-2: #ffffff; --header: #e7edd3; --line: #bcc79e; --text: #1d2412;
  --muted: #6f7d55; --red: #a93226; --green: #2e7d5b;
}
/* The bare white wordmark needs its dark plate on the one light theme. */
.theme-pick { display: flex; align-items: center; gap: 6px; margin-left: 10px; }
.theme-pick select { padding: 5px 8px; font-size: 13px; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "Oswald", system-ui, sans-serif; letter-spacing: .02em; }
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--gold-hi); }
.esc-top { display: flex; align-items: center; gap: 12px; padding: 8px 18px 5px; border-bottom: 1px solid var(--line); background: var(--header); }
.esc-top .esc-hlogo { display: block; width: 64px; height: 50px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-mask: url("/assets/esc-studio-logo.png") center/102px 102px no-repeat; mask: url("/assets/esc-studio-logo.png") center/102px 102px no-repeat; }
.esc-top .brand { font-weight: 700; font-size: 20px; text-transform: uppercase; text-decoration: none; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.esc-top .brand small { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.esc-top nav { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.esc-top nav a { color: var(--muted); text-decoration: none; text-transform: uppercase; font-size: 14px; }
.esc-top nav a[aria-current="page"], .esc-top nav a:hover { color: var(--gold-hi); }
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { color: var(--gold); text-transform: uppercase; font-weight: 700; font-size: clamp(28px, 5vw, 44px); margin: 6px 0 4px; }
h2 { color: var(--gold); text-transform: uppercase; font-weight: 500; font-size: 20px; margin: 22px 0 10px; }
.lede { color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
button, .btn, select, input[type=number], input[type=text] {
  font-family: inherit; font-size: 15px; letter-spacing: .03em; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px;
}
button, .btn { cursor: pointer; text-transform: uppercase; color: var(--gold-hi); text-decoration: none; display: inline-block; }
button:hover, .btn:hover { border-color: var(--gold); }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
button.primary, .btn.primary { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }
button.primary:hover, .btn.primary:hover { background: var(--gold-hi); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.on { background: var(--gold); color: #000; }
label { color: var(--muted); font-size: 14px; text-transform: uppercase; }
input[type=range] { accent-color: var(--gold); }
.muted { color: var(--muted); }
.status { color: var(--muted); font-size: 14px; min-height: 1.4em; margin-top: 10px; }
.status.err { color: var(--red); }
.apps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1000px) { .apps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .apps { grid-template-columns: repeat(2, 1fr); } }
.apps a.card { text-decoration: none; color: var(--text); display: block; }
.apps a.card:hover { border-color: var(--gold); }
.apps a.card b { display: block; color: var(--gold); font-size: 22px; text-transform: uppercase; }
.apps a.card span { color: var(--muted); font-size: 14px; }
.esc-foot { border-top: 1px solid var(--line); padding: 14px 18px; color: var(--muted); font-size: 13px; text-align: center; line-height: 1.6; }
.esc-foot b { color: var(--gold); }
.notice-list li { margin-bottom: 10px; }
.notice-list code { color: var(--gold-hi); }
@media (max-width: 600px) {
  .esc-top { flex-wrap: wrap; }
  .esc-top nav { margin-left: 0; width: 100%; }
  main { padding: 14px 10px 30px; }
}
.hero-logo + h1 { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-logo { display:block; width:150px; height:116px; margin: 4px 0 8px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-mask: url("/assets/esc-studio-logo.png") center/238px 238px no-repeat; mask: url("/assets/esc-studio-logo.png") center/238px 238px no-repeat; }
.dl-ready { display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.dl-row { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.dl-link { display:inline-block; padding:8px 14px; border-radius:8px; border:1px solid var(--gold-hi); background:var(--gold); color:#000; font-weight:600; text-decoration:none; overflow-wrap:anywhere; }
.dl-link:focus-visible { outline:2px solid var(--gold-hi); outline-offset:2px; }

/* ESC account (quick sign-in / sign-up in the shared header) */
.esc-acct { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.esc-top .esc-acct { margin-left: 10px; }
.esc-acct-btn { background: var(--gold); color: #111; border: 0; border-radius: 6px; padding: 7px 14px; font: 600 13px Oswald, sans-serif; letter-spacing: .04em; cursor: pointer; }
.esc-acct-btn:hover { background: var(--gold-hi); }
.esc-acct-name { font-size: 13.5px; color: var(--text); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esc-acct-pic { width: 26px; height: 26px; border-radius: 50%; }
.esc-acct-modal { position: fixed; inset: 0; background: rgba(0,0,0,.62); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; z-index: 4000; }
.esc-acct-card { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; max-width: 380px; width: 100%; padding: 22px 22px 16px; position: relative; box-shadow: var(--shadow, 0 18px 50px rgba(0,0,0,.5)); }
.esc-acct-card h2 { margin: 0 0 14px; font: 600 20px Oswald, sans-serif; color: var(--gold); letter-spacing: .05em; }
.esc-acct-x { position: absolute; top: 8px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; }
.esc-gbtn { display: flex; justify-content: center; min-height: 44px; }
.esc-acct-or { text-align: center; color: var(--muted); font-size: 12.5px; margin: 12px 0 8px; }
.esc-acct-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.esc-acct-tabs button { flex: 1; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font: 600 13px Oswald, sans-serif; cursor: pointer; }
.esc-acct-tabs button.on { color: var(--gold); border-color: var(--gold); }
.esc-acct-card label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.esc-acct-card input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; font-size: 14.5px; }
.esc-acct-go { width: 100%; background: var(--gold); color: #111; border: 0; border-radius: 6px; padding: 11px; font: 600 14.5px Oswald, sans-serif; letter-spacing: .04em; cursor: pointer; margin-top: 2px; }
.esc-acct-go:hover { background: var(--gold-hi); }
.esc-acct-msg { font-size: 13.5px; color: var(--text); min-height: 18px; margin: 10px 0 0; }
.esc-acct-resend { background: none; border: 0; color: var(--gold); font-size: 13px; cursor: pointer; padding: 4px 0; text-decoration: underline; }

.esc-acct-card [hidden] { display: none !important; }
