.b2c-shell {
  --b2c-ink: #1a2744;
  --b2c-muted: #52627a;
  --b2c-accent: #2563eb;
  --b2c-subtle: #5b6b82;
  --b2c-background: #f4f6f9;
  --b2c-border: #dbe3ef;
  --b2c-soft: #eff6ff;
  --b2c-banner: 0px;
  background: var(--b2c-background);
}
.b2c-shell.b2c-demo { --b2c-banner: 32px; }
.b2c-demo-banner { height: 32px; padding: 7px 8px; font-size: 10px; line-height: 17px; letter-spacing: .08em; }
.b2c-shell .app-nav { background: var(--b2c-ink); border-bottom: 1px solid #2d4a7a; top: var(--b2c-banner); }
.b2c-shell .app-nav a, .b2c-shell .app-nav button { color: #bfdbfe; }
.b2c-shell .app-nav a:hover, .b2c-shell .app-nav button:hover { color: #fff; }
.b2c-shell .app-sidebar { background: #fff; width: 208px; border-right: 1px solid var(--b2c-border); top: calc(56px + var(--b2c-banner)); }
.b2c-shell .sidebar-item { color: var(--b2c-muted); border-radius: 12px; font-size: 14px; margin-bottom: 6px; }
.b2c-shell .sidebar-item:hover { background: var(--b2c-soft); color: var(--b2c-ink); }
.b2c-shell .sidebar-item.active { background: var(--b2c-ink); color: #fff; border: 0; font-weight: 600; }
.b2c-shell .sidebar-item.active .b2c-nav-icon { color: #5eead4; }
.b2c-nav-icon { width: 22px; font-size: 22px; line-height: 24px; }
.b2c-shell #main-content { background: var(--b2c-background); }
/* Size the page to the visible screen; 100vh counts the space behind phone browser toolbars. */
.b2c-shell .flex:has(> #main-content) { min-height: calc(100dvh - 56px - var(--b2c-banner)) !important; }
.b2c-chat-container { height: calc(100dvh - 56px - var(--b2c-banner)); padding: 0 28px; max-width: 1150px; margin: 0 auto; }
.b2c-chat-layout { height: 100%; margin: 0; }
.b2c-shell .b2c-chat-layout #chat-card { height: 100%; border: 0 !important; border-radius: 0; box-shadow: none; background: var(--b2c-background); min-width: 0; }
.b2c-shell .b2c-chat-layout #chat-card > .h-1 { display: none; }
.b2c-shell .b2c-chat-layout #chat-card > div:nth-child(2) { background: var(--b2c-background); border: 0; padding: 6px 0; }
.b2c-shell .b2c-chat-layout #chat-card > div:nth-child(2) > .sm\:flex { display: none; }
.b2c-shell .b2c-chat-layout #chat-messages { flex: 1; max-height: none; padding: 10px 0 24px; scroll-behavior: smooth; }
.b2c-shell .b2c-chat-layout #chat-card > div:last-child { padding: 12px 0 16px; background: var(--b2c-background); border: 0; }
.b2c-shell #chat-form > div:last-child { border: 1px solid var(--b2c-border); background: #fff; border-radius: 22px; padding: 10px 12px; box-shadow: 0 4px 18px #1a274409; }
.b2c-shell #chat-form > div:last-child:focus-within { border-color: var(--b2c-accent); }
.b2c-shell #chat-form textarea { font-size: 15px; }
.b2c-shell #chat-form textarea::placeholder { color: var(--b2c-subtle); }
.b2c-shell #chat-form button[type=submit] { background: var(--b2c-accent); }
.b2c-shell #chat-form button[type=submit]:hover { background: #1d4ed8; }
.b2c-header-status { color: var(--b2c-muted); border: 1px solid var(--b2c-border); border-radius: 20px; padding: 5px 10px; font-size: 11px; }
.b2c-home { max-width: 820px; margin: 0 auto; color: var(--b2c-ink); }
.b2c-intro { padding: 4px 0 12px; }
.b2c-activity h1 { color: var(--b2c-ink); font-size: clamp(32px, 4vw, 44px); font-weight: 500; letter-spacing: -.045em; line-height: 1.13; margin: 0 0 16px; }
.b2c-home-summary { color: var(--b2c-muted); font-size: 15px; line-height: 1.65; max-width: 520px; }
.b2c-starters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.b2c-starters button, .b2c-starters a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--b2c-border); border-radius: 22px; padding: 9px 13px; background: #fff; color: var(--b2c-muted); font-size: 12px; text-decoration: none; }
.b2c-starters button:hover, .b2c-starters a:hover { border-color: #93c5fd; background: var(--b2c-soft); }
.b2c-starters span { font-size: 15px; color: var(--b2c-accent); }
.b2c-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.b2c-section-heading h2 { font-size: 13px; font-weight: 600; color: var(--b2c-ink); }
.b2c-section-heading a { font-size: 11px; color: var(--b2c-accent); text-decoration: none; white-space: nowrap; }
.b2c-task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.b2c-task { display: flex; flex-direction: column; padding: 17px; background: #fff; border: 1px solid var(--b2c-border); border-radius: 17px; min-width: 0; }
.b2c-task-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.b2c-status { border-radius: 6px; font-size: 11px; font-weight: 500; padding: 4px 7px; background: var(--b2c-soft); color: #1d4ed8; }
.b2c-status-attention { background: #fffbeb; color: #92400e; }
.b2c-status-complete { background: #ecfdf5; color: #166534; }
.b2c-deadline { font-size: 10px; color: #92400e; }
.b2c-task h3 { color: var(--b2c-ink); font-size: 15px; font-weight: 600; line-height: 1.45; margin-bottom: 5px; overflow-wrap: anywhere; }
.b2c-task-meta { color: var(--b2c-subtle); font-size: 12px; line-height: 1.5; margin-bottom: 10px; }
.b2c-task-note { color: var(--b2c-muted); font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.b2c-task-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.b2c-task-resume { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--b2c-accent); text-decoration: none; }
.b2c-text-link { color: var(--b2c-muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.b2c-connections { margin-top: 20px; border: 1px solid var(--b2c-border); border-radius: 13px; background: var(--b2c-soft); }
.b2c-connections summary { display: flex; gap: 8px; align-items: center; padding: 12px 14px; list-style: none; color: var(--b2c-muted); font-size: 12px; cursor: pointer; }
.b2c-connections summary::-webkit-details-marker { display: none; }
.b2c-connection-dot { width: 6px; height: 6px; border-radius: 50%; background: #15803d; flex-shrink: 0; }
.b2c-connection-attention { background: #b45309; }
.b2c-connection-empty { background: var(--b2c-subtle); }
.b2c-connection-manage { margin-left: auto; color: var(--b2c-accent); font-size: 11px; }
.b2c-connection-list { padding: 0 14px 14px; display: grid; gap: 12px; }
.b2c-connection-list p { font-size: 11px; line-height: 1.6; color: var(--b2c-subtle); margin: 4px 0 0; }
.b2c-connection-name { color: var(--b2c-ink); font-size: 12px; }
.b2c-connection-name span { font-size: 10px; margin-left: 10px; color: var(--b2c-muted); }
.b2c-connect-cta { display: inline-flex; gap: 12px; color: var(--b2c-accent); margin-top: 14px; font-size: 12px; font-weight: 600; }
.b2c-home-footnote { font-size: 11px; line-height: 1.6; color: var(--b2c-subtle); margin-top: 14px; }
.b2c-composer-note { font-size: 11px; line-height: 1.5; color: var(--b2c-subtle); margin: 10px 0 0; text-align: center; }
.b2c-composer-note button { text-decoration: underline; text-underline-offset: 2px; }
.b2c-focused-task { max-width: 620px; margin: 10px auto 24px; }
.b2c-focused-task .b2c-task-resume { display: none; }
.b2c-activity { padding-top: 20px; max-width: 850px; margin: 0 auto; }
.b2c-activity .b2c-task-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.b2c-activity-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--b2c-accent); margin: 24px 0; }
.b2c-conversation-list { background: #fff; border: 1px solid var(--b2c-border); border-radius: 16px; padding: 4px 16px; }
.b2c-conversation-list button { display: flex; width: 100%; align-items: center; gap: 12px; text-align: left; padding: 15px 0; color: var(--b2c-muted); font-size: 13px; }
.b2c-conversation-list form + form { border-top: 1px solid var(--b2c-border); }
.b2c-conversation-list button > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b2c-conversation-list time { margin-left: auto; color: var(--b2c-subtle); font-size: 10px; white-space: nowrap; }
.b2c-empty { padding: 25px; border: 1px dashed var(--b2c-border); border-radius: 16px; color: var(--b2c-muted); font-size: 13px; }
.b2c-mobile-nav { display: none; }
.b2c-shell a:focus-visible, .b2c-shell button:focus-visible, .b2c-shell summary:focus-visible { outline: 2px solid var(--b2c-accent); outline-offset: 4px; }
@media (max-width: 767px) {
  .b2c-chat-container { padding: 0 18px; height: calc(100dvh - 118px - var(--b2c-banner) - env(safe-area-inset-bottom, 0px)); }
  .b2c-shell #main-content { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .b2c-shell .b2c-chat-layout #chat-card > div:nth-child(2) { padding: 4px 0; }
  .b2c-shell .b2c-chat-layout #chat-messages { padding-top: 0; }
  /* iPhone Safari zooms the page into any text box under 16px. */
  .b2c-shell input, .b2c-shell textarea, .b2c-shell select, .b2c-shell #chat-form textarea { font-size: 16px; }
  .b2c-home-summary { font-size: 13px; }
  .b2c-starters { gap: 6px; margin-bottom: 14px; }
  .b2c-section-heading { margin-top: 18px; }
  .b2c-starters a, .b2c-starters button { padding: 8px 10px; font-size: 12px; }
  .b2c-home .b2c-task-grid { grid-template-columns: 1fr; }
  .b2c-task { padding: 15px; }
  .b2c-header-status { font-size: 9px; padding: 4px 7px; }
  .b2c-mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; display: flex; justify-content: space-around; background: #fff; border-top: 1px solid var(--b2c-border); padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .b2c-mobile-nav .sidebar-item { display: flex; flex-direction: column; gap: 1px; justify-content: center; min-width: 90px; font-size: 10px; padding: 4px 10px; margin: 0; }
  .b2c-mobile-nav .b2c-nav-icon { font-size: 20px; line-height: 23px; text-align: center; }
  .b2c-shell #sidebar-toggle { display: none; }
  .b2c-shell #app-sidebar { display: none; }
  .b2c-activity { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .b2c-shell .b2c-chat-layout #chat-messages { scroll-behavior: auto; }
}
.b2c-nav-shortcuts { margin-top: 18px; padding: 14px 12px 0; border-top: 1px solid var(--b2c-border); display: grid; gap: 2px; }
.b2c-nav-shortcuts p { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--b2c-subtle); margin-bottom: 6px; }
.b2c-nav-shortcuts a { font-size: 13px; color: var(--b2c-muted); padding: 6px 0; text-decoration: none; }
.b2c-nav-shortcuts a:hover, .b2c-nav-shortcuts a[aria-current="page"] { color: var(--b2c-accent); }
.b2c-back-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.b2c-back-link { font-size: 12px; font-weight: 600; color: var(--b2c-accent); text-decoration: none; }
.b2c-back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.b2c-claims { max-width: 760px; margin: 0 auto; padding-top: 12px; color: var(--b2c-ink); }
.b2c-claims-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.b2c-claims-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.b2c-claims-head p { color: var(--b2c-muted); font-size: 14px; margin-top: 2px; }
.b2c-claims-add { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--b2c-border); border-radius: 22px; padding: 9px 14px; background: #fff; color: var(--b2c-ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.b2c-claims-add:hover { border-color: #93c5fd; background: var(--b2c-soft); }
.b2c-claims-add span { color: var(--b2c-accent); font-size: 16px; line-height: 1; }
.b2c-claims-group { font-size: 13px; font-weight: 600; margin: 26px 0 10px; }
.b2c-claim-list { display: grid; gap: 12px; }
.b2c-claim { padding: 18px; background: #fff; border: 1px solid var(--b2c-border); border-radius: 17px; }
.b2c-claim-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.b2c-claim h3 { font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.b2c-claim-meta { color: var(--b2c-subtle); font-size: 13px; margin-top: 3px; }
.b2c-claim-owe { text-align: right; flex-shrink: 0; }
.b2c-claim-owe span { display: block; color: var(--b2c-subtle); font-size: 11px; }
.b2c-claim-owe strong { font-size: 18px; font-weight: 600; }
.b2c-claim-owe small { display: block; color: var(--b2c-subtle); font-size: 11px; margin-top: 2px; }
.b2c-claim-question { margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--b2c-border); color: var(--b2c-muted); font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b2c-claim-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.b2c-claim-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--b2c-accent); color: #fff; border-radius: 20px; padding: 8px 14px; font-size: 13px; font-weight: 600; text-decoration: none; }
.b2c-claim-primary:hover { background: #1d4ed8; }
.b2c-claim-menu { position: relative; margin-left: auto; }
.b2c-claim-menu summary { list-style: none; cursor: pointer; color: var(--b2c-subtle); font-size: 16px; letter-spacing: .1em; padding: 2px 8px; border-radius: 8px; }
.b2c-claim-menu summary::-webkit-details-marker { display: none; }
.b2c-claim-menu summary:hover, .b2c-claim-menu[open] summary { background: var(--b2c-soft); color: var(--b2c-ink); }
.b2c-claim-menu > div { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 150px; background: #fff; border: 1px solid var(--b2c-border); border-radius: 12px; box-shadow: 0 8px 24px #1a274418; padding: 4px; display: grid; }
.b2c-claim-menu button { text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--b2c-ink); }
.b2c-claim-menu button:hover { background: var(--b2c-soft); }
.b2c-claim-menu .b2c-claim-delete { color: #b91c1c; }
.b2c-claim-rows { background: #fff; border: 1px solid var(--b2c-border); border-radius: 16px; padding: 2px 8px 2px 16px; }
.b2c-claim-row { display: flex; align-items: center; gap: 8px; }
.b2c-claim-row + .b2c-claim-row { border-top: 1px solid var(--b2c-border); }
.b2c-claim-row > a { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; text-decoration: none; color: var(--b2c-ink); }
.b2c-claim-row strong { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b2c-claim-row small { display: block; color: var(--b2c-subtle); font-size: 12px; margin-top: 2px; }
.b2c-claim-row-owe { flex-shrink: 0; color: var(--b2c-muted); font-size: 13px; }
.b2c-claim-row .b2c-claim-menu { margin-left: 0; }
.b2c-claims-resolved { margin-top: 26px; }
.b2c-claims-resolved summary { cursor: pointer; font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--b2c-muted); }
.b2c-claims-empty { padding: 28px; background: #fff; border: 1px solid var(--b2c-border); border-radius: 17px; }
.b2c-claims-empty h2 { font-size: 16px; font-weight: 600; }
.b2c-claims-empty p { color: var(--b2c-muted); font-size: 14px; margin: 4px 0 16px; }
.b2c-claims-empty > div { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.b2c-claim-duplicate { padding: 14px 16px; border: 1px solid #bfdbfe; background: var(--b2c-soft); border-radius: 14px; margin-bottom: 12px; font-size: 13px; color: var(--b2c-ink); }
.b2c-claim-duplicate > div { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.b2c-claims-footnote { margin-top: 26px; color: var(--b2c-subtle); font-size: 11px; line-height: 1.6; text-align: center; }
@media (max-width: 767px) {
  .b2c-claims { padding-top: 0; }
  .b2c-claim { padding: 15px; }
  .b2c-claim-owe strong { font-size: 16px; }
  .b2c-claim-row-owe { font-size: 12px; }
}
.b2c-claim-title { font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--b2c-ink); overflow-wrap: anywhere; }
/* Chat list drawer and message styling, modeled on the Claude app. */
.chat-drawer-backdrop { position: fixed; inset: 0; z-index: 65; background: #0b0f1452; }
.b2c-shell #chat-sidebar { position: fixed; top: var(--b2c-banner); bottom: 0; left: 0; z-index: 70; width: min(86vw, 340px) !important; max-width: none !important; opacity: 1 !important; border: 0 !important; border-radius: 0; box-shadow: 0 0 40px #0b0f1426; transform: translateX(-105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s !important; }
.b2c-shell #chat-sidebar[data-open="true"] { transform: none; visibility: visible; transition: transform .25s ease !important; }
.b2c-shell #chat-sidebar .chat-drawer-inner { min-width: 0 !important; padding-bottom: env(safe-area-inset-bottom, 0px); }
.b2c-shell #chat-sidebar .chat-drawer-inner > .h-1 { display: none; }
.chat-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top, 0px)) 10px 2px 18px; }
.chat-drawer-head p { font-size: 20px; font-weight: 600; color: var(--b2c-ink); }
.chat-drawer-head button { padding: 8px; border-radius: 10px; color: var(--b2c-muted); }
.chat-drawer-head button:hover { background: var(--b2c-soft); color: var(--b2c-ink); }
.b2c-shell .chat-drawer-new { justify-content: center; padding: 10px 12px; font-size: 14px; border-radius: 12px; }
.chat-drawer-search { padding: 2px 12px 10px; }
.chat-drawer-search input { width: 100%; border: 1px solid var(--b2c-border); border-radius: 12px; padding: 9px 12px; font-size: 14px; background: var(--b2c-background); color: var(--b2c-ink); outline: none; }
.chat-drawer-search input:focus { border-color: var(--b2c-accent); background: #fff; }
.b2c-shell #sidebar-session-list > p:first-child { font-size: 12px; padding: 4px 18px 6px; color: var(--b2c-subtle); }
.b2c-shell .chat-row form:first-child button { font-size: 14px; padding: 10px 12px; color: var(--b2c-ink); }
.b2c-shell .chat-row form:first-child button[aria-current] { background: var(--b2c-soft); font-weight: 600; }
.b2c-shell .chat-row form:first-child button span + span { font-size: 11px; color: var(--b2c-subtle); }
.b2c-shell .chat-row-delete { background: transparent !important; border: 0 !important; color: var(--b2c-subtle) !important; font-size: 11px; padding: 6px 8px; }
.b2c-shell .chat-row-delete:hover { color: #b91c1c !important; }
.b2c-shell .chat-row-delete:focus-visible { opacity: 1; }
@media (hover: none) { .b2c-shell .chat-row-delete { opacity: .85; } }
.chat-drawer-empty, .chat-search-empty { padding: 8px 18px; font-size: 13px; color: var(--b2c-subtle); }
body.chat-drawer-open { overflow: hidden; }
.b2c-shell #new-chat-header-btn { order: 5; }
.b2c-shell .b2c-chat-layout #chat-card > div:nth-child(2) { gap: 8px; }
.b2c-chat-title { font-size: 15px; font-weight: 600; color: var(--b2c-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.b2c-shell .chat-user-bubble { background: #e6ecf4; color: var(--b2c-ink); border-radius: 18px; font-size: 15px; padding: 10px 15px; }
.b2c-shell .chat-user-bubble .text-gray-300 { color: var(--b2c-muted); }
.b2c-shell .ai-message { font-size: 15.5px; line-height: 1.7; color: var(--b2c-ink); max-width: 100%; }
@media (max-width: 767px) {
  .b2c-shell .b2c-chat-layout #chat-card > div:nth-child(2) .b2c-header-status { display: none; }
  .b2c-shell .ai-message { font-size: 15px; }
}
