/* Grok video creation controls. */
.video-source-dropzone,
.video-studio-panel {
    --video-ink: #24211f;
    --video-muted-fg: #746e69;
    --video-line: #e7e2de;
    --video-soft: #f6f6f5;
    --video-accent: #e6533f;
    --video-accent-soft: #fff3f0;
    --video-teal: #167d78;
    --video-focus: #c94735;
    letter-spacing: 0;
}

/* Source / reference media zones sit directly above the prompt. */
.video-media-dropzones {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.video-source-dropzone {
    width: 100%;
    min-height: 104px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
    padding: 18px 20px;
    border: 1.5px dashed #aebbb8;
    border-radius: 8px;
    background: #fbfcfc;
    color: var(--video-ink);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.video-reference-dropzone {
    border-style: dashed;
    border-color: #c5c0d8;
    background: #fbfbfe;
}

.video-reference-dropzone:hover,
.video-reference-dropzone.is-dragging {
    border-color: #6b5fd4;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(107, 95, 212, .1);
}

.video-source-dropzone-icon.is-ref {
    background: #ece9fb;
    color: #5b4fc9;
}

.image-preview.is-video-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    background: #111;
}

.image-preview.is-audio-media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(145deg, #1f2937, #111827);
    color: #f9fafb;
    min-height: 96px;
    padding: 10px;
    text-align: center;
}

.image-preview.is-audio-media i {
    font-size: 22px;
    opacity: .95;
}

.image-preview.is-audio-media .audio-media-name {
    font-size: 11px;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-preview .media-role-badge {
    position: absolute;
    left: 6px;
    bottom: 6px;
    z-index: 2;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .62);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
}

.video-source-dropzone:hover,
.video-source-dropzone.is-dragging {
    border-color: var(--video-teal);
    background: #f2f8f7;
    box-shadow: 0 0 0 3px rgba(22, 125, 120, .09);
}

.video-source-dropzone.has-error {
    border-color: #dc4d43;
    background: #fff7f6;
    box-shadow: 0 0 0 3px rgba(220, 77, 67, .09);
}

.video-source-dropzone-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e7f2f0;
    color: var(--video-teal);
    font-size: 17px;
}

.video-source-dropzone-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.video-source-dropzone-copy strong {
    color: var(--video-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.video-source-dropzone-copy > span {
    color: var(--video-muted-fg);
    font-size: 11px;
    line-height: 1.45;
}

.video-source-dropzone-error:empty { display: none; }
.video-source-dropzone-copy .video-source-dropzone-error {
    color: #b42318;
    font-weight: 650;
}

.video-source-dropzone-action {
    min-height: 34px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid #d8d4d0;
    border-radius: 7px;
    background: #fff;
    color: #3c3835;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(36, 33, 31, .05);
}

.image-preview-container.is-video-source {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--video-line, #e7e2de);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(36, 33, 31, .05);
}

.image-preview-container.is-video-source .preview-header { margin-bottom: 10px; }
.image-preview-container.is-video-source .preview-count {
    color: #4b4541;
    font-size: 12px;
    font-weight: 700;
}
.image-preview-container.is-video-source .image-previews {
    grid-template-columns: repeat(auto-fill, minmax(96px, 112px));
    gap: 10px;
}

.video-studio-panel {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--video-line);
    border-radius: 8px;
    background: #fff;
    color: var(--video-ink);
    box-shadow: 0 10px 32px rgba(36, 33, 31, .07);
}

.video-studio-header {
    position: relative;
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fffdfa;
    border-bottom: 1px solid #eeeae6;
}

.video-studio-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--video-accent);
    color: #fff;
    font-size: 11px;
    box-shadow: 0 5px 14px rgba(230, 83, 63, .22);
}

.video-studio-mark i { transform: translateX(1px); }
.video-studio-heading { min-width: 0; }
.video-studio-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.video-studio-title-row h3 {
    margin: 0;
    color: var(--video-ink);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: 0;
}
.video-studio-heading p {
    margin: 3px 0 0;
    color: var(--video-muted-fg);
    font-size: 11px;
    line-height: 1.4;
}

.video-model-badge {
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border: 1px solid #dad5d1;
    border-radius: 5px;
    background: #fff;
    color: #766f6a;
    font-size: 8px;
    font-weight: 750;
    line-height: 1;
}
.video-model-badge.is-latest { border-color: #a7d2cb; background: #f1faf8; color: #116963; }
.video-model-badge.is-extend { border-color: #f4b5a9; background: #fff6f3; color: #b63f2f; }

/* 视频面板标题行：积分消耗徽章（常显，高消耗时更醒目） */
.video-credits-badge {
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border: 1px solid #f0c28a;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff8ef 0%, #ffefd8 100%);
    color: #9a4d00;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(154, 77, 0, .08);
    white-space: nowrap;
}
.video-credits-badge[hidden] { display: none !important; }
.video-credits-badge i {
    font-size: 11px;
    color: #d97706;
}
.video-credits-badge.is-high-cost {
    border-color: #f0a070;
    background: linear-gradient(180deg, #fff4ee 0%, #ffe3d6 100%);
    color: #b42318;
    box-shadow: 0 0 0 3px rgba(230, 83, 63, .10), 0 1px 2px rgba(180, 35, 24, .08);
    animation: video-credits-pulse 1.6s ease-in-out 1;
}
.video-credits-badge.is-high-cost i { color: #e6533f; }
.video-credits-badge .video-credits-num {
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    font-weight: 900;
}
@keyframes video-credits-pulse {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.04); }
    70% { transform: scale(1.015); }
}

.video-config-summary {
    min-width: 0;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    padding: 7px 9px;
    border-radius: 6px;
    background: #f3f2f0;
    color: #554f4b;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.video-config-summary span { display: inline-flex; align-items: center; }
.video-config-summary span + span::before {
    content: "·";
    margin: 0 6px;
    color: #aaa39e;
}
.video-config-summary .video-summary-credits {
    color: #b45309;
    font-weight: 850;
}
.video-config-summary .video-summary-credits.is-high-cost {
    color: #b42318;
}

.video-exit-extend {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid #f2b1a4;
    border-radius: 7px;
    background: #fff;
    color: #b63f2f;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}
.video-exit-extend:hover { background: #fff5f2; }

.video-studio-body {
    display: grid;
    gap: 24px;
    padding: 20px 18px 18px;
}
.video-setting-block { min-width: 0; padding: 0; }
.video-setting-heading {
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}
.video-setting-label {
    color: #3f3a37;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}
.video-setting-meta {
    color: #938c86;
    font-size: 10px;
    line-height: 1.4;
    text-align: right;
}
.video-setting-value {
    min-width: 48px;
    color: var(--video-accent);
    font-size: 12px;
    font-weight: 750;
    text-align: right;
}

.video-mode-control {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
    border-radius: 8px;
    background: var(--video-soft);
}
.video-mode-option {
    min-width: 0;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #756f6b;
    cursor: pointer;
    text-align: left;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.video-mode-option:hover:not(:disabled) { background: rgba(255, 255, 255, .65); color: #3d3835; }
.video-mode-option[aria-checked="true"] {
    border-color: #f0b4aa;
    background: #fff;
    color: var(--video-ink);
    box-shadow: 0 3px 12px rgba(51, 44, 40, .08);
}
.video-mode-option:disabled { display: none; }
.video-mode-option > i {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #e8e6e4;
    color: #6e6762;
    font-size: 11px;
}
.video-mode-option[aria-checked="true"] > i { background: var(--video-accent-soft); color: var(--video-accent); }
.video-mode-option > span { min-width: 0; }
.video-mode-option strong {
    display: block;
    color: inherit;
    overflow-wrap: anywhere;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}
.video-mode-option small {
    display: block;
    margin-top: 2px;
    color: #918a85;
    overflow-wrap: anywhere;
    font-size: 9px;
    line-height: 1.35;
}

.video-primary-settings {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(245px, .92fr);
    gap: 30px;
}

/* 时长滑条：刻度与 thumb 中心对齐（按真实秒数比例定位，不再 space-between 均分） */
.video-duration-slider {
    --video-thumb-size: 16px;
    --video-range-progress: 0%;
    position: relative;
    width: 100%;
    margin: 2px 0 0;
    overflow: visible;
}
.video-duration-block {
    overflow: visible;
}
.video-duration-range {
    --video-range-progress: 0%;
    width: 100%;
    height: 20px;
    display: block;
    margin: 0;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.video-duration-range::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(
        to right,
        var(--video-accent) 0 var(--video-range-progress),
        #dedad7 var(--video-range-progress) 100%
    );
}
.video-duration-range::-moz-range-track {
    height: 5px;
    border-radius: 3px;
    background: #dedad7;
}
.video-duration-range::-moz-range-progress {
    height: 5px;
    border-radius: 3px;
    background: var(--video-accent);
}
.video-duration-range::-webkit-slider-thumb {
    width: var(--video-thumb-size);
    height: var(--video-thumb-size);
    margin-top: -5.5px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--video-accent);
    box-shadow: 0 0 0 1px #d57c6f, 0 2px 5px rgba(54, 42, 38, .16);
    appearance: none;
    -webkit-appearance: none;
}
.video-duration-range::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--video-accent);
    box-shadow: 0 0 0 1px #d57c6f;
}

/* 刻度轨：与滑条同宽，按 left% 对齐 thumb 中心 */
.video-duration-scale {
    position: relative;
    width: 100%;
    height: 10px;
    margin-top: 2px;
    pointer-events: none;
}
.video-duration-tick {
    position: absolute;
    top: 0;
    width: 0;
    transform: translateX(-50%);
}
.video-duration-tick::before {
    content: '';
    display: block;
    width: 1.5px;
    height: 6px;
    margin: 0 auto;
    border-radius: 1px;
    background: #d4cfca;
}
.video-duration-tick.is-major::before {
    height: 8px;
    background: #b8b1ab;
}
.video-duration-tick.is-active::before {
    background: var(--video-accent);
}

/* 预设标签：绝对定位到对应秒数，不再 space-between */
.video-duration-presets {
    position: relative;
    width: 100%;
    height: 28px;
    margin-top: 2px;
}
.video-duration-presets button {
    position: absolute;
    top: 0;
    min-width: 0;
    min-height: 24px;
    padding: 2px 5px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #97908b;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transform: translateX(-50%);
}
/* 两端标签避免被容器裁切 */
.video-duration-presets button.is-first {
    transform: translateX(0);
}
.video-duration-presets button.is-last {
    transform: translateX(-100%);
}
.video-duration-presets button.is-first.is-last {
    transform: translateX(-50%);
}
.video-duration-presets button:hover { background: #f4f2f0; color: #48423e; }
.video-duration-presets button.is-selected { background: var(--video-accent-soft); color: #b63f2f; }

.video-resolution-control {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    border-radius: 8px;
    background: var(--video-soft);
}
.video-resolution-control button {
    min-width: 0;
    min-height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #766f6a;
    cursor: pointer;
}
.video-resolution-control button:hover:not(:disabled) { background: rgba(255, 255, 255, .7); color: #3e3936; }
.video-resolution-control button[aria-checked="true"] {
    border-color: #dcd7d3;
    background: #fff;
    color: var(--video-ink);
    box-shadow: 0 2px 8px rgba(51, 44, 40, .07);
}
.video-resolution-control button:disabled { color: #c5bfba; cursor: not-allowed; }
.video-resolution-control strong { font-size: 11px; font-weight: 750; line-height: 1.25; }
.video-resolution-control small { color: inherit; font-size: 8px; opacity: .78; }

.video-ratio-control {
    display: grid;
    grid-template-columns: repeat(var(--video-ratio-columns, 8), minmax(54px, 1fr));
    gap: 6px;
}
.video-ratio-control button {
    min-width: 0;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 7px;
    border: 1px solid #e3dfdc;
    border-radius: 7px;
    background: #fff;
    color: #79726d;
    cursor: pointer;
    font-size: 9px;
    font-weight: 700;
}
.video-ratio-control button:hover:not(:disabled) { border-color: #c9c2bd; color: #3e3936; }
.video-ratio-control button[aria-checked="true"] {
    border-color: #efaa9e;
    background: var(--video-accent-soft);
    color: #b63f2f;
    box-shadow: 0 2px 7px rgba(180, 67, 49, .08);
}
.video-ratio-control button:disabled { display: none; }
.video-ratio-shape { display: block; flex: 0 0 auto; border: 1.25px solid currentColor; border-radius: 1px; }
.video-ratio-shape.is-auto { width: 15px; height: 10px; border-style: dashed; }
.video-ratio-shape.is-wide { width: 18px; height: 10px; }
.video-ratio-shape.is-tall { width: 8px; height: 15px; }
.video-ratio-shape.is-square { width: 12px; height: 12px; }
.video-ratio-shape.is-landscape { width: 16px; height: 12px; }
.video-ratio-shape.is-portrait { width: 10px; height: 14px; }
.video-ratio-shape.is-photo-wide { width: 17px; height: 11px; }
.video-ratio-shape.is-photo-tall { width: 9px; height: 15px; }

.video-advanced-settings {
    padding-top: 2px;
    border-top: 1px solid #eeeae7;
}
.video-advanced-settings[hidden] { display: none; }
.video-advanced-settings summary {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 1px;
    color: #716a65;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    list-style: none;
}
.video-advanced-settings summary::-webkit-details-marker { display: none; }
.video-advanced-settings summary:hover { color: var(--video-ink); }
.video-advanced-settings summary i { color: #aaa39e; font-size: 8px; transition: transform .18s ease; }
.video-advanced-settings[open] summary i { transform: rotate(180deg); }
.video-preset-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0 2px;
    color: #514b47;
    font-size: 11px;
    font-weight: 700;
}
.video-preset-field select,
.video-extend-field select {
    min-width: 150px;
    height: 34px;
    padding: 5px 30px 5px 9px;
    border: 1px solid #d9d4d0;
    border-radius: 7px;
    outline: 0;
    background: #fff;
    color: #37322f;
    font-size: 11px;
}
.video-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.video-options-hint { display: none; }
.video-extend-fields { padding: 18px; }
.video-extend-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(145px, .6fr) minmax(0, 1fr);
    gap: 18px;
}
.video-extend-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #514b47;
    font-size: 11px;
    font-weight: 700;
}
.video-extend-field > div {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 7px;
    background: #f6f6f5;
    color: #68615c;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
}
.video-extend-field.is-source > div { background: #fff3f0; color: #a63d2e; }

.video-source-dropzone:focus-visible,
.video-mode-option:focus-visible,
.video-resolution-control button:focus-visible,
.video-ratio-control button:focus-visible,
.video-duration-presets button:focus-visible,
.video-exit-extend:focus-visible,
.video-duration-range:focus-visible {
    position: relative;
    z-index: 2;
    outline: 2px solid var(--video-focus);
    outline-offset: 2px;
}

@media (max-width: 720px) {
    .video-source-dropzone { min-height: 92px; padding: 15px; }
    .video-studio-header { align-items: flex-start; flex-wrap: wrap; padding: 13px 14px; }
    .video-studio-heading { flex: 1 1 calc(100% - 48px); }
    .video-config-summary { width: 100%; margin: 0; justify-content: center; }
    .video-exit-extend { position: absolute; top: 13px; right: 14px; }
    .video-studio-body { gap: 21px; padding: 16px 14px; }
    .video-mode-control {
        display: flex;
        grid-template-columns: none !important;
        gap: 6px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .video-mode-control::-webkit-scrollbar { display: none; }
    .video-mode-option { min-width: 166px; flex: 0 0 166px; scroll-snap-align: start; }
    .video-primary-settings { grid-template-columns: 1fr; gap: 21px; }
    .video-ratio-control {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .video-extend-grid { grid-template-columns: 1fr; }
    .video-extend-field select { width: 100%; }
}

@media (max-width: 520px) {
    .video-source-dropzone { gap: 11px; padding: 14px 12px; }
    .video-source-dropzone-icon { width: 38px; height: 38px; flex-basis: 38px; }
    .video-source-dropzone-action { width: 32px; min-height: 32px; justify-content: center; padding: 0; }
    .video-source-dropzone-action span { display: none; }
    .image-preview-container.is-video-source .image-previews {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .video-studio-panel { margin-left: -2px; margin-right: -2px; }
    .video-model-badge { display: none; }
    .video-mode-option { min-width: 156px; flex-basis: 156px; }
    .video-ratio-control { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .video-preset-field { align-items: stretch; flex-direction: column; }
    .video-preset-field select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .video-source-dropzone,
    .video-mode-option,
    .video-advanced-settings summary i,
    .video-credits-badge.is-high-cost { transition: none; animation: none; }
}

/* ========== 发送按钮旁 / 模型列表 积分消耗提示 ========== */
.generate-cost-badge {
    flex: 0 0 auto;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid #f0c28a;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff8ef 0%, #ffefd8 100%);
    color: #9a4d00;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 1px 2px rgba(154, 77, 0, .08);
}
.generate-cost-badge[hidden] { display: none !important; }
.generate-cost-badge i {
    font-size: 12px;
    color: #d97706;
}
.generate-cost-badge .generate-cost-num {
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 900;
}
.generate-cost-badge.is-high-cost {
    border-color: #f0a070;
    background: linear-gradient(180deg, #fff4ee 0%, #ffe3d6 100%);
    color: #b42318;
    box-shadow: 0 0 0 3px rgba(230, 83, 63, .12), 0 1px 2px rgba(180, 35, 24, .08);
}
.generate-cost-badge.is-high-cost i { color: #e6533f; }

.model-cost-tag {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    padding: 2px 7px;
    border: 1px solid #f0c28a;
    border-radius: 999px;
    background: #fff8ef;
    color: #9a4d00;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}
.model-cost-tag.is-high-cost {
    border-color: #f0a070;
    background: #fff1ea;
    color: #b42318;
}
.model-cost-tag i {
    font-size: 9px;
    color: inherit;
}

@media (max-width: 768px) {
    .generate-cost-badge {
        min-height: 30px;
        padding: 0 8px;
        font-size: 11px;
        order: 5;
    }
    .generate-cost-badge .generate-cost-num { font-size: 12px; }
    .send-btn { order: 6; }
}

@media (max-width: 420px) {
    .generate-cost-badge {
        padding: 0 7px;
        gap: 3px;
        font-size: 10px;
    }
    .video-credits-badge { font-size: 10px; padding: 2px 7px; }
}
