/* Hunting 4 It studio: the public site's palette, metal, stars and typography. */
:root {
  --ink:#ecf7ff; --muted:#a9bfd1; --line:#b6d7ef30; --accent:#8fcfff;
  --selection-accent:#e0f5ff;
  --selection-glow:0 0 0 1px #ffffffbb,-5px 0 16px #ff345b80,5px 0 18px #269bff99,0 0 12px #a1e2ff55;
  --panel:#10263b;
  --flag-text:linear-gradient(105deg,#fff 0%,#fff 18%,#d7ecff 34%,#78bdff 48%,#fff 62%,#d72f3f 82%,#ff7d86 100%);
  --flag-material:linear-gradient(115deg,#b62d47 0%,#a33e5f 24%,#e8edf5 49%,#4580b3 70%,#15528c 100%);
  --blue-material:linear-gradient(115deg,#15528c 0%,#4580b3 24%,#e8edf5 49%,#4580b3 70%,#15528c 100%);
}
body.studio {
  margin:0; color:var(--ink); font-family:"Avenir Next","Segoe UI",system-ui,sans-serif;
  background:repeating-linear-gradient(-14deg,#ffffff0c 0 18px,#ffffff02 18px 36px),radial-gradient(#ffffff1c 1px,transparent 1px),linear-gradient(135deg,#04111d 0%,#082746 42%,#0b4f59 100%);
  background-size:auto,8px 8px,cover; background-attachment:fixed;
}
.studio button,.studio .button-label,.studio input,.studio select,.studio textarea {font-family:inherit;}
.studio button,.studio .button-label {transition:background .16s,border-color .16s,box-shadow .16s;}
.studio button:disabled {opacity:.42;cursor:not-allowed;}
.studio :is(button,a,input,select,textarea):focus-visible {outline:2px solid #b8e3ff;outline-offset:3px;}
.studio [hidden] {display:none!important;}
.skip-link {position:fixed;z-index:9999;left:20px;top:-80px;padding:12px 18px;background:#fff;color:#09213a;border-radius:8px;font-weight:800;}
.skip-link:focus {top:12px;}
.studio .h4-header-inner {min-height:96px;padding:14px 30px;gap:24px;max-width:1640px;}
.studio .h4-brand img {width:300px;max-height:70px;}
.studio .h4-header .h4-nav {gap:9px;}
.studio .h4-header .h4-nav-link {min-height:48px;padding:11px 12px;font-size:12px;}
.studio-shell {--inspector-width:414px;--studio-gap:24px;max-width:1600px;margin:auto;padding:22px 30px 24px;}
.studio-heading {display:grid;grid-template-columns:minmax(0,1fr) var(--inspector-width);align-items:center;gap:var(--studio-gap);margin-bottom:18px;min-height:92px;}
.eyebrow {margin:0 0 5px;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#b5cce1;line-height:1.4;}
.studio-heading h1 {font-size:34px;line-height:1.1;font-weight:900;letter-spacing:-1.1px;margin:0;}
.studio-heading h1 span {background:var(--flag-text);background-clip:text;-webkit-background-clip:text;color:transparent;filter:drop-shadow(0 2px 0 #03091680);}
.studio-intro {margin:0;color:#b7d0e3;text-align:right;font-size:12px;line-height:1.7;}
.studio-intro strong {color:#e6f3ff;}
.studio-heading-actions {display:flex;align-items:center;justify-content:center;min-width:0;gap:12px;}
/* Keep star sizes and edge positions above the generic button:hover reset. */
.studio .brand-button {
  display:inline-flex;align-items:center;justify-content:center;gap:9px;position:relative;
  min-height:46px;padding:13px 18px;border:1px solid #c1dcf1;border-radius:10px;text-decoration:none;
  color:#fff;font-size:12px;font-weight:800;text-shadow:0 1px 3px #071421;
  background-image:url('./assets/brand/panel-stars.svg'),url('./assets/brand/panel-stars.svg'),linear-gradient(180deg,#0b192526,#09162799 45%,#0916278c 70%,#09162726),var(--flag-material);
  background-size:160px 12px,160px 12px,100% 100%,100% 100%;background-position:top center,bottom center,center,center;background-repeat:repeat-x,repeat-x,no-repeat,no-repeat;
  box-shadow:0 3px 0 #132b44,-4px 0 16px #ed476c25,4px 0 18px #46b8ff30,inset 0 1px 0 #ffffff75;
}
.brand-button svg {width:18px;height:18px;flex-shrink:0;color:#b9dfff;}
.studio .brand-button {transition:box-shadow .2s ease,border-color .2s ease,text-shadow .2s ease,transform .2s ease;}
.studio .brand-button:is(:hover,:focus-visible,:active,[aria-busy="true"],[aria-expanded="true"]) {
  filter:none;background-color:transparent;
  background-image:url('./assets/brand/panel-stars.svg'),url('./assets/brand/panel-stars.svg'),linear-gradient(180deg,#ffffff44,#09162726 45%,#09162733 70%,#ffffff33),linear-gradient(115deg,#ff244b 0%,#ef557a 24%,#ffffff 49%,#50baff 70%,#087aff 100%);
  border-color:#e0f5ff;color:#fff;
  text-shadow:0 2px 3px #071421,0 0 5px #071421,0 0 12px #071421cc;
  box-shadow:0 0 0 2px #ffffffbb,-10px 0 30px #ff345bcc,10px 0 30px #269bffdd,0 0 44px #a1e2ff99,inset 0 0 16px #ffffff77,0 5px 0 #123658;
  transform:translateY(-2px);
}
.studio .brand-button:active {transform:translateY(1px);}
.studio .brand-button:is(:hover,:focus-visible,:active,[aria-busy="true"],[aria-expanded="true"]) svg {color:#fff;}
.studio .export-button {width:225px;max-width:100%;min-width:0;min-height:62px;padding:12px 10px;gap:8px;border-radius:10px;font:800 24px/1.2 Arial,Helvetica,sans-serif;white-space:nowrap;text-shadow:0 2px 3px #071421,0 0 8px #071421;}
.studio .export-button svg {width:24px;height:24px;color:#e0f5ff;}
.studio .export-button:disabled {opacity:1;cursor:wait;}
.studio .app {display:grid;grid-template-columns:minmax(0,1fr) var(--inspector-width);gap:var(--studio-gap);min-height:560px;height:calc(100dvh - 252px);}
.brand-panel {
  border:1px solid #c1dcf17a;border-radius:13px;
  background-image:linear-gradient(180deg,#0b192540,#091627e8 18%,#091627e8 85%,#09162780),var(--blue-material);
  box-shadow:0 3px 0 #132b44,-5px 0 20px #46b8ff16,5px 0 22px #46b8ff20,inset 0 1px 0 #ffffff40;
}
.studio .workbench {display:flex;flex-direction:column;min-width:0;height:100%;padding:0;overflow:hidden;}
.preview-bar {display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0;padding:20px 24px 15px;border-bottom:1px solid #b8d7ed1f;background:url('./assets/brand/panel-stars.svg') top center/160px 12px repeat-x;}
.preview-heading {display:flex;align-items:center;gap:10px;min-width:0;}
.preview-heading > div {min-width:0;}
.preview-dot {height:7px;width:7px;flex-shrink:0;border-radius:50%;background:#30ceb0;box-shadow:0 0 12px #30ceb04d;}
.preview-heading .eyebrow {font-size:9px;letter-spacing:.13em;color:#adc8de;margin:0 0 2px;}
.preview-heading h2 {margin:0;font-size:15px;line-height:1.3;max-width:460px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.preview-zoom {display:flex;flex-shrink:0;gap:3px;padding:3px;border-radius:8px;background:#06142399;border:1px solid #9ebed832;}
.studio .preview-zoom button {min-height:29px;border:0;border-radius:5px;padding:5px 10px;background:transparent;color:#93b3cb;font-size:11px;}
.studio .preview-zoom button[aria-pressed="true"] {background:#2c5371;color:#fff;box-shadow:inset 0 1px 0 #ffffff20;}
.preview-viewport {flex:1;min-height:0;min-width:0;overflow:auto;display:flex;padding:35px 28px 25px;background:radial-gradient(ellipse at 50% 48%,#28689230,transparent 68%);scrollbar-width:thin;scrollbar-color:#547893 #0a1c2e;}
.card-scaler {position:relative;flex-shrink:0;margin:auto;width:500px;height:700px;}
.studio .card-stage {position:absolute;left:0;top:0;transform-origin:top left;margin:0;filter:drop-shadow(0 18px 28px #0009);}
.preview-caption {display:flex;justify-content:space-between;gap:12px;padding:0 24px 15px;flex-shrink:0;color:#a4bfd5;font-size:10px;line-height:1.5;font-weight:600;}
.preview-caption i {font-style:normal;padding:0 5px;color:#628ba9;}
.preview-footer {padding:14px 24px 20px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-shrink:0;border-top:1px solid #b8d7ed1f;background:url('./assets/brand/panel-stars.svg') bottom center/160px 12px repeat-x;}
.preview-hint {display:flex;align-items:center;gap:8px;font-size:11px;color:#c6daeb;margin:0;white-space:nowrap;}
.preview-hint svg {width:17px;height:17px;color:#9ac6e5;}
.studio .status {font-size:10px;line-height:1.5;margin:0;text-align:right;color:#a7c5dc;max-width:310px;}
.studio .status[data-state="saving"] {color:#c6e6ff;}
.studio .status[data-state="error"] {color:#ffb5bf;}
.studio .panel {font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.5;height:100%;padding:22px 18px;min-width:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#62839e #0e2338;scroll-padding-top:20px;}
.studio .panel-head {padding:3px 3px 18px;display:flex;justify-content:space-between;align-items:center;}
.studio .panel-head h2 {margin:0;font-weight:700;font-size:26px;letter-spacing:-.3px;line-height:1.2;}
.studio .panel-head .eyebrow {font-size:11px;font-weight:700;color:#e0edf7;}
.panel-target {width:24px;height:24px;flex-shrink:0;color:#d5f0ff;}
.preset-picker {padding:0 3px 18px;}
.preset-picker h3 {font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:#e0edf7;margin:0 0 9px;}
.studio .card-preset-buttons {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;}
.studio .card-preset-buttons button {position:relative;display:flex;align-items:center;gap:9px;min-height:78px;padding:12px 10px;text-align:left;border:1px solid #7aabc866;border-radius:9px;background:linear-gradient(160deg,#2d5570,#122a40);color:#f3f8fc;font-size:14px;font-weight:700;line-height:1.4;}
.card-preset-buttons svg {width:23px;height:27px;flex-shrink:0;color:#9bcaed;}
.studio .card-preset-buttons button[aria-pressed="true"] {background-image:linear-gradient(180deg,#09162750,#091627b0),var(--flag-material);border-color:#d6eaff;color:white;box-shadow:-3px 0 12px #ff345b24,3px 0 14px #269bff38,inset 0 1px 0 #ffffff40;}
.studio .card-preset-buttons button[aria-pressed="true"]::after {content:"";position:absolute;inset:-3px;border:1px solid #b0d5ed66;border-radius:11px;pointer-events:none;}
.studio .tab-view {padding:0 2px;}
.studio fieldset {min-width:0;margin:0 0 13px;padding:0 13px 13px;border:1px solid #83b5db38;border-radius:10px;background:#0b2033;box-shadow:inset 0 1px 0 #ffffff05;scroll-margin-top:20px;}
.studio fieldset > legend {float:left;width:100%;padding:0;margin:0 0 2px;font-size:16px;}
.studio .fieldset-content {clear:both;}
.studio .inspector-toggle {display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:0;border-radius:5px;background:transparent;padding:13px 0;min-height:50px;text-align:left;font-size:16px;font-weight:700;letter-spacing:0;color:#f5f9ff;box-shadow:none;}
.studio .inspector-toggle:hover {background:transparent;color:#fff;}
.inspector-toggle svg {width:14px;height:14px;color:#92b6d0;transition:transform .16s;}
.inspector-toggle[aria-expanded="false"] svg {transform:rotate(-90deg);}
.studio fieldset.is-collapsed {padding-bottom:0;}
.studio fieldset.is-collapsed > legend {margin:0;}
.studio fieldset::after {content:"";display:block;clear:both;}
.studio .panel fieldset.editing-active {padding:0 13px 13px;border:1px solid #90cfff;background:#102b43;box-shadow:0 0 0 2px #8fcfff12;}
.studio .panel fieldset.editing-active.is-collapsed {padding-bottom:0;}
.studio .panel fieldset.editing-active > legend {color:#e4f3ff;background:transparent;border-radius:0;padding:0;}
.studio .panel fieldset.editing-active textarea {border:1px solid #7db5df;background:#071b2c;}
.studio label {font-size:14px;font-weight:600;color:#dceaf5;text-transform:none;letter-spacing:0;margin-bottom:12px;}
.studio input,.studio select,.studio textarea {border:1px solid #5b829f66;background:#061828;color:#f5f9ff;border-radius:7px;padding:10px;font-size:16px;min-width:0;}
.studio textarea {line-height:1.5;resize:vertical;min-height:110px;}
.studio input[type="range"] {appearance:auto;accent-color:#89c7f2;padding:0;min-height:16px;background:transparent;border:0;}
.studio input[type="checkbox"] {accent-color:#76b9e9;}
.studio input[type="color"] {height:40px;padding:5px;}
.studio .panel :is(button,input,select,textarea):disabled {opacity:1;color:#b7c7d7;background-color:#172b3c;border-color:#40566b;cursor:not-allowed;}
.studio .panel input[type="range"]:disabled {opacity:.75;}
.studio .panel input:disabled::file-selector-button {color:#d1dce7;background:#2b4053;cursor:not-allowed;}
.studio .upload-zone {border:1px dashed #86b6d969;border-radius:8px;padding:12px;background:linear-gradient(145deg,#1a3b5540,#08223960);}
.studio .upload-zone input {padding:8px;background:#061829;font-size:13px;}
.studio .upload-zone input::file-selector-button {border:0;border-radius:4px;padding:6px 8px;background:#285777;color:#fff;font-weight:600;font-size:13px;margin-right:8px;cursor:pointer;}
.studio .upload-zone span {font-size:13px;font-weight:400;color:#c7d9e8;line-height:1.6;letter-spacing:0;}
.studio .actions {gap:7px;}
.studio .actions button,.studio .button-label {min-height:42px;padding:10px 7px;border-radius:6px;border-color:#6c9bb954;background:#1b3a53;color:#f1f7fc;font-size:14px;}
.studio button.danger {color:#ffafbb;background:#51243840;}
.studio .actions button:hover,.studio .button-label:hover {border-color:#a1ccea;background:#285675;}
.studio .template-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0;}
.studio .template-choice {padding:4px 3px;border:1px solid #71a0c34a;background:#0e263a;border-radius:6px;min-width:0;}
.studio .template-choice span {font-size:12px;font-weight:600;margin:6px 0 2px;color:#e5f1fa;}
.studio .template-choice.active {border-color:#dcefff;box-shadow:0 0 0 2px #84c5f063;}
.studio .chrome-choices {gap:7px;}
.studio .chrome-choices button {min-width:0;background:#102b40;border-color:#6893b452;font-size:13px;font-weight:600;line-height:1.5;padding:8px;gap:7px;}
.studio .chrome-swatch {height:30px;}
.studio .chrome-colors {gap:7px;grid-template-columns:repeat(6,minmax(0,1fr));}
.studio .chrome-colors button {height:29px;min-height:29px;border:1px solid #cce7ff40;border-radius:5px;}
.studio #chromeColorName {font-size:14px;color:#d5e5f2;margin:13px 0 9px;}
.studio .energy-types {gap:7px;}
.studio .energy-types button {background:#132d42;border-color:#648bab55;min-height:0;padding:4px;border-radius:6px;}
.studio #energyColorHeading {font-size:15px;font-weight:700;margin:16px 0 12px;color:#e5f1fa;}
.studio :is(#resetEnergyColors,#addEnergyBtn) {min-height:42px;font-size:14px;background:#1a3c57;border-color:#668fb158;padding:8px 12px;}
.studio #addEnergyBtn {width:100%;margin-top:8px;}
.studio .layout-controls label {display:flex;align-items:center;min-height:30px;text-transform:none;font-size:14px;letter-spacing:0;margin:4px 0;}
.studio .section-head {margin:4px 0 18px;}
.studio .section-head h2 {color:#ecf7ff;font-size:20px;}
.studio .section-head p {color:#c7d9e8;font-size:14px;line-height:1.5;}
.studio .section-head > button {font-size:11px;min-height:36px;padding:8px 12px;background:#245272;border-color:#7aaac8;}
.studio .layer-list {gap:8px;}
.studio .layer-row {grid-template-columns:35px 1fr auto;padding:10px;background:#0a2337;border-color:#7198b642;text-align:left;min-height:43px;font-size:11px;}
.studio .layer-row b {font-size:9px;color:#88bade;}
.studio .layer-row.active {background:#254c68;border-color:#9cd1f4;}
/* Match the Merch selection glow without changing the previewed finish. */
.studio .panel button[aria-pressed="true"],
.studio .panel .template-choice.active,
.studio .panel .layer-row.active,
.studio .panel fieldset.editing-active {
  border-color:var(--selection-accent);
  outline:2px solid var(--selection-accent);outline-offset:2px;
  box-shadow:var(--selection-glow);
}
.studio .card-preset-buttons button[aria-pressed="true"]::after {display:none;}
.studio .panel :is(input,select,textarea):focus-visible {
  outline:2px solid var(--selection-accent);outline-offset:2px;
  box-shadow:var(--selection-glow);
}
.studio .card-stage :is(.editable,.image-layer,.qr-upload-tile).selected {
  border-color:var(--selection-accent);
  outline:3px solid var(--selection-accent);outline-offset:2px;
  box-shadow:var(--selection-glow);
}
/* Keep the artwork selection visible inside the surrounding template rails. */
.studio .card-stage .image-layer.selected {outline-offset:-3px;}
.studio .preview-viewport .card-stage {overflow:clip;}
@media(min-width:1051px) and (max-width:1390px) {
  .studio .h4-brand img {width:240px;}
  .studio .h4-header-inner {gap:18px;padding:14px 24px;}
  .studio .h4-header .h4-nav {gap:7px;}
  .studio .h4-header .h4-nav-link {padding:10px 9px;font-size:11px;gap:6px;}
  .studio .h4-header .h4-primary {margin-left:2px;}
  .studio-shell {--inspector-width:390px;--studio-gap:18px;}
}
@media(max-width:1100px) {
  .studio-shell {--inspector-width:360px;--studio-gap:16px;padding:20px;}
  .preview-caption,.preview-footer {padding-left:16px;padding-right:16px;}
  .preview-footer {flex-direction:column;gap:5px;align-items:flex-start;}
  .studio .status {max-width:none;text-align:left;}
}
@media(min-width:1051px) and (max-width:1150px) {
  .studio .h4-brand img {width:200px;}
}
@media(max-width:1050px) {
  .studio .h4-header-inner {flex-direction:column;gap:14px;padding:17px 20px;}
  .studio .h4-brand img {width:270px;}
  .studio .h4-header .h4-nav {justify-content:center;flex-wrap:wrap;}
  .studio .app {height:calc(100dvh - 324px);}
}
@media(max-width:900px) {
  .studio-heading {grid-template-columns:1fr;gap:18px;}
  .studio .app {grid-template-columns:1fr;height:auto;min-height:0;}
  .studio .workbench {height:auto;min-height:0;}
  .preview-viewport {flex:none;height:clamp(360px,100vw,760px);padding:35px 24px 25px;}
  .studio .panel {height:auto;max-height:none;overflow:visible;padding:22px 18px;}
  .preview-footer {flex-direction:row;align-items:center;}
  .studio .status {text-align:right;}
  .studio .card-preset-buttons {max-width:540px;}
}
@media(max-width:600px) {
  .studio-shell {padding:18px 12px;}
  .studio-heading {gap:16px;margin-bottom:16px;}
  .studio-heading h1 {font-size:29px;letter-spacing:-.8px;}
  .studio-heading .eyebrow {font-size:8px;}
  .studio-heading-actions {width:100%;gap:8px;}
  .studio-intro {display:none;}
  .studio .h4-header {position:relative;}
  .studio .h4-header-inner {padding:18px 14px;}
  .studio .h4-header .h4-nav {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;max-width:none;}
  .studio .h4-header .h4-nav-link {padding:9px 6px;gap:5px;font-size:10px;min-height:43px;white-space:normal;text-align:center;}
  .studio .h4-header .h4-nav-icon {width:14px;height:14px;}
  .studio .h4-header .h4-primary {grid-column:1/-1;margin:0;max-width:none;}
  .preview-bar {padding:20px 14px 12px;gap:8px;}
  .preview-heading h2 {font-size:13px;max-width:190px;}
  .preview-heading .eyebrow {font-size:8px;}
  .preview-viewport {height:clamp(340px,124vw,660px);padding:30px 20px 20px;}
  .preview-caption {gap:5px;flex-wrap:wrap;font-size:9px;}
  .preview-footer {align-items:flex-start;flex-direction:column;gap:5px;}
  .studio .status {text-align:left;}
  .studio .panel {padding:22px 14px;}
  .studio .template-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media(prefers-reduced-motion:reduce) {
  .studio * {scroll-behavior:auto!important;}
  .studio button,.studio a,.inspector-toggle svg {transition:none;}
  .studio .brand-button:is(:hover,:focus-visible,:active,[aria-busy="true"],[aria-expanded="true"]) {transform:none;}
}

/* Keep the previous browser card hidden until the opening preset is ready. */
.preview-viewport {position:relative;}
.is-loading-opening #cardScaler {visibility:hidden;}
#openingCardLoading {position:absolute;inset:45% 0 auto;text-align:center;color:#c6daeb;font-size:13px;}

body.studio #editorPanel {background-image:var(--panel-star-rows,linear-gradient(transparent,transparent)),linear-gradient(180deg,#0b1925b3,#091627f2 22%,#091627f2 85%,#091627b3),var(--flag-material)!important;}

.studio .qr-clarity-status {margin:12px 0;color:#dcecf7;font-size:14px;line-height:1.5;}
.studio .qr-clarity-actions {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px;}
.studio .qr-clarity-actions button {flex:1 1 125px;min-height:44px;}
