/* A compact, independently scoped atmosphere control for the DN Creative chrome. */
.dn-theme-control{
  --dt-deep:var(--ht-deep,#111718);
  --dt-dark:var(--ht-dark,#080b0c);
  --dt-card:var(--ht-card,#f2eee6);
  --dt-surface:var(--ht-surface,#e6dfd3);
  --dt-ink:var(--ht-ink,#171a19);
  --dt-light:var(--ht-light,#f6f1e8);
  --dt-muted:var(--ht-muted,#6f716d);
  --dt-line:var(--ht-line,#6a635740);
  --dt-accent:var(--ht-accent,#f26800);
  position:relative;
  z-index:82;
  flex:none;
  color:var(--dt-ink);
}

.dn-theme-control[open]{z-index:96}

.dn-theme-control>summary{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:8px 12px;
  overflow:hidden;
  cursor:pointer;
  list-style:none;
  border:1px solid var(--dt-line);
  border-radius:16px;
  color:var(--dt-ink);
  background:radial-gradient(130% 150% at 12% 0%,#ffffffd6 0%,transparent 45%),linear-gradient(135deg,var(--dt-card),var(--dt-surface) 66%,color-mix(in srgb,var(--dt-accent) 16%,var(--dt-surface)) 140%);
  box-shadow:0 12px 29px #00000024,inset 0 1px 0 #ffffffc9,inset 0 -1px 0 #5d49311c;
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  backdrop-filter:blur(18px) saturate(160%);
  transition:translate .24s cubic-bezier(.22,1,.36,1),background .24s ease,border-color .24s ease,box-shadow .24s ease;
}

.dn-theme-control>summary::-webkit-details-marker{display:none}
.dn-theme-control>summary::marker{display:none;content:''}
.dn-theme-control>summary::before{
  content:'';
  position:absolute;
  z-index:-1;
  inset:1px;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(115deg,#ffffff36 0%,#ffffff08 28%,transparent 52%,#ffffff12 100%);
}

.dn-theme-control>summary:is(:hover,:focus-visible){
  translate:0 -2px;
  border-color:var(--dt-accent);
  background:radial-gradient(130% 150% at 12% 0%,#ffffffed 0%,transparent 45%),linear-gradient(135deg,#fffdf8,var(--dt-card) 58%,color-mix(in srgb,var(--dt-accent) 26%,var(--dt-surface)) 140%);
  box-shadow:0 19px 37px #00000032,inset 0 1px 0 #ffffffdf,inset 0 -1px 0 #5d49312b;
}

.dn-theme-control>summary:focus-visible{outline:2px solid var(--dt-accent);outline-offset:4px}
.dn-theme-control>summary::before{background:linear-gradient(115deg,#ffffff66 0%,#ffffff16 28%,transparent 52%,#ffffff28 100%)}
html[data-dn-theme='signal'] .dn-theme-control>summary{color:var(--dt-light);border-color:#ffffff38;background:radial-gradient(130% 150% at 12% 0%,#ffffff2e 0%,transparent 45%),linear-gradient(135deg,#202323d9,#0b0e0ed0 66%,#6b351bd4 140%);box-shadow:0 12px 29px #00000030,inset 0 1px 0 #ffffff42,inset 0 -1px 0 #00000052}
html[data-dn-theme='signal'] .dn-theme-control>summary:is(:hover,:focus-visible){border-color:#ffffff78;background:radial-gradient(130% 150% at 12% 0%,#ffffff42 0%,transparent 45%),linear-gradient(135deg,#2b302fdc,#51321ed4 58%,#f26800cc 140%);box-shadow:0 19px 37px #00000043,inset 0 1px 0 #ffffff5c,inset 0 -1px 0 #00000052}
html[data-dn-theme='signal'] .dn-theme-control>summary::before{background:linear-gradient(115deg,#ffffff36 0%,#ffffff08 28%,transparent 52%,#ffffff12 100%)}
.dn-theme-dot{width:7px;height:7px;border-radius:50%;background:var(--dt-accent);box-shadow:0 0 12px color-mix(in srgb,var(--dt-accent) 70%,transparent);flex:none}
.dn-theme-label{font:600 10px/1 var(--mono,monospace);letter-spacing:.55px;text-transform:uppercase}
.dn-theme-plus{font:20px/.8 var(--body,Arial,sans-serif);margin-left:1px;transition:transform .24s cubic-bezier(.22,1,.36,1)}
.dn-theme-control[open] .dn-theme-plus{transform:rotate(45deg)}

.dn-theme-popover{
  position:absolute;
  top:calc(100% + 12px);
  right:0;
  width:min(332px,calc(100vw - 24px));
  max-height:calc(100dvh - 112px);
  overflow:auto;
  overscroll-behavior:contain;
  padding:16px;
  border:1px solid var(--dt-line);
  border-radius:20px;
  color:var(--dt-ink);
  background:radial-gradient(130% 120% at 7% 0%,#ffffffa8 0%,transparent 42%),linear-gradient(135deg,var(--dt-card),var(--dt-surface));
  box-shadow:0 25px 60px #00000036,inset 0 1px 0 #ffffff9c;
  -webkit-backdrop-filter:blur(22px) saturate(145%);
  backdrop-filter:blur(22px) saturate(145%);
}

html[data-dn-theme='signal'] .dn-theme-popover{
  color:var(--dt-light);
  background:radial-gradient(120% 135% at 8% 0%,#ffffff1a 0%,transparent 43%),linear-gradient(135deg,var(--dt-card),var(--dt-deep));
  box-shadow:0 25px 60px #00000066,inset 0 1px 0 #ffffff24;
}

.dn-theme-eyebrow{margin:0 0 12px;font:9px/1.35 var(--mono,monospace);letter-spacing:.75px;color:var(--dt-muted)}
html[data-dn-theme='signal'] .dn-theme-eyebrow{color:var(--dt-light);opacity:.68}
.dn-theme-choices{display:grid;gap:7px}

body .dn-theme-control .dn-theme-choices button,
body .dn-theme-control .dn-theme-motion{
  --glass-button-ink:var(--dt-ink);
  --glass-button-border:var(--dt-line);
  --glass-button-surface:radial-gradient(130% 150% at 12% 0%,#ffffff8c 0%,transparent 46%),linear-gradient(135deg,#ffffffa8,var(--dt-card) 58%,var(--dt-surface) 140%);
  --glass-button-hover:radial-gradient(130% 150% at 12% 0%,#ffffffd9 0%,transparent 46%),linear-gradient(135deg,#fffdf8,var(--dt-card) 55%,color-mix(in srgb,var(--dt-accent) 27%,var(--dt-surface)) 140%);
  --glass-button-shadow:0 8px 18px #31241416,inset 0 1px 0 #ffffffbe,inset 0 -1px 0 #5d49311c;
  --glass-button-hover-shadow:0 13px 26px #31241426,inset 0 1px 0 #ffffffdf,inset 0 -1px 0 #5d49312b;
  --glass-button-focus:var(--dt-accent);
  display:grid;
  grid-template-columns:16px 1fr 16px;
  align-items:center;
  width:100%;
  min-height:48px;
  padding:10px 13px!important;
  text-align:left;
  font:500 13px/1.2 var(--body,Arial,sans-serif);
  letter-spacing:-.1px;
}

html[data-dn-theme='signal'] body .dn-theme-control .dn-theme-choices button,
html[data-dn-theme='signal'] body .dn-theme-control .dn-theme-motion{
  --glass-button-ink:var(--dt-light);
  --glass-button-border:#ffffff2e;
  --glass-button-surface:radial-gradient(130% 150% at 12% 0%,#ffffff1f 0%,transparent 46%),linear-gradient(135deg,#293130d9,var(--dt-deep) 63%,#61331bd1 140%);
  --glass-button-hover:radial-gradient(130% 150% at 12% 0%,#ffffff3c 0%,transparent 46%),linear-gradient(135deg,#303936e5,#4c2e1fd7 60%,var(--dt-accent) 140%);
  --glass-button-shadow:0 10px 22px #00000038,inset 0 1px 0 #ffffff29,inset 0 -1px 0 #00000055;
}

html:is([data-dn-theme='pearl'],[data-dn-theme='violet'],[data-dn-theme='ice']) body .dn-theme-control .dn-theme-choices button[data-active]{
  --glass-button-ink:var(--dt-light);
  --glass-button-border:var(--dt-dark);
  --glass-button-surface:radial-gradient(130% 150% at 12% 0%,#ffffff24 0%,transparent 46%),linear-gradient(135deg,var(--dt-dark),var(--dt-deep) 70%,var(--dt-accent) 150%);
  --glass-button-hover:radial-gradient(130% 150% at 12% 0%,#ffffff42 0%,transparent 46%),linear-gradient(135deg,var(--dt-deep),color-mix(in srgb,var(--dt-accent) 20%,var(--dt-deep)) 65%,var(--dt-accent) 150%);
  --glass-button-shadow:0 13px 28px #0000003b,inset 0 1px 0 #ffffff32,inset 0 -1px 0 #00000069;
}

html[data-dn-theme='signal'] body .dn-theme-control .dn-theme-choices button[data-active]{
  --glass-button-ink:var(--dt-light);
  --glass-button-border:var(--dt-accent);
  --glass-button-surface:radial-gradient(130% 150% at 12% 0%,#ffffff24 0%,transparent 46%),linear-gradient(135deg,var(--dt-card),color-mix(in srgb,var(--dt-accent) 20%,var(--dt-deep)));
  --glass-button-hover:radial-gradient(130% 150% at 12% 0%,#ffffff30 0%,transparent 46%),linear-gradient(135deg,var(--dt-card),color-mix(in srgb,var(--dt-accent) 30%,var(--dt-deep)));
}

.dn-theme-swatch{width:15px;height:15px;border:1px solid #8c8f8f77;border-radius:50%;background:#e3ebf1;box-shadow:inset 0 1px 0 #ffffff8c;pointer-events:none}
.dn-theme-choices button[data-dn-theme-choice='violet'] .dn-theme-swatch{background:#b79ee2}
.dn-theme-choices button[data-dn-theme-choice='ice'] .dn-theme-swatch{background:#a4cfdf}
.dn-theme-choices button[data-dn-theme-choice='signal'] .dn-theme-swatch{background:#f26800;border-radius:0}
.dn-theme-choices button[data-active] .dn-theme-swatch{border-color:#ffffff82;box-shadow:0 0 0 3px #ffffff18,inset 0 1px 0 #ffffffa3}
.dn-theme-check{justify-self:end;font:700 15px/1 Arial,sans-serif;opacity:0;transform:scale(.72);transition:opacity .18s ease,transform .18s ease}
.dn-theme-choices button[data-active] .dn-theme-check{opacity:1;transform:scale(1)}

.dn-theme-status{min-height:1.3em;margin:12px 1px 10px;color:var(--dt-muted);font:9px/1.4 var(--mono,monospace);letter-spacing:.36px}
html[data-dn-theme='signal'] .dn-theme-status{color:var(--dt-light);opacity:.68}
body .dn-theme-control .dn-theme-motion{grid-template-columns:1fr auto;min-height:42px;font-size:11px}
body .dn-theme-control .dn-theme-motion [data-dn-motion-label]{font:9px/1 var(--mono,monospace);letter-spacing:.48px;text-transform:uppercase;opacity:.72}
body .dn-theme-control .dn-theme-motion[aria-pressed='false']{--glass-button-ink:var(--dt-muted);filter:saturate(.55)}
body .dn-theme-control .dn-theme-motion:disabled{cursor:not-allowed;filter:grayscale(.5);opacity:.64}

@media(max-width:760px){
  .dn-header{gap:8px}
  .dn-header .dn-theme-control--header{margin:0}
  .dn-header .dn-theme-control--header>summary{min-width:44px;padding-inline:10px;justify-content:center}
  .dn-theme-control--header .dn-theme-popover{position:fixed;top:90px;left:12px;right:12px;width:auto;max-height:calc(100dvh - 108px)}
}
@media(min-width:761px) and (max-width:1000px){
  .dn-header{gap:14px;padding-inline:3%}
  .dn-header .dn-primary-nav{gap:20px}
  .dn-theme-control--header>summary{min-width:44px;justify-content:center;padding-inline:10px}
}
@media(min-width:761px) and (max-width:900px){.dn-theme-control--header .dn-theme-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
@media(max-width:370px){
  body .dn-header .header-cta{font-size:0!important;gap:0;min-width:40px;padding:10px!important}
  body .dn-header .header-cta>span{font-size:24px}
}

@media(max-width:450px){
  .dn-header .brand{gap:8px}
  html[data-dn-theme] body .dn-header .brand-symbol{font-size:34px}
  html[data-dn-theme] body .dn-header .brand-name{font-size:9px}
  html[data-dn-theme] body .dn-header .brand-name>span{font-size:5.5px;letter-spacing:1.4px}
  .dn-header .dn-theme-control--header>summary{gap:5px;width:44px;padding-inline:8px}
  .dn-header .dn-theme-control--header .dn-theme-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .dn-header .dn-theme-control--header .dn-theme-plus{margin-left:0}
}

@media(max-width:350px){
  .dn-header{gap:4px}
  html[data-dn-theme] body .dn-header .brand-symbol{font-size:32px}
  html[data-dn-theme] body .dn-header .brand-name{font-size:8.5px}
  html[data-dn-theme] body .dn-header .brand-name>span{font-size:5px;letter-spacing:1px}
}

@media(prefers-reduced-motion:reduce){
  .dn-theme-control>summary,.dn-theme-plus,.dn-theme-check{transition:none!important}
}
html.motion-off .dn-theme-control>summary,html.motion-off .dn-theme-plus,html.motion-off .dn-theme-check{transition:none!important}

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .dn-theme-control>summary{background:var(--dt-deep)}
  .dn-theme-popover{background:var(--dt-card)}
  html[data-dn-theme='signal'] .dn-theme-popover{background:var(--dt-deep)}
}

@media(forced-colors:active){
  .dn-theme-control>summary,.dn-theme-popover{color:CanvasText!important;background:Canvas!important;border-color:CanvasText!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  .dn-theme-control>summary::before{display:none}
  .dn-theme-dot,.dn-theme-swatch{background:ButtonText!important;box-shadow:none!important}
}
