/* /Pages/Home.razor.rz.scp.css */
.cockpit[b-eb41nkk7zg] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* 100dvh tracks the *visible* viewport on iOS: it shrinks for Safari's
       toolbars and fills the screen in an installed PWA. A plain inset:0 / 100vh
       does neither, which is what made the composer crowd the macros in Safari
       and left a dead gap below it when launched from the Home Screen. */
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* In an installed iOS PWA, 100dvh measures the screen MINUS the top safe-area
   inset (~59px), so a dvh-tall cockpit leaves a dead band of manifest background
   at the bottom. There are no dynamic toolbars in standalone, so the large
   viewport (100vh = full screen) is both correct and stable here. */
@media (display-mode: standalone) {
    .cockpit[b-eb41nkk7zg] {
        height: 100vh;
    }
}

.backdrop[b-eb41nkk7zg] {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 55% at 50% -8%, rgba(255, 125, 60, 0.14), rgba(255, 125, 60, 0.04) 38%, transparent 64%),
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        var(--graphite-950);
    background-size: 100% 100%, 28px 28px, 28px 28px, 100% 100%;
}

.scroll[b-eb41nkk7zg] {
    position: relative;
    z-index: 1;
    flex: 1;
    /* Without this a flex child refuses to shrink below its content height, so
       the scroll area can't size correctly and clips the last panel. */
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.content[b-eb41nkk7zg] {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    /* Bottom pad clears the composer, which now floats over the scroll area.
       --composer-h is measured in JS (it grows with staged photos); the literal
       is a first-paint fallback. */
    padding: calc(14px + env(safe-area-inset-top)) 20px calc(var(--composer-h, 150px) + 12px);
}

/* shared */
.row[b-eb41nkk7zg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.instrument[b-eb41nkk7zg] {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.6px;
    color: var(--ink-3);
    text-transform: uppercase;
}

.instrument.tiny[b-eb41nkk7zg] {
    font-size: 9px;
    letter-spacing: 1.2px;
}

.round[b-eb41nkk7zg] {
    width: 42px;
    height: 42px;
    border-radius: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--graphite-700);
    color: var(--ink-1);
    border: 1px solid var(--line);
    flex: none;
    transition: transform 0.08s ease;
}

.round:disabled[b-eb41nkk7zg] {
    opacity: 0.4;
}

.round:active:not(:disabled)[b-eb41nkk7zg] {
    transform: scale(0.93);
}

/* header */
.brand-row[b-eb41nkk7zg] {
    margin: 4px 0 14px;
}

.brand-logo[b-eb41nkk7zg] {
    display: block;
    height: 22px;
    width: auto;
    overflow: visible;
}

.brand-word[b-eb41nkk7zg] {
    font-family: var(--sans);
    font-weight: 900;
    letter-spacing: -0.04em;
    font-size: 100px;
}

.brand-no[b-eb41nkk7zg] {
    fill: var(--ink-0);
}

.brand-weigh[b-eb41nkk7zg] {
    fill: var(--ink-2);
}

.brand-strike[b-eb41nkk7zg],
.brand-cap[b-eb41nkk7zg] {
    fill: var(--energy);
}

/* Strike "drives in" once when the app first renders. */
.brand-strike[b-eb41nkk7zg] {
    transform-box: fill-box;
    transform-origin: left center;
    animation: brand-strike-b-eb41nkk7zg 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.brand-cap[b-eb41nkk7zg] {
    transform-box: fill-box;
    transform-origin: center center;
    animation: brand-cap-b-eb41nkk7zg 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}

@keyframes brand-strike-b-eb41nkk7zg {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes brand-cap-b-eb41nkk7zg {
    0%   { opacity: 0; transform: scale(0); }
    70%  { opacity: 1; transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .brand-strike[b-eb41nkk7zg],
    .brand-cap[b-eb41nkk7zg] {
        animation: none;
    }
}

.byok[b-eb41nkk7zg] {
    height: 34px;
    padding: 0 14px;
    border-radius: 17px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.3px;
    color: var(--ink-2);
    background: var(--graphite-850);
    border: 1px solid var(--line);
}

/* day nav */
.day-nav[b-eb41nkk7zg] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.day-label[b-eb41nkk7zg] {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.day-title[b-eb41nkk7zg] {
    font-weight: 700;
    font-size: 18px;
    color: var(--ink-0);
}

/* hero */
.hero[b-eb41nkk7zg] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0 4px;
}

.ring-wrap[b-eb41nkk7zg] {
    position: relative;
    /* Scale the hero with the *visible* viewport: full 236px when there's room
       (installed PWA), shrinking when Safari's toolbars eat into it. Unlike a
       height media query — which iOS evaluates against the full device height —
       dvh in sizing reflects the area actually on screen. The plain 236px is a
       fallback for engines that don't understand dvh. */
    width: 236px;
    height: 236px;
    width: clamp(184px, 30dvh, 236px);
    height: clamp(184px, 30dvh, 236px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-center[b-eb41nkk7zg] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.hero-value[b-eb41nkk7zg] {
    font-weight: 700;
    font-size: 61px;
    letter-spacing: -2px;
    color: var(--ink-0);
    line-height: 1;
}

.hero-value.over[b-eb41nkk7zg] {
    color: var(--over);
}

.hero-label[b-eb41nkk7zg] {
    letter-spacing: 1.8px;
}

.hero-caption[b-eb41nkk7zg] {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-2);
    margin-top: 4px;
}

.goal-btn[b-eb41nkk7zg] {
    margin-top: 14px;
    height: 38px;
    padding: 0 16px;
    border-radius: 19px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--ink-2);
    background: transparent;
    border: 1px solid var(--line);
}

/* panel */
.panel[b-eb41nkk7zg] {
    background: var(--graphite-850);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
}

.macro-panel[b-eb41nkk7zg] {
    margin-top: 18px;
}

.macro-bar[b-eb41nkk7zg] {
    display: flex;
    gap: 1px;
    height: 7px;
}

.macro-bar.slim[b-eb41nkk7zg] {
    height: 5px;
    margin-top: 9px;
}

.macro-bar > span[b-eb41nkk7zg] {
    display: block;
    flex-basis: 0;
}

.macro-legend[b-eb41nkk7zg] {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.macro-item[b-eb41nkk7zg] {
    flex: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 6px;
    align-items: center;
}

.macro-item .dot[b-eb41nkk7zg] {
    grid-row: 1;
    grid-column: 1;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    display: inline-block;
}

.macro-item .instrument[b-eb41nkk7zg] {
    grid-row: 1;
    grid-column: 2;
    justify-self: start;
}

.macro-val[b-eb41nkk7zg] {
    grid-row: 2;
    grid-column: 1 / span 2;
    margin-top: 5px;
    font-family: var(--mono);
    font-weight: 600;
    font-size: 15px;
    color: var(--ink-0);
    white-space: nowrap;
}

.macro-val.over[b-eb41nkk7zg] {
    color: var(--over);
}

.macro-val .unit[b-eb41nkk7zg] {
    font-weight: 400;
    font-size: 10px;
    color: var(--ink-3);
}

.macro-target-bar[b-eb41nkk7zg] {
    grid-row: 3;
    grid-column: 1 / span 2;
    height: 4px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--graphite-700);
    overflow: hidden;
}

.macro-target-bar > span[b-eb41nkk7zg] {
    display: block;
    height: 100%;
    border-radius: inherit;
}

/* events */
.events-head[b-eb41nkk7zg] {
    margin: 28px 4px 12px;
}

.event-count[b-eb41nkk7zg] {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-4);
}

.empty-state[b-eb41nkk7zg] {
    border-style: dashed;
    padding: 28px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-3);
}

.meal-list[b-eb41nkk7zg] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.swipe-row[b-eb41nkk7zg] {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.swipe-content[b-eb41nkk7zg] {
    position: relative;
    z-index: 1;
    width: 100%;
    touch-action: pan-y;
    transition: transform 0.18s ease;
}

.swipe-row.is-dragging .swipe-content[b-eb41nkk7zg] {
    transition: none;
}

.swipe-delete[b-eb41nkk7zg] {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86px;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--over);
    color: #fff;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.meal-card[b-eb41nkk7zg] {
    display: flex;
    gap: 14px;
    padding: 14px;
    align-items: center;
}

.meal-thumb[b-eb41nkk7zg] {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--graphite-700);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meal-thumb img[b-eb41nkk7zg] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-label[b-eb41nkk7zg] {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 1px;
    color: var(--ink-3);
}

.meal-body[b-eb41nkk7zg] {
    flex: 1;
    min-width: 0;
}

.meal-title-row[b-eb41nkk7zg] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meal-title[b-eb41nkk7zg] {
    font-weight: 700;
    font-size: 15px;
    color: var(--ink-0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meal-time[b-eb41nkk7zg] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink-3);
    flex: none;
}

.meal-macros[b-eb41nkk7zg] {
    display: flex;
    gap: 9px;
    margin-top: 7px;
    font-family: var(--mono);
    font-size: 10px;
}

.meal-macros .confidence[b-eb41nkk7zg] {
    margin-left: auto;
    color: var(--ink-4);
    font-size: 9px;
}

.meal-kcal[b-eb41nkk7zg] {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.meal-kcal-value[b-eb41nkk7zg] {
    font-weight: 700;
    font-size: 22px;
    color: var(--ink-0);
}

/* composer */
.composer-bar[b-eb41nkk7zg] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 16px 18px calc(22px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--graphite-950) 62%, rgba(10, 12, 15, 0));
    /* The translucent top strip lets content scroll visibly underneath; keep it
       from swallowing taps meant for that content. */
    pointer-events: none;
}

.composer-bar > *[b-eb41nkk7zg] {
    pointer-events: auto;
}

.composer-inner[b-eb41nkk7zg] {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.composer[b-eb41nkk7zg] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--graphite-800);
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    padding: 10px 12px;
}

.composer-thumbs[b-eb41nkk7zg] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 2px 0;
}

.thumb[b-eb41nkk7zg] {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    flex: none;
}

.thumb img[b-eb41nkk7zg] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-remove[b-eb41nkk7zg] {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: rgba(6, 7, 8, 0.66);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.composer-input[b-eb41nkk7zg] {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--ink-0);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.45;
    resize: none;
    min-height: 22px;
    max-height: 160px;
    overflow-y: auto;
    padding: 4px 6px;
}

.composer-input[b-eb41nkk7zg]::placeholder {
    color: var(--ink-3);
}

.composer-actions[b-eb41nkk7zg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.composer-toolbox[b-eb41nkk7zg] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-action[b-eb41nkk7zg] {
    width: 38px;
    height: 38px;
    border-radius: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2);
    background: var(--graphite-700);
    border: 1px solid var(--line);
    flex: none;
    transition: transform 0.08s ease;
}

.icon-action:active:not(.disabled)[b-eb41nkk7zg] {
    transform: scale(0.93);
}

.icon-action:disabled[b-eb41nkk7zg] {
    opacity: 0.4;
    pointer-events: none;
}

.photo-btn[b-eb41nkk7zg] {
    cursor: pointer;
}

.photo-btn input[b-eb41nkk7zg] {
    display: none;
}

.photo-btn.disabled[b-eb41nkk7zg] {
    opacity: 0.4;
    pointer-events: none;
}

.mic-btn.recording[b-eb41nkk7zg] {
    color: #1A0A03;
    background: var(--energy);
    border-color: #FF9D63;
}

.send-btn[b-eb41nkk7zg] {
    width: 38px;
    height: 38px;
    border-radius: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--energy);
    color: #1A0A03;
    border: 1px solid #FF9D63;
    flex: none;
    transition: transform 0.08s ease;
}

.send-btn:active:not(:disabled)[b-eb41nkk7zg] {
    transform: scale(0.93);
}

.send-btn:disabled[b-eb41nkk7zg] {
    opacity: 0.5;
}

.ai-hint[b-eb41nkk7zg] {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.spinner[b-eb41nkk7zg] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 125, 60, 0.3);
    border-top-color: var(--energy);
    animation: spin-b-eb41nkk7zg 0.7s linear infinite;
}

.pulse-dot[b-eb41nkk7zg] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--energy);
    box-shadow: 0 0 0 rgba(255, 125, 60, 0.45);
    animation: pulse-b-eb41nkk7zg 1.15s ease-out infinite;
}

@keyframes spin-b-eb41nkk7zg {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-b-eb41nkk7zg {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 125, 60, 0.45);
    }

    100% {
        box-shadow: 0 0 0 9px rgba(255, 125, 60, 0);
    }
}

.past-notice[b-eb41nkk7zg] {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: var(--graphite-850);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 16px;
    text-align: center;
}

/* modals */
.modal-scrim[b-eb41nkk7zg] {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.modal[b-eb41nkk7zg] {
    width: 100%;
    max-width: 420px;
    background: var(--graphite-900);
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 90vh;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-head[b-eb41nkk7zg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.modal-title[b-eb41nkk7zg] {
    font-weight: 700;
    font-size: 18px;
    color: var(--ink-0);
}

.icon-btn[b-eb41nkk7zg] {
    color: var(--ink-3);
    display: inline-flex;
    padding: 4px;
}

.field-label[b-eb41nkk7zg] {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 8px;
}

.field[b-eb41nkk7zg] {
    background: var(--graphite-800);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 13px;
    color: var(--ink-0);
    font-size: 14px;
    outline: none;
    width: 100%;
}

.field:focus[b-eb41nkk7zg] {
    border-color: var(--line-strong);
}

.field-hint[b-eb41nkk7zg] {
    font-size: 12px;
    color: var(--ink-3);
    line-height: 1.4;
}

.goal-sliders[b-eb41nkk7zg] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.goal-slider[b-eb41nkk7zg] {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 12px;
    background: var(--graphite-800);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.goal-slider-head[b-eb41nkk7zg] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.goal-slider .field-label[b-eb41nkk7zg] {
    margin-top: 0;
}

.goal-value[b-eb41nkk7zg] {
    flex: none;
    font-family: var(--mono);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-0);
    white-space: nowrap;
}

.goal-kcal-input[b-eb41nkk7zg] {
    font-family: var(--mono);
    font-weight: 600;
}

.macro-split-control[b-eb41nkk7zg] {
    position: relative;
    height: 42px;
}

.macro-split-track[b-eb41nkk7zg] {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 12px;
    border-radius: 999px;
    transform: translateY(-50%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.macro-split-range[b-eb41nkk7zg] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 42px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
}

.macro-split-range[b-eb41nkk7zg]::-webkit-slider-runnable-track {
    height: 42px;
    background: transparent;
}

.macro-split-range[b-eb41nkk7zg]::-moz-range-track {
    height: 42px;
    background: transparent;
}

.macro-split-range[b-eb41nkk7zg]::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    margin-top: 9px;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--graphite-950);
    border: 3px solid currentColor;
    box-shadow: 0 0 0 3px rgba(6, 7, 8, 0.75);
    pointer-events: auto;
}

.macro-split-range[b-eb41nkk7zg]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--graphite-950);
    border: 3px solid currentColor;
    box-shadow: 0 0 0 3px rgba(6, 7, 8, 0.75);
    pointer-events: auto;
}

.protein-handle[b-eb41nkk7zg] {
    z-index: 2;
    color: var(--protein);
}

.carbs-handle[b-eb41nkk7zg] {
    z-index: 3;
    color: var(--carbs);
}

.goal-scale[b-eb41nkk7zg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.7px;
    color: var(--ink-3);
    text-transform: uppercase;
}

.goal-scale.three span:nth-child(1)[b-eb41nkk7zg] {
    color: var(--protein);
}

.goal-scale.three span:nth-child(2)[b-eb41nkk7zg] {
    color: var(--carbs);
}

.goal-scale.three span:nth-child(3)[b-eb41nkk7zg] {
    color: var(--fat);
}

.goal-macro-preview[b-eb41nkk7zg] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.goal-macro-preview > div[b-eb41nkk7zg] {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 6px;
    row-gap: 4px;
    min-width: 0;
    padding: 11px 10px;
    background: var(--graphite-800);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-family: var(--mono);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-0);
}

.goal-macro-preview .dot[b-eb41nkk7zg] {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    display: inline-block;
}

.goal-macro-preview .instrument[b-eb41nkk7zg] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goal-macro-preview > div > span:last-child[b-eb41nkk7zg] {
    grid-column: 1 / span 2;
}

.goal-macro-value[b-eb41nkk7zg] {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}

.goal-macro-input[b-eb41nkk7zg] {
    width: 4.6ch;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ink-0);
    font: inherit;
    appearance: textfield;
}

.goal-macro-input:focus[b-eb41nkk7zg] {
    color: var(--energy);
}

.goal-macro-input[b-eb41nkk7zg]::-webkit-outer-spin-button,
.goal-macro-input[b-eb41nkk7zg]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.goal-macro-preview .unit[b-eb41nkk7zg] {
    font-weight: 400;
    font-size: 10px;
    color: var(--ink-3);
}

.saved-key[b-eb41nkk7zg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--graphite-800);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 13px;
    color: var(--ink-0);
    font-size: 14px;
}

.inline-action[b-eb41nkk7zg] {
    flex: none;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--energy);
}

.protection-options[b-eb41nkk7zg] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.protection-choice[b-eb41nkk7zg] {
    min-width: 0;
    min-height: 42px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--graphite-800);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.protection-choice.selected[b-eb41nkk7zg] {
    border-color: var(--energy);
    background: rgba(255, 125, 60, 0.08);
    color: var(--ink-0);
}

.protection-choice:disabled[b-eb41nkk7zg] {
    opacity: 0.42;
}

.app-version-row[b-eb41nkk7zg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.app-version-row .field-label[b-eb41nkk7zg] {
    margin-top: 0;
}

.app-version-value[b-eb41nkk7zg] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-2);
}

.model-cost-list[b-eb41nkk7zg] {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 4px;
    max-height: 44vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-right: 2px;
}

.model-cost-row[b-eb41nkk7zg] {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    text-align: left;
    background: var(--graphite-800);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
}

.model-cost-row.selected[b-eb41nkk7zg] {
    border-color: var(--energy);
    background: rgba(255, 125, 60, 0.08);
}

.model-cost-copy[b-eb41nkk7zg] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.model-cost-name[b-eb41nkk7zg] {
    color: var(--ink-0);
    font-weight: 600;
    font-size: 13px;
}

.model-cost-note[b-eb41nkk7zg] {
    color: var(--ink-3);
    font-size: 12px;
}

.model-cost-values[b-eb41nkk7zg] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink-2);
    white-space: nowrap;
    flex: none;
}

.model-cost-price[b-eb41nkk7zg] {
    letter-spacing: 0.3px;
}

.model-cost-ratio[b-eb41nkk7zg] {
    color: var(--energy);
    font-weight: 600;
}

.confirm-image[b-eb41nkk7zg] {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 6px;
}

.confirm-thumbs[b-eb41nkk7zg] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.confirm-thumbs img[b-eb41nkk7zg] {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
}

.confirm-grid[b-eb41nkk7zg] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.confirm-grid > div[b-eb41nkk7zg] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-actions[b-eb41nkk7zg] {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn[b-eb41nkk7zg] {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
}

.btn.full[b-eb41nkk7zg] {
    flex: none;
    width: 100%;
    margin-top: 4px;
}

.btn.primary[b-eb41nkk7zg] {
    background: var(--energy);
    color: #1A0A03;
}

.btn.ghost[b-eb41nkk7zg] {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-1);
}

.btn.ghost.danger[b-eb41nkk7zg] {
    color: var(--over);
}

.btn.danger-solid[b-eb41nkk7zg] {
    background: var(--over);
    color: #fff;
}

.toast[b-eb41nkk7zg] {
    position: fixed;
    left: 50%;
    bottom: calc(20px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 60;
    max-width: 90%;
    background: var(--over);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
