/* ================================================================
   mobilen board skin — style.css
   Scope: #bo_list (list) | #bo_w (write)
   Dark premium gold theme. Font: Pretendard Variable (global).
   ================================================================ */

#bo_list,
#bo_w {
  --font:         "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --bg:           var(--color-bg,           #131316);
  --surface:      var(--color-surface,      #1a1a1f);
  --surface-2:    var(--color-surface-2,    #22222a);
  --border:       var(--color-border,       rgba(255,255,255,0.08));
  --border-light: var(--color-border-light, rgba(255,255,255,0.05));
  --text:         var(--color-text,         #f0f0f0);
  --muted:        var(--color-text-muted,   #888);
  --subtle:       #5c5c64;
  --gold:         var(--color-accent,       #C4A55A);
  --gold-dim:     #9A7D3D;
  --gold-bright:  #D4C080;
  --gold-glow:    rgba(196,165,90,0.10);
  --gold-glow-md: rgba(196,165,90,0.18);
  --danger:       #e05555;
  --danger-glow:  rgba(224,85,85,0.12);
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --ease:  cubic-bezier(0.16,1,0.3,1);

  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

#bo_list *, #bo_list *::before, #bo_list *::after,
#bo_w *,   #bo_w *::before,   #bo_w *::after { box-sizing: border-box; }

/* ── Shared Buttons ── */
.bl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 7px 13px;
  font-family: var(--font); font-size: .8125rem; font-weight: 600;
  line-height: 1; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none;
  transition: background .17s var(--ease), border-color .17s, color .17s,
              transform .13s var(--ease), box-shadow .17s;
  white-space: nowrap; user-select: none;
}
.bl-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.bl-btn--gold { background: var(--gold); color: #0d0d0d; border-color: var(--gold); }
.bl-btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(196,165,90,.28); }
.bl-btn--gold:active { transform: translateY(0) scale(.98); box-shadow: none; }

.bl-btn--ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.bl-btn--ghost:hover { background: rgba(255,255,255,.05); color: var(--text); border-color: rgba(255,255,255,.14); }
.bl-btn--ghost:active { transform: scale(.98); }

.bl-btn--danger { background: transparent; color: var(--danger); border-color: rgba(224,85,85,.3); }
.bl-btn--danger:hover { background: var(--danger-glow); border-color: var(--danger); }

.bl-btn--sm { padding: 7px 13px; font-size: .8125rem; }

/* ── Shared checkbox ── */
.bl-chk { width: 15px; height: 15px; accent-color: var(--gold); cursor: pointer; }

/* sound_only (screen-reader) */
.sound_only { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }


/* ================================================================
   LIST  (#bo_list)
   ================================================================ */

#bo_list {
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 120px 24px 60px;
}

/* ── Head ── */
.bl-head { margin-bottom: 24px; }

.bl-head__title-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}

.bl-head__title-group { display: flex; flex-direction: column; gap: 0; }
.bl-head__title-group .t-headline { font-weight: 600; }

.bl-head__title {
  font-size: clamp(1.375rem,2.5vw,1.875rem); font-weight: 800;
  letter-spacing: -.025em; color: var(--text); margin: 0;
}

.bl-head__actions { display: flex; align-items: center; gap: 8px; padding-top: 8px; }

/* ── Category Tabs ── */
.bl-cate-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 16px;
}
.bl-cate-tab {
  display: inline-flex; align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem; font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.bl-cate-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.bl-cate-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ── Search ── */
.bl-search {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 14px 18px;
}
.bl-search__form { width: 100%; }
.bl-search__inner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bl-search__field-wrap { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }

.bl-select {
  appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,.04)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 7px 28px 7px 11px; font-size: .8125rem; font-family: var(--font);
  color: var(--text); cursor: pointer;
  transition: border-color .17s, box-shadow .17s; white-space: nowrap;
}
.bl-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.bl-select option { background: #1a1a1f; color: var(--text); }
.bl-select--sm { padding: 7px 28px 7px 10px; font-size: .8125rem; }

.bl-search__input-wrap { position: relative; flex: 1; min-width: 160px; }

.bl-search__icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--subtle); pointer-events: none;
}

.bl-search__input {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 7px 12px 7px 36px;
  font-size: .8125rem; font-family: var(--font); color: var(--text);
  transition: border-color .17s, box-shadow .17s;
}
.bl-search__input::placeholder { color: var(--subtle); }
.bl-search__input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }

.bl-search__btn {
  flex-shrink: 0; background: var(--gold) !important; color: #0d0d0d !important;
  border: none !important; border-radius: var(--r-sm) !important; padding: 7px 13px !important;
  font-size: .8125rem !important; font-weight: 700 !important; font-family: var(--font) !important;
  cursor: pointer; transition: background .17s, transform .13s; white-space: nowrap;
}
.bl-search__btn:hover { background: var(--gold-bright); transform: translateY(-1px); }
.bl-search__btn:active { transform: translateY(0); }

/* ── Meta row ── */
.bl-meta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 2px 10px; border-bottom: 1px solid var(--border-light); flex-wrap: wrap;
}
.bl-total-count { font-size: .8125rem; color: var(--muted); }
.bl-total-count strong { font-weight: 700; color: var(--gold); }

/* ── Sort links (generated by subject_sort_link()) ── */
.bl-col--date a, .bl-col--hit a,
#bo_list .bl-col--date a, #bo_list .bl-col--hit a {
  color: var(--subtle); font-size: .71875rem; font-weight: 600;
  text-decoration: none; letter-spacing: .04em;
  transition: color .15s;
}
.bl-col--date a:hover, .bl-col--hit a:hover { color: var(--text); }

/* ── Column headers ── */
.bl-cols {
  display: grid;
  grid-template-columns: 64px 1fr 80px 96px 52px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}
.bl-cols.bl-cols--chk { grid-template-columns: 36px 64px 1fr 80px 96px 52px; }

.bl-col {
  padding: 10px 8px; font-size: .6875rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--subtle);
  text-align: center;
}
.bl-col--subj { text-align: left; }
.bl-col--num  { text-align: center; }

/* ── Post rows ── */
.bl-rows { display: flex; flex-direction: column; }

.bl-row {
  display: grid; grid-template-columns: 64px 1fr 80px 96px 52px;
  align-items: center; padding: 0 12px;
  border-bottom: 1px solid var(--border-light);
  min-height: 52px; position: relative;
  transition: background .14s var(--ease);
}
.bl-row.bl-row--chk { grid-template-columns: 36px 64px 1fr 80px 96px 52px; }
.bl-row:hover { background: rgba(255,255,255,.025); }
.bl-row--notice { background: rgba(196,165,90,.035); }
.bl-row--notice:hover { background: rgba(196,165,90,.065); }

.bl-cell { padding: 12px 8px; font-size: .875rem; text-align: center; }
.bl-cell--chk    { padding-right: 4px; }
.bl-cell--num    { text-align: center; }
.bl-cell--subj   { text-align: left; }
.bl-cell--author { color: var(--muted); font-size: .8125rem; }
.bl-cell--date   { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.bl-cell--hit    { color: var(--subtle); font-size: .8125rem; }
.bl-cell--good   { color: var(--gold);   font-size: .8125rem; }
.bl-cell--nogood { color: var(--muted);  font-size: .8125rem; }

.bl-num { font-size: .8125rem; color: var(--subtle); font-variant-numeric: tabular-nums; }

/* ── Badges ── */
.bl-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 7px; border-radius: 4px; font-size: .625rem;
  font-weight: 800; letter-spacing: .05em; line-height: 1.4;
  vertical-align: middle;
}
.bl-badge--notice  { background: var(--gold-glow-md); color: var(--gold); border: 1px solid rgba(196,165,90,.3); }
.bl-badge--current { background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--border); }
.bl-badge--new     { background: rgba(80,200,120,.15); color: #50c878; border: 1px solid rgba(80,200,120,.3); margin-left: 5px; }
.bl-badge--hot     { background: rgba(224,85,85,.15);  color: var(--danger); border: 1px solid rgba(224,85,85,.3); margin-left: 5px; }

/* ── Reply icon ── */
.bl-reply-icon { color: var(--text-muted); flex-shrink: 0; }

/* ── Subject ── */
.bl-subj-wrap {
  display: flex; align-items: center; gap: 6px; min-width: 0;
}

.bl-subj-link {
  color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s; min-width: 0;
}
.bl-subj-link:hover { color: var(--gold); }

.bl-comment-count { color: var(--gold); font-size: .8125rem; font-weight: 700; margin-left: 2px; flex-shrink: 0; }

/* ── Category pill ── */
.bl-cat-link {
  display: inline-flex; padding: 2px 8px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 4px; font-size: .75rem; font-weight: 600;
  color: var(--muted); text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.bl-cat-link:hover { background: var(--gold-glow); border-color: rgba(196,165,90,.3); color: var(--gold); }

/* ── Author / Date / Hit ── */
.bl-author { display: inline-block; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; color: var(--muted); }
.bl-date   { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-hit    { font-size: .8125rem; color: var(--subtle); font-variant-numeric: tabular-nums; }
.bl-good   { font-size: .8125rem; color: var(--gold); }
.bl-nogood { font-size: .8125rem; color: var(--muted); }

/* ── Empty state ── */
.bl-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 72px 20px; text-align: center;
}
.bl-empty__icon { width: 48px; height: 48px; color: var(--subtle); }
.bl-empty__msg  { font-size: .9375rem; color: var(--muted); }

/* ── Bulk bar ── */
.bl-bulk-bar { display: flex; align-items: center; gap: 8px; padding: 12px 0; justify-content: flex-end; }

/* ── Pagination ── */
.bl-paging { margin-top: 36px; display: flex; justify-content: center; }

/* G5 pagination classes */
.bl-paging .pg_wrap,
#bo_list .pg_wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0;
}

.bl-paging a, .bl-paging strong,
#bo_list .pg_wrap a, #bo_list .pg_wrap strong {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 600; font-family: var(--font);
  color: var(--muted); text-decoration: none;
  border: 1px solid var(--border-light); background: var(--surface);
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.bl-paging a:hover, #bo_list .pg_wrap a:hover {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12);
  color: var(--text); transform: translateY(-1px);
}
.bl-paging strong, #bo_list .pg_wrap strong {
  background: var(--gold); border-color: var(--gold); color: #0d0d0d; cursor: default;
}
.bl-paging .pg_prev a, .bl-paging .pg_next a,
.bl-paging .pg_first a, .bl-paging .pg_last a,
#bo_list .pg_wrap .pg_prev a, #bo_list .pg_wrap .pg_next a,
#bo_list .pg_wrap .pg_first a, #bo_list .pg_wrap .pg_last a {
  font-size: .75rem;
}

/* ── Footer ── */
.bl-foot {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; padding-top: 20px;
}


/* ================================================================
   WRITE  (#bo_w)
   ================================================================ */

#bo_w {
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 120px 24px 80px;
}

/* ── Write head ── */
.bw-head { margin-bottom: 24px; }

.bw-head__label {
  font-size: .6875rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.bw-head__label::after {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: var(--gold); opacity: .4;
}

.bw-head__title {
  font-size: clamp(1.375rem,2.5vw,1.875rem); font-weight: 800;
  letter-spacing: -.025em; color: var(--text); margin: 0;
}

/* ── Card ── */
.bw-card {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 32px 32px 36px;
  position: relative; overflow: hidden; margin-bottom: 0;
}
.bw-card::before {
  content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 140px;
  background: radial-gradient(ellipse, rgba(196,165,90,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Meta row ── */
.bw-meta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.bw-meta-row .bw-field { flex: 1; min-width: 160px; margin-bottom: 0; }
.bw-field--name { flex: 1.2; }
.bw-field--pw   { flex: 1; }

/* ── Field ── */
.bw-field { margin-bottom: 20px; }
.bw-field:last-child { margin-bottom: 0; }

/* ── Labels ── */
.bw-label {
  display: block; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 8px; text-transform: uppercase;
}
.bw-required { color: var(--gold); margin-left: 2px; }

/* ── Inputs ── */
.bw-input {
  display: block; width: 100%;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 14px;
  font-size: .9375rem; font-family: var(--font); color: var(--text);
  transition: border-color .17s, box-shadow .17s, background .17s;
  outline: none; -webkit-appearance: none;
}
.bw-input::placeholder { color: var(--subtle); }
.bw-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); background: rgba(255,255,255,.05); }
.bw-input--title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; padding: 13px 15px; }
.bw-input--sm { padding: 9px 12px; font-size: .875rem; }

/* ── Select ── */
.bw-select {
  display: block; width: 100%; appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,.03)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 13px center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 38px 12px 14px; font-size: .9375rem; font-family: var(--font);
  color: var(--text); cursor: pointer; outline: none;
  transition: border-color .17s, box-shadow .17s;
}
.bw-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.bw-select option { background: #1a1a1f; color: var(--text); }

/* ── Options (checkboxes) ── */
.bw-options-row {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  list-style: none; padding: 12px 15px; margin: 0;
  background: rgba(255,255,255,.02); border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
}
.bw-chk-item { list-style: none; }
.bw-check-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .875rem; font-weight: 500; color: var(--muted);
  cursor: pointer; user-select: none; transition: color .15s;
}
.bw-check-label:hover { color: var(--text); }
.bw-chk { width: 15px; height: 15px; accent-color: var(--gold); cursor: pointer; }
.bw-check-box { display: none; }
/* hide G5's default selec_chk reset */
.selec_chk { position: static; width: 15px; height: 15px; opacity: 1; outline: revert; z-index: auto; overflow: visible; }

/* ── Editor ── */
.bw-editor-wrap {
  width: 100%; border-radius: var(--r-sm); overflow: hidden;
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
  transition: border-color .17s, box-shadow .17s;
}
.bw-editor-wrap:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }

/* textarea fallback (no DHTML editor) */
.bw-editor-wrap textarea,
#bo_w .bw-editor-wrap textarea {
  display: block !important; width: 100% !important; height: 150px !important; min-height: 150px !important;
  background: transparent !important; border: none !important; outline: none !important;
  padding: 16px !important; font-size: .9375rem !important; font-family: var(--font) !important;
  color: var(--text) !important; line-height: 1.75 !important; resize: vertical !important;
  box-sizing: border-box !important;
}
.bw-editor-wrap textarea::placeholder { color: var(--subtle) !important; }

/* ── Char count ── */
.bw-charcount { font-size: .75rem; color: var(--subtle); padding-top: 6px; text-align: right; }

/* ── Limit notice ── */
.bw-limit-notice {
  font-size: .8125rem; color: var(--muted); margin-top: 12px; padding: 10px 14px;
  background: rgba(255,255,255,.025); border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ── File zone ── */
.bw-file-zone {
  background: rgba(255,255,255,.02); border: 1px dashed var(--border);
  border-radius: var(--r-md); padding: 18px; display: flex;
  flex-direction: column; gap: 12px;
  transition: border-color .17s;
}
.bw-file-zone:hover { border-color: rgba(196,165,90,.3); }

.bw-file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.bw-file-label {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: .8125rem; font-weight: 600;
  color: var(--muted); cursor: pointer; flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.bw-file-label:hover { background: var(--gold-glow); border-color: rgba(196,165,90,.3); color: var(--gold); }

.bw-file-input {
  /* visually hidden; label triggers it */
  position: absolute; opacity: 0; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.bw-file-existing { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bw-file-name { font-size: .8125rem; color: var(--text); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-file-size { font-size: .75rem; color: var(--subtle); white-space: nowrap; }
.bw-file-del-label { margin-left: 4px; }
.bw-file-limit-note { font-size: .75rem; color: var(--subtle); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ── Captcha ── */
.bw-field--captcha { border-top: 1px solid var(--border-light); padding-top: 20px; margin-top: 4px; }
.bw-captcha-wrap { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }

/* ── Autosave pop (inherit from G5) ── */
#autosave_pop {
  position: absolute; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px; z-index: 9999;
  font-size: .875rem; color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
#autosave_pop strong { display: block; margin-bottom: 10px; color: var(--text); font-weight: 700; }

/* ── Submit footer ── */
.bw-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 28px; flex-wrap: wrap;
}
.bw-foot__left, .bw-foot__right { display: flex; align-items: center; gap: 8px; }

.bw-submit-btn { padding: 7px 13px !important; font-size: .8125rem !important; }


/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ── List tablet ── */
@media (max-width: 900px) {
  .bl-cols, .bl-row { grid-template-columns: 60px 1fr 72px 88px; }
  .bl-cols.bl-cols--chk, .bl-row.bl-row--chk { grid-template-columns: 34px 60px 1fr 72px 88px; }
  .bl-col--hit, .bl-cell--hit { display: none; }
}

@media (max-width: 680px) {
  #bo_list { padding: 20px 0 40px; }
  .bl-head__title-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bl-search__inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .bl-search__field-wrap { flex-wrap: nowrap; }
  .bl-cols, .bl-row { grid-template-columns: 52px 1fr 72px; }
  .bl-cols.bl-cols--chk, .bl-row.bl-row--chk { grid-template-columns: 30px 52px 1fr 72px; }
  .bl-col--author, .bl-cell--author,
  .bl-col--hit, .bl-cell--hit { display: none; }
}

@media (max-width: 480px) {
  .bl-cols { display: none; }
  .bl-row, .bl-row.bl-row--chk { grid-template-columns: 44px 1fr; }
  .bl-cell--date, .bl-cell--author, .bl-cell--hit { display: none; }
}

/* ── Write tablet / mobile ── */
@media (max-width: 700px) {
  #bo_w { padding: 24px 0 60px; }
  .bw-card { padding: 20px 16px 24px; border-radius: var(--r-md); }
  .bw-meta-row { flex-direction: column; gap: 0; margin-bottom: 0; }
  .bw-meta-row .bw-field { min-width: 100%; margin-bottom: 16px; }
  .bw-options-row { gap: 14px; }
  .bw-foot { flex-direction: column-reverse; align-items: stretch; }
  .bw-foot__left, .bw-foot__right { width: 100%; }
  .bw-submit-btn, .bw-foot__left .bl-btn { width: 100%; justify-content: center; }
}


/* ================================================================
   VIEW  (#bo_v)
   ================================================================ */

#bo_v {
  width: 100%; max-width: 860px; margin: 0 auto;
  padding: 120px 0 80px;
}

/* ── View head ── */
.bv-head {
  padding-bottom: 20px;
  border-bottom: none;
  margin-bottom: 0;
}

.bv-category {
  display: inline-flex; align-items: center; padding: 3px 10px;
  background: var(--gold-glow-md); border: 1px solid rgba(196,165,90,.3);
  border-radius: 4px; font-size: .75rem; font-weight: 700; color: var(--gold);
  letter-spacing: .04em; margin-bottom: 12px;
}

.bv-title {
  font-size: clamp(1.375rem, 2.8vw, 2rem); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.3; color: var(--text);
  margin: 0 0 18px; word-break: break-word;
}

/* ── Meta row ── */
.bv-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}

.bv-meta__author {
  display: flex; align-items: center; gap: 10px;
}

.bv-avatar { display: flex; flex-shrink: 0; }
.bv-avatar img {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); object-fit: cover;
}
/* Fallback if get_member_profile_img returns empty */
.bv-avatar:empty { display: none; }

.bv-name {
  font-size: .9rem; font-weight: 700; color: var(--text);
}
.bv-ip { font-size: .75rem; color: var(--subtle); font-weight: 400; }

.bv-meta__stats {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}

.bv-stat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8125rem; color: var(--muted);
}

/* ── Toolbar ── */
.bv-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.bv-toolbar__left,
.bv-toolbar__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.bv-delete-btn { color: var(--danger) !important; border-color: rgba(224,85,85,.3) !important; }
.bv-delete-btn:hover { background: var(--danger-glow) !important; border-color: var(--danger) !important; }

/* ── Content ── */
.bv-content-wrap {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border-light);
}

.bv-img-thumbs {
  margin-bottom: 28px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.bv-img-thumbs img {
  max-width: 100%; border-radius: var(--r-sm);
  border: 1px solid var(--border-light);
}

#bo_v_con.bv-content {
  font-size: 1rem; line-height: 1.85; color: var(--text);
  word-break: break-word;
}
#bo_v_con.bv-content img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
#bo_v_con.bv-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
#bo_v_con.bv-content a:hover { color: var(--gold-bright); }
#bo_v_con.bv-content p { margin: 0 0 1em; }
#bo_v_con.bv-content blockquote {
  margin: 1.5em 0; padding: 16px 20px;
  border-left: 3px solid var(--gold); background: rgba(196,165,90,.06);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted);
}
#bo_v_con.bv-content pre, #bo_v_con.bv-content code {
  font-family: "Fira Code", "JetBrains Mono", monospace;
  font-size: .875rem; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: var(--r-sm);
}
#bo_v_con.bv-content pre { padding: 16px; overflow-x: auto; }
#bo_v_con.bv-content code { padding: 2px 6px; }

/* ── Signature ── */
.bv-signature {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px dashed var(--border);
  font-size: .875rem; color: var(--subtle);
}

/* ── Share / Scrap ── */
.bv-share {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-light);
}

/* ── React (good/nogood) ── */
.bv-react {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 28px; padding: 24px 0; border-top: 1px solid var(--border-light);
}

.bv-react-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 28px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface);
  text-decoration: none; cursor: pointer;
  transition: background .17s, border-color .17s, transform .13s;
  position: relative;
}
.bv-react-btn--static { cursor: default; }

.bv-react-btn--good { color: var(--gold); }
.bv-react-btn--good:hover:not(.bv-react-btn--static) {
  background: var(--gold-glow-md); border-color: rgba(196,165,90,.4);
  transform: translateY(-2px);
}
.bv-react-btn--nogood { color: var(--muted); }
.bv-react-btn--nogood:hover:not(.bv-react-btn--static) {
  background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14);
  transform: translateY(-2px);
}
.bv-react-btn strong { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.bv-react-msg {
  position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: .75rem; color: var(--gold);
  display: none;
}

/* ── Section titles ── */
.bv-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px;
}

/* ── Attached files ── */
.bv-files {
  margin-top: 24px; padding: 24px 0;
  border-top: 1px solid var(--border-light);
}

.bv-file-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

.bv-file-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

.bv-file-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  text-decoration: none; transition: background .15s, border-color .15s;
  flex: 1; min-width: 0;
}
.bv-file-link:hover { background: var(--gold-glow); border-color: rgba(196,165,90,.3); }
.bv-file-link svg { flex-shrink: 0; color: var(--gold); }
.bv-file-name { font-size: .875rem; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bv-file-desc { font-size: .8125rem; color: var(--muted); flex-shrink: 0; }
.bv-file-size { font-size: .8125rem; color: var(--subtle); flex-shrink: 0; white-space: nowrap; }
.bv-file-dl-cnt { font-size: .75rem; color: var(--subtle); flex-shrink: 0; }

/* ── Related links ── */
.bv-links {
  margin-top: 0; padding: 24px 0;
  border-top: 1px solid var(--border-light);
}
.bv-link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.bv-link-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bv-link-a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; color: var(--gold); text-decoration: none;
  transition: color .15s;
}
.bv-link-a:hover { color: var(--gold-bright); }
.bv-link-a svg { flex-shrink: 0; opacity: .7; }
.bv-link-hit { font-size: .75rem; color: var(--subtle); }

/* ── Prev / Next nav ── */
.bv-nav {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: 24px 0 0;
}

.bv-nav-item {
  display: grid; grid-template-columns: 72px 1fr auto;
  align-items: center; gap: 12px;
  padding: 14px 0; text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: background .14s;
}
.bv-nav-item:last-child { border-bottom: none; }
.bv-nav-item:hover { background: rgba(255,255,255,.025); }

.bv-nav-label {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--subtle); flex-shrink: 0; white-space: nowrap;
}
.bv-nav-subject {
  font-size: .9rem; color: var(--text); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
  transition: color .15s;
}
.bv-nav-item:hover .bv-nav-subject { color: var(--gold); }
.bv-nav-date { font-size: .8125rem; color: var(--subtle); white-space: nowrap; }

/* ── Footer ── */
.bv-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 32px 0 24px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.bv-foot .bl-btn { min-width: 100px; justify-content: center; }

/* ── Comment area (G5 appends its own comment HTML) ── */
#bo_vc { margin-top: 40px; }

/* G5 default comment container resets / overrides */
#bo_vc .vc_w { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; }
#bo_vc .vc_img { border-radius: 50%; }
#bo_vc .vc_name strong { color: var(--text); font-weight: 700; }
#bo_vc .vc_con { color: var(--text); font-size: .9375rem; line-height: 1.7; }
#bo_vc .vc_date { color: var(--subtle); font-size: .8125rem; }
#bo_vc .vc_reply { color: var(--gold); }

/* View responsive */
@media (max-width: 680px) {
  #bo_v { padding: 24px 0 60px; }
  .bv-title { font-size: 1.375rem; }
  .bv-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .bv-actions { flex-direction: column; align-items: flex-start; }
  .bv-react-btn { padding: 14px 20px; }
  .bv-nav-item { grid-template-columns: 64px 1fr; }
  .bv-nav-date { display: none; }
}


.bv-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:32px 0 24px;flex-wrap:wrap;border-top:1px solid var(--border);}
.bv-foot .bl-btn{min-width:100px;justify-content:center;}

/* ── 라이트모드 버튼 텍스트 흰색 ── */
[data-theme="light"] .bl-btn--gold       { color: #ffffff; }
[data-theme="light"] .bl-btn--gold:hover { color: #ffffff; }
[data-theme="light"] .bl-search__btn     { color: #ffffff !important; }
[data-theme="light"] .bl-btn--ghost {
  background: #2a2a2e;
  border-color: #2a2a2e;
  color: #ffffff;
}
[data-theme="light"] .bl-btn--ghost:hover {
  background: #3a3a3e;
  border-color: #3a3a3e;
  color: #ffffff;
}

/* ================================================================
   qv- : QA View (post detail)
   ================================================================ */

#bo_v {
  --font: "Pretendard Variable","Pretendard",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  --bg:          var(--color-bg,          #131316);
  --surface:     var(--color-surface,     #1a1a1f);
  --border:      var(--color-border,      rgba(255,255,255,.08));
  --border-sub:  rgba(255,255,255,.05);
  --text:        var(--color-text,        #f0f0f0);
  --muted:       var(--color-text-muted,  #888);
  --subtle:      #5c5c64;
  --gold:        var(--color-accent,      #C4A55A);
  --gold-bright: #D4C080;
  --gold-glow:   rgba(196,165,90,.12);
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px;
  --ease: cubic-bezier(0.16,1,0.3,1);
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 120px 24px 80px;
}
#bo_v *, #bo_v *::before, #bo_v *::after { box-sizing: border-box; }
#bo_v h2 { font-size: inherit; font-weight: inherit; margin: 0; }

/* Reading progress */
.qv-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 2px; background: linear-gradient(90deg, #C4A55A, #D4C080);
  width: var(--qv-prog, 0%);
  box-shadow: 0 0 8px rgba(196,165,90,.6);
  transition: width .08s linear;
  pointer-events: none;
}

/* Entrance animation */
@keyframes qv-rise {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
.qv-anim { animation: qv-rise .55s var(--ease) both; }
.qv-anim--d1 { animation-delay:.04s; }
.qv-anim--d2 { animation-delay:.11s; }
.qv-anim--d3 { animation-delay:.18s; }
.qv-anim--d4 { animation-delay:.26s; }
.qv-anim--d5 { animation-delay:.34s; }
.qv-anim--d6 { animation-delay:.42s; }

/* ── Board header ── */
.qv-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 36px; padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.qv-kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 7px;
}
.qv-kicker::before {
  content: ''; display: inline-block;
  width: 18px; height: 2px; background: var(--gold); border-radius: 1px;
}
.qv-headline {
  font-size: clamp(1.25rem,2.5vw,1.625rem) !important;
  font-weight: 700 !important; letter-spacing: -.03em !important;
  line-height: 1.2 !important; color: var(--text) !important; margin: 0 !important;
}

/* ── Badge row ── */
.qv-badge-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.qv-type-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 8px; border-radius: 100px;
  font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  border: 1px solid var(--badge-clr, var(--gold));
  background: color-mix(in srgb, var(--badge-clr, var(--gold)) 11%, transparent);
  color: var(--badge-clr, var(--gold));
}
.qv-type-badge__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--badge-clr, var(--gold)); flex-shrink: 0;
}
.qv-status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 100px;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  background: rgba(78,201,148,.12); border: 1px solid rgba(78,201,148,.3);
  color: #4EC994;
}
.qv-post-num {
  margin-left: auto;
  font-size: .78rem; color: var(--subtle); font-weight: 500;
}

/* ── Title ── */
.qv-title {
  font-size: clamp(1.25rem,2.5vw,1.75rem) !important;
  font-weight: 700 !important; letter-spacing: -.025em !important;
  line-height: 1.35 !important; color: var(--text) !important;
  margin: 0 0 18px !important; word-break: break-word !important;
}
.qv-reply-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .75rem; color: var(--muted); margin-bottom: 8px;
}

/* ── Meta bar ── */
.qv-meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 13px 0; margin-bottom: 4px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.qv-author { display: flex; align-items: center; gap: 10px; }
.qv-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(196,165,90,.08);
  border: 1.5px solid rgba(196,165,90,.25);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.qv-avatar img, .qv-avatar .img_profile { width: 100%; height: 100%; object-fit: cover; }
.qv-author-name { font-size: .875rem; font-weight: 700; color: var(--text); }
.qv-stats { display: flex; align-items: center; gap: 14px; }
.qv-stat {
  display: flex; align-items: center; gap: 5px;
  font-size: .8rem; color: var(--muted);
}
.qv-stat svg { opacity: .7; flex-shrink: 0; }

/* ── Toolbar ── */
.qv-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px 0 16px;
}
.qv-toolbar__left, .qv-toolbar__right { display: flex; align-items: center; gap: 6px; }

/* ── #bo_v 전용 버튼 재정의 ── */
#bo_v .bl-btn {
  height: 34px; padding: 0 14px;
  font-size: .8125rem; font-weight: 600;
  border-radius: 8px;
  transition: background .18s var(--ease), border-color .18s, color .18s,
              transform .13s var(--ease), box-shadow .17s;
}
/* Ghost — 다크모드 */
#bo_v .bl-btn--ghost {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(240,240,240,.8);
}
#bo_v .bl-btn--ghost:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.28);
  color: #f0f0f0;
  transform: translateY(-1px);
}
#bo_v .bl-btn--ghost:active { transform: scale(.97); }

/* Gold */
#bo_v .bl-btn--gold {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #0d0d0d;
  box-shadow: 0 4px 16px rgba(196,165,90,.3);
}
#bo_v .bl-btn--gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 6px 22px rgba(196,165,90,.45);
  transform: translateY(-1px);
}

/* Danger (삭제) */
#bo_v .bl-btn--danger {
  background: rgba(248,113,113,.07);
  border: 1px solid rgba(248,113,113,.25);
  color: #f87171;
}
#bo_v .bl-btn--danger:hover {
  background: rgba(248,113,113,.14);
  border-color: rgba(248,113,113,.5);
  transform: translateY(-1px);
}

/* 라이트모드 버튼 */
[data-theme="light"] #bo_v .bl-btn--ghost {
  background: #f7f5f0;
  border-color: #d5d0c8;
  color: #3a3a3f;
}
[data-theme="light"] #bo_v .bl-btn--ghost:hover {
  background: #eeebe3;
  border-color: #bfbab2;
  color: #18181a;
}
[data-theme="light"] #bo_v .bl-btn--gold { color: #0d0d0d; }
[data-theme="light"] #bo_v .bl-btn--danger {
  background: rgba(220,38,38,.06);
  border-color: rgba(220,38,38,.25);
  color: #dc2626;
}

/* ── Spotlight card ── */
.qv-card {
  position: relative; overflow: hidden;
  background: rgba(16,16,22,.78);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 40px;
  margin-bottom: 18px;
  box-shadow: 0 12px 56px rgba(0,0,0,.5),
              inset 0 1px 0 rgba(255,255,255,.06);
}
.qv-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    520px circle at var(--mx, -200px) var(--my, -200px),
    rgba(196,165,90,.11), transparent 42%
  );
  opacity: 0; transition: opacity .5s;
  pointer-events: none;
}
.qv-card:hover::before { opacity: 1; }

/* Image thumbnails */
.qv-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.qv-thumbs img { border-radius: var(--r-sm); max-width: 100%; border: 1px solid var(--border-sub); }

/* Content body */
#bo_v_con {
  font-size: 1rem; line-height: 1.9; color: rgba(240,240,240,.84); word-break: break-word;
}
#bo_v_con img { max-width: 100%; height: auto; border-radius: var(--r-sm); margin: 4px 0; }
#bo_v_con a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
#bo_v_con a:hover { color: var(--gold-bright); }
#bo_v_con p { margin: 0 0 1em; }
#bo_v_con p:last-child { margin-bottom: 0; }
#bo_v_con blockquote {
  margin: 1.5em 0; padding: 14px 18px;
  border-left: 3px solid var(--gold); background: rgba(196,165,90,.06);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted);
}
#bo_v_con pre, #bo_v_con code {
  font-family: "JetBrains Mono","Fira Code",monospace;
  font-size: .875rem; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: var(--r-sm);
}
#bo_v_con pre { padding: 16px; overflow-x: auto; margin: 1em 0; }
#bo_v_con code { padding: 2px 6px; }

/* Signature */
.qv-signature {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: .875rem; color: var(--subtle);
}

/* Share */
.qv-share {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; padding-top: 22px; margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* React */
.qv-react {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; padding-top: 28px; margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.qv-react-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03);
  font-size: .875rem; font-weight: 600; color: var(--muted);
  cursor: pointer; text-decoration: none;
  transition: border-color .2s, color .2s, background .2s, transform .15s var(--ease);
}
.qv-react-btn:hover { border-color: rgba(196,165,90,.4); color: var(--gold); background: rgba(196,165,90,.08); transform: translateY(-1px); }
.qv-react-btn:active { transform: scale(.97); }
.qv-react-msg { font-size: .75rem; font-weight: 400; }

/* ── Attachments ── */
.qv-files {
  background: rgba(14,14,18,.5); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 14px;
}
.qv-section-label {
  display: flex; align-items: center; gap: 7px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.qv-file-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.qv-file-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qv-file-link {
  display: flex; align-items: center; gap: 8px;
  font-size: .875rem; color: var(--muted); text-decoration: none;
  transition: color .15s;
}
.qv-file-link:hover { color: var(--gold); }
.qv-file-size, .qv-file-dl { font-size: .75rem; color: var(--subtle); }

/* ── Prev/Next nav ── */
.qv-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 18px;
}
.qv-nav-item {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 18px;
  background: rgba(20,20,26,.65); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md); text-decoration: none;
  transition: border-color .25s, background .25s;
}
.qv-nav-item::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx,-100px) var(--my,-100px), rgba(196,165,90,.09), transparent 70%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.qv-nav-item:hover::before { opacity: 1; }
.qv-nav-item:hover { border-color: rgba(196,165,90,.28); background: rgba(28,26,20,.7); }
.qv-nav-item--next { text-align: right; }
.qv-nav-label {
  display: flex; align-items: center; gap: 5px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.qv-nav-item--next .qv-nav-label { justify-content: flex-end; }
.qv-nav-subject {
  font-size: .875rem; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .15s;
}
.qv-nav-item:hover .qv-nav-subject { color: var(--gold); }
.qv-nav-date { font-size: .75rem; color: var(--subtle); }
.qv-nav-item--next .qv-nav-date { text-align: right; }
.qv-nav-empty {
  border: 1px dashed rgba(255,255,255,.05); border-radius: var(--r-md);
  background: rgba(255,255,255,.008);
}

/* ── Footer ── */
.qv-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 24px 0 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ── View comment area ── */
#bo_vc { margin-top: 32px; }

/* ── vc- Light mode overrides (comment) ── */
[data-theme="light"] .vc-wrap { --text:#18181a; --gold:#C4A55A; }
[data-theme="light"] .vc-header { border-top-color: #e0ddd6; }
[data-theme="light"] .vc-item { border-bottom-color: #e8e4dc; }
[data-theme="light"] .vc-item--reply { border-left-color: rgba(196,165,90,.25); }
[data-theme="light"] .vc-name { color: #18181a; }
[data-theme="light"] .vc-body { color: #2a2a2e; }
[data-theme="light"] .vc-textarea {
  background: #f7f5f0; border-color: #ddd9d0; color: #18181a;
}
[data-theme="light"] .vc-textarea::placeholder { color: #aaa; }
[data-theme="light"] .vc-input {
  background: #f7f5f0; border-color: #ddd9d0; color: #18181a;
}
[data-theme="light"] .vc-act-btn {
  border-color: #e0ddd6; color: #888;
}
[data-theme="light"] .vc-act-btn:hover { background: rgba(196,165,90,.08); }
[data-theme="light"] .vc-form-wrap { border-top-color: #e8e4dc; }

/* ── qv- Light mode overrides ── */
[data-theme="light"] #bo_v {
  --bg: #f4f2ec; --surface: #fff;
  --border: rgba(0,0,0,.1); --border-sub: rgba(0,0,0,.07);
  --text: #18181a; --muted: #6b6b72; --subtle: #9999a0;
}
[data-theme="light"] .qv-head { border-bottom-color: #e0ddd6; }
[data-theme="light"] .qv-meta { border-color: #e0ddd6; }
[data-theme="light"] .qv-card {
  background: #ffffff; border-color: #e0ddd6;
  box-shadow: 0 4px 28px rgba(0,0,0,.07);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
[data-theme="light"] .qv-card::before { display: none; }
[data-theme="light"] #bo_v_con { color: #18181a; }
[data-theme="light"] #bo_v_con blockquote { background: rgba(196,165,90,.06); }
[data-theme="light"] #bo_v_con pre, [data-theme="light"] #bo_v_con code {
  background: #f4f2ec; border-color: #e0ddd6;
}
[data-theme="light"] .qv-files { background: #f7f5f0; border-color: #e0ddd6; }
[data-theme="light"] .qv-nav-item { background: #ffffff; border-color: #e0ddd6; }
[data-theme="light"] .qv-nav-item:hover { background: #f7f5f0; border-color: rgba(196,165,90,.3); }
[data-theme="light"] .qv-nav-item::before { display: none; }
[data-theme="light"] .qv-react-btn { background: #f7f5f0; border-color: #ddd9d0; color: #6b6b72; }
[data-theme="light"] .qv-share { border-top-color: #e8e4dc; }
[data-theme="light"] .qv-react { border-top-color: #e8e4dc; }
[data-theme="light"] .qv-signature { border-top-color: #e8e4dc; }
[data-theme="light"] .qv-foot { border-top-color: #e0ddd6; }

/* ── Responsive ── */
@media (max-width:760px) {
  #bo_v { padding: 80px 16px 60px; }
  .qv-card { padding: 22px 18px; border-radius: var(--r-md); }
  .qv-nav { grid-template-columns: 1fr; }
  .qv-nav-item--next { text-align: left; }
  .qv-nav-item--next .qv-nav-label { justify-content: flex-start; }
  .qv-nav-item--next .qv-nav-date { text-align: left; }
  .qv-stats { flex-wrap: wrap; gap: 10px; }
  .qv-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width:480px) {
  #bo_v { padding: 60px 12px 40px; }
  .qv-card { padding: 18px 14px; }
  .qv-title { font-size: 1.25rem !important; }
  .qv-foot { flex-direction: column; align-items: stretch; }
  .qv-foot .bl-btn { justify-content: center; }
}

/* ================================================================
   ql- : QA List (card-based)
   ================================================================ */

@keyframes qlFadeUp {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}

.ql-wrap {
  --ease: cubic-bezier(0.16,1,0.3,1);
  --r-md: 14px;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 0 60px;
}

/* Header */
.ql-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.ql-kicker { font-size: .6875rem; font-weight: 700; letter-spacing: .18em; color: var(--gold); margin-bottom: 4px; }
.ql-headline { font-size: 1.625rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); margin: 0; }
.ql-admin-btn { font-size: .75rem; color: var(--muted); text-decoration: none; padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; transition: color .17s, border-color .17s; }
.ql-admin-btn:hover { color: var(--text); border-color: var(--gold-dim); }

/* Category filters */
.ql-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ql-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  transition: color .17s, border-color .17s, background .17s;
}
.ql-filter:hover { color: var(--text); border-color: rgba(255,255,255,.15); }
.ql-filter.is-on {
  color: var(--fc, var(--gold));
  border-color: var(--fc, var(--gold));
  background: rgba(255,255,255,.06);
}
.ql-filter__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ql-filter__dot--all { background: var(--gold); }

/* Stats + search row */
.ql-stats { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-height: 36px; }
.ql-stats__total { font-size: .8rem; color: var(--muted); display: flex; align-items: center; }
.ql-stats__total strong { color: var(--text); }
.ql-stats__right { display: flex; align-items: stretch; gap: 8px; flex-shrink: 0; height: 36px; }
.ql-search-form  { display: flex; align-items: stretch; gap: 6px; flex-shrink: 0; height: 100%; }
.ql-sfl { height: 100% !important; width: auto !important; flex-shrink: 0 !important; border-radius: 8px !important; font-size: .8rem !important; }
.ql-search-wrap {
  height: 100%;
  background: rgba(255,255,255,.04)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E")
    no-repeat 10px center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
}
.ql-search-input {
  width: 150px !important; height: 100% !important;
  padding: 0 10px 0 30px !important;
  background: transparent !important;
  border: none !important; outline: none;
  font-size: .8rem !important; color: var(--text) !important;
}
.ql-search-input::placeholder { color: var(--subtle); }
.ql-search-btn {
  height: 100%; padding: 0 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  font-size: .8rem; color: var(--muted);
  cursor: pointer; transition: background .17s, color .17s;
  white-space: nowrap; flex-shrink: 0;
}
.ql-search-btn:hover { background: rgba(255,255,255,.1); color: var(--text); }

/* Write button */
.ql-write-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 18px; height: 36px;
  background: var(--gold);
  border: none; border-radius: 8px;
  font-size: .8rem; font-weight: 700; color: #111;
  text-decoration: none; cursor: pointer;
  transition: background .17s, box-shadow .17s;
  box-shadow: 0 2px 12px rgba(196,165,90,.28);
  flex-shrink: 0; white-space: nowrap;
}
.ql-write-btn:hover { background: #d4b46a; box-shadow: 0 4px 20px rgba(196,165,90,.4); }
.ql-write-btn--sm { font-size: .8rem; }

/* Cards */
.ql-cards { display: flex; flex-direction: column; gap: 10px; }

.ql-card {
  position: relative;
  display: flex; align-items: center; gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid rgba(196,165,90,.45);
  border-radius: var(--r-md);
  overflow: hidden; cursor: pointer; text-decoration: none;
  box-shadow: inset 6px 0 24px -10px rgba(196,165,90,.12);
  transition: border-color .2s var(--ease), box-shadow .25s, transform .15s;
  animation: qlFadeUp .45s var(--ease) both;
  animation-delay: var(--anim-delay, 0ms);
}
.ql-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx,-100px) var(--my,-100px),
    rgba(196,165,90,.1), transparent 60%);
  pointer-events: none; opacity: 0;
  transition: opacity .3s; z-index: 0;
}
.ql-card:hover::before { opacity: 1; }
.ql-card:hover {
  border-color: rgba(196,165,90,.35);
  border-left-color: #C4A55A;
  box-shadow: inset 10px 0 32px -10px rgba(196,165,90,.18), 0 8px 32px rgba(0,0,0,.25);
  transform: translateY(-1px);
}
.ql-card > * { position: relative; z-index: 1; }
.ql-card--notice { background: color-mix(in srgb, var(--gold) 5%, var(--surface)); border-color: rgba(196,165,90,.18); }
@supports not (background: color-mix(in srgb, red 10%, blue)) {
  .ql-card--notice { background: rgba(196,165,90,.04); }
}

/* 답변 완료 카드 */
.ql-card--answered {
  border-left-color: #888;
  box-shadow: inset 6px 0 24px -10px rgba(136,136,136,.1);
}
.ql-card--answered .ql-card__body { padding-left: 68px !important; }
.ql-card--answered:hover {
  border-left-color: #aaa;
  border-color: rgba(136,136,136,.25);
  box-shadow: inset 10px 0 32px -10px rgba(136,136,136,.15), 0 8px 32px rgba(0,0,0,.25);
}
.ql-card--answered::before {
  background: radial-gradient(280px circle at var(--mx,-100px) var(--my,-100px),
    rgba(136,136,136,.06), transparent 60%);
}

/* 답변 배지 */
.ql-badge--answered {
  background: rgba(136,136,136,.15);
  color: #999;
  border: 1px solid rgba(136,136,136,.3);
}

/* Checkbox */
.ql-card__chk { padding: 0 0 0 16px; flex-shrink: 0; }
.ql-chk { width: 15px; height: 15px; accent-color: var(--gold); cursor: pointer; }

/* Card body */
.ql-card__body { flex: 1; padding: 14px 16px 14px 18px; min-width: 0; }
.ql-card__top  { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ql-card__badges { display: flex; gap: 6px; }
.ql-card__num { font-size: .7rem; color: var(--subtle); font-variant-numeric: tabular-nums; }

.ql-badge {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 4px;
  font-size: .65rem; font-weight: 800; letter-spacing: .06em;
}
.ql-badge--notice { background: rgba(196,165,90,.15); color: var(--gold); }
.ql-badge--type   { background: rgba(var(--card-clr,196,165,90),.15); color: var(--card-clr, var(--gold)); border: 1px solid rgba(var(--card-clr,196,165,90),.25); }

.ql-card__title {
  display: block;
  font-size: .9375rem; font-weight: 600; color: var(--text);
  text-decoration: none; line-height: 1.4;
  margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ql-card__title:hover { color: var(--gold); }
.ql-comment-cnt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: 6px; vertical-align: middle;
  background: rgba(196,165,90,.15); border-radius: 9px;
  font-size: .65rem; font-weight: 700; color: var(--gold);
}

.ql-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; flex-shrink: 0; padding: 0 20px; border-left: 1px solid var(--border); }
.ql-meta-item { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--muted); }
.ql-meta-item--reply { color: var(--gold); }
.ql-meta-sep { color: var(--subtle); font-size: .65rem; }

/* Arrow */
.ql-card__arrow { padding: 0 16px 0 8px; flex-shrink: 0; color: var(--subtle); transition: color .17s, transform .17s; }
.ql-card:hover .ql-card__arrow { color: var(--gold); transform: translateX(3px); }

/* Empty */
.ql-empty { display: flex; flex-direction: column; align-items: center; padding: 64px 24px; gap: 10px; }
.ql-empty__icon-wrap { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.04); border-radius: 14px; color: var(--subtle); }
.ql-empty__title { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0; }
.ql-empty__desc  { font-size: .85rem; color: var(--muted); text-align: center; line-height: 1.6; margin: 0; }

/* Bulk / Paging / Foot */
.ql-bulk-bar { display: flex; gap: 8px; padding: 14px 0 0; }
.ql-paging { margin-top: 28px; display: flex; justify-content: center; }
.ql-foot   { display: flex; justify-content: flex-end; padding-top: 20px; }

/* Light mode */
[data-theme="light"] .ql-wrap { --surface: #fff; }
[data-theme="light"] .ql-card { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
[data-theme="light"] .ql-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); }
[data-theme="light"] .ql-search-wrap { background-color: #f4f3ef; border-color: #d6d3cb; }
[data-theme="light"] .ql-search-input { color: #18181a !important; }
[data-theme="light"] .ql-filter { background: #f4f3ef; border-color: #d6d3cb; color: #555; }

/* Responsive */
@media (max-width: 640px) {
  .ql-stats { flex-direction: column; align-items: flex-start; height: auto; }
  .ql-stats__right { height: 36px; }
  .ql-search-input { width: 120px !important; }
  .ql-card__title { font-size: .875rem; }
}


/* ================================================================
   qw- : QA Write (numbered steps)
   ================================================================ */

@keyframes qwFadeUp {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}

.qw-write {
  --ease: cubic-bezier(0.16,1,0.3,1);
  --r-sm: 8px; --r-md: 12px;
  max-width: 860px; margin: 0 auto;
  padding: 32px 0 80px;
}

/* Header */
.qw-head { margin-bottom: 40px; }
.qw-head__kicker {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px;
  background: rgba(196,165,90,.1);
  border: 1px solid rgba(196,165,90,.25);
  border-radius: 20px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .16em;
  color: var(--gold); margin-bottom: 14px;
}
.qw-head__title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); margin: 0 0 10px; }
.qw-head__desc  { font-size: .875rem; color: var(--muted); line-height: 1.65; margin: 0; }

/* Step */
.qw-step {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  animation: qwFadeUp .5s var(--ease) both;
}
.qw-step:last-of-type { border-bottom: none; }
.qw-step__hd { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
.qw-step__num {
  font-size: 3.5rem; font-weight: 900; line-height: 1;
  color: rgba(255,255,255,.06); letter-spacing: -.04em; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.qw-step__num--sm {
  font-size: 1rem; color: var(--subtle);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: 12px;
}
.qw-step__label { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.qw-step__sub   { font-size: .825rem; color: var(--muted); }
.qw-req      { color: var(--gold); }
.qw-optional { font-size: .75rem; color: var(--subtle); font-weight: 400; }

/* Type grid (5 cols) */
.qw-type-list {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.qw-type-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center;
  padding: 20px 12px 16px;
  background: rgba(255,255,255,.025);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .22s var(--ease), background .22s, box-shadow .22s, transform .18s var(--ease);
  position: relative; overflow: hidden;
}
.qw-type-item input[type=radio] { display: none; }
.qw-type-item:hover {
  border-color: rgba(196,165,90,.35);
  background: rgba(255,255,255,.04);
  transform: translateY(-3px);
}
.qw-type-item.is-selected {
  border-color: var(--item-color, var(--gold));
  background: color-mix(in srgb, var(--item-color, #C4A55A) 7%, transparent);
  box-shadow: inset 0 3px 0 var(--item-color, var(--gold)),
              0 6px 24px color-mix(in srgb, var(--item-color, #C4A55A) 20%, transparent);
  transform: translateY(0);
}
@supports not (background: color-mix(in srgb, red 10%, blue)) {
  .qw-type-item.is-selected { background: rgba(196,165,90,.07); box-shadow: inset 0 3px 0 var(--item-color, var(--gold)); }
}

.qw-type-item__badge {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--item-color, #C4A55A) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--item-color, #C4A55A) 28%, transparent);
  border-radius: 11px;
  color: var(--item-color, var(--gold));
  transition: transform .2s var(--ease);
}
@supports not (background: color-mix(in srgb, red 10%, blue)) {
  .qw-type-item__badge { background: rgba(196,165,90,.1); border-color: rgba(196,165,90,.25); color: var(--gold); }
}
.qw-type-item.is-selected .qw-type-item__badge { transform: scale(1.1); }

.qw-type-item__body { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.qw-type-item__name { font-size: .8125rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.qw-type-item__desc { font-size: .7rem; color: var(--muted); line-height: 1.4; }

.qw-type-item__check {
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  transition: border-color .2s, background .2s, color .2s;
}
.qw-type-item.is-selected .qw-type-item__check {
  background: var(--item-color, var(--gold));
  border-color: var(--item-color, var(--gold));
  color: #fff;
}

/* Grid layouts */
.qw-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.qw-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Fields */
.qw-field { display: flex; flex-direction: column; gap: 7px; }
.qw-label { font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.qw-input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: .875rem; font-family: inherit;
  color: var(--text);
  transition: border-color .17s, box-shadow .17s;
  outline: none; box-sizing: border-box;
}
.qw-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,165,90,.12); }
.qw-input::placeholder { color: var(--subtle); }
.qw-input--title { font-size: .9375rem; font-weight: 600; padding: 12px 14px; }
.qw-input--sm { font-size: .8rem; padding: 7px 12px; }

.qw-editor-wrap { border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-sm); overflow: hidden; }
.qw-editor-wrap textarea.qw-input { border: none; border-radius: 0; resize: vertical; min-height: 200px; }
.qw-limit-notice { font-size: .8rem; color: var(--muted); margin: 0 0 8px; }
.qw-charcount { font-size: .75rem; color: var(--subtle); text-align: right; margin-top: 4px; }

/* File */
.qw-file-area { display: flex; flex-direction: column; gap: 8px; }
.qw-file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qw-file-label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  font-size: .8rem; color: var(--muted); cursor: pointer;
  transition: background .17s, color .17s;
}
.qw-file-label:hover { background: rgba(255,255,255,.08); color: var(--text); }
.qw-file-input { display: none; }
.qw-file-existing { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }

/* Submit */
.qw-submit-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding-top: 28px; flex-wrap: wrap;
}
.qw-cancel-btn { font-size: .875rem !important; color: var(--muted) !important; }
.qw-submit-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #C4A55A 0%, #D4BE7A 50%, #C4A55A 100%);
  background-size: 200% 200%;
  border: none; border-radius: var(--r-md);
  font-size: .9375rem; font-weight: 800; letter-spacing: .02em;
  color: #111; cursor: pointer;
  transition: background-position .4s var(--ease), box-shadow .25s, transform .18s var(--ease);
  box-shadow: 0 4px 22px rgba(196,165,90,.3), inset 0 1px 0 rgba(255,255,255,.15);
  flex: 1; justify-content: center; max-width: 360px;
}
.qw-submit-btn:hover { background-position: 100% 100%; box-shadow: 0 8px 32px rgba(196,165,90,.48), inset 0 1px 0 rgba(255,255,255,.15); transform: translateY(-1px); }
.qw-submit-btn:active { transform: translateY(0); }
.qw-submit-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.qw-submit-btn__icon { flex-shrink: 0; transition: transform .2s var(--ease); }
.qw-submit-btn:hover .qw-submit-btn__icon { transform: translateX(3px); }

/* Light mode */
[data-theme="light"] .qw-step { border-bottom-color: #e8e4dc; }
[data-theme="light"] .qw-type-item { background: #f7f5f0; border-color: #ddd9d0; }
[data-theme="light"] .qw-type-item:hover { background: #f0ece3; }
[data-theme="light"] .qw-type-item__name { color: #18181a; }
[data-theme="light"] .qw-type-item__desc { color: #6b6b72; }
[data-theme="light"] .qw-input { background: #f7f5f0; border-color: #ddd9d0; color: #18181a; }
[data-theme="light"] .qw-submit-btn { color: #1a1a1a; }

/* Responsive */
@media (max-width: 760px) {
  .qw-type-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .qw-type-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .qw-grid-3 { grid-template-columns: 1fr; }
  .qw-grid-2 { grid-template-columns: 1fr; }
  .qw-submit-btn { max-width: 100%; }
  .qw-submit-wrap { flex-direction: column; align-items: stretch; }
  .qw-cancel-btn  { text-align: center; }
}
