.mobile-ai-editor-home {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #ffffff;
    animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-ai-editor-preview {
    position: relative;
    min-height: 235px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
        #101010;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    box-sizing: border-box;
}
.mobile-ai-editor-preview-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 1;
    flex: 0 0 auto;
}
.mobile-ai-editor-preview-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}
.mobile-ai-editor-preview-title i {
    color: #8b5cf6;
}
.mobile-ai-editor-clips-chip {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 900;
}
.mobile-ai-editor-empty-preview {
    position: relative;
    flex: 1 1 auto;
    min-height: 178px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    color: #ffffff;
}
.mobile-ai-editor-empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}
.mobile-ai-editor-empty-title {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 900;
}
.mobile-ai-editor-empty-copy {
    max-width: 260px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
}
.mobile-ai-editor-empty-preview button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    min-height: 38px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}
.mobile-ai-editor-live-preview {
    position: relative;
    flex: 1 1 auto;
    min-height: 190px;
    background: #050505;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mobile-ai-editor-live-preview video,
.mobile-ai-editor-live-preview img {
    width: 100%;
    height: 100%;
    min-height: 142px;
    flex: 1 1 auto;
    object-fit: cover;
    display: block;
    background: #050505;
}
.mobile-ai-editor-live-preview::after {
    display: none;
}
.mobile-ai-editor-video-controls {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    min-height: 50px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 1;
    flex: 0 0 auto;
}
.mobile-ai-editor-video-controls span {
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.mobile-ai-editor-video-controls input[type="range"] {
    flex: 1 1 auto;
    min-width: 0;
    accent-color: #ffffff;
}
.mobile-ai-editor-video-controls button {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    border: 0;
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-ai-editor-timeline {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 2px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.mobile-ai-editor-timeline::-webkit-scrollbar {
    display: none;
}

.mobile-ai-timeline-add {
    flex: 0 0 34px;
    width: 34px;
    height: 42px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mobile-ai-editor-clip {
    position: relative;
    flex: 0 0 112px;
    height: 66px;
    border-radius: 13px;
    overflow: hidden;
    border: 0;
    background: transparent;
}
.mobile-ai-editor-clip.is-active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.mobile-ai-editor-clip-rendered {
    background: transparent;
}
.mobile-ai-editor-clip-rendered::after {
    display: none;
}
.mobile-ai-editor-clip::before {
    display: none;
}
.mobile-ai-editor-clip video,
.mobile-ai-editor-clip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    background: #050505;
}
.mobile-ai-editor-clip span {
    display: none;
}
.mobile-ai-assistant-panel {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: clamp(240px, calc(100dvh - var(--mobile-app-header-height, 116px) - 330px), 430px);
    min-height: 228px;
}
.mobile-ai-assistant-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 18px;
    font-weight: 800;
}
.mobile-ai-assistant-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.mobile-ai-editor-empty-assistant {
    min-height: 44px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    font-weight: 650;
}
.mobile-ai-assistant-scroll {
    display: flex;
    flex: 1 1 auto;
    min-height: 72px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    scrollbar-width: none;
}
.mobile-ai-assistant-scroll::-webkit-scrollbar {
    display: none;
}
.mobile-ai-history-chip {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 800;
}
.mobile-ai-render-chip {
    border: 0;
    background: linear-gradient(135deg, #6d5dfc, #7c3aed);
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(109, 93, 252, 0.28);
}
.mobile-ai-render-chip:disabled {
    opacity: 0.72;
}
.mobile-ai-render-status {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(109, 93, 252, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.28);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 800;
}
.mobile-ai-render-status.is-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}
.mobile-ai-render-result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-ai-render-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 900;
}
.mobile-ai-render-result-head a {
    color: #a78bfa;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}
.mobile-ai-render-result video {
    width: 100%;
    max-height: 320px;
    border-radius: 12px;
    background: #050505;
}
.mobile-ai-editor-chat-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.mobile-ai-editor-chat-row.is-user {
    justify-content: flex-end;
}
.mobile-ai-editor-bubble {
    max-width: 82%;
    border-radius: 18px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.38;
    color: #111827;
}
.mobile-ai-editor-bubble.is-user {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #111827;
    border-bottom-right-radius: 6px;
}
.mobile-ai-editor-bubble.is-ai {
    background: transparent;
    border: 0;
    color: #111827;
    border-bottom-left-radius: 6px;
}
.mobile-ai-editor-suggestions {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.mobile-ai-editor-suggestions::-webkit-scrollbar {
    display: none;
}
.mobile-ai-editor-suggestions button {
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.9);
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 800;
}
.mobile-ai-editor-input-dock {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px 0 16px;
    box-sizing: border-box;
    border-radius: 24px;
    background: #101010;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.mobile-ai-editor-input-dock input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.45);
}
.mobile-ai-editor-input-dock button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
.mobile-ai-editor-input-dock #mobile-ai-image-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.88);
}
.mobile-ai-editor-input-dock #mobile-ai-send-btn {
    border: 0;
    background: #111827;
    box-shadow: none;
    opacity: 1;
    transform: none;
}
[data-theme="light"] .mobile-ai-editor-home,
[data-theme="light-accent"] .mobile-ai-editor-home {
    color: #111111;
}
[data-theme="light"] .mobile-ai-editor-preview,
[data-theme="light-accent"] .mobile-ai-editor-preview {
    border-color: rgba(0, 0, 0, 0.12);
    background:
        radial-gradient(circle at 50% 18%, rgba(109, 93, 252, 0.14), transparent 44%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,245,247,0.96));
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .mobile-ai-editor-preview-title,
[data-theme="light-accent"] .mobile-ai-editor-preview-title,
[data-theme="light"] .mobile-ai-editor-empty-preview,
[data-theme="light-accent"] .mobile-ai-editor-empty-preview {
    color: #111111;
}
[data-theme="light"] .mobile-ai-editor-clips-chip,
[data-theme="light-accent"] .mobile-ai-editor-clips-chip,
[data-theme="light"] .mobile-ai-editor-empty-preview button,
[data-theme="light-accent"] .mobile-ai-editor-empty-preview button,
[data-theme="light"] .mobile-ai-history-chip,
[data-theme="light-accent"] .mobile-ai-history-chip {
    border-color: rgba(0, 0, 0, 0.14);
    background: #ffffff;
    color: #111111;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .mobile-ai-editor-empty-icon,
[data-theme="light-accent"] .mobile-ai-editor-empty-icon {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    color: #111111;
}
[data-theme="light"] .mobile-ai-editor-empty-copy,
[data-theme="light-accent"] .mobile-ai-editor-empty-copy,
[data-theme="light"] .mobile-ai-editor-empty-assistant,
[data-theme="light-accent"] .mobile-ai-editor-empty-assistant {
    color: rgba(0, 0, 0, 0.58);
}
[data-theme="light"] .mobile-ai-editor-clip,
[data-theme="light-accent"] .mobile-ai-editor-clip {
    border-color: rgba(0, 0, 0, 0.18);
    background: #ffffff;
    color: #111111;
}
[data-theme="light"] .mobile-ai-editor-clip::before,
[data-theme="light-accent"] .mobile-ai-editor-clip::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.045), rgba(0,0,0,0.015));
}
[data-theme="light"] .mobile-ai-assistant-panel,
[data-theme="light-accent"] .mobile-ai-assistant-panel {
    border-color: rgba(0, 0, 0, 0.1);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,246,248,0.98));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .mobile-ai-editor-bubble,
[data-theme="light-accent"] .mobile-ai-editor-bubble {
    color: #111111;
}
[data-theme="light"] .mobile-ai-editor-bubble.is-user,
[data-theme="light-accent"] .mobile-ai-editor-bubble.is-user {
    color: #ffffff;
}
[data-theme="light"] .mobile-ai-editor-bubble.is-ai,
[data-theme="light-accent"] .mobile-ai-editor-bubble.is-ai {
    background: rgba(0, 0, 0, 0.055);
    border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .mobile-ai-render-status,
[data-theme="light-accent"] .mobile-ai-render-status {
    color: #21135f;
    background: rgba(109, 93, 252, 0.1);
    border-color: rgba(109, 93, 252, 0.24);
}
[data-theme="light"] .mobile-ai-render-status.is-error,
[data-theme="light-accent"] .mobile-ai-render-status.is-error {
    color: #7f1d1d;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.24);
}
[data-theme="light"] .mobile-ai-render-result,
[data-theme="light-accent"] .mobile-ai-render-result {
    background: rgba(0, 0, 0, 0.035);
    border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .mobile-ai-render-result-head,
[data-theme="light-accent"] .mobile-ai-render-result-head {
    color: #111111;
}
[data-theme="light"] .mobile-ai-editor-input-dock,
[data-theme="light-accent"] .mobile-ai-editor-input-dock {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .mobile-ai-editor-input-dock input::placeholder,
[data-theme="light-accent"] .mobile-ai-editor-input-dock input::placeholder {
    color: rgba(0, 0, 0, 0.45);
    -webkit-text-fill-color: rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .mobile-ai-editor-input-dock #mobile-ai-image-btn,
[data-theme="light-accent"] .mobile-ai-editor-input-dock #mobile-ai-image-btn {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.055);
    color: rgba(0, 0, 0, 0.78);
}

/* Mobile AI editor: compact production surface */
.mobile-ai-editor-home {
    gap: 10px;
    color: #f7f7f5;
}
.mobile-ai-editor-preview {
    min-height: 252px;
    border-radius: 8px;
    padding: 0;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0b0c0e;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}
.mobile-ai-editor-preview-head {
    min-height: 40px;
    padding: 0 10px 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
    box-sizing: border-box;
}
.mobile-ai-editor-preview-title {
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.9);
}
.mobile-ai-editor-preview-title i {
    color: #9ca3af;
    font-size: 12px;
}
.mobile-ai-editor-clips-chip,
.mobile-ai-history-chip {
    min-height: 30px;
    border-radius: 6px;
    padding: 0 10px;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 750;
    box-shadow: none;
}
.mobile-ai-editor-empty-preview {
    min-height: 210px;
    gap: 8px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.92);
}
.mobile-ai-editor-empty-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
}
.mobile-ai-editor-empty-title {
    font-size: 16px;
    font-weight: 820;
}
.mobile-ai-editor-empty-copy {
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
    font-weight: 560;
}
.mobile-ai-editor-empty-preview button {
    min-height: 34px;
    border-radius: 6px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 760;
    box-shadow: none;
}
.mobile-ai-editor-live-preview {
    min-height: 210px;
    border-radius: 0;
    background: #020304;
}
.mobile-ai-editor-live-preview video,
.mobile-ai-editor-live-preview img {
    min-height: 160px;
    object-fit: contain;
    background: #020304;
}
.mobile-ai-editor-video-controls {
    min-height: 42px;
    padding: 0 9px;
    gap: 8px;
    background: #0b0c0e;
    border-color: rgba(255, 255, 255, 0.1);
}
.mobile-ai-editor-video-controls button {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}
.mobile-ai-editor-video-controls span {
    font-size: 11px;
    font-weight: 760;
    color: rgba(255, 255, 255, 0.78);
}
.mobile-ai-editor-video-controls input[type="range"] {
    accent-color: #22d3ee;
}
.mobile-ai-editor-timeline {
    gap: 8px;
    min-height: 62px;
    padding: 8px 10px;
}
.mobile-ai-editor-clip {
    height: 42px;
    border-radius: 6px;
}
.mobile-ai-editor-clip {
    flex-basis: 96px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.14);
    background: #111315;
}
.mobile-ai-editor-clip.is-active {
    border-color: #22d3ee;
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.5);
}
.mobile-ai-editor-clip-rendered {
    border-color: rgba(34, 211, 238, 0.58);
    background: rgba(34, 211, 238, 0.08);
}
.mobile-ai-editor-clip-rendered::after {
    top: 5px;
    right: 5px;
    border-radius: 4px;
    background: rgba(34, 211, 238, 0.92);
    color: #061012;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0;
}
.mobile-ai-editor-clip::before {
    inset: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.035);
}
.mobile-ai-editor-clip video,
.mobile-ai-editor-clip img {
    opacity: 0.88;
}
.mobile-ai-editor-clip span {
    left: 7px;
    bottom: 5px;
    max-width: calc(100% - 14px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 720;
}
.mobile-ai-assistant-panel {
    min-height: 238px;
    max-height: clamp(250px, calc(100dvh - var(--mobile-app-header-height, 116px) - 350px), 440px);
    border-radius: 8px;
    padding: 0;
    gap: 0;
    border-color: rgba(255, 255, 255, 0.1);
    background: #0d0f11;
    box-shadow: none;
    overflow: hidden;
}
.mobile-ai-assistant-head {
    min-height: 38px;
    padding: 0 10px 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.86);
    box-sizing: border-box;
}
.mobile-ai-assistant-scroll {
    gap: 10px;
    min-height: 118px;
    padding: 12px;
}
.mobile-ai-editor-empty-assistant {
    min-height: 72px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.48);
    font-size: 13px;
    font-weight: 560;
    line-height: 1.35;
}
.mobile-ai-editor-chat-row {
    gap: 8px;
}
.mobile-ai-editor-avatar {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.66);
    flex: 0 0 auto;
    font-size: 11px;
}
.mobile-ai-editor-bubble {
    max-width: 88%;
    border-radius: 8px;
    padding: 10px 11px;
    font-size: 13px;
    line-height: 1.38;
}
.mobile-ai-editor-bubble.is-user {
    border-bottom-right-radius: 3px;
    background: #1f2937;
    color: #ffffff;
}
.mobile-ai-editor-bubble.is-ai {
    border-bottom-left-radius: 3px;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
}
.mobile-ai-render-status {
    min-height: 38px;
    border-radius: 6px;
    padding: 8px 10px;
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.24);
    color: rgba(225, 252, 255, 0.92);
    font-size: 12px;
    font-weight: 720;
}
.mobile-ai-render-result {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}
.mobile-ai-editor-input-dock {
    min-height: 52px;
    margin: 0 10px 10px;
    border-radius: 8px;
    padding: 0 7px 0 12px;
    background: #151719;
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow: none;
}
.mobile-ai-editor-input-dock button {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 6px;
}
.mobile-ai-editor-input-dock #mobile-ai-image-btn {
    background: rgba(255, 255, 255, 0.06);
}
.mobile-ai-editor-input-dock #mobile-ai-send-btn {
    background: #22d3ee;
    color: #061012;
    box-shadow: none;
}
[data-theme="light"] .mobile-ai-editor-preview,
[data-theme="light-accent"] .mobile-ai-editor-preview,
[data-theme="light"] .mobile-ai-assistant-panel,
[data-theme="light-accent"] .mobile-ai-assistant-panel {
    border-color: rgba(15, 23, 42, 0.13);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .mobile-ai-editor-preview-head,
[data-theme="light-accent"] .mobile-ai-editor-preview-head,
[data-theme="light"] .mobile-ai-assistant-head,
[data-theme="light-accent"] .mobile-ai-assistant-head {
    border-color: rgba(15, 23, 42, 0.1);
    background: #f8fafc;
    color: #111827;
}
[data-theme="light"] .mobile-ai-editor-preview-title,
[data-theme="light-accent"] .mobile-ai-editor-preview-title {
    color: #111827;
}
[data-theme="light"] .mobile-ai-editor-clips-chip,
[data-theme="light-accent"] .mobile-ai-editor-clips-chip,
[data-theme="light"] .mobile-ai-history-chip,
[data-theme="light-accent"] .mobile-ai-history-chip {
    border-color: rgba(15, 23, 42, 0.14);
    background: #ffffff;
    color: #111827;
    box-shadow: none;
}
[data-theme="light"] .mobile-ai-editor-timeline,
[data-theme="light-accent"] .mobile-ai-editor-timeline {
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .mobile-ai-editor-bubble.is-user,
[data-theme="light-accent"] .mobile-ai-editor-bubble.is-user {
    background: #050505;
    color: #ffffff;
}
[data-theme="light"] .mobile-ai-editor-input-dock,
[data-theme="light-accent"] .mobile-ai-editor-input-dock {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: none;
}

.mobile-ai-edit-controls {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #0d0f11;
    overflow: hidden;
}

[data-theme="light"] .mobile-ai-edit-controls,
[data-theme="light-accent"] .mobile-ai-edit-controls {
    border-color: rgba(15, 23, 42, 0.12);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .mobile-ai-edit-controls,
html[data-theme="light-accent"] .mobile-ai-edit-controls,
body[data-theme="light"] .mobile-ai-edit-controls,
body[data-theme="light-accent"] .mobile-ai-edit-controls {
    border-color: rgba(15, 23, 42, 0.12) !important;
    background: transparent !important;
}

html[data-theme="light"] .mobile-ai-editor-timeline,
html[data-theme="light-accent"] .mobile-ai-editor-timeline,
body[data-theme="light"] .mobile-ai-editor-timeline,
body[data-theme="light-accent"] .mobile-ai-editor-timeline {
    background: transparent !important;
}

html[data-theme="light"] .mobile-ai-timeline-add,
html[data-theme="light-accent"] .mobile-ai-timeline-add,
body[data-theme="light"] .mobile-ai-timeline-add,
body[data-theme="light-accent"] .mobile-ai-timeline-add {
    background: transparent;
    color: rgba(17, 24, 39, 0.86);
}

/* Fixed editor layout: uploaded media must not resize the whole tab. */
.mobile-ai-editor-home {
    height: min(660px, calc(100dvh - 278px));
    min-height: 560px;
    max-height: 660px;
    overflow: hidden;
    display: grid;
    grid-template-rows: minmax(300px, 54%) auto minmax(0, 1fr);
    gap: 10px;
}

.mobile-ai-editor-preview {
    min-height: 0;
    height: 100%;
    max-height: none;
}

.mobile-ai-editor-empty-preview,
.mobile-ai-editor-live-preview {
    min-height: 0;
    height: 100%;
}

.mobile-ai-editor-live-preview video,
.mobile-ai-editor-live-preview img {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mobile-ai-editor-video-controls {
    flex: 0 0 42px;
}

.mobile-ai-edit-controls {
    min-height: 52px;
    max-height: 56px;
}

.mobile-ai-editor-timeline {
    min-height: 44px;
    max-height: 46px;
}

.mobile-ai-assistant-panel {
    min-height: 0;
    max-height: none;
    height: 100%;
}

.mobile-ai-assistant-scroll {
    min-height: 0;
}

@media (max-height: 820px) {
    .mobile-ai-editor-home {
        height: min(620px, calc(100dvh - 248px));
        min-height: 500px;
        grid-template-rows: minmax(270px, 52%) auto minmax(0, 1fr);
    }

    .mobile-ai-edit-controls {
        min-height: 52px;
    }

}

/* Open AI edit surface: remove stacked card chrome. */
.mobile-ai-editor-home {
    gap: 8px;
}

html body.ai-active div#mobile-ai-messages-container {
    padding: 0 0 18px !important;
}

html body.ai-active .mobile-ai-editor-home {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    grid-template-rows: minmax(250px, 46%) auto minmax(0, 1fr) 46px !important;
    gap: 8px !important;
    padding-bottom: 0 !important;
}

html body.ai-active .mobile-ai-assistant-panel {
    min-height: 0 !important;
    padding-bottom: 0 !important;
}

html body.ai-active .mobile-ai-editor-bubble,
html body.ai-active .mobile-ai-editor-bubble.is-user,
html body.ai-active .mobile-ai-editor-bubble.is-ai {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}

html body.ai-active .mobile-ai-editor-bubble.is-ai {
    background: transparent !important;
    border: 0 !important;
}

.mobile-ai-editor-preview {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    width: 100vw;
    margin-left: calc((100% - 100vw) / 2);
    margin-right: calc((100% - 100vw) / 2);
}

.mobile-ai-editor-live-preview {
    border-radius: 0;
    background: #050505;
    position: relative;
    overflow: hidden;
}

.mobile-ai-editor-live-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--mobile-ai-preview-bg);
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.08);
    opacity: 0.72;
    z-index: 0;
}

.mobile-ai-editor-live-preview video,
.mobile-ai-editor-live-preview img {
    position: relative;
    z-index: 1;
}

.mobile-ai-editor-video-controls {
    position: relative;
    z-index: 2;
}

.mobile-ai-editor-empty-preview {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.mobile-ai-edit-controls {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    margin-left: 16px;
    margin-right: 16px;
}

.mobile-ai-editor-timeline {
    padding: 2px 0;
    border: 0;
    background: transparent;
}

html[data-theme="light"] .mobile-ai-editor-clip.is-active,
html[data-theme="light-accent"] .mobile-ai-editor-clip.is-active,
body[data-theme="light"] .mobile-ai-editor-clip.is-active,
body[data-theme="light-accent"] .mobile-ai-editor-clip.is-active {
    box-shadow: inset 0 0 0 2px rgba(17, 24, 39, 0.9);
}

.mobile-ai-assistant-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    margin-left: 16px;
    margin-right: 16px;
    padding: 0;
}

.mobile-ai-assistant-head {
    display: none;
    padding: 0;
    border: 0;
}

.mobile-ai-assistant-scroll {
    padding: 0;
}

.mobile-ai-editor-input-dock {
    margin: 0;
    min-height: 46px;
    border-radius: 0;
    padding: 0;
    gap: 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}


.mobile-ai-editor-input-dock #mobile-ai-image-btn {
    display: none;
}

.mobile-ai-editor-input-dock #mobile-ai-send-btn {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 0;
    border-radius: 999px;
    background: #050505;
    color: #ffffff;
    box-shadow: none;
    opacity: 1;
    transform: none;
}

.mobile-ai-editor-input-dock #mobile-ai-send-btn:disabled {
    background: rgba(17, 24, 39, 0.12);
    color: rgba(17, 24, 39, 0.38);
}

html[data-theme="light"] .mobile-ai-editor-empty-preview,
html[data-theme="light-accent"] .mobile-ai-editor-empty-preview,
body[data-theme="light"] .mobile-ai-editor-empty-preview,
body[data-theme="light-accent"] .mobile-ai-editor-empty-preview {
    border: 0;
    background: transparent;
}

html[data-theme="light"] .mobile-ai-edit-controls,
html[data-theme="light-accent"] .mobile-ai-edit-controls,
body[data-theme="light"] .mobile-ai-edit-controls,
body[data-theme="light-accent"] .mobile-ai-edit-controls,
html[data-theme="light"] .mobile-ai-assistant-panel,
html[data-theme="light-accent"] .mobile-ai-assistant-panel,
body[data-theme="light"] .mobile-ai-assistant-panel,
body[data-theme="light-accent"] .mobile-ai-assistant-panel {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Rebuilt AI editor surface */
html body.ai-active div#mobile-ai-messages-container {
    height: 100% !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

.mobile-ai-editor-root {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(190px, 36%) 50px minmax(0, 1fr);
    gap: 0;
    background: #ffffff;
    color: #111827;
    overflow: hidden;
}

.mobile-ai-stage {
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
}

.mobile-ai-stage .mobile-ai-editor-empty-preview,
.mobile-ai-stage .mobile-ai-editor-live-preview {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.mobile-ai-stage .mobile-ai-editor-live-preview {
    background: #050505;
}

.mobile-ai-stage .mobile-ai-editor-live-preview video,
.mobile-ai-stage .mobile-ai-editor-live-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-ai-strip {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 16px;
    background: #f4f5f7;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    scrollbar-width: none;
}

.mobile-ai-strip::-webkit-scrollbar {
    display: none;
}

.mobile-ai-strip .mobile-ai-timeline-add {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid #111827;
    border-radius: 0;
    background: #ffffff;
    color: #111827;
    font-size: 18px;
}

.mobile-ai-strip .mobile-ai-editor-clip {
    flex: 0 0 104px;
    height: 38px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;
}

.mobile-ai-strip .mobile-ai-editor-clip.is-active {
    box-shadow: inset 0 0 0 2px #111827;
}

.mobile-ai-chat {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f7f8fa;
}

.mobile-ai-thread {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: none;
}

.mobile-ai-thread::-webkit-scrollbar {
    display: none;
}

.mobile-ai-thread .mobile-ai-editor-empty-assistant {
    min-height: auto;
    color: #111827;
    font-size: 14px;
    font-weight: 650;
}

.mobile-ai-thread .mobile-ai-editor-bubble {
    max-width: 84%;
    border-radius: 16px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 14px;
    line-height: 1.35;
}

.mobile-ai-thread .mobile-ai-editor-bubble.is-user {
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
}

.mobile-ai-thread .mobile-ai-editor-bubble.is-ai {
    background: transparent;
    border: 0;
    padding-left: 0;
}

.mobile-ai-composer {
    flex: 0 0 54px;
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 8px;
    background: #f7f8fa;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}


.mobile-ai-composer #mobile-ai-send-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505;
    color: #ffffff;
    box-shadow: none;
}

.mobile-ai-composer #mobile-ai-send-btn:disabled {
    background: #eef0f3;
    color: rgba(17, 24, 39, 0.42);
}

/* Fresh Skills AI editor. Uses new ids/classes so legacy AI input rules cannot touch it. */
html body.ai-active #mobile-ai-messages-container {
    height: calc(100dvh - var(--mobile-app-header-height, 116px) - 104px) !important;
    max-height: calc(100dvh - var(--mobile-app-header-height, 116px) - 104px) !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.skills-ai-root {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(170px, 34%) 46px minmax(0, 1fr) 58px;
    background: #ffffff;
    color: #111827;
    overflow: hidden;
}

body.skills-ai-keyboard-open .skills-ai-root {
    grid-template-rows: minmax(110px, 22%) 42px minmax(0, 1fr) 54px;
}

.skills-ai-preview {
    position: relative;
    min-height: 0;
    background: #ffffff;
    overflow: hidden;
}

.skills-ai-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    text-align: center;
}

.skills-ai-empty-icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #111827;
}

.skills-ai-empty-title {
    font-size: 18px;
    font-weight: 760;
}

.skills-ai-empty-copy {
    max-width: 300px;
    font-size: 13px;
    line-height: 1.3;
}

.skills-ai-empty-add {
    min-height: 40px;
    margin-top: 4px;
    padding: 0 18px;
    border: 1px solid #050505;
    border-radius: 999px;
    background: #050505;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: none;
}

.skills-ai-empty-add i,
.skills-ai-empty-add span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.skills-ai-hook-line {
    margin: 10px 0 0;
    padding: 9px 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    background: #f8fafc;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 850;
}

.skills-ai-ranked-lines {
    margin: 8px 0 0;
    display: grid;
    gap: 5px;
}

.skills-ai-ranked-lines div {
    min-height: 24px;
    padding: 5px 8px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: #ffffff;
    color: rgba(17, 24, 39, 0.78);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.78);
    font-size: 11px;
    line-height: 14px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skills-ai-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    display: block;
}

.skills-ai-timeline {
    height: 46px;
    max-height: 46px;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px;
    background: #f4f5f7;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.skills-ai-timeline::-webkit-scrollbar {
    display: none;
}

.skills-ai-add {
    width: 38px;
    height: 38px;
    min-width: 38px;
    max-width: 38px;
    min-height: 38px;
    max-height: 38px;
    flex: 0 0 38px;
    box-sizing: border-box;
    border: 1px solid #111827;
    border-radius: 0;
    background: #ffffff;
    color: #111827;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-ai-clear {
    width: 38px;
    height: 38px;
    min-width: 38px;
    max-width: 38px;
    min-height: 38px;
    max-height: 38px;
    flex: 0 0 38px;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 0;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-ai-thumb {
    position: relative;
    width: 96px;
    height: 38px;
    min-width: 96px;
    max-width: 96px;
    min-height: 38px;
    max-height: 38px;
    flex: 0 0 96px;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;
    scroll-snap-align: start;
    transform: translateZ(0);
    contain: layout paint;
}

.skills-ai-study-status {
    min-height: 20px;
    padding: 3px 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: rgba(17, 24, 39, 0.58);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.58);
    font-size: 10px;
    line-height: 14px;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.skills-ai-background-render {
    width: fit-content;
    max-width: calc(100% - 24px);
    margin: 4px 0 10px;
    padding: 7px 10px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: #ffffff;
    color: rgba(17, 24, 39, 0.72);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.72);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    line-height: 14px;
    font-weight: 850;
}

.skills-ai-background-render span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #111827;
    box-shadow: 0 0 0 0 rgba(17, 24, 39, 0.25);
    animation: skills-ai-render-pulse 1.4s ease-in-out infinite;
}

.skills-ai-background-render em {
    color: rgba(17, 24, 39, 0.42);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.42);
    font-style: normal;
    font-size: 9px;
    font-weight: 800;
}

.skills-ai-toast {
    position: fixed;
    left: 50%;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    z-index: 10050;
    max-width: min(320px, calc(100vw - 36px));
    padding: 11px 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: #111827;
    color: #fff;
    -webkit-text-fill-color: #fff;
    font-size: 13px;
    line-height: 16px;
    font-weight: 850;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
}

.skills-ai-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.skills-ai-toast.is-error {
    background: #7f1d1d;
}

.mobile-ai-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-ai-library-ready-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef3f23;
    color: #fff;
    -webkit-text-fill-color: #fff;
    font-size: 10px;
    line-height: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

@keyframes skills-ai-render-pulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.85);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.skills-ai-thumb.is-active {
    border-color: #111827;
    outline: 2px solid #111827;
    outline-offset: -3px;
}

.skills-ai-thumb.is-loading video,
.skills-ai-thumb.is-loading img {
    opacity: 0.44;
}

.skills-ai-thumb-loader {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    animation: skillsAiSpin 0.75s linear infinite;
    pointer-events: none;
}

@keyframes skillsAiSpin {
    to {
        transform: rotate(360deg);
    }
}

.skills-ai-thumb video,
.skills-ai-thumb img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.skills-ai-thumb-placeholder {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: rgba(17, 24, 39, 0.58);
    font-size: 15px;
    pointer-events: none;
}

.skills-ai-thumb-badge {
    position: absolute;
    left: 4px;
    bottom: 3px;
    max-width: calc(100% - 8px);
    height: 14px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: 9px;
    line-height: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    box-sizing: border-box;
}

.skills-ai-thumb-analysis {
    position: absolute;
    right: 4px;
    top: 3px;
    max-width: calc(100% - 8px);
    height: 13px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 8px;
    line-height: 13px;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    box-sizing: border-box;
}

.skills-ai-thumb.is-analysis-watching .skills-ai-thumb-analysis,
.skills-ai-thumb.is-analysis-queued .skills-ai-thumb-analysis {
    background: rgba(15, 23, 42, 0.76);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.skills-ai-thumb.is-analysis-ready .skills-ai-thumb-analysis {
    background: rgba(20, 184, 166, 0.9);
    color: #07111f;
    -webkit-text-fill-color: #07111f;
}

.skills-ai-thumb.is-analysis-failed .skills-ai-thumb-analysis {
    background: rgba(254, 226, 226, 0.94);
    color: #7f1d1d;
    -webkit-text-fill-color: #7f1d1d;
}

.skills-ai-thread {
    min-height: 0;
    overflow-y: auto;
    background: #f7f8fa;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: none;
    scroll-padding-bottom: 14px;
}

.skills-ai-thread::-webkit-scrollbar {
    display: none;
}

.skills-ai-presets {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 8px 16px 0;
    background: #f7f8fa;
    scrollbar-width: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.skills-ai-presets::-webkit-scrollbar {
    display: none;
}

.skills-ai-preset {
    flex: 0 0 auto;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, 0.18);
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 12px;
    font-weight: 900;
    box-shadow: none;
}

.skills-ai-preset.is-active {
    background: #f04e32;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border-color: #111827;
    box-shadow:
        0 0 0 2px #ffffff,
        0 0 0 4px #111827,
        0 8px 18px rgba(240, 78, 50, 0.22);
}

.skills-ai-text-directions {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 7px 16px 0;
    background: #f7f8fa;
    scrollbar-width: none;
}

.skills-ai-text-directions::-webkit-scrollbar {
    display: none;
}

.skills-ai-text-chip {
    flex: 0 0 auto;
    height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: rgba(17, 24, 39, 0.78);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.78);
    font-size: 11px;
    font-weight: 900;
    box-shadow: none;
}

.skills-ai-text-chip.is-active {
    background: #050505;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border-color: #111827;
}

.skills-ai-text-chip.is-log {
    margin-left: auto;
}

.skills-ai-empty-thread {
    color: #111827;
    font-size: 14px;
    font-weight: 650;
}

.skills-ai-msg {
    max-width: 86%;
    width: fit-content;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 14px;
    line-height: 1.35;
}

.skills-ai-msg.is-user {
    align-self: flex-end;
}

.skills-ai-msg.is-ai {
    align-self: flex-start;
    border-color: transparent;
    background: transparent;
    padding-left: 0;
    max-width: 92%;
}

.skills-ai-typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(17, 24, 39, 0.72);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.72);
}

.skills-ai-typing span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #111827;
    opacity: 0.32;
    animation: skillsAiTyping 1s infinite ease-in-out;
}

.skills-ai-typing span:nth-child(2) {
    animation-delay: 0.14s;
}

.skills-ai-typing span:nth-child(3) {
    animation-delay: 0.28s;
}

.skills-ai-typing em {
    margin-left: 5px;
    font-style: normal;
    font-size: 13px;
}

@keyframes skillsAiTyping {
    0%, 80%, 100% {
        opacity: 0.28;
        transform: translateY(0);
    }
    40% {
        opacity: 0.9;
        transform: translateY(-2px);
    }
}

.skills-ai-plan-card {
    align-self: stretch;
    margin-top: 2px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
}

.skills-ai-plan-title {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.skills-ai-plan-preview {
    display: grid;
    gap: 7px;
    margin: 0 0 10px;
    padding: 10px;
    border-radius: 12px;
    background: #f7f8fa;
}

.skills-ai-plan-preview div {
    display: grid;
    gap: 2px;
}

.skills-ai-plan-preview span {
    color: rgba(17, 24, 39, 0.5);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.5);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.skills-ai-plan-preview strong {
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 14px;
    line-height: 1.18;
    font-weight: 900;
}

.skills-ai-audit-card {
    border-style: dashed;
}

.skills-ai-audit-row {
    display: grid;
    gap: 5px;
    padding: 9px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 12px;
    line-height: 1.25;
}

.skills-ai-audit-row:first-of-type {
    border-top: 0;
}

.skills-ai-audit-meta {
    color: rgba(17, 24, 39, 0.5);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.5);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.skills-ai-audit-row .is-rejected {
    color: #991b1b;
    -webkit-text-fill-color: #991b1b;
}

.skills-ai-audit-empty {
    color: rgba(17, 24, 39, 0.58);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.58);
    font-size: 12px;
}

.skills-ai-plan-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.skills-ai-render-error {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
    -webkit-text-fill-color: #991b1b;
    font-size: 12px;
    line-height: 1.3;
    word-break: break-word;
}

.skills-ai-credit-notice {
    border-color: rgba(248, 75, 45, 0.24);
    background: rgba(248, 75, 45, 0.05);
}

.skills-ai-approve {
    width: 100%;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #050505;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.skills-ai-approve:disabled {
    background: #eef0f3;
    color: rgba(17, 24, 39, 0.62);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.62);
}

.skills-ai-secondary {
    width: 100%;
    height: 38px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.skills-ai-composer {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 11px;
    margin: 0;
    background: #f7f8fa;
    border: 0;
    border-top: 0;
    box-shadow: none;
    box-sizing: border-box;
}

body.skills-ai-keyboard-open .skills-ai-composer {
    min-height: 54px;
    padding-top: 5px;
    padding-bottom: 9px;
}

html body.ai-active #skills-ai-global-composer,
html body.ai-active #skills-ai-global-composer * {
    box-sizing: border-box;
}

html body.ai-active #skills-ai-global-input {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.16) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    font-size: 14px !important;
    line-height: 40px !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: inset 0 0 0 1000px #ffffff !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

html body.ai-active #skills-ai-global-input::placeholder {
    color: rgba(17, 24, 39, 0.48) !important;
    -webkit-text-fill-color: rgba(17, 24, 39, 0.48) !important;
    opacity: 1 !important;
}

html body.ai-active #skills-ai-global-send {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #eef0f3 !important;
    color: #111827 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    padding: 0 !important;
}

html body.ai-active #skills-ai-global-send:disabled {
    background: #eef0f3 !important;
    color: rgba(17, 24, 39, 0.42) !important;
}

.mobile-ai-surface {
    min-height: 100%;
    padding: 18px 16px 92px;
    box-sizing: border-box;
    background: #f7f8fa;
    color: #111827;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-ai-surface-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.mobile-ai-surface-kicker {
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(17, 24, 39, 0.52);
}

.mobile-ai-surface-head h2 {
    margin: 4px 0 0;
    color: #111827;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0;
}

.mobile-ai-surface-head button {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.mobile-ai-surface-loading,
.mobile-ai-surface-empty {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(17, 24, 39, 0.62);
    text-align: center;
}

.mobile-ai-surface-empty i {
    font-size: 24px;
    color: #111827;
}

.mobile-ai-surface-empty strong {
    color: #111827;
    font-size: 18px;
}

.mobile-ai-surface-empty span {
    max-width: 260px;
    font-size: 13px;
    line-height: 1.35;
}

.mobile-ai-create-quote {
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.mobile-ai-create-quote.is-warning {
    border-color: rgba(248, 75, 45, 0.32);
    background: rgba(248, 75, 45, 0.06);
}

.mobile-ai-create-quote span,
.mobile-ai-create-quote strong,
.mobile-ai-create-quote p {
    display: block;
}

.mobile-ai-create-quote span {
    color: rgba(17, 24, 39, 0.52);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-ai-create-quote strong {
    margin-top: 9px;
    color: #111827;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
}

.mobile-ai-create-quote p {
    margin: 8px 0 0;
    color: rgba(17, 24, 39, 0.58);
    font-size: 12px;
    line-height: 1.32;
    font-weight: 720;
}

.mobile-ai-create-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.mobile-ai-create-actions button {
    min-height: 112px;
    padding: 14px 12px;
    border: 1px solid rgba(15, 23, 42, 0.11);
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    gap: 14px;
}

.mobile-ai-create-actions button i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    color: #111827;
    -webkit-text-fill-color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.mobile-ai-create-actions button span {
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 900;
}

.mobile-ai-create-actions button.is-disabled {
    opacity: 0.48;
}

.mobile-ai-create-note {
    margin-top: 14px;
    color: rgba(17, 24, 39, 0.62);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 760;
}

.mobile-ai-skills-intro {
    color: rgba(15, 23, 42, 0.66);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.mobile-ai-current-tool {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 14px;
    background: #ecfdf5;
    color: #047857;
    -webkit-text-fill-color: #047857;
    font-size: 12px;
    font-weight: 800;
}

.mobile-ai-current-tool span {
    opacity: 0.72;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
}

.mobile-ai-current-tool strong {
    font-size: 13px;
}

.mobile-ai-skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.mobile-ai-skill-card {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    padding: 13px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    text-align: left;
}

.mobile-ai-skill-card.is-active {
    border-color: rgba(16, 185, 129, 0.72);
    background: linear-gradient(135deg, #f0fdf8 0%, #ffffff 72%);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.16);
}

.mobile-ai-skill-card.is-active .mobile-ai-skill-icon {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.mobile-ai-skill-card.is-active .mobile-ai-skill-status {
    border-color: rgba(16, 185, 129, 0.42);
    background: #d1fae5;
    color: #047857;
    -webkit-text-fill-color: #047857;
}

.mobile-ai-skill-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f4f6f8;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #111827;
    -webkit-text-fill-color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.mobile-ai-skill-icon.is-large {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 22px;
}

.mobile-ai-skill-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.mobile-ai-skill-copy strong,
.mobile-ai-skill-copy small {
    display: block;
    color: #111827;
    -webkit-text-fill-color: #111827;
}

.mobile-ai-skill-copy strong {
    font-size: 14px;
    font-weight: 950;
    line-height: 1.1;
}

.mobile-ai-skill-copy small {
    color: rgba(15, 23, 42, 0.62);
    -webkit-text-fill-color: rgba(15, 23, 42, 0.62);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
}

.mobile-ai-skill-status {
    min-width: 48px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    padding: 6px 9px;
    background: #f8fafc;
    color: rgba(15, 23, 42, 0.72);
    -webkit-text-fill-color: rgba(15, 23, 42, 0.72);
    font-size: 10px;
    font-weight: 950;
    text-align: center;
}

.mobile-ai-skill-detail {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 20px;
    background: #ffffff;
    padding: 18px;
    display: grid;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.mobile-ai-skill-detail strong {
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.1;
}

.mobile-ai-skill-detail p {
    margin: 0;
    color: rgba(15, 23, 42, 0.66);
    -webkit-text-fill-color: rgba(15, 23, 42, 0.66);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.mobile-ai-skill-detail button {
    width: 100%;
    border: 1px solid #050505;
    border-radius: 999px;
    background: #050505;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 950;
}

.mobile-ai-surface.is-skill-workspace {
    height: 100%;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    background: #f7f8fa;
}

.mobile-ai-skill-workspace {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(260px, 46%) minmax(0, auto) minmax(0, 1fr) 64px;
    background: #f7f8fa;
    color: #111827;
}

.mobile-ai-skill-workspace.is-web-chat {
    grid-template-rows: minmax(0, 1fr) 64px;
}

.mobile-ai-skill-workspace.is-ask-chat,
.mobile-ai-surface.is-skill-workspace:has(.mobile-ai-skill-workspace.is-ask-chat),
.mobile-ai-skill-workspace.is-ask-chat .mobile-ai-skill-thread,
.mobile-ai-skill-workspace.is-ask-chat .mobile-ai-skill-composer {
    background: #ffffff;
}

.mobile-ai-skill-workspace-head {
    min-height: 50px;
    padding: 6px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-ai-skill-workspace-head button {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
}

.mobile-ai-skill-workspace-head div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.mobile-ai-skill-workspace-head span {
    color: rgba(15, 23, 42, 0.52);
    -webkit-text-fill-color: rgba(15, 23, 42, 0.52);
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.mobile-ai-skill-workspace-head strong {
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.1;
}

.mobile-ai-skill-preview {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
}

.mobile-ai-skill-preview-empty {
    height: 100%;
    min-height: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
}

.mobile-ai-skill-preview-empty strong {
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.1;
}

.mobile-ai-skill-preview-empty p {
    max-width: 320px;
    margin: 0;
    color: rgba(15, 23, 42, 0.62);
    -webkit-text-fill-color: rgba(15, 23, 42, 0.62);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.mobile-ai-skill-preview-empty.is-codemea {
    justify-content: center;
    gap: 14px;
}

.mobile-ai-skill-preview-empty.is-image-skill {
    justify-content: center;
    gap: 14px;
}

.mobile-ai-skill-preview-empty.is-web-skill {
    justify-content: center;
    gap: 14px;
}

.mobile-ai-skill-preview-empty.is-codemea strong {
    font-size: 25px;
}

.mobile-ai-skill-preview-empty.is-image-skill strong {
    font-size: 25px;
}

.mobile-ai-skill-preview-empty.is-web-skill strong {
    font-size: 25px;
}

.mobile-ai-codemea-examples {
    width: min(360px, 100%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.mobile-ai-image-examples {
    width: min(360px, 100%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.mobile-ai-web-examples {
    width: min(360px, 100%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.mobile-ai-codemea-examples button {
    min-height: 34px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.mobile-ai-image-examples button {
    min-height: 34px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.mobile-ai-web-examples button {
    min-height: 34px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.mobile-ai-skill-preview-empty.is-building strong {
    font-size: 22px;
}

.mobile-ai-skill-preview-empty.is-building {
    gap: 13px;
}

.mobile-ai-build-orbit {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 999px;
    background: #f4f6f8;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #111827;
    -webkit-text-fill-color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    overflow: hidden;
}

.mobile-ai-build-orbit::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0));
    animation: mobileAiBuildSpin 1.2s linear infinite;
}

.mobile-ai-build-orbit span {
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    background: #f7f8fa;
    z-index: 1;
}

.mobile-ai-build-orbit i {
    position: relative;
    z-index: 2;
}

.mobile-ai-build-progress {
    width: min(280px, 76%);
    height: 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.mobile-ai-build-progress span {
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: #111827;
    display: block;
    animation: mobileAiBuildSlide 1.45s ease-in-out infinite;
}

.mobile-ai-build-steps {
    width: min(320px, 86%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-ai-build-steps span {
    min-height: 32px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: #ffffff;
    color: rgba(17, 24, 39, 0.42);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.42);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    animation: mobileAiBuildStep 2.8s ease-in-out infinite;
    animation-delay: calc(var(--step-index) * 0.42s);
}

@keyframes mobileAiBuildSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes mobileAiBuildSlide {
    0% {
        transform: translateX(-105%);
    }
    50% {
        transform: translateX(70%);
    }
    100% {
        transform: translateX(240%);
    }
}

@keyframes mobileAiBuildStep {
    0%,
    100% {
        border-color: rgba(15, 23, 42, 0.1);
        color: rgba(17, 24, 39, 0.42);
        -webkit-text-fill-color: rgba(17, 24, 39, 0.42);
        transform: translateY(0);
    }
    35% {
        border-color: #111827;
        color: #111827;
        -webkit-text-fill-color: #111827;
        transform: translateY(-1px);
    }
}

.mobile-ai-code-preview {
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
}

.mobile-ai-code-preview iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    display: block;
    background: #ffffff;
}

.mobile-ai-skill-preview-actions {
    position: absolute;
    right: 14px;
    bottom: 12px;
    z-index: 2;
}

.mobile-ai-skill-preview-actions button {
    border: 1px solid #050505;
    border-radius: 999px;
    background: #050505;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 950;
}


.mobile-ai-skill-preview-actions.is-code-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-ai-skill-preview-actions .mobile-ai-code-fullscreen-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
}

body.mobile-ai-code-fullscreen-open {
    overflow: hidden !important;
    touch-action: none;
}

.mobile-ai-code-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    width: 100vw;
    height: 100dvh;
    background: #050505;
    overflow: hidden;
}

.mobile-ai-code-fullscreen-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #ffffff;
}

.mobile-ai-code-fullscreen-close {
    position: fixed;
    z-index: 2147483001;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(8, 10, 15, 0.72);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.mobile-ai-code-fullscreen-close {
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    left: 12px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}


.mobile-ai-skill-image-preview {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    background: #ffffff;
}

.mobile-ai-byte-draft-preview {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #ffffff;
    overflow: hidden;
}

.mobile-ai-byte-draft-iframe {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
    display: block;
    background: #ffffff;
}

.mobile-ai-generated-image-preview {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    background: #ffffff;
    display: block;
}

.mobile-ai-image-preview-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #ffffff;
}

.mobile-ai-preview-fullscreen-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 999px;
    background: rgba(8, 10, 15, 0.64);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 4;
}

body.mobile-ai-image-fullscreen-open {
    overflow: hidden !important;
    touch-action: none;
}

.mobile-ai-image-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    width: 100vw;
    height: 100dvh;
    background: #050505;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.mobile-ai-image-fullscreen-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.mobile-ai-image-fullscreen-close {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    left: 12px;
    z-index: 2147483001;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(8, 10, 15, 0.72);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.mobile-ai-web-preview {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #ffffff;
    display: grid;
    place-items: stretch;
    overflow: hidden;
}

.mobile-ai-web-iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    display: block;
    background: #ffffff;
}

.mobile-ai-web-source-card {
    height: 100%;
    min-height: 0;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
}

.mobile-ai-web-source-card small {
    color: rgba(17, 24, 39, 0.5);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.5);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0;
}

.mobile-ai-web-source-card strong {
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.05;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-ai-web-source-card p {
    margin: 0;
    color: rgba(17, 24, 39, 0.7);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.7);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-ai-web-source-card a {
    width: max-content;
    max-width: 100%;
    min-height: 38px;
    border: 1px solid #111827;
    border-radius: 999px;
    color: #111827;
    -webkit-text-fill-color: #111827;
    background: #ffffff;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
}

.mobile-ai-byte-draft-unavailable {
    height: 100%;
    min-height: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 15px;
    font-weight: 850;
}

.mobile-ai-byte-draft-actions {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 3;
}

.mobile-ai-byte-draft-actions button {
    width: 100%;
    min-height: 42px;
    border: 1px solid #111827;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    -webkit-text-fill-color: #111827;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
    font-size: 13px;
    font-weight: 950;
}

.mobile-ai-web-source-strip {
    min-height: 72px;
    height: 72px;
    min-width: 0;
    padding: 8px 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.mobile-ai-web-source-strip.is-empty {
    align-items: center;
}

.mobile-ai-web-source-placeholder {
    height: 54px;
    padding: 0 14px;
    border: 1px dashed rgba(15, 23, 42, 0.14);
    border-radius: 14px;
    color: rgba(17, 24, 39, 0.42);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.42);
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.mobile-ai-web-source-option {
    flex: 0 0 176px;
    height: 54px;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    display: grid;
    gap: 3px;
    align-content: center;
    text-align: left;
}

.mobile-ai-web-source-option.is-active {
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08);
}

.mobile-ai-web-source-option span {
    min-width: 0;
    color: rgba(17, 24, 39, 0.52);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.52);
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-ai-web-source-option strong {
    min-width: 0;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 11px;
    line-height: 1.12;
    font-weight: 950;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-ai-music-option-strip {
    position: relative;
    min-height: 72px;
    height: 72px;
    min-width: 0;
    padding: 8px 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.mobile-ai-music-option-strip.is-empty {
    align-items: center;
}

.mobile-ai-music-option-placeholder {
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #111827;
    -webkit-text-fill-color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1;
    font-weight: 850;
    white-space: nowrap;
}

.mobile-ai-music-option-placeholder button {
    height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font: inherit;
    font-weight: 900;
    white-space: nowrap;
}

.mobile-ai-music-option {
    flex: 0 0 164px;
    height: 54px;
    min-width: 0;
    padding: 6px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    text-align: left;
}

.mobile-ai-music-option.is-active {
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08);
}

.mobile-ai-music-option img,
.mobile-ai-music-option-art {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    background: #f3f5f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mobile-ai-music-option-art {
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 16px;
}

.mobile-ai-music-option-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mobile-ai-music-option-copy small {
    min-width: 0;
    color: rgba(17, 24, 39, 0.52);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.52);
    font-size: 8px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-ai-music-option-copy strong {
    min-width: 0;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 11px;
    line-height: 1.12;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-ai-music-preview {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: 154px 46px 78px;
    background: #f7f8fa;
    overflow: hidden;
}

.mobile-ai-music-player iframe {
    width: 100%;
    height: 46px;
    max-height: 46px;
    min-height: 0;
    border: 0;
    display: block;
    background: #f7f8fa;
    overflow: hidden;
}

.mobile-ai-music-now {
    min-height: 0;
    height: 154px;
    padding: 16px;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.76)),
        #111827;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.mobile-ai-music-art {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(248, 82, 42, 0.28), rgba(255, 255, 255, 0.08)),
        #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: 34px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.mobile-ai-music-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mobile-ai-music-meta {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.mobile-ai-music-meta small {
    color: rgba(255, 255, 255, 0.62);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.mobile-ai-music-meta strong {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: 19px;
    font-weight: 950;
    line-height: 1.08;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-ai-music-meta button {
    width: max-content;
    max-width: 100%;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 950;
}

.mobile-ai-music-player {
    min-height: 0;
    height: 46px;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mobile-ai-music-player-hint {
    height: 46px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: rgba(17, 24, 39, 0.48);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.48);
    font-size: 12px;
    font-weight: 850;
}

.mobile-ai-music-result-strip {
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 8px;
    height: 78px;
    padding: 8px 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.mobile-ai-music-result {
    flex: 0 0 176px;
    min-width: 0;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 2px 8px;
    align-items: center;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: #ffffff;
    padding: 7px;
    color: #111827;
    -webkit-text-fill-color: #111827;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    text-align: left;
}

.mobile-ai-music-result.is-active {
    border-color: #111827;
}

.mobile-ai-music-result img,
.mobile-ai-music-result > span {
    grid-row: 1 / span 2;
    width: 54px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f3f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-ai-music-result strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 11px;
    font-weight: 950;
    line-height: 1.05;
}

.mobile-ai-music-result small {
    color: rgba(17, 24, 39, 0.52);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.52);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-ai-skill-result-card {
    margin: 14px;
    align-self: center;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.mobile-ai-skill-result-card strong {
    display: block;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.15;
}

.mobile-ai-skill-result-card p {
    margin: 8px 0 0;
    color: rgba(15, 23, 42, 0.68);
    -webkit-text-fill-color: rgba(15, 23, 42, 0.68);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    white-space: pre-wrap;
}

.mobile-ai-skill-thread {
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-ai-skill-workspace.is-web-chat .mobile-ai-skill-thread {
    /* Keep the last reply clear of the composer when the keyboard is open. */
    padding: 18px 16px 112px;
}

.mobile-ai-skill-thread-empty {
    margin-top: auto;
    color: rgba(15, 23, 42, 0.48);
    -webkit-text-fill-color: rgba(15, 23, 42, 0.48);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.mobile-ai-skill-msg {
    max-width: 86%;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    white-space: pre-wrap;
}

.mobile-ai-skill-msg.is-user {
    align-self: flex-end;
    width: fit-content;
    min-width: 0;
    max-width: min(82%, 310px);
    margin-left: auto;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 20px 20px 6px 20px;
    background: #eef0f3;
    padding: 11px 14px;
    text-align: left;
    overflow-wrap: anywhere;
}

.mobile-ai-skill-msg.is-ai {
    align-self: flex-start;
}

.mobile-ai-skill-msg.is-typing {
    width: 58px;
    height: 32px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.mobile-ai-skill-msg.is-typing span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.44);
    animation: mobileAiTypingDot 1s ease-in-out infinite;
}

.mobile-ai-skill-msg.is-typing span:nth-child(2) {
    animation-delay: 0.14s;
}

.mobile-ai-skill-msg.is-typing span:nth-child(3) {
    animation-delay: 0.28s;
}

.mobile-ai-web-answer,
.mobile-ai-ask-answer {
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 20px;
    background: #ffffff;
    padding: 16px;
    color: #111827;
    -webkit-text-fill-color: #111827;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    display: grid;
    gap: 14px;
}

.mobile-ai-web-answer-head,
.mobile-ai-ask-answer-head {
    display: grid;
    gap: 5px;
}

.mobile-ai-web-answer-head span,
.mobile-ai-ask-answer-head span {
    color: rgba(17, 24, 39, 0.46);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.46);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.mobile-ai-web-answer-head strong,
.mobile-ai-ask-answer-head strong {
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 21px;
    line-height: 1.08;
    font-weight: 950;
}

.mobile-ai-web-answer-points,
.mobile-ai-ask-answer-points {
    display: grid;
    gap: 10px;
}

.mobile-ai-web-answer-points p,
.mobile-ai-ask-answer-points p {
    margin: 0;
    color: rgba(17, 24, 39, 0.82);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.82);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.mobile-ai-web-answer-points p + p,
.mobile-ai-ask-answer-points p + p {
    padding-top: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.mobile-ai-ask-answer-points p.is-heading {
    padding-top: 14px;
    color: rgba(17, 24, 39, 0.48);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.48);
    font-size: 10px;
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mobile-ai-ask-answer-points p.is-heading:first-child {
    padding-top: 0;
    border-top: 0;
}

.mobile-ai-ask-answer-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-ai-ask-guide-cards {
    display: grid;
    gap: 10px;
}

.mobile-ai-ask-guide-card {
    min-width: 0;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 12px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
}

.mobile-ai-ask-guide-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: #050505;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.mobile-ai-ask-guide-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.mobile-ai-ask-guide-copy strong {
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.12;
}

.mobile-ai-ask-guide-copy small {
    color: rgba(17, 24, 39, 0.7);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.7);
    font-size: 13px;
    font-weight: 780;
    line-height: 1.3;
}

.mobile-ai-ask-guide-example,
.mobile-ai-ask-guide-copy em {
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: #ffffff;
    padding: 5px 9px;
    color: rgba(17, 24, 39, 0.72);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.mobile-ai-ask-guide-example {
    cursor: pointer;
    text-align: left;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.mobile-ai-ask-guide-example:active {
    transform: scale(0.98);
}

.mobile-ai-ask-rich-cards {
    display: grid;
    gap: 9px;
}

.mobile-ai-ask-rich-card {
    min-width: 0;
    border: 1px solid rgba(15, 23, 42, 0.11);
    border-radius: 18px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    text-decoration: none;
    padding: 10px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.mobile-ai-ask-rich-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: #f3f4f6;
    color: #111827;
    -webkit-text-fill-color: #111827;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.mobile-ai-ask-rich-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mobile-ai-ask-rich-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.mobile-ai-ask-rich-copy small {
    min-width: 0;
    color: rgba(17, 24, 39, 0.48);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.48);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-ai-ask-rich-copy strong {
    min-width: 0;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.mobile-ai-ask-rich-copy em {
    color: rgba(17, 24, 39, 0.66);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.66);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-ai-ask-answer-cards div {
    min-width: 0;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    background: #f8fafc;
    padding: 10px 12px;
    display: grid;
    gap: 3px;
}

.mobile-ai-ask-answer-cards small {
    color: rgba(17, 24, 39, 0.46);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.46);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.mobile-ai-ask-answer-cards strong {
    min-width: 0;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 16px;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.mobile-ai-web-answer-sources {
    display: grid;
    gap: 8px;
}

.mobile-ai-web-answer-sources small {
    color: rgba(17, 24, 39, 0.46);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.46);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.mobile-ai-web-answer-sources a {
    min-width: 0;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    background: #f8fafc;
    padding: 10px 12px;
    color: #111827;
    -webkit-text-fill-color: #111827;
    text-decoration: none;
    display: grid;
    gap: 3px;
}

.mobile-ai-web-answer-sources a span {
    min-width: 0;
    color: rgba(17, 24, 39, 0.48);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.48);
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-ai-web-answer-sources a strong {
    min-width: 0;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 12px;
    line-height: 1.16;
    font-weight: 950;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes mobileAiTypingDot {
    0%,
    80%,
    100% {
        opacity: 0.32;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.mobile-ai-skill-composer {
    position: relative;
    min-height: 64px;
    padding: 8px 16px 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #f7f8fa;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 10px;
    align-items: center;
}

.mobile-ai-composer-field {
    position: relative;
    min-width: 0;
}

/* iOS can leave the keyboard above the layout viewport. Reserve the visible
   bottom edge explicitly so the active reply never sits underneath it. */
body.mobile-ai-skill-keyboard-open .mobile-ai-skill-thread {
    scroll-padding-bottom: 112px;
    padding-bottom: 132px;
}

body.mobile-ai-skill-keyboard-open .mobile-ai-skill-composer {
    z-index: 3;
}

body.mobile-ai-skill-active[data-mobile-ai-skill="image"] .mobile-ai-skill-composer {
    grid-template-columns: minmax(0, 1fr) 46px 48px;
}

html body.ai-active .mobile-ai-skill-composer input#mobile-ai-skill-input,
.mobile-ai-skill-composer input,
html body.ai-active .mobile-ai-skill-composer textarea#mobile-ai-skill-input,
.mobile-ai-skill-composer textarea {
    width: 100%;
    min-height: 46px;
    max-height: 120px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    padding: 11px 16px;
    font-size: 16px;
    font-weight: 850;
    outline: 0;
    box-shadow: none !important;
    resize: none;
    overflow-y: auto;
    line-height: 1.35;
}

html body.ai-active .mobile-ai-skill-composer input#mobile-ai-skill-input::placeholder,
.mobile-ai-skill-composer input::placeholder,
html body.ai-active .mobile-ai-skill-composer textarea#mobile-ai-skill-input::placeholder,
.mobile-ai-skill-composer textarea::placeholder {
    color: rgba(17, 24, 39, 0.34) !important;
    -webkit-text-fill-color: rgba(17, 24, 39, 0.34) !important;
}

/* Agent is a light conversation surface in every app theme. Keep the
   composer readable without relying on iOS/Safari form-control defaults. */
html body.ai-active .mobile-ai-skill-composer #mobile-ai-skill-input,
html body.ai-active .mobile-ai-skill-composer #mobile-ai-skill-input:focus,
html body.ai-active .mobile-ai-skill-composer #mobile-ai-skill-input:active,
html body.ai-active .mobile-ai-skill-composer #mobile-ai-skill-input:hover,
html[data-theme="dark"] body.ai-active .mobile-ai-skill-composer #mobile-ai-skill-input,
html[data-theme="dark"] body.ai-active .mobile-ai-skill-composer #mobile-ai-skill-input:focus {
    color-scheme: light !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    border-color: rgba(15, 23, 42, 0.16) !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

html body.ai-active .mobile-ai-skill-composer #mobile-ai-skill-input::placeholder,
html[data-theme="dark"] body.ai-active .mobile-ai-skill-composer #mobile-ai-skill-input::placeholder {
    color: rgba(17, 24, 39, 0.34) !important;
    -webkit-text-fill-color: rgba(17, 24, 39, 0.34) !important;
    opacity: 1 !important;
}

.mobile-ai-character-count {
    position: absolute;
    right: 16px;
    bottom: 7px;
    color: rgba(17, 24, 39, 0.4);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.4);
    font-size: 9px;
    font-weight: 800;
    pointer-events: none;
}

.mobile-ai-skill-composer button {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: #050505;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.mobile-ai-skill-reference-btn {
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    background: #ffffff !important;
    background-size: cover !important;
    background-position: center !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    box-shadow: none !important;
    overflow: hidden;
}

.mobile-ai-skill-reference-btn.has-reference {
    border-color: #050505 !important;
}

.mobile-ai-skill-reference-btn.has-reference i {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.26);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    opacity: 0;
}

.mobile-ai-skill-reference-btn.has-reference:active i,
.mobile-ai-skill-reference-btn.has-reference:hover i {
    opacity: 1;
}


body.mobile-ai-skill-active .mobile-ai-surface.is-skill-workspace {
    height: 100% !important;
    min-height: 0 !important;
}

body.mobile-ai-skill-active .mobile-ai-skill-workspace {
    height: 100% !important;
    min-height: 0 !important;
}

body.mobile-ai-skill-active[data-mobile-ai-skill="codemea"] #mobile-ai-messages-container,
body.mobile-ai-skill-active[data-mobile-ai-skill="image"] #mobile-ai-messages-container {
    padding: 0 !important;
    overflow: hidden !important;
}

body.mobile-ai-skill-active[data-mobile-ai-skill="codemea"] .mobile-ai-skill-workspace,
body.mobile-ai-skill-active[data-mobile-ai-skill="image"] .mobile-ai-skill-workspace {
    display: flex !important;
    flex-direction: column !important;
}

body.mobile-ai-skill-active[data-mobile-ai-skill="codemea"] .mobile-ai-skill-preview,
body.mobile-ai-skill-active[data-mobile-ai-skill="image"] .mobile-ai-skill-preview {
    flex: 0 0 clamp(260px, 44%, 390px);
}

body.mobile-ai-skill-active[data-mobile-ai-skill="codemea"] .mobile-ai-skill-strip,
body.mobile-ai-skill-active[data-mobile-ai-skill="image"] .mobile-ai-skill-strip {
    flex: 0 0 auto;
}

body.mobile-ai-skill-active[data-mobile-ai-skill="codemea"] .mobile-ai-skill-thread,
body.mobile-ai-skill-active[data-mobile-ai-skill="image"] .mobile-ai-skill-thread {
    flex: 1 1 auto;
    min-height: 0;
}

body.mobile-ai-skill-active[data-mobile-ai-skill="codemea"] .mobile-ai-skill-composer,
body.mobile-ai-skill-active[data-mobile-ai-skill="image"] .mobile-ai-skill-composer {
    flex: 0 0 64px;
    align-self: stretch;
    margin-top: auto;
}

body.mobile-ai-skill-active[data-mobile-ai-skill="codemea"] .mobile-ai-skill-thread-empty,
body.mobile-ai-skill-active[data-mobile-ai-skill="image"] .mobile-ai-skill-thread-empty {
    margin-top: 0;
}

.mobile-ai-skill-composer button:disabled {
    background: #eef0f3;
    color: rgba(17, 24, 39, 0.4);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.4);
}

.mobile-ai-reference-tray {
    flex: 0 0 auto;
    margin: 0 16px 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #f7f8fa;
    color: #111827;
}

.mobile-ai-reference-tray img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.mobile-ai-reference-tray span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 850;
    color: rgba(17, 24, 39, 0.72);
}

.mobile-ai-reference-tray button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-ai-skill-msg-reference {
    display: block;
    width: min(180px, 52vw);
    max-height: 150px;
    object-fit: cover;
    border-radius: 18px;
    margin: 0 0 8px auto;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.mobile-ai-message-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 12px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid #111827;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 13px;
    font-weight: 950;
}

.mobile-ai-outreach-action {
    display: grid;
    justify-items: start;
    gap: 5px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.mobile-ai-outreach-status {
    color: rgba(17, 24, 39, 0.58);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.58);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mobile-ai-open-mail {
    gap: 8px;
    background: #111827;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.mobile-ai-outreach-action small {
    color: rgba(17, 24, 39, 0.56);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.56);
    font-size: 11px;
    font-weight: 700;
}

.mobile-ai-contact-source {
    display: inline-block;
    margin-top: 5px;
    color: #3157d5;
    -webkit-text-fill-color: #3157d5;
    font-size: 11px;
    font-weight: 850;
    text-decoration: underline;
}

.mobile-ai-contact-review-actions {
    display: inline-flex;
    gap: 6px;
    margin-top: 5px;
}

.mobile-ai-contact-review-actions button {
    min-height: 27px;
    padding: 0 9px;
    border: 1px solid rgba(17, 24, 39, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 10px;
    font-weight: 850;
}

.mobile-ai-library-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobile-ai-library-ready-strip {
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid rgba(239, 63, 35, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 247, 245, 1));
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.mobile-ai-library-ready-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #111827;
}

.mobile-ai-library-ready-head span {
    font-size: 11px;
    line-height: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mobile-ai-library-ready-head strong {
    color: #ef3f23;
    -webkit-text-fill-color: #ef3f23;
    font-size: 12px;
    line-height: 14px;
    font-weight: 900;
}

.mobile-ai-library-ready-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-ai-library-ready-row::-webkit-scrollbar {
    display: none;
}

.mobile-ai-library-ready-item {
    width: 150px;
    min-width: 150px;
    color: #111827;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-ai-library-ready-item img,
.mobile-ai-library-ready-item i {
    width: 150px;
    height: 88px;
    border-radius: 12px;
    background: #111827;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.mobile-ai-library-ready-item span {
    font-size: 12px;
    line-height: 15px;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-ai-library-hero {
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.mobile-ai-library-hero.is-recent-save,
.mobile-ai-library-card.is-recent-save {
    border-color: rgba(5, 5, 5, 0.72);
    box-shadow: 0 0 0 2px rgba(5, 5, 5, 0.08), 0 18px 36px rgba(15, 23, 42, 0.12);
}

.mobile-ai-library-hero-label {
    padding: 12px 14px 0;
    color: rgba(17, 24, 39, 0.52);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.52);
    font-size: 11px;
    line-height: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-ai-library-hero-video {
    width: 100%;
    max-height: 520px;
    aspect-ratio: 9 / 16;
    display: block;
    background: #000000;
    object-fit: contain;
}

.mobile-ai-library-hero-info {
    padding: 13px 14px 15px;
}

.mobile-ai-library-hero-info strong {
    color: #111827;
    -webkit-text-fill-color: #111827;
    display: block;
    font-size: 18px;
    line-height: 22px;
    font-weight: 950;
}

.mobile-ai-library-hero-info span,
.mobile-ai-library-hero-info p {
    margin: 6px 0 0;
    color: rgba(17, 24, 39, 0.58);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.58);
    font-size: 12px;
    line-height: 15px;
    font-weight: 750;
}

.mobile-ai-library-section-label {
    margin: 2px 0 10px;
    color: rgba(17, 24, 39, 0.58);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.58);
    font-size: 11px;
    line-height: 13px;
    font-weight: 900;
    text-transform: uppercase;
}


.mobile-ai-library-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.mobile-ai-library-actions.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-ai-library-actions button {
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(17, 24, 39, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 11px;
    line-height: 13px;
    font-weight: 900;
}

.mobile-ai-library-actions button.is-danger {
    color: #b91c1c;
    -webkit-text-fill-color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.24);
}


.mobile-ai-library-sheet {
    position: fixed;
    inset: 0;
    z-index: 10090;
    display: grid;
    align-items: end;
}

.mobile-ai-library-sheet-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.34);
}

.mobile-ai-library-sheet-panel {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 14px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
    background: #ffffff;
    box-shadow: 0 -20px 44px rgba(15, 23, 42, 0.18);
}

.mobile-ai-library-sheet-head {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-ai-library-sheet-head strong {
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 17px;
    line-height: 20px;
    font-weight: 950;
}

.mobile-ai-library-sheet-head button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
}

.mobile-ai-library-choice-list {
    margin-top: 8px;
    display: grid;
    gap: 10px;
    max-height: min(460px, 58vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-ai-library-choice-list button,
.mobile-ai-library-choice-list a {
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    text-decoration: none;
    text-align: left;
    font-size: 15px;
    line-height: 18px;
    font-weight: 900;
}

.mobile-ai-library-choice-list i {
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 16px;
}

.mobile-ai-library-choice-list span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-ai-library-choice-list button:focus,
.mobile-ai-library-choice-list a:focus {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

.mobile-ai-library-choice-list button:active,
.mobile-ai-library-choice-list a:active {
    background: #f8fafc;
    color: #111827;
    -webkit-text-fill-color: #111827;
}

.mobile-ai-library-choice-list .is-primary,
.mobile-ai-library-choice-list .is-primary:focus,
.mobile-ai-library-choice-list .is-primary:active {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    box-shadow: none;
}

.mobile-ai-library-choice-list .is-primary i,
.mobile-ai-library-choice-list .is-primary span,
.mobile-ai-library-choice-list .is-primary:focus i,
.mobile-ai-library-choice-list .is-primary:focus span,
.mobile-ai-library-choice-list .is-primary:active i,
.mobile-ai-library-choice-list .is-primary:active span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


html body .mobile-ai-library-sheet .mobile-ai-library-choice-list .is-primary,
html body .mobile-ai-library-sheet .mobile-ai-library-choice-list .is-primary:focus,
html body .mobile-ai-library-sheet .mobile-ai-library-choice-list .is-primary:active {
    border-color: #050505 !important;
    background: #050505 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .mobile-ai-library-sheet .mobile-ai-library-choice-list .is-primary *,
html body .mobile-ai-library-sheet .mobile-ai-library-choice-list .is-primary i,
html body .mobile-ai-library-sheet .mobile-ai-library-choice-list .is-primary span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.mobile-ai-library-saved-card {
    margin: 8px 0 12px;
    padding: 16px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 18px;
    background: #f8fafc;
    display: grid;
    gap: 6px;
}

.mobile-ai-library-saved-card span {
    color: rgba(17, 24, 39, 0.55);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.55);
    font-size: 11px;
    line-height: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0;
}

.mobile-ai-library-saved-card strong {
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 22px;
    line-height: 26px;
    font-weight: 950;
}

.mobile-ai-library-new-bloc {
    margin-top: 10px;
    display: grid;
    gap: 12px;
}

.mobile-ai-library-new-bloc label {
    color: rgba(17, 24, 39, 0.62);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.62);
    font-size: 12px;
    line-height: 14px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0;
}

.mobile-ai-library-new-bloc input {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(17, 24, 39, 0.16);
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 17px;
    line-height: 20px;
    font-weight: 900;
}

.mobile-ai-library-new-bloc input::placeholder {
    color: rgba(17, 24, 39, 0.36);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.36);
}

.mobile-ai-library-new-bloc button {
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 52px;
    border: 1px solid #050505;
    border-radius: 999px;
    background: #050505;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: 15px;
    line-height: 18px;
    font-weight: 950;
}

.mobile-ai-library-new-bloc button:focus,
.mobile-ai-library-new-bloc button:active {
    outline: 0;
    background: #050505;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    box-shadow: none;
}


.mobile-ai-library-edit-form {
    margin-top: 10px;
    display: grid;
    gap: 12px;
}


.mobile-ai-library-edit-thumb-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #050505;
    transition: opacity 160ms ease, filter 160ms ease;
}

.mobile-ai-library-edit-thumb-preview.is-loading {
    opacity: 0.62;
    filter: saturate(0.7);
}

.mobile-ai-library-frame-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.mobile-ai-library-frame-buttons button {
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 38px;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 13px;
    line-height: 16px;
    font-weight: 950;
}

.mobile-ai-library-frame-buttons button:focus,
.mobile-ai-library-frame-buttons button:active {
    outline: 0;
    background: #f8fafc;
    color: #111827;
    -webkit-text-fill-color: #111827;
}

.mobile-ai-library-edit-form label {
    color: rgba(17, 24, 39, 0.62);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.62);
    font-size: 12px;
    line-height: 14px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0;
}

.mobile-ai-library-edit-form input,
.mobile-ai-library-edit-form select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(17, 24, 39, 0.16);
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 16px;
    line-height: 20px;
    font-weight: 900;
}

.mobile-ai-library-edit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-ai-library-edit-actions button {
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 50px;
    border: 1px solid rgba(17, 24, 39, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 14px;
    line-height: 17px;
    font-weight: 950;
}

.mobile-ai-library-edit-actions button.is-primary,
.mobile-ai-library-edit-actions button.is-primary:focus,
.mobile-ai-library-edit-actions button.is-primary:active {
    border-color: #050505 !important;
    background: #050505 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.mobile-ai-library-sheet-loading {
    padding: 20px 0 10px;
    color: rgba(17, 24, 39, 0.58);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.58);
    font-size: 14px;
    line-height: 18px;
    font-weight: 800;
}

.mobile-ai-render-viewer {
    position: fixed;
    inset: 0;
    z-index: 10080;
    background: #050505;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.mobile-ai-render-viewer-head {
    min-height: calc(54px + env(safe-area-inset-top, 0px));
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 10px;
    align-items: center;
}

.mobile-ai-render-viewer-head button {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.mobile-ai-render-viewer-head span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 17px;
    font-weight: 900;
}

.mobile-ai-render-viewer video {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #000000;
    object-fit: contain;
}

.mobile-ai-render-viewer-info {
    padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    background: #050505;
}

.mobile-ai-render-viewer-info span {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.68);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 15px;
    font-weight: 750;
}

.mobile-ai-render-viewer .mobile-ai-library-actions button {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.mobile-ai-render-viewer .mobile-ai-library-actions button.is-danger {
    color: #fecaca;
    -webkit-text-fill-color: #fecaca;
    border-color: rgba(248, 113, 113, 0.32);
}

.mobile-ai-render-history-panel {
    margin: 14px 0 0;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
}

.mobile-ai-render-history-head {
    min-height: 44px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mobile-ai-render-history-head div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-ai-render-history-head span {
    color: rgba(17, 24, 39, 0.58);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.58);
    font-size: 11px;
    line-height: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-ai-render-history-head strong {
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 15px;
    line-height: 18px;
    font-weight: 900;
}

.mobile-ai-render-history-list {
    display: flex;
    flex-direction: column;
}

.mobile-ai-render-history-item {
    padding: 12px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.mobile-ai-render-history-item + .mobile-ai-render-history-item {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.mobile-ai-render-history-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-ai-render-history-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.mobile-ai-render-history-title-row strong {
    min-width: 0;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 13px;
    line-height: 16px;
    font-weight: 900;
}

.mobile-ai-render-history-main > span {
    color: rgba(17, 24, 39, 0.48);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.48);
    font-size: 10px;
    line-height: 13px;
    font-weight: 800;
    word-break: break-word;
}

.mobile-ai-render-status {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 10px;
    line-height: 12px;
    font-weight: 900;
}

.mobile-ai-render-status.is-done {
    background: #ecfdf5;
    color: #047857;
    -webkit-text-fill-color: #047857;
}

.mobile-ai-render-status.is-running {
    background: #eff6ff;
    color: #1d4ed8;
    -webkit-text-fill-color: #1d4ed8;
}

.mobile-ai-render-status.is-failed {
    background: #fef2f2;
    color: #b91c1c;
    -webkit-text-fill-color: #b91c1c;
}

.mobile-ai-render-history-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-ai-render-history-actions a,
.mobile-ai-render-history-actions button {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid #111827;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 12px;
    line-height: 14px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-ai-render-error {
    margin-top: 2px;
}

.mobile-ai-render-error summary {
    cursor: pointer;
    color: rgba(17, 24, 39, 0.7);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.7);
    font-size: 11px;
    line-height: 14px;
    font-weight: 900;
}

.mobile-ai-render-error p {
    margin: 6px 0 0;
    padding: 10px;
    border-radius: 10px;
    background: #fef2f2;
    color: #7f1d1d;
    -webkit-text-fill-color: #7f1d1d;
    font-size: 11px;
    line-height: 14px;
    font-weight: 750;
    word-break: break-word;
}

.mobile-ai-render-debug {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.mobile-ai-render-debug summary {
    min-height: 42px;
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
}

.mobile-ai-render-debug summary::-webkit-details-marker {
    display: none;
}

.mobile-ai-render-debug summary span {
    color: rgba(17, 24, 39, 0.5);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.5);
    font-size: 11px;
    line-height: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-ai-render-debug summary strong {
    color: #b91c1c;
    -webkit-text-fill-color: #b91c1c;
    font-size: 11px;
    line-height: 13px;
    font-weight: 900;
}

.mobile-ai-library-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #ffffff;
}

.mobile-ai-library-saved-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #050505;
    -webkit-text-fill-color: #050505;
    font-size: 11px;
    line-height: 13px;
    font-weight: 950;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.mobile-ai-library-video {
    width: 100%;
    max-height: 430px;
    aspect-ratio: 9 / 16;
    display: block;
    background: #000000;
    object-fit: contain;
}

.mobile-ai-library-info {
    padding: 12px 14px 14px;
}

.mobile-ai-library-title {
    color: #111827;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
}

.mobile-ai-library-meta,
.mobile-ai-library-vibe {
    margin-top: 6px;
    color: rgba(17, 24, 39, 0.58);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}


.mobile-ai-pro-hero {
    margin: 0 0 14px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 22px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 16px;
}

.mobile-ai-pro-hero small,
.mobile-ai-pro-hero strong,
.mobile-ai-pro-hero span,
.mobile-ai-pro-hero p {
    display: block;
}

.mobile-ai-pro-hero small {
    color: rgba(17, 24, 39, 0.52);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-ai-pro-hero strong {
    margin-top: 10px;
    color: #111827;
    font-size: 48px;
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: 0;
}

.mobile-ai-pro-hero strong span {
    display: inline;
    color: rgba(17, 24, 39, 0.5);
    font-size: 17px;
    font-weight: 850;
}

.mobile-ai-pro-hero p {
    margin: 12px 0 0;
    color: rgba(17, 24, 39, 0.68);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 760;
}

.mobile-ai-pro-hero button {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
}

.mobile-ai-pro-hero button:disabled {
    background: rgba(17, 24, 39, 0.08);
    color: #111827;
    -webkit-text-fill-color: #111827;
}

.mobile-ai-pro-hero.is-active {
    border-color: rgba(34, 197, 94, 0.32);
    box-shadow: 0 16px 38px rgba(34, 197, 94, 0.09);
}

.mobile-ai-founder-access {
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: #ffffff;
    color: #111827;
}

.mobile-ai-founder-access > small {
    display: block;
    color: rgba(17, 24, 39, 0.5);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mobile-ai-founder-access > strong { display: block; margin-top: 6px; font-size: 17px; font-weight: 950; }
.mobile-ai-founder-access > p { margin: 5px 0 12px; color: rgba(17, 24, 39, .62); font-size: 12px; line-height: 1.35; }
.mobile-ai-founder-access > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.mobile-ai-founder-access input {
    min-width: 0;
    height: 46px;
    padding: 0 13px;
    border: 1px solid rgba(15, 23, 42, .16);
    border-radius: 13px;
    box-sizing: border-box;
    font: 800 14px/1 system-ui, sans-serif;
}
.mobile-ai-founder-access button {
    min-width: 88px;
    height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 13px;
    background: #111827;
    color: #fff;
    -webkit-text-fill-color: #fff;
    font-weight: 900;
}
.mobile-ai-founder-access button:disabled { opacity: .55; }
.mobile-ai-founder-access > em { display: block; min-height: 16px; margin-top: 8px; color: #b42318; font-size: 11px; font-style: normal; font-weight: 800; }

.mobile-ai-pro-included {
    display: grid;
    gap: 10px;
}

.mobile-ai-pro-included div,
.mobile-ai-pro-limits {
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.mobile-ai-pro-included span,
.mobile-ai-pro-limits strong {
    display: block;
    color: #111827;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 900;
}

.mobile-ai-pro-included p {
    margin: 6px 0 0;
    color: rgba(17, 24, 39, 0.58);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 720;
}

.mobile-ai-pro-limits {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.mobile-ai-pro-limits div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.mobile-ai-pro-limits span,
.mobile-ai-pro-limits small {
    font-size: 12px;
    line-height: 1.25;
}

.mobile-ai-pro-limits span {
    color: rgba(17, 24, 39, 0.72);
    font-weight: 850;
}

.mobile-ai-pro-limits small {
    color: rgba(17, 24, 39, 0.52);
    text-align: right;
    font-weight: 720;
}

.mobile-ai-credit-balance {
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: #ffffff;
    color: #111827;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 16px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.mobile-ai-credit-balance span {
    display: block;
    font-size: 44px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.mobile-ai-credit-balance small {
    display: block;
    margin-bottom: 6px;
    color: rgba(17, 24, 39, 0.55);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.mobile-ai-credit-balance p {
    margin: 0;
    color: rgba(17, 24, 39, 0.62);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.mobile-ai-credit-packages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.mobile-ai-credit-pack {
    position: relative;
    min-height: 128px;
    padding: 14px 13px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    text-align: left;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.mobile-ai-credit-pack.is-best {
    border-color: rgba(248, 75, 45, 0.45);
    box-shadow: 0 14px 30px rgba(248, 75, 45, 0.12);
}

.mobile-ai-credit-pack small,
.mobile-ai-credit-pack strong,
.mobile-ai-credit-pack span,
.mobile-ai-credit-pack p,
.mobile-ai-credit-pack b {
    display: block;
}

.mobile-ai-credit-pack small {
    color: rgba(17, 24, 39, 0.5);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-ai-credit-pack strong {
    margin-top: 14px;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.mobile-ai-credit-pack span {
    margin-top: 9px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

.mobile-ai-credit-pack p {
    margin: 5px 0 0;
    color: rgba(17, 24, 39, 0.72);
    font-size: 11px;
    line-height: 1.25;
    font-weight: 850;
}

.mobile-ai-credit-pack b {
    margin-top: 5px;
    color: rgba(17, 24, 39, 0.48);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 750;
}

.mobile-ai-credit-pack em {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(248, 75, 45, 0.11);
    color: #f84b2d;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-ai-credit-custom {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
    align-items: end;
}

.mobile-ai-credit-custom > div {
    min-width: 0;
}

.mobile-ai-credit-custom span,
.mobile-ai-credit-custom strong {
    display: block;
}

.mobile-ai-credit-custom span {
    color: rgba(17, 24, 39, 0.52);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-ai-credit-custom strong {
    margin-top: 8px;
    color: #111827;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 850;
}

.mobile-ai-credit-custom label {
    height: 44px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    box-sizing: border-box;
}

.mobile-ai-credit-custom label b {
    color: rgba(17, 24, 39, 0.62);
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
}

.mobile-ai-credit-custom input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
}

.mobile-ai-credit-custom input::placeholder {
    color: rgba(17, 24, 39, 0.32);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.32);
}

.mobile-ai-credit-custom button {
    grid-column: 1 / -1;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #050505;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.mobile-ai-credit-custom button:disabled {
    background: rgba(15, 23, 42, 0.08);
    color: rgba(17, 24, 39, 0.38);
    -webkit-text-fill-color: rgba(17, 24, 39, 0.38);
}

.mobile-ai-credit-usage {
    margin-top: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.mobile-ai-credit-usage div {
    min-height: 42px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-ai-credit-usage div:last-child {
    border-bottom: 0;
}

.mobile-ai-credit-usage span,
.mobile-ai-credit-usage strong {
    font-size: 12px;
    line-height: 1.2;
}

.mobile-ai-credit-usage span {
    color: rgba(17, 24, 39, 0.7);
    font-weight: 750;
}

.mobile-ai-credit-usage strong {
    color: #111827;
    font-weight: 900;
    white-space: nowrap;
}

.mobile-ai-credit-note {
    margin-top: 14px;
    color: rgba(17, 24, 39, 0.58);
    font-size: 13px;
    line-height: 1.35;
}
