/* Stream Dashboard: reference layout, existing live data and controls. */
html body dialog.sd-wallet-preview.sd-details-mode > header > span { opacity:0; transition:opacity .15s; }
html body dialog.sd-wallet-preview.sd-details-mode.sd-title-scrolled > header > span { opacity:1; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-detail-thumb { width:112px; height:144px; padding:0; position:relative; background:none; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-detail-thumb .sd-wallet-face { width:320px; min-width:320px; height:410px; min-height:410px; margin:0; transform:scale(.35); transform-origin:top left; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-detail-thumb .sd-wallet-face * { font-size:revert; color:var(--wallet-ink) !important; -webkit-text-fill-color:var(--wallet-ink) !important; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-detail-thumb .sd-wallet-face small { font-size:10px; color:var(--wallet-label) !important; -webkit-text-fill-color:var(--wallet-label) !important; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-detail-thumb .sd-wallet-face header img { width:40px; height:40px; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-detail-thumb .sd-wallet-barcode img { width:45%; height:auto; aspect-ratio:1; border-radius:10px; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-detail-thumb .sd-wallet-primary span { font-size:25px; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-detail-thumb .sd-wallet-secondary span { font-size:17px; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-detail-toolbar { display:flex; justify-content:space-between; padding:0 18px 10px; background:none; font-size:12px; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-detail-toolbar *,
html body dialog.sd-wallet-preview.sd-details-mode .sd-wallet-details .sd-detail-note { color:#777780 !important; -webkit-text-fill-color:#777780 !important; font-weight:400 !important; font-size:12px; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-wallet-details [data-add-back] { display:block; width:100%; text-align:left; border-radius:0; padding:16px 0; background:transparent !important; color:#007aff !important; -webkit-text-fill-color:#007aff !important; box-shadow:none; font-size:16px; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-wallet-details [data-add-back]:disabled { opacity:.4; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-wallet-editor { max-width:430px; margin:8px auto !important; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-save-card { width:100%; min-height:48px; border-radius:14px; font-size:16px; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet [data-minimum-form]:not([hidden]) { display:grid; gap:8px; margin-top:16px; padding:16px; border:1px solid #e5e5ea; border-radius:18px; background:#fff; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet [data-minimum-form] label { font-size:14px !important; font-weight:600 !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .sd-price-help { margin:0 0 6px; font-size:12px !important; color:#73737c !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .sd-price-control { display:flex; align-items:center; gap:8px; background:#f5f5f7; border-radius:12px; padding:6px 6px 6px 14px; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .sd-price-control input { min-width:0; width:100%; border:0; background:transparent; box-shadow:none; padding:8px 0; font-size:20px !important; color:#111 !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .sd-price-control button { background:#111 !important; color:#fff !important; -webkit-text-fill-color:#fff !important; border:0; border-radius:9px; padding:11px 18px; font-size:13px !important; box-shadow:none; }
[data-minimum-status]:empty,[data-save-status]:empty { display:none; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .sd-price-control input[data-minimum] { background:transparent !important; -webkit-text-fill-color:#111 !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; }
html body dialog.sd-wallet-preview.sd-details-mode { background:#f2f2f7; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-wallet-details,
html body dialog.sd-wallet-preview.sd-details-mode .sd-wallet-details * { color:#111 !important; -webkit-text-fill-color:#111 !important; font-weight:400 !important; }
html body dialog.sd-wallet-preview.sd-details-mode > header { position:sticky; top:calc(-1 * (env(safe-area-inset-top,0px) + 16px)); z-index:3; margin:-16px -16px 0; padding:16px; background:#f2f2f7cc; backdrop-filter:blur(20px); display:grid; grid-template-columns:44px 1fr auto; gap:12px; }
html body dialog.sd-wallet-preview.sd-details-mode > header > span { grid-column:2; grid-row:1; text-align:center; color:#111 !important; -webkit-text-fill-color:#111 !important; font-size:17px; }
html body dialog.sd-wallet-preview.sd-details-mode > header button { background:#fff !important; color:#111 !important; -webkit-text-fill-color:#111 !important; box-shadow:0 6px 24px #00000008; }
.sd-details-mode [data-done] { grid-row:1; grid-column:1; width:44px; height:44px; padding:0 !important; font-size:32px; border-radius:50% !important; }
.sd-details-mode [data-edit-back] { grid-row:1; grid-column:3; }
.sd-details-mode > [data-details],.sd-details-mode .sd-wallet-editor { display:none !important; }
.sd-details-editing .sd-wallet-editor { display:block !important; }
.sd-details-editing .sd-wallet-editor .sd-swatches,.sd-details-editing .sd-wallet-editor .sd-edit-hint { display:none !important; }
.sd-wallet-preview.sd-details-mode .sd-wallet-details { max-width:430px; margin:auto; }
.sd-wallet-preview.sd-details-mode .sd-detail-hero { background:none; display:block; padding:32px 0 42px; text-align:center; }
.sd-detail-thumb { width:112px; height:82px; border-radius:5px; margin:0 auto 12px; padding:7px; box-sizing:border-box; overflow:hidden; text-align:left; box-shadow:0 4px 14px #0002; }
.sd-detail-thumb img { width:17px; height:17px; vertical-align:middle; border-radius:3px; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-detail-thumb * { color:white !important; -webkit-text-fill-color:white !important; font-size:8px; }
.sd-detail-thumb p { font-size:13px !important; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-detail-hero h2 { font-size:28px; font-weight:700 !important; margin:0 0 4px; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-detail-hero > p,.sd-detail-note,.sd-detail-count { color:#8e8e93 !important; -webkit-text-fill-color:#8e8e93 !important; font-size:13px; }
.sd-wallet-preview.sd-details-mode .sd-detail-group { display:block; background:#fff; border-radius:24px; padding:0 18px; overflow:hidden; }
.sd-detail-row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:15px 0; border-bottom:1px solid #e5e5ea; font-size:16px; line-height:1.4; }
.sd-detail-row:last-child { border-bottom:0; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-detail-value { color:#8e8e93 !important; -webkit-text-fill-color:#8e8e93 !important; text-align:right; }
.sd-detail-row > :last-child { max-width:65%; overflow-wrap:anywhere; }
html body dialog.sd-wallet-preview.sd-details-mode .sd-detail-row a { color:#007aff !important; -webkit-text-fill-color:#007aff !important; }
.sd-detail-long { display:block; }
.sd-detail-long .sd-detail-value { display:block; max-width:100%; text-align:left !important; margin-top:5px; }
.sd-detail-note { padding:12px 18px; line-height:1.5; }
.sd-wallet-field[data-edit] { cursor:pointer; border-radius:6px; outline-offset:5px; }
.sd-wallet-field[data-edit]:hover { background:#ffffff0d; }
.sd-swatches { display:flex; align-items:center; justify-content:center; gap:14px; }
html body dialog.sd-wallet-preview .sd-swatches button { width:30px; height:30px; padding:0; background:var(--swatch) !important; border:2px solid #ffffff55; border-radius:50%; }
.sd-custom-color input { width:32px !important; height:32px !important; padding:0 !important; border-radius:50% !important; }
.sd-edit-hint { text-align:center; opacity:.6; margin:0; }
.sd-wallet-editor { margin:16px auto !important; gap:20px !important; }
.sd-field-sheet { position:fixed; inset:auto 0 0; margin:0 auto; width:100%; max-width:460px; box-sizing:border-box; background:#202023; border:1px solid #444; border-radius:24px 24px 0 0; padding:24px 24px calc(24px + env(safe-area-inset-bottom)); }
.sd-field-sheet::backdrop { background:#0009; }
.sd-field-sheet form,.sd-field-sheet label { display:grid; gap:12px; }
.sd-field-sheet form { gap:20px; }
.sd-field-sheet h3 { margin:0; }
.sd-field-sheet input { box-sizing:border-box; width:100%; background:#303034; border:1px solid #555; padding:14px; border-radius:12px; font-size:16px; }
.sd-field-sheet form > div { display:flex; justify-content:space-between; }
.sd-wallet-secondary small { white-space:nowrap; font-size:10px; }
html body dialog.sd-wallet-preview.sd-wallet-preview .sd-wallet-face * { color:var(--wallet-ink,#fff) !important; -webkit-text-fill-color:var(--wallet-ink,#fff) !important; }
html body dialog.sd-wallet-preview.sd-wallet-preview .sd-wallet-face small { color:var(--wallet-label,#d1d1d6) !important; -webkit-text-fill-color:var(--wallet-label,#d1d1d6) !important; }
.sd-wallet-editor { max-width:430px; margin:32px auto; display:grid; gap:16px; }
.sd-wallet-editor fieldset { border:1px solid #444; border-radius:12px; padding:12px; display:grid; gap:10px; }
.sd-wallet-editor label { display:grid; gap:6px; font-size:13px; }
.sd-wallet-editor input { width:100%; box-sizing:border-box; background:#27272a; border:1px solid #555; border-radius:8px; padding:10px; font-size:16px; }
.sd-wallet-editor input[type=color] { height:48px; }
.sd-wallet-editor p { font-size:13px; line-height:1.5; }
.sd-wallet-secondary > div { flex:1; min-width:0; overflow-wrap:anywhere; }
.sd-wallet-secondary > div:nth-child(2) { text-align:center; }
.sd-wallet-secondary > div:last-child { text-align:right; }
html body dialog.sd-wallet-preview.sd-wallet-preview * { font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',sans-serif !important; color:#fff !important; -webkit-text-fill-color:#fff !important; text-shadow:none !important; letter-spacing:normal !important; }
html body dialog.sd-wallet-preview.sd-wallet-preview small { color:#a1a1aa !important; -webkit-text-fill-color:#a1a1aa !important; font-weight:500 !important; }
html body dialog.sd-wallet-preview.sd-wallet-preview .sd-wallet-field span { font-weight:400 !important; }
html body dialog.sd-wallet-preview.sd-wallet-preview .sd-wallet-details a { color:#64a5ff !important; -webkit-text-fill-color:#64a5ff !important; }
.sd-wallet-mini { display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:12px !important; margin:0 0 12px; background:#fff !important; border:1px solid #e5e7eb !important; border-radius:18px !important; box-shadow:none !important; }
.sd-wallet-mini img { width:48px; height:58px; object-fit:cover; border-radius:9px; }
.sd-wallet-mini span { display:grid; gap:5px; flex:1; min-width:0; }
.sd-wallet-mini > b { margin-left:auto; text-align:right; max-width:90px; line-height:1.5; }
.sd-wallet-mini strong { font-size:13px !important; }
.sd-wallet-mini small { font-size:11px !important; color:#6b7280 !important; }
.sd-wallet-mini b { font-size:11px !important; color:#2f6fe0 !important; }
dialog.sd-wallet-preview { position:fixed; inset:0; width:100%; max-width:none; height:100dvh; max-height:none; margin:0; padding:calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px); box-sizing:border-box; border:0; background:#09090b; color:white; font-family:-apple-system,BlinkMacSystemFont,sans-serif; overflow-y:auto; }
.sd-wallet-preview > header { display:flex; justify-content:space-between; align-items:center; margin-bottom:32px; }
.sd-wallet-preview button { background:#27272a !important; color:white !important; -webkit-text-fill-color:white !important; border:0; border-radius:20px; padding:12px 18px; }
.sd-wallet-preview > button { display:block; margin:24px auto; }
.sd-wallet-face { width:100%; max-width:430px; margin:24px auto 0; border-radius:14px; background:rgb(24,24,27); padding:16px; min-height:390px; aspect-ratio:320 / 410; box-sizing:border-box; color:#fff; display:flex; flex-direction:column; }
.sd-wallet-barcode { display:flex; justify-content:center; margin-top:auto; padding-top:24px; padding-bottom:8px; }
.sd-wallet-barcode img { display:block; width:45%; max-width:180px; aspect-ratio:1; border-radius:10px; background:#fff; }
.sd-wallet-face header { display:flex; align-items:center; gap:8px; }
.sd-wallet-face header img { width:40px; height:40px; object-fit:cover; border-radius:8px; }
.sd-wallet-face header strong { flex:1; font-size:17px; }
.sd-wallet-field { display:flex; flex-direction:column; gap:4px; }
.sd-wallet-field small { color:#a1a1aa; font-size:10px; }
.sd-wallet-field span { color:white; font-size:17px; }
.sd-wallet-primary { margin:24px 0; }
.sd-wallet-primary .sd-wallet-field span { font-size:25px; }
.sd-wallet-secondary { display:flex; justify-content:space-between; gap:14px; }
.sd-wallet-details { max-width:360px; margin:auto; }
.sd-wallet-details h2 { color:white; font-size:24px; }
.sd-wallet-details > div { background:#27272a; border-radius:12px; padding:16px; display:grid; gap:8px; }
.sd-wallet-details small { color:#a1a1aa; }
.sd-wallet-details a { color:#64a5ff; overflow-wrap:anywhere; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-dashboard-streams,
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-activity { margin:0 !important; padding:0 !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-status-card { min-height:0 !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-dashboard-metrics { min-height:0 !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet { --sd-ink:#0c0e14; --sd-muted:#6b7280; font-family:'Plus Jakarta Sans',-apple-system,sans-serif !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-control-panel { background:#fff !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-control-head { padding:16px 20px 14px !important; gap:10px; background:#fff !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-control-head h3 { font-size:23px !important; font-weight:800 !important; letter-spacing:-.045em !important; line-height:1.1 !important; margin:4px 0 0 !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-control-kicker { font-size:9px !important; color:#6b7280 !important; letter-spacing:.18em !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-control-body { padding:0 16px 110px !important; gap:20px !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-status-card { padding:16px 17px !important; border-radius:24px !important; background:radial-gradient(circle at 95% 0,rgba(120,200,255,.12),transparent 50%),linear-gradient(152deg,#17191f,#0a0b0f 62%) !important; box-shadow:none !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-dashboard-metrics { margin-top:18px !important; border:0 !important; background:none !important; border-radius:0 !important; gap:14px !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-dashboard-metrics article { padding:0 !important; border:0 !important; background:none !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-dashboard-metrics strong { font-size:25px !important; font-weight:800 !important; letter-spacing:-.05em !important; line-height:1.1 !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-dashboard-metrics small { margin-top:6px !important; font-size:8px !important; color:rgba(255,255,255,.55) !important; -webkit-text-fill-color:rgba(255,255,255,.55) !important; letter-spacing:.12em !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-dashboard-section-head { padding:0 4px !important; margin-bottom:10px !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-dashboard-section-head strong,
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-activity-head strong { font-size:9px !important; letter-spacing:.18em !important; color:#6b7280 !important; -webkit-text-fill-color:#6b7280 !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-control-inline { background:#f3f4f6 !important; border:0 !important; border-radius:9px !important; box-shadow:none !important; font-size:11px !important; font-weight:700 !important; padding:8px 11px !important; min-height:32px !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .msd-card-intro { font-size:12px !important; font-weight:500 !important; color:#6b7280 !important; -webkit-text-fill-color:#6b7280 !important; margin:0 4px 12px !important; line-height:1.5 !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet [aria-label="Trading card pricing"] { display:flex; gap:4px; padding:4px; border-radius:15px; background:#f3f4f6; flex-wrap:wrap; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet [data-card-mode] { flex:1; border-radius:12px !important; padding:11px !important; font-size:12.5px !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet [data-card-mode][aria-pressed="true"] { background:#0c0e14 !important; color:#fff !important; -webkit-text-fill-color:#fff !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet [data-card-status] { font-size:12px !important; font-weight:600 !important; line-height:1.5 !important; padding:14px 15px !important; margin:12px 0 0 !important; border-radius:18px; border:1px solid rgba(12,14,20,.07); background:#f7f8fa; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-dashboard-empty { border:1px solid rgba(12,14,20,.08) !important; border-radius:16px !important; padding:14px !important; font-size:12px !important; color:#6b7280 !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .msd-replay { border:1px solid rgba(12,14,20,.08) !important; border-radius:16px !important; padding:0 !important; margin-bottom:10px !important; gap:0 !important; grid-template-columns:32% minmax(0,1fr) !important; align-items:stretch !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .msd-replay-tile { width:100% !important; height:100% !important; min-height:110px; align-self:stretch; border:0 !important; border-radius:15px 0 0 15px !important; margin:0 !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .msd-replay-body { padding:14px 12px; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .msd-replay-player:empty { display:none; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .msd-replay-title { font-size:12.5px !important; font-weight:750 !important; letter-spacing:-.025em !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .msd-replay-when { font-size:9px !important; letter-spacing:.02em !important; margin-top:3px !important; color:#9ca3af !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .msd-replay-stats { display:flex !important; gap:5px !important; flex-wrap:wrap; margin-top:8px !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .msd-replay-stats > div { display:flex; gap:4px; align-items:center; padding:4px 6px; border-radius:7px; background:#f3f4f6; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .msd-replay-stats b,
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .msd-replay-stats small { font-size:8px !important; margin:0 !important; line-height:1.3 !important; letter-spacing:0 !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .msd-replay-note { display:none !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .msd-replay-menu summary { font-size:15px; padding:2px 4px; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .mobile-stream-activity-row { font-size:12px !important; padding:12px !important; }

/* Upcoming stream form: same plate as the minimum-price form above it. */
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .sd-schedule-form { display:grid; gap:12px; margin:0 0 4px; padding:16px; border:1px solid #e5e5ea; border-radius:18px; background:#fff; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .sd-schedule-form label { display:grid; gap:6px; margin:0; font-size:11px !important; font-weight:700 !important; letter-spacing:.06em; text-transform:uppercase; color:#73737c !important; -webkit-text-fill-color:#73737c !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .sd-schedule-form input { min-width:0; width:100%; box-sizing:border-box; border:0 !important; border-radius:12px !important; background:#f5f5f7 !important; box-shadow:none !important; padding:12px 14px !important; font-size:16px !important; font-weight:500 !important; letter-spacing:0; text-transform:none; color:#111 !important; -webkit-text-fill-color:#111 !important; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .sd-schedule-form input::placeholder { color:#a1a1aa; -webkit-text-fill-color:#a1a1aa; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .sd-schedule-form button[type="submit"] { background:#111 !important; color:#fff !important; -webkit-text-fill-color:#fff !important; border:0; border-radius:12px; padding:13px 18px; font-size:14px !important; font-weight:700; box-shadow:none; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet .sd-schedule-form button[type="submit"]:disabled { opacity:.55; }
html body #mobile-stream-control-sheet#mobile-stream-control-sheet [data-schedule-status] { margin:10px 4px 0 !important; font-size:12px !important; color:#6b7280 !important; -webkit-text-fill-color:#6b7280 !important; }
/* The shared dashboard's .sd-swatches (stream-owner.css) loads later; keep the editor's own spacing. */
html body dialog.sd-wallet-preview .sd-swatches { justify-content:center; gap:14px; }

.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;
}

html body.ai-active .mobile-ai-skill-composer .mobile-ai-composer-field,
html[data-theme="dark"] body.ai-active .mobile-ai-skill-composer .mobile-ai-composer-field {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color-scheme: light !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;
}

html body.ai-active #mobile-ai-messages-container:has(.mobile-agent-home) {
  padding: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  background: #ffffff !important;
}

html body.ai-active[data-mobile-ai-skill="ask"] #mobile-ai-messages-container,
html body.ai-active.mobile-ai-skill-active[data-mobile-ai-skill="ask"] #mobile-ai-messages-container {
  background: #ffffff !important;
}

.mobile-agent-home {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 18px 16px 24px;
  background: #ffffff;
  color: #0a0b0d;
  -webkit-text-fill-color: #0a0b0d;
}

.mobile-agent-home.is-paywall {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 32px;
}

.mobile-agent-paywall {
  width: 100%;
  box-sizing: border-box;
  padding: 24px 20px 20px;
  border: 1px solid rgba(10, 11, 13, .10);
  border-radius: 28px;
  background: #ffffff;
  color: #0a0b0d;
  box-shadow: 0 20px 52px rgba(19, 25, 35, .10);
}

.mobile-agent-paywall-kicker {
  color: rgba(10, 11, 13, .48);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .14em;
}

.mobile-agent-paywall h1 {
  margin: 10px 0 0;
  font-size: clamp(31px, 9vw, 42px);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 950;
}

.mobile-agent-paywall-lede {
  margin: 14px 0 0;
  color: rgba(10, 11, 13, .62);
  font-size: 14px;
  line-height: 1.42;
  font-weight: 720;
}

.mobile-agent-paywall-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 22px;
}

.mobile-agent-paywall-price strong { font-size: 50px; line-height: .9; letter-spacing: -.05em; font-weight: 950; }
.mobile-agent-paywall-price span { color: rgba(10, 11, 13, .52); font-size: 15px; font-weight: 850; }

.mobile-agent-paywall-list { display: grid; gap: 11px; margin: 22px 0; }
.mobile-agent-paywall-list div { display: flex; align-items: flex-start; gap: 9px; color: rgba(10, 11, 13, .72); font-size: 12px; line-height: 1.3; font-weight: 780; }
.mobile-agent-paywall-list i { margin-top: 2px; color: #16834b; font-size: 11px; }

.mobile-agent-paywall-primary,
.mobile-agent-paywall-secondary { width: 100%; height: 48px; border-radius: 999px; font-size: 14px; font-weight: 900; }
.mobile-agent-paywall-primary { border: 0; background: #050505; color: #fff; -webkit-text-fill-color: #fff; }
.mobile-agent-paywall-secondary { margin-top: 9px; border: 1px solid rgba(10, 11, 13, .14); background: #fff; color: #111; -webkit-text-fill-color: #111; }
.mobile-agent-paywall-note { display: block; margin-top: 13px; color: rgba(10, 11, 13, .42); font-size: 10px; line-height: 1.3; text-align: center; font-weight: 750; }

.mobile-agent-conversation-intro {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 14px;
}

.mobile-agent-update-status {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  box-shadow: none;
}

.mobile-agent-update-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #2ab66a;
  box-shadow: 0 0 0 4px rgba(42, 182, 106, .12);
  animation: mobileAgentPulse 1.4s ease-in-out infinite;
}

.mobile-agent-update-copy { min-width: 0; display: grid; gap: 3px; }
.mobile-agent-update-copy small { color: rgba(10,11,13,.46); font-size: 9px; line-height: 1; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.mobile-agent-update-copy strong { color: #111; font-size: 14px; line-height: 1.15; font-weight: 950; }
.mobile-agent-update-copy em { color: rgba(10,11,13,.56); font-size: 11px; line-height: 1.3; font-style: normal; font-weight: 700; }
.mobile-agent-update-progress { grid-column: 2; height: 3px; margin-top: 5px; overflow: hidden; border-radius: 99px; background: #e8eaed; }
.mobile-agent-update-progress i { display: block; height: 100%; border-radius: inherit; background: #111; transition: width .5s ease; }

.mobile-agent-conversation-intro .mobile-agent-head,
.mobile-agent-conversation-intro .mobile-agent-profile-hero,
.mobile-agent-conversation-intro .mobile-agent-metrics,
.mobile-agent-conversation-intro .mobile-agent-report-card,
.mobile-agent-conversation-intro .mobile-agent-next-move,
.mobile-agent-conversation-intro .mobile-agent-confirm-row,
.mobile-agent-conversation-intro .mobile-agent-opportunity-section,
.mobile-agent-conversation-intro .mobile-agent-compliance,
.mobile-agent-conversation-intro .mobile-agent-evidence {
  margin-top: 0;
  margin-bottom: 0;
}

.mobile-agent-composer {
  position: relative;
  min-height: 66px;
  padding: 8px 16px 10px;
  border-top: 1px solid rgba(10, 11, 13, .08);
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
}

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

.mobile-agent-character-count {
  position: absolute;
  right: 16px;
  bottom: 7px;
  color: rgba(10, 11, 13, .38);
  -webkit-text-fill-color: rgba(10, 11, 13, .38);
  font-size: 9px;
  font-weight: 800;
  pointer-events: none;
}

html[data-theme="light"] body.ai-active #mobile-agent-input,
.mobile-agent-composer #mobile-agent-input {
  width: 100%;
  min-height: 48px;
  max-height: 120px;
  box-sizing: border-box;
  padding: 12px 17px;
  border: 1px solid rgba(10, 11, 13, .14) !important;
  border-radius: 24px;
  outline: 0;
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  font-size: 16px;
  font-weight: 800;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  resize: none;
  overflow-y: auto;
  line-height: 1.35;
}

html[data-theme="light"] body.ai-active #mobile-agent-input::placeholder,
.mobile-agent-composer #mobile-agent-input::placeholder {
  color: rgba(10, 11, 13, .32) !important;
  -webkit-text-fill-color: rgba(10, 11, 13, .32) !important;
}

/* Agent is intentionally a light conversation surface, even when the
   surrounding app/theme is dark. Do not delegate this to platform defaults. */
html body.ai-active .mobile-agent-composer #mobile-agent-input,
html body.ai-active .mobile-agent-composer #mobile-agent-input:focus,
html body.ai-active .mobile-agent-composer #mobile-agent-input:active,
html body.ai-active .mobile-agent-composer #mobile-agent-input:hover,
html[data-theme="dark"] body.ai-active .mobile-agent-composer #mobile-agent-input,
html[data-theme="dark"] body.ai-active .mobile-agent-composer #mobile-agent-input:focus {
  color-scheme: light !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border-color: rgba(10, 11, 13, .14) !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

html body.ai-active .mobile-agent-composer #mobile-agent-input::placeholder,
html[data-theme="dark"] body.ai-active .mobile-agent-composer #mobile-agent-input::placeholder {
  color: rgba(10, 11, 13, .32) !important;
  -webkit-text-fill-color: rgba(10, 11, 13, .32) !important;
  opacity: 1 !important;
}

/* The wrapper is square and a few px taller than the rounded textarea, so a
   white fill here showed as a white slab behind the pill. The textarea
   carries the white; the wrapper stays clear. */
html body.ai-active .mobile-agent-composer .mobile-agent-composer-field,
html[data-theme="dark"] body.ai-active .mobile-agent-composer .mobile-agent-composer-field {
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 24px !important;
  color-scheme: light !important;
}

.mobile-agent-composer button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  -webkit-text-fill-color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.mobile-agent-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.mobile-agent-head > div { min-width: 0; }
.mobile-agent-head span,
.mobile-agent-partial small,
.mobile-agent-profile-top small,
.mobile-agent-report-card small,
.mobile-agent-next-move small {
  display: block;
  color: rgba(10, 11, 13, .5);
  -webkit-text-fill-color: rgba(10, 11, 13, .5);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mobile-agent-head h1 {
  margin: 6px 0 0;
  font-size: clamp(27px, 8vw, 38px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 950;
}

.mobile-agent-profile-hero,
.mobile-agent-empty-card {
  border: 1px solid rgba(10, 11, 13, .09);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(19, 25, 35, .08);
}

.mobile-agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.mobile-agent-partial { margin-top: 14px; padding: 17px; border: 1px solid rgba(10, 11, 13, .08); border-radius: 20px; background: rgba(255,255,255,.76); }
.mobile-agent-partial strong { display: block; margin-top: 7px; font-size: 16px; font-weight: 950; }
.mobile-agent-partial p { margin: 7px 0 0; color: rgba(10, 11, 13, .58); -webkit-text-fill-color: rgba(10, 11, 13, .58); font-size: 12px; line-height: 1.4; }

.mobile-agent-profile-hero { padding: 20px; }
.mobile-agent-profile-top { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 13px; }
.mobile-agent-avatar { width: 62px; height: 62px; display: grid; place-items: center; overflow: hidden; border-radius: 19px; background: #101114; color: #fff; -webkit-text-fill-color: #fff; }
.mobile-agent-avatar b { color: #fff; -webkit-text-fill-color: #fff; font-size: 25px; }
.mobile-agent-profile-top h2 { margin: 5px 0 0; font-size: 23px; line-height: 1; letter-spacing: -.03em; font-weight: 950; }
.mobile-agent-profile-top p { margin: 5px 0 0; color: rgba(10,11,13,.56); -webkit-text-fill-color: rgba(10,11,13,.56); font-size: 12px; font-weight: 800; }
.mobile-agent-profile-summary { margin: 18px 0 0; font-size: 15px; line-height: 1.45; font-weight: 720; }
.mobile-agent-profile-context { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.mobile-agent-profile-context span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(10,11,13,.08); border-radius: 999px; color: rgba(10,11,13,.62); -webkit-text-fill-color: rgba(10,11,13,.62); font-size: 9px; font-weight: 850; }
.mobile-agent-profile-context i { font-size: 8px; }
.mobile-agent-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.mobile-agent-pills span { padding: 8px 10px; border-radius: 999px; background: #f0f1f3; font-size: 10px; font-weight: 900; }

.mobile-agent-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.mobile-agent-metrics > div { min-width: 0; padding: 14px 10px; border: 1px solid rgba(10,11,13,.08); border-radius: 18px; background: #fff; }
.mobile-agent-metrics small,.mobile-agent-metrics strong,.mobile-agent-metrics em { display: block; }
.mobile-agent-metrics small { color: rgba(10,11,13,.46); -webkit-text-fill-color: rgba(10,11,13,.46); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.mobile-agent-metrics strong { margin-top: 7px; font-size: 21px; line-height: 1; font-weight: 950; }
.mobile-agent-metrics em { margin-top: 5px; color: rgba(10,11,13,.4); -webkit-text-fill-color: rgba(10,11,13,.4); font-size: 8px; font-style: normal; font-weight: 780; }

.mobile-agent-report-card { margin-top: 12px; padding: 19px; border: 1px solid rgba(10,11,13,.08); border-radius: 22px; background: #fff; }
.mobile-agent-report-card.is-primary { background: #101114; border-color: #101114; color: #fff; -webkit-text-fill-color: #fff; }
.mobile-agent-report-card.is-primary h3,
.mobile-agent-report-card.is-primary p { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.mobile-agent-report-card.is-primary small { color: rgba(255,255,255,.58); -webkit-text-fill-color: rgba(255,255,255,.58); }
html[data-theme="light"] body .mobile-agent-home .mobile-agent-report-card.is-primary,
html[data-theme="light-accent"] body .mobile-agent-home .mobile-agent-report-card.is-primary,
html[data-theme="light"] body .mobile-agent-home .mobile-agent-report-card.is-primary *,
html[data-theme="light-accent"] body .mobile-agent-home .mobile-agent-report-card.is-primary * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
html[data-theme="light"] body .mobile-agent-home .mobile-agent-report-card.is-primary small,
html[data-theme="light-accent"] body .mobile-agent-home .mobile-agent-report-card.is-primary small {
  color: rgba(255,255,255,.62) !important;
  -webkit-text-fill-color: rgba(255,255,255,.62) !important;
}
.mobile-agent-report-card.is-honest { background: #f1eee7; }
.mobile-agent-report-card h3 { margin: 8px 0 0; font-size: 18px; line-height: 1.1; font-weight: 950; }
.mobile-agent-report-card p { margin: 9px 0 0; font-size: 14px; line-height: 1.45; font-weight: 680; }

.mobile-agent-next-move { margin-top: 12px; padding: 21px; border-radius: 24px; background: linear-gradient(145deg,#e2f9eb,#f4fff8); border: 1px solid rgba(24,127,69,.12); }
.mobile-agent-next-move h3 { margin: 9px 0 18px; font-size: 20px; line-height: 1.16; letter-spacing: -.025em; font-weight: 950; }
.mobile-agent-next-move button,.mobile-agent-empty-card button { width: 100%; min-height: 46px; border: 0; border-radius: 999px; background: #0b0c0e; color: #fff; -webkit-text-fill-color: #fff; font-size: 12px; font-weight: 950; }
.mobile-agent-next-move button.is-secondary { margin-top: 9px; border: 1px solid rgba(11,12,14,.18); background: #fff; color: #0b0c0e; -webkit-text-fill-color: #0b0c0e; }
.mobile-agent-confirm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mobile-agent-confirm-row button { min-height: 42px; border: 1px solid rgba(10,11,13,.1); border-radius: 999px; background: #fff; color: #111; font-size: 11px; font-weight: 900; }

.mobile-agent-opportunity-section { margin-top: 20px; padding: 18px; border: 1px solid rgba(10,11,13,.08); border-radius: 24px; background: #fff; }
.mobile-agent-opportunity-section.is-local { background: linear-gradient(150deg,#edf8ff 0%,#fff 48%); }
.mobile-agent-opportunity-section.is-national { background: linear-gradient(150deg,#f4f0ff 0%,#fff 48%); }
.mobile-agent-opportunity-section > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mobile-agent-opportunity-section > header small { display: block; color: rgba(10,11,13,.46); -webkit-text-fill-color: rgba(10,11,13,.46); font-size: 9px; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.mobile-agent-opportunity-section > header h3 { margin: 6px 0 0; font-size: 22px; line-height: 1; letter-spacing: -.035em; font-weight: 950; }
.mobile-agent-opportunity-section > header > span { flex: 0 0 auto; padding: 7px 9px; border-radius: 999px; background: rgba(10,11,13,.06); color: rgba(10,11,13,.55); -webkit-text-fill-color: rgba(10,11,13,.55); font-size: 9px; font-weight: 900; }
.mobile-agent-opportunity-intro { margin: 12px 0 0; color: rgba(10,11,13,.56); -webkit-text-fill-color: rgba(10,11,13,.56); font-size: 11px; line-height: 1.42; font-weight: 680; }
.mobile-agent-opportunity-list { display: grid; gap: 8px; margin-top: 15px; }
.mobile-agent-opportunity-list > button,.mobile-agent-opportunity-list > .mobile-agent-opportunity-card { width: 100%; display: grid; grid-template-columns: 28px minmax(0,1fr) 14px; align-items: center; gap: 10px; padding: 13px 11px; border: 1px solid rgba(10,11,13,.07); border-radius: 17px; background: rgba(255,255,255,.86); color: #0a0b0d; text-align: left; cursor: pointer; }
.mobile-agent-opportunity-rank { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; background: #101114; color: #fff; -webkit-text-fill-color: #fff; font-size: 10px; font-weight: 950; }
.mobile-agent-opportunity-copy { min-width: 0; }
.mobile-agent-opportunity-copy small,.mobile-agent-opportunity-copy strong,.mobile-agent-opportunity-copy em,.mobile-agent-opportunity-copy p { display: block; }
.mobile-agent-opportunity-copy small { color: rgba(10,11,13,.43); -webkit-text-fill-color: rgba(10,11,13,.43); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.mobile-agent-target-kind { display: inline-block; margin-right: 6px; padding: 3px 5px; border-radius: 999px; background: #e9edf2; color: #20242a; -webkit-text-fill-color: #20242a; font-size: 7px; line-height: 1; letter-spacing: .04em; }
.mobile-agent-target-kind.is-sponsor { background: #ddf7e7; color: #126033; -webkit-text-fill-color: #126033; }
.mobile-agent-target-kind.is-media { background: #e6efff; color: #234f9b; -webkit-text-fill-color: #234f9b; }
.mobile-agent-target-kind.is-activation { background: #f4eaff; color: #63388d; -webkit-text-fill-color: #63388d; }
.mobile-agent-opportunity-copy strong { margin-top: 4px; font-size: 13px; line-height: 1.12; font-weight: 950; }
.mobile-agent-opportunity-copy em { margin-top: 3px; color: rgba(10,11,13,.46); -webkit-text-fill-color: rgba(10,11,13,.46); font-size: 9px; font-style: normal; font-weight: 760; }
.mobile-agent-opportunity-copy p { margin: 7px 0 0; color: rgba(10,11,13,.68); -webkit-text-fill-color: rgba(10,11,13,.68); font-size: 10px; line-height: 1.35; font-weight: 720; }
.mobile-agent-opportunity-copy p b { color: #0a0b0d; -webkit-text-fill-color: #0a0b0d; font-weight: 950; }
.mobile-agent-opportunity-copy .mobile-agent-opportunity-conflict { color: rgba(10,11,13,.48); -webkit-text-fill-color: rgba(10,11,13,.48); }
.mobile-agent-opportunity-copy .mobile-agent-opportunity-contact { color: rgba(10,11,13,.56); -webkit-text-fill-color: rgba(10,11,13,.56); }
.mobile-agent-opportunity-list > button > i,.mobile-agent-opportunity-list > .mobile-agent-opportunity-card > i { color: rgba(10,11,13,.35); -webkit-text-fill-color: rgba(10,11,13,.35); font-size: 10px; }
.mobile-agent-opportunity-mail { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 7px 11px; border: 0; border-radius: 999px; background: #0a0b0d; color: #fff; -webkit-text-fill-color: #fff; font-size: 10px; font-weight: 900; }
.mobile-agent-opportunity-cta { width: 100%; min-height: 43px; margin-top: 12px; border: 0; border-radius: 999px; background: #101114; color: #fff; -webkit-text-fill-color: #fff; font-size: 11px; font-weight: 950; }
.mobile-agent-opportunity-cta i { margin-left: 6px; }
.mobile-agent-compliance { display: flex; align-items: flex-start; gap: 8px; margin: 12px 5px 0; color: rgba(10,11,13,.47); -webkit-text-fill-color: rgba(10,11,13,.47); font-size: 9px; line-height: 1.4; font-weight: 720; }
.mobile-agent-compliance i { margin-top: 1px; }

.mobile-agent-evidence { margin: 18px auto 0; max-width: 290px; color: rgba(10,11,13,.42); -webkit-text-fill-color: rgba(10,11,13,.42); text-align: center; font-size: 9px; line-height: 1.4; font-weight: 750; }

.mobile-agent-empty-card { padding: 34px 22px; text-align: center; }
.mobile-agent-empty-icon { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 20px; background: #eff1f4; display: grid; place-items: center; font-size: 22px; }
.mobile-agent-empty-card h2 { margin: 0; font-size: 24px; line-height: 1.05; font-weight: 950; }
.mobile-agent-empty-card p { margin: 12px auto 20px; max-width: 310px; color: rgba(10,11,13,.58); -webkit-text-fill-color: rgba(10,11,13,.58); font-size: 13px; line-height: 1.45; }
.mobile-agent-error-detail { display: block; margin: -8px auto 18px; max-width: 310px; color: rgba(10,11,13,.4); -webkit-text-fill-color: rgba(10,11,13,.4); font-size: 10px; line-height: 1.35; }

@keyframes mobileAgentPulse { 50% { opacity: .42; transform: scale(.88); } }

@media (max-width: 360px) {
  .mobile-agent-home { padding-left: 12px; padding-right: 12px; }
  .mobile-agent-metrics { gap: 5px; }
  .mobile-agent-metrics > div { padding-left: 8px; padding-right: 8px; }
}

.mobile-full-game-card {
  margin: 18px 0 8px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, .13);
  border-radius: 26px;
  background: #fff;
  color: #0b0d12;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.mobile-full-game-card > header { display: flex; gap: 13px; align-items: center; }
.mobile-full-game-icon,
.mobile-full-game-status-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 48px;
  border-radius: 15px;
  background: #0b0d12;
  color: #fff;
}
.mobile-full-game-card small,
.mobile-full-game-card label > span {
  display: block;
  color: #667085;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.mobile-full-game-card h3 { margin: 3px 0 0; font-size: 24px; line-height: 1; }
.mobile-full-game-card > p { margin: 16px 0 18px; color: #4b5563; font-size: 14px; line-height: 1.45; }
.mobile-full-game-file { display: block; cursor: pointer; }
.mobile-full-game-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mobile-full-game-card .mobile-full-game-file > span {
  display: grid;
  min-height: 128px;
  padding: 18px;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1.5px dashed #98a2b3;
  border-radius: 20px;
  background: #f8fafc;
  text-align: center;
}
.mobile-full-game-file i { font-size: 25px; }
.mobile-full-game-file b { font-size: 15px; }
.mobile-full-game-file em { max-width: 100%; color: #667085; font-size: 12px; font-style: normal; overflow-wrap: anywhere; }
.mobile-full-game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.mobile-full-game-grid label { min-width: 0; }
.mobile-full-game-grid .is-wide { grid-column: 1 / -1; }
.mobile-full-game-grid input,
.mobile-full-game-grid textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 13px;
  background: #fff !important;
  color: #101828 !important;
  -webkit-text-fill-color: #101828 !important;
  font: 700 14px/1.25 Inter, system-ui, sans-serif;
  box-sizing: border-box;
}
.light-theme .mobile-full-game-card .mobile-full-game-grid input,
.light-theme .mobile-full-game-card .mobile-full-game-grid textarea,
html[data-theme="light"] .mobile-full-game-card .mobile-full-game-grid input,
html[data-theme="light"] .mobile-full-game-card .mobile-full-game-grid textarea,
body[data-theme="light"] .mobile-full-game-card .mobile-full-game-grid input,
body[data-theme="light"] .mobile-full-game-card .mobile-full-game-grid textarea {
  background: #fff !important;
  background-color: #fff !important;
  color: #101828 !important;
  -webkit-text-fill-color: #101828 !important;
}
.mobile-full-game-grid textarea { min-height: 82px; resize: vertical; }
.mobile-full-game-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 15px;
  border: 0;
  border-radius: 999px;
  background: #0b0d12;
  color: #fff;
  font-weight: 900;
}
.mobile-full-game-submit:disabled { opacity: .55; }
.mobile-full-game-error { min-height: 18px; margin: 10px 2px 0 !important; color: #b42318 !important; font-size: 12px !important; font-weight: 800; }
.mobile-full-game-progress { display: grid; justify-items: start; }
.mobile-full-game-progress h3 { margin-top: 15px; }
.mobile-full-game-progress p { margin: 8px 0 18px; color: #475467; font-size: 14px; line-height: 1.45; }
.mobile-full-game-progress > div {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e7ec;
}
.mobile-full-game-progress > div i { display: block; height: 100%; border-radius: inherit; background: #0b0d12; transition: width .3s ease; }
.mobile-full-game-progress > em { margin-top: 7px; color: #667085; font-size: 11px; font-style: normal; font-weight: 900; }

.mobile-full-game-result { margin: 16px 0; padding: 21px; border-radius: 24px; background: #0b0d12; color: #fff; }
.mobile-full-game-result > small { color: #9ca3af; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.mobile-full-game-result h3 { margin: 6px 0 8px; font-size: 24px; line-height: 1.05; }
.mobile-full-game-result p { color: #e5e7eb; font-size: 13px; line-height: 1.5; }
.mobile-full-game-result section { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.14); }
.mobile-full-game-result section strong { display: block; margin-bottom: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.mobile-full-game-result ul { margin: 0; padding-left: 18px; color: #e5e7eb; font-size: 13px; line-height: 1.45; }
.mobile-full-game-result a { color: #fff; text-decoration: underline; }

@media (max-width: 360px) {
  .mobile-full-game-card { padding: 18px; }
  .mobile-full-game-grid { grid-template-columns: 1fr; }
  .mobile-full-game-grid .is-wide { grid-column: auto; }
}
