/* ============================================================
   TurboPort v3 — Editor Styles  (warm dark olive monochrome)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-body:    #18170e;
  --bg-panel:   #1c1b12;
  --bg-section: #222115;
  --bg-input:   #14130b;
  --border:     #2c2b1e;
  --border-hi:  #48463a;
  --accent:     #b8b49a;
  --accent-dim: #6e6c58;
  --text-hi:    #e8e4d6;
  --text-mid:   #8a8878;
  --text-lo:    #46453a;

  --c1:rgba(90,110,160,.3);  --i1:#9ab0e0;
  --c2:rgba(60,140,140,.3);  --i2:#7ad0d0;
  --c3:rgba(120,80,160,.3);  --i3:#c09cd6;
  --c4:rgba(160,70,60,.3);   --i4:#e09080;
  --c5:rgba(160,120,50,.3);  --i5:#e0c080;
  --c6:rgba(80,150,60,.3);   --i6:#90d080;
  --c7:rgba(90,110,160,.3);  --i7:#9ab0e0;
  --c8:rgba(60,140,140,.3);  --i8:#7ad0d0;
  --c9:rgba(120,80,160,.3);  --i9:#c09cd6;
}

.sc1{background:var(--c1);color:var(--i1)} .sc2{background:var(--c2);color:var(--i2)}
.sc3{background:var(--c3);color:var(--i3)} .sc4{background:var(--c4);color:var(--i4)}
.sc5{background:var(--c5);color:var(--i5)} .sc6{background:var(--c6);color:var(--i6)}
.sc7{background:var(--c7);color:var(--i7)} .sc8{background:var(--c8);color:var(--i8)}
.sc9{background:var(--c9);color:var(--i9)}

@keyframes fadeUp  { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }
@keyframes slideIn { from{opacity:0;transform:translateX(-20px)} to{opacity:1;transform:translateX(0)} }

body {
  display: flex;
  height: 100vh;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-body);
  color: var(--text-hi);
}

/* ══════════════ EDITOR PANEL ══════════════ */
#editor-panel {
  width: 430px;
  min-width: 300px;
  max-width: 680px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
}
#editor-panel::-webkit-scrollbar { width: 3px; }
#editor-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Sticky logo bar ── */
.logo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-body);
  position: sticky;
  top: 0;
  z-index: 20;
}
.logo-left { display: flex; align-items: center; gap: 9px; }
.logo-img { height: 26px; width: auto; display: block; }
.logo-icon { font-size: .95rem; }
.logo-header h2 { font-size: .85rem; color: var(--accent); font-weight: 700; letter-spacing: .06em; }
.logo-version { font-size: .58rem; color: var(--text-lo); font-weight: 400; margin-left: 3px; }
.live-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .6rem;
  color: var(--text-lo);
  letter-spacing: .06em;
}
.live-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5a8a5a;
  box-shadow: 0 0 6px #5a8a5a;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── Panel scroll body ── */
.panel-scroll { padding: 12px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

/* ── Theme switcher ── */
.theme-switcher-area {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
.switcher-label { font-size: .58rem; letter-spacing: .14em; color: var(--text-lo); text-transform: uppercase; display: block; margin-bottom: 8px; }
.theme-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; margin-bottom: 8px; }
.theme-chip {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 6px 3px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg-input);
}
.theme-chip:hover { border-color: var(--border-hi); transform: translateY(-1px); }
.theme-chip.active { border-color: var(--accent); background: var(--bg-section); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--border-hi); }
.chip-name { font-size: .46rem; letter-spacing: .03em; color: var(--text-lo); text-align: center; line-height: 1.2; font-weight: 600; }
.theme-chip.active .chip-name { color: var(--accent); }
#cycle-btn {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--accent-dim);
  padding: 7px;
  border-radius: 5px;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  transition: all .15s;
  font-family: 'DM Sans', sans-serif;
}
#cycle-btn:hover { border-color: var(--accent); color: var(--text-hi); }

/* ══════════════ COLLAPSIBLE SECTIONS ══════════════ */
.editor-section {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-section);
  overflow: hidden;
}
.section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  cursor: pointer;
  user-select: none;
  transition: background .12s;
}
.section-toggle:hover { background: rgba(255,255,255,.015); }
.section-toggle-left { display: flex; align-items: center; gap: 9px; }
.section-icon { font-size: .72rem; color: var(--accent-dim); width: 14px; text-align: center; }
.section-toggle h3 { font-size: .66rem; color: var(--text-mid); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.section-cap { color: var(--text-lo); font-weight: 400; font-size: .58rem; margin-left: 3px; }
.section-arrow { font-size: .55rem; color: var(--text-lo); transition: transform .2s; }
.section-arrow.open { transform: rotate(180deg); }

.section-body { padding: 0 13px 12px; display: none; flex-direction: column; gap: 6px; }
.section-body.open { display: flex; }

/* Input groups */
.ig { display: flex; flex-direction: column; gap: 3px; }
.ig label { font-size: .6rem; color: var(--text-lo); letter-spacing: .04em; }
.ig input, .ig textarea, .ig select {
  width: 100%;
  padding: 7px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-hi);
  border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  transition: border-color .12s;
  outline: none;
}
.ig input:focus, .ig textarea:focus, .ig select:focus { border-color: var(--accent-dim); }
.ig textarea { resize: vertical; height: 52px; }
.ig select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath fill='%236e6c58' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}
.custom-ti { display: none; margin-top: 4px; border-left: 2px solid var(--accent) !important; }
input[type="file"] { padding: 5px; cursor: pointer; color: var(--text-mid); font-size: .72rem; }

/* char counter */
.char-count { font-size: .56rem; color: var(--text-lo); text-align: right; }
.char-count.warn { color: #c08050; }

/* Sub-groups */
.cg { border-top: 1px solid var(--border); padding-top: 9px; margin-top: 2px; }
.cg:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.cg-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cg h4 { font-size: .64rem; color: var(--accent-dim); font-weight: 600; }
.cg-badge { font-size: .54rem; color: var(--text-lo); font-family: 'IBM Plex Mono', monospace; background: var(--bg-body); padding: 1px 6px; border-radius: 3px; }

/* tag pill preview */
.tag-preview { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; min-height: 18px; }
.tag-pill { background: var(--bg-body); border: 1px solid var(--border); padding: 2px 7px; border-radius: 10px; font-size: .58rem; color: var(--text-mid); }

/* two-column input row */
.ig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ig-row .ig { margin: 0; }

/* image upload */
.img-upload-row { display: flex; align-items: center; gap: 10px; }
.img-thumb {
  width: 50px; height: 50px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-lo);
  font-size: .6rem;
  text-align: center;
  line-height: 1.3;
}
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Resume section ── */
.resume-or {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  color: var(--text-lo);
  font-size: .6rem;
}
.resume-or::before, .resume-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.docucraft-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  transition: border-color .15s;
}
.docucraft-card:hover { border-color: var(--border-hi); }
.docucraft-dc-icon { font-size: 1.1rem; opacity: .55; flex-shrink: 0; }
.docucraft-info { flex: 1; }
.docucraft-info strong { font-size: .75rem; color: var(--accent); display: block; margin-bottom: 2px; }
.docucraft-info p { font-size: .62rem; color: var(--text-lo); line-height: 1.4; }
.docucraft-arrow { font-size: .7rem; color: var(--text-lo); }

/* socials grid */
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* ══════════════ ACTION BUTTONS ══════════════ */
.actions-area { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 7px; }

#download-btn {
  background: var(--accent);
  color: #12110a;
  border: none;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  width: 100%;
  font-size: .82rem;
  transition: all .15s;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
#download-btn:hover { background: var(--text-hi); }

.btn-row { display: flex; gap: 6px; }
.btn-sec {
  flex: 1;
  background: var(--bg-input);
  color: var(--text-mid);
  border: 1px solid var(--border);
  padding: 8px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
  font-size: .7rem;
  font-family: 'DM Sans', sans-serif;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.btn-sec:hover { border-color: var(--accent-dim); color: var(--text-hi); }

.credit { font-size: .62rem; color: var(--text-lo); text-align: center; padding: 2px 0 0; }
.credit a { color: var(--accent-dim); text-decoration: none; }
.credit a:hover { color: var(--accent); }

/* ── Toast ── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--accent);
  color: #111;
  font-size: .75rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all .28s;
  z-index: 9999;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════ HEADER RIGHT BUTTONS ══════════════ */
.header-right { display: flex; align-items: center; gap: 6px; }
.hdr-btn {
  background: var(--bg-section);
  border: 1px solid var(--border);
  color: var(--text-lo);
  width: 28px; height: 28px;
  border-radius: 5px;
  cursor: pointer;
  font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.hdr-btn:hover { border-color: var(--accent-dim); color: var(--accent); }

/* ══════════════ VISIBILITY TOGGLES ══════════════ */
.visibility-bar {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
}
.vis-label { font-size: .58rem; letter-spacing: .12em; color: var(--text-lo); text-transform: uppercase; display: block; margin-bottom: 7px; }
.vis-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.vis-pill {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: .62rem;
  color: var(--text-lo);
  cursor: pointer;
  transition: all .15s;
  user-select: none;
  display: flex; align-items: center; gap: 4px;
}
.vis-pill.on  { border-color: var(--accent-dim); color: var(--accent); background: rgba(184,180,154,.08); }
.vis-pill.on::before  { content: '✓'; font-size: .55rem; }
.vis-pill.off { opacity: .45; }

/* ══════════════ VIEWPORT BAR ══════════════ */
#viewport-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #0d0d0a;
  border-bottom: 1px solid #1a1a14;
  position: sticky;
  top: 0;
  z-index: 50;
}
.vp-btns { display: flex; gap: 3px; }
.vp-btn {
  background: #141410;
  border: 1px solid #252520;
  color: #3a3a34;
  width: 28px; height: 28px;
  border-radius: 5px;
  cursor: pointer;
  font-size: .72rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.vp-btn:hover { color: #8a8878; border-color: #3a3a30; }
.vp-btn.active { border-color: #6e6c58; color: #b8b49a; background: #1e1d14; }
.vp-label { font-size: .6rem; letter-spacing: .1em; color: #3a3a34; text-transform: uppercase; flex: 1; }
.vp-fullscreen {
  background: none; border: none; color: #3a3a34; cursor: pointer; font-size: .75rem;
  padding: 4px 6px; border-radius: 4px; transition: color .15s;
}
.vp-fullscreen:hover { color: #8a8878; }

#preview-frame-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  background: #050505;
  padding: 0;
  transition: padding .3s;
}
/* viewport modes */
#preview-frame-wrap.vp-tablet  { padding: 20px; background: #0a0a0a; }
#preview-frame-wrap.vp-mobile  { padding: 20px; background: #0a0a0a; }
#preview-content {
  width: 100%;
  min-height: 100%;
  transition: all .3s, opacity .22s;
  background: #050505;
}
#preview-frame-wrap.vp-tablet #preview-content  { width: 768px; min-height: 900px; box-shadow: 0 0 40px rgba(0,0,0,.8); border-radius: 8px; overflow: hidden; }
#preview-frame-wrap.vp-mobile #preview-content  { width: 390px; min-height: 844px; box-shadow: 0 0 40px rgba(0,0,0,.8); border-radius: 14px; overflow: hidden; }
#preview-content.fade { opacity: 0; }
#preview-container { display: flex; flex-direction: column; flex: 1; overflow: hidden; }

/* ── Deploy button ── */
.btn-deploy {
  width: 100%;
  padding: 9px;
  background: transparent;
  border: 1px solid rgba(196,163,90,.25);
  border-radius: 6px;
  color: #c4a35a;
  font-size: .72rem;
  font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .2s;
  letter-spacing: .02em;
}
.btn-deploy:hover { background: rgba(196,163,90,.07); border-color: #c4a35a; }

/* ── Resizer ── */
#resizer {
  width: 5px;
  background: var(--bg-body);
  cursor: col-resize;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  transition: background .15s;
  user-select: none;
}
#resizer:hover { background: var(--border); }

/* preview handled above in viewport section */

/* ── Aether cursor helper ── */
.ae-cursor-on, .ae-cursor-on * { cursor: none !important; }

@media(max-width:800px){
  body { flex-direction: column; overflow: auto; height: auto; }
  #editor-panel { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border); max-width: 100%; }
  #resizer { display: none; }
}

/* ══════════════ DEPLOY BUTTON ══════════════ */
.btn-deploy {
  width: 100%;
  padding: 9px;
  background: transparent;
  border: 1px solid #2a3520;
  color: #5a8a40;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-deploy:hover { border-color: #6ab04c; color: #6ab04c; background: rgba(106,176,76,.06); }

/* ══════════════ DEPLOY MODAL ══════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #16150e;
  border: 1px solid #2a2820;
  border-radius: 10px;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 30px;
  position: relative;
  animation: modalIn .22s ease;
}
@keyframes modalIn { from{opacity:0;transform:scale(.97)} to{opacity:1;transform:scale(1)} }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.modal-title {
  font-size: 1rem; font-weight: 600; color: #e8e4d6;
  display: flex; align-items: center; gap: 8px;
}
.modal-title i { color: #6ab04c; }
.modal-close {
  background: none; border: none; color: #46453a; cursor: pointer;
  font-size: 1rem; padding: 4px 8px; border-radius: 4px; transition: color .15s;
}
.modal-close:hover { color: #e8e4d6; }

.modal-intro {
  font-size: .82rem; color: #6e6c58; line-height: 1.7; margin-bottom: 22px;
}
.modal-intro strong { color: #b8b49a; }
.modal-intro code { background: #1e1d14; padding: 1px 6px; border-radius: 3px; color: #a0b88a; font-family:'IBM Plex Mono',monospace; font-size:.78rem; }

.deploy-steps { display: flex; flex-direction: column; gap: 14px; }

.deploy-option {
  border: 1px solid #22211a;
  border-radius: 7px;
  padding: 18px 20px;
  background: #0f0e0a;
}
.deploy-opt-header {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px;
}
.deploy-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .62rem; color: #46453a;
  background: #1a1910; border: 1px solid #2a2820;
  padding: 3px 7px; border-radius: 4px; flex-shrink: 0; margin-top: 2px;
}
.deploy-opt-title { font-size: .87rem; color: #d4d0c4; font-weight: 500; margin-bottom: 3px; }
.deploy-opt-sub   { font-size: .74rem; color: #4e4c40; }
.deploy-badge {
  display: inline-block; margin-left: 7px;
  font-size: .6rem; padding: 2px 7px; border-radius: 10px;
  font-weight: 600; letter-spacing: .04em;
}
.deploy-badge.easiest { background: rgba(106,176,76,.15); color: #6ab04c; border: 1px solid rgba(106,176,76,.3); }
.deploy-badge.popular { background: rgba(90,140,220,.15); color: #7aacf0; border: 1px solid rgba(90,140,220,.3); }
.deploy-badge.optional{ background: rgba(180,140,60,.15); color: #c4a35a; border: 1px solid rgba(180,140,60,.3); }

.deploy-list {
  padding-left: 20px; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.deploy-list li { font-size: .79rem; color: #6e6c58; line-height: 1.6; }
.deploy-list li a { color: #7aacf0; text-decoration: none; }
.deploy-list li a:hover { text-decoration: underline; }
.deploy-list li code { background: #1a1910; padding: 1px 5px; border-radius: 3px; color: #a0b88a; font-family:'IBM Plex Mono',monospace; font-size:.75rem; }
.deploy-list li strong { color: #b8b49a; }
.deploy-list li em { color: #46453a; font-style: normal; }

.deploy-tip {
  margin-top: 18px;
  background: rgba(106,176,76,.06);
  border: 1px solid rgba(106,176,76,.2);
  border-radius: 6px;
  padding: 13px 16px;
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .79rem; color: #6e6c58; line-height: 1.6;
}
.deploy-tip i { color: #6ab04c; margin-top: 2px; flex-shrink: 0; }
.deploy-tip strong { color: #b8b49a; }
.deploy-tip a { color: #7aacf0; text-decoration: none; }

/* ══════════════════════════════════════════
   PROGRESS BAR
   ══════════════════════════════════════════ */
.progress-wrap {
  padding: 8px 16px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}
.progress-track {
  height: 3px;
  background: var(--bg-section);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a7a30, #6ab04c);
  border-radius: 2px;
  transition: width .5s ease;
  width: 0%;
}
.progress-label {
  font-size: .65rem;
  color: var(--text-mid);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .04em;
}

/* ══════════════════════════════════════════
   CAP METER
   ══════════════════════════════════════════ */
.cap-meter {
  padding: 10px 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cap-bar-wrap {
  flex: 1;
  height: 3px;
  background: var(--bg-section);
  border-radius: 2px;
  overflow: hidden;
}
.cap-bar {
  height: 100%;
  background: #3a5a28;
  border-radius: 2px;
  transition: width .3s ease, background .3s;
  width: 0%;
}
.cap-bar.warn { background: #8a6a18; }
.cap-bar.full { background: #8a2020; }
.cap-label {
  font-size: .6rem;
  color: var(--text-mid);
  font-family: 'IBM Plex Mono', monospace;
  white-space: nowrap;
  flex-shrink: 0;
}
.cap-label.full { color: #c05050; }

/* ══════════════════════════════════════════
   SOCIAL GRID (2-col)
   ══════════════════════════════════════════ */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* ══════════════════════════════════════════
   MOBILE PREVIEW WARNING
   ══════════════════════════════════════════ */
#mobile-warn {
  background: rgba(180, 130, 20, .08);
  border-bottom: 1px solid rgba(180, 130, 20, .2);
  padding: 8px 16px;
  font-size: .72rem;
  color: #a08030;
  gap: 8px;
  align-items: center;
  line-height: 1.5;
}
#mobile-warn i { flex-shrink: 0; }
#mobile-warn strong { color: #c4a040; }

/* ══════════════════════════════════════════
   ONBOARDING MODAL
   ══════════════════════════════════════════ */
.onboarding-box {
  max-width: 500px;
  text-align: center;
}
.ob-logo { margin-bottom: 18px; display: flex; justify-content: center; }
.ob-title {
  font-size: 1.15rem;
  color: var(--text-hi);
  font-weight: 600;
  margin-bottom: 8px;
}
.ob-sub {
  font-size: .82rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 22px;
}
.ob-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 20px;
}
.ob-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 13px 16px;
}
.ob-step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(106,176,76,.15);
  border: 1px solid rgba(106,176,76,.3);
  color: #6ab04c;
  font-size: .7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace;
}
.ob-step strong { font-size: .85rem; color: var(--text-hi); display: block; margin-bottom: 3px; }
.ob-step p { font-size: .77rem; color: var(--text-mid); line-height: 1.55; margin: 0; }
.ob-tip {
  background: rgba(106,176,76,.06);
  border: 1px solid rgba(106,176,76,.18);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .75rem;
  color: #5a8a40;
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: left;
}
.ob-cta {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3a5a20, #4a7a2c);
  border: none;
  border-radius: 7px;
  color: #c8f0a8;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .04em;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ob-cta:hover { background: linear-gradient(135deg, #4a7a28, #5a9a38); }

/* ══════════════════════════════════════════
   DOWNLOAD SUCCESS MODAL
   ══════════════════════════════════════════ */
.dl-success-box { max-width: 440px; text-align: center; }
.dl-success-icon {
  font-size: 2.5rem;
  color: #6ab04c;
  margin-bottom: 12px;
}
.dl-success-title {
  font-size: 1.1rem;
  color: var(--text-hi);
  font-weight: 600;
  margin-bottom: 8px;
}
.dl-filename {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .75rem;
  color: #6ab04c;
  background: var(--bg-section);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}
.dl-success-sub {
  font-size: .8rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 18px;
}
.dl-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  text-align: left;
}
.dl-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-section);
  text-decoration: none;
  transition: all .2s;
  color: inherit;
}
.dl-option:hover { border-color: var(--border-hi); background: var(--bg-input); }
.dl-option.primary { border-color: rgba(106,176,76,.35); background: rgba(106,176,76,.06); }
.dl-option.primary:hover { border-color: rgba(106,176,76,.6); }
.dl-option > i:first-child { font-size: 1rem; color: var(--accent-dim); width: 18px; flex-shrink: 0; }
.dl-option.primary > i:first-child { color: #6ab04c; }
.dl-option strong { font-size: .82rem; color: var(--text-hi); display: block; margin-bottom: 2px; }
.dl-option span { font-size: .72rem; color: var(--text-mid); }
.dl-ext { margin-left: auto; font-size: .65rem; color: var(--text-lo); flex-shrink: 0; }
.dl-success-close {
  width: 100%;
  padding: 10px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-mid);
  font-size: .8rem;
  cursor: pointer;
  margin-bottom: 6px;
  transition: all .2s;
}
.dl-success-close:hover { border-color: var(--border-hi); color: var(--text-hi); }
.dl-success-guide {
  width: 100%;
  padding: 10px;
  background: none;
  border: none;
  color: #5a8a40;
  font-size: .78rem;
  cursor: pointer;
  transition: color .2s;
}
.dl-success-guide:hover { color: #6ab04c; }
