/* weight.css — SpecEnvoy Weight Tracker. Harmonizes with /style.css tokens. */
:root {
  --wt-green: #4cd17b;
  --wt-red: #ff7a86;
  --wt-line: #5b8def;
}
#weight-app { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

/* ---- cards ---- */
.wt-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px;
}
.wt-h2 { font-size: 17px; font-weight: 650; margin: 0 0 14px; letter-spacing: -0.01em; }
.wt-sub { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 8px 0 0; }

/* ---- profile bar (family): a pinned row with a horizontal scroller ---- */
.wt-profiles { display: flex; gap: 8px; align-items: center; }
.wt-pscroll {
  display: flex; gap: 8px; align-items: center; overflow-x: auto; flex: 1 1 auto; min-width: 0;
  padding: 2px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;   /* Firefox */
}
.wt-pscroll::-webkit-scrollbar { display: none; }   /* WebKit */
.wt-pchip {
  border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: var(--muted);
  border-radius: 999px; padding: 7px 15px; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; flex: 0 0 auto; white-space: nowrap; max-width: 45vw; overflow: hidden;
  text-overflow: ellipsis; touch-action: manipulation;
  transition: border-color .12s, color .12s, background .12s, transform .12s, box-shadow .12s;
}
.wt-pchip:hover { color: var(--ink); border-color: var(--accent); }
.wt-pchip.on { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }
.wt-pscroll .wt-pchip { cursor: grab; }
.wt-pchip.wt-dragging { cursor: grabbing; opacity: .9; transform: scale(1.06); box-shadow: 0 8px 20px rgba(0, 0, 0, .45); border-color: var(--accent); z-index: 2; }
.wt-padd, .wt-pcog { flex: 0 0 auto; }
.wt-padd { border-style: dashed; }
.wt-pcog { padding: 7px 12px; }

/* ---- unusual readings drill-in ---- */
.wt-suspect { background: rgba(255, 122, 89, .07); border: 1px solid rgba(255, 122, 89, .28); border-radius: 12px; padding: 12px 16px; }
.wt-suspect-head { background: none; border: none; color: #ffb59f; font-size: 13.5px; font-weight: 650; cursor: pointer; font-family: inherit; padding: 0; }
.wt-suspect-note { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin: 6px 0 0; }
.wt-suspect-body { margin-top: 8px; }
.wt-suspect-row { font-size: 13px; color: var(--ink); padding: 3px 0; opacity: .85; }

/* ---- data-safety bar ---- */
.wt-safety {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--gold-soft); border: 1px solid rgba(243, 200, 73, .3);
  border-radius: 14px; padding: 12px 16px;
}
.wt-safety-txt { flex: 1; min-width: 220px; font-size: 13px; color: var(--ink); line-height: 1.5; }
.wt-safety-txt strong { color: var(--gold); }

.wt-notice { border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.55; }
.wt-notice.warn { background: rgba(255, 122, 89, .12); border: 1px solid rgba(255, 122, 89, .35); color: #ffd9cd; }

/* ---- buttons ---- */
.wt-btn {
  border: 1px solid var(--border); background: rgba(255, 255, 255, .05); color: var(--ink);
  border-radius: 10px; padding: 9px 15px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform .12s, background .12s, border-color .12s; font-family: inherit;
}
.wt-btn:hover { background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.wt-btn:active { transform: translateY(0); }
.wt-btn-primary { background: var(--accent); border-color: var(--accent); }
.wt-btn-primary:hover { background: #4f7ee8; }
.wt-btn-gold { background: var(--gold); border-color: var(--gold); color: #201800; }
.wt-btn-gold:hover { background: #f7d666; }
.wt-btn-danger { color: var(--wt-red); border-color: rgba(255, 122, 134, .4); }
.wt-btn-danger:hover { background: rgba(255, 122, 134, .12); }
@keyframes wt-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(243, 200, 73, .5); } 50% { box-shadow: 0 0 0 7px rgba(243, 200, 73, 0); } }
.wt-pulse { animation: wt-pulse 1.8s ease-out infinite; }

/* ---- forms ---- */
.wt-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 16px; }
.wt-field { display: flex; flex-direction: column; gap: 6px; }
.wt-field-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.wt-inwrap { position: relative; display: flex; align-items: center; }
.wt-input {
  width: 100%; background: rgba(0, 0, 0, .25); border: 1px solid var(--border); color: var(--ink);
  border-radius: 10px; padding: 10px 12px; font-size: 15px; font-family: inherit;
}
.wt-input:focus { outline: none; border-color: var(--accent); }
.wt-suffix { position: absolute; right: 12px; color: var(--muted); font-size: 13px; pointer-events: none; }
select.wt-input { appearance: none; }
.wt-hctl { display: flex; flex-direction: column; gap: 6px; }
.wt-htoggle { max-width: 120px; }
.wt-ftin { display: flex; align-items: center; gap: 6px; }
.wt-ftin .wt-input { width: 64px; }
.wt-ftlabel { color: var(--muted); font-size: 13px; margin-right: 4px; }

/* ---- headline stats ---- */
.wt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.wt-stat {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 14px; text-align: center;
}
.wt-stat-hero { grid-column: span 2; background: linear-gradient(160deg, rgba(59, 111, 224, .18), rgba(59, 111, 224, .04)); border-color: rgba(59, 111, 224, .4); }
.wt-stat-val { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.wt-stat-hero .wt-stat-val { font-size: 40px; }
.wt-stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }
.wt-stat-eta .wt-stat-val { font-size: 18px; color: var(--gold); }
.wt-good { color: var(--wt-green); }
.wt-bad { color: var(--wt-red); }
.wt-down { color: var(--wt-green); }
.wt-up { color: var(--wt-red); }

/* ---- chart ---- */
.wt-chart-head { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.wt-ranges { display: flex; gap: 6px; }
.wt-chip {
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.wt-chip.on { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }
.wt-chart { width: 100%; height: auto; display: block; }
.wt-axis { fill: var(--muted); font-size: 11px; }
.wt-chart-empty { color: var(--muted); text-align: center; padding: 40px 0; font-size: 14px; }
.wt-brk-note { color: var(--gold); font-size: 12px; margin-top: 6px; opacity: .85; }

/* ---- journey narrative (non-AI story) ---- */
.wt-narr { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.wt-narr-head { background: none; border: none; color: var(--accent); font-size: 13.5px; font-weight: 650; cursor: pointer; font-family: inherit; padding: 2px 0; }
.wt-narr-body { margin-top: 6px; }
.wt-narr-p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 6px 0; }
.wt-narr-p:first-child { color: var(--ink); }

.wt-nudge { background: var(--gold-soft); border: 1px solid rgba(243,200,73,.3); border-radius: 10px; padding: 9px 13px; font-size: 13.5px; color: var(--ink); margin-bottom: 12px; }

/* ---- quick add ---- */
.wt-add-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wt-add-row .wt-inwrap { flex: 1 1 120px; }
.wt-date { flex: 0 1 150px; }
.wt-note { flex: 2 1 160px; }
.wt-add-row .wt-btn { flex: 0 0 auto; }

/* ---- BMI band ---- */
.wt-bmi { position: relative; display: flex; height: 34px; border-radius: 8px; overflow: hidden; margin: 6px 0 20px; }
.wt-bmi-seg { position: relative; opacity: .82; }
.wt-bmi-seg-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: rgba(0, 0, 0, .6); }
.wt-bmi-marker { position: absolute; top: -6px; bottom: -6px; width: 3px; background: #fff; border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 8px rgba(0, 0, 0, .5); }
.wt-bmi-val { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); background: #fff; color: #111; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }

/* ---- journey / milestones ---- */
.wt-mils { display: flex; flex-wrap: wrap; gap: 10px; }
.wt-mil { display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); cursor: pointer; font-family: inherit; text-align: left; color: var(--ink); transition: transform .1s, border-color .12s; }
.wt-mil:hover { transform: translateY(-1px); border-color: var(--accent); }
.wt-mil:active { transform: translateY(0); }
.wt-mils-div { width: 100%; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 6px 0 -2px; }
.wt-mil-locked { cursor: default; opacity: .5; border-style: dashed; }
.wt-mil-locked:hover { transform: none; border-color: var(--border); }
.wt-mil-locked .wt-mil-icon { font-size: 15px; }
.wt-mil.t3 { border-color: rgba(243, 200, 73, .4); background: var(--gold-soft); }
.wt-mil.t4 { border-color: rgba(243, 200, 73, .7); background: linear-gradient(120deg, rgba(243, 200, 73, .22), rgba(255, 93, 143, .15)); }
.wt-mil-icon { font-size: 20px; }
.wt-mil-title { font-size: 14px; font-weight: 650; }
.wt-mil-sub { font-size: 12px; color: var(--muted); }
.wt-next { margin-top: 16px; }
.wt-next-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.wt-progbar { height: 8px; background: rgba(255, 255, 255, .07); border-radius: 999px; overflow: hidden; }
.wt-progfill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 999px; transition: width .8s ease-out; }

/* ---- periods ---- */
.wt-periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.wt-period { text-align: center; padding: 12px 8px; background: rgba(255, 255, 255, .03); border-radius: 12px; border: 1px solid var(--border); }
.wt-period-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.wt-period-val { font-size: 17px; font-weight: 650; }

/* ---- import ---- */
.wt-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 2px dashed var(--border); border-radius: 14px; padding: 26px; margin: 12px 0;
  cursor: pointer; color: var(--muted); transition: border-color .15s, background .15s;
}
.wt-drop:hover, .wt-drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.wt-drop-icon { font-size: 24px; }
.wt-import-msg { font-size: 13px; min-height: 18px; }
.wt-import-msg.ok { color: var(--wt-green); }
.wt-import-msg.err { color: var(--wt-red); }
.wt-import-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.wt-guidelink { display: inline-block; margin-top: 6px; color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 600; }
.wt-guidelink:hover { text-decoration: underline; }
.wt-medical { color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; opacity: .8; margin-top: 4px; }

/* ---- celebrations ---- */
.wt-banner {
  position: fixed; left: 50%; top: 22%; transform: translate(-50%, -12px) scale(.94);
  z-index: 9999; text-align: center; padding: 18px 30px; border-radius: 18px; cursor: pointer;
  background: rgba(14, 23, 48, .92); border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  opacity: 0; transition: opacity .35s, transform .35s cubic-bezier(.2, 1.3, .4, 1); pointer-events: auto; max-width: 90vw;
}
.wt-banner.in { opacity: 1; transform: translate(-50%, 0) scale(1); }
.wt-banner.out { opacity: 0; transform: translate(-50%, -14px) scale(.97); }
.wt-banner-main { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.wt-banner-sub { font-size: 14px; color: var(--muted); margin-top: 5px; }
.wt-banner-share { margin-top: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.08); color: var(--ink); border-radius: 999px; padding: 7px 18px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.wt-banner-share:hover { background: rgba(255,255,255,.16); }
.wt-banner.t2 .wt-banner-main { color: var(--wt-line); }
.wt-banner.t3 { border-color: rgba(243, 200, 73, .5); }
.wt-banner.t3 .wt-banner-main { color: var(--gold); }
.wt-banner.t4 {
  border-color: rgba(243, 200, 73, .8);
  background: linear-gradient(135deg, rgba(41, 30, 5, .96), rgba(48, 12, 32, .96));
}
.wt-banner.t4 .wt-banner-main {
  font-size: 30px;
  background: linear-gradient(90deg, #f3c849, #ff5d8f, #5b8def); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wt-toast {
  position: fixed; left: 50%; bottom: 60px; transform: translate(-50%, 10px); z-index: 9999;
  background: rgba(14, 23, 48, .95); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 20px; font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .3s, transform .3s;
}
.wt-toast.in { opacity: 1; transform: translate(-50%, 0); }
.wt-toast.out { opacity: 0; }
.wt-confetti { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }
.wt-flash { position: fixed; inset: 0; z-index: 9997; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 35%, rgba(243,200,73,.5), rgba(255,93,143,.18) 45%, transparent 70%);
  transition: opacity .12s ease-out; }
.wt-flash.on { opacity: 1; }
.wt-flash.off { opacity: 0; transition: opacity .5s ease-in; }

/* chart draw-in on first paint + each range switch (keeps the user engaged) */
@keyframes wt-chartin { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: none; } }
.wt-chart { animation: wt-chartin .5s ease-out both; }

.wt-undo { margin-left: 8px; border: 1px solid rgba(255,122,89,.5); background: rgba(255,122,89,.1);
  color: #ffb59f; border-radius: 8px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.wt-undo:hover { background: rgba(255,122,89,.2); }
.wt-seecel { display: inline-block; margin-top: 12px; color: var(--gold); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.wt-seecel:hover { text-decoration: underline; }

/* ---- tabs ---- */
.wt-tabs { display: flex; gap: 4px; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 12px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.wt-tabs::-webkit-scrollbar { display: none; }
.wt-tab { flex: 1 1 auto; white-space: nowrap; border: none; background: none; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 9px; cursor: pointer; transition: background .12s, color .12s; }
.wt-tab:hover { color: var(--ink); }
.wt-tab.on { background: var(--accent); color: #fff; }

/* ---- card head with subtitle + maximize btn ---- */
.wt-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.wt-cardhead-l { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.wt-cardhead .wt-h2 { margin: 0; }
.wt-cardhead-sub { color: var(--muted); font-size: 13px; }
.wt-iconbtn { border: 1px solid var(--border); background: rgba(255,255,255,.05); color: var(--ink); border-radius: 9px; width: 32px; height: 30px; font-size: 15px; cursor: pointer; font-family: inherit; }
.wt-iconbtn:hover { border-color: var(--accent); background: var(--accent-soft); }
.wt-chart-head { justify-content: space-between; align-items: center; }
.wt-nextcard { }

/* ---- chart tooltip ---- */
.wt-chart-holder { position: relative; }
.wt-tip { position: absolute; top: 4px; transform: translateX(-50%); pointer-events: none; background: rgba(14,23,48,.96); border: 1px solid var(--border); border-radius: 8px; padding: 5px 9px; font-size: 12px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.4); z-index: 3; }
.wt-tip-d { color: var(--muted); font-size: 11px; }
.wt-tip-v { color: var(--ink); font-weight: 650; }

/* ---- maximize overlay ---- */
.wt-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(3,7,18,.86); display: flex; align-items: center; justify-content: center; padding: max(12px, env(safe-area-inset-top)) 12px; opacity: 0; transition: opacity .2s; }
.wt-modal.in { opacity: 1; }
.wt-modal-panel { background: linear-gradient(180deg,#111a35,#0b1122); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 1100px; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.wt-modal-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.wt-modal-title { font-weight: 700; font-size: 15px; }
.wt-modal-x { border: 1px solid var(--border); background: rgba(255,255,255,.06); color: var(--ink); width: 34px; height: 34px; border-radius: 9px; font-size: 16px; cursor: pointer; font-family: inherit; }
.wt-modal-x:hover { background: rgba(255,255,255,.14); }
.wt-modal-body { padding: 16px; overflow: auto; flex: 1; }
.wt-modal-body .wt-ranges { margin-bottom: 10px; }
.wt-modal-body .wt-chart { height: min(64vh, 520px); }
.wt-modal-hint { display: none; }
@media (max-width: 640px) { .wt-modal-hint { display: block; text-align: center; color: var(--muted); font-size: 12px; padding: 0 0 12px; } }

/* ---- weigh-in calendar ---- */
.wt-cal-scroll { overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.wt-cal-scroll::-webkit-scrollbar { display: none; }
.wt-cal { display: flex; gap: 3px; direction: ltr; }
.wt-cal-col { display: flex; flex-direction: column; gap: 3px; }
.wt-cal-cell { width: 12px; height: 12px; border-radius: 3px; background: rgba(255,255,255,.06); }
.wt-cal-cell.on { background: #4cd17b; }
.wt-cal-cell.future { visibility: hidden; }

/* ---- phases report ---- */
.wt-phases { display: flex; flex-direction: column; gap: 8px; }
.wt-phase { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.03); }
.wt-phase.loss { border-left: 3px solid #4cd17b; }
.wt-phase.gain { border-left: 3px solid #ff7a86; }
.wt-phase.steady { border-left: 3px solid var(--muted); }
.wt-phase-ic { font-size: 20px; font-weight: 700; width: 18px; text-align: center; }
.wt-phase.loss .wt-phase-ic { color: #4cd17b; }
.wt-phase.gain .wt-phase-ic { color: #ff7a86; }
.wt-phase-mid { flex: 1; }
.wt-phase-head { font-weight: 650; font-size: 15px; }
.wt-phase-sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.wt-phase-rate { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---- stats panel ---- */
.wt-statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.wt-stile { text-align: center; padding: 14px 8px; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 12px; }
.wt-stile-v { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.wt-stile-l { font-size: 11px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }

/* ---- profile edit mode ---- */
.wt-pedit { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.06); cursor: grab; }
.wt-phandle { color: var(--muted); font-size: 13px; cursor: grab; }
.wt-pname { max-width: 30vw; overflow: hidden; text-overflow: ellipsis; }
.wt-pmini { border: none; background: rgba(255,255,255,.08); color: var(--ink); width: 22px; height: 22px; border-radius: 6px; font-size: 12px; cursor: pointer; font-family: inherit; }
.wt-pmini:hover { background: rgba(255,255,255,.18); }
.wt-pdel:hover { background: rgba(255,122,134,.3); color: var(--wt-red); }
.wt-pcog.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- progress photos ---- */
.wt-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.wt-photo { cursor: pointer; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: rgba(255,255,255,.03); transition: transform .12s, border-color .12s; }
.wt-photo:hover { transform: translateY(-2px); border-color: var(--accent); }
.wt-photo-img { width: 100%; aspect-ratio: 3/4; background: #0b1122 center/cover no-repeat; }
.wt-photo-cap { padding: 7px 9px; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.wt-photo-date { font-size: 12px; color: var(--muted); }
.wt-photo-kg { font-size: 13px; font-weight: 700; color: var(--gold); }
.wt-photo-full { width: 100%; height: min(70vh, 640px); background: #0b1122 center/contain no-repeat; border-radius: 12px; }

/* ---- timelapse composer ---- */
.wt-vctrl { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-bottom: 14px; }
.wt-vcheck { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.wt-vcheck input { width: 17px; height: 17px; accent-color: var(--accent); }
.wt-vpreview { width: 100%; max-height: 62vh; border-radius: 12px; background: #000; display: block; }

/* ---- body silhouette avatar ---- */
.wt-avatarwrap { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.wt-avatarbox { text-align: center; }
.wt-avatar { width: 180px; height: auto; background: #0b1122; border-radius: 12px; border: 1px solid var(--border); }
.wt-avatar-cap { font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.wt-avatar-note { color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; margin-top: 10px; opacity: .85; }

/* ---- photo lock strip ---- */
.wt-locksetup { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.wt-locksetup .wt-sub { margin: 0; flex: 1; min-width: 160px; }

@media (prefers-reduced-motion: reduce) {
  .wt-pulse, .wt-progfill, .wt-banner { animation: none !important; transition: opacity .2s !important; }
}
@media (max-width: 560px) {
  .wt-card { padding: 16px; }
  .wt-stat-hero { grid-column: span 2; }
  .wt-stat-hero .wt-stat-val { font-size: 32px; }
  .wt-banner-main { font-size: 20px; }
  .wt-add-row { flex-direction: column; }
  .wt-add-row .wt-inwrap, .wt-date, .wt-note, .wt-add-row .wt-btn { flex: 1 1 auto; width: 100%; }
}
