.adv-wrap { display: grid; gap: 16px; }
.adv-banner {
  padding: 12px 16px; border-radius: 12px;
  background: #F7EFE0; border: 1px solid #B8862D; color: #1A2B24;
  font-size: 14px; font-weight: 600;
}
.adv-banner[data-tone="ok"] { background: #E9F3EE; border-color: #1F5C42; color: #1A2B24; }
.adv-banner[data-tone="err"] { background: #FBECEF; border-color: #8E1B2B; color: #6E1320; }
.adv-tabs-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.adv-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 8px;
  background: #F3ECE0; padding: 6px; border-radius: 12px;
  border: 1px solid rgba(26, 43, 36, 0.14); width: fit-content;
}
.adv-snow-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid #B8D4EA;
  background: linear-gradient(180deg, #FFFFFF, #E6F2FB); color: #1A3A54;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.adv-snow-pill:hover { border-color: #2A6FB0; }
.adv-link-btn {
  background: none; border: 0; padding: 0; color: #8E1B2B;
  font-family: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer;
}
.adv-tab {
  min-height: 44px; padding: 8px 16px; border-radius: 10px;
  border: 1px solid transparent; background: transparent;
  color: #1A2B24; font-family: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer;
}
.adv-tab[aria-selected="true"] {
  background: #8E1B2B; color: #FFFFFF; box-shadow: 0 1px 2px rgba(26, 43, 36, 0.08);
}
.adv-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px; background: #FFFFFF;
  border: 1px solid rgba(26, 43, 36, 0.14); border-radius: 12px;
}
.adv-toolbar-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adv-label-inline { font-size: 14px; font-weight: 600; color: #51635B; }
.adv-chip {
  min-height: 36px; padding: 4px 12px; border-radius: 12px;
  border: 1px solid rgba(26, 43, 36, 0.24); background: #FAF6EE;
  color: #1A2B24; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.adv-chip[aria-pressed="true"] {
  background: #1A2B24; color: #FAF6EE; border-color: #1A2B24;
}
.adv-studio-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  gap: 24px; align-items: start;
}
.adv-box {
  border-radius: 14px; padding: 22px;
  border: 5px solid #9E7322;
  box-shadow: 0 12px 28px rgba(26, 43, 36, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.adv-box[data-box-theme="bordeaux"] { background: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 6px 6px, radial-gradient(circle at 50% 35%, #9C2233, #6A121F); color: #FAF6EE; border-color: #B8862D; }
.adv-box[data-box-theme="sapin"] { background: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 6px 6px, radial-gradient(circle at 50% 35%, #24684B, #15402E); color: #FAF6EE; border-color: #C79B42; }
.adv-box[data-box-theme="nuit"] { background: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px) 0 0 / 6px 6px, radial-gradient(circle at 50% 35%, #1E2F4C, #101B2E); color: #F4EFE6; border-color: #D4A84E; }
.adv-box[data-box-theme="neige"] { background: #FFFFFF; color: #1A2B24; border-color: #B8862D; }
.adv-box[data-gold="1"] {
  border-color: #E7BC58 !important;
  box-shadow: 0 0 0 2px #8E6518, 0 14px 32px rgba(212, 168, 78, 0.35), inset 0 0 24px rgba(242, 196, 90, 0.22);
}
.adv-gold-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; margin-bottom: 12px;
  border-radius: 999px; background: linear-gradient(135deg, #FFF3CC, #E7BC58);
  color: #3A270B; font-size: 13px; font-weight: 700;
}
.adv-lights {
  position: relative; display: flex; gap: 3px; justify-content: center;
  margin: 0 auto 14px; padding: 0 4px; width: 100%; max-width: 420px;
}
.adv-lights::before {
  content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 2px;
  background: rgba(255, 255, 255, 0.28); border-radius: 2px;
}
.adv-box[data-box-theme="neige"] .adv-lights::before { background: rgba(26, 43, 36, 0.22); }
.adv-lights i {
  position: relative; flex: 1 1 0; min-width: 5px; max-width: 11px; height: 14px; margin-top: 6px;
  border-radius: 45% 45% 50% 50%;
  background: radial-gradient(circle at 35% 30%, #FFF 0 12%, #D8D3E0 45%, #8F88A0);
}
.adv-lights i::before {
  content: ""; position: absolute; left: 50%; margin-left: -2.5px; top: -4px; width: 5px; height: 5px;
  border-radius: 1px; background: #2D4A2F;
}
.adv-lights i.on:nth-child(5n+1) { background: radial-gradient(circle at 35% 30%, #FFF 0 12%, #FF5C77 45%, #A8122E); box-shadow: 0 0 8px 2px rgba(255, 92, 119, 0.75); }
.adv-lights i.on:nth-child(5n+2) { background: radial-gradient(circle at 35% 30%, #FFF 0 12%, #FFD166 45%, #B8860B); box-shadow: 0 0 8px 2px rgba(255, 209, 102, 0.75); }
.adv-lights i.on:nth-child(5n+3) { background: radial-gradient(circle at 35% 30%, #FFF 0 12%, #57D69A 45%, #16774A); box-shadow: 0 0 8px 2px rgba(87, 214, 154, 0.75); }
.adv-lights i.on:nth-child(5n+4) { background: radial-gradient(circle at 35% 30%, #FFF 0 12%, #6FB8FF 45%, #1C5EA8); box-shadow: 0 0 8px 2px rgba(111, 184, 255, 0.75); }
.adv-lights i.on:nth-child(5n) { background: radial-gradient(circle at 35% 30%, #FFF 0 12%, #D08CFF 45%, #6B2AA0); box-shadow: 0 0 8px 2px rgba(208, 140, 255, 0.75); }
.adv-box-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-bottom: 16px;
}
.adv-box-title { font-family: "Playfair Display", Georgia, serif; font-size: 22px; font-weight: 700; margin: 0; color: inherit; }
.adv-box-sub { font-size: 14px; opacity: 0.9; margin: 0; }
.adv-badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 12px; font-size: 12px; font-weight: 600;
  background: rgba(250, 246, 238, 0.16); border: 1px solid rgba(212, 168, 78, 0.65);
  color: inherit;
}
.adv-box[data-box-theme="neige"] .adv-badge { background: #F7EFE0; color: #1A2B24; }
.adv-doors {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.adv-door {
  position: relative; aspect-ratio: 1 / 1; min-height: 76px;
  border-radius: 12px; border: 1.5px dashed rgba(250, 246, 238, 0.45);
  background: rgba(250, 246, 238, 0.08); color: inherit;
  padding: 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  cursor: pointer; font-family: inherit; text-align: center;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.adv-box[data-box-theme="neige"] .adv-door {
  border-color: rgba(26, 43, 36, 0.25); background: #FAF6EE; color: #1A2B24;
}
.adv-door:hover { transform: translateY(-2px); }
.adv-door[data-filled="1"] {
  border-style: solid; border-color: #D4A84E;
  background: rgba(250, 246, 238, 0.18);
}
.adv-box[data-box-theme="neige"] .adv-door[data-filled="1"] { background: #F7EFE0; }
.adv-door[data-opened="1"] {
  background: #FAF6EE; color: #1A2B24; border-style: solid; border-color: #1F5C42;
}
.adv-door[data-selected="1"] {
  outline: 3px solid #FAF6EE; outline-offset: 2px;
  background: #B8862D; color: #1A2B24; border-style: solid;
}
.adv-box[data-box-theme="neige"] .adv-door[data-selected="1"] { outline-color: #8E1B2B; color: #FFFFFF; background: #8E1B2B; }
.adv-door[data-locked="1"] { opacity: 0.72; cursor: not-allowed; }
.adv-door[data-locked="1"]:hover { transform: none; }
.adv-door-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px; font-weight: 700; line-height: 1;
}
.adv-door-meta { font-size: 12px; opacity: 0.92; line-height: 1.2; }
.adv-door-icon { font-size: 16px; line-height: 1; }
.adv-panel {
  background: #FFFFFF; border: 1px solid rgba(26, 43, 36, 0.14);
  border-radius: 12px; padding: 20px; box-shadow: 0 1px 2px rgba(26, 43, 36, 0.06);
  display: grid; gap: 16px;
}
.adv-panel h2, .adv-panel h3, .adv-panel-title { font-family: var(--font-head, "Playfair Display", Georgia, serif); font-weight: 700; line-height: 1.25; font-size: 20px; margin: 0 0 8px; color: var(--text, #1A2B24); }
.adv-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adv-field { display: grid; gap: 4px; margin-bottom: 10px; }
.adv-field label { font-size: 14px; font-weight: 600; color: #1A2B24; }
.adv-field input, .adv-field textarea, .adv-field select {
  width: 100%; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(26, 43, 36, 0.28); background: #FFFFFF;
  color: #1A2B24; font-family: inherit; font-size: 16px;
}
.adv-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; margin: 8px 0 12px; cursor: pointer;
}
.adv-check input { width: 18px; height: 18px; accent-color: #8E1B2B; }
.adv-editor-box {
  background: #FAF6EE; border: 1px solid rgba(26, 43, 36, 0.14);
  border-radius: 12px; padding: 16px; display: grid; gap: 10px;
}
.adv-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.adv-stickers { display: flex; flex-wrap: wrap; gap: 6px; }
.adv-sticker-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(26, 43, 36, 0.2); background: #FFFFFF;
  font-size: 18px; cursor: pointer;
}
.adv-sticker-btn[aria-pressed="true"] { border-color: #8E1B2B; background: #F7EFE0; }
.adv-counter { font-size: 12px; color: #51635B; text-align: right; }
.adv-actions-col { display: grid; gap: 10px; }
.adv-btn-full { width: 100%; }
.adv-mine {
  background: #FFFFFF; border: 1px solid rgba(26, 43, 36, 0.14);
  border-radius: 12px; padding: 16px; display: grid; gap: 12px;
}
.adv-mine-list { display: flex; flex-wrap: wrap; gap: 10px; }
.adv-mine-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px; background: #FAF6EE;
  border: 1px solid rgba(26, 43, 36, 0.2); font-size: 14px; font-weight: 600;
}
.adv-viewer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.adv-owner-bar {
  background: #F7EFE0; border: 1px solid #B8862D;
  border-radius: 12px; padding: 16px; display: grid; gap: 12px;
}
.adv-copy-row { display: flex; gap: 8px; flex-wrap: wrap; }
.adv-copy-row input {
  flex: 1; min-width: 200px; padding: 8px 12px;
  border-radius: 12px; border: 1px solid rgba(26, 43, 36, 0.28);
  background: #FFFFFF; font-size: 14px; color: #1A2B24;
}
.adv-dlg-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid rgba(26, 43, 36, 0.14);
  background: #FAF6EE;
}
.adv-dlg-body { padding: 20px; display: grid; gap: 14px; }
.adv-coupon-card {
  padding: 16px; border: 2px dashed #B8862D; border-radius: 12px;
  background: #F7EFE0; text-align: center;
}
.adv-coupon-label { font-size: 12px; font-weight: 600; color: #8E1B2B; text-transform: uppercase; letter-spacing: 0.06em; }
.adv-coupon-val { font-family: "Playfair Display", Georgia, serif; font-size: 20px; font-weight: 700; margin: 6px 0 0; }
.adv-media-box {
  padding: 14px; border-radius: 12px; border: 1px solid rgba(26, 43, 36, 0.18);
  background: #FAF6EE; display: grid; gap: 10px;
}
.adv-video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.adv-story-preview { max-width: 220px; border-radius: 12px; border: 1px solid rgba(26, 43, 36, 0.2); margin-inline: auto; }
.adv-code-pill {
  display: inline-block; padding: 8px 16px; border-radius: 12px;
  background: #1A2B24; color: #FAF6EE; font-size: 20px; font-weight: 700;
  letter-spacing: 0.08em; text-align: center;
}
.adv-contrib-card {
  padding: 12px; border-radius: 12px; border: 1px solid rgba(26, 43, 36, 0.16);
  background: #FAF6EE; display: grid; gap: 8px;
}
.adv-door[data-today="1"] {
  box-shadow: 0 0 0 2px #F2C45A, 0 0 14px 3px rgba(242, 196, 90, 0.72);
  animation: advGlow 1.7s ease-in-out infinite;
}
@keyframes advGlow {
  50% { box-shadow: 0 0 0 2px #F2C45A, 0 0 5px 1px rgba(242, 196, 90, 0.35); }
}
@media (prefers-reduced-motion: reduce) {
  .adv-door[data-today="1"] { animation: none; }
}
.adv-door[data-wrap="gold"] { box-shadow: 0 0 0 2px #E5B94C, 0 0 10px rgba(229, 185, 76, 0.65); }
.adv-door[data-wrap="frost"] { box-shadow: 0 0 0 2px #9BD0F5, 0 0 10px rgba(155, 208, 245, 0.65); }
.adv-door[data-wrap="aurora"] { box-shadow: 0 0 0 2px #9AEFD0, 0 0 12px rgba(170, 140, 255, 0.55); }
.adv-who {
  display: block; width: 100%; padding: 1px 3px; border-radius: 4px;
  background: linear-gradient(#FFFDF6, #EFE3C8); color: #3A2A1A;
  font-size: 9.5px; font-weight: 700; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adv-wraps { display: grid; gap: 6px; margin: 4px 0; }
.adv-wrap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.adv-wrap-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 6px 4px; border-radius: 10px; border: 1px solid rgba(26, 43, 36, 0.22);
  background: #FFFFFF; color: #1A2B24; font-family: inherit; cursor: pointer;
}
.adv-wrap-btn span { font-size: 11.5px; font-weight: 700; line-height: 1.15; }
.adv-wrap-btn small { font-size: 10.5px; color: #51635B; }
.adv-wrap-btn.w-gold { background: linear-gradient(180deg, #FFFDF2, #F6E2A8); }
.adv-wrap-btn.w-frost { background: linear-gradient(180deg, #F8FCFF, #DDF0FC); }
.adv-wrap-btn.w-aurora { background: linear-gradient(135deg, #E8FFF6, #EAEFFF 55%, #F8E8FF); }
.adv-wrap-btn[aria-pressed="true"] { border-color: #8E1B2B; box-shadow: 0 0 0 2px #8E1B2B; }
.adv-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.adv-idea-btn {
  border: 1px solid rgba(26, 43, 36, 0.2); border-radius: 999px;
  background: linear-gradient(#FFFFFF, #F5EFE2); padding: 4px 10px;
  font-family: inherit; font-size: 12px; font-weight: 600; color: #1A2B24; cursor: pointer;
}
.adv-idea-btn:hover { border-color: #8E1B2B; }
.adv-also-check { padding: 8px 10px; border-radius: 10px; background: #E9F3EE; border: 1px solid #BCD9CA; }
.adv-note-paper {
  position: relative; border-radius: 10px; padding: 14px 16px;
  background: repeating-linear-gradient(#FFFDF7 0 25px, #EFE5D3 25px 26px);
  border: 1px solid #E2D4BA; line-height: 26px; color: #1A2B24;
  box-shadow: 0 3px 10px rgba(26, 43, 36, 0.08); transform: rotate(-0.35deg);
}
.adv-note-paper[data-wrap="gold"] { background: repeating-linear-gradient(#FFFBF0 0 25px, #F2DEB3 25px 26px); border-color: #D4A84E; }
.adv-note-paper[data-wrap="frost"] { background: repeating-linear-gradient(#F8FCFF 0 25px, #DCEBF7 25px 26px); border-color: #8FBDE0; }
.adv-note-paper[data-wrap="aurora"] { background: linear-gradient(135deg, #F2FFF9, #F2F4FF 55%, #FCF2FF); border-color: #B4AEE8; }
.adv-wrap-tag {
  display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 999px;
  background: rgba(26, 43, 36, 0.08); font-size: 11.5px; font-weight: 700;
}
.adv-cc {
  padding: 16px; border-radius: 12px; background: linear-gradient(135deg, #EFF7F2, #F9F2E4);
  border: 1px solid #C8DEC9; display: grid; gap: 10px;
}
.adv-cc h3, .adv-cc-title { font-family: var(--font-head, "Playfair Display", Georgia, serif); font-weight: 700; line-height: 1.25; font-size: 18px; margin: 0; color: var(--text, #1A2B24); }
.adv-dlg-heading { font-family: var(--font-head, "Playfair Display", Georgia, serif); font-weight: 700; line-height: 1.25; font-size: 20px; margin: 0; color: var(--text, #1A2B24); }
.adv-cc-list { display: grid; gap: 8px; }
.adv-cc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 10px; background: #FFFFFF;
  border: 1px solid rgba(26, 43, 36, 0.16); color: #1A2B24; font-weight: 600;
}
.adv-cc-row:hover { border-color: #8E1B2B; text-decoration: none; }
.adv-self-box {
  padding: 14px; border-radius: 12px; background: #E9F3EE;
  border: 1px solid #1F5C42; display: grid; gap: 10px;
}
.adv-snow-hero {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: 12px; background: #EBF5FD; border: 1px solid #B5D4EE;
}
.adv-snow-hero strong { font-size: 20px; color: #1A3A54; }
.adv-earn-list { margin: 6px 0 0; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
.adv-pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.adv-pack-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 8px; border-radius: 12px; border: 1px solid #B5D4EE;
  background: linear-gradient(#FFFFFF, #E6F2FB); cursor: pointer; font-family: inherit; color: #1A2B24;
}
.adv-pack-btn strong { font-size: 18px; color: #1A3A54; }
.adv-pack-btn span { font-size: 13px; font-weight: 600; color: #51635B; }
.adv-viewer-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 8px;
}
@media (max-width: 900px) {
  .adv-studio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .adv-doors { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .adv-box { padding: 12px; border-width: 4px; }
  .adv-door { min-height: 64px; padding: 5px; }
  .adv-door-num { font-size: 17px; }
  .adv-who { font-size: 8.5px; }
  .adv-field-row { grid-template-columns: 1fr; }
  .adv-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .adv-tab { width: 100%; min-height: 40px; padding: 6px 8px; font-size: 13px; }
  .adv-toolbar { padding: 8px 10px; gap: 8px; }
  .adv-pack-grid { grid-template-columns: 1fr; }
}