/* Sprout — Brain page. Builds on the tokens and components in styles.css. */

/* Visually hidden, still announced by screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Capture ---------- */
.capture {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  background: var(--surface); border-radius: var(--radius); padding: 12px 12px 12px 20px; margin-bottom: 16px;
  border: 1.5px solid transparent; transition: border-color var(--dur-2) ease, box-shadow var(--dur-2) ease;
}
.capture:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.capture-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.capture-ico svg { width: 18px; height: 18px; }
[data-theme="dark"] .capture-ico { color: var(--accent-2); }
.capture input { border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; height: 44px; }
.capture input::placeholder { color: var(--muted); }
.capture input:focus-visible { outline: none; }
.capture-kinds { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-left: 46px; }
.capture-kinds button {
  border: 1px solid var(--line); background: none; border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--muted);
  cursor: pointer; min-height: 32px; transition: background var(--dur-2) ease, color var(--dur-2) ease, border-color var(--dur-2) ease;
}
.capture-kinds button:hover { color: var(--text); border-color: var(--muted); }
.capture-kinds button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.capture-preview-wrap { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-3) var(--ease-out); }
.capture-preview-wrap.open { grid-template-rows: 1fr; }
.capture-preview { min-height: 0; overflow: hidden; padding-left: 46px; }
.capture-kinds button:active, .wpay:active, .wcheck:active { transform: scale(.96); }
.capture-kinds button, .wpay, .wcheck { transition-property: background, color, border-color, transform; transition-duration: var(--dur-2), var(--dur-2), var(--dur-2), var(--dur-1); }
.wrow.just-added .wrow-body { animation: just-added 1.2s var(--ease-out); }
@keyframes just-added { from { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); } }
.preview-lead { color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
.preview-item { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); margin-bottom: 8px; }
.preview-item strong { font-weight: 600; }
.preview-kind { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent); }
[data-theme="dark"] .preview-kind { color: var(--accent-2); }
.preview-kind svg { width: 14px; height: 14px; }
.preview-bits { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.preview-bits em { font-style: normal; font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.preview-note { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- Attention cards ---------- */
.wstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.wstat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; cursor: pointer; border: 2px solid transparent;
  min-height: 132px; transition: border-color var(--dur-2) ease, transform var(--dur-1) var(--ease-out);
}
.wstat:active { transform: scale(.98); }
.wstat[aria-pressed="true"] { border-color: var(--accent); }
.wstat.hero { background: var(--hero); color: #fff; }
.wstat.hero[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.wstat-label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wstat.hero .wstat-label, .wstat.hero .wstat-sub { color: rgba(255,255,255,.85); }
.wstat-value { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.wstat-sub { font-size: 13px; color: var(--muted); }

.brain-tabs { margin-bottom: 20px; }
.tab-count { margin-left: 8px; font-size: 13px; opacity: .7; font-variant-numeric: tabular-nums; }

/* ---------- To do ---------- */
.brain-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.brain-side { display: flex; flex-direction: column; gap: 16px; }
.brain-main { padding: 24px 24px; }
.wscope { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.wscope h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }

.wsec { margin-top: 12px; }
.wsec + .wsec { margin-top: 24px; }
.wsec h4 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.wsec h4 small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.wsec h4 > span { margin-left: auto; font-variant-numeric: tabular-nums; }

.wrow { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); scroll-margin: 120px 0 24px; }
.wrow-body { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 12px 2px; background: var(--surface); }
.wrow[data-swipe-right] .wrow-body { touch-action: pan-y; }
.wrow.swiping .wrow-body { will-change: transform; }

/* What a swipe will do, revealed underneath the row */
.wrow-actions { position: absolute; inset: 0; display: none; align-items: center; justify-content: flex-start; padding: 0 24px; color: #fff; font-size: 14px; font-weight: 600; }
.wrow.swiping .wrow-actions, .wrow.collapsing .wrow-actions { display: flex; }
.wrow[data-dir="right"] .wrow-actions { background: var(--accent); }
.wrow[data-dir="left"] .wrow-actions { background: #5f6b64; justify-content: flex-end; }
.wa { display: none; align-items: center; gap: 8px; opacity: calc(0.35 + 0.65 * var(--p, 0)); transform: scale(calc(0.9 + 0.1 * var(--p, 0))); }
.wrow[data-dir="right"] .wa-right, .wrow[data-dir="left"] .wa-left { display: inline-flex; }
.wrow.armed .wa { opacity: 1; transform: none; }
.wa svg { width: 18px; height: 18px; }
.wrow.collapsing { transition: height var(--dur-3) var(--ease-out), opacity var(--dur-3) ease; opacity: 0; }
.wrow:last-child { border-bottom: 0; }
.wrow-main { flex: 1; min-width: 0; }
.wrow-title {
  display: block; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font-size: 16px; font-weight: 600;
  color: var(--text); line-height: 1.35;
}
.wrow-title:hover { color: var(--accent); }
[data-theme="dark"] .wrow-title:hover { color: var(--accent-2); }
.wrow.is-done .wrow-title { color: var(--muted); text-decoration: line-through; }
.wflag { color: var(--danger); font-size: 10px; vertical-align: 2px; margin-right: 8px; }
.wmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: 4px; color: var(--muted); font-size: 13px; }
.wmeta .late { color: var(--danger); font-weight: 600; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; margin: 0 8px; }
.wmeta-kind, .wrepeat { display: inline-flex; align-items: center; gap: 4px; }
.wmeta-kind svg, .wrepeat svg { width: 13px; height: 13px; }
.wamount { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.wchip {
  border: 0; background: var(--surface-2); color: var(--text); border-radius: 8px; padding: 2px 8px; font-size: 13px; cursor: pointer;
  transition: background var(--dur-2) ease;
}
.wchip:hover { background: var(--accent-soft); }
.wchip.big { font-size: 14px; padding: 8px 12px; margin: 8px 8px 0 0; }

.wcheck {
  width: 22px; height: 22px; margin-top: 1px; flex: none; border-radius: 8px; border: 1.8px solid var(--muted); background: none;
  display: grid; place-items: center; cursor: pointer; color: #fff; transition: background var(--dur-2) ease, border-color var(--dur-2) ease;
  position: relative;
}
.wcheck::after { content: ""; position: absolute; inset: -11px; } /* 44px tap target */
.wcheck:hover { border-color: var(--accent); }
.wcheck.on { background: var(--accent); border-color: var(--accent); }
.wcheck svg { width: 14px; height: 14px; }
.wcheck.on svg rect { display: none; }
.wpay {
  flex: none; border: 1.5px solid var(--accent); color: var(--accent); background: none; border-radius: 999px; padding: 4px 12px;
  font-size: 13px; font-weight: 600; cursor: pointer; min-height: 28px; transition: background var(--dur-2) ease, color var(--dur-2) ease;
}
.wpay:hover { background: var(--accent); color: #fff; }
[data-theme="dark"] .wpay { color: var(--accent-2); border-color: var(--accent-2); }
.wbullet { width: 22px; height: 22px; flex: none; display: grid; place-items: center; color: var(--muted); }
.wbullet svg { width: 17px; height: 17px; }
.wjoin {
  flex: none; align-self: center; text-decoration: none; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
[data-theme="dark"] .wjoin { color: var(--accent-2); }
.wdone-toggle { margin-top: 16px; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 8px 0; }
.wdone-toggle:hover { color: var(--text); }

/* Board */
.wboard { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; padding: 8px 0 4px; }
.wcol { background: var(--surface-2); border: 1px dashed transparent; border-radius: 16px; padding: 12px; min-height: 180px; transition: background var(--dur-2) ease, border-color var(--dur-2) ease; }
.wcol.over { background: var(--accent-soft); border-color: var(--accent); }
.wcol h5 { display: flex; align-items: center; gap: 8px; margin: 2px 2px 12px; font-size: 14px; font-weight: 600; }
.wcol h5 i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.wcol h5 span { margin-left: auto; color: var(--muted); font-weight: 500; }
.wcard { background: var(--surface); border-radius: 12px; padding: 12px 12px; margin-bottom: 8px; cursor: grab; }
.wcard.dragging { opacity: .45; }
.wcard .wrow-title { font-size: 14px; }
.wcard-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Side cards */
.loops-sub { margin: -12px 0 12px; }
.loops-sub + .loops { margin-bottom: 16px; }
.loops { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.loops li { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 12px; background: var(--surface-2); }
.loops li > div { flex: 1; min-width: 0; }
.loops strong, .loops .wrow-title { display: block; font-size: 14px; font-weight: 600; }
.loops small { color: var(--muted); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loop-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--accent); flex: none; }
.wprojects { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wprojects button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px; border: 0;
  border-radius: 12px; background: none; cursor: pointer; text-align: left; transition: background var(--dur-2) ease;
}
.wprojects button:hover, .wprojects button[aria-pressed="true"] { background: var(--surface-2); }
.wprojects strong { display: block; font-weight: 600; }
.wprojects small { color: var(--muted); font-size: 13px; }
.wprojects svg { width: 16px; height: 16px; color: var(--muted); flex: none; }

/* ---------- Money ---------- */
.money-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.money-stats .kpi { padding-bottom: 24px; }
.late { color: var(--danger); }

/* ---------- Library ---------- */
.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lib-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lib-card .wrow-title { font-size: 16px; }
.lib-card .btn { margin-top: auto; }
.lib-note { color: var(--muted); font-size: 13px; }
.lib-src { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 8px; border-radius: 999px; --h: #6c7670; color: var(--h); background: color-mix(in srgb, var(--h) 12%, transparent); }
.lib-src[data-type="video"] { --h: #d6463a; }
.lib-src[data-type="article"] { --h: #3b5bdb; }
.lib-src[data-type="post"] { --h: #7048e8; }
.lib-src[data-type="file"] { --h: #c46a12; }

/* ---------- Search ---------- */
.welse { display: flex; flex-direction: column; padding: 12px 2px; border-bottom: 1px solid var(--line); text-decoration: none; }
.welse:last-child { border-bottom: 0; }
.welse strong { font-weight: 600; }
.welse small { color: var(--muted); font-size: 13px; }

/* ---------- Item panel (side drawer) ---------- */
/* The scrim follows the sheet: --open is 1 when fully open, 0 when gone (set every frame by js/brain-sheet.js) */
.wpanel-wrap { place-items: stretch end; padding: 0; transition: none; opacity: 1; background: rgb(0 0 0 / calc(0.4 * var(--open, 1))); }
@starting-style { .wpanel-wrap:not([hidden]) { opacity: 1; } }
.wpanel {
  width: min(460px, 100vw); height: 100%; overflow-y: auto; background: var(--surface); padding: 24px 24px 32px;
  display: flex; flex-direction: column; gap: 16px; will-change: transform;
  /* second shadow paints surface beyond the edge, so a spring overshoot never shows a gap */
  box-shadow: -20px 0 50px -20px rgba(0,0,0,.3), 80px 0 0 0 var(--surface);
}
.wp-head { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.wpanel-wrap.is-dragging, .wpanel-wrap.is-dragging .wp-head { cursor: grabbing; }
.wp-grip { display: none; }
.wp-head { display: flex; align-items: center; justify-content: space-between; }
.wp-close { width: 40px; height: 40px; background: var(--surface-2); }
.wp-title {
  border: 0; background: none; resize: none; font: inherit; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3;
  padding: 4px 8px; margin: 0 -8px; border-radius: 8px; color: var(--text);
}
.wp-title:hover { background: var(--surface-2); }
.wp-title:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--surface-2); }
/* The panel scrolls; nothing in it may shrink (a long panel used to squash the title to a sliver) */
.wpanel > * { flex-shrink: 0; }
.wp-title { field-sizing: content; min-height: calc(1.3em + 8px); max-height: 40vh; overflow-y: auto; cursor: text; }
.wpanel:focus { outline: none; }
.wp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; }
.wp-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); min-width: 0; }
.wp-field.wide { grid-column: 1 / -1; }
.wp-field input, .wp-field select, .wp-field textarea {
  font-size: 14px; font-weight: 400; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; min-width: 0; width: 100%;
}
.wp-field textarea { resize: vertical; line-height: 1.5; }
.wp-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.wp-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.wp-open { align-self: flex-start; }
.wpanel h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 8px 0 0; }
.wp-list, .wp-activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wp-list li, .wp-activity li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.wp-list li:last-child, .wp-activity li:last-child { border-bottom: 0; }
.wp-list .wrow-title { font-size: 14px; font-weight: 500; }
.wp-list small, .wp-activity small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.wp-foot { display: flex; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); position: sticky; bottom: -28px; background: var(--surface); padding-bottom: 4px; }
.wp-foot .btn-primary { flex: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .brain-grid { grid-template-columns: 1fr; }
  .wstat-value { font-size: 34px; }
}
@media (max-width: 1100px) {
  .wstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .capture { grid-template-columns: 1fr auto; padding-left: 16px; }
  .capture-ico { display: none; }
  .capture-kinds, .capture-preview { padding-left: 0; }
  .wstats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wstat { min-height: 104px; }
  .wstat-value { font-size: 28px; }
  .money-stats { grid-template-columns: 1fr; }
  .brain-main { padding: 20px 16px; }
  .wp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wpanel-wrap { place-items: end stretch; }
  .wpanel {
    width: 100%; height: auto; max-height: 88vh; border-radius: 24px 24px 0 0; padding-top: 12px;
    box-shadow: 0 -20px 50px -20px rgba(0,0,0,.3), 0 80px 0 0 var(--surface);
  }
  .wp-grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 2px; cursor: grab; touch-action: none; flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wstat:active { transform: none; }
}

/* ---------- Brain toast (with Undo) ---------- */
.btoast {
  position: fixed; left: 50%; bottom: 24px; z-index: 61; display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 20px; border-radius: 12px; background: var(--text); color: var(--surface); font-weight: 600;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.35); max-width: calc(100% - 32px);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.btoast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.btoast button {
  border: 0; border-radius: 8px; padding: 8px 16px; min-height: 36px; cursor: pointer; font-weight: 700; color: inherit;
  background: color-mix(in srgb, var(--surface) 16%, transparent); transition: background var(--dur-2) ease;
}
.btoast button:hover { background: color-mix(in srgb, var(--surface) 26%, transparent); }
.btoast button:focus-visible { outline-color: var(--surface); }
@media (prefers-reduced-motion: reduce) { .btoast, .btoast.show { transform: translate(-50%, 0); } }

/* ---------- Glass capture bar (Brain only) ---------- */
.capture-sentinel { height: 1px; margin-bottom: -1px; }
.capture {
  position: sticky; top: 12px; z-index: 6;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
}
/* Scroll edge: a soft lift instead of a hard divider, only while content is underneath */
.capture.stuck { box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent), 0 18px 30px -18px rgba(15, 30, 22, .28); }
.capture.stuck:focus-within { box-shadow: 0 0 0 4px var(--accent-soft), 0 18px 30px -18px rgba(15, 30, 22, .28); }
@media (prefers-reduced-transparency: reduce) {
  .capture { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .capture { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--text); }
}

/* ---------- Typography (Brain only): tighter tracking as size grows; numbers that line up ---------- */
.brain-page .page-head h1 { letter-spacing: -0.03em; line-height: 1.08; }
.brain-page .wstat-value, .brain-page .kpi-value { letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.brain-page .wamount, .brain-page .tab-count, .brain-page .wsec h4 > span, .brain-page .wmeta { font-variant-numeric: tabular-nums; }

/* Item history: summary line, then a dated timeline (newest first) */
.wp-history-sum { font-size: 13px; color: var(--text); background: var(--surface-2); border-radius: 12px; padding: 12px 12px; margin: 0 0 8px; line-height: 1.5; }
.wp-history li { position: relative; padding-left: 20px; }
.wp-history li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--hatch); }
.wp-history li:first-child::before { background: var(--accent); }

.wp-history li.is-note span { font-style: italic; color: var(--text); }
.wp-history li.is-note::before { background: var(--accent-2); border-radius: 2px; }

/* ---------- "What did you do?" prompt (js/checkins.js): a quiet card in the corner, never in the way ---------- */
.ask-card {
  position: fixed; right: 20px; bottom: 20px; z-index: 62; width: min(380px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 16px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 12px;
}
.ask-card.in { animation: ask-in var(--dur-4) var(--ease-out); }
@keyframes ask-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.ask-label { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.ask-q { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 0; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chips button { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: background var(--dur-2) ease, transform var(--dur-1) ease; }
.ask-chips button:active { transform: scale(.96); }
.ask-chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.ask-note { font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; resize: none; }
.ask-foot { display: flex; align-items: center; gap: 8px; }
.ask-foot > span:first-child { flex: 1; }
.ask-step { font-size: 13px; color: var(--muted); }
.ask-foot .btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 620px) { .ask-card { right: 16px; left: 16px; bottom: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .ask-card.in { animation: none; } }
.ask-card[hidden] { display: none; }
.wp-via { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 2px; }
