/* ═══════════════════════════════════════════
   Template Studio — index.css
   暗色 · 質感 · atmosphere
   ═══════════════════════════════════════════ */

:root {
  /* palette — 系列共用:淺色霧面中性階(識別色 = 灰青)*/
  --bg-0: #e6ebe9;                      /* app 最底 */
  --bg-1: rgba(255, 255, 255, 0.55);    /* 霧面玻璃面板 */
  --bg-2: rgba(255, 255, 255, 0.80);    /* 較實的輸入 / 卡片 */
  --bg-3: #dfe6e3;                      /* 不透明淺 */
  --surface-solid: #f2f6f4;
  --line: rgba(40, 58, 55, 0.14);
  --line-soft: rgba(40, 58, 55, 0.10);
  --t: #283a36;
  --t-mid: #5c6e69;
  --t-dim: #8f9c97;
  --accent: #4f9a92;                    /* 灰青(亮,當邊框 / hover)*/
  --accent-deep: #357a73;               /* 灰青(深,實色 / 文字)*/
  --accent-glow: rgba(61, 122, 116, 0.14);
  --warn: #c98a2e;

  /* 霧面 / 質感 */
  --blur: 16px;
  --shadow-soft: 0 10px 34px rgba(40, 58, 55, 0.12);
  --shadow-card: 0 2px 12px rgba(40, 58, 55, 0.07);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* typography */
  --font-ui: "Noto Sans TC", "PingFang TC", sans-serif;
  --font-serif: "Fraunces", "Noto Serif TC", serif;
  --font-mono: "Inter", monospace;

  /* spacing */
  --gap: 14px;
  --pad: 18px;
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-0);
  color: var(--t);
  font-family: var(--font-ui);
  font-size: 14px;
}

body {
  background:
    radial-gradient(1000px 560px at 82% -10%, rgba(61, 122, 116, 0.12), transparent 60%),
    radial-gradient(760px 560px at -10% 112%, rgba(79, 154, 146, 0.08), transparent 62%),
    var(--bg-0);
  overflow: hidden;
}
/* 消光顆粒:輕噪點疊層,提升霧面質感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: var(--grain);
  background-size: 180px;
}

button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ═ 手機提示:非阻擋式,建議改用電腦瀏覽器 ═ */
#desktop-hint {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  box-sizing: border-box;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  color: var(--t);
  font-size: 14px;
  line-height: 1.5;
  font-family: inherit;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(40, 58, 55, 0.14);
}
#desktop-hint.show { display: flex; }
#desktop-hint span { flex: 1; }
#desktop-hint button {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  background: var(--accent-glow);
  border: none;
  color: var(--t-mid);
  font-size: 15px;
  line-height: 1;
}
#desktop-hint button:hover { background: var(--accent-deep); color: #fff; }

/* ═ App frame ═ */
.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═ Header ═ */
.header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  flex: 0 0 auto;
}
.back {
  color: var(--t-dim);
  text-decoration: none;
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  transition: color 0.2s, border-color 0.2s;
}
.back:hover { color: var(--t); border-color: var(--accent-deep); }
.logo { display: flex; flex-direction: column; gap: 1px; }
.logo-main {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.logo-sub { font-size: 11px; color: var(--t-dim); letter-spacing: 0.08em; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-right .lbl { font-size: 11px; color: var(--t-dim); letter-spacing: 0.05em; }
.hr-sep { flex: none; width: 1px; height: 20px; background: var(--line); }
.tpl-badge {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  border: 1px solid rgba(61, 122, 116, 0.3);
  background: var(--accent-glow);
  padding: 5px 14px;
  border-radius: 99px;
}

/* ═ 右上資訊列:介面縮放(標準 / 大 / 最大)═ */
.ui-scale {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.ui-scale .us-btn {
  background: none;
  border: none;
  color: var(--t-mid);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.ui-scale .us-btn:hover { color: var(--t); }
.ui-scale .us-btn.on { background: var(--accent-deep); color: #fff; }

/* ═ 使用說明:i 鈕 + 說明彈窗 ═ */
.help-btn {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--t-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.help-btn:hover { color: var(--accent-deep); border-color: var(--accent); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(40, 58, 55, 0.30);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal.hidden { display: none; }
.modal-card {
  width: 470px;
  max-width: 100%;
  max-height: 84vh;
  overflow: auto;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
}
.modal-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.modal-actions .us-btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}

.help-body { font-size: 13px; line-height: 1.7; color: var(--t-mid); }
.help-body h4 {
  font-size: 12.5px;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
  margin: 14px 0 4px;
}
.help-body h4:first-child { margin-top: 0; }
.help-body p { margin: 0 0 7px; }
.help-body b { color: var(--t); font-weight: 600; }

/* 介面縮放:放大左右控制欄(中央預覽維持原生尺寸,max-content 軌道隨之撐開)*/
body[data-ui="lg"] .tpl-rail,
body[data-ui="lg"] .side { zoom: 1.15; }
body[data-ui="xl"] .tpl-rail,
body[data-ui="xl"] .side { zoom: 1.3; }

/* ═ Footer:作者資訊 ═ */
.site-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 11px 20px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  font-size: 12px;
  color: var(--t-dim);
}
.footer-tool-name {
  font-family: var(--font-serif);
  color: var(--accent-deep);
  letter-spacing: 0.06em;
  font-weight: 500;
}
.footer-author { color: var(--t-mid); }
.footer-divider { color: var(--t-dim); opacity: 0.6; }
.site-footer a {
  color: var(--t-mid);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.site-footer a:hover { color: var(--accent-deep); background: var(--accent-glow); }

/* ═ Layout ═ */
.lay {
  flex: 1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  grid-template-rows: minmax(0, 1fr);
  gap: var(--gap);
  padding: var(--gap);
  min-height: 0;
}

/* ═ 左:模板選單 ═ */
.tpl-rail {
  width: 200px;
  background: var(--bg-1);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}
.rail-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--t-dim);
  padding: 2px 4px 6px;
}
.tpl-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: left;
  color: var(--t-mid);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.tpl-item:not(.is-soon):hover { border-color: var(--accent-deep); transform: translateY(-1px); }
.tpl-item.on {
  border-color: var(--accent-deep);
  background: linear-gradient(180deg, var(--accent-glow), var(--bg-2));
  color: var(--t);
}
.tpl-item.is-soon { opacity: 0.45; cursor: default; }
.tpl-name { font-size: 13px; font-weight: 700; }
.tpl-desc { font-size: 11px; color: var(--t-dim); }

/* 縮圖:模板各自填內容(i 由模板 CSS 定位)*/
.tpl-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background:
    radial-gradient(60% 80% at 70% 20%, rgba(61, 122, 116, 0.30), transparent),
    linear-gradient(150deg, #cfdad6, #e3eae7);
  margin-bottom: 5px;
  overflow: hidden;
}
.tpl-thumb i { position: absolute; display: block; }
.tpl-thumb--soon {
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--t-dim);
  background: var(--bg-3);
}

/* ═ 中:預覽 ═ */
.stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  gap: 10px;
}
.stage-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--t-dim);
  padding: 0 4px;
  flex: 0 0 auto;
}
.dropzone {
  position: relative;
  flex: 1;
  min-height: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    repeating-conic-gradient(#e7ece9 0% 25%, #dde4e1 0% 50%) 0 0 / 22px 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.dropzone.dragover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
#cvs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.dropzone.has-media { cursor: grab; }
.dropzone.has-media:active { cursor: grabbing; }
#cvs.grabbing { cursor: grabbing; }

.upload-prompt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(244, 248, 246, 0.84);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  text-align: center;
}
.ic { width: 1.05em; height: 1.05em; vertical-align: -2px; flex: none; margin-right: 6px; }
.up-icon { font-size: 34px; opacity: 0.7; }
.up-icon .ic { width: 34px; height: 34px; margin-right: 0; vertical-align: middle; }
.up-title { font-size: 16px; font-weight: 700; }
.up-sub { color: var(--t-mid); font-size: 13px; }
.up-link {
  background: none;
  border: none;
  color: var(--accent-deep);
  text-decoration: underline;
  font-size: 13px;
}
.up-hint { color: var(--t-dim); font-size: 11px; margin-top: 10px; letter-spacing: 0.04em; }

.stage-bar { display: flex; gap: 10px; flex: 0 0 auto; min-height: 34px; }
.st-btn {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--t-mid);
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  font-size: 12px;
  transition: color 0.2s, border-color 0.2s;
}
.st-btn:hover { color: var(--t); border-color: var(--accent-deep); }

/* 匯出進度 */
.prog {
  position: relative;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  flex: 0 0 auto;
}
.prog-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: width 0.15s;
}
.prog-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--t);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* ═ 右:控制面板 ═ */
.side {
  width: 318px;
  background: var(--bg-1);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-bottom: 1px solid var(--line-soft);
  flex: 0 0 auto;
}
.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--t-dim);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 0 10px;
  transition: color 0.2s;
}
.tab:hover { color: var(--t-mid); }
.tab.on { color: var(--t); border-bottom-color: var(--accent); }

.panels {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.panel {
  display: none;
  padding: var(--pad);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.panel.on { display: block; }
.panel::-webkit-scrollbar, .tpl-rail::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-thumb, .tpl-rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.group { margin-bottom: 22px; }
.group:last-child { margin-bottom: 6px; }
.group-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--t-dim);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line-soft);
}

.field { display: block; margin-bottom: 10px; }
.field-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--t-mid);
  margin-bottom: 5px;
}
.field-label b { color: var(--t); font-weight: 600; font-variant-numeric: tabular-nums; }
.field input[type="text"] {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--t);
  padding: 8px 11px;
  font-size: 13px;
  transition: border-color 0.2s;
}
.field input[type="text"]:focus { outline: none; border-color: var(--accent-deep); }

.slider-row { display: block; margin-bottom: 12px; }
input[type="range"] {
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--line);
  border-radius: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--t);
  border: 2px solid var(--accent-deep);
  cursor: pointer;
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row.toggles { gap: 14px; margin-top: 4px; }

.seg-btn {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--t-mid);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
  white-space: nowrap;
  transition: all 0.2s;
}
.seg-btn:hover { border-color: var(--accent-deep); color: var(--t); }
.seg-btn.on {
  background: var(--accent-glow);
  border-color: var(--accent-deep);
  color: var(--t);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--t-mid);
  cursor: pointer;
  user-select: none;
}
.check input { accent-color: var(--accent-deep); }

.hint { font-size: 11px; color: var(--t-dim); line-height: 1.6; margin-top: 6px; }

.color-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--t-mid);
  margin-bottom: 8px;
}
.color-field input[type="color"] {
  width: 64px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
  cursor: pointer;
}

/* 對齊九宮格 */
.align-grid {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 6px;
}
.align-btn {
  width: 44px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--t-mid);
  transition: all 0.15s;
}
.align-btn:hover {
  border-color: var(--accent-deep);
  color: var(--t);
  background: var(--accent-glow);
}
.align-btn:active { transform: scale(0.94); }

/* 玻璃材質選擇 */
.glass-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.glass-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 4px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--t-mid);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.glass-btn[data-glass="frost"] {
  background: linear-gradient(160deg, rgba(232, 234, 242, 0.12), rgba(232, 234, 242, 0.03)), var(--bg-2);
}
.glass-btn[data-glass="mirror"] {
  background:
    linear-gradient(115deg, transparent 30%, rgba(232, 234, 242, 0.22) 45%, transparent 60%),
    linear-gradient(160deg, #232a3d, #141722);
}
.glass-btn[data-glass="liquid"] {
  background:
    radial-gradient(80% 100% at 30% 0%, rgba(143, 180, 255, 0.25), transparent 70%),
    linear-gradient(160deg, #1d2335, #12151f);
}
.glass-btn:hover { border-color: var(--accent-deep); color: var(--t); }
.glass-btn.on { border-color: var(--accent); color: var(--t); box-shadow: 0 0 0 2px var(--accent-glow); }
.gb-name { font-size: 13px; font-weight: 700; }
.gb-en { font-size: 10px; letter-spacing: 0.1em; color: var(--t-dim); }

/* 輸出尺寸 */
.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.size-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 11px 6px 9px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--t-mid);
  transition: all 0.2s;
}
.size-btn:hover { border-color: var(--accent-deep); color: var(--t); }
.size-btn.on { border-color: var(--accent); color: var(--t); background: var(--accent-glow); }
.sz-ratio {
  display: block;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  opacity: 0.7;
  margin-bottom: 3px;
}
.sz-ratio.r11 { width: 18px; height: 18px; }
.sz-ratio.r45 { width: 16px; height: 20px; }
.sz-ratio.r916 { width: 12px; height: 21px; }
.sz-ratio.r169 { width: 24px; height: 14px; }
.sz-ratio.r34 { width: 15px; height: 20px; }
.sz-name { font-size: 12px; font-weight: 700; }
.sz-px { font-size: 10px; color: var(--t-dim); }

/* 匯出按鈕 */
.export-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.export-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-deep);
  background: linear-gradient(180deg, rgba(61, 122, 116, 0.16), rgba(61, 122, 116, 0.06));
  color: var(--t);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}
.export-btn:hover { background: linear-gradient(180deg, rgba(61, 122, 116, 0.26), rgba(61, 122, 116, 0.12)); transform: translateY(-1px); }
.export-btn:disabled { opacity: 0.4; cursor: wait; transform: none; }
.eb-sub { font-size: 10px; letter-spacing: 0.14em; color: var(--t-mid); font-weight: 500; }

/* ═ 導覽 coach-mark(spotlight + 對話泡泡)═ */
.tour { position: fixed; inset: 0; z-index: 300; }
.tour.hidden { display: none; }
.tour-spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45); outline: 2px solid var(--accent-deep); transition: all 0.25s ease; pointer-events: none; }
.tour-bubble { position: fixed; max-width: 300px; background: var(--surface-solid, #f2f6f4); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-soft); z-index: 301; transition: left 0.22s ease, top 0.22s ease; }
.tour-text { font-size: 13px; line-height: 1.75; color: var(--t); margin: 0 0 12px; }
.tour-text b { color: var(--accent-deep); }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-step { font-size: 11px; color: var(--t-dim); }
.tour-btns { display: flex; gap: 6px; }
.tour-btn { background: var(--surface-solid, #f2f6f4); border: 1px solid var(--line); color: var(--t); border-radius: 8px; padding: 6px 11px; font-size: 12px; font-family: inherit; cursor: pointer; }
.tour-btn:hover { border-color: var(--accent-deep); }
.tour-btn.primary { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.tour-bubble::before { content: ""; position: absolute; width: 12px; height: 12px; background: var(--surface-solid, #f2f6f4); border: 1px solid var(--line); transform: rotate(45deg); }
.tour-bubble[data-arrow="left"]::before { left: -7px; top: 22px; border-right: none; border-top: none; }
.tour-bubble[data-arrow="right"]::before { right: -7px; top: 22px; border-left: none; border-bottom: none; }
.tour-bubble[data-arrow="top"]::before { top: -7px; left: 24px; border-right: none; border-bottom: none; }
.tour-bubble[data-arrow="bottom"]::before { bottom: -7px; left: 24px; border-left: none; border-top: none; }
