/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;650;700&display=swap');

:root {
  --bg: #f7f7fb;
  --card: #ffffff;
  --surface: #f0f1f6;
  --surface-strong: #e8e9f0;
  --line: #e4e5ec;
  --line-strong: #d7d8e2;
  --ink: #181922;
  --muted: #686a78;
  --muted-soft: #8d8f9d;
  --blue: #2d31fa;
  --blue-deep: #1518d4;
  --blue-pale: #edeeff;
  --saffron: #b76100;
  --saffron-pale: #fff2e3;
  --error: #b42318;
  --error-pale: #fff0ee;
  --scrim: rgba(16, 18, 35, .42);
  --elevated-shadow: 0 18px 42px rgba(20, 22, 52, .14);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #101116;
  --card: #191a22;
  --surface: #23242d;
  --surface-strong: #2b2c37;
  --line: #30313d;
  --line-strong: #41434f;
  --ink: #f3f3f7;
  --muted: #b4b5c0;
  --muted-soft: #858795;
  --blue: #9093ff;
  --blue-deep: #acafff;
  --blue-pale: #25264c;
  --saffron: #ffb56b;
  --saffron-pale: #38291d;
  --error: #ffb4aa;
  --error-pale: #40231f;
  --scrim: rgba(0, 0, 0, .58);
  --elevated-shadow: 0 18px 42px rgba(0, 0, 0, .38);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #101116; --card: #191a22; --surface: #23242d; --surface-strong: #2b2c37;
    --line: #30313d; --line-strong: #41434f; --ink: #f3f3f7; --muted: #b4b5c0;
    --muted-soft: #858795; --blue: #9093ff; --blue-deep: #acafff; --blue-pale: #25264c;
    --saffron: #ffb56b; --saffron-pale: #38291d; --error: #ffb4aa; --error-pale: #40231f;
    --scrim: rgba(0, 0, 0, .58); --elevated-shadow: 0 18px 42px rgba(0, 0, 0, .38); color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body { min-height: 100%; margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-rendering: optimizeLegibility; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 35%, transparent); outline-offset: 2px; }
input::placeholder { color: var(--muted-soft); opacity: 1; }
::selection { background: color-mix(in srgb, var(--blue) 22%, transparent); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--bg); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }
a { color: var(--blue-deep); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.brand-lockup { display: flex; align-items: center; gap: 9px; }
.brand-lockup svg { display: block; filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--blue) 16%, transparent)); }
.brand-name { color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -.035em; }
.icon-button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: transparent; color: var(--ink); transition: background-color .16s ease, color .16s ease, transform .12s ease; }
.icon-button:active, .avatar-button:active, .send-button:active, .bottom-nav button:active, .suggestion:active, .history-row > button:active, .new-chat:active, .primary-button:active, .outline-button:active, .google-button:active { transform: scale(.97); }
@media (hover: hover) { .icon-button:hover { background: var(--surface); } }
.primary-button, .google-button, .outline-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 17px; border-radius: 15px; font-size: 14px; font-weight: 650; transition: background-color .16s ease, border-color .16s ease, transform .12s ease, color .16s ease; }
.primary-button { background: var(--blue); color: #fff; }
.primary-button:disabled { opacity: .5; }
.outline-button { border: 1px solid var(--line-strong); background: var(--card); color: var(--blue-deep); }
.google-button { border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); }
@media (hover: hover) { .primary-button:not(:disabled):hover { background: var(--blue-deep); } .outline-button:hover, .google-button:hover { background: var(--surface); border-color: var(--muted-soft); } }

.splash, .auth-page { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); }
.splash { flex-direction: column; gap: 9px; }
.splash h1 { margin: 8px 0 0; font-size: 29px; letter-spacing: -.045em; }
.splash p { margin: 0; color: var(--muted); font-size: 14px; }
.splash i { display: block; width: 46px; height: 3px; margin-top: 25px; border-radius: 99px; background: var(--blue); animation: pulse 1.25s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .28; transform: scaleX(.54); } }
@keyframes enter-message { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes soft-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.auth-page { background: var(--bg); }
.auth-card { width: min(100%, 398px); padding: 30px 24px 25px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; }
.auth-card > .brand-lockup { justify-content: center; margin-bottom: 20px; }
.auth-card h1 { margin: 0 0 9px; font-size: 25px; line-height: 1.18; letter-spacing: -.04em; }
.auth-card > p { max-width: 300px; margin: 0 auto 26px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.google-g { color: #4285f4; font-size: 18px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted-soft); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.divider::before, .divider::after { height: 1px; flex: 1 1; background: var(--line); content: ""; }
.email-field { display: flex; align-items: center; height: 54px; gap: 10px; margin-bottom: 11px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 15px; color: var(--muted); background: var(--card); transition: border-color .16s ease, box-shadow .16s ease; }
.email-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 13%, transparent); }
.email-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.auth-note { margin: 20px 0 0 !important; font-size: 11px !important; line-height: 1.55 !important; }
.notice { color: var(--error) !important; }

.app-shell { min-height: 100dvh; }
.chat-main { width: 100%; max-width: 830px; min-height: 100dvh; margin: 0 auto; display: grid; grid-template-rows: 64px minmax(0, 1fr) auto 64px; background: var(--bg); }
.chat-header { position: relative; z-index: 3; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 64px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.chat-header .brand-lockup { justify-content: center; }
.avatar-button { display: grid; place-items: center; width: 34px; height: 34px; margin: auto; padding: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--saffron) 24%, var(--line)); border-radius: 12px; background: var(--saffron-pale); color: var(--saffron); transition: transform .12s ease, background-color .16s ease; }
.avatar-button img { width: 100%; height: 100%; object-fit: cover; }
.chat-content { min-height: 0; overflow: auto; padding: 24px 20px 18px; overscroll-behavior: contain; }
.chat-content:not(.with-messages) { display: flex; align-items: center; justify-content: center; padding-bottom: 38px; }
.home-state { width: 100%; max-width: 488px; }
.greeting { padding: 0 6px 29px; text-align: center; animation: soft-rise .32s cubic-bezier(.2, .7, .2, 1) both; }
.greeting h1 { margin: 0; font-size: clamp(27px, 7vw, 34px); line-height: 1.15; letter-spacing: -.045em; }
.greeting p { max-width: 324px; margin: 12px auto 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.suggestion-list { display: grid; grid-gap: 9px; gap: 9px; }
.suggestion { display: grid; grid-template-columns: 38px 1fr; grid-column-gap: 12px; column-gap: 12px; min-height: 72px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); text-align: left; transition: transform .12s ease, border-color .16s ease, background-color .16s ease; }
.suggestion span { display: grid; grid-row: span 2; place-items: center; width: 34px; height: 34px; margin-top: 1px; border-radius: 11px; background: var(--saffron-pale); color: var(--saffron); }
.suggestion:nth-child(2) span { background: #fff0f4; color: #c23e6b; }
.suggestion:nth-child(3) span { background: var(--blue-pale); color: var(--blue); }
.suggestion:nth-child(4) span { background: #fff0e2; color: #c56a15; }
.suggestion strong { align-self: end; font-size: 14px; font-weight: 650; letter-spacing: -.012em; }
.suggestion small { align-self: start; padding-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
@media (hover: hover) { .suggestion:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); background: color-mix(in srgb, var(--blue-pale) 28%, var(--card)); } }
.message-list { max-width: 690px; margin: 0 auto; padding-bottom: 8px; }
.message { display: flex; align-items: flex-end; gap: 10px; margin: 13px 0; animation: enter-message .22s cubic-bezier(.2, .7, .2, 1) both; }
.message.user { justify-content: flex-end; }
.message .brand-lockup { flex: none; margin-bottom: 1px; }
.message .brand-lockup svg { filter: none; }
.bubble { max-width: min(85%, 600px); padding: 12px 15px; border-radius: 18px 18px 18px 6px; background: var(--surface); color: var(--ink); font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.user .bubble { border-radius: 18px 18px 6px 18px; background: var(--blue); color: #fff; }
.responding { display: flex; align-items: center; gap: 8px; margin: 15px 0 0 42px; color: var(--muted); font-size: 12px; }
.responding span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 1s ease-in-out infinite; }
.spin { animation: spin 1s linear infinite; }
.chat-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 16px; padding: 11px 13px; border-radius: 14px; background: var(--error-pale); color: var(--error); font-size: 12px; line-height: 1.4; }
.chat-error button { display: flex; align-items: center; flex: none; gap: 5px; padding: 5px 0; background: transparent; color: inherit; font-size: 12px; font-weight: 700; }
.composer-zone { padding: 10px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.composer { display: flex; align-items: center; min-height: 52px; gap: 1px; padding: 4px 5px 4px 14px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--card); transition: border-color .16s ease, box-shadow .16s ease; }
.composer:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 13%, transparent); }
.composer input { min-width: 0; flex: 1 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.composer .icon-button { width: 36px; height: 36px; border-radius: 11px; color: var(--muted); }
.attach { cursor: pointer; }
.attach input { display: none; }
.send-button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--blue); color: #fff; transition: background-color .16s ease, transform .12s ease; }
.send-button:disabled { background: var(--surface-strong); color: var(--muted-soft); }
.composer-zone > p { margin: 8px 0 0; color: var(--muted-soft); font-size: 10px; line-height: 1.3; text-align: center; }
.attachment-preview { display: flex; gap: 7px; overflow: auto; padding: 0 0 9px; }
.attachment-preview span { display: flex; align-items: center; gap: 5px; max-width: 220px; padding: 7px 9px; overflow: hidden; border-radius: 10px; background: var(--blue-pale); color: var(--blue-deep); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.attachment-preview button { display: flex; flex: none; padding: 0; background: transparent; color: inherit; }
.bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); height: 64px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: var(--card); }
.bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 550; transition: color .16s ease, transform .12s ease; }
.bottom-nav button svg { stroke-width: 1.8; }
.bottom-nav button.active { color: var(--blue-deep); }

.scrim { position: fixed; z-index: 10; inset: 0; opacity: 0; pointer-events: none; background: var(--scrim); transition: opacity .24s ease; }
.scrim.show { opacity: 1; pointer-events: auto; }
.sidebar { position: fixed; z-index: 11; inset: 0 auto 0 0; display: flex; flex-direction: column; width: min(86vw, 348px); padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)); background: var(--card); box-shadow: var(--elevated-shadow); transform: translateX(-104%); transition: transform .3s cubic-bezier(.2, .75, .2, 1); will-change: transform; }
.sidebar.open { transform: translateX(0); }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 13px; }
.new-chat { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; border-radius: 15px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 650; transition: background-color .16s ease, transform .12s ease; }
.search-box { display: flex; align-items: center; height: 46px; gap: 9px; margin: 14px 0 12px; padding: 0 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--muted); transition: border-color .16s ease, box-shadow .16s ease; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 12%, transparent); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.history { flex: 1 1; overflow: auto; padding-right: 2px; }
.history > p { margin: 11px 7px 8px; color: var(--muted-soft); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.history-row { display: flex; align-items: center; margin: 2px 0; border-radius: 11px; transition: background-color .16s ease; }
.history-row:hover, .history-row.active { background: var(--surface); }
.history-row > button { min-width: 0; flex: 1 1; padding: 11px 9px; overflow: hidden; background: transparent; color: var(--ink); font-size: 13px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.history-row details { position: relative; }
.history-row summary { display: grid; place-items: center; width: 36px; height: 36px; color: var(--muted); cursor: pointer; list-style: none; }
.history-row summary::-webkit-details-marker { display: none; }
.conversation-menu { position: absolute; z-index: 12; top: 39px; right: 0; width: 137px; padding: 5px; border-radius: 13px; background: var(--card); box-shadow: var(--elevated-shadow); }
.conversation-menu button { display: flex; align-items: center; gap: 7px; width: 100%; padding: 9px; border-radius: 9px; background: transparent; color: var(--ink); font-size: 12px; text-align: left; }
.conversation-menu button:hover { background: var(--surface); }
.conversation-menu .danger { color: var(--error); }
.empty-history { padding: 25px 8px; color: var(--muted); font-size: 13px; }
.settings-link { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 13px 8px 2px; border-top: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 14px; text-align: left; }

.page { width: min(100%, 830px); min-height: 100dvh; margin: auto; padding-bottom: max(32px, env(safe-area-inset-bottom)); background: var(--bg); }
.page-header { position: -webkit-sticky; position: sticky; z-index: 3; top: 0; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 64px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.page-header h1 { margin: 0; font-size: 16px; letter-spacing: -.025em; text-align: center; }
.profile-summary { display: flex; align-items: center; gap: 13px; margin: 24px 20px 16px; padding: 16px; border: 1px solid var(--line); border-radius: 19px; background: var(--card); }
.profile-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--blue-pale); color: var(--blue-deep); }
.profile-summary h2 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.02em; }
.profile-summary p { margin: 0; color: var(--muted); font-size: 12px; }
.settings-list { margin: 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--card); }
.setting { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--blue-deep); }
.setting:last-child { border: 0; }
.setting button { display: flex; flex: 1 1; flex-direction: column; gap: 3px; padding: 11px 0; background: transparent; color: var(--ink); text-align: left; }
.setting strong { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.setting small { color: var(--muted); font-size: 11px; }
.setting select { max-width: 82px; border: 0; outline: 0; background: transparent; color: var(--muted); font-size: 12px; text-align: right; }
.setting > svg:last-child { color: var(--muted-soft); }
.logout-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 40px); height: 50px; margin: 20px; border: 1px solid color-mix(in srgb, var(--error) 40%, var(--line)); border-radius: 15px; background: var(--card); color: var(--error); font-weight: 650; }
.pricing-intro { padding: 35px 25px 26px; text-align: center; }
.pricing-intro .brand-lockup { justify-content: center; }
.pricing-intro h2 { max-width: 330px; margin: 15px auto 8px; font-size: 28px; line-height: 1.12; letter-spacing: -.045em; }
.pricing-intro p { max-width: 300px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.55; }
.plan-list { display: grid; grid-gap: 12px; gap: 12px; padding: 0 20px; }
.plan-card { position: relative; padding: 19px; border: 1px solid var(--line); border-radius: 19px; background: var(--card); }
.plan-card.popular { padding: 18px; border: 2px solid var(--blue); }
.popular-label { position: absolute; top: -12px; right: 14px; padding: 5px 10px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.plan-card > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan-card h3 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.plan-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.price { margin: 16px 0; }
.price strong { font-size: 31px; letter-spacing: -.05em; }
.price span { margin-left: 2px; color: var(--muted); font-size: 12px; }
.plan-card ul { display: grid; grid-gap: 8px; gap: 8px; margin: 0 0 17px; padding: 0; list-style: none; }
.plan-card li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.plan-card li svg { flex: none; color: var(--blue-deep); }
.plan-card .primary-button, .plan-card .outline-button { min-height: 47px; font-size: 13px; }
.usage-hero { margin: 24px 20px 14px; padding: 22px; border-radius: 21px; background: var(--blue); color: #fff; }
.usage-hero span { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .85; }
.usage-hero h2 { margin: 14px 0 4px; font-size: 32px; letter-spacing: -.05em; }
.usage-hero p { margin: 0 0 18px; font-size: 12px; opacity: .88; }
.usage-hero .primary-button { min-height: 46px; background: #fff; color: var(--blue-deep); font-size: 13px; }
.usage-list { display: grid; grid-gap: 10px; gap: 10px; margin: 0 20px; }
.usage-item { padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); }
.usage-item > div:first-child { display: flex; align-items: baseline; justify-content: space-between; }
.usage-item h3 { margin: 0; font-size: 14px; }
.usage-item strong { font-size: 14px; }
.usage-item strong span { color: var(--muted); font-size: 12px; font-weight: 400; }
.meter { height: 7px; margin-top: 15px; overflow: hidden; border-radius: 99px; background: var(--blue-pale); }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.meter.saffron { background: var(--saffron-pale); }
.meter.saffron i { background: var(--saffron); }
.usage-note { margin: 18px 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (min-width: 800px) {
  .app-shell { display: grid; grid-template-columns: 310px minmax(0, 1fr); width: min(1180px, 100%); margin: auto; }
  .chat-main { max-width: none; border-inline: 1px solid var(--line); grid-template-rows: 68px minmax(0, 1fr) auto; }
  .chat-header { height: 68px; padding: 0 22px; }
  .chat-content { padding: 34px clamp(30px, 5vw, 62px) 25px; }
  .chat-content:not(.with-messages) { padding-bottom: 50px; }
  .home-state { max-width: 560px; }
  .greeting { padding-bottom: 34px; }
  .suggestion-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .suggestion { min-height: 105px; padding: 15px; }
  .composer-zone { padding: 13px clamp(30px, 5vw, 62px) 15px; }
  .bottom-nav { display: none; }
  .sidebar { position: -webkit-sticky; position: sticky; top: 0; width: auto; height: 100dvh; padding: 16px; border-left: 1px solid var(--line); box-shadow: none; transform: none; }
  .scrim, .mobile-only { display: none; }
  .page { border-inline: 1px solid var(--line); }
  .page-header { height: 68px; }
  .plan-list { grid-template-columns: repeat(2, 1fr); }
}

