/* Consistent data colors across the writing workspace and the user's wallet. */
:root{--user-blue:#315fc6;--user-purple:#7c47b3;--user-green:#078367;--user-orange:#ae590d;--user-red:#bd354c;--user-muted:#78869c}
.value-income{color:var(--user-green)!important}.value-expense{color:var(--user-orange)!important}.value-input{color:var(--user-blue)!important}.value-output{color:var(--user-purple)!important}.value-held{color:#9b650b!important}.value-muted{color:var(--user-muted)!important}
.writing-page{--accent:#4265db;--border:#e2e8f2;--muted:#7b879c;color:#293449;background:#fcfdff}.writing-page main{background:radial-gradient(ellipse at 55% 26%,#eef3ff66,transparent 55%),#fcfdff}.writing-page #sidebar{background:linear-gradient(175deg,#f2f5fe,#f7f8fc);border-right:1px solid #e1e7f3;gap:17px}.writing-page .sidebar-wordmark{color:#3f60cd}.writing-page #newChat{background:linear-gradient(120deg,#4269df,#6379e5);border-color:transparent;min-height:44px;border-radius:12px;box-shadow:0 5px 14px #3c61cf1a;font-weight:600;color:white}.writing-page #newChat:disabled{opacity:.55}.writing-page #chatBatchControls{gap:4px;margin:0}.writing-page #chatBatchControls button{font-size:11px;padding:5px 6px;border:0;color:#7b879d;background:transparent}.writing-page #chatBatchControls button:hover{background:#e7edfb;color:#355bba}.writing-page #chats .chatrow{padding:3px;border-radius:12px}.writing-page #chats .chatrow.active{background:#e5ecfd}.writing-page #chats .chatrow:hover{background:#eaf0fc}.writing-page #chats .chatrow .name{font-size:14px;color:#4e607f}.writing-page #sidebar .rewrite-mode-control{padding:12px;background:#ffffffa8;border:1px solid #e4eaf5;border-radius:12px;margin:0}.writing-page .rewrite-mode-control label{color:#64748e;font-size:12px;font-weight:600}.writing-page #sidebar .rewrite-mode-control select{background:#fff;border:1px solid #dbe4f5;color:#4261bc;min-height:37px}.writing-page #sidebar .rewrite-mode-control small{font-size:11px;color:#8491a5}.writing-page #sidebar #settings,.writing-page #sidebar #agents{border-color:#e0e6f0;background:#ffffff96;border-radius:11px;padding:10px 12px;color:#536685;font-size:13px}.writing-page #sidebar .wallet-entry{padding:14px 12px;border-color:#d6e2f8;border-radius:13px;background:linear-gradient(125deg,#eaf1ff,#f5f8ff)}.writing-page .wallet-entry-icon{width:32px;height:32px;background:#dce8ff;color:#4264be;border-radius:10px}.writing-page .wallet-entry-copy>span{font-size:12px;color:#6d7e9d}.writing-page .wallet-entry-copy strong{color:var(--user-blue);font-size:20px;letter-spacing:-.3px}.writing-page #sidebar .wallet-entry:hover{border-color:#9fb8ee;background:#e8f0ff}.writing-page #userAccount{font-size:13px;border-color:#e0e7f2;background:#fff8;border-radius:11px}.writing-page #storage{font-size:11px;color:#8491a4;padding:0 2px}.writing-page main>header{background:#ffffffb8;border-bottom:1px solid #edf0f7;min-height:64px}.writing-page #title{font-size:16px;color:#344969}.writing-page #subtitle{font-size:12px;margin-top:3px;color:#8b97ab}
.writing-page main:has(.welcome){justify-content:center}.writing-page main:has(.welcome)>header{position:absolute;top:0;width:100%;visibility:hidden}.writing-page #messages:has(.welcome){flex:0;overflow:visible;padding:0 28px 28px}.writing-page main:has(.welcome) .welcome{position:static;padding:0;margin:0 auto;max-width:760px}.writing-page .welcome-kicker{display:inline-block;font-size:12px;letter-spacing:2px;color:#6b82b8;background:#edf2fe;border:1px solid #e0e8fb;border-radius:99px;padding:6px 15px;margin-bottom:20px}.writing-page main:has(.welcome) .welcome h1{font-size:32px;font-weight:700;color:#24385b;letter-spacing:-.6px;margin:0 0 14px;line-height:1.4}.writing-page main:has(.welcome) .welcome h1 img{width:36px;height:36px}.writing-page .welcome p{font-size:15px;line-height:1.9;color:#8491a5;max-width:600px;margin:0 auto}.writing-page .welcome-highlights{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;margin-top:20px;color:#7b8aa4;font-size:12px}.writing-page .welcome-highlights span:before{content:'✓';color:#4e9d87;margin-right:6px}.writing-page main:has(.welcome) footer{position:static;max-width:840px;margin:0 auto;padding:0 24px}.writing-page .composer{border-radius:21px;background:#fff;border:1px solid #dfe6f4;padding:17px 18px 12px;box-shadow:0 8px 30px #38538c09}.writing-page .composer:focus-within{border-color:#8fa9e9;box-shadow:0 0 0 3px #4f71d90a,0 8px 30px #38538c09}.writing-page .composer textarea{min-height:72px;line-height:1.85}.writing-page .composerbar{padding-top:8px}.writing-page #send{width:36px;height:36px;border-radius:12px}.writing-page #attachText{border-radius:10px;border-color:#e2e8f3;color:#7586a5}.writing-page .footnote{font-size:11px;color:#94a0b4;margin-top:13px}.writing-page #inputTokens{color:var(--user-blue);font-size:12px;background:#edf3fe;padding:5px 10px;display:table;border-radius:7px;margin:5px 5px 7px}.writing-page #inputTokens[hidden]{display:none}.writing-page #messages .message{padding:22px 24px;border-radius:18px;border:1px solid #e2e9f5;box-shadow:0 4px 15px #3a4d7404}.writing-page #messages .message.user{background:#f5f7fc;border-color:#e3e8f1}.writing-page #messages .message.assistant{background:#fff;border-color:#dce6f7}.writing-page .role{color:#4a64a1;font-size:13px;letter-spacing:.2px}.writing-page .message.user .role{color:#79879d}.writing-page .message-actions{border-top:1px solid #edf1f7;padding-top:10px}.writing-page .message-actions button{color:#7b8da9;border-radius:8px}.writing-page .message-actions button:hover{color:#355dcc;background:#edf3ff}.writing-page .usage-chips{display:flex;flex-wrap:wrap;gap:6px}.writing-page .usage-chip{font-size:11px;line-height:1.7;border-radius:6px;padding:3px 8px;font-variant-numeric:tabular-nums}.writing-page .usage-input{background:#edf3ff;color:var(--user-blue)}.writing-page .usage-output{background:#f4edfc;color:var(--user-purple)}.writing-page .usage-time{background:#eaf7f3;color:var(--user-green)}.writing-page .usage-neutral{background:#f3f5f9;color:#8491a5}.writing-page .usage-warning{background:#fff3e5;color:var(--user-orange)}.writing-page #contextPopover{border-color:#dce5f5;border-radius:15px;padding:19px;box-shadow:0 12px 40px #2b45601a;font-size:13px}.writing-page #contextPopover>strong{color:var(--user-blue);font-size:14px}.writing-page #contextPopover summary{color:var(--user-purple);cursor:pointer}.writing-page #liveRate{color:var(--user-green)}
.wallet-page{background:radial-gradient(ellipse at 20% 0,#eaf0fd80,transparent 40%),#f6f8fc;--wallet-accent:#4266d4}.wallet-shell{max-width:1220px}.wallet-header{margin-bottom:38px}.wallet-title h1{font-size:29px}.wallet-title h1>span{font-size:13px;color:#8796b1}.wallet-back,.refresh-wallet{font-size:13px!important}.wallet-hero{background:linear-gradient(115deg,#193c5c,#294c7c 62%,#3d5697);border-radius:22px;padding:35px 40px;box-shadow:0 10px 28px #27457415}.wallet-hero-label{font-size:14px;color:#dae7f7}.wallet-page #billingState{display:none}.wallet-page #available{color:#9cf0d3;font-size:49px;font-weight:650}.wallet-page #balance{color:#bed8ff;font-size:27px}.wallet-page #held{color:#ffdb98;font-size:27px}.wallet-hero-stats span{color:#d2deef;font-size:13px}.wallet-hero-main>p{font-size:12px;color:#c1d3e7}.wallet-card{border-color:#e0e7f3;box-shadow:0 5px 24px #36568a04;border-radius:18px}.wallet-page h2{font-size:19px}.card-title p,.rate-description{font-size:13px;color:#8492ab}.field-caption{font-size:14px;color:#566984}.amount-options button{padding:20px 5px 17px;font-size:30px;color:#475c7e;border-radius:13px}.amount-options button span{font-size:12px;color:#8797ad}.amount-options button.selected{color:#365fc3;border-color:#7394e7;background:linear-gradient(145deg,#edf3ff,#f9fbff);box-shadow:0 0 0 1px #7394e70c}.amount-options button.selected span{color:#6d87c0}.amount-options button.selected:after{background:#4b72d4}.custom-amount{font-size:13px}.custom-amount input{font-size:14px;color:var(--user-blue)}.custom-amount>small{font-size:11px}.payment-option strong{font-size:14px}.payment-option small{font-size:11px}.payment-option{border-radius:12px}.payment-option[data-provider=alipay].selected{border-color:#7db9ed;background:#f0f8ff}.payment-option[data-provider=alipay].selected i{border-color:#258ee1}.payment-option[data-provider=wechat].selected{border-color:#7ac5a3;background:#f0faf5}.payment-option[data-provider=wechat].selected i{border-color:#26a873}.payment-availability{font-size:12px;color:#8a98af}.recharge-footer>div>span{font-size:13px}.wallet-page #rechargeTotal{color:var(--user-green);font-size:30px}.recharge-footer button{background:#456bd8!important;border-color:#456bd8!important;font-size:14px;border-radius:11px}.rate-item>span{font-size:13px}.rate-item strong{font-size:27px}.rate-item>small{font-size:11px;color:#8a98b0}.wallet-page #inputRate{color:var(--user-blue)}.wallet-page #outputRate{color:var(--user-purple)}.input-dot{background:#4775d4}.output-dot{background:#9060c8}.rate-note{font-size:11px;color:#7d90ab}.billing-help summary,.billing-help p{font-size:13px}.records-heading .eyebrow{font-size:10px}.records-tabs button{font-size:13px;padding:9px 16px}.records-tabs button[aria-selected=true]{color:#3761bb}.wallet-table{font-size:13px}.wallet-table th{font-size:12px;color:#7285a2;background:#f7f9fd;font-weight:500}.wallet-table td{padding:23px 28px;color:#70839e}.wallet-table td.order-number{font-size:11px;color:#8b99ae}.wallet-table td.money-cell{font-size:16px;font-weight:650}.wallet-table td.value-input,.wallet-table td.value-output{font-size:15px;font-weight:600}.bill-status{font-size:12px;padding:6px 10px;border-radius:7px}.bill-status.paid,.bill-status.settled{color:#078367;background:#e9f7f0}.bill-status.pending,.bill-status.needs_review{color:#996408;background:#fff4df}.bill-status.failed{color:#bd354c;background:#fff0f1}.bill-status.cancelled,.bill-status.waived{color:#7c47b3;background:#f3edfc}.wallet-pagination{font-size:12px;color:#8a98b0}.wallet-empty strong{font-size:14px;color:#7d8ea8}.wallet-empty p{font-size:12px;color:#9ba7bb}.wallet-foot{font-size:11px}.wallet-page #walletNotice{font-size:13px}
@media(max-width:1000px){.wallet-hero-stats{gap:22px;padding-left:25px}.wallet-page #available{font-size:39px}.wallet-page #balance,.wallet-page #held{font-size:23px}.payment-option{padding:12px!important;gap:8px!important}}@media(max-width:760px){.wallet-shell{padding:24px 18px}.wallet-page #available{font-size:40px}.wallet-page #balance,.wallet-page #held{font-size:24px}.wallet-hero{padding:27px}.wallet-table{min-width:640px}.wallet-page .rate-card{gap:0 16px}.wallet-page h2{font-size:18px}.wallet-page .payment-options{gap:9px}.wallet-page .amount-options button{font-size:27px}.wallet-page .amount-options button span{font-size:11px}.wallet-page .custom-amount{flex-wrap:wrap}.wallet-page .payment-option small{font-size:10px}}
@media(max-width:700px){.writing-page main:has(.welcome) .welcome h1{font-size:25px;gap:9px}.writing-page main:has(.welcome) .welcome h1 img{width:29px;height:29px}.writing-page .welcome p{font-size:13px}.writing-page .welcome-kicker{font-size:11px;margin-bottom:16px}.writing-page .welcome-highlights{font-size:11px;gap:10px;margin-top:16px}.writing-page #messages:has(.welcome){padding:0 18px 24px}.writing-page main:has(.welcome) footer{padding:0 14px}.writing-page .composer{padding:14px}.writing-page #messages .message{padding:18px}.writing-page #sidebar{gap:13px}.writing-page .wallet-entry-copy strong{font-size:18px}.writing-page .sidebottom{gap:7px}.writing-page .composer textarea{font-size:16px}.writing-page .usage-chip{font-size:11px}}
@media(max-height:650px){.writing-page main:has(.welcome){justify-content:flex-start;padding-top:28px;overflow:auto}.writing-page #messages:has(.welcome){padding-bottom:18px}.writing-page .welcome-highlights{margin-top:10px}.writing-page main:has(.welcome) .welcome h1{font-size:25px}.writing-page .welcome-kicker{margin-bottom:12px}}
.writing-page.dark{--user-blue:#9dbbff;--user-purple:#c8a4f0;--user-green:#81d6bb;--user-orange:#f1c084;--bg:#191e2a;--side:#202738;--border:#353e52;--text:#e3e9f5;--muted:#9aa8be;color:var(--text);background:var(--bg)}.writing-page.dark main{background:radial-gradient(ellipse at 55% 26%,#26345677,transparent 55%),#191e2a}.writing-page.dark #sidebar{background:linear-gradient(170deg,#222c40,#1e2637);border-color:#353e52}.writing-page.dark .sidebar-wordmark,.writing-page.dark #title{color:#b1c6ff}.writing-page.dark #chats .chatrow .name{color:#b7c5dc}.writing-page.dark #chats .chatrow.active,.writing-page.dark #chats .chatrow:hover{background:#30405e}.writing-page.dark #sidebar .rewrite-mode-control,.writing-page.dark #sidebar .rewrite-mode-control select,.writing-page.dark #sidebar #settings,.writing-page.dark #sidebar #agents,.writing-page.dark #userAccount{background:#263247;border-color:#394861;color:#b5c5e1}.writing-page.dark #sidebar .wallet-entry{background:linear-gradient(125deg,#2c3e60,#27354e);border-color:#3b517a}.writing-page.dark .wallet-entry-copy strong{color:#a9c5ff}.writing-page.dark .wallet-entry-copy>span,.writing-page.dark .rewrite-mode-control label{color:#a2b4d2}.writing-page.dark .wallet-entry-icon{background:#3a4e73;color:#afc5ff}.writing-page.dark main>header{background:#202838;border-color:#303c50}.writing-page.dark main:has(.welcome) .welcome h1{color:#e2eaff}.writing-page.dark .welcome-kicker{background:#263650;border-color:#3a4b6c;color:#a6bfe8}.writing-page.dark .welcome p,.writing-page.dark .welcome-highlights{color:#a1aec3}.writing-page.dark .composer,.writing-page.dark #messages .message.assistant{background:#232d40;border-color:#3a4964}.writing-page.dark #messages .message.user{background:#202a3a;border-color:#35445d}.writing-page.dark .composer textarea{background:transparent}.writing-page.dark .message-actions{border-color:#35445d}.writing-page.dark .usage-input,.writing-page.dark #inputTokens{background:#293c60;color:var(--user-blue)}.writing-page.dark .usage-output{background:#3c2e53;color:var(--user-purple)}.writing-page.dark .usage-time{background:#243e3a;color:var(--user-green)}.writing-page.dark .usage-neutral{background:#2c3547;color:#a5b3ca}.writing-page.dark .usage-warning{background:#49392b;color:var(--user-orange)}.writing-page.dark #contextPopover{background:#232d40;border-color:#3a4964}
@media(prefers-reduced-motion:reduce){.writing-page *, .wallet-page *{scroll-behavior:auto!important}}
@media(max-width:700px){.writing-page main:has(.welcome)>header{visibility:visible;background:transparent;border-bottom:0}.writing-page main>header #toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--user-blue);padding:0;flex:none}.writing-page main:has(.welcome)>header #title{font-size:14px}.writing-page main:has(.welcome)>header #subtitle{display:none}.writing-page.mobile-open #sidebar{display:flex;position:fixed;inset:0 auto 0 0;z-index:30;width:260px;height:100dvh;padding:24px 12px 12px;box-shadow:14px 0 50px #172c5720}.writing-page.mobile-open #sidebar>.sidebar-heading{display:flex}.writing-page.mobile-open #sidebar>#newChat{display:block}.writing-page.mobile-open #sidebar>#chatBatchControls{display:flex}.writing-page.mobile-open #sidebar>#chats{display:block}.writing-page.mobile-open #sidebar>.sidebottom{display:flex}.writing-page.mobile-open #sidebar>.rail{display:flex;flex-direction:row;width:auto;align-items:center;margin-top:0;border-top:1px solid var(--border)}.writing-page.mobile-open #railToggle{transform:none}}

.sidebar-wordmark{text-decoration:none}

.developer-entry{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#526b9c;text-decoration:none;font-size:12px;padding:9px 11px;border:1px solid #e0e6f2;border-radius:10px;background:#ffffff80}.developer-entry span{font-size:10px;color:#788bae}.writing-page.dark .developer-entry{background:#263247;border-color:#394861;color:#b5c5e1}.wallet-page #walletAPIPrice b:first-child{color:var(--user-blue)}.wallet-page #walletAPIPrice p{font-size:12px;color:var(--user-blue)}
