@import url('/styles_shared.css?v=33');

/* BrandStructure Map — layout/component rules only.
   Colors, radius, shadows, opacity and typography source values live in /styles_shared.css. */
:root{
  --bg:rgb(var(--basic-rgb));
  --panel:rgb(var(--basic-rgb));
  --panel-2:rgb(var(--basic-rgb));
  --text:rgb(var(--primary-rgb));
  --muted:rgb(var(--primary-light-rgb));
  --line:rgb(var(--systemlight-rgb) / var(--opacity-medium));
  --accent:rgb(var(--secondary-rgb));
  --accentText:rgb(var(--basic-rgb));
  --soft-surface:rgb(var(--systemlight-rgb));
  --focus-ring:rgb(var(--shadow-rgb) / .35);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Quicksand",system-ui,sans-serif;
  font-weight:500;
  line-height:1.55;
  overflow-x:hidden;
  transition:background .25s ease,color .25s ease;
}

.wrap{width:min(1220px,calc(100% - 44px));margin-inline:auto;padding:72px 0 80px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:2rem;margin-bottom:2.25rem}
.eyebrow{margin:0;color:var(--muted);font-size:.83rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
.eyebrow{color:var(--secondary)}

h1{
  margin:.1rem 0 1.2rem;
  font-size:clamp(3.7rem,7.4vw,7.2rem);
  line-height:1.02;
  letter-spacing:-.045em;
  font-weight:500;
}
.sub{font-size:clamp(1.08rem,1.5vw,1.35rem);max-width:760px;color:var(--muted);line-height:1.55}

.scanner{margin-top:2.1rem;display:grid;grid-template-columns:1fr auto;gap:1rem}
input{
  width:100%;
  background:var(--panel);
  color:var(--text);
  padding:.9rem 1.25rem;
  border-radius:999px;
  font:inherit;
  font-size:1rem;
  outline:none;
  border:1px solid var(--line);
}
input{
  border:0;
  box-shadow:var(--shadow);
}
input:focus{box-shadow:0 0 0 3px var(--focus-ring)}
input:focus{box-shadow:var(--shadow),0 0 0 3px var(--focus-ring)}
button{
  border:0;
  background:var(--accent);
  color:var(--accentText);
  padding:.9rem 1.25rem;
  border-radius:999px;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  transition:transform .2s,box-shadow .2s,filter .2s;
}
button:hover{transform:translateY(-2px)}
button{box-shadow:0 10px 25px rgb(var(--secondary-rgb) / .16)}
button:disabled{opacity:.5;cursor:wait;transform:none}
.history-wrap{margin-top:1rem}
.history-label{margin:0 0 .55rem .25rem;color:var(--muted);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.history{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:.65rem;
  overflow:visible;
  padding:.45rem .35rem 1rem;
}
.history-item{
  width:100%;
  min-width:0;
  padding:.7rem .9rem;
  border-radius:22px;
  background:var(--panel);
  color:var(--text);
  box-shadow:none;
  border:1px solid var(--line);
  text-align:left;
  transform:none !important;
}
.history-item strong,.history-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-item strong{font-size:.82rem;font-weight:700}
.history-item span{margin-top:.16rem;color:var(--muted);font-size:.68rem;font-weight:500}
.history-item{border:0;background:rgb(var(--basic-rgb));box-shadow:var(--shadow)}
.history-item:hover{box-shadow:0 16px 44px rgb(var(--shadow-rgb) / .68),0 4px 14px rgb(var(--shadow-rgb) / .48)}

.status{margin-top:12px;color:var(--muted);min-height:24px;white-space:pre-wrap}
.status.status-error{color:rgb(var(--secondary-rgb));}

.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:1.2rem;margin-top:3rem}
.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:2rem;
  min-height:160px;
  box-shadow:var(--shadow);
  transition:.25s ease;
}
.card{border:0}
.span-12{grid-column:span 12}.span-8{grid-column:span 8}.span-6{grid-column:span 6}.span-4{grid-column:span 4}
.card h2{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700;margin:0 0 1.25rem}
.big{font-size:2.6rem;font-weight:500;letter-spacing:-.03em;overflow-wrap:anywhere}
.muted{color:var(--muted)}

.colors{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:1rem}
.swatch{
  border:1px solid var(--line);
  border-radius:26px;
  overflow:hidden;
  background:var(--panel-2);
}
.swatch{border:0;box-shadow:var(--shadow);background:rgb(var(--basic-rgb))}
.swatch-color{height:90px}
.swatch-meta{padding:10px 11px;font-size:12px}

.row{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:11px 0;font-size:14px}
.row:first-child{border-top:0;padding-top:0}
.tag{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:.55rem .8rem;margin:0 .35rem .35rem 0;font-size:.82rem;color:var(--muted);font-weight:700}
.tag{border:0;background:var(--blue25-alt);color:var(--primary)}
.headline{padding:10px 0;border-top:1px solid var(--line)}
.headline:first-child{border-top:0}
.headline small{color:var(--muted);display:block;margin-bottom:3px;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.empty{color:var(--muted);font-size:14px}


@media(max-width:820px){
  .scanner{grid-template-columns:1fr}
  .scanner button{min-height:52px}
  .span-8,.span-6,.span-4{grid-column:span 12}
  .grid{gap:1rem}
}
@media(max-width:680px){
  .wrap{width:min(1220px,calc(100% - 28px));padding:36px 0 60px}
  .topbar{align-items:flex-start;gap:1rem;flex-direction:column}
  .theme-switch{align-self:flex-end}
  h1{font-size:clamp(3.15rem,16vw,5.2rem)}
  .snapshot-title{font-size:clamp(2.98rem,13.5vw,4.5rem)}
  .snapshot-title span{display:block}
  .card{padding:1.7rem}
}


/* Color-map display controls */
.color-summary-card .muted{margin-bottom:.1rem}
.color-summary-card .big{margin-top:0}
.color-limit-switch{display:inline-flex;align-items:center;gap:10px;margin-top:1rem;font-size:.82rem;color:var(--muted);font-weight:700;user-select:none;white-space:nowrap}
.color-limit-switch{color:var(--primary-light)}

/* v6 — Color map: exact RGB base colors with alpha variants */
.color-base-count{
  margin-top:.15rem;
  color:var(--muted);
  font-size:.86rem;
}
.color-base-count strong{color:var(--text);font-weight:700}
.color-base-count strong{color:var(--primary)}

.colors{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:1rem;
}
.color-cluster{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:26px;
  background:var(--panel-2);
}
.color-cluster{
  border:0;
  background:rgb(var(--basic-rgb));
  box-shadow:var(--shadow);
}
.cluster-solid{height:112px;background:rgb(var(--basic-rgb))}
.cluster-meta{padding:14px 14px 15px}
.cluster-head{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem}
.cluster-head strong{font-size:.98rem;letter-spacing:.01em}
.cluster-head span{font-size:.72rem;color:var(--muted);white-space:nowrap}
.solid-note{margin-top:.35rem;color:var(--muted);font-size:.72rem}
.alpha-variants{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.9rem}
.alpha-variant{display:flex;align-items:center;gap:.36rem;min-width:54px}
.alpha-chip{position:relative;width:30px;height:30px;border-radius:9px;overflow:hidden;flex:0 0 auto}
.alpha-chip span{position:absolute;inset:0}
.alpha-data{display:flex;flex-direction:column;line-height:1.05}
.alpha-data strong{font-size:.7rem;font-weight:700}
.alpha-data small{margin-top:.16rem;color:var(--muted);font-size:.63rem}
.checker{
  background-color:rgb(var(--basic-rgb));
  background-image:linear-gradient(45deg,rgb(var(--primary-light-rgb) / .20) 25%,transparent 25%),linear-gradient(-45deg,rgb(var(--primary-light-rgb) / .20) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgb(var(--primary-light-rgb) / .20) 75%),linear-gradient(-45deg,transparent 75%,rgb(var(--primary-light-rgb) / .20) 75%);
  background-size:10px 10px;
  background-position:0 0,0 5px,5px -5px,-5px 0;
}
.transparent-cluster .cluster-solid{height:112px}

/* old single-value swatches are retained only for backwards-compatible markup, not used by v6 */
.color-limit-switch{color:var(--primary-light)}


/* v7 — summary hierarchy + fixed alpha variant rhythm */
.color-summary-card .big{
  margin-top:0;
}
.alpha-variants{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(76px,1fr));
  gap:.55rem;
}
.alpha-variant{
  display:grid;
  grid-template-columns:30px 38px;
  align-items:center;
  gap:.42rem;
  min-width:0;
}
.alpha-data{
  width:38px;
  min-width:38px;
}
.alpha-data strong,
.alpha-data small{
  display:block;
  width:100%;
  font-variant-numeric:tabular-nums;
}


/* v8 — Observed Color Map sorting control */
.color-map-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.25rem;
  margin-bottom:1.25rem;
}
.color-map-head h2{margin:0}
.color-sort-switch{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-left:auto;
  color:var(--muted);
  font-size:.82rem;
  font-weight:700;
  user-select:none;
  white-space:nowrap;
}
.color-sort-switch{color:var(--primary-light)}
@media(max-width:680px){
  .color-map-head{align-items:flex-start}
  .color-sort-switch{font-size:.75rem;gap:8px}
}


/* v10 — literal occurrences vs CSS variable references */
.cluster-counts{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  line-height:1.2;
}
.cluster-counts small{
  margin-top:.18rem;
  color:var(--primary-light);
  font-size:.72rem;
  font-weight:600;
  white-space:nowrap;
}

/* v13 — resolved CSS-variable dependency preview */
.resolved-var{display:block;margin-top:.18rem;font-size:.72rem;opacity:.72}


/* v15 — color metadata: HEX left, fixed RGB right, aligned usage counts */
.cluster-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:1rem;
}
.cluster-head strong{
  font-size:.98rem;
  letter-spacing:.01em;
}
.rgb-value{
  display:grid;
  grid-template-columns:repeat(3,3ch);
  column-gap:.55ch;
  justify-content:end;
  color:var(--muted);
  font-size:.72rem;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.rgb-value span{
  display:block;
  width:3ch;
  text-align:right;
}
.rgb-value{color:var(--primary-light)}

.cluster-counts{
  display:grid;
  gap:.12rem;
  margin-top:.45rem;
  justify-items:end;
  color:var(--muted);
  font-size:.68rem;
  line-height:1.35;
  font-variant-numeric:tabular-nums;
}
.cluster-counts > div{
  display:grid;
  grid-template-columns:auto 4ch 1ch;
  column-gap:.35ch;
  justify-content:end;
  align-items:baseline;
  width:100%;
}
.cluster-counts > div > span{
  text-align:right;
  white-space:nowrap;
}
.cluster-counts > div > strong{
  display:block;
  width:4ch;
  text-align:right;
  white-space:pre;
  font:inherit;
  font-weight:700;
  color:inherit;
}
.cluster-counts > div > em{
  width:1ch;
  text-align:left;
  font-style:normal;
}
.cluster-counts{color:var(--primary-light)}


/* v19 — observed color wheel */
.color-wheel-section{
  display:flex;
  justify-content:center;
  margin:0 0 1.6rem;
}
.color-wheel-shell{
  position:relative;
  width:min(420px, 72vw);
  aspect-ratio:1 / 1;
  border-radius:50%;
  background:rgb(var(--basic-rgb));
  box-shadow:var(--shadow);
  overflow:hidden;
  flex:none;
}
.color-wheel{
  position:absolute;
  inset:0;
  border-radius:50%;
}
.color-wheel-center{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:40%;
  aspect-ratio:1 / 1;
  border-radius:50%;
  background:rgb(var(--basic-rgb));
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:1rem;
}
.color-wheel-center strong{
  font-size:clamp(1.4rem,3vw,2rem);
  line-height:1;
  font-weight:500;
  color:var(--text);
}
.color-wheel-center span{
  margin-top:.35rem;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.04em;
  color:var(--muted);
}
.color-wheel-center strong{color:var(--primary)}
.color-wheel-center span{color:var(--primary-light)}
@media(max-width:680px){
  .color-wheel-shell{width:min(320px,82vw)}
  .color-wheel-center{width:43%}
}


/* v29 — Snapshot shell aligned with legal pages */
body{padding-top:96px;}
.snapshot-skip-link{position:absolute;left:-9999px;top:10px;background:rgb(var(--primary-rgb));color:rgb(var(--basic-rgb));padding:.75rem 1rem;z-index:2000;border-radius:10px;}
.snapshot-skip-link:focus{left:10px;}
.snapshot-site-header{
  position:fixed;top:0;left:0;right:0;z-index:1000;width:100%;
  min-height:96px;display:flex;align-items:center;justify-content:space-between;gap:2rem;
  padding:14px max(22px,calc((100vw - var(--max))/2));
  background:rgb(var(--basic-rgb) / var(--opacity-strong));
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border-bottom:var(--line-section);
}
.snapshot-brand{width:382px;height:87px;display:flex;align-items:center;overflow:visible;flex:0 0 auto;}
.snapshot-brand img{display:block;width:382px;max-width:none;height:auto;}
.snapshot-header-controls{margin-left:auto;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:flex-end;min-width:0;}
.snapshot-header-theme-row{width:auto;min-height:24px;display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-bottom:2px;transform:translateY(-8px);}
.snapshot-nav-theme-switch{justify-content:flex-end;margin:0;font-size:.68rem;line-height:1;gap:7px;}
.snapshot-nav-theme-switch .switch{width:42px;height:22px;}
.snapshot-nav-theme-switch .slider:before{width:16px;height:16px;left:3px;top:3px;}
.snapshot-nav-theme-switch .switch input:checked + .slider:before{transform:translateX(20px);top:3px;}
.snapshot-header-nav-row{display:flex;justify-content:flex-end;align-items:center;min-width:0;}
.snapshot-main-nav{display:flex;align-items:center;gap:1.6rem;font-size:.92rem;font-weight:600;}
.snapshot-main-nav a{color:inherit;text-decoration:none;}
.snapshot-back{color:rgb(var(--primary-rgb));font-weight:600;white-space:nowrap;}
.snapshot-back:hover{color:rgb(var(--secondary-rgb));}
.snapshot-nav-toggle{display:none;border:0;background:transparent;color:rgb(var(--primary-rgb));font:inherit;font-weight:700;box-shadow:none;padding:0;transform:none!important;}
.snapshot-mobile-theme-item{display:none;}
.snapshot-kicker{margin-bottom:2.25rem;}
.snapshot-site-footer{padding:3rem 0 4rem;border-top:var(--line-section);}
.snapshot-footer-inner{width:min(var(--max),calc(100% - 44px));margin-inline:auto;display:flex;justify-content:space-between;align-items:center;gap:2rem;}
.snapshot-footer-brand{font-family:"Quicksand",sans-serif;font-size:1rem;letter-spacing:0;color:rgb(var(--primary-rgb));white-space:nowrap;}
.snapshot-footer-brand .idol-word{font-weight:700}.snapshot-footer-brand .brand-word{font-weight:300}.snapshot-footer-brand .structure-word{font-weight:600}
.snapshot-footer-links{display:flex;gap:1.3rem;flex-wrap:wrap;color:rgb(var(--primary-light-rgb));font-size:.85rem;}
.snapshot-footer-links a{color:inherit;text-decoration:none;}
@media(max-width:980px){
  .snapshot-header-theme-row{display:none;}
  .snapshot-header-controls{justify-content:center;flex:1 1 auto;}
  .snapshot-header-nav-row{width:100%;}
  .snapshot-nav-toggle{display:block;margin-left:auto;}
  .snapshot-main-nav{position:absolute;top:100%;left:0;right:0;display:none;flex-direction:column;align-items:flex-end;text-align:right;padding:1.2rem 22px 1.5rem;background:rgb(var(--basic-rgb) / var(--opacity-strong));backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:var(--line-section);}
  .snapshot-main-nav.open{display:flex;}
  .snapshot-mobile-theme-item{display:flex;width:100%;justify-content:flex-end;align-items:center;margin:0 0 .65rem;padding:0;font-size:.68rem;gap:7px;color:rgb(var(--primary-light-rgb));}
  .snapshot-mobile-theme-item .switch{width:42px;height:22px;}
  .snapshot-mobile-theme-item .slider:before{width:16px;height:16px;left:3px;top:3px;}
  .snapshot-mobile-theme-item .switch input:checked + .slider:before{transform:translateX(20px);top:3px;}
}
@media(max-width:680px){
  body{padding-top:84px;}
  .snapshot-site-header{min-height:84px;padding:10px 14px;}
  .snapshot-brand{width:315px;height:75px;}
  .snapshot-brand img{width:315px;}
  .wrap{width:min(1220px,calc(100% - 28px));padding-top:52px;}
  .snapshot-mobile-theme-item{font-size:.62rem;gap:6px;}
  .snapshot-mobile-theme-item .switch{width:38px;height:20px;}
  .snapshot-mobile-theme-item .slider:before{width:14px;height:14px;left:3px;top:3px;}
  .snapshot-mobile-theme-item .switch input:checked + .slider:before{transform:translateX(18px);top:3px;}
  .snapshot-footer-inner{width:min(var(--max),calc(100% - 28px));align-items:flex-start;flex-direction:column;}
  .snapshot-footer-links{margin-left:auto;flex-direction:column;align-items:flex-end;gap:.35rem;text-align:right;}
}


/* v36 — semantic Snapshot cleanup */
/* CSS Variables remain in the DOM as a future Pro Mode module, but are hidden by default. */
.pro-mode-only[hidden]{display:none !important}

/* Headline Structure: make the semantic hierarchy visible. */
.headline{position:relative}
.headline-h1{color:rgb(var(--secondary-rgb))}
.headline-h1 small{color:rgb(var(--secondary-rgb))}
.headline-h2{margin-left:1.5rem}
.headline-h3{margin-left:3rem}
.headline-h4{margin-left:4.5rem}

/* UI Signals: image formats are children of the image total. */
.row.image-total{font-weight:700}
.row.image-format{padding-left:1.5rem;color:var(--muted)}
.row.image-format span:first-child{position:relative}
.row.image-format span:first-child::before{content:"↳";margin-right:.45rem;opacity:.55}

@media(max-width:680px){
  .headline-h2{margin-left:1rem}
  .headline-h3{margin-left:2rem}
  .headline-h4{margin-left:3rem}
  .row.image-format{padding-left:1rem}
}


/* v37 — video signals mirror image hierarchy */
.row.video-total{font-weight:700}
.row.video-format{padding-left:1.5rem;color:var(--muted)}
.row.video-format span:first-child{position:relative}
.row.video-format span:first-child::before{content:"↳";margin-right:.45rem;opacity:.55}
@media(max-width:680px){
  .row.video-format{padding-left:1rem}
}


/* v38 — typography limit control */
.typography-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}
.typography-head h2{margin:0}
.typography-limit-switch{display:inline-flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto;color:var(--muted);font-size:.82rem;font-weight:700;user-select:none;white-space:nowrap}
@media(max-width:680px){.typography-limit-switch{font-size:.75rem;gap:8px}}


/* Snapshot Premium Promo */
.snapshot-premium-promo{
  top:clamp(15rem,31vh,22rem);
  right:max(2.1rem,calc((100vw - var(--max))/2 + 1.25rem));
}

@media(max-width:980px){
  .snapshot-premium-promo{
    top:10.6rem;
    right:1.35rem;
  }
}

@media(max-width:680px){
  .snapshot-premium-promo{
    top:7.9rem;
    right:.85rem;
  }
}



/* Snapshot naming hierarchy */
.snapshot-title .snapshot-family,
.snapshot-title .snapshot-product{
  display:block;
}
.snapshot-title .snapshot-product{
  white-space:nowrap;
}
