/* ============================================================
   How it works — 3-step runtime flow
   Step 1: a call is in progress (desktop wireframe + "On a call"
           window, mirrors the real Askpilot desktop app).
   Step 2: the call ends — outward-facing actions wait for approval.
   Step 3: routine admin executes automatically, no approval.

   Visual vocabulary matches the hero split demo: brand blues
   #4c6cff/#6583FF, white cards on hairline borders, green
   "done" states, amber "approval" states. Timeline/sequencing
   lives in js/how-it-works.js; this file is presentation only.
   ============================================================ */

/* the How It Works step rows live in their OWN section (not inside
   #how-it-works, which only wraps the value-pillars band above), so the
   design tokens must be declared on the stage/eyebrow scope too or the
   var() references fall back to invalid/black. */
#how-it-works,
.hiw-stage,
.hiw-step-eyebrow,
.hiw-link {
    --hiw-accent: #4c6cff;
    --hiw-accent-2: #6583FF;
    --hiw-soft: #eef1ff;
    --hiw-ok: #10b981;
    --hiw-ok-deep: #047857;
    --hiw-ink: #1f2937;
    --hiw-muted: #6b7280;
    --hiw-border: #e5e7eb;
    --hiw-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- step rows + connectors ---------- */

.hiw-step-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hiw-muted);
}
/* the step number/eyebrow is blue (the steps live outside #how-it-works, so
   this can't rely on that scope or its CSS vars — use a literal). */
.hiw-step-eyebrow,
.hiw-step-eyebrow .hiw-step-num {
    color: #6583FF;
}

/* Vertical connector between step rows: a short gradient line with
   a travelling dot, plus a small label pill naming the hand-off
   ("the call ends" / "meanwhile, automatically"). */
.hiw-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 40px auto;
}
@media (min-width: 640px) {
    .hiw-link { margin: 56px auto; }
}
.hiw-link-line {
    position: relative;
    width: 2px;
    height: 36px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(101, 131, 255, 0.1), rgba(101, 131, 255, 0.45), rgba(101, 131, 255, 0.1));
    overflow: visible;
}
.hiw-link-line::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--hiw-accent);
    box-shadow: 0 0 8px rgba(76, 108, 255, 0.7);
    animation: hiw-link-travel 2.4s ease-in-out infinite;
}
@keyframes hiw-link-travel {
    0%   { top: -4%;  opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { top: 96%;  opacity: 0; }
}
.hiw-link-label {
    padding: 4px 14px;
    border: 1px solid var(--hiw-border);
    border-radius: 9999px;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hiw-muted);
    white-space: nowrap;
}

/* Inline chips used in the copy columns (brand icons + claims). */
.hiw-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--hiw-border);
    border-radius: 9999px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}
.hiw-chip img { width: 16px; height: 16px; }
.hiw-chip-ico { width: 15px; height: 15px; flex: 0 0 auto; color: #4c6cff; }
.hiw-chip-ico-doc { width: 16px; height: 16px; flex: 0 0 auto; color: #6b7280; }

/* ---------- shared stage shell ---------- */

.hiw-stage {
    position: relative;
    width: 100%;
}

/* Panels in steps 2/3: same card language as the demo tiles. */
.hiw-panel {
    background: #fff;
    border: 1px solid #e3e6ee;
    border-radius: 24px;
    box-shadow: 0 24px 50px -20px rgba(17, 24, 39, 0.22), 0 2px 6px -2px rgba(17, 24, 39, 0.06);
    padding: 20px;
    transition: opacity 0.35s ease;
}
@media (min-width: 640px) {
    .hiw-panel { padding: 24px; }
}
.hiw-stage.is-fading .hiw-panel,
.hiw-stage.is-fading .hiw-desktop { opacity: 0; }
.hiw-desktop { transition: opacity 0.35s ease; }

.hiw-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

/* ---------- step 1: desktop + "On a call" window ---------- */

.hiw-desktop {
    position: relative;
    border: 1px solid #e3e6ee;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8faff 0%, #f3f5fb 100%);
    box-shadow: 0 24px 50px -20px rgba(17, 24, 39, 0.22), 0 2px 6px -2px rgba(17, 24, 39, 0.06);
    overflow: hidden;
    min-height: 380px;
}
@media (min-width: 640px) {
    .hiw-desktop { min-height: 440px; }
}

/* macOS-style menu bar */
.hiw-menubar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 30px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #eef0f4;
}
.hiw-menubar-logo {
    width: 13px;
    height: 13px;
    filter: saturate(0.55);
    opacity: 0.9;
}
.hiw-menubar-item {
    height: 6px;
    border-radius: 3px;
    background: #dde1e9;
}
.hiw-menubar-time {
    margin-left: auto;
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.02em;
}

.hiw-desk-body {
    position: absolute;
    inset: 30px 0 0 0;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* A regular user's screen: a browser window with the CRM open
   (tabs, URL bar, a table of contact rows) above a dock of their
   everyday tools. Everything is skeleton-gray so the call window
   reads as the only real content. */
.hiw-wf {
    flex: 1;
    min-height: 0;
    background: #fff;
    border: 1px solid #e9ecf2;
    border-radius: 12px;
    box-shadow: 0 10px 30px -18px rgba(17, 24, 39, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}
.hiw-desktop.is-call .hiw-wf {
    opacity: 0.5;
    transform: scale(0.985);
    filter: saturate(0.8);
}

/* Browser chrome: traffic lights + two ghost tabs, then a URL bar. */
.hiw-wf-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 12px 0;
}
.hiw-wf-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    margin-bottom: 6px;
}
.hiw-wf-tab {
    width: 86px;
    height: 20px;
    margin-left: 8px;
    border-radius: 8px 8px 0 0;
    background: #f1f3f7;
}
.hiw-wf-tab.is-active { background: #e8ebf2; }
.hiw-wf-url {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-bottom: 1px solid #f1f3f7;
    background: #fafbfd;
}
.hiw-wf-lock {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dde1e9;
}
.hiw-wf-urlbar {
    width: 56%;
    height: 14px;
    border-radius: 7px;
    background: #eef0f5;
}

/* CRM table: header bars + rows of avatar dot, name and columns. */
.hiw-wf-table {
    flex: 1;
    min-height: 0;
    padding: 8px 16px 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.hiw-wf-thead {
    display: flex;
    gap: 18px;
    padding: 5px 0 9px;
}
.hiw-wf-thead span {
    height: 7px;
    border-radius: 4px;
    background: #e2e5ec;
}
.hiw-wf-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #f5f6f9;
}
.hiw-wf-avatar {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e2e7f3;
}
.hiw-wf-cell {
    height: 8px;
    border-radius: 4px;
    background: #eceef3;
    animation: hiw-ghost-pulse 2.4s ease-in-out infinite;
}
.hiw-wf-row:nth-child(odd) .hiw-wf-cell { animation-delay: 0.5s; }
.hiw-wf-row .hiw-wf-cell:last-child { margin-left: auto; }
@keyframes hiw-ghost-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

/* Dock: real brand icons, desaturated so they whisper. */
.hiw-dock {
    align-self: center;
    display: flex;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e9ecf2;
    border-radius: 15px;
    box-shadow: 0 8px 24px -14px rgba(17, 24, 39, 0.3);
    transition: opacity 0.5s ease;
}
.hiw-dock-app {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid #eef0f4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hiw-dock-app img,
.hiw-dock-app svg {
    width: 16px;
    height: 16px;
    filter: saturate(0.5);
    opacity: 0.85;
}
.hiw-desktop.is-call .hiw-dock { opacity: 0.55; }

/* Incoming-call toast (pre-pickup beat) */
.hiw-toast {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: #fff;
    border: 1px solid var(--hiw-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px -12px rgba(17, 24, 39, 0.3);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--hiw-ink);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
    pointer-events: none;
}
.hiw-toast.is-in { opacity: 1; transform: translateY(0); }
.hiw-toast img { width: 15px; height: 15px; }
.hiw-toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hiw-ok);
    animation: hiw-toast-pulse 1.1s ease-in-out infinite;
}
@keyframes hiw-toast-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
    50%      { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}

/* The "On a call" window (mirrors the real Askpilot call popup) */
.hiw-callwin {
    position: absolute;
    left: 50%;
    top: 52%;
    width: min(360px, 78%);
    transform: translate(-50%, -50%) scale(0.92);
    background: #fff;
    border: 1px solid #e9ecf2;
    border-radius: 14px;
    box-shadow: 0 40px 80px -24px rgba(17, 24, 39, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.hiw-callwin.is-in {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.hiw-callwin.is-out {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.94);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hiw-callwin-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-bottom: 1px solid #f1f3f7;
}
.hiw-tl { width: 10px; height: 10px; border-radius: 50%; }
.hiw-tl-r { background: #ff5f57; }
.hiw-tl-y { background: #febc2e; }
.hiw-tl-g { background: #28c840; }
.hiw-callwin-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hiw-ink);
}
.hiw-callwin-timer {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--hiw-muted);
}

.hiw-callwin-body {
    padding: 26px 20px 22px;
    text-align: center;
}

/* Pulsing rings around the Askpilot mark */
.hiw-rings {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto;
}
.hiw-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(101, 131, 255, 0.12);
    opacity: 0;
}
.hiw-ring-2 { inset: 16px; background: rgba(101, 131, 255, 0.16); }
.hiw-callwin.is-live .hiw-ring {
    animation: hiw-ring-pulse 2.6s ease-out infinite;
}
.hiw-callwin.is-live .hiw-ring-2 { animation-delay: 0.5s; }
@keyframes hiw-ring-pulse {
    0%   { transform: scale(0.78); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: scale(1.18); opacity: 0; }
}
.hiw-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 26px -10px rgba(17, 24, 39, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hiw-mark img { width: 30px; height: 30px; }

/* Waveform: bars are generated by JS; idle height when not live. */
.hiw-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    margin-top: 16px;
}
.hiw-wave span {
    width: 5px;
    height: 8px;
    border-radius: 3px;
    background: #b9c8fb;
    transform-origin: center;
}
.hiw-wave span:nth-child(3n)  { background: var(--hiw-accent); }
.hiw-wave span:nth-child(4n)  { background: var(--hiw-accent-2); }
.hiw-callwin.is-live .hiw-wave span {
    animation: hiw-wave-bounce 0.9s ease-in-out infinite alternate;
}
/* Per-bar rhythm: vary amplitude + phase so it reads as speech. */
.hiw-callwin.is-live .hiw-wave span:nth-child(2n)  { animation-duration: 0.7s;  animation-delay: 0.1s; }
.hiw-callwin.is-live .hiw-wave span:nth-child(3n)  { animation-duration: 1.05s; animation-delay: 0.25s; }
.hiw-callwin.is-live .hiw-wave span:nth-child(4n)  { animation-duration: 0.8s;  animation-delay: 0.4s; }
.hiw-callwin.is-live .hiw-wave span:nth-child(5n)  { animation-duration: 0.6s;  animation-delay: 0.15s; }
.hiw-callwin.is-live .hiw-wave span:nth-child(7n)  { animation-duration: 1.15s; animation-delay: 0.55s; }
@keyframes hiw-wave-bounce {
    from { height: 7px; }
    to   { height: 32px; }
}

.hiw-callwin-caption {
    margin-top: 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--hiw-ink);
}
.hiw-callwin-caption strong { font-weight: 700; }

/* CRM-match chip: appears mid-call once the caller is identified. */
.hiw-call-match {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 5px 12px;
    border: 1px solid #dbe3fb;
    border-radius: 9999px;
    background: var(--hiw-soft);
    font-size: 12px;
    font-weight: 600;
    color: #3552cc;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.hiw-call-match.is-in { opacity: 1; transform: translateY(0); }
.hiw-call-match img { width: 14px; height: 14px; }

/* ---------- step 1: compact "on a call" pill ----------
   A small floating widget docked top-right of the desktop: bare Askpilot
   mark, "You're on a call with" + caller (number → name once matched), and a
   waveform in a soft box on the right. Only applies when .hiw-callpill is set,
   so the Step 2 approvals window (.hiw-approvewin) is unaffected. */
.hiw-callwin.hiw-callpill {
    left: auto;
    right: 16px;
    top: 16px;
    width: min(300px, 82%);
    transform-origin: top right;
    transform: translateY(-8px) scale(0.96);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 14px;
    /* slight, soft elevation — shared by all three "on a call" pills */
    box-shadow: 0 12px 32px -14px rgba(17, 24, 39, 0.18), 0 2px 6px rgba(17, 24, 39, 0.06);
}
.hiw-callwin.hiw-callpill.is-in { transform: translateY(0) scale(1); }
.hiw-callwin.hiw-callpill.is-out { transform: translateY(-6px) scale(0.97); }

/* bare mark — no background box, just the logo (matches the screenshot) */
.hiw-callpill-mark {
    flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
}
.hiw-callpill-mark img { width: 26px; height: 26px; }

/* caption: "You're on a call with" on top, bold caller below */
.hiw-callpill .hiw-callwin-caption {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    text-align: left;
    color: var(--hiw-ink);
}
.hiw-callpill .hiw-callwin-caption strong {
    display: block;
    margin-top: 1px;
    font-size: 13px;
    color: var(--hiw-ink);
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

/* waveform in a soft tinted box on the right (matches the screenshot).
   Fewer, thicker bars: the markup generates 16, we show the first 9. */
.hiw-callpill .hiw-wave {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    height: 22px;
    gap: 3.5px;
    justify-content: center;
    padding: 0 6px;
}
.hiw-callpill .hiw-wave span { width: 3.5px; height: 6px; border-radius: 2px; }
.hiw-callpill .hiw-wave span:nth-child(n+10) { display: none; }
/* bars bounce within the shorter compact box (base bounce is 7→32px).
   Minimum stays 6px: at 3-4px the pale bars read as gaps and the
   waveform looks like it's missing pieces mid-animation. */
.hiw-callwin.hiw-callpill.is-live .hiw-wave span { animation-name: hiw-wave-bounce-sm; }
@keyframes hiw-wave-bounce-sm {
    from { height: 6px; }
    to   { height: 18px; }
}

@media (max-width: 640px) {
    .hiw-callwin.hiw-callpill { right: 12px; left: 12px; width: auto; top: 12px; gap: 10px; padding: 13px 14px; }
    .hiw-callpill .hiw-callwin-caption { font-size: 14px; }
    .hiw-callpill .hiw-callwin-caption strong { font-size: 15.5px; }
    .hiw-callpill .hiw-wave { width: 64px; }
}

/* ---------- step 2: approvals ---------- */

/* Approvals popup: opens mid-call as the SAME compact pill as step 1,
   then EXPANDS into the approval queue when the call ends (.is-ended).
   The window animates width/border-radius; the bar + approvals reveal,
   and the compact call pill collapses away. */
.hiw-approvewin.hiw-callwin {
    top: 16px;
    right: 16px;
    left: auto;
    transform-origin: top right;
    width: min(300px, 82%);
    border-radius: 14px;
    box-shadow: 0 12px 32px -14px rgba(17, 24, 39, 0.18), 0 2px 6px rgba(17, 24, 39, 0.06);
    transform: translateY(-8px) scale(0.96);
    transition: width 0.5s cubic-bezier(0.2, 0.8, 0.3, 1),
                border-radius 0.5s ease,
                opacity 0.45s ease,
                transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.hiw-approvewin.hiw-callwin.is-in { transform: translateY(0) scale(1); }
.hiw-approvewin.hiw-callwin.is-out { transform: translateY(-6px) scale(0.97); }
/* expanded once the call ends */
.hiw-approvewin.is-ended.hiw-callwin {
    width: min(380px, 88%);
    border-radius: 16px;
}

/* title bar: hidden during the live pill, slides in on expand */
.hiw-ap-bar {
    overflow: hidden;
    height: 0;
    padding-top: 0; padding-bottom: 0;
    border-bottom-color: transparent;
    opacity: 0;
    transition: height 0.4s ease, opacity 0.35s ease, padding 0.4s ease;
}
.hiw-approvewin.is-ended .hiw-ap-bar {
    height: 38px;
    padding-top: 9px; padding-bottom: 9px;
    border-bottom-color: #f1f3f7;
    opacity: 1;
}

/* Not a grid overlay: a flex column so the box height = whichever body is
   active. Live → only the pill has height; ended → the pill collapses to 0
   and the approval body expands, so the whole window grows. */
.hiw-ap-stack { display: flex; flex-direction: column; }

/* live state: the compact "on a call" pill (mirrors step 1) */
.hiw-ap-callbody {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.35s ease, height 0.4s ease, padding 0.4s ease;
}
.hiw-approvewin.is-ended .hiw-ap-callbody { height: 0; padding-top: 0; padding-bottom: 0; }
.hiw-ap-callbody .hiw-callpill-mark { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.hiw-ap-callbody .hiw-callpill-mark img { width: 26px; height: 26px; }
.hiw-ap-callbody .hiw-callwin-caption {
    flex: 1 1 auto; min-width: 0; margin: 0;
    font-size: 12px; font-weight: 400; line-height: 1.25;
    text-align: left; color: var(--hiw-ink);
}
.hiw-ap-callbody .hiw-callwin-caption strong {
    display: block; margin-top: 1px;
    font-size: 13px; color: var(--hiw-ink); font-weight: 700; white-space: nowrap;
}
.hiw-ap-callbody .hiw-wave {
    flex: 0 0 auto; width: auto; margin: 0; height: 22px; gap: 3.5px;
    justify-content: center; padding: 0 6px;
}
.hiw-ap-callbody .hiw-wave span { width: 3.5px; height: 6px; border-radius: 2px; }
.hiw-ap-callbody .hiw-wave span:nth-child(n+10) { display: none; }
.hiw-approvewin.is-live .hiw-ap-callbody .hiw-wave span { animation-name: hiw-wave-bounce-sm; }

.hiw-approvewin .hiw-approvewin-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.5s cubic-bezier(0.2, 0.8, 0.3, 1),
                opacity 0.4s ease 0.15s, padding 0.4s ease;
    padding-top: 0;
    padding-bottom: 0;
}
.hiw-approvewin.is-ended .hiw-ap-callbody {
    opacity: 0;
    pointer-events: none;
}
.hiw-approvewin.is-ended .hiw-approvewin-body {
    max-height: 360px;
    opacity: 1;
    pointer-events: auto;
    padding-top: 14px;
    padding-bottom: 14px;
}

.hiw-approvewin-body { padding-left: 14px; padding-right: 14px; }
.hiw-approvewin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
/* Compact metrics so the approval queue fits the step-1 window
   footprint. */
.hiw-approvewin .hiw-approvals { padding-top: 0; gap: 10px; }
.hiw-approvewin .hiw-card { padding: 12px; border-radius: 13px; }
.hiw-approvewin .hiw-card-row { gap: 10px; }
.hiw-approvewin .hiw-card-title { font-size: 13.5px; }
.hiw-approvewin .hiw-card-sub { font-size: 12px; margin-top: 2px; }
.hiw-approvewin .hiw-card-icon { width: 30px; height: 30px; border-radius: 9px; }
.hiw-approvewin .hiw-card-icon img { width: 16px; height: 16px; }
.hiw-approvewin .hiw-card-foot { margin-top: 10px; gap: 8px; }
.hiw-approvewin .hiw-req { font-size: 10px; padding: 3px 7px; }
.hiw-approvewin .hiw-btn-ghost,
.hiw-approvewin .hiw-btn-approve { padding: 5px 12px; font-size: 12px; border-radius: 9px; }
/* The approval queue is taller than the call scene: widen the
   popup and stretch the desktop a little on small screens. */
@media (max-width: 640px) {
    /* The live pill goes edge-to-edge like the Step 1 pill (same
       offsets, padding and type sizes), and the expanded queue keeps
       that full width. At phone width the cards wrap onto more lines:
       the expanded queue is ~480-500px tall (vs ~310 on desktop), so
       the height cap and the desktop frame both need more room or the
       second card gets clipped. */
    .hiw-approvewin.hiw-callwin { left: 12px; right: 12px; width: auto; top: 12px; }
    .hiw-approvewin.is-ended.hiw-callwin { width: auto; }
    .hiw-ap-callbody { padding: 13px 14px; }
    .hiw-ap-callbody .hiw-callwin-caption { font-size: 14px; }
    .hiw-ap-callbody .hiw-callwin-caption strong { font-size: 15.5px; }
    .hiw-ap-callbody .hiw-wave { width: 64px; }
    .hiw-approvewin.is-ended .hiw-approvewin-body { max-height: 560px; }
    #hiw-stage-approve .hiw-desktop { min-height: 620px; }
}

.hiw-head-caller {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--hiw-ink);
}
.hiw-pending {
    margin-left: auto;
    padding: 5px 12px;
    border-radius: 9999px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.hiw-pending.is-done {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: var(--hiw-ok-deep);
}

.hiw-approvals {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
}
.hiw-card {
    border: 1px solid var(--hiw-border);
    border-radius: 16px;
    padding: 14px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1),
                border-color 0.35s ease, background 0.35s ease;
}
.hiw-card.is-in { opacity: 1; transform: translateY(0); }
.hiw-card.is-done { border-color: #bbe9d4; background: #fbfffd; }

.hiw-card-row { display: flex; align-items: flex-start; gap: 12px; }
.hiw-card-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hiw-card-icon img { width: 18px; height: 18px; }
.hiw-card-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--hiw-ink);
    line-height: 1.35;
}
.hiw-card-sub {
    margin-top: 3px;
    font-size: 13px;
    font-weight: 300;
    color: var(--hiw-muted);
    line-height: 1.5;
}

.hiw-card-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
/* PROCESS.md vocabulary chips: amber = gated, green = automatic. */
.hiw-req {
    font-family: var(--hiw-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 9px;
    border-radius: 7px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #b45309;
    white-space: nowrap;
}
.hiw-req-none {
    margin-left: auto;
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: var(--hiw-ok-deep);
}
.hiw-card-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hiw-btn-ghost {
    padding: 6px 14px;
    border: 1px solid var(--hiw-border);
    border-radius: 10px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
}
.hiw-btn-approve {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 10px;
    background: #0a0a0a;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    transition: transform 0.15s ease, background 0.3s ease, color 0.3s ease;
}
.hiw-btn-approve.is-pressed { transform: scale(0.93); }
.hiw-btn-approve .hiw-btn-done { display: none; align-items: center; gap: 5px; }
.hiw-btn-approve .hiw-btn-done svg { width: 12px; height: 12px; flex: none; }
.hiw-btn-approve.is-done {
    background: #ecfdf5;
    color: var(--hiw-ok-deep);
    box-shadow: inset 0 0 0 1px #a7f3d0;
}
.hiw-btn-approve.is-done .hiw-btn-label { display: none; }
.hiw-btn-approve.is-done .hiw-btn-done { display: inline-flex; }
.hiw-btn-approve.is-done .hiw-btn-done svg { animation: hiw-check-pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4); }

/* ---------- step 3: automatic feed ---------- */

.hiw-auto-flash {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--hiw-ink);
}
.hiw-auto-flash svg { width: 16px; height: 16px; color: var(--hiw-accent); }

.hiw-feed {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}
.hiw-feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 2px;
    border-bottom: 1px solid #f3f4f6;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.hiw-feed-item:last-child { border-bottom: 0; }
.hiw-feed-item.is-in { opacity: 1; transform: translateY(0); }
.hiw-feed-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--hiw-ink);
    line-height: 1.4;
}
.hiw-feed-text strong { font-weight: 600; }
.hiw-feed-status {
    position: relative;
    margin-left: auto;
    flex: none;
    width: 22px;
    height: 22px;
}
.hiw-feed-spinner,
.hiw-feed-check { position: absolute; inset: 0; }
.hiw-feed-spinner {
    width: 100%; height: 100%; display: block;
    color: #c3cdf9;
    animation: hiw-spin 0.9s linear infinite;
}
.hiw-feed-check {
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hiw-ok);
    color: #fff;
}
.hiw-feed-check svg { width: 12px; height: 12px; }
.hiw-feed-item.is-done .hiw-feed-spinner { display: none; }
.hiw-feed-item.is-done .hiw-feed-check {
    display: flex;
    animation: hiw-check-pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
@keyframes hiw-spin { to { transform: rotate(360deg); } }
@keyframes hiw-check-pop {
    0%   { transform: scale(0.4); }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Closing stamp: the payoff line for the whole section. */
.hiw-feed-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: #0a0a0a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.hiw-feed-summary.is-in { opacity: 1; transform: scale(1); }
.hiw-feed-summary .hiw-summary-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--hiw-ok);
}
.hiw-feed-summary .hiw-summary-check svg { width: 9px; height: 9px; }
.hiw-feed-summary em {
    font-style: normal;
    color: #a5b8ff;
}

/* ============================================================
   STEP 01 — connect: the integrations list. Connect is clicked on a
   tool, an OAuth-style authorization window rises, the tool flips
   to Connected.
   ============================================================ */
.hiw-integr {
    position: relative;
    padding: 0;                                   /* sections carry their own padding */
    border: 1px solid #e3e6ee;
    box-shadow: 0 24px 50px -20px rgba(17, 24, 39, 0.18), 0 2px 6px -2px rgba(17, 24, 39, 0.06);
    overflow: hidden;                             /* clip the header bg to the rounded corners */
}
.hiw-integr .hiw-panel-head {
    gap: 10px; margin: 0; padding: 15px 20px;
    border-bottom: 1px solid #eef0f4; background: #fbfcfe;
}
.hiw-integr-list { padding: 4px 20px 10px; transition: opacity 0.35s ease; }
.hiw-integr.is-authing .hiw-integr-list { opacity: 0.4; }
.hiw-integr-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #f0f1f5;
}
.hiw-integr-row:first-child { border-top: 0; }
.hiw-integr-ico {
    width: 38px; height: 38px; flex: none; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    background: #f8f9fc; border: 1px solid #eaecf2;
}
.hiw-integr-ico img { width: 21px; height: 21px; object-fit: contain; }
.hiw-integr-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.hiw-integr-name { font-size: 14px; font-weight: 600; color: var(--hiw-ink); }
.hiw-integr-sub { font-size: 11.5px; color: var(--hiw-muted); }
/* the Connect button — three states: Connect / Connecting… / Connected */
.hiw-integr-btn {
    -webkit-appearance: none; appearance: none;
    flex: none; display: inline-flex; align-items: center;
    padding: 7px 14px; border: 1px solid #d5d9e6; border-radius: 9999px;
    background: #fff; color: #374151;
    font: inherit; font-size: 13px; font-weight: 600; cursor: default;
    transition: transform 0.15s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.hiw-integr-btn.is-pressed { transform: scale(0.94); }
.hiw-integr-btn-wait,
.hiw-integr-btn-done { display: none; align-items: center; gap: 6px; }
.hiw-integr-btn-done svg { width: 12px; height: 12px; }
.hiw-integr-spin {
    width: 12px; height: 12px; flex: none; border-radius: 50%;
    border: 2px solid rgba(76,108,255,0.3); border-top-color: var(--hiw-accent);
    animation: hiw-spin 0.8s linear infinite;
}
.hiw-integr-row.is-wait .hiw-integr-btn { border-color: #c9d2f7; color: var(--hiw-accent); background: #f5f7ff; }
.hiw-integr-row.is-wait .hiw-integr-btn-label { display: none; }
.hiw-integr-row.is-wait .hiw-integr-btn-wait { display: inline-flex; }
.hiw-integr-row.is-connected .hiw-integr-btn { border-color: #a7f3d0; background: #ecfdf5; color: var(--hiw-ok-deep); }
.hiw-integr-row.is-connected .hiw-integr-btn-label { display: none; }
.hiw-integr-row.is-connected .hiw-integr-btn-done { display: inline-flex; }

/* the OAuth-style authorization window, floating over the list */
.hiw-auth {
    position: absolute; left: 50%; top: 50%;
    z-index: 6; width: min(320px, 86%);
    background: #fff; border: 1px solid #e6e8f0; border-radius: 16px;
    box-shadow: 0 40px 80px -28px rgba(17,24,39,0.45), 0 4px 10px -4px rgba(17,24,39,0.12);
    padding: 20px 18px 16px;
    text-align: center;
    opacity: 0; transform: translate(-50%, calc(-50% + 14px)) scale(0.96);
    transition: opacity 0.45s cubic-bezier(0.22,0.61,0.36,1), transform 0.5s cubic-bezier(0.2,0.9,0.3,1.2);
    pointer-events: none;
}
.hiw-auth.is-in { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hiw-auth.is-out { opacity: 0; transform: translate(-50%, calc(-50% - 8px)) scale(0.97); }
.hiw-auth-logos { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.hiw-auth-logo {
    width: 42px; height: 42px; flex: none; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #eaecf2;
    box-shadow: 0 4px 10px -6px rgba(15,23,42,0.15);
}
.hiw-auth-logo img { width: 23px; height: 23px; }
.hiw-auth-link { color: #b6bdcc; display: inline-flex; }
.hiw-auth-link svg { width: 16px; height: 16px; }
.hiw-auth-title { margin: 0; font-size: 15px; font-weight: 700; color: #0f172a; }
.hiw-auth-sub { margin: 5px 0 0; font-size: 12.5px; line-height: 1.5; color: #6b7280; }
.hiw-auth-scopes {
    list-style: none; margin: 13px 0 0; padding: 11px 13px;
    border: 1px solid #eef0f5; border-radius: 10px; background: #f8fafc;
    display: flex; flex-direction: column; gap: 8px; text-align: left;
}
.hiw-auth-scopes li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #374151; }
.hiw-auth-scopes svg { width: 13px; height: 13px; flex: none; color: var(--hiw-ok); }
.hiw-auth-actions { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }

/* ============================================================
   STEP 02 — describe: a prompt box the process types itself into
   ============================================================ */
/* the whole thing reads as a FORM: the panel supplies the card frame; each
   section provides its own padding (so no double-padding from .hiw-panel). */
.hiw-prompt {
    padding: 0;                                   /* override .hiw-panel padding */
    border: 1px solid #e3e6ee;
    box-shadow: 0 24px 50px -20px rgba(17, 24, 39, 0.18), 0 2px 6px -2px rgba(17, 24, 39, 0.06);
    overflow: hidden;
}
/* form header */
.hiw-prompt .hiw-panel-head {
    gap: 10px; margin: 0; padding: 15px 20px;
    border-bottom: 1px solid #eef0f4; background: #fbfcfe;
}
.hiw-prompt-title { font-size: 16px; font-weight: 600; color: var(--hiw-ink); letter-spacing: -0.01em; }

/* --- WHEN THIS HAPPENS: the trigger (tool select + event select) --- */
.hiw-trigger { padding: 18px 20px 16px; }
.hiw-do { padding: 14px 20px 20px; }
.hiw-trigger-label {
    display: block; margin-bottom: 9px;
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: #9aa2b2;
}
/* a real form field: clear border, subtle inner shadow, pointer affordance */
.hiw-select {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 12px; margin-bottom: 9px;
    border: 1.5px solid #dfe3ec; border-radius: 11px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(17,24,39,0.03);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.hiw-select:last-child { margin-bottom: 0; }
.hiw-select.is-open { border-color: var(--hiw-accent); box-shadow: 0 0 0 3px rgba(76,108,255,0.15); }
.hiw-select.is-set { border-color: #c7cfe6; background: #fbfcff; }
.hiw-select-ico {
    width: 28px; height: 28px; flex: none; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: #f1f3f7; border: 1px solid #eaecf2;
}
.hiw-select-ico img { width: 18px; height: 18px; object-fit: contain; }
.hiw-select-ico-bolt { background: var(--hiw-soft); border-color: #e0e6ff; color: var(--hiw-accent); }
.hiw-select-ico-bolt svg { width: 15px; height: 15px; }
.hiw-select-val {
    flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 500; color: #9aa2b2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color 0.2s ease;
}
.hiw-select.is-set .hiw-select-val { color: var(--hiw-ink); font-weight: 600; }
/* chevron (unset state) — hidden once set; check (set state) shows instead */
.hiw-select-chev { flex: none; width: 16px; color: #b6bdcc; display: inline-flex; }
.hiw-select-chev svg { width: 16px; height: 16px; }
.hiw-select.is-set .hiw-select-chev { display: none; }
.hiw-select-check {
    display: none; flex: none; width: 20px; height: 20px; border-radius: 9999px;
    background: var(--hiw-ok); color: #fff;
    align-items: center; justify-content: center;
    animation: hiw-check-pop 0.35s cubic-bezier(0.2,0.9,0.3,1.2);
}
.hiw-select-check svg { width: 12px; height: 12px; }
.hiw-select.is-set .hiw-select-check { display: inline-flex; }

/* --- DO THIS: the description, in an input box, with a Create button below --- */
.hiw-prompt-input {
    min-height: 56px;
    padding: 10px 12px;
    border: 1.5px solid #dfe3ec; border-radius: 11px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(17,24,39,0.03);
}
.hiw-prompt-text {
    margin: 0; font-size: 14px; line-height: 1.55; color: var(--hiw-ink);
    font-weight: 400;
}
.hiw-prompt-caret {
    display: inline-block; width: 2px; height: 1.05em; vertical-align: -2px;
    margin-left: 1px; background: var(--hiw-accent);
    animation: hiw-caret-blink 1s step-end infinite;
}
.hiw-prompt-caret.is-paused { animation: none; }
.hiw-prompt-caret.is-hidden { display: none; }
@keyframes hiw-caret-blink { 50% { opacity: 0; } }

/* full-width Create button below the input (same width as the fields) */
.hiw-prompt-create {
    -webkit-appearance: none; appearance: none;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; margin-top: 18px;
    padding: 9px 16px; border: 1px solid #d5d9e6; border-radius: 11px;
    font: inherit; font-size: 14px; font-weight: 600; line-height: 1.4;
    background-color: #eef0f5; color: #9aa2b2; cursor: default;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease,
                box-shadow 0.35s ease, transform 0.15s ease;
}
/* lights up to solid brand blue once the process has been described */
.hiw-prompt-create.is-ready {
    background-color: #4c6cff; border-color: #4c6cff; color: #ffffff;
    box-shadow: 0 8px 20px -8px rgba(76,108,255,0.55);
}
/* a visible press when it "clicks" to create */
.hiw-prompt-create.is-press { transform: scale(0.97); box-shadow: 0 3px 10px -6px rgba(76,108,255,0.55); }
/* created — solid green, label hidden, check + "Created" shown */
.hiw-prompt-create.is-sent {
    background-color: #10b981; border-color: #10b981; color: #ffffff;
    box-shadow: 0 8px 20px -8px rgba(16,185,129,0.5);
}
.hiw-create-label { display: inline-flex; align-items: center; }
.hiw-create-done { display: none; align-items: center; gap: 7px; }
.hiw-create-done svg { width: 15px; height: 15px; }
.hiw-prompt-create.is-sent .hiw-create-label { display: none; }
.hiw-prompt-create.is-sent .hiw-create-done { display: inline-flex; }

/* ============================================================
   STEP 03 — structure: the plain words become a PROCESS.md
   ============================================================ */
/* the doc is one card: a file-tab header bar + the code body inside it */
.hiw-doc {
    position: relative; width: 100%;
    background: #fff;
    border: 1px solid #e3e6ee; border-radius: 24px;
    box-shadow: 0 24px 50px -20px rgba(17, 24, 39, 0.22), 0 2px 6px -2px rgba(17, 24, 39, 0.06);
    overflow: hidden;
}
/* integrated header bar (like a code-editor file tab) */
.hiw-doc-name {
    display: flex; align-items: center; gap: 8px;
    padding: 15px 20px;
    border-bottom: 1px solid #eef0f4; background: #fbfcfe;
}
.hiw-doc-dot { width: 7px; height: 7px; flex: none; border-radius: 9999px; background: var(--hiw-accent-2); }
.hiw-doc-file { font-size: 12px; font-weight: 500; color: #4b5563; font-family: var(--hiw-mono); }
.hiw-doc-code {
    padding: 22px 24px 26px;
    font-family: var(--hiw-mono); font-size: 13.5px; line-height: 1.7;
    color: #374151;
}
.hiw-doc-line {
    display: block; white-space: pre-wrap;
    opacity: 0; transform: translateY(5px);
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2,0.9,0.3,1.2);
}
.hiw-doc-line.is-in { opacity: 1; transform: none; }
.hiw-doc-gap { min-height: 0.6em; }
/* syntax colours (mirrors .code-block-light from main.css) */
.hiw-doc-code .comment  { color: #94a3b8; }
.hiw-doc-code .keyword  { color: #6366f1; font-weight: 600; }
.hiw-doc-code .field    { color: #0f766e; font-weight: 600; }
.hiw-doc-code .string   { color: #1f2937; }
.hiw-doc-code .heading  { color: #0ea5e9; font-weight: 700; }
.hiw-doc-code .rule-cat { color: #dc2626; font-weight: 600; }
.hiw-doc-code .chip {
    display: inline-block; padding: 0 6px; border-radius: 5px;
    background: #eef2ff; color: #4c6cff; font-weight: 600; font-size: 0.94em;
}

/* ============================================================
   STEP 05 — approve: the Askpilot approval popup rising on-screen
   ============================================================ */
.hiw-approve-pop {
    position: absolute; left: 50%; top: 50%;
    z-index: 8; width: min(320px, 82%);
    background: #fff; border: 1px solid #e6e8f0; border-radius: 16px;
    box-shadow: 0 40px 80px -28px rgba(17,24,39,0.5), 0 4px 10px -4px rgba(17,24,39,0.14);
    padding: 16px 16px 14px;
    opacity: 0; transform: translate(-50%, calc(-50% + 14px)) scale(0.96);
    transition: opacity 0.45s cubic-bezier(0.22,0.61,0.36,1), transform 0.5s cubic-bezier(0.2,0.9,0.3,1.2);
    pointer-events: none;
}
.hiw-approve-pop.is-in { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hiw-approve-pop.is-out { opacity: 0; transform: translate(-50%, calc(-50% - 8px)) scale(0.97); }
.hiw-approve-head { display: flex; align-items: center; gap: 10px; }
.hiw-approve-mark {
    width: 28px; height: 28px; flex: none; border-radius: 8px;
    background: var(--hiw-soft); display: flex; align-items: center; justify-content: center;
}
.hiw-approve-mark img { width: 17px; height: 17px; }
.hiw-approve-titles { display: flex; flex-direction: column; }
.hiw-approve-title { font-size: 13.5px; font-weight: 700; color: #0f172a; }
.hiw-approve-sub { font-size: 11px; color: var(--hiw-muted); }
.hiw-approve-msg { margin-top: 12px; font-size: 14px; color: #374151; }
.hiw-approve-quote {
    margin-top: 8px; padding: 10px 12px; border-radius: 10px;
    background: #f6f8fc; border: 1px solid #eef0f5;
    font-size: 12px; line-height: 1.5; color: #4b5563;
}
.hiw-approve-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .hiw-prompt-caret,
    .hiw-integr-btn,
    .hiw-integr-spin,
    .hiw-auth,
    .hiw-integr-list,
    .hiw-doc-line,
    .hiw-approve-pop,
    .hiw-select,
    .hiw-select-check,
    .hiw-select-val {
        animation: none; transition: none;
    }
    .hiw-doc-line { opacity: 1; transform: none; }
    .hiw-link-line::after,
    .hiw-wf-ghost,
    .hiw-toast-dot,
    .hiw-callwin.is-live .hiw-ring,
    .hiw-callwin.is-live .hiw-wave span,
    .hiw-feed-spinner,
    .hiw-btn-approve.is-done .hiw-btn-done svg,
    .hiw-feed-item.is-done .hiw-feed-check {
        animation: none;
    }
    .hiw-callwin,
    .hiw-toast,
    .hiw-card,
    .hiw-call-match,
    .hiw-ap-callbody,
    .hiw-approvewin .hiw-approvewin-body,
    .hiw-feed-item,
    .hiw-feed-summary {
        transition: none;
    }
}
