:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1c1c1c;
  background: #fff;
  font-size: 16px;
  font-synthesis: none;
  --ink: #171717;
  --blue: #171717;
  --muted: #707070;
  --line: #e8e8e8;
  --surface: #f6f6f6;
  --sidebar: #f7f7f7;
  --radius: 14px;
  --reading-width: 800px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: var(--app-height, 100dvh); }
body { overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; -webkit-tap-highlight-color: transparent; }
input, textarea, select { min-width: 0; }
button { border: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .44; cursor: default; }
button[aria-disabled="true"] { opacity: .48; }
button, a, summary { -webkit-touch-callout: none; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible,
a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid #191919; outline-offset: 3px;
}
a { color: inherit; text-underline-offset: 3px; }
button svg, .chat-search > svg {
  width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.app {
  height: var(--app-height, 100dvh); max-width: 1760px; margin: auto;
  display: grid; grid-template-columns: 276px minmax(0, 1fr); background: #fff;
}
.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; }
.icon {
  width: 44px; min-width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: transparent; color: #595959; padding: 0;
}
.icon:hover, .text-button:hover { background: #ededed; color: #111; }
.primary, .secondary, .danger {
  min-height: 44px; padding: 11px 16px; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; border-radius: 11px; font-weight: 600;
  font-size: 14px; text-decoration: none; line-height: 1.4;
}
.primary, .danger { background: #171717; color: #fff; }
.primary:hover:not(:disabled), .danger:hover:not(:disabled), .send:hover:not(:disabled) { background: #363636; }
.secondary { color: #333; background: #f0f0f0; }
.secondary:hover:not(:disabled) { background: #e5e5e5; }
.text-button { color: #606060; background: transparent; min-height: 44px; padding: 8px 10px; border-radius: 9px; font-size: 13px; }
.danger-text { color: #303030; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; }
.mobile, .backdrop { display: none; }

/* Conversation navigation remains available while history scrolls. */
.sidebar {
  min-height: 0; min-width: 0; display: flex; flex-direction: column;
  background: var(--sidebar); border-right: 1px solid #ededed; padding: 22px 14px 12px;
}
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; min-height: 51px; padding: 0 10px; margin-bottom: 20px; }
.brand { min-width: 0; }
.brand-logo { display: block; width: 166px; max-width: 100%; height: 52px; }
.new { width: 100%; justify-content: flex-start; gap: 11px; margin: 0 0 12px; padding: 12px 15px; min-height: 46px; }
.chat-search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; margin-bottom: 21px; border: 1px solid #e0e0e0; border-radius: 11px; color: #707070; }
.chat-search:focus-within { border-color: #909090; background: #fff; }
.chat-search > svg { width: 17px; height: 17px; }
.chat-search input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: #222; font-size: 13px; padding: 10px 0; }
.chat-search input::placeholder { color: #707070; opacity: 1; }
.chat-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.chat-search .icon { width: 30px; min-width: 30px; height: 40px; margin-right: -8px; font-size: 22px; }
.navigation { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d1d1d1 transparent; padding-bottom: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 5px 7px 12px; min-height: 30px; }
.section-head h2 { font-size: 11px; font-weight: 650; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: #707070; margin: 0; }
.compact { width: 32px; min-width: 32px; height: 32px; font-size: 22px; border-radius: 8px; }
.all-projects { display: flex; align-items: center; gap: 9px; background: transparent; color: #383838; width: 100%; min-height: 44px; text-align: left; border-radius: 9px; padding: 9px 11px; font-size: 13px; }
.all-projects svg { width: 17px; height: 17px; color: #727272; }
.all-projects:hover, .project-row:hover { background: #eeeeee; }
.all-projects.active, .project-row.active { background: #eaeaea; color: #111; }
.count { font-size: 11px; color: #747474; background: #e8e8e8; border-radius: 6px; padding: 2px 6px; font-weight: 500; white-space: nowrap; }
.all-projects .count { margin-left: auto; }
.project-row { display: flex; align-items: center; border-radius: 9px; min-height: 42px; margin: 2px 0; padding-left: calc(min(var(--depth), 6) * 10px); }
.project-row button { color: inherit; background: transparent; flex-shrink: 0; height: 40px; border-radius: 7px; }
.project-row button:hover { background: #e4e4e4; }
.project-toggle { width: 24px; font-size: 15px; padding: 0; }
.project-select { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; padding: 0 3px; font-size: 13px; }
.project-edit { width: 28px; padding: 0; font-size: 18px; }
.project-add { width: 27px; padding: 0; font-size: 20px; }
.chat-heading { margin-top: 26px; margin-bottom: 6px; }
.history { min-width: 0; }
.chat-row { display: flex; align-items: center; gap: 0; border-radius: 9px; margin-bottom: 3px; }
.chat-row:has(.active) { background: #e6e6e6; }
.chat-row:hover { background: #ededed; }
.history button { display: flex; align-items: center; gap: 7px; min-height: 43px; border-radius: 9px; padding: 10px 11px; color: #424242; background: transparent; text-align: left; font-size: 13px; }
.history .chat-row > button:first-child { flex: 1; min-width: 0; }
.history button.active { color: #141414; font-weight: 600; }
.chat-row .chat-edit { width: 34px; flex: 0 0 34px; padding: 8px 2px; justify-content: center; font-size: 18px; color: #707070; }
.chat-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-kind { color: #737373; background: #e7e7e7; font-size: 10px; border-radius: 4px; padding: 2px 4px; flex-shrink: 0; }
.empty-hint, .history-empty { padding: 8px 12px; margin: 0; color: #707070; font-size: 12px; line-height: 1.65; }
.sidebar-footer { border-top: 1px solid #e6e6e6; padding-top: 9px; margin-top: 4px; flex-shrink: 0; }
.sidebar-link { display: flex; align-items: center; gap: 10px; background: transparent; color: #515151; width: 100%; min-height: 43px; padding: 9px 10px; border-radius: 9px; font-size: 12px; text-align: left; }
.sidebar-link:hover { background: #eaeaea; }
.sidebar-link svg { width: 18px; height: 18px; color: #707070; }
.sidebar-link strong, .sidebar-link small { margin-left: auto; text-align: right; font-size: 11px; font-weight: 500; color: #727272; font-variant-numeric: tabular-nums; }
.sidebar-link strong { color: #303030; font-weight: 650; }
.account { display: flex; align-items: center; gap: 9px; padding: 10px 2px 0 7px; margin-top: 7px; border-top: 1px solid #e9e9e9; min-width: 0; }
.avatar { width: 33px; height: 33px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #e6e6e6; color: #555; font-size: 10px; font-weight: 700; }
.account-label { min-width: 0; flex: 1; }
.account strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account small { display: block; color: #707070; font-size: 10px; margin-top: 3px; }
.account .icon { margin-left: auto; color: #707070; }
.local { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* Quiet header, with modes separate from request parameters. */
.topbar { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 28px 10px; flex-shrink: 0; }
.top-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.title-stack { min-width: 0; }
#current-chat-title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.provider-label { display: flex; align-items: center; gap: 5px; color: #707070; font-size: 11px; margin-top: 4px; }
.badge { color: #555; background: #eee; font-size: 9px; border-radius: 5px; padding: 4px 5px; font-weight: 600; white-space: nowrap; }
.mode-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #eaeaea; background: #f8f8f8; border-radius: 11px; flex-shrink: 0; }
.mode-choice { display: flex; }
.mode-choice > button { padding: 8px 14px; min-height: 36px; border-radius: 8px; background: transparent; color: #707070; font-size: 12px; font-weight: 600; }
.mode-choice > button:hover { color: #111; }
.mode-choice > button[aria-pressed="true"] { color: #111; background: #fff; box-shadow: 0 1px 3px #0000000f; }
.mode-switch .mode-help { border-radius: 8px; width: 34px; min-height: 36px; font-size: 12px; font-weight: 600; color: #707070; background: transparent; }
.mode-switch .mode-help:hover { background: #eaeaea; color: #111; }
.tools { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.tools .icon { color: #707070; }
.context-line { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 28px 4px; flex-shrink: 0; }
.project-path { min-width: 0; max-width: 70%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; border: 0; padding: 5px 0; min-height: 30px; background: transparent; color: #707070; font-size: 11px; text-align: left; }
.project-path:hover { color: #333; text-decoration: underline; text-underline-offset: 3px; }
#chat-options { font-size: 11px; color: #707070; min-height: 30px; padding: 4px 8px; }
.notice { margin: 8px 28px; border: 1px solid #ddd; background: #f7f7f7; border-radius: 9px; padding: 8px 12px; font-size: 12px; line-height: 1.5; color: #666; flex-shrink: 0; }

/* Readable messages; only the conversation body scrolls. */
.messages { flex: 1; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 30px 32px 34px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d7d7d7 transparent; }
.thread { width: 100%; max-width: var(--reading-width); margin: auto; display: flex; flex-direction: column; gap: 30px; }
.message { min-width: 0; max-width: 90%; line-height: 1.65; font-size: 15px; overflow-wrap: anywhere; white-space: normal; }
.message.user { align-self: flex-end; background: #f3f3f3; border-radius: 21px 21px 6px 21px; padding: 12px 19px; max-width: 83%; }
.message.assistant { align-self: flex-start; width: 100%; max-width: 100%; }
.message-text { white-space: pre-wrap; }
.role { font-size: 11px; color: #707070; font-weight: 600; letter-spacing: .02em; margin-bottom: 11px; }
.meta { font-size: 11px; line-height: 1.55; color: #707070; overflow-wrap: anywhere; }
.message > .meta { margin-top: 10px; }
.message.pending, .pending { color: #737373; }
.message-actions, .response-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.response-cost { font-size: 12px; color: #707070; }
.message-copy { min-height: 44px; min-width: 44px; background: transparent; color: #707070; padding: 8px; border-radius: 9px; font-size: 12px; }
.message-copy:hover { background: #f0f0f0; color: #222; }
.usage-details { color: #707070; font-size: 12px; line-height: 1.6; margin-top: 8px; }
.usage-details summary { cursor: pointer; padding: 5px 0; min-height: 28px; }
.usage-details[open] { border-left: 2px solid #e5e5e5; padding-left: 11px; }
.usage-details p { margin: 6px 0; }
.welcome { width: 100%; max-width: 690px; margin: clamp(22px, 7vh, 94px) auto 28px; }
.welcome-logo { display: block; width: 180px; max-width: 60%; height: 57px; margin-bottom: 32px; }
.welcome h1 { font-size: clamp(29px, 3vw, 39px); font-weight: 600; letter-spacing: -1.4px; line-height: 1.2; margin: 0 0 12px; }
.welcome > p { color: #707070; font-size: 14px; line-height: 1.65; max-width: 500px; margin: 0 0 32px; }
.prompts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prompt { text-align: left; border: 1px solid #e8e8e8; color: #424242; background: #fff; border-radius: 13px; padding: 17px 18px; font-size: 13px; font-weight: 500; line-height: 1.45; }
.prompt:hover { background: #fafafa; border-color: #bdbdbd; }
.prompt span { display: block; color: #707070; font-size: 11px; font-weight: 400; margin-top: 5px; }
.bigmark, .mark { width: 45px; height: 45px; display: grid; place-items: center; color: #fff; background: #111; border-radius: 13px; }
.eyebrow { color: #707070; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 650; margin: 0 0 8px; }

/* One composer row replaces repeated settings forms. */
.composer-wrap { flex-shrink: 0; position: relative; padding: 4px 32px max(15px, env(safe-area-inset-bottom)); background: #fff; }
.composer { width: 100%; max-width: var(--reading-width); margin: auto; padding: 15px 13px 9px; border: 1px solid #dcdcdc; border-radius: 22px; box-shadow: 0 3px 15px #00000004; background: #fff; }
.composer:focus-within { border-color: #b0b0b0; box-shadow: 0 2px 14px #00000007; }
.composer textarea { display: block; width: 100%; min-height: 58px; max-height: min(220px, 30dvh); resize: none; border: 0; color: #242424; background: transparent; padding: 3px 6px 10px; line-height: 1.55; font-size: 15px; }
.composer textarea:focus { outline: 0; }
.composer textarea::placeholder { color: #737373; opacity: 1; }
.composer-bottom { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.input-tools { min-width: 0; display: flex; align-items: center; gap: 4px; flex: 1; }
.input-tools .icon { color: #707070; flex-shrink: 0; }
.request-settings-button { min-width: 0; max-width: 270px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 9px; background: #f6f6f6; color: #494949; font-size: 13px; font-weight: 500; }
.request-settings-button:hover { background: #ececec; }
.request-settings-button { flex: 1; }
.request-settings-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-settings-button #request-payment-label { flex-shrink: 0; font-size: 12px; font-weight: 400; color: #666; border-left: 1px solid #ddd; padding-left: 6px; }
.request-settings-button svg { width: 13px; height: 13px; }
.verbosity-picker { padding: 8px 23px 8px 8px; border: 0; border-radius: 8px; color: #707070; background-color: transparent; min-height: 40px; max-width: 120px; font-size: 12px; cursor: pointer; }
.verbosity-picker:hover { background-color: #f6f6f6; color: #444; }
.send { display: grid; place-items: center; width: 42px; height: 42px; min-width: 42px; border-radius: 14px; color: #fff; background: #1a1a1a; padding: 0; flex-shrink: 0; }
.send svg { width: 20px; height: 20px; }
.send:disabled { opacity: 1; background: #e5e5e5; color: #b1b1b1; }
.composer-caption { max-width: var(--reading-width); margin: 9px auto 0; display: flex; justify-content: space-between; gap: 10px; color: #707070; font-size: 10px; line-height: 1.5; padding: 0 5px; }
.footnote { text-align: center; color: #707070; font-size: 10px; line-height: 1.5; max-width: var(--reading-width); margin: 7px auto 0; }
.usage-footnote { display: none; }
.status { max-width: var(--reading-width); margin: 8px auto 0; color: #595959; line-height: 1.5; font-size: 12px; overflow-wrap: anywhere; }
.status:empty { margin: 0; }
.storage-warning, .sync-error { color: #333; font-weight: 600; }
.scroll-latest { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; max-width: calc(100% - 28px); min-height: 40px; color: #4a4a4a; background: #fff; border: 1px solid #dedede; box-shadow: 0 3px 16px #0000000d; border-radius: 24px; font-size: 11px; padding: 8px 14px; white-space: nowrap; z-index: 2; }
.scroll-latest svg { width: 17px; height: 17px; }
.request-recovery, .sync-recovery { max-width: var(--reading-width); margin: 8px auto; padding: 12px 14px; border: 1px solid #8c8c8c; border-radius: 12px; background: #f8f8f8; font-size: 12px; line-height: 1.5; max-height: min(230px, 32dvh); overflow: auto; }
.request-recovery p, .sync-recovery p { margin: 0 0 8px; }
.request-recovery button, .sync-recovery button { font-size: 12px; margin: 3px 4px 3px 0; }
.composer.drag-active { outline: 2px dashed #111; outline-offset: 4px; }

/* Files are compact, identifiable, and removable before sending. */
.attachments { display: flex; flex-wrap: wrap; gap: 9px; max-width: 100%; }
.draft-attachments { max-height: 180px; overflow: auto; padding: 0 3px 12px; margin-bottom: 10px; border-bottom: 1px solid #ededed; }
.attachment { position: relative; min-width: 0; max-width: 100%; }
.attachment-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid #e2e2e2; border-radius: 12px; background: #fbfbfb; max-width: 320px; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.attachment-card .text-button { text-align: left; white-space: normal; padding: 4px 0; font-size: 12px; }
.attachment-card small, .attachment-help, .attachment-notice { color: #707070; font-size: 11px; line-height: 1.5; }
.attachment-name { font-size: 12px; font-weight: 500; color: #444; overflow-wrap: anywhere; min-width: 0; }
.attachment-thumb { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: #eee; }
.attachment-notice summary { cursor: pointer; padding: 5px 0; }
.attachment-notice p { margin: 5px 0; }
.message .attachments { margin-bottom: 9px; }
.message.user:has(.attachments) { padding: 10px 12px; }
.attachment.photo { width: 148px; }
.attachment.photo img { display: block; width: 100%; height: 112px; object-fit: cover; border-radius: 10px; background: #eee; }
.photo-open { display: block; width: 100%; padding: 0; border-radius: 10px; background: transparent; }
.attachment-caption { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #707070; margin: 5px 0 0; max-width: 250px; }
.attachment-remove { position: absolute; right: 3px; top: 3px; width: 30px; height: 30px; border-radius: 50%; background: #222d; color: #fff; font-size: 20px; }
.attachment.file { width: 260px; border: 1px solid #ddd; background: #fafafa; border-radius: 12px; padding: 12px; }
.file-header { display: flex; align-items: center; gap: 10px; padding-right: 20px; }
.file-symbol { width: 34px; height: 40px; border: 1px solid #aaa; border-radius: 5px; display: grid; place-items: center; font-size: 9px; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.file-info { min-width: 0; }
.file-info .attachment-caption { color: #444; font-size: 12px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; margin: 0; }
.file-size { font-size: 10px; color: #707070; margin-top: 3px; }
.file-download { display: inline-block; font-size: 12px; padding: 5px 0; margin-top: 8px; text-decoration: underline; }
.attachment.audio { width: 280px; padding: 10px; border: 1px solid #ddd; background: #f8f8f8; border-radius: 12px; }
.attachment.audio audio { width: 100%; height: 38px; display: block; margin-top: 6px; }
.attachment.audio .attachment-caption { padding-right: 25px; }
.attachment-preview img { max-width: 100%; max-height: 65dvh; object-fit: contain; display: block; margin: 0 auto 12px; }
.attachment-download .primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 12px; text-decoration: none; }
.attachment-download p { overflow-wrap: anywhere; }
.response-notice { font-size: 13px; line-height: 1.5; color: #666; border-left: 2px solid #ddd; padding-left: 12px; }
.recorder-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px; border-radius: 10px; background: #f4f4f4; font-size: 13px; margin-bottom: 8px; }
.record-dot { width: 9px; height: 9px; border-radius: 50%; background: #111; flex-shrink: 0; }
.recorder-panel strong { font-variant-numeric: tabular-nums; }
.recorder-panel .text-button { margin-left: auto; }

/* Work is a small optional planning area. */
.work-panel { margin: 8px 28px 0; border: 1px solid #e8e8e8; border-radius: 13px; background: #fcfcfc; max-height: 32dvh; overflow: auto; flex-shrink: 0; }
.work-panel summary { padding: 13px 15px; cursor: pointer; min-height: 44px; font-size: 12px; font-weight: 600; }
.work-panel summary .count { float: right; }
.work-content { padding: 0 15px 15px; }
.field-label { font-size: 12px; font-weight: 600; display: block; margin-bottom: 8px; }
.work-content textarea, .task-form input { width: 100%; border: 1px solid #ddd; border-radius: 9px; padding: 10px 12px; background: #fff; color: #333; line-height: 1.5; font-size: 14px; }
.work-content textarea { resize: vertical; min-height: 60px; max-height: 130px; }
.task-header { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.task-form { display: flex; gap: 8px; margin-top: 9px; }
.task-form .secondary { padding: 8px 12px; font-size: 12px; }
.task { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #eee; padding: 7px 0; font-size: 13px; }
.task label { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.task input { width: 18px; height: 18px; accent-color: #171717; flex-shrink: 0; }
.task.completed .task-text { text-decoration: line-through; color: #707070; }
.task .icon { width: 36px; min-width: 36px; height: 36px; font-size: 20px; }
.work-mode .welcome { margin-top: 18px; }
.work-mode .welcome-logo, .work-mode .bigmark { display: none; }

/* All dialogs share predictable labels, spacing, and scrolling. */
.dialog { width: min(500px, calc(100% - 32px)); max-width: none; max-height: min(88dvh, 900px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #e5e5e5; border-radius: 20px; padding: 26px; background: #fff; color: #222; box-shadow: 0 24px 100px #00000025; }
.dialog::backdrop { background: #15151566; backdrop-filter: blur(2px); }
.dialog h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.55px; font-weight: 650; margin: 0 0 20px; }
.dialog h3 { font-size: 16px; line-height: 1.4; margin: 24px 0 10px; }
.dialog p { font-size: 13px; color: #747474; line-height: 1.65; overflow-wrap: anywhere; }
.dialog label { display: block; font-size: 12px; color: #474747; font-weight: 600; margin: 0 0 8px; }
.dialog input:not([type="checkbox"]), .dialog select, .dialog textarea { display: block; width: 100%; border: 1px solid #dcdcdc; border-radius: 9px; color: #333; background: #fff; padding: 11px 12px; margin: 0 0 16px; max-width: 100%; min-height: 44px; line-height: 1.45; }
.dialog select { padding-right: 32px; cursor: pointer; }
.dialog textarea { resize: vertical; min-height: 110px; font: inherit; font-size: 14px; }
.dialog input[type="checkbox"] { width: 18px; height: 18px; accent-color: #171717; flex-shrink: 0; margin: 0; }
.dialog .check-label { display: flex; align-items: center; gap: 9px; font-weight: 500; min-height: 36px; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.dialog .actions .danger-text { margin-right: auto; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.dialog-heading h2 { margin: 8px 0 4px; }
.dialog-heading .icon { font-size: 25px; flex-shrink: 0; margin-top: -2px; margin-right: -7px; }
.dialog-heading .eyebrow { font-size: 10px; margin: 0; }
.dialog .dialog-intro { margin: 0 0 24px; }
.dialog .field-hint { font-size: 11px; margin-top: -9px; color: #707070; }
.request-settings-dialog .model-picker { display: block; }
.reasoning-help, .file-details { border-top: 1px solid #eee; margin-top: 10px; padding-top: 8px; color: #707070; font-size: 12px; }
.reasoning-help summary, .file-details summary { min-height: 40px; padding: 9px 0; cursor: pointer; }
.reasoning-help p, .file-details p { font-size: 12px; line-height: 1.65; }
.settings-dialog { width: min(540px, calc(100% - 32px)); }
.settings-balance { padding: 17px 18px 18px; background: #f7f7f7; border: 1px solid #ebebeb; border-radius: 14px; margin: 6px 0 18px; }
.settings-balance #wallet-summary { color: #383838; font-size: 13px; margin: 8px 0 16px; }
.settings-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-buttons .secondary { background: #e9e9e9; }
.settings-section { border-bottom: 1px solid #eaeaea; }
.settings-section > summary { cursor: pointer; list-style-position: inside; padding: 18px 0; font-size: 13px; font-weight: 600; min-height: 50px; }
.settings-section > summary span { float: right; font-size: 11px; font-weight: 400; color: #707070; margin: 1px 0 0 10px; }
.settings-section-body { padding: 1px 0 20px; }
.settings-section-body > :first-child { margin-top: 0; }
.settings-section-body #verbosity-note { font-size: 11px; margin-top: -4px; margin-bottom: 21px; }
.settings-section-body .check-label { margin-top: 20px; }
.settings-account-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 18px; }
.settings-account-actions #admin-open { flex-basis: 100%; margin-bottom: 8px; }
.settings-account-actions #logout, .settings-account-actions #clear { font-size: 12px; }
.promo-form { display: flex; align-items: flex-start; gap: 8px; }
.promo-form input { flex: 1; min-width: 0; }
.balance { display: flex; justify-content: space-between; gap: 16px; border-radius: 10px; background: #f5f5f5; padding: 13px; font-size: 12px; }
#settings-model { max-width: 65%; overflow-wrap: anywhere; text-align: right; }
#free-summary, #limit-note, #promo-status { font-size: 12px; }
#billing-note, #cost-total { font-size: 12px; }
.learn-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 68px; padding: 14px; border: 1px solid #ddd; border-radius: 12px; background: #fafafa; color: #333; font-size: 13px; font-weight: 600; text-align: left; margin-bottom: 18px; }
.learn-entry small { display: block; color: #707070; font-size: 11px; font-weight: 400; margin-top: 4px; }
.learn-entry > span:last-child { font-size: 24px; color: #707070; }
.guide-dialog { width: min(620px, calc(100% - 32px)); }
.guide-intro { margin-top: 0; }
.lesson { border: 1px solid #e2e2e2; border-radius: 12px; margin: 10px 0; }
.lesson summary { padding: 14px; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.45; min-height: 48px; }
.lesson > div { padding: 0 15px 16px; }
.lesson p:first-child { margin-top: 0; }
.lesson blockquote { margin: 12px 0; padding: 12px 14px; background: #f6f6f6; border-left: 2px solid #777; font-size: 13px; line-height: 1.7; }
.dialog .lesson-note { padding: 11px 12px; background: #f6f6f6; border-radius: 9px; font-size: 12px; color: #707070; }
.mode-dialog { width: min(620px, calc(100% - 32px)); }
.mode-explanations { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-explanations section { border: 1px solid #e1e1e1; border-radius: 12px; padding: 14px; }
.mode-explanations section.highlight { border-color: #444; background: #fafafa; }
.mode-explanations h3 { margin: 0 0 8px; }
.mode-explanations p { margin: 0 0 10px; }
.mode-explanations .example-label { font-size: 11px; margin: 0; }
.image-dialog { width: min(900px, calc(100% - 24px)); padding: 16px; }
.image-dialog > .icon { margin-left: auto; }
.image-dialog > img { display: block; max-width: 100%; max-height: 72dvh; object-fit: contain; margin: auto; }
.image-dialog p { margin: 10px 0 0; }

/* Admin and credits retain exact values without overflowing small screens. */
.billing-dialog { width: min(820px, calc(100% - 32px)); }
.billing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.billing-grid label { display: flex; flex-direction: column; gap: 5px; }
.billing-grid input, .billing-grid select { margin: 0; }
.billing-dialog button { margin: 5px 5px 5px 0; }
.billing-dialog table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 12px 0; }
.billing-dialog th, .billing-dialog td { border-bottom: 1px solid #e9e9e9; padding: 9px 8px; text-align: left; overflow-wrap: anywhere; }
.billing-dialog th { font-weight: 600; color: #666; }
.model-rates { min-width: 0; border: 1px solid #ddd; border-radius: 12px; padding: 14px; margin: 14px 0; }
.model-rates legend { font-size: 13px; font-weight: 600; padding: 0 4px; overflow-wrap: anywhere; }
.admin-promo-row { padding: 12px 0; border-bottom: 1px solid #e5e5e5; }
.stars-packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.stars-package, .stars-order { min-width: 0; border: 1px solid #ddd; border-radius: 13px; padding: 15px; margin: 6px 0; }
.stars-package h3 { font-size: 16px; margin: 0 0 8px; }
.stars-package p { font-size: 12px; }
.stars-package button { width: 100%; margin-right: 0; }
.stars-terms { white-space: pre-wrap; overflow-wrap: anywhere; }
.stars-order button { margin: 4px; }
.stars-admin { margin: 22px 0; padding-top: 15px; border-top: 1px solid #ddd; }
.stars-admin summary { cursor: pointer; font-size: 15px; font-weight: 600; min-height: 44px; padding: 10px 0; }
.stars-admin-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; align-items: center; border-bottom: 1px solid #e5e5e5; padding: 12px 0; }
.stars-admin-row strong { grid-column: 1 / -1; }
.stars-admin label { margin: 12px 0; }
#topup-content > select { width: 100%; }
#topup-status { overflow-wrap: anywhere; }
#storage-content progress, .storage-admin progress { display: block; width: 100%; height: 10px; margin: 16px 0; accent-color: #171717; }
.storage-plan { border: 1px solid #e0e0e0; border-radius: 13px; padding: 16px; margin: 12px 0; }
.storage-plan h3 { margin-top: 0; }
.storage-admin { border-top: 1px solid #e5e5e5; margin-top: 24px; padding-top: 14px; }
#storage-content > .primary, #storage-content > .secondary { margin: 6px 6px 6px 0; }

/* Markdown deliberately confines wide tables and code to the reply. */
.markdown { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.75; }
.markdown p { margin: 0 0 .8em; }
.markdown > :last-child { margin-bottom: 0; }
.markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 { font-weight: 650; line-height: 1.4; margin: 1.25em 0 .6em; }
.markdown h2 { font-size: 1.25em; }
.markdown h3 { font-size: 1.12em; }
.markdown h4, .markdown h5, .markdown h6 { font-size: 1em; }
.markdown ul, .markdown ol { margin: .7em 0; padding-left: 1.6em; }
.markdown li { margin: .35em 0; }
.markdown li p { margin: 0; }
.markdown blockquote { border-left: 2px solid #aaa; padding: .3em 1em; margin: .8em 0; color: #606060; }
.markdown code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em; background: #f0f0f0; border-radius: 4px; padding: .12em .32em; white-space: pre-wrap; }
.md-code { max-width: 100%; border: 1px solid #e1e1e1; border-radius: 11px; overflow: hidden; margin: 1em 0; background: #f8f8f8; }
.md-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #e5e5e5; padding: 5px 12px; color: #707070; font-size: 11px; }
.md-code-bar button { font-size: 11px; padding: 7px 8px; min-height: 36px; }
.markdown pre { margin: 0; padding: 16px; overflow-x: auto; white-space: pre; tab-size: 4; }
.markdown pre code { background: transparent; padding: 0; white-space: pre; overflow-wrap: normal; }
.md-table-scroll { max-width: 100%; overflow-x: auto; margin: .9em 0; }
.markdown table { width: 100%; border-collapse: collapse; font-size: .92em; }
.markdown th, .markdown td { border: 1px solid #e2e2e2; padding: 9px 12px; min-width: 90px; vertical-align: top; }
.markdown th { background: #f5f5f5; font-weight: 600; }
.markdown hr { border: 0; border-top: 1px solid #e3e3e3; margin: 1.2em 0; }

/* Authentication is a separate surface, never a blank disabled application. */
.auth-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; overflow: auto; background: #f6f6f6; }
.auth-card { width: min(430px, 100%); border: 1px solid #e3e3e3; border-radius: 22px; padding: 32px; background: #fff; }
.auth-card h1 { font-size: 28px; font-weight: 650; letter-spacing: -1px; margin: 0 0 15px; }
.auth-card p { font-size: 14px; line-height: 1.65; color: #707070; overflow-wrap: anywhere; }
.auth-card button, .auth-card a { width: 100%; margin-top: 10px; }
.auth-link { min-height: 46px; }
#auth-error { font-weight: 600; color: #333; }

@media (max-width: 1180px) {
  .app { grid-template-columns: 252px minmax(0, 1fr); }
  .sidebar { padding-left: 11px; padding-right: 11px; }
  .topbar { padding-left: 22px; padding-right: 22px; gap: 9px; }
  .messages { padding-left: 26px; padding-right: 26px; }
  .composer-wrap { padding-left: 24px; padding-right: 24px; }
  .context-line { padding-left: 24px; padding-right: 24px; }
  .keyboard-hint { display: none; }
  .composer-caption { justify-content: center; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .sidebar.open { display: flex; position: fixed; inset: 0 auto 0 0; width: min(322px, 88vw); height: var(--app-height, 100dvh); padding: max(15px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom)); z-index: 30; box-shadow: 20px 0 80px #00000015; }
  .sidebar-heading { padding-left: 8px; padding-right: 0; margin-bottom: 19px; }
  .sidebar-heading .brand-logo { width: 160px; }
  .backdrop.show { display: block; position: fixed; inset: 0; z-index: 29; background: #17171766; }
  .mobile { display: grid; }
  .topbar { padding-top: max(10px, env(safe-area-inset-top)); min-height: 70px; gap: 9px; }
  .sidebar .compact { width: 44px; height: 44px; }
  .sidebar .section-head { margin-bottom: 2px; }
  .sidebar .project-row button { min-height: 44px; }
  .sidebar .project-toggle, .sidebar .project-edit, .sidebar .project-add { width: 38px; }
  .sidebar .chat-row .chat-edit { width: 44px; flex-basis: 44px; min-height: 44px; }
  .sidebar .history button { min-height: 44px; }
  .sidebar-link { min-height: 44px; }
  .mode-choice > button { min-height: 40px; }
  .mode-switch .mode-help { min-height: 40px; width: 36px; }
  .chat-search .icon { min-width: 40px; min-height: 44px; }
  .welcome { margin-top: clamp(25px, 7vh, 70px); }
  .welcome-logo { width: 168px; height: 54px; }
  .composer textarea { font-size: 16px; }
}
@media (max-width: 600px) {
  .topbar { min-height: 64px; padding: max(8px, env(safe-area-inset-top)) 10px 7px; gap: 4px; flex-wrap: nowrap; }
  .top-title { min-width: 0; }
  #current-chat-title { font-size: 13px; letter-spacing: -.15px; }
  .provider-label { font-size: 10px; margin-top: 3px; }
  .tools { gap: 0; }
  #settings { display: none; }
  .topbar .tools .icon { width: 44px; min-width: 44px; }
  .mode-switch { padding: 2px; border-radius: 10px; gap: 0; margin-left: auto; }
  .mode-choice > button { min-height: 40px; padding: 8px 10px; font-size: 11px; }
  .mode-switch .mode-help { width: 32px; font-size: 11px; }
  .badge { display: none; }
  .context-line { min-height: 29px; padding: 0 19px 0; gap: 7px; }
  .project-path, #chat-options { font-size: 10px; min-height: 28px; }
  .messages { padding: 25px 19px 27px; }
  .thread { gap: 26px; }
  .message { font-size: 15px; }
  .message.user { max-width: 89%; padding: 11px 15px; border-radius: 19px 19px 5px 19px; }
  .role { font-size: 10px; margin-bottom: 9px; }
  .response-tools { gap: 4px; }
  .response-cost { font-size: 11px; }
  .welcome { margin-top: 27px; }
  .welcome-logo { width: 145px; height: 46px; margin-bottom: 27px; }
  .welcome h1 { font-size: 31px; letter-spacing: -1.1px; }
  .welcome > p { font-size: 13px; margin-bottom: 23px; }
  .prompts { gap: 8px; }
  .prompt { padding: 14px 13px; font-size: 12px; border-radius: 11px; }
  .prompt span { font-size: 10px; line-height: 1.5; }
  .composer-wrap { padding: 3px 10px max(10px, env(safe-area-inset-bottom)); }
  .composer { padding: 12px 8px 7px; border-radius: 20px; }
  .composer textarea { min-height: 53px; max-height: min(180px, 25dvh); padding-left: 8px; padding-right: 8px; }
  .composer-bottom { gap: 4px; }
  .input-tools { gap: 1px; }
  .request-settings-button { max-width: 175px; min-height: 44px; padding: 7px; font-size: 12px; gap: 4px; }
  .request-settings-button svg { width: 12px; height: 12px; }
  .verbosity-picker { min-height: 44px; max-width: 96px; padding-left: 6px; padding-right: 17px; font-size: 12px; }
  .send { width: 44px; height: 44px; min-width: 44px; border-radius: 14px; }
  .composer-caption { margin-top: 7px; font-size: 10px; }
  .footnote { font-size: 10px; margin-top: 4px; }
  .status { font-size: 11px; margin-top: 6px; padding: 0 5px; }
  .request-recovery, .sync-recovery { max-height: 28dvh; padding: 10px 12px; margin-top: 6px; }
  .scroll-latest { min-height: 44px; font-size: 11px; bottom: calc(100% + 7px); }
  .work-panel { margin: 7px 13px 0; max-height: 29dvh; }
  .work-panel summary { padding: 10px 12px; }
  .work-content { padding: 0 12px 12px; }
  .task-form input { font-size: 16px; }
  .work-content textarea { font-size: 16px; }
  .dialog { max-height: 90dvh; width: calc(100% - 20px); padding: 21px; border-radius: 18px; }
  .dialog h2 { font-size: 21px; }
  .dialog input:not([type="checkbox"]), .dialog select, .dialog textarea { font-size: 16px; }
  .dialog-heading { margin-bottom: 12px; }
  .dialog-heading .icon { margin-right: -8px; }
  .settings-section > summary span { font-size: 10px; }
  .settings-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .settings-buttons .primary, .settings-buttons .secondary { padding: 10px; font-size: 12px; }
  .billing-grid { grid-template-columns: 1fr; }
  .mode-explanations { grid-template-columns: 1fr; }
  .attachment-card { max-width: 100%; }
  .attachment.photo { width: 125px; }
  .attachment.photo img { height: 95px; }
  .draft-attachments { max-height: 140px; }
  .image-dialog { padding: 12px; }
  .auth-card { padding: 25px; }
  .notice { margin: 6px 14px; font-size: 11px; }
}
@media (max-width: 380px) {
  #new-mobile { display: none; }
  .topbar { gap: 3px; }
  .mode-choice > button { padding-left: 9px; padding-right: 9px; }
  .mode-switch .mode-help { width: 29px; }
  .input-tools { flex-wrap: wrap; column-gap: 2px; row-gap: 0; }
  .input-tools::after { content: ""; flex-basis: 100%; order: 2; height: 0; }
  .request-settings-button { max-width: none; }
  .verbosity-picker { order: 3; flex-basis: 110px; min-width: 110px; margin-left: 44px; }
  .composer-bottom { align-items: flex-end; }

  .input-tools .icon { width: 42px; min-width: 42px; }
  .composer-caption { font-size: 9px; }
  .settings-section > summary span { float: none; display: block; margin: 5px 0 0 16px; }
  .promo-form { flex-wrap: wrap; }
  .promo-form input { flex-basis: 100%; }
  .stars-packages { grid-template-columns: 1fr; }
  .dialog .actions .primary, .dialog .actions .secondary, .dialog .actions .danger { padding-left: 12px; padding-right: 12px; font-size: 12px; }
}
@media (max-height: 690px) {
  .sidebar { padding-top: 12px; }
  .sidebar-heading { margin-bottom: 12px; }
  .brand-logo { width: 143px; height: 45px; }
  .chat-search { margin-bottom: 11px; }
  .welcome { margin-top: 14px; }
  .welcome-logo { width: 145px; height: 46px; margin-bottom: 20px; }
  .welcome h1 { font-size: 29px; }
  .welcome > p { margin-bottom: 19px; }
  .prompt { padding: 12px; }
  .work-panel { max-height: 27dvh; }
  .composer textarea { min-height: 48px; }
}
@media (max-height: 470px) {
  .topbar { min-height: 51px; padding-top: 4px; padding-bottom: 3px; }
  .provider-label, .context-line, .composer-caption, .footnote { display: none; }
  .composer-wrap { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .composer { padding-top: 7px; }
  .composer textarea { min-height: 39px; max-height: 90px; }
  .welcome-logo { display: none; }
  .welcome { margin-top: 0; }
  .prompts { display: none; }
  .work-panel { max-height: 24dvh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Budget confirmation keeps the amount prominent before sending. */
.budget-amount { display: block; font-size: 30px; font-weight: 650; color: #202020; letter-spacing: -.8px; padding: 15px 0 7px; overflow-wrap: anywhere; }
.budget-details { border: 1px solid #e5e5e5; border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-size: 12px; color: #707070; line-height: 1.6; }
.budget-details summary { cursor: pointer; min-height: 36px; padding: 8px 0; }
.budget-details p { font-size: 12px; margin: 7px 0; }
.attachment-photo { align-items: flex-start; }

.provider-label img { display: block; width: 14px; height: 14px; object-fit: contain; flex-shrink: 0; }
/* Work jobs share the message scroller; the composer remains reachable on phones. */
.work-launch{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 24px;border-bottom:1px solid var(--line,#e7e7e7)}
.work-launch small{display:block;color:#717171;margin-top:4px;font-size:12px}
.work-job{border:1px solid #dedede;border-radius:16px;padding:18px;margin:14px auto;max-width:760px;overflow-wrap:anywhere;background:#fff}
.work-job h3{font-size:15px;margin:0 0 10px}.work-job .work-result{white-space:pre-wrap;line-height:1.6;margin:14px 0}
.work-job .actions{flex-wrap:wrap}.work-job details{margin-top:10px}.work-job .work-state{font-size:13px;font-weight:600}
#work-dialog textarea{width:100%;resize:vertical;min-height:100px}#work-inputs label{display:flex;align-items:center;gap:10px;margin:8px 0;overflow-wrap:anywhere}#work-inputs input{width:auto}
#work-quote-review{white-space:pre-line}#work-dialog-status{min-height:1.4em}#work-start:disabled{opacity:.5}.work-admin{border-top:1px solid #ddd;padding-top:14px;margin-top:20px}
@media(max-width:600px){.work-launch{padding:10px 16px;align-items:flex-start}.work-launch small{max-width:190px}.work-launch .primary{padding:10px;font-size:12px}.work-job{padding:14px}}

/* v0.10: chat actions at the top, model + effort next to the message. */
.topbar .tools { margin-left: auto; }
.topbar #chat-options { min-height:44px; border:1px solid #ececec; border-radius:50%; background:#fafafa; }
.context-line { color:#8a8a8a; }
#project-current { padding:0; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-trigger { display:flex; align-items:center; gap:10px; min-width:0; flex:1; text-align:left; padding:7px 0; border-radius:12px; background:transparent; color:inherit; }
.profile-trigger:hover { background:#ededed; }
.profile-trigger .account-label { display:flex; min-width:0; flex-direction:column; }
.profile-trigger .account-label strong { overflow:hidden; text-overflow:ellipsis; }
#add-home-screen { font-size:12px; }
.composer { border-radius:26px; box-shadow:0 2px 12px #00000004; }
.input-tools { flex:1; min-width:0; flex-wrap:nowrap; gap:8px; }
.input-tools::after { display:none; }
.request-settings-button { flex:0 1 auto; display:flex; align-items:center; gap:8px; border-radius:24px; padding:8px 13px; max-width:calc(100% - 50px); min-width:0; min-height:46px; background:#f4f4f4; color:#252525; }
.request-settings-button img { width:21px; height:21px; object-fit:contain; flex-shrink:0; mix-blend-mode:multiply; }
.model-button-copy { display:flex; align-items:center; gap:8px; min-width:0; }
#request-settings-label { font-weight:550; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#request-payment-label { display:inline; font-size:11px; color:#757575; padding-left:8px; border-left:1px solid #ddd; white-space:nowrap; }
.request-settings-button svg { width:13px; height:13px; }
.send { border-radius:50%; }
.composer-caption { display:flex; justify-content:center; align-items:center; gap:1px; margin:3px 0 0; }
#composer-wallet { color:#777; background:transparent; font-size:11px; min-height:36px; padding:7px; border-radius:12px; }
#composer-wallet:hover { background:#f4f4f4; }
.hint-button { display:inline-flex; justify-content:center; align-items:center; font-size:11px; color:#787878; width:34px; height:34px; flex-shrink:0; border-radius:50%; background:transparent; }
.hint-button::first-letter { border:1px solid #ddd; }
.hint-button:hover, .hint-button[aria-expanded="true"] { background:#ebebeb; color:#202020; }
.composer-hint { margin:0 auto 6px; padding:10px 14px; border-radius:12px; max-width:600px; font-size:12px; line-height:1.5; color:#686868; background:#f6f6f6; }
.footnote:has(#storage-label[hidden]) { display:none; }
.usage-footnote { display:none; }
.anchored-panel { position:fixed; inset:auto; margin:0; padding:10px; width:340px; max-width:calc(100vw - 24px); border:1px solid #e9e9e9; border-radius:23px; background:#fff; color:#232323; box-shadow:0 12px 48px #00000018,0 2px 5px #00000005; z-index:40; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.anchored-panel::backdrop { background:transparent; }
.popover-heading { display:flex; align-items:center; gap:4px; padding:0 3px 4px 10px; }
.popover-heading h2 { flex:1; margin:0; font-size:14px; font-weight:600; }
.popover-heading .icon { min-width:34px; width:34px; height:36px; font-size:24px; }
.menu-section-label { display:flex; align-items:center; justify-content:space-between; margin:0 7px; color:#888; font-size:11px; }
.choice-row { display:flex; align-items:center; justify-content:space-between; width:100%; text-align:left; color:#303030; background:transparent; border-radius:13px; padding:8px 12px; min-height:46px; gap:12px; }
.choice-row:hover { background:#f3f3f3; }
.choice-row[aria-pressed="true"] { background:#f2f2f2; }
.choice-copy { min-width:0; }
.choice-copy strong { display:block; font-size:13px; font-weight:550; line-height:1.5; }
.choice-copy small { display:block; font-size:11px; line-height:1.45; color:#818181; margin-top:2px; }
.choice-check { width:19px; flex-shrink:0; font-size:16px; font-weight:650; }
.settings-menu-rows { margin:7px 0; padding-top:7px; border-top:1px solid #eee; }
.settings-menu-row { display:flex; align-items:center; }
.settings-menu-row > .hint-button { width:32px; }
.settings-menu-link { flex:1; min-width:0; display:flex; align-items:center; gap:8px; min-height:44px; border-radius:12px; padding:8px 10px; background:transparent; font-size:13px; text-align:left; color:inherit; }
.settings-menu-link:hover { background:#f3f3f3; }
.setting-value { margin-left:auto; border-radius:15px; padding:5px 9px; font-size:11px; background:#f2f2f2; color:#767676; }
.chevron { color:#999; font-size:20px; }
#request-mode-controls { padding:4px; }
#request-mode-controls .mode-switch { margin:0; display:flex; width:100%; padding:3px; border-radius:16px; }
#request-mode-controls .mode-choice { flex:1; }
#request-mode-controls .mode-choice > button { width:100%; border-radius:12px; font-size:12px; min-height:36px; }
#request-mode-controls .mode-help { width:34px; }
.popover-help { padding:10px 12px; margin:8px 3px 2px; font-size:12px; line-height:1.6; color:#666; background:#f5f5f5; border-radius:12px; }
.chat-menu { width:268px; padding:10px; border-radius:20px; }
.menu-caption { color:#919191; font-size:12px; padding:7px 10px; margin:0 0 4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-menu > button { display:flex; width:100%; gap:16px; justify-content:space-between; align-items:center; padding:10px 12px; min-height:44px; color:#363636; font-size:13px; background:transparent; border-radius:11px; text-align:left; }
.chat-menu > button:hover { background:#f3f3f3; }
.chat-menu > button > span { color:#888; font-size:19px; }
.chat-menu > .danger-text { color:#a54444; text-decoration:none; border-top:1px solid #f0f0f0; margin-top:5px; border-radius:0 0 11px 11px; }
.profile-dialog { width:min(660px,calc(100% - 24px)); padding:26px; background:#fcfcfc; }
.profile-identity { display:flex; align-items:center; gap:14px; margin:15px 0 24px; }
.profile-identity .avatar { width:54px; height:54px; border-radius:50%; font-size:13px; }
.profile-identity > div:last-child { min-width:0; }
.profile-identity strong { display:block; font-size:18px; overflow-wrap:anywhere; }
#profile-copy-id { margin-left:-9px; color:#868686; font-size:11px; }
.profile-card { border:1px solid #e9e9e9; border-radius:21px; background:#fff; padding:17px 19px; box-shadow:0 2px 3px #00000003; margin:12px 0; }
.profile-card-heading { display:flex; align-items:center; color:#7b7b7b; font-size:12px; }
.profile-card-value { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:5px 0 0; }
.profile-card-value > strong { font-size:27px; letter-spacing:-.7px; overflow-wrap:anywhere; }
.profile-card-value .primary, .profile-card-value .secondary { border-radius:25px; padding:11px 18px; }
#profile-storage { font-size:21px; }
.profile-card p { margin:8px 0 0; font-size:11px; }
#profile-history { display:flex; align-items:center; gap:8px; width:100%; margin:10px 0 0; min-height:44px; font-size:13px; text-align:left; }
#profile-history-status { color:#555; }
.work-reconciliation-status { color:#555; font-size:13px; line-height:1.5; margin:6px 0 12px; }
.work-admin-job { padding:8px 0; border-bottom:1px solid #eee; overflow-wrap:anywhere; }
#profile-storage-progress { width:100%; height:6px; accent-color:#272727; border:0; margin-top:19px; }
.profile-files-heading { display:flex; align-items:center; gap:6px; margin-top:23px; }
.profile-files-heading h3 { flex:1; font-size:14px; margin:0; }
.profile-files-heading .text-button { font-size:11px; padding:8px; }
.dialog .profile-delete-note { font-size:11px; line-height:1.55; margin:6px 0 12px; }
.profile-file { display:flex; align-items:center; gap:8px; padding:13px 0; border-bottom:1px solid #ececec; }
.profile-file-info { min-width:0; flex:1; }
.profile-file-info strong { display:block; font-size:12px; line-height:1.6; overflow-wrap:anywhere; font-weight:550; }
.profile-file-info small { display:block; font-size:10px; color:#888; margin-top:3px; line-height:1.5; }
.profile-file-actions { display:flex; align-items:center; }
.profile-file-actions .text-button { font-size:11px; padding:8px; }
.profile-actions { margin-top:20px; border-top:1px solid #eee; padding-top:16px; }
.profile-actions #settings { display:inline-flex; }
@media(max-width:600px){
 .composer { padding:12px 9px 8px; border-radius:25px; }
 .composer-bottom { align-items:center; }
 .request-settings-button { min-height:44px; padding:7px 10px; gap:6px; }
 .model-button-copy { display:flex; flex-direction:column; gap:1px; align-items:flex-start; }
 #request-settings-label { font-size:11px; }
 #request-payment-label { border:0; padding:0; font-size:9px; }
 .input-tools { gap:5px; }
 #composer-wallet { font-size:10px; min-height:32px; }
 .composer-caption .hint-button { height:30px; width:28px; }
 .profile-dialog { padding:19px; }
 .profile-card { padding:13px 15px; }
 .profile-card-value > strong { font-size:23px; }
 #profile-storage { font-size:16px; }
 .profile-card-value .primary,.profile-card-value .secondary { font-size:11px; padding:10px 12px; }
 .profile-file { flex-wrap:wrap; }
 .profile-file-info { flex-basis:100%; }
 .profile-file-actions { margin-left:-8px; }
 .profile-file-actions .text-button { min-height:34px; }
 .chat-menu #new-mobile { display:flex; }
}
@media(max-height:470px){.anchored-panel{border-radius:16px}.choice-row{min-height:43px}.composer-caption{display:flex}}
#profile-storage-progress { appearance:none; border-radius:6px; background:#ececec; overflow:hidden; }
#profile-storage-progress::-webkit-progress-bar { background:#ececec; border-radius:6px; }
#profile-storage-progress::-webkit-progress-value { background:#333; border-radius:6px; }
#profile-storage-progress::-moz-progress-bar { background:#333; border-radius:6px; }

/* v0.11 — compact navigation and full-screen profile. */
.sidebar,.sidebar.open { padding-top:max(10px,env(safe-area-inset-top)); padding-bottom:max(8px,env(safe-area-inset-bottom)); }
.sidebar-heading { margin-bottom:8px; min-height:40px; }
.sidebar-heading .brand-logo { width:139px; height:38px; }
.sidebar-tools { display:flex; gap:6px; align-items:stretch; flex-shrink:0; }
.sidebar-tools .new { margin:0; flex:1; width:auto; min-width:44px; padding:8px 12px; min-height:44px; white-space:nowrap; gap:6px; overflow:hidden; transition:flex .18s ease,width .18s ease; }
.sidebar-tools .new > span:first-child { font-size:21px; line-height:1; }
.sidebar-tools .chat-search { margin:0; min-width:44px; flex:0 0 44px; padding:0; gap:0; transition:flex .18s ease; overflow:hidden; }
.sidebar-tools .chat-search .icon { flex:0 0 42px; min-width:42px; width:42px; height:42px; }
.sidebar-tools .chat-search input { width:0; }
.sidebar-tools.searching .new { flex:0 0 44px; padding:0; justify-content:center; }
.sidebar-tools.searching #new-label { display:none; }
.sidebar-tools.searching .chat-search { flex:1; }
.sidebar-tools.searching .chat-search input { width:100%; }
.sidebar-tools .chat-search #chat-search-clear { flex-basis:32px; width:32px; min-width:32px; }
.home-shortcut { min-height:34px; padding:5px 7px; font-size:11px; margin:3px 0; flex-shrink:0; }
.home-shortcut svg { width:15px; height:15px; }
.navigation-wrap { flex:1; min-height:0; position:relative; display:flex; }
.navigation { width:100%; padding-bottom:26px; }
.navigation-more { position:absolute; bottom:0; left:0; width:100%; min-height:32px; padding:10px 4px 3px; font-size:11px; background:linear-gradient(transparent,var(--sidebar) 36%); color:#555; text-align:center; }
.sidebar .section-head { min-height:30px; margin-top:4px; }
.sidebar .section-head .icon { height:32px; min-height:32px; }
.sidebar .chat-heading { margin-top:8px; }
.sidebar .empty-hint { font-size:11px; padding:4px 10px; }
.sidebar .project-row button,.sidebar .history button,.sidebar .chat-row .chat-edit { min-height:42px; padding-top:7px; padding-bottom:7px; }
.sidebar-footer { padding-top:5px; margin-top:0; }
.sidebar-footer > .sidebar-link { display:none; }
.sidebar-footer .account { margin-top:0; padding:3px 0; border:0; }
.sidebar-footer .account .avatar { width:30px; height:30px; }
.account-label small { display:none; }
.profile-trigger { min-height:44px; }
.page-dialog { position:fixed; inset:0; margin:0; width:100%; height:var(--app-height,100dvh); max-width:none; max-height:none; border:0; border-radius:0; box-shadow:none; background:#fff; padding:0; overflow:auto; }
.page-dialog::backdrop { background:#fff; backdrop-filter:none; }
.page-content { max-width:760px; margin:0 auto; padding:0 24px max(30px,env(safe-area-inset-bottom)); }
.page-content.admin-page { max-width:1200px; }
.page-heading { display:flex; align-items:center; gap:12px; padding:16px 0; position:sticky; top:0; background:#fff; z-index:2; border-bottom:1px solid #eee; }
.page-heading h2 { font-size:23px; margin:0; }
.page-heading .icon { font-size:32px; flex-shrink:0; }
.profile-card-actions { display:flex; flex-direction:column; gap:2px; align-items:stretch; min-width:150px; }
.profile-card-actions .text-button { font-size:11px; padding:7px 4px; min-height:36px; }
.profile-card-value { align-items:flex-start; }
.profile-card-value > strong { padding-top:8px; }
.hint-button::first-letter { border:0; }
.hint-button,.mode-help { border:0; border-radius:8px; background:transparent; }
.help-dialog { max-width:480px; }
.help-dialog::backdrop { background:#15151566; backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); }
.toast { position:fixed; top:max(14px,env(safe-area-inset-top)); left:50%; transform:translateX(-50%); z-index:120; width:max-content; max-width:calc(100% - 28px); display:flex; gap:14px; align-items:center; background:#262626; color:#fff; padding:12px 14px; border-radius:14px; box-shadow:0 6px 28px #0003; font-size:13px; }
.toast button { color:#fff; background:transparent; min-width:32px; height:32px; font-size:22px; }
.toast #status { margin:0; padding:0; }
.composer-wrap .footnote { display:none; }
.sync-recovery,.request-recovery { position:fixed; bottom:12px; left:50%; transform:translateX(-50%); z-index:55; width:min(560px,calc(100vw - 24px)); max-height:40dvh; overflow:auto; background:#fff; border:1px solid #ddd; box-shadow:0 8px 40px #0002; border-radius:16px; padding:14px; }
.temporary-banner { display:flex; align-items:center; gap:5px; padding:3px 18px; color:#555; background:#f5f5f5; font-size:12px; border-bottom:1px dashed #ccc; }
.temporary-banner .text-button { margin-left:auto; min-height:36px; padding:5px 8px; font-size:12px; }
#temporary-toggle[aria-pressed="true"] { background:#e8e8e8; border:1px dashed #555; }
#request-mode-controls { border-bottom:1px solid #eee; margin-bottom:5px; }
#request-settings-dialog .mode-switch { display:flex; }
#request-settings-dialog .mode-choice { display:block; }
#request-settings-dialog .mode-help { display:block; }
#move-create-project { width:100%; }
#request-settings-label { white-space:normal; }
@media(max-width:600px){
 .page-content { padding-left:16px; padding-right:16px; }
 .page-dialog { padding:0; width:100%; border-radius:0; max-height:none; }
 .page-heading { padding:10px 0; }
 .profile-card-actions { min-width:120px; }
 .profile-card-actions .text-button { font-size:10px; }
 .profile-card-value > strong { font-size:21px; }
 #profile-storage { font-size:15px; }
 #temporary-toggle { width:38px; min-width:38px; }
 .topbar .tools { gap:0; }
 #request-settings-label { max-width:165px; font-size:11px; }
}
@media(prefers-reduced-motion:reduce){.sidebar-tools .new,.sidebar-tools .chat-search{transition:none}}

/* v0.12 — consistent help affordances, compact lists and quiet transitions. */
.chat-title-label{font-size:11px;color:#858585;font-weight:400;line-height:1.5}
.top-title .title-stack{display:flex;flex-direction:column;gap:1px}
.sidebar .brand-logo{mix-blend-mode:multiply}
.hint-button,.mode-switch .mode-help,#request-mode-controls .mode-help{display:inline-flex!important;align-items:center;justify-content:center;border:1px solid #c9c9c9;border-radius:50%;background:transparent;width:25px!important;min-width:25px;height:25px!important;min-height:25px;font-size:12px;line-height:1;padding:0;margin:4px;color:#747474}
.hint-button:hover,.mode-switch .mode-help:hover{background:#eee;border-color:#909090}
#help-text{white-space:pre-line;line-height:1.65}
#help-dialog.page-dialog{padding:max(22px,env(safe-area-inset-top)) max(20px,calc((100vw - 760px)/2))}
.profile-card-actions{gap:8px}.profile-card-actions .secondary{font-size:12px;min-height:38px;padding:8px 12px;background:#efefef;color:#222;border:0;border-radius:12px}
.profile-links{border:1px solid #eee;border-radius:20px;overflow:hidden;margin:20px 0}
.page-link{width:100%;display:flex;align-items:center;gap:14px;min-height:62px;padding:15px 18px;text-align:left;background:white;color:#242424;border-radius:0;border-bottom:1px solid #f1f1f1;font-size:15px}
.page-link:last-child{border-bottom:0}.page-link:hover{background:#f7f7f7}.page-link>span:nth-child(2){flex:1}.page-link small{display:block;color:#858585;font-size:12px;margin-top:5px}.page-link>span:last-child{color:#9a9a9a}.row-icon{display:grid;place-items:center;width:26px;flex:0 0 26px;font-size:23px;font-weight:400}
.section-toggle{background:transparent;color:#858585;text-align:left;font-size:12px;min-height:32px;padding:0 4px;white-space:nowrap}.section-all{background:transparent;color:#8a8a8a;font-size:10px;min-height:32px;padding:0 4px;margin-left:auto;white-space:nowrap}
.section-head{gap:2px}.section-toggle>span:last-child{display:inline-block;font-size:13px;margin-left:2px}.section-toggle[aria-expanded=false]>span:last-child{transform:translateX(1px)}
.section-body{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows .22s ease,opacity .2s ease}.section-body>div{min-height:0;overflow:hidden}.section-body.collapsed{grid-template-rows:0fr;opacity:0}
.directory-list{margin:16px 0}.directory-list .chat-row{border-bottom:1px solid #f0f0f0}.directory-list .chat-row>button:first-child{display:flex;align-items:center;gap:10px;min-width:0;flex:1;padding:17px 12px;background:white;text-align:left;border-radius:10px}.directory-list .chat-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.directory-list .chat-edit{width:44px;flex-shrink:0}.directory-project{display:flex;align-items:center;border-bottom:1px solid #eee}.directory-project .page-link{flex:1;min-width:0;overflow-wrap:anywhere}.directory-project .icon{flex-shrink:0}
.analytics-period{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0}.analytics-period label{display:flex;flex:1;min-width:120px;flex-direction:column;gap:6px;color:#777;font-size:12px}.analytics-period input{width:100%;min-width:0}.analytics-total{font-size:32px!important;letter-spacing:-1px}.table-scroll{max-height:340px;overflow:auto;border:1px solid #eee;border-radius:14px}.spending-table{width:100%;border-collapse:collapse;font-size:13px}.spending-table th,.spending-table td{padding:13px 15px;border-bottom:1px solid #eee;text-align:left}.spending-table th{position:sticky;top:0;background:#f7f7f7;color:#777}.spending-table td:last-child,.spending-table th:last-child{text-align:right;white-space:nowrap}.release-note{padding:16px 0;border-bottom:1px solid #eee}.release-note p{line-height:1.65;color:#666}.export-files{display:flex;align-items:center;justify-content:space-between;padding:20px 0;gap:20px}.export-files input{width:22px;height:22px}.admin-review{padding:20px 0}.admin-review>button{margin:4px}.admin-section h3:first-child{margin-top:20px}
@keyframes page-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.page-enter,.admin-section:not([hidden]){animation:page-enter .18s ease}
dialog{opacity:0;transform:translateY(8px);transition:opacity .18s ease,transform .18s ease,display .18s allow-discrete,overlay .18s allow-discrete}
dialog[open]{opacity:1;transform:translateY(0)}dialog.page-dialog{transform:translateX(12px)}dialog.page-dialog[open]{transform:translateX(0)}dialog::backdrop{transition:opacity .18s ease,display .18s allow-discrete,overlay .18s allow-discrete;opacity:0}dialog[open]::backdrop{opacity:1}
@starting-style{dialog[open]{opacity:0;transform:translateY(8px)}dialog.page-dialog[open]{transform:translateX(12px)}dialog[open]::backdrop{opacity:0}}
@media(max-width:860px){.sidebar,.sidebar.open{display:flex;position:fixed;inset:0 auto 0 0;width:min(322px,88vw);height:var(--app-height,100dvh);z-index:30;transform:translateX(-105%);visibility:hidden;transition:transform .24s cubic-bezier(.2,.7,.2,1),visibility .24s;will-change:transform}.sidebar.open{transform:translateX(0);visibility:visible}.profile-card-value{gap:14px}.profile-card-actions{min-width:125px;max-width:160px}.profile-card-actions .secondary{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* v0.13: stable menus, aligned navigation and readable account pages. */
.navigation-toolbar{display:flex;justify-content:flex-end;margin:0 4px 4px;flex-shrink:0}
.navigation-toolbar .text-button{font-size:11px;min-height:30px;padding:4px 8px;color:#888}
.sidebar .section-head{display:grid;grid-template-columns:minmax(0,1fr) 88px 32px;gap:0;margin-left:4px;margin-right:0}
.sidebar .section-all{grid-column:2;width:88px;margin-left:0;text-align:right;padding-right:2px;font-size:10px}
.sidebar .section-head>.icon{grid-column:3;width:32px;min-width:32px;padding:0}
.section-toggle>span:last-child{transform:rotate(90deg);transition:transform .2s ease;margin-left:4px;font-size:17px;vertical-align:-1px}
.section-toggle[aria-expanded=false]>span:last-child{transform:rotate(0)}
.project-row{padding-left:0!important}.project-row .project-select{padding-left:10px}
.profile-identity>div:nth-child(2){min-width:0;flex:1}
.profile-identity .home-shortcut{width:112px;min-width:90px;margin:0 0 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px 5px;font-size:10px;line-height:1.4;text-align:center;background:#f5f5f5;border-radius:14px}
.profile-identity .home-shortcut svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5}
.profile-identity .home-shortcut span{flex:0;white-space:normal}
.directory-list .directory-more{width:44px;min-width:44px;height:44px;min-height:44px;flex:0 0 44px;display:grid;place-items:center;padding:0;background:transparent;color:#595959;border-radius:12px;font-size:18px}
.directory-list .directory-more:hover{background:#ededed}
.analytics-period{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end}
.analytics-period label{min-width:0;width:100%;font-size:13px}
.analytics-period input{width:100%;min-height:48px;font-size:16px;box-sizing:border-box;padding:12px}
.analytics-period>button{grid-column:1/-1;justify-self:end;min-width:120px}
.analytics-group>.table-scroll{margin:0 14px 16px}.analytics-group summary{font-size:15px}
.model-rates>summary,.package-editor>summary{cursor:pointer;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.model-rates>.billing-grid{padding-top:18px}.package-editor{border:1px solid #ddd;border-radius:12px;margin:14px 0;padding:14px;min-width:0}
.package-editor .stars-admin-row{border:0;padding:16px 0 0;margin:0}.package-editor .storage-plan{border:0;margin:0;padding:18px 0 0}
.admin-section label>.hint-button{display:inline-grid;place-items:center;margin:0 0 3px;align-self:flex-start}
.admin-user-search{display:flex;gap:10px;align-items:center;margin:16px 0}.admin-user-search input{min-width:0;flex:1}.admin-user-search button{flex-shrink:0}
.promo-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:16px 0;border-bottom:1px solid #eee;font-size:14px}.promo-history-row strong{overflow-wrap:anywhere}.promo-history-row small{grid-column:1/-1;color:#888}.promo-history-row>span{text-align:right;font-size:13px}
#promo-history{margin-top:30px}.api-balance-value{font-size:32px!important;letter-spacing:-.7px}.api-balance-form{margin:22px 0;display:grid;gap:12px}.api-balance-form input,.api-balance-form select{margin:0}.api-balance-form button{justify-self:end}.api-balance-panel>a,.api-balance-panel>button{margin:4px 8px 4px 0}.support-link{margin:16px 0}
@media(max-width:540px){.analytics-period{grid-template-columns:minmax(0,1fr)}.analytics-period input{min-width:100%;max-width:100%}.profile-identity{gap:10px}.profile-identity .avatar{width:42px;height:42px;flex-shrink:0}.profile-identity strong{font-size:16px}.profile-identity .home-shortcut{width:92px;min-width:82px}.profile-identity #profile-copy-id{font-size:11px;padding-left:0}.admin-user-search{flex-wrap:wrap}.admin-user-search input{flex:1 1 160px}.promo-history-row{grid-template-columns:minmax(0,1fr)}.promo-history-row>span{text-align:left}.promo-history-row small{grid-column:auto}}

/* v0.14: stable controls, account pages and real tool switches */
.navigation-toolbar{padding-top:16px;padding-bottom:14px}
.chat-search #search-open{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0}
.chat-search #chat-search-clear{margin-right:8px;flex:0 0 36px}
.chat-search input::-webkit-search-cancel-button{display:none}
.tool-switches{border-block:1px solid var(--border,#e5e5e5);margin:12px 0;padding:6px 0}
.tool-switch-row{display:flex;align-items:center;gap:10px;min-height:52px;padding:6px 0}
.tool-switch-row>span:first-child{flex:1}
.tool-switch-row input[role=switch]{appearance:none;width:46px;height:28px;min-width:46px;border-radius:16px;background:#d8d8d8;border:0;position:relative;cursor:pointer;transition:background .2s}
.tool-switch-row input[role=switch]::after{content:'';position:absolute;width:22px;height:22px;border-radius:50%;top:3px;left:3px;background:white;box-shadow:0 1px 4px #0002;transition:transform .2s}
.tool-switch-row input[role=switch]:checked{background:#181818}
.tool-switch-row input[role=switch]:checked::after{transform:translateX(18px)}
.tool-switch-row input:focus-visible{outline:2px solid #555;outline-offset:3px}
.personal-form{display:grid;gap:16px;max-width:760px}.profile-field{display:grid;gap:8px;font-size:14px}.profile-field input,.profile-field select,.profile-field textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #ddd;border-radius:12px;font:inherit;background:#fff}.profile-field textarea{min-height:110px;resize:vertical}
.memory-facts{display:grid;gap:12px}.memory-fact{display:flex;align-items:center;gap:8px}.memory-fact textarea{flex:1;min-width:0;min-height:70px;padding:12px;border-radius:12px;border:1px solid #ddd;font:inherit}.lesson .check-label{display:flex;gap:10px;padding:10px 14px;overflow-wrap:anywhere}
.notification.unread{border-left:3px solid #171717}.notification p{white-space:pre-wrap}
.onboarding-dialog{max-width:460px;margin:auto auto max(24px,env(safe-area-inset-bottom));}.onboarding-dialog::backdrop{background:#0005;backdrop-filter:none}.tour-target{outline:3px solid #f4a45b!important;outline-offset:6px;box-shadow:0 0 0 8px #fff!important}
.cost-table-wrap{overflow-x:auto;width:100%}.cost-table{border-collapse:collapse;min-width:530px;width:100%;font-size:14px}.cost-table td,.cost-table th{padding:12px 10px;text-align:left;border-bottom:1px solid #ddd;vertical-align:top}.cost-table th{background:#f5f5f5;font-weight:600}
.answer-sources{font-size:13px;margin:12px 0}.source-link{display:block;overflow-wrap:anywhere;padding:6px 0}.work-stages{padding-left:20px;font-size:13px;color:#757575;line-height:1.9}.stage-done{color:#24583d}
@media(prefers-reduced-motion:reduce){.tool-switch-row input,.tool-switch-row input::after{transition:none}}
.notification-bell{position:relative}.notification-bell .row-icon{margin:0;width:22px;height:22px}.notification-bell.has-unread::after{content:'';position:absolute;top:8px;right:8px;width:7px;height:7px;border-radius:50%;background:#d8652e;border:2px solid white}

/* v0.15: stable progress, compact answers, and an unobstructed guided tour. */
.answer-link{color:#1769c2;text-decoration:none;overflow-wrap:anywhere}.answer-link:hover,.answer-link:focus-visible{text-decoration:underline}
.response-tools{align-items:flex-start}.response-tools .usage-details{margin:0;font-size:12px;flex:1}.usage-details summary{min-height:44px;padding:8px;cursor:pointer;list-style:none;color:#707070;display:flex;align-items:center}.usage-details[open]{min-width:0}.usage-details p{font-size:12px;line-height:1.55}
.work-result,.work-job>h3{font-size:15px;line-height:1.65}
.processing-response{display:flex;align-items:center;gap:16px;padding:18px 8px;min-height:62px;color:#777;font-size:14px}
.processing-dots{display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:10px 0 currentColor,20px 0 currentColor;margin-right:20px;animation:processing-pulse 1.2s ease-in-out infinite}
@keyframes processing-pulse{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}
#send.is-processing{position:relative}#send.is-processing>svg{visibility:hidden}#send.is-processing::after{content:'';position:absolute;inset:12px;border:2px solid #bbb;border-top-color:#333;border-radius:50%;animation:processing-spin .9s linear infinite}
@keyframes processing-spin{to{transform:rotate(360deg)}}
.onboarding-dialog{position:fixed;margin:0;padding:20px;border-radius:22px;overflow:visible;max-height:none}.onboarding-dialog>p,.onboarding-dialog>h2,.onboarding-dialog>.actions{position:relative}.onboarding-dialog>p:not(.meta){max-height:30vh;overflow:auto;font-size:15px;line-height:1.55}.onboarding-dialog::backdrop{background:#0002;backdrop-filter:none}.onboarding-dialog .actions{gap:8px;flex-wrap:wrap}.tour-target{outline:none!important;box-shadow:none!important}.tour-highlight{position:fixed;border:3px solid #e77e2a;border-radius:16px;pointer-events:none;box-shadow:0 0 0 5px #fff9;animation:tour-pulse 1.2s ease-in-out infinite;background:transparent}
@keyframes tour-pulse{0%,100%{border-color:#df761e;box-shadow:0 0 0 4px #f99b4533}50%{border-color:#ffac50;box-shadow:0 0 0 10px #f99b4566}}
.storage-expand-action{white-space:nowrap;margin:6px 10px}.admin-reserve{padding:14px;border:1px solid #e8e8e8;border-radius:14px;margin:10px 0;overflow-wrap:anywhere}.admin-reserve p{margin:6px 0}
@media(prefers-reduced-motion:reduce){.tour-highlight,.processing-dots,#send.is-processing::after{animation:none}.tour-highlight{border-width:4px}.processing-dots{opacity:1}}
.onboarding-dialog,.onboarding-dialog[open]{transform:none!important;transition:opacity .18s ease,display .18s allow-discrete,overlay .18s allow-discrete}
.toast .storage-expand-action{font-size:14px;font-weight:600;min-height:40px;height:auto;border:1px solid #ffffff66;border-radius:10px;padding:8px 12px}
/* v0.17: subtle placeholder, profile fields and Telegram avatar */
#input::placeholder{color:#a5a5a5;opacity:1}
#input:focus::placeholder{color:transparent;opacity:0}
.profile-dialog input:focus,.profile-dialog textarea:focus,.page-dialog .profile-field input:focus,.page-dialog .profile-field textarea:focus{outline:none;box-shadow:none;border-color:#bcbcbc;background:#fafafa}
.page-dialog .profile-field input:focus-visible,.page-dialog .profile-field textarea:focus-visible{outline:none;box-shadow:0 0 0 2px #e7e7e7;border-color:#aaa}
.avatar{overflow:hidden;flex-shrink:0}
.avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.memory-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.memory-summary-list .profile-field textarea{min-height:72px;resize:vertical}
.upload-failure{padding:10px;border:1px solid #ddd;border-radius:12px;font-size:13px;max-width:100%;white-space:normal}
.upload-failure button{margin:4px 4px 0 0}
/* v0.18: calm focus, independent account pages and persistent source controls */
.attachment-preview .preview-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.attachment-preview h2:focus,.attachment-preview button:focus{outline:none}
.attachment-preview button:focus-visible{outline:none;box-shadow:0 0 0 2px #ddd}
.attachment-preview{touch-action:manipulation}.attachment-preview .preview-actions button{position:relative;pointer-events:auto;min-height:44px}
@media(pointer:coarse){.attachment-preview button:focus-visible{box-shadow:none}}
.export-files{display:flex!important;align-items:center!important;justify-content:space-between;line-height:1.5}
.export-files span{flex:1}.export-files input[type=checkbox]{appearance:auto;flex:0 0 22px;margin:0;align-self:center;vertical-align:middle;padding:0}
.memory-navigation{display:flex;align-items:center;gap:12px;border-bottom:1px solid #eee}.memory-navigation>.page-link{flex:1;border:0;min-width:0;justify-content:space-between}.memory-navigation>.hint-button{flex:none;margin-right:4px}
.cost-disclosure{padding:12px 14px;border-radius:12px;background:#f5f5f5;font-size:13px;line-height:1.6;color:#626262}
.project-actions,.attachment-menu{max-width:430px}.project-actions>.page-link,.attachment-menu>.page-link{width:100%;text-align:left}
.sources-dialog .source-option{display:flex;gap:12px;align-items:center;padding:12px 0;margin:0;line-height:1.4;font-size:14px;font-weight:400}.source-option input{width:20px;height:20px;margin:0;flex:none}.source-option span{overflow-wrap:anywhere;min-width:0}.sources-dialog input[type=search]{width:100%}
.chat-source-chips{display:flex;gap:6px;flex-wrap:wrap;max-height:110px;overflow:auto;margin:4px 0}.chat-source-chips[hidden]{display:none}.source-chip{display:flex;align-items:center;max-width:100%;border:1px solid #ddd;border-radius:16px;padding-left:8px;font-size:12px}.source-chip .text-button{min-width:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:230px}.source-chip .icon{min-width:32px;width:32px;height:34px}.chat-source-chips small{width:100%;font-size:12px;color:#777}
.bot-message-editor textarea{min-height:160px}.bot-message-preview img{max-width:100%;max-height:45vh;object-fit:contain;display:block}.bot-copy{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}.bot-message-preview{max-width:540px}
.notification button{margin:4px 8px 4px 0}
/* 0.23: one visual language across the complete navigation. */
.feature-navigation{display:grid;gap:4px;padding:6px 0 18px;margin-bottom:10px;border-bottom:1px solid #ededed}
.feature-link{display:flex;align-items:center;gap:13px;width:100%;min-height:48px;padding:10px 12px;border:0;border-radius:12px;background:transparent;text-align:left;font-size:16px;font-weight:600;color:inherit}
.feature-link:hover,.feature-link:focus-visible{background:#f0f0f0}
.feature-link .row-icon,.section-toggle>.row-icon,.project-select>.row-icon,.chat-row>button>.row-icon{flex:0 0 22px;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}
.feature-link svg,.section-toggle>.row-icon svg,.project-select>.row-icon svg,.chat-row>button>.row-icon svg{width:22px;height:22px;stroke-width:1.7}
.section-toggle{display:flex;align-items:center;gap:11px}.section-toggle .section-chevron{margin-left:auto}
.project-select{display:flex;align-items:center;gap:11px}.chat-row>button:first-child{display:flex;align-items:center;gap:11px}.chat-row .chat-name{flex:1;min-width:0}
.feature-page .page-content{max-width:980px}.feature-intro{padding:28px;border:1px solid #e8e8e8;border-radius:20px;background:linear-gradient(125deg,#fafafa,#fff);margin-bottom:24px}
.feature-intro>.row-icon{width:40px;height:40px;display:grid;place-items:center;background:#efefef;border-radius:12px}.feature-intro h3{font-size:23px;margin:18px 0 10px}.feature-intro p{max-width:620px;line-height:1.6}.feature-intro .primary{margin-top:12px}
.feature-tabs,.feature-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.feature-tabs{margin:18px 0}.feature-tabs [aria-pressed=true]{background:#191919;color:#fff;border-color:#191919}.empty-feature{padding:36px 14px;text-align:center;color:#777}
.schedule-card{margin:16px 0;padding:22px}.schedule-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.schedule-heading h3{flex:1;min-width:120px;margin:0;font-size:18px}.status-pill{font-size:12px;background:#f2f2f2;border:1px solid #e7e7e7;border-radius:20px;padding:5px 10px;white-space:nowrap}.schedule-prompt{line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.schedule-runs{margin-top:18px;border-top:1px solid #eee;padding-top:14px}.schedule-run{padding:14px 0;border-bottom:1px solid #eee}.schedule-run small{display:block;margin:6px 0}.schedule-form{max-width:680px}.schedule-form .primary{margin-top:12px}.image-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.gallery-card{min-width:0;border:1px solid #e8e8e8;border-radius:16px;overflow:hidden;padding:10px;background:#fff}.gallery-view{display:block;padding:0;border:0;width:100%;aspect-ratio:1;background:#f6f6f6;border-radius:10px;overflow:hidden}.gallery-view img{width:100%;height:100%;object-fit:cover}.gallery-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:12px 2px 4px;font-size:14px}.gallery-card small{display:block;margin:0 2px}.gallery-card .feature-actions{justify-content:space-between;margin-top:8px;gap:4px}.artifact-preview{display:block;width:100%;height:auto;max-height:72vh;object-fit:contain;margin:20px auto}.document-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;padding:20px;border:1px solid #eee;border-radius:12px;line-height:1.5;font:14px/1.6 ui-monospace,monospace}.feature-page .sync-error{overflow-wrap:anywhere}
@media(max-width:600px){.feature-intro{padding:22px 18px}.image-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.schedule-card{padding:18px}.feature-link{min-height:50px;font-size:17px}.schedule-heading h3{font-size:17px}.feature-page .page-content{padding-bottom:32px}.gallery-card{padding:8px}.gallery-card .text-button{font-size:12px}.feature-tabs{gap:6px}.feature-tabs .secondary{padding:8px 12px}}

.pdf-preview,.html-preview{display:block;width:100%;height:65vh;min-height:360px;border:1px solid var(--border,#e5e7eb);border-radius:14px;background:white}.document-source{margin-top:20px}.document-source summary{cursor:pointer}.feature-page .page-heading h2{overflow-wrap:anywhere}.profile-file-actions{flex-wrap:wrap}

.voice-panel { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 2px 12px; padding:12px; border:1px solid #e5e5e5; border-radius:16px; background:#f7f7f7; }
.voice-panel[hidden], .voice-panel [hidden], .attachment-audio [hidden] { display:none!important; }
.voice-panel #recorder-status { flex:1; min-width:120px; font-size:13px; line-height:1.4; }
.voice-panel #record-time { font-size:13px; font-variant-numeric:tabular-nums; }
.voice-panel #cancel-record { margin-left:0; }
.voice-panel .record-dot { background:#c33d39; }
.voice-panel.is-recording .record-dot { animation:voice-pulse 1.5s ease-in-out infinite; }
.voice-panel .voice-preview { width:100%; min-width:0; height:38px; }
.voice-fee { flex-basis:100%; margin:2px 0 0; color:#686868; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.voice-panel .voice-check, .voice-panel .voice-continue { min-height:36px; font-size:12px; }
.voice-panel .voice-continue { margin-left:0; }
.attachment-audio { min-width:0; max-width:100%; }
.voice-history-player { display:block; width:min(300px,100%); height:38px; margin:8px 0; }
.voice-play { min-height:36px; margin-top:6px; font-size:12px; }
#voice:not([hidden]) { flex-shrink:0; }
@keyframes voice-pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }
@media(max-width:420px) { .voice-panel { padding:10px; } .input-tools { gap:5px; } #voice:not([hidden]) { width:44px; min-width:44px; } }
@media(prefers-reduced-motion:reduce) { .voice-panel.is-recording .record-dot { animation:none; } }

/* Compact response details and inline source links. */
.usage-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:5px 16px; max-width:390px; margin:5px 0 9px; font-size:12px; line-height:1.45; }
.usage-grid dt { margin:0; color:#777; }
.usage-grid dd { margin:0; color:#303030; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.usage-details[open] { padding-left:10px; }
.answer-link { color:#1769c2; text-decoration:none; text-underline-offset:3px; overflow-wrap:anywhere; }
.answer-link:hover,.answer-link:focus-visible { text-decoration:underline; }
@media (max-width:420px) { .usage-grid { column-gap:10px; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); } }

/* Compact composer, stable progress and incremental answers. */
.composer textarea{min-height:0;max-height:none;line-height:24px;font-size:16px;padding:2px 7px 6px;overflow-y:hidden;box-sizing:border-box}
.composer{padding-top:9px}
#send{transition:background-color .18s,color .18s;position:relative}
#send.is-processing{background:#181818;color:#fff}
#send.is-processing>svg{visibility:hidden}
#send.is-processing::after{content:'';position:absolute;inset:auto;width:13px;height:13px;border:0;border-radius:2px;background:currentColor;animation:none}
#send.is-processing:disabled{background:#555;color:#fff}
.scroll-latest{width:42px;height:42px;min-height:42px;min-width:42px;padding:0;justify-content:center;border-radius:50%}
.scroll-latest svg{width:20px;height:20px}
.processing-response{display:block;padding-top:12px;padding-bottom:18px;max-width:var(--reading-width);margin-left:auto;margin-right:auto}
.thinking-shimmer{display:inline-block;font-size:14px;line-height:24px;color:#808080;background:linear-gradient(105deg,#999 25%,#222 45%,#aaa 62%);background-size:230% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:thinking-shimmer 2s linear infinite}
.thinking-shimmer[hidden],.live-response-text[hidden]{display:none}
.live-response-text{margin-top:6px}
.live-response-text>.markdown{margin:0}
.streaming-text{overflow-wrap:anywhere}
.streaming-text> :last-child:after{content:'';display:inline-block;width:5px;height:1em;margin-left:3px;border-radius:2px;background:#333;vertical-align:-2px;animation:text-cursor 1s ease-in-out infinite}
@keyframes thinking-shimmer{from{background-position:180% 0}to{background-position:-50% 0}}
@keyframes text-cursor{50%{opacity:.3}}
@media(prefers-reduced-motion:reduce){.thinking-shimmer{animation:none;background:none;-webkit-text-fill-color:#777}.streaming-text> :last-child:after{animation:none}#send{transition:none}}

/* Consistent, quiet and keyboard-visible controls across account and admin. */
input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select{border:1px solid #ddd;border-radius:12px;background:#fafafa;color:#222;box-shadow:none}
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus,textarea:focus,select:focus{outline:2px solid #d4d9dd;outline-offset:2px;border-color:#bdc5cb;box-shadow:0 0 0 3px #eef0f2}
input::placeholder,textarea::placeholder{color:#aaa;opacity:1}
input:focus::placeholder,textarea:focus::placeholder{color:transparent}
button:focus-visible{outline:2px solid #a6b4c0;outline-offset:3px}
p{line-height:1.55} .prose-copy{white-space:pre-line}
.storage-plan{margin:14px 0;padding:16px;border:1px solid #e5e5e5;border-radius:16px}.storage-plan>p{margin:8px 0}.storage-check{display:flex;align-items:center;gap:10px;margin:18px 0}.storage-check input{width:21px;height:21px;flex:none}
#profile-storage-copy{font-size:12px;line-height:1.5;color:#777}.storage-price-lines{display:grid;grid-template-columns:1fr auto;gap:8px}.storage-price-lines>*{margin:0}
#upload-progress{margin:4px 12px;color:#666;font-size:13px}#upload-progress:empty{display:none}
.conversation-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;color:#888;font-size:12px}.conversation-tools button{font-size:12px}.conversation-tools select{max-width:100%;padding:6px;font-size:12px}
.variant-actions{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;margin-top:8px}.variant-actions button{font-size:12px;color:#888}
.search-hit{display:block;width:100%;text-align:left;padding:14px;margin:8px 0;border:1px solid #e8e8e8;border-radius:12px;background:white;white-space:normal}.search-hit strong,.search-hit span{display:block}.search-hit span{font-size:13px;line-height:1.5;color:#666;margin-top:6px}
.message.search-highlight,.work-job.search-highlight{box-shadow:0 0 0 3px #c7d8f2;background:#f3f7fc;border-radius:12px;transition:background 1s}
.diagnostic-card{overflow-wrap:anywhere;padding:14px;border:1px solid #e6e6e6;border-radius:12px;margin:12px 0}.diagnostic-card p{margin:6px 0;font-size:13px}
.stats-filters{display:flex;flex-wrap:wrap;gap:12px}.stats-filters label{min-width:180px;flex:1}.stats-grid{display:grid;grid-template-columns:1fr auto;gap:7px;font-size:13px}.stats-grid>*{margin:0}
.context-note{font-size:12px;color:#888}.memory-source{font-size:12px;line-height:1.5;color:#777}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.storage-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}
.storage-toolbar .storage-check{display:flex;margin:0;align-items:center;line-height:1.35}
.storage-toolbar .storage-check input{margin:0;align-self:center}
.storage-toolbar .storage-check span{align-self:center}
.file-selection-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}
.dialog .file-selection-toolbar label{display:flex;align-items:center;gap:8px}
.file-selection-toolbar input,.profile-file .file-select{width:20px;height:20px;flex:0 0 20px;margin:0;accent-color:#181818}
.file-selection-toolbar #files-selected-count{font-size:13px;color:#666}
.profile-file .file-select{align-self:center}
.profile-file-info{min-width:0;flex:1}
.message-speak:disabled{opacity:.5;cursor:help}
@media(max-width:440px){.profile-file{flex-wrap:wrap}.profile-file-actions{margin-left:30px}.storage-toolbar{gap:10px}.storage-toolbar .secondary{flex-shrink:0}}

/* Shared left edge for the name and the copy action, on mobile and desktop. */
.profile-identity #profile-copy-id { margin-left:0; padding-left:0; text-align:left; }
.profile-identity > div:nth-child(2) { min-width:0; }
.topup-explanation { margin:12px 0 24px; }
.topup-explanation h3 { font-size:17px; }
.topup-explanation ol { padding-left:22px; line-height:1.65; }
.topup-explanation li + li { margin-top:10px; }
.topup-note { padding:15px 17px; background:#f5f5f5; border-radius:14px; line-height:1.55; }
.topup-choices { display:grid; gap:12px; }
.topup-choice { border:1px solid #e2e2e2; border-radius:18px; padding:20px; min-height:100px; width:100%; text-align:left; }
.topup-choice > span:first-child { flex:1; min-width:0; }
.topup-choice > span:last-child { flex:0 0 auto; }
.topup-choice:last-child { border-bottom:1px solid #e2e2e2; }
.topup-choice small { margin-top:7px; line-height:1.5; }
.premium-bot-link { display:inline-flex; margin:12px 0; text-decoration:none; align-items:center; justify-content:center; min-height:44px; }
.bot-stars-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.bot-stars-heading h3 { margin:0; }
.bot-stars-amount { display:block; font-size:32px; margin:18px 0 8px; overflow-wrap:anywhere; }
.bot-stars-card p { font-size:13px; line-height:1.5; }
.bot-star-transaction { border-bottom:1px solid #e9e9e9; padding:18px 0; overflow-wrap:anywhere; }
.bot-star-transaction p { margin:7px 0 0; }
.bot-star-id { font-size:11px; }
.bot-stars-pagination { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:20px 0; flex-wrap:wrap; }

@media(max-width:540px){.bot-stars-amount{font-size:24px;font-variant-numeric:tabular-nums;}.topup-choice{padding:17px;}}

.voice-panel { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 2px 12px; padding:12px; border:1px solid #e5e5e5; border-radius:16px; background:#f7f7f7; }
.voice-panel[hidden], .voice-panel [hidden], .attachment-audio [hidden] { display:none!important; }
.voice-panel #recorder-status { flex:1; min-width:120px; font-size:13px; line-height:1.4; }
.voice-panel #record-time { font-size:13px; font-variant-numeric:tabular-nums; }
.voice-panel #cancel-record { margin-left:0; }
.voice-panel .record-dot { background:#c33d39; }
.voice-panel.is-recording .record-dot { animation:voice-pulse 1.5s ease-in-out infinite; }
.voice-panel .voice-preview { width:100%; min-width:0; height:38px; }
.voice-fee { flex-basis:100%; margin:2px 0 0; color:#686868; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.voice-panel .voice-check, .voice-panel .voice-continue { min-height:36px; font-size:12px; }
.voice-panel .voice-continue { margin-left:0; }
.attachment-audio { min-width:0; max-width:100%; }
.voice-history-player { display:block; width:min(300px,100%); height:38px; margin:8px 0; }
.voice-play { min-height:36px; margin-top:6px; font-size:12px; }
#voice:not([hidden]) { flex-shrink:0; }
@keyframes voice-pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }
@media(max-width:420px) { .voice-panel { padding:10px; } .input-tools { gap:5px; } #voice:not([hidden]) { width:44px; min-width:44px; } }
@media(prefers-reduced-motion:reduce) { .voice-panel.is-recording .record-dot { animation:none; } }

/* Compact response details and inline source links. */
.usage-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:5px 16px; max-width:390px; margin:5px 0 9px; font-size:12px; line-height:1.45; }
.usage-grid dt { margin:0; color:#777; }
.usage-grid dd { margin:0; color:#303030; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.usage-details[open] { padding-left:10px; }
.answer-link { color:#1769c2; text-decoration:none; text-underline-offset:3px; overflow-wrap:anywhere; }
.answer-link:hover,.answer-link:focus-visible { text-decoration:underline; }
@media (max-width:420px) { .usage-grid { column-gap:10px; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); } }

/* Compact composer, stable progress and incremental answers. */
.composer textarea{min-height:0;max-height:none;line-height:24px;font-size:16px;padding:2px 7px 6px;overflow-y:hidden;box-sizing:border-box}
.composer{padding-top:9px}
#send{transition:background-color .18s,color .18s;position:relative}
#send.is-processing{background:#181818;color:#fff}
#send.is-processing>svg{visibility:hidden}
#send.is-processing::after{content:'';position:absolute;inset:auto;width:13px;height:13px;border:0;border-radius:2px;background:currentColor;animation:none}
#send.is-processing:disabled{background:#555;color:#fff}
.scroll-latest{width:42px;height:42px;min-height:42px;min-width:42px;padding:0;justify-content:center;border-radius:50%}
.scroll-latest svg{width:20px;height:20px}
.processing-response{display:block;padding-top:12px;padding-bottom:18px;max-width:var(--reading-width);margin-left:auto;margin-right:auto}
.thinking-shimmer{display:inline-block;font-size:14px;line-height:24px;color:#808080;background:linear-gradient(105deg,#999 25%,#222 45%,#aaa 62%);background-size:230% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:thinking-shimmer 2s linear infinite}
.thinking-shimmer[hidden],.live-response-text[hidden]{display:none}
.live-response-text{margin-top:6px}
.live-response-text>.markdown{margin:0}
.streaming-text{overflow-wrap:anywhere}
.streaming-text> :last-child:after{content:'';display:inline-block;width:5px;height:1em;margin-left:3px;border-radius:2px;background:#333;vertical-align:-2px;animation:text-cursor 1s ease-in-out infinite}
@keyframes thinking-shimmer{from{background-position:180% 0}to{background-position:-50% 0}}
@keyframes text-cursor{50%{opacity:.3}}
@media(prefers-reduced-motion:reduce){.thinking-shimmer{animation:none;background:none;-webkit-text-fill-color:#777}.streaming-text> :last-child:after{animation:none}#send{transition:none}}

/* Consistent, quiet and keyboard-visible controls across account and admin. */
input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select{border:1px solid #ddd;border-radius:12px;background:#fafafa;color:#222;box-shadow:none}
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus,textarea:focus,select:focus{outline:2px solid #d4d9dd;outline-offset:2px;border-color:#bdc5cb;box-shadow:0 0 0 3px #eef0f2}
input::placeholder,textarea::placeholder{color:#aaa;opacity:1}
input:focus::placeholder,textarea:focus::placeholder{color:transparent}
button:focus-visible{outline:2px solid #a6b4c0;outline-offset:3px}
p{line-height:1.55} .prose-copy{white-space:pre-line}
.storage-plan{margin:14px 0;padding:16px;border:1px solid #e5e5e5;border-radius:16px}.storage-plan>p{margin:8px 0}.storage-check{display:flex;align-items:center;gap:10px;margin:18px 0}.storage-check input{width:21px;height:21px;flex:none}
#profile-storage-copy{font-size:12px;line-height:1.5;color:#777}.storage-price-lines{display:grid;grid-template-columns:1fr auto;gap:8px}.storage-price-lines>*{margin:0}
#upload-progress{margin:4px 12px;color:#666;font-size:13px}#upload-progress:empty{display:none}
.conversation-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;color:#888;font-size:12px}.conversation-tools button{font-size:12px}.conversation-tools select{max-width:100%;padding:6px;font-size:12px}
.variant-actions{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;margin-top:8px}.variant-actions button{font-size:12px;color:#888}
.search-hit{display:block;width:100%;text-align:left;padding:14px;margin:8px 0;border:1px solid #e8e8e8;border-radius:12px;background:white;white-space:normal}.search-hit strong,.search-hit span{display:block}.search-hit span{font-size:13px;line-height:1.5;color:#666;margin-top:6px}
.message.search-highlight,.work-job.search-highlight{box-shadow:0 0 0 3px #c7d8f2;background:#f3f7fc;border-radius:12px;transition:background 1s}
.diagnostic-card{overflow-wrap:anywhere;padding:14px;border:1px solid #e6e6e6;border-radius:12px;margin:12px 0}.diagnostic-card p{margin:6px 0;font-size:13px}
.stats-filters{display:flex;flex-wrap:wrap;gap:12px}.stats-filters label{min-width:180px;flex:1}.stats-grid{display:grid;grid-template-columns:1fr auto;gap:7px;font-size:13px}.stats-grid>*{margin:0}
.context-note{font-size:12px;color:#888}.memory-source{font-size:12px;line-height:1.5;color:#777}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.storage-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}
.storage-toolbar .storage-check{display:flex;margin:0;align-items:center;line-height:1.35}
.storage-toolbar .storage-check input{margin:0;align-self:center}
.storage-toolbar .storage-check span{align-self:center}
.file-selection-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}
.dialog .file-selection-toolbar label{display:flex;align-items:center;gap:8px}
.file-selection-toolbar input,.profile-file .file-select{width:20px;height:20px;flex:0 0 20px;margin:0;accent-color:#181818}
.file-selection-toolbar #files-selected-count{font-size:13px;color:#666}
.profile-file .file-select{align-self:center}
.profile-file-info{min-width:0;flex:1}
.message-speak:disabled{opacity:.5;cursor:help}
@media(max-width:440px){.profile-file{flex-wrap:wrap}.profile-file-actions{margin-left:30px}.storage-toolbar{gap:10px}.storage-toolbar .secondary{flex-shrink:0}}

/* Shared left edge for the name and the copy action, on mobile and desktop. */
.profile-identity #profile-copy-id { margin-left:0; padding-left:0; text-align:left; }
.profile-identity > div:nth-child(2) { min-width:0; }
.topup-explanation { margin:12px 0 24px; }
.topup-explanation h3 { font-size:17px; }
.topup-explanation ol { padding-left:22px; line-height:1.65; }
.topup-explanation li + li { margin-top:10px; }
.topup-note { padding:15px 17px; background:#f5f5f5; border-radius:14px; line-height:1.55; }
.topup-choices { display:grid; gap:12px; }
.topup-choice { border:1px solid #e2e2e2; border-radius:18px; padding:20px; min-height:100px; width:100%; text-align:left; }
.topup-choice > span:first-child { flex:1; min-width:0; }
.topup-choice > span:last-child { flex:0 0 auto; }
.topup-choice:last-child { border-bottom:1px solid #e2e2e2; }
.topup-choice small { margin-top:7px; line-height:1.5; }
.premium-bot-link { display:inline-flex; margin:12px 0; text-decoration:none; align-items:center; justify-content:center; min-height:44px; }
.bot-stars-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.bot-stars-heading h3 { margin:0; }
.bot-stars-amount { display:block; font-size:32px; margin:18px 0 8px; overflow-wrap:anywhere; }
.bot-stars-card p { font-size:13px; line-height:1.5; }
.bot-star-transaction { border-bottom:1px solid #e9e9e9; padding:18px 0; overflow-wrap:anywhere; }
.bot-star-transaction p { margin:7px 0 0; }
.bot-star-id { font-size:11px; }
.bot-stars-pagination { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:20px 0; flex-wrap:wrap; }

@media(max-width:540px){.bot-stars-amount{font-size:24px;font-variant-numeric:tabular-nums;}.topup-choice{padding:17px;}}


.row-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;line-height:1;vertical-align:middle}.row-icon svg{display:block;width:20px;height:20px}.next-with-icon{display:flex;align-items:center;gap:9px}.next-with-icon>.next-icon{align-self:center}.conversation-tools button{display:inline-flex;align-items:center;gap:7px;line-height:20px}.next-file-tabs{margin:16px 0;display:flex;gap:8px;flex-wrap:wrap}.next-file-tabs button{display:inline-flex;align-items:center;gap:7px}.next-file-tabs [aria-pressed=true]{background:#171717;color:#fff;border-color:currentColor}.next-file-group{margin:20px 0}.next-file-group h3{font-size:14px;color:#777;margin-bottom:8px}#chat-menu button{justify-content:flex-start;gap:9px}#chat-menu button>span:not(.row-icon){margin-left:auto}#continue-summary{white-space:normal;text-align:left}.next-with-icon h2{line-height:1.3}#nav-memory{display:flex;align-items:center;gap:10px}
.section-head{flex-wrap:wrap;gap:3px 7px}.section-head .section-toggle{flex:1 1 auto;display:flex;align-items:center;gap:6px}.section-head .section-all{font-size:10px;gap:3px}.section-all .row-icon,.section-all .row-icon svg{width:14px;height:14px;flex-basis:14px}.section-head:has(#add-project) .section-all{order:3;margin-left:26px}.section-head #add-project{margin-left:auto}.next-with-icon .row-icon{font-weight:400}#account-page .tool-switch-row>span{flex:1;min-width:0}
@media(max-width:600px){#profile-files .profile-file{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px 10px;align-items:start;padding:16px 0}#profile-files .profile-file-info{min-width:0;width:auto}#profile-files .profile-file-info strong{overflow-wrap:anywhere;word-break:normal}#profile-files .profile-file-actions{grid-column:2;display:flex;flex-wrap:wrap;gap:8px 14px;justify-content:flex-start}#profile-files .profile-file-actions button{font-size:12px;gap:5px}.next-file-tabs{gap:6px}.next-file-tabs button{padding:10px 9px;font-size:12px}.next-file-tabs .row-icon,.next-file-tabs .row-icon svg{width:17px;height:17px;flex-basis:17px}}
.section-head:has(#add-project) .section-all{flex:0 0 auto;width:auto;max-width:none;margin-left:0;margin-right:auto;justify-content:flex-start;overflow:visible;white-space:nowrap}.section-head:has(#add-project) .section-toggle{flex-basis:70%}

/* Review iteration 2 */
.review-demo-note{font-size:12px;line-height:1.6;color:#686868;background:#f6f6f6;padding:12px 14px;border-radius:12px}
.review-plugin-list{display:grid;gap:16px;margin:24px 0}.review-plugin-card{padding:22px!important}.review-plugin-head{display:flex;gap:14px;align-items:center}.review-plugin-head h3{margin:0 0 3px}.review-plugin-head p{margin:0}.review-provider{display:grid;place-items:center;flex:0 0 44px;height:44px;border:1px solid #ddd;border-radius:12px;font-size:23px;font-weight:700}.review-plugin-card>button{margin-top:8px;min-width:142px}.review-connect{max-width:440px}.review-connect button{margin:12px 8px 0 0}.review-storage-destination{border-top:1px solid #e8e8e8;padding-top:16px;margin-top:18px}.review-storage-destination select,.review-defaults-form select{width:100%;min-height:44px;padding:10px;border:1px solid #dedede;border-radius:10px;background:#fff;color:#171717}.review-storage-destination p{font-size:12px;margin:8px 0}.review-file-location{color:#777;font-size:11px}.review-defaults-form{gap:18px}.review-defaults-form label{font-size:14px}.review-defaults-form button{display:flex;justify-content:center;align-items:center}.review-eyebrow{font-size:10px;letter-spacing:.09em;color:#888}.review-notification-example h3{margin:12px 0 4px}#review-notifications .tool-switch-row{padding:0 0 12px}#default-settings-open{margin-bottom:22px;border-bottom:1px solid #eee}#profile-plugins>span:nth-last-child(2){flex:1}#profile-upgrade,#profile-topup{display:inline-flex;align-items:center;justify-content:center;gap:7px}#profile-files-open,#profile-promo{display:inline-flex;align-items:center;justify-content:center;gap:0}#profile-open{display:flex;align-items:center}#request-settings-dialog .choice-row{display:flex}#request-settings-dialog .next-icon{display:none}#request-settings-dialog .settings-menu-link{display:flex;align-items:center}.review-auto-analysis{border-top:1px solid #eee;padding-top:18px}
.response-tools{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:14px!important;position:relative;max-width:100%;margin-top:16px}.response-tools>button,.response-tools>details>summary{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px;line-height:20px;padding:5px 0;flex:none}.response-tools>.usage-details{position:static;flex:none;margin:0}.response-tools .row-icon,.response-tools .row-icon svg{width:15px;height:15px;flex-basis:15px}.response-tools>.usage-details[open]{position:static}.response-tools>.usage-details>div,.response-tools>.usage-details>p{white-space:normal}.response-tools>.usage-details[open] .usage-breakdown{position:absolute;left:0;right:0;top:100%;z-index:4;background:#fff;border:1px solid #e5e5e5;border-radius:10px;padding:12px}.usage-details>summary{list-style:none}.usage-details>summary::-webkit-details-marker{display:none}
@media(min-width:850px){.review-plugin-list{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.response-tools{gap:9px!important}.response-tools>button,.response-tools>details>summary{font-size:10px;gap:3px;letter-spacing:-.1px}.response-tools .row-icon,.response-tools .row-icon svg{width:12px;height:12px;flex-basis:12px}.review-plugin-card{padding:18px!important}.review-plain-button{font-size:12px}#profile-topup,#profile-upgrade{min-width:120px}.review-storage-destination{margin-top:14px}.next-file-tabs{flex-wrap:nowrap}.next-file-tabs button{font-size:11px;padding:10px 8px;gap:5px}}
.section-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:8px!important;row-gap:0!important}.section-head .section-toggle{min-width:0;font-size:11px;gap:5px!important;white-space:nowrap}.section-head .section-all{max-width:none;font-size:9px;gap:3px;margin:0!important;grid-column:2;justify-self:end}.section-head:has(#add-project) .section-toggle{grid-column:1;grid-row:1}.section-head #add-project{grid-column:2;grid-row:1}.section-head:has(#add-project) .section-all{grid-column:1 / -1;grid-row:2;justify-self:end;order:0!important}.section-toggle .row-icon{width:18px;flex-basis:18px}.section-toggle .row-icon svg{width:18px;height:18px}#profile-files-open{font-size:12px;min-height:38px;padding:8px 12px;background:#efefef;color:#222;border:0;border-radius:12px}#review-answer-details .usage-grid{margin:8px 0 12px;max-width:none}#review-answer-details .review-details-content{padding:0 10px 8px;overflow-wrap:anywhere}.response-tools>.usage-details[open]{border:0;padding:0}
.sidebar .section-head .section-all{width:auto;min-width:96px;max-width:none;font-size:9px;overflow:visible;justify-content:flex-end}.sidebar .section-head .section-toggle{min-width:0}
@media(max-width:350px){.response-tools{gap:5px!important}.response-tools>button,.response-tools>details>summary{font-size:9px;gap:2px}.response-tools .row-icon,.response-tools .row-icon svg{width:10px;height:10px;flex-basis:10px}}

/* Folder-like storage tabs and six connection cards. */
#review-storage-card{padding:0!important;overflow:hidden;margin-top:20px;scroll-margin-top:92px}
.review-folder-tabs{display:flex;align-items:stretch;border-bottom:1px solid #e4e4e4;background:#f6f6f6;padding:8px 9px 0;gap:5px}
.review-folder-tab{flex:1;background:transparent;color:#787878;border:1px solid transparent;border-bottom:0;border-radius:12px 12px 0 0;padding:13px 10px;min-height:48px;font-size:14px;font-weight:600;position:relative;justify-content:center}
.review-folder-tab[aria-selected=true]{background:#fff;color:#171717;border-color:#e4e4e4}
.review-folder-tab[aria-selected=true]::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#fff}
.review-folder-tab:focus-visible{outline:2px solid #222;outline-offset:-4px}
.review-local-storage,.review-cloud-storage{padding:20px}.review-local-storage[hidden],.review-cloud-storage[hidden]{display:none!important}
.review-storage-status{margin:0!important;padding:14px 20px;border-top:1px solid #eee;font-size:12px;line-height:1.6;color:#727272;background:#fcfcfc}
.review-cloud-heading{display:flex;align-items:center;gap:9px}.review-cloud-heading h3{font-size:16px;margin:0}.review-cloud-account{font-size:14px;margin:16px 0 6px;overflow-wrap:anywhere}.review-demo-badge{display:inline-block;padding:4px 8px;border-radius:6px;background:#f3f3f3;font-size:10px;color:#747474}.review-storage-metrics{margin:24px 0 16px;display:flex;flex-direction:column;gap:7px}.review-storage-metrics strong{font-size:24px}.review-cloud-storage progress{width:100%;height:6px;appearance:none;border:0;border-radius:6px;overflow:hidden;background:#eee}.review-cloud-storage progress::-webkit-progress-bar{background:#eee}.review-cloud-storage progress::-webkit-progress-value{background:#202020;border-radius:6px}.review-cloud-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:18px}.review-cloud-empty-title{font-size:20px;font-weight:650;margin:26px 0 10px}.review-cloud-storage>.primary{margin:12px 0}.review-plugin-section{margin:28px 0}.review-group-title{font-size:13px;color:#777;font-weight:600;margin:0 0 12px}.review-plugin-section .review-plugin-list{margin:0;gap:12px}.review-plugin-card{display:flex;flex-direction:column}.review-plugin-card>button{align-self:flex-start;margin-top:auto}.review-plugin-card>p{margin-bottom:18px}.review-plugin-head h3{font-size:16px}.review-plugin-head .meta{font-size:11px}.review-connected-email{font-size:12px;color:#646464;overflow-wrap:anywhere}.review-plugin-highlight{border-color:#707070!important}.review-calendar-default{margin-top:32px;padding:22px!important}.review-calendar-default h3{font-size:18px;margin:0 0 20px}.review-calendar-default select{width:100%;padding:12px;border:1px solid #ddd;border-radius:10px;background:white;min-height:44px;color:#222}.review-calendar-default .meta{font-size:12px;line-height:1.6}.review-plugin-section:last-of-type{margin-bottom:0}
@media(max-width:600px){.review-local-storage,.review-cloud-storage{padding:16px}.review-storage-status{padding:12px 16px}.review-folder-tab{font-size:13px;padding:12px 8px}.review-plugin-head h3{font-size:16px}.review-plugin-section .review-plugin-list{gap:12px}.review-plugin-section{margin:22px 0}.review-calendar-default{padding:18px!important}}


/* Shared rectangles for plugin categories. */
.review-plugin-section.profile-card{padding:22px;margin:24px 0}
.review-plugin-section .review-group-title{font-size:16px;color:#242424;margin:0 0 18px}
.review-plugin-section .review-plugin-list{gap:0}
.review-plugin-section .review-plugin-card{padding:0 20px 0 0!important;border:0;border-radius:0;box-shadow:none;margin:0;min-width:0;background:transparent}
.review-plugin-section .review-plugin-card+ .review-plugin-card{border-left:1px solid #e9e9e9;padding:0 0 0 20px!important}
.review-plugin-section .review-plugin-card>p{margin:12px 0 18px}
.review-plugin-section .review-plugin-card>button{margin-top:auto}
.review-plugin-section .review-calendar-default{border-top:1px solid #e9e9e9;padding:20px 0 0!important;margin:22px 0 0;border-radius:0;box-shadow:none}
.review-plugin-section .review-calendar-default h3{font-size:15px;margin:0 0 16px}
@media(max-width:849px){.review-plugin-section .review-plugin-card{padding:0 0 20px!important}.review-plugin-section .review-plugin-card+ .review-plugin-card{border-left:0;border-top:1px solid #e9e9e9;padding:20px 0 0!important}}
@media(max-width:600px){.review-plugin-section.profile-card{padding:18px;margin:20px 0}}

.demo-label{position:fixed;bottom:0;left:0;right:0;z-index:99999;background:#151515;color:white;text-align:center;font:11px/22px system-ui;pointer-events:none}body{padding-bottom:22px}
.legal-links-25{display:flex;flex-wrap:wrap;gap:10px 18px;padding:14px 0;font-size:12px}.legal-links-25 a{color:inherit;text-underline-offset:3px}.public-info-25{font-size:13px;line-height:1.5;padding:8px 0}.public-info-25 p{margin:0}

.v26-settings-form{gap:12px}
.v26-settings-card{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--line,#d9d9d9);border-radius:14px;background:var(--panel,#fff);min-width:0}
.v26-settings-card h3{margin:0;font-size:15px;line-height:1.35}
.v26-settings-card .meta{margin:0;line-height:1.45}
.v26-settings-card .profile-field{margin:0;gap:7px}
.v26-settings-card .tool-switch-row{margin:0;padding:5px 0}
.v26-settings-card .page-link{margin:0;width:100%;min-height:40px}
#v26-model-settings-card{margin-bottom:12px}
.v26-form-actions{display:flex;gap:10px;align-items:stretch;justify-content:flex-end;width:100%;margin-top:3px}
.v26-form-actions>button{flex:1;min-width:0;min-height:42px;margin:0}
.v26-default-reset{align-self:flex-start;min-height:38px}
.v26-settings-status{margin:0;min-height:0;line-height:1.4}
.v26-settings-status:empty{display:none}
@media(max-width:480px){.v26-settings-card{padding:12px;gap:9px}.v26-settings-card select{max-width:100%;width:100%}.v26-form-actions{gap:8px}}

/* v0.26: compact, consistent controls without grey input highlights. */
input:not([type=checkbox]):not([type=radio]):not([type=range]),
textarea,select {
  background:#fff!important;
  box-shadow:none!important;
}
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus,
textarea:focus,select:focus {
  background:#fff!important;
  box-shadow:none!important;
  outline:none;
  border-color:#666;
}
/* A crisp border still identifies keyboard focus, without a filled halo. */
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus-visible,
textarea:focus-visible,select:focus-visible {
  outline:1px solid #222!important;
  outline-offset:1px;
  box-shadow:none!important;
}
#input,#input:focus,#input:focus-visible {
  background:transparent!important;
  border:0!important;
  border-radius:0;
  box-shadow:none!important;
  outline:none!important;
}
.composer:focus-within { border-color:#888;box-shadow:none; }

.message.assistant .response-tools {
  margin-top:4px;
  gap:12px!important;
  min-height:32px;
}
.response-tools>button,.response-tools>details>summary {
  min-height:32px;
  padding:3px 0;
}
.message.user .variant-actions {
  margin-top:4px;
  gap:10px;
}
.message.user .variant-actions button {
  display:inline-flex;align-items:center;gap:5px;
  font-size:12px;line-height:20px;min-height:32px;padding:3px 0;
  background:transparent;color:#666;
}
.message.user .variant-actions .row-icon,
.message.user .variant-actions .row-icon svg {
  width:15px;height:15px;flex-basis:15px;
}
.conversation-tools:empty { display:none; }
.feature-navigation { gap:0;padding:2px 0 8px;margin-bottom:6px; }
.feature-navigation .feature-link { min-height:42px;padding:7px 10px;font-size:15px;gap:10px; }
.row-icon svg { filter:none;transform:none;shape-rendering:geometricPrecision; }

/* Decision dialogs always have Cancel at left and the action at right. */
.dialog .dialog-actions,.dialog-actions {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:stretch;gap:10px;
  width:100%;margin-top:16px;
}
.dialog .dialog-actions>button,.dialog-actions>button {
  display:flex;align-items:center;justify-content:center;
  width:100%;min-width:0;min-height:42px;margin:0;
  padding:10px 12px;line-height:1.3;font-size:13px;
  white-space:normal;overflow-wrap:anywhere;
}
.dialog .dialog-actions>button:only-child { grid-column:2; }
.dialog-actions .row-icon { flex-shrink:0; }
.variant-dialog { width:min(440px,calc(100% - 24px));padding:20px; }
.variant-dialog h2 { font-size:20px;margin:0 0 14px; }
.variant-dialog .variant-form { gap:10px; }
.variant-dialog .profile-field { display:grid;gap:5px;font-size:13px;margin:0; }
.variant-dialog input,.variant-dialog select { min-height:40px;padding:8px 10px; }
.variant-dialog input,.variant-dialog select,.variant-dialog textarea { margin:0;font-weight:400; }
.variant-dialog .variant-form textarea { min-height:72px;max-height:150px;padding:9px 10px; }
.variant-dialog .dialog-actions { margin-top:4px; }
.variant-dialog p { margin:4px 0;font-size:12px; }
.variant-dialog p:empty { display:none; }
.google-consent-25 { width:min(520px,calc(100% - 24px)); }
.google-consent-25 .personal-form { gap:12px; }
.google-consent-25 h2,.google-consent-25 p { margin:0; }
.google-consent-25 p { font-size:13px; }
.attachment-menu { width:min(320px,calc(100% - 24px));padding:10px; }
.attachment-menu>button { width:100%;text-align:left;min-height:44px; }

/* File tabs and actions remain in a single row on phones. */
.next-file-tabs { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
.next-file-tabs button { width:100%;min-width:0;min-height:42px;justify-content:center;padding:9px 8px;font-size:12px; }
#profile-files .profile-file-actions {
  display:flex;align-items:center;flex-wrap:nowrap;gap:12px;
  margin-left:0;
}
#profile-files .profile-file-actions button {
  display:inline-flex;align-items:center;gap:4px;
  padding:6px 0;min-height:36px;white-space:nowrap;font-size:12px;
}
#profile-files .profile-file-actions .row-icon,
#profile-files .profile-file-actions .row-icon svg { width:14px;height:14px;flex-basis:14px; }
.gallery-card .gallery-actions { display:flex;align-items:center;flex-wrap:wrap;gap:8px; }
.attachment .attachment-delete { min-height:32px;font-size:12px;margin-top:4px; }

/* Equal account actions, independent of their labels and enclosing cards. */
#profile-topup,#profile-upgrade {
  width:148px;min-width:148px;min-height:42px;
  padding:10px 12px;border-radius:22px;font-size:13px;
}
#profile-promo,#profile-files-open {
  width:148px;min-width:148px;min-height:48px;height:48px;
  padding:8px 10px;font-size:12px;border-radius:12px;
}
.profile-card-actions { min-width:148px;max-width:148px;gap:8px; }
.storage-toolbar { gap:8px;margin:8px 0; }
.review-local-storage,.review-cloud-storage { padding:16px 18px; }
#review-storage-card .profile-card-heading { padding:16px 18px 12px;gap:8px;font-size:14px; }
#review-storage-card .profile-card-heading>span { display:flex;align-items:center;gap:8px; }
#review-storage-card p,#profile-storage-copy { margin-top:6px;margin-bottom:6px;line-height:1.45; }
.review-storage-status { padding:10px 18px;line-height:1.45; }
.review-storage-metrics { margin:14px 0 10px;gap:4px; }
.review-cloud-account { margin:10px 0 6px; }
.review-cloud-actions { margin-top:10px;gap:8px; }
.review-cloud-empty-title { margin:16px 0 8px; }
.review-local-storage:not([hidden]) + .review-cloud-storage { padding-top:0; }
#profile-storage-progress { margin-top:10px; }
.review-storage-destination { margin-top:10px;padding-top:10px; }

@media(max-width:600px) {
  .message.assistant .response-tools { gap:8px!important; }
  .response-tools>button,.response-tools>details>summary { min-height:32px;font-size:10px; }
  .feature-navigation .feature-link { min-height:42px;font-size:15px; }
  .variant-dialog { padding:16px; }
  .variant-dialog select,.variant-dialog input,.variant-dialog textarea { font-size:16px; }
  .next-file-tabs { gap:6px; }
  .next-file-tabs button { font-size:11px;padding:9px 4px;gap:4px; }
  .next-file-tabs .row-icon,.next-file-tabs .row-icon svg { width:15px;height:15px;flex-basis:15px; }
  #profile-files .profile-file-actions { grid-column:2;gap:10px; }
  #profile-files .profile-file-actions button { font-size:11px;gap:3px; }
  .review-local-storage,.review-cloud-storage { padding:14px; }
  #review-storage-card .profile-card-heading { padding:14px 14px 10px; }
  #profile-topup,#profile-upgrade,#profile-promo,#profile-files-open { width:140px;min-width:140px; }
  .profile-card-actions { min-width:140px;max-width:140px; }
  #profile-storage { font-size:18px; }
}
@media(max-width:350px) {
  .message.assistant .response-tools { gap:5px!important; }
  .response-tools>button,.response-tools>details>summary { font-size:9px; }
  #profile-files .profile-file-actions { grid-column:1 / -1;gap:9px; }
  #profile-topup,#profile-upgrade,#profile-promo,#profile-files-open { width:124px;min-width:124px;font-size:11px; }
  .profile-card-actions { min-width:124px;max-width:124px; }
}

/* Approved baseline additions, followed by the selected A surfaces. */

.context-line{display:none!important}
.section-head:has([data-section="projects"]),#section-projects,.navigation-toolbar:has(#collapse-all){display:none!important}
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus,input:not([type=checkbox]):not([type=radio]):not([type=range]):focus-visible,textarea:focus,textarea:focus-visible{outline:none!important;box-shadow:none!important;border-color:var(--rest-border,#ddd)!important;background:var(--rest-background,#fff)!important}
.composer:focus-within{border-color:#dcdcdc!important;box-shadow:0 2px 12px #00000004!important}
.review-local-storage .profile-card-value,.review-local-storage .storage-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 140px;align-items:center;gap:8px}
.review-local-storage .profile-card-actions{width:140px}
#profile-upgrade,#profile-files-open{width:140px;min-width:0;box-sizing:border-box}
#profile-autorenew{min-width:0}#profile-autorenew .tool-switch-row{white-space:normal;gap:6px}#profile-autorenew .tool-switch-row>span{white-space:normal}
.file-kind-tabs{margin-bottom:6px}.next-file-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.next-file-tabs button{min-width:0;width:100%;padding-inline:6px;justify-content:center}.next-file-tabs .row-icon{display:none}

.topbar:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-height:72px;padding:12px 24px;border-bottom:1px solid #ededed}
.top-title:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-width:0}
.chat-title-label:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){color:#646464!important;font-size:11px!important;font-weight:400!important}
#current-chat-title:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:15px!important;font-weight:600!important}
.topbar #chat-options:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){border:0;background:transparent;border-radius:10px}
.topbar .tools:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){gap:0}
.icon:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])),.hint-button:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-width:44px;min-height:44px}
.hint-button:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){border:0!important;background:transparent!important;font-size:15px}
.messages:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){padding:24px 24px 16px}
.message:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:16px;line-height:1.6}
.message.assistant .markdown:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:16px;line-height:1.6}
.message.assistant .markdown p:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin:0 0 12px}
.message.assistant .markdown li:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin:0 0 8px}
.message.assistant .markdown li p:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin:0}
.message.user:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin-bottom:22px}
.message.user .markdown:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:15px;line-height:1.5;border-radius:16px}
.message.assistant .response-tools:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){gap:8px!important;margin-top:6px;align-items:center;flex-wrap:wrap}
.response-tools>button:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])),.response-tools>details>summary:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-height:44px;font-size:12px!important;color:#595959;padding:4px 2px}
.response-tools .row-icon:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])),.response-tools .row-icon svg:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){width:15px;height:15px;flex-basis:15px}
.composer-wrap:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){padding:8px 20px max(10px,env(safe-area-inset-bottom))}
.composer:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){border-radius:18px;border:1px solid #dcdcdc;padding:10px 10px 8px;box-shadow:none!important}
.composer:focus-within:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){box-shadow:none!important;border-color:#dcdcdc!important}
.composer textarea:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:16px;padding:5px 5px 10px}
.request-settings-button:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){border-radius:10px;background:#f3f3f3;padding:8px 10px}
.model-button-copy:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){gap:4px}
.composer-caption:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin:4px 0 0}
#composer-wallet:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:12px;color:#626262}
.sidebar:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){padding:16px 12px 12px}
.sidebar-heading:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin-bottom:12px}
.feature-navigation:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #e2e2e2}
.feature-navigation .feature-link:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:14px;font-weight:500;min-height:44px;padding:8px 12px;gap:12px}
.feature-navigation .row-icon:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){color:#636363}
.section-head:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin:4px 8px 4px;min-height:40px}
.section-toggle:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:12px;font-weight:600;color:#646464}
.section-all:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-height:40px;font-size:11px;color:#626262}
.history button:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-height:44px;font-size:13px}
.chat-heading:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin-top:16px}
.chat-row:has(.active):not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){background:#e8e8e8}
.page-content:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){max-width:720px;padding:20px!important}
.page-heading:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin:0 0 16px;padding-bottom:12px;gap:8px}
.page-heading h2:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:22px!important;font-weight:650;letter-spacing:-.3px}
.page-heading .row-icon:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){width:22px;flex-basis:22px}
.profile-identity:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin:0 0 20px;gap:12px}
.profile-identity .avatar:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){width:44px;height:44px}
.profile-identity strong:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:18px}
#add-home-screen:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){max-width:108px;font-size:11px;padding:8px;min-height:44px}
.profile-card:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){padding:16px!important;border-radius:16px!important;margin:0 0 16px!important;box-shadow:none}
.profile-card-heading:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:13px;color:#626262;margin:0 0 10px}
.profile-card-value>strong:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:24px;letter-spacing:-.5px}
.profile-card p:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:12px;color:#626262;line-height:1.5;margin:8px 0}
.profile-card-value:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){gap:12px}
#profile-topup:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])),#profile-upgrade:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){width:128px;min-width:128px;min-height:44px;border-radius:10px;font-size:12px}
#profile-promo:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])),#profile-files-open:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){width:128px;min-width:128px;min-height:44px;font-size:11px;border-radius:10px}
.profile-card-actions:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-width:128px;max-width:128px}
.review-local-storage .profile-card-value:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])),.review-local-storage .storage-toolbar:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){grid-template-columns:minmax(0,1fr) 128px}
.review-local-storage .profile-card-actions:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){width:128px}
.review-local-storage:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])),.review-cloud-storage:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){padding:12px 0!important}
.review-folder-tabs:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin:0;min-height:42px;background:#f5f5f5;border-radius:10px;padding:3px;border:0}
.review-folder-tab:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-height:40px;border-radius:8px!important;border:0!important;font-size:13px}
.review-folder-tab[aria-selected=true]:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){background:#fff!important}
.storage-check:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:11px;gap:6px}
.storage-check input:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){width:18px;height:18px}
.review-storage-status:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){padding:4px 0!important}
.profile-links:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){gap:0}
.profile-links .page-link:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-height:48px;padding:12px 4px;border-bottom:1px solid #ededed;font-size:14px}
.v26-settings-card:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){gap:8px;padding:16px!important}
.v26-settings-card h3:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:15px;line-height:1.35}
.v26-settings-card .meta:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:12px;margin:0}
.v26-settings-card select:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-height:44px;font-size:14px}
.v26-settings-card .tool-switch-row:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-height:44px;font-size:14px}
.v26-settings-form:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){gap:0}
#default-settings-open:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){border-bottom:0;margin:0;min-height:44px;padding:10px 0;font-size:15px}
.next-file-tabs button:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-height:44px;font-size:12px;font-weight:550;border-radius:10px}
.profile-file:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){padding:16px 0}
.profile-file-actions:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){gap:12px!important}
.profile-file-actions button:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-height:44px!important}
.file-selection-toolbar:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){gap:8px}
.file-selection-toolbar button:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:12px}
.profile-file-info strong:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:14px}
.profile-file-info small:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:12px}
.personal-form:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){gap:14px}
.personal-form label:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:13px;font-weight:550;line-height:1.4}
.personal-form input:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])),.personal-form textarea:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])),.personal-form select:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:16px;font-weight:400;min-height:44px;margin:6px 0 0;padding:10px 12px;border-radius:10px}
.cost-disclosure:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:12px;line-height:1.5;padding:12px;margin:6px 0}
.dialog-actions>button:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-height:44px!important}
.dialog:not(.page-dialog):not(.anchored-panel):not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){border-radius:18px}
.anchored-panel:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){border-radius:16px!important;box-shadow:0 12px 42px #00000017}
.chat-menu>button:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-height:44px;font-size:14px}
.chat-menu .menu-caption:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:12px;color:#646464}
.popover-heading h2:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:17px}
.choice-row:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-height:52px;padding:10px 12px}
.choice-copy strong:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:14px}
.choice-copy small:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:12px;color:#626262}
.settings-menu-link:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:13px;min-height:44px}
.variant-dialog .profile-field:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:13px}
.variant-dialog h2:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:20px}
.design-extra:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){display:none}
.design-reading-note:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:12px;color:#626262}
.design-storage-details:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:12px;color:#626262;margin-top:8px}
.design-storage-details summary:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-height:44px;display:flex;align-items:center;font-weight:550;color:#454545;cursor:pointer}
.design-storage-details summary:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"]))::after{content:'⌄';margin-left:auto}
@media(max-width:600px){.topbar:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){padding:8px 10px;min-height:68px;gap:4px}
.messages:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){padding:20px 16px 12px}
.composer-wrap:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){padding:8px 12px max(8px,env(safe-area-inset-bottom))}
.page-content:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){padding:16px!important}
.page-heading:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){padding-bottom:10px}
.page-heading h2:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:21px!important}
.response-tools>button:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])),.response-tools>details>summary:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:11px!important}
.message.assistant .response-tools:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){gap:7px!important}
.topbar .icon:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-width:40px;width:40px}
.profile-card:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){padding:14px!important}
.chat-menu:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){width:280px!important}
.section-all:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:11px}
.feature-navigation .feature-link:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-height:44px}
.chat-search .icon:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){min-width:44px;width:44px}
.next-file-tabs:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){gap:6px}}
@media(prefers-reduced-motion:reduce){*:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])),*:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"]))::before,*:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"]))::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.next-file-tabs:not(.file-kind-tabs) button[aria-pressed=true]:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){background:#fff!important;color:#171717!important;box-shadow:inset 0 0 0 1.5px #555;font-weight:600}
.next-file-tabs:not(.file-kind-tabs) button[aria-pressed=false]:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){background:#f5f5f5}
.schedule-form:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){gap:12px!important}
.schedule-form .profile-field:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin:0}
.schedule-form input:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])),.schedule-form select:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])),.schedule-form textarea:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin-bottom:0!important}
.schedule-form>.tool-switch-row:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin:0;padding:10px 0}
.schedule-form .cost-disclosure:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin:0}
.schedule-form>.dialog-actions:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){margin-top:4px}
.page-content>.personal-form:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){gap:12px}
.section-head .section-toggle:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:12px!important;font-weight:600}
.section-head .section-all:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:11px!important}
.section-head .section-all .row-icon:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){display:none}
.message.user:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:15px;line-height:1.5;border-radius:16px}
@media(max-width:600px){.message.assistant .response-tools:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){display:grid!important;grid-template-columns:max-content max-content;gap:0 16px!important;width:fit-content;max-width:100%;white-space:normal!important;overflow:visible!important}
.response-tools>button:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])),.response-tools>details>summary:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){font-size:12px!important;min-height:44px}
.message.assistant .response-tools>.usage-details:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){width:auto}}
.sidebar:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){background:#f7f7f7}
.main:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){background:#fff}
.message.user .markdown:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){background:#f3f3f3}
.page-dialog:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){background:#fff}
.profile-card:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){border:1px solid #e1e1e1}
.profile-card .profile-card-heading>span:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){color:#575757}
.feature-link:hover:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){background:#ededed}
.section-head:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){border:0}
.primary:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){border-radius:10px}
.v26-settings-card:not(:where(.main,.main *,#request-settings-dialog,#request-settings-dialog *,#chat-menu,#chat-menu *,.variant-dialog,.variant-dialog *,#profile-files,#profile-files *,.file-selection-toolbar,.file-selection-toolbar *,#profile-more-files,#account-page input[role="switch"])){border:1px solid #e3e3e3;background:#fff}
/* A's theme variables are local so that the approved chat is unchanged. */
:where(.sidebar,.page-dialog,#review-answer-details){--ink:#181818;--muted:#626262;--line:#e3e3e3;--sidebar:#f5f5f5;--reading-width:760px}
/* Only the two approved changes to the chat header. */
.topbar{border-bottom:1px solid #ededed}
.topbar #chat-options{border:0;background:transparent;box-shadow:none}
/* The visible keyboard touches the composer; its footer returns on close. */
html.chat-keyboard-open .composer-caption,html.chat-keyboard-open #balance-hint{display:none!important}
html.chat-keyboard-open .composer-wrap{padding-bottom:0!important}

/* Approved Gemini controls plus the requested v0.28 adjustments. */
.gemini-provider-tabs{display:flex;gap:6px;margin:0 0 8px}
.gemini-provider-tabs>button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-width:0;border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:transparent;color:var(--ink);font:inherit;font-size:12px;font-weight:600}
.gemini-provider-tabs>button[aria-pressed="true"]{border-color:var(--ink);color:var(--ink);background:var(--surface)}
.gemini-provider-tabs img{width:20px;height:20px;object-fit:contain;flex:none}
.gemini-provider-tabs[hidden]{display:none}
.gemini-default-tabs{display:flex;gap:2px;padding:3px;margin:0 0 10px;border:1px solid #eaeaea;background:#f8f8f8;border-radius:11px}
.gemini-default-tabs>.mode-choice{flex:1;min-width:0}
.gemini-default-tabs>.mode-choice>button{width:100%}
.gemini-primary-card{margin-top:0}

.provider-default-link{display:grid!important;grid-template-columns:22px 1fr auto;align-items:center;gap:10px}
.provider-default-icon{width:22px;height:22px;object-fit:contain;display:block}
#chat-menu-title{display:none!important}
.main .hint-button,.main .mode-help,#request-settings-dialog .hint-button,#request-settings-dialog .mode-help{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;color:var(--muted)}

#v26-model-settings-card .provider-default-link{margin:0;min-height:44px;padding:10px 0;font-size:15px;border-bottom:0}

/* Expenditure details extend the existing compact answer popover only. */
.cost-details-v29 .cost-detail-note,
#review-answer-details .cost-detail-note { margin:7px 0; font-size:11px; line-height:1.45; color:var(--muted,#626262); overflow-wrap:anywhere; }
.cost-diagnostic-section { border-top:1px solid var(--line,#e3e3e3); margin-top:9px; padding-top:3px; min-width:0; }
.cost-diagnostic-section>summary { display:list-item!important; list-style:disclosure-closed!important; cursor:pointer; padding:6px 0!important; margin-left:14px; font-size:12px; line-height:1.4; min-height:30px; color:var(--ink,#181818); }
.cost-diagnostic-section[open]>summary { list-style:disclosure-open!important; }
.cost-diagnostic-section>summary .row-icon { display:none; }
.cost-diagnostic-step { margin:9px 0 0; padding:0 0 8px; min-width:0; }
.cost-diagnostic-step+.cost-diagnostic-step { border-top:1px solid var(--line,#e3e3e3); padding-top:10px; }
.cost-diagnostic-step h3 { margin:0 0 7px; font-size:12px; line-height:1.45; font-weight:600; overflow-wrap:anywhere; }
#review-answer-details .cost-diagnostic-grid { margin:5px 0 8px; font-size:11px; gap:4px 10px; }
#review-answer-details .usage-grid .cost-detail-sub { font-size:11px; }
#review-answer-details .usage-grid dt.cost-detail-sub { padding-left:7px; }
.cost-detail-caption { margin:9px 0 4px!important; font-size:11px!important; font-weight:600; line-height:1.4!important; }
.cost-diagnostic-unavailable { padding:7px 0; }

.media-tabs{display:flex;gap:3px;padding:3px;border:1px solid var(--line,#ddd);border-radius:12px;background:var(--soft,#f3f3f1);margin:4px 0 14px}
.media-tab{flex:1;border:0;border-radius:9px;background:transparent;min-height:36px;font:inherit;font-size:13px;padding:8px 12px;color:var(--muted,#6b6b68)}
.media-tab[aria-selected=true]{color:var(--text,#161615);background:var(--bg,#fff);box-shadow:0 1px 4px #0000000d}
.media-models{display:grid;gap:3px;margin-bottom:12px}.media-model{display:flex;align-items:center;gap:10px;padding:10px 8px;text-align:left;border-radius:10px}.media-model[aria-pressed=true]{background:var(--soft,#f3f3f1)}
.media-model .choice-copy{display:flex;flex:1;flex-direction:column;gap:3px}.media-model strong{font-size:13px;font-weight:600}.media-model small{font-size:11px;color:var(--muted,#747470)}.media-model-icon{width:22px;height:22px;object-fit:contain;flex:none}.media-banana{display:inline-flex;font-size:20px;align-items:center;justify-content:center}.media-check{width:15px;font-size:14px}
.media-settings-pane .profile-field,.media-create-dialog .profile-field{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-size:12px;color:var(--muted,#686864)}
.media-settings-pane select,.media-create-dialog select,.media-create-dialog textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--line,#ddd);border-radius:10px;padding:10px;color:var(--text,#161615);background:var(--bg,#fff);font:inherit;font-size:13px}
.media-video-model{display:flex;align-items:center;gap:10px;font-size:14px;margin:15px 0}.media-settings-pane .popover-help{font-size:11px;line-height:1.5;margin-top:14px}
.media-create-dialog{width:min(460px,calc(100vw - 24px));max-height:calc(var(--app-height,100dvh) - 32px);overflow:auto;padding:22px;box-sizing:border-box}.media-create-dialog h2{font-size:18px}.media-create-dialog .dialog-actions{position:sticky;bottom:-22px;padding:16px 0;background:var(--bg,#fff);display:flex;justify-content:flex-end;gap:8px}.media-create-dialog textarea{resize:vertical;min-height:84px}.media-quote:not(:empty){border:1px solid var(--line,#ddd);border-radius:12px;padding:12px;margin:14px 0}.media-quote p{margin:8px 0;line-height:1.5}
.media-proposal,.media-progress{padding:14px 16px;border:1px solid var(--line,#ddd);border-radius:14px;margin:14px 0;max-width:520px;background:var(--bg,#fff)}.media-proposal p,.media-progress p{margin:6px 0 10px}.media-artifact-actions{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:8px}.attachment-card:has(.media-artifact-actions){flex-wrap:wrap;max-width:100%}.media-artifact-actions .text-button{font-size:12px;min-height:32px}.media-player{width:100%;max-height:65dvh;background:#111;border-radius:12px;margin:15px 0}.gallery-video-symbol{display:grid;place-items:center;min-height:140px;background:var(--soft,#f3f3f1);font-size:40px}.media-progress{margin-inline:auto;width:calc(100% - 36px);box-sizing:border-box}
@media(max-width:420px){.media-create-dialog{padding:16px}.media-create-dialog .dialog-actions{bottom:-16px}.media-tab{padding-inline:8px}.media-artifact-actions{gap:0 8px}}

/* 0.31.1: media is a separate group, alongside response preferences. */
#request-settings-content .media-settings-block{margin-top:7px;padding-top:7px;border-top:1px solid #eee}
#request-settings-content .media-menu-link{align-items:center;gap:8px;padding-block:10px}
.media-entry-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.media-entry-title{font-size:13px;line-height:1.45}
.media-entry-model{font-size:11px;line-height:1.45;color:#777;overflow-wrap:anywhere}
.media-menu-link .chevron{flex:none}
.media-settings-pane>.menu-section-label{margin:0 7px 6px}
.media-model-icon{filter:none!important}

.hint-button{min-width:36px;min-height:36px;color:#444;font-size:14px}
.composer-caption{gap:6px;padding-top:4px}
#composer-wallet{font-size:13px;color:#333}
#composer-balance{font-weight:650;color:#171717}
.model-button-copy{display:flex!important;flex-direction:column!important;gap:3px;align-items:flex-start;min-width:0}
#request-settings-label{font-size:12px;line-height:1.25;text-align:left}
#request-payment-label{border:0!important;padding:0!important;margin:0!important;font-size:11px;line-height:1.25;color:#555}
#request-payment-label:before{display:none!important}
#request-settings-label,#request-payment-label{white-space:nowrap}
.model-free32{font-size:11px;font-weight:400;margin-left:3px;color:#444}
.request-settings-button{padding:9px 8px;min-height:52px;gap:5px!important}
.settings-scope32{font-size:12px;color:#555;margin:2px 7px 12px;line-height:1.45}
.field-head32{display:flex;align-items:center;justify-content:space-between;color:#333;gap:8px}
.field-hint32{font-size:12px;color:#606060;margin:2px 0 0;line-height:1.5}
.profile-file{display:grid;grid-template-columns:24px 88px minmax(0,1fr);align-items:center;gap:12px;padding:16px 0}
.file-thumb32{width:88px;height:88px;object-fit:cover;border-radius:10px;background:#f3f3f3}
.profile-file-info{grid-column:3;min-width:0}
.profile-file-info strong{font-size:14px;overflow-wrap:anywhere}
.profile-file-info small{font-size:12px;color:#555;line-height:1.5}
.profile-file-actions{grid-column:3;gap:14px;margin:0;flex-wrap:wrap}
.file-origin32{display:block;color:#333;font-size:12px;text-decoration:underline;text-underline-offset:3px;margin-top:5px}
.media-review32{max-width:560px;padding:20px;border:1px solid #d9d9d9;border-radius:14px;background:#fff;margin:18px auto;width:calc(100% - 32px);box-sizing:border-box}
.media-review32 h3{font-size:16px;margin:5px 0 12px}
.media-review32 p{font-size:14px;line-height:1.5;color:#4d4d4d;margin:8px 0}
.media-review32 dl{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 0;margin:14px 0;border-block:1px solid #eee;font-size:13px}
.media-review32 dt{color:#5b5b5b}.media-review32 dd{margin:0;text-align:right;font-weight:600}
.review-actions32{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.review-actions32 button{min-height:42px}
.provider-tabs32{display:flex;gap:4px;background:#f4f4f4;border-radius:12px;padding:4px;margin:8px 0 22px}
.provider-tabs32 button{border:0;background:transparent;padding:10px 18px;border-radius:9px;flex:1;font-size:14px;color:#555}
.provider-tabs32 button[aria-selected=true]{background:#fff;color:#111;box-shadow:0 1px 4px #0000000d}
.provider-metrics32{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}
.provider-metrics32 span{display:block;font-size:12px;color:#555;margin-bottom:7px}
.provider-metrics32 strong{font-size:23px}
.provider-reconcile32{border-top:1px solid #ddd;padding-top:18px;margin-top:22px}
.provider-reconcile32 h3{font-size:16px;margin:0 0 12px}
.provider-reconcile32 p{font-size:13px;line-height:1.6;color:#555}
.provider-reconcile32 label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#333;margin:12px 0}
.provider-reconcile32 input{border:1px solid #ccc;padding:11px;border-radius:9px;font-size:14px;max-width:100%;box-sizing:border-box}
.provider-reconcile32{margin-top:16px;padding-top:14px}
.provider-reconcile32 label{margin:10px 0;gap:5px}
.provider-note32{font-size:12px;line-height:1.6;color:#555;padding-bottom:14px;border-bottom:1px solid #eee}
#help-text{font-size:14px;line-height:1.65}
#help-dialog{max-height:calc(100dvh - 36px);overflow:auto}
/* Approved readable captions; settings menus keep their established structure. */
.meta,.media-entry-model,.choice-copy small,.media-model small{color:#5c5c5c}
.quality-field32{margin:12px 0}.quality-field32>.profile-field{margin:0}.field-head32>label{margin:0;font:inherit}
.file-thumb32{border:0;padding:0;overflow:hidden;font-size:28px;color:#707070;display:grid;place-items:center}
.file-thumb32 img{width:100%;height:100%;object-fit:cover}.file-origin32{border:0;padding:0;background:none;text-align:left;font-family:inherit;cursor:pointer}
.provider-metrics32{display:block}.provider-metrics32 h2{margin:8px 0;font-size:28px}.provider-reconcile32 .api-balance-form{display:grid;gap:10px}
@media(max-width:500px){.hint-button{min-width:44px;min-height:44px}.profile-file{grid-template-columns:22px 76px minmax(0,1fr);gap:9px}.file-thumb32{width:76px;height:76px}.profile-file-actions{grid-column:2 / 4;margin-left:0}.media-review32{padding:17px}.settings-scope32{font-size:11px;margin-bottom:6px}}

/* Override older ID-scoped file rules so the approved three-column grid wins. */
#profile-files .profile-file{display:grid;grid-template-columns:24px 88px minmax(0,1fr);align-items:center;gap:12px;padding:16px 0}
#profile-files .profile-file-info{grid-column:3;min-width:0}
#profile-files .profile-file-actions{grid-column:3;flex-wrap:wrap;gap:14px;margin:0}
.welcome .prompt.next-with-icon{display:block!important;text-align:left}
.welcome .prompt>.row-icon{display:inline-flex;vertical-align:middle;margin:0 5px 0 0}
.welcome .prompt>span:not(.row-icon){display:block;white-space:normal;overflow-wrap:anywhere}
@media(max-width:500px){#profile-files .profile-file{grid-template-columns:22px 76px minmax(0,1fr);gap:9px}#profile-files .profile-file-actions{grid-column:2 / 4}}
@media(max-width:360px){#request-settings-label:has(.model-free32){white-space:normal;max-width:100%}.model-free32{display:block;margin:2px 0 0;font-size:10px}.request-settings-button:has(.model-free32){min-height:64px}}

.provider-reconcile32 .lesson p{overflow-wrap:anywhere}

/* Work uses the Chat reading column, typography, toolbar and details popover. */
.thread + .work-thread{margin-top:30px}
.message.assistant.work-job{border:0;border-radius:0;padding:0;margin:0;max-width:100%;background:transparent}
.work-job .work-result{white-space:normal;font:inherit;line-height:1.75;margin:0}
.work-job .markdown h3{font-size:1.12em;margin:1.1em 0 .5em}
.work-job .work-state{font-size:13px;line-height:1.6;font-weight:400;color:#606060;margin:0 0 10px}
.work-job .work-stages{margin:0 0 16px;padding-left:20px;color:#606060;line-height:1.7}
.work-job .stage-done{color:#606060}
.work-job .response-tools>.usage-details{margin:0}
.work-job .work-controls{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.work-controls button{font-size:12px;min-height:36px}
.work-file{margin:14px 0}
.attachment-download{width:min(430px,calc(100% - 32px));box-sizing:border-box}
.attachment-download h2{margin-bottom:12px}
.download-filename{overflow-wrap:anywhere;font-size:14px;line-height:1.5}
.attachment-download .meta{font-size:13px;line-height:1.6}
.download-choices{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:18px 0 10px}
.download-choices .primary,.download-choices .secondary{min-height:44px;box-sizing:border-box;text-align:center;display:flex;justify-content:center;align-items:center;text-decoration:none;font-size:14px}
.download-choices .download-refresh{align-self:flex-start;min-height:36px;font-size:12px}
.attachment-download>button{min-height:40px;width:100%}
.media-review32 .media-cost-note{font-size:12px;line-height:1.5}
@media(max-width:500px){.work-controls button{min-height:40px}.attachment-download{padding:20px}}

/* Only new Claude surfaces; original Mini App styles remain authoritative. */
.gemini-provider-tabs button{min-width:0}
.claude-permission-line{display:flex;align-items:center;gap:4px;margin:4px 8px 0;min-height:28px;font-size:11px;color:#666}
.claude-permission-line button{background:none;color:#555;font:inherit;padding:4px 0;min-height:28px}
.claude-permission-line .hint-button{min-height:28px;min-width:28px;padding:0}
.permission-summary{font-size:12px;color:#666;line-height:1.5;padding:8px 6px}
.claude-task{margin:12px 0;font-size:13px;line-height:1.6}
.claude-task .session-state{color:#606060;line-height:1.6}
.claude-task.balance-paused{border:1px solid #dedede;border-radius:13px;padding:16px;margin:16px 0;font-size:14px;line-height:1.65}
.claude-task.balance-paused p{margin:0 0 12px}
.claude-task[hidden]{display:none}
.claude-task .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.claude-permission-card{border:1px solid #dedede;border-radius:13px;padding:12px;margin:8px 0}
.claude-permission-card pre{max-height:130px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
@media(max-width:500px){.gemini-provider-tabs button{padding-left:8px;padding-right:8px;gap:5px}}

.research-chip{display:inline-flex;align-items:center;gap:10px;margin:0 8px 8px;padding:6px 10px;border:1px solid #dedede;background:#f6f6f6;border-radius:8px;font-size:12px;color:#444}
.research-chip button{background:transparent;color:inherit;font-size:17px;padding:0 4px}
.artifact-panel{position:fixed;right:0;top:0;height:100%;width:440px;max-width:100%;border-left:1px solid #dedede;background:#fff;display:flex;flex-direction:column;z-index:55;box-shadow:-5px 0 20px #00000006}
.artifact-heading{padding:16px 18px;border-bottom:1px solid #e9e9e9;display:flex;gap:10px;align-items:center;min-height:76px}
.artifact-heading strong{display:block;font-size:14px;overflow-wrap:anywhere}
.artifact-heading small{display:block;color:#666;font-size:12px;margin-top:4px}
.artifact-heading .icon{margin-left:auto;flex-shrink:0}
.artifact-versionbar{padding:12px 18px;border-bottom:1px solid #eee;display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px}
.artifact-versionbar select{padding:8px;border:1px solid #ddd;border-radius:8px;background:white;color:#222;font-size:12px}
.artifact-content{padding:22px 18px;overflow:auto;flex:1;min-height:0}
.artifact-content h3{font-size:19px;margin:0 0 12px}
.artifact-content p{font-size:14px;line-height:1.65;margin:0 0 16px}
.artifact-table{width:100%;border-collapse:collapse;font-size:13px}
.artifact-table th,.artifact-table td{border-bottom:1px solid #e8e8e8;padding:12px 8px;text-align:left}
.artifact-table td:last-child,.artifact-table th:last-child{text-align:right}
.artifact-footer{display:flex;gap:8px;flex-wrap:wrap;padding:16px 18px;border-top:1px solid #eee}
.artifact-footer .secondary,.artifact-footer .primary{font-size:12px}
.artifact-followup{padding:14px;border-top:1px solid #eee;display:flex;flex-direction:column;gap:9px}
.artifact-followup textarea{font-size:16px;width:100%;min-height:74px;border:1px solid #ddd;border-radius:10px;padding:10px;color:#222;background:#fff;resize:vertical}
.artifact-followup button{align-self:flex-end}
@media(min-width:1180px){.artifact-open .main{margin-right:440px}}
@media(max-width:1179px){.artifact-panel{width:100%;border-left:0}}
.artifact-content .artifact-preview{width:100%;max-height:100%;object-fit:contain}.artifact-content iframe{width:100%;height:65vh;border:0}.artifact-table td{overflow-wrap:anywhere}.artifact-content pre{white-space:pre-wrap;overflow-wrap:anywhere}

/* Compact approved media form; use the same typography, controls and colors. */
.media-create-dialog .media-create-model-label{display:flex;align-items:center;gap:8px;font-size:12px;margin:8px 0;color:var(--muted)}
.media-create-dialog .media-create-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;align-items:start}
.media-create-dialog .media-create-fields .profile-field{margin:0}
.media-create-dialog .media-create-fields .quality-field32{margin:0;min-width:0}
.media-create-dialog .quality-field32 .field-head32{margin-bottom:6px}
.media-create-dialog .profile-field{margin:10px 0}
.media-create-dialog textarea{min-height:64px}
.media-create-dialog .media-tabs{margin-bottom:8px}
.media-create-dialog .media-quote:not(:empty){margin:10px 0;padding:10px;font-size:12px}
.media-create-dialog .media-quote-terms{margin-top:6px;color:var(--muted);line-height:1.4}
.media-create-dialog .media-quote-terms summary{cursor:pointer}
.media-create-dialog .media-quote-terms p{font-size:11px}
.media-create-dialog .dialog-actions{padding-block:10px}
.media-create-dialog [role=status]:empty{display:none}
.media-create-dialog .primary,.media-create-dialog .secondary{white-space:normal}
.attachment-card.media-result-card{display:flex;flex-direction:column;align-items:stretch;width:min(100%,520px);max-width:100%;box-sizing:border-box;padding:10px;gap:4px}
.media-result-card .attachment-name{display:flex;flex-direction:column;align-items:flex-start;gap:8px;max-width:100%;overflow-wrap:anywhere;text-align:left}
.media-result-card .attachment-thumb{width:100%;height:auto;max-height:480px;object-fit:contain;border-radius:10px;background:var(--soft);display:block}
.media-result-card .attachment-notice{font-size:11px}
.media-result-card .image-delete{align-self:flex-start}
.media-inline-video{width:100%;aspect-ratio:16/9;display:grid;place-items:center;border-radius:10px;background:var(--soft);overflow:hidden}
.media-video-open{width:100%;height:100%;min-height:150px;border:0;background:transparent;color:var(--text);font:inherit;font-size:32px;cursor:pointer}
.media-inline-video .media-player{margin:0;max-height:480px}
.media-result-card .media-artifact-actions{margin-top:4px}
.media-status-details{font-size:12px}
@media(max-width:420px){.media-create-dialog{padding:14px}.media-create-dialog .dialog-actions{bottom:-14px}.media-create-dialog select{padding:9px 7px}.media-result-card .attachment-thumb{max-height:360px}}

.media-create-dialog .profile-field[hidden]{display:none!important}

.media-create-dialog .field-head32{font-size:12px;gap:4px;min-width:0}
.media-create-dialog .field-head32>label{min-width:0;overflow-wrap:anywhere;font-size:12px}
.media-create-dialog .hint-button{flex:none;min-width:36px;min-height:36px}
.media-create-dialog .media-create-fields>.profile-field{justify-content:flex-end;align-self:stretch}
.media-create-dialog .dialog-actions{display:grid;grid-template-columns:1fr 1.3fr}

.file-download333{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;margin-top:5px;min-width:0}
.file-download333 a{display:inline-flex;align-items:center;min-height:32px;text-decoration:none;cursor:pointer;font:inherit;font-size:12px}
.file-download333 [hidden]{display:none!important}
.file-download333 a[aria-disabled=true]{opacity:.6}
.file-download-status333{flex-basis:100%;font-size:11px;line-height:1.4;color:var(--muted,#626262);overflow-wrap:anywhere}
.file-download-status333:empty{display:none}
.artifact-footer>.file-download333{margin:0}

/* Squad uses the approved original marks; GPT is the frontmost full card. */
.squad-stack335{display:inline-flex;align-items:center;flex:none;padding-right:1px}
.squad-stack335>span{display:grid;place-items:center;width:28px;height:29px;background:#fff;border:1px solid #dedede;border-radius:8px;margin-left:-10px;position:relative}
.squad-stack335>span:first-child{margin-left:0;z-index:3}.squad-stack335>span:nth-child(2){z-index:2}.squad-stack335>span:nth-child(3){z-index:1}
.squad-stack335 img{width:18px;height:18px;object-fit:contain}.squad-stack335 img[data-brand=gpt]{width:26px;height:26px}
#request-settings-open>.squad-stack335 img{display:block;flex:none;max-width:none}
.squad-menu335{gap:11px;border-bottom:1px solid var(--line);margin-bottom:8px;padding-bottom:14px!important}
.squad-menu335 .choice-copy{flex:1;min-width:0}
.squad-dialog335{box-sizing:border-box;width:min(544px,calc(100vw - 24px));max-height:calc(100dvh - 28px);margin:auto;padding:24px;border:1px solid var(--line);border-radius:24px;background:#fff;color:var(--ink);overflow:auto;overscroll-behavior:contain;box-shadow:0 16px 45px #0002}
.squad-dialog335::backdrop{background:#0005}
.squad-top335{display:flex;justify-content:space-between;align-items:center;gap:10px}.squad-brand335{display:flex;align-items:center;gap:12px}
.squad-dialog335 h2{margin:0;font-size:25px;font-weight:550;letter-spacing:-.6px}.squad-close335{font-size:27px;width:36px;height:36px;background:transparent;border-radius:10px;color:var(--muted)}.squad-close335:hover{background:var(--surface)}
.squad-private335{color:var(--muted);font-size:12px;margin:2px 0 20px}.squad-private335{display:flex;align-items:center;gap:6px}.squad-private335 svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5}
.squad-dialog335 h3{font-size:23px;font-weight:550;line-height:1.28;letter-spacing:-.4px;margin:0 0 10px;max-width:410px}
.squad-intro335{font-size:14px;line-height:1.55;color:var(--muted);margin:0}.squad-section335{font-size:14px;font-weight:550;margin:20px 0 3px}
.squad-note335{font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 12px}
.squad-test335{display:flex;flex-direction:column;gap:3px;background:var(--surface);padding:11px 13px;border-radius:12px;font-size:12px;line-height:1.5;margin-top:16px}.squad-test335 strong{font-weight:550}.squad-test335 span{color:var(--muted)}
.squad-models335{border:1px solid var(--line);border-radius:16px;overflow:hidden}.squad-model335{display:flex;align-items:center;gap:12px;padding:13px 14px}.squad-model335+.squad-model335{border-top:1px solid var(--line)}
.squad-model-icon335{display:grid;place-items:center;flex:0 0 35px;height:35px;background:#fff;border-radius:10px}.squad-model-icon335 img{width:26px;height:26px;object-fit:contain}.squad-model-icon335 img[data-brand=gpt]{width:35px;height:35px}
.squad-model-copy335{min-width:0;display:flex;flex-direction:column;gap:3px}.squad-model-copy335 strong{font-size:14px;font-weight:550}.squad-model-copy335 small{font-size:12px;line-height:1.4;color:var(--muted)}
.squad-receipt335{margin-top:18px}.squad-tools335{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.squad-example335{display:flex;gap:12px;color:var(--muted)}.squad-example335 svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
.squad-consensus335{display:flex;align-items:center;gap:7px;font-size:12px}.squad-approvals335{display:flex;gap:5px}.squad-approvals335>span{width:21px;height:21px;display:grid;place-items:center;background:#fff;border-radius:6px}.squad-approvals335 img{width:17px;height:17px;object-fit:contain}.squad-approvals335 img[data-brand=gpt]{width:23px;height:23px}
.squad-consensus-note335{margin:10px 0 0}.squad-actions335{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.squad-actions335 button{min-height:42px;padding:10px 17px;border-radius:12px;font-size:14px}.squad-actions335 .primary{color:white;background:#171717}
.squad-status335{font-size:12px;line-height:1.5}.squad-composer335{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;line-height:1.4;color:var(--muted);padding:6px 10px 8px}.squad-composer335 .text-button{font-size:11px;white-space:nowrap;min-height:30px}
@media(max-width:380px){.squad-dialog335{padding:18px}.squad-dialog335 h3{font-size:21px}.squad-model335{padding:11px 10px;gap:8px}.squad-model-copy335 strong{font-size:13px}.squad-model-copy335 small{font-size:11px}.squad-actions335 button{padding:10px 14px}}

.squad-menu335 .choice-copy small{white-space:normal;overflow-wrap:anywhere;line-height:1.45}.squad-composer335>span{min-width:0;overflow-wrap:anywhere}.squad-composer335{align-items:flex-start}.squad-model-copy335 strong,.squad-model-copy335 small{overflow-wrap:anywhere}.squad-consensus-note335{margin:15px 0}.squad-run335{min-width:0;margin:14px 0;padding:16px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.squad-run-heading335{display:flex;align-items:center;gap:9px;font-size:14px}.squad-task335{white-space:pre-wrap;font-size:14px;line-height:1.5;color:var(--muted)}.squad-progress335{font-size:12px;color:var(--muted);margin:10px 0}.squad-result335{min-width:0;line-height:1.6}.squad-details335,.squad-stage335{border:1px solid var(--line);border-radius:12px;margin:12px 0;padding:10px 12px;min-width:0}.squad-details335 summary,.squad-stage335 summary{cursor:pointer;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.squad-stage335{padding:8px;margin:10px 0}.squad-stage335 .markdown{font-size:13px}.squad-run-actions335{display:flex;flex-wrap:wrap;gap:8px}.squad-run-actions335 button,.squad-recovery335 button{padding:8px 12px;font-size:12px;border-radius:10px;min-height:36px}.squad-objections335,.squad-recovery335,.squad-admin-warning335{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:12px;font-size:13px;line-height:1.5;margin:12px 0}.squad-objections335 p,.squad-admin-warning335 p{margin:6px 0 0}.squad-notice335{font-size:13px;line-height:1.5}.squad-sources335{font-size:12px;padding-left:20px}.squad-sources335 a{overflow-wrap:anywhere}.squad-run335 pre{max-width:100%;overflow:auto}.squad-run335 table{display:block;max-width:100%;overflow:auto}.squad-tools335{gap:12px;margin:12px 0}.squad-admin-member335{border:1px solid var(--line);border-radius:14px;padding:14px;margin:14px 0;min-width:0}.squad-admin-member335 legend{font-size:14px;font-weight:550;padding:0 6px}.squad-admin-member335 label,#squad-continue-dialog label{display:flex;flex-direction:column;gap:6px;font-size:13px;margin:0 0 12px;min-width:0}.squad-admin-member335 select,#squad-continue-dialog select{width:100%;max-width:100%;min-width:0;padding:10px;font:inherit;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink)}#admin-section-squad>.primary{padding:11px 15px;min-height:42px;border-radius:10px}.squad-admin-status335{font-size:13px;line-height:1.5}.squad-runs335{width:100%;min-width:0}.squad-result335 img{max-width:100%}#squad-continue-dialog h2{font-size:20px;margin-bottom:12px}
@media(max-width:380px){.squad-menu335{gap:8px}.squad-menu335 .choice-copy small{font-size:11px}.squad-run335{padding:12px 0}.squad-details335{padding:9px}.squad-tools335{gap:10px}.squad-admin-member335{padding:11px}}

.squad-consensus335{white-space:nowrap;flex-shrink:0}#request-settings-open.is-squad335>.squad-stack335>span{width:22px;height:26px;margin-left:-9px;border-radius:7px}#request-settings-open.is-squad335>.squad-stack335>span:first-child{margin-left:0}#request-settings-open.is-squad335>.squad-stack335 img{width:16px;height:16px}#request-settings-open.is-squad335>.squad-stack335 img[data-brand=gpt]{width:21px;height:21px}#request-settings-open.is-squad335 .model-button-copy{min-width:39px}#request-settings-open.is-squad335 #request-payment-label{font-size:10px}@media(max-width:360px){#request-settings-open.is-squad335{padding:8px 6px;gap:4px!important}#request-settings-open.is-squad335 #request-payment-label{font-size:9px}}

@media(max-width:360px){.response-tools.squad-tools335{gap:7px!important}.squad-consensus335{font-size:11px;gap:5px}.squad-approvals335{gap:3px}.squad-approvals335>span{width:18px;height:20px}.squad-approvals335 img{width:16px;height:16px}.squad-approvals335 img[data-brand=gpt]{width:21px;height:21px}}

.media-capacity{margin:8px 0;padding:8px 10px;border:1px solid var(--line,#dedede);border-radius:10px;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.media-capacity p,.media-capacity-profile p{margin:3px 0}
.media-capacity-numbers{font-variant-numeric:tabular-nums}
.media-capacity-warning{border:1px solid var(--ink,#222);background:var(--surface,#f6f6f6);border-radius:10px;padding:8px 10px}
.media-capacity-notice{font-size:12px;line-height:1.45}
.media-capacity-explanation{margin-top:5px}
.media-capacity-explanation summary{cursor:pointer;font-size:12px;color:var(--muted,#686868)}
.media-capacity .text-button{margin-top:4px;min-height:32px;font-size:12px}
.media-capacity-profile:empty{display:none}
@media(max-width:420px){.media-capacity{padding:7px 8px;margin:6px 0}}

/* Four peer choices; the Squad content reuses the approved card. */
.gemini-provider-tabs.providers-four45{gap:4px}
.gemini-provider-tabs.providers-four45>button{padding:8px 5px;gap:4px;font-size:11px}
#provider-squad>.squad-stack335>span{width:20px;height:22px;border-radius:6px;margin-left:-10px}
#provider-squad>.squad-stack335>span:first-child{margin-left:0}
#provider-squad>.squad-stack335 img{width:13px;height:13px}
#provider-squad>.squad-stack335 img[data-brand=gpt]{width:18px;height:18px}
#request-settings-content>.squad-inline45{display:block;width:100%;max-height:none;margin:0;padding:12px 0 0;border:0;border-radius:0;box-shadow:none;overflow:visible}
.squad-inline45 .squad-top335{margin-bottom:14px}
.squad-inline45 .squad-close335{display:none}
.squad-inline45 .squad-actions335{justify-content:flex-end}
.squad-inline45 .squad-model335{padding:12px}
@media(max-width:500px){.gemini-provider-tabs.providers-four45>button{flex-direction:column;gap:4px;padding:6px 3px;font-size:11px;white-space:nowrap}.gemini-provider-tabs.providers-four45>button>img{height:22px;width:22px}.squad-inline45 h3{font-size:21px}.squad-inline45 .squad-model335{padding:11px 9px;gap:9px}}
/* Squad typography follows the same 14 / 13 / 11 px scale as the AI menu. */
.squad-dialog335{font-family:inherit;font-size:13px;line-height:1.5;letter-spacing:normal}
.squad-dialog335 h2{font-family:inherit;font-size:14px;font-weight:600;line-height:1.5;letter-spacing:normal}
.squad-dialog335 h3,.squad-model-copy335 strong{font-family:inherit;font-size:13px;font-weight:550;line-height:1.5;letter-spacing:normal}
.squad-intro335,.squad-note335,.squad-private335,.squad-model-copy335 small{font-family:inherit;font-size:11px;font-weight:400;line-height:1.45;color:#818181;letter-spacing:normal}
.squad-section335{font-family:inherit;font-size:11px;font-weight:400;line-height:1.5;color:#888;letter-spacing:normal}
.squad-actions335 button{font-family:inherit;font-size:13px}
#provider-squad{padding-left:6px;padding-right:6px;gap:4px}
#provider-squad>.squad-stack335{width:28px;height:18px;flex:0 0 28px;padding:0;overflow:visible}
#provider-squad>.squad-stack335>span{box-sizing:border-box;width:14px;height:18px;flex:0 0 14px;margin-left:-7px;border-radius:5px}
#provider-squad>.squad-stack335>span:first-child{margin-left:0}
#provider-squad>.squad-stack335 img{width:10px;height:10px}
#provider-squad>.squad-stack335 img[data-brand=gpt]{width:12px;height:12px}
#request-settings-open.is-squad335{padding-left:10px;padding-right:10px;gap:7px!important}
#request-settings-open.is-squad335>.squad-stack335{width:36px;height:22px;flex:0 0 36px;padding:0;overflow:visible}
#request-settings-open.is-squad335>.squad-stack335>span{box-sizing:border-box;width:18px;height:22px;flex:0 0 18px;margin-left:-9px;border-radius:6px}
#request-settings-open.is-squad335>.squad-stack335>span:first-child{margin-left:0}
#request-settings-open.is-squad335>.squad-stack335 img{width:12px;height:12px}
#request-settings-open.is-squad335>.squad-stack335 img[data-brand=gpt]{width:16px;height:16px}
#request-settings-open.is-squad335 .model-button-copy{min-width:0}
#request-settings-open.is-squad335>svg{flex-shrink:0}

.helpers-running340{font:inherit;font-size:12px;color:var(--muted,#777);padding:8px 0}
.media-reference-row{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.media-reference-row label{flex:1;min-width:120px}.media-references{margin:10px 0}.media-version-compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.media-version-compare figure{margin:0}.media-version-compare img,.media-version-compare video{max-width:100%;max-height:60vh;object-fit:contain}.media-version-row,.research-plan-actions{padding:14px;border:1px solid var(--border);border-radius:14px;margin:12px 0}.research-plan-actions textarea{display:block;box-sizing:border-box;width:100%;font:inherit;margin:10px 0}.research-plan-actions button{margin:5px 8px 0 0}

.media-sources{display:grid;gap:5px;padding:8px 0;font-size:12px}.media-search-suggestions{border:0;width:100%;height:125px;background:white}

/* Design v1.0: Claude composition, 0.34 neutral palette and fields. */
body.design-v1{--bg:#fff;--surface:#fff;--line:#e5e5e5;--muted:#777;--text:#222;--accent:#252525;background:#fff;color:#222}
.design-v1 .sidebar{background:#f6f6f6;border-right:1px solid #e7e7e7;padding:18px 14px}.design-v1 .sidebar-heading{padding:0 4px 18px}.design-v1 #profile-open{width:100%;text-align:left}.design-v1 .sidebar-tools{display:flex;gap:8px;margin:0 0 8px}.design-v1 #new{display:flex;flex:1;justify-content:flex-start;gap:10px;background:white;color:#222;border:1px solid #e4e4e4;border-radius:10px;padding:11px 14px}.design-v1 .chat-search{flex:0 0 42px}.design-v1 .navigation-toolbar,.design-v1 #sidebar-wallet,.design-v1 #sidebar-storage,.design-v1 .sidebar-footer>.account,.design-v1 #nav-plugins{display:none}.design-v1 .nav-label350{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#858585;margin:10px 10px 5px}.design-v1 .feature-navigation{gap:3px;padding-bottom:10px}.design-v1 .feature-link,.design-v1 .sidebar-link{border:0;background:transparent;border-radius:8px;min-height:42px;padding:10px;display:flex;gap:11px;align-items:center;text-align:left}.design-v1 .feature-link:hover,.design-v1 .sidebar-link:hover{background:#ededed}.design-v1 .section-head{border:0;padding-top:12px}.design-v1 .section-toggle{font-size:12px;color:#797979;font-weight:500}.design-v1 .section-all{display:none}.design-v1 .row-icon,.design-v1 .chat-row svg,.design-v1 .chat-select svg{width:20px;height:20px;flex:0 0 20px}.design-v1 .chat-name{font-size:13px}.design-v1 .sidebar-footer{border-top:1px solid #e5e5e5;padding-top:8px}.design-v1 .main{background:white}.design-v1 .topbar{height:68px;border-bottom:1px solid #ededed;padding:12px 22px}.design-v1 .top-title small{color:#888;font-size:11px}.design-v1 .top-title strong{font-size:14px;font-weight:550}.design-v1 .context-line{border:0;padding-left:24px;color:#888;font-size:11px}.design-v1 .notification-bell{display:none}.design-v1 .header-balance350{display:flex;align-items:center;gap:6px;border:1px solid #e5e5e5;border-radius:18px;background:#fafafa;padding:7px 10px;font-size:12px}.design-v1 #temporary-toggle svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.design-v1 .messages{max-width:920px;width:100%;margin:0 auto;padding:28px 30px}.design-v1 .message.assistant{background:none;border:0}.design-v1 .message.user{border-radius:16px;background:#f3f3f3;max-width:86%;margin-left:auto}.design-v1 .greeting350{font-size:24px;font-weight:400;color:#b0b0b0;text-align:center;margin:20vh 0}.design-v1 .welcome{border:0;background:transparent}.design-v1 .composer-wrap{max-width:920px;width:100%;margin:auto;padding:12px 26px 16px}.design-v1 .composer{border:1px solid #ddd;border-radius:18px;background:white;box-shadow:0 2px 8px #00000004;padding:12px}.design-v1 #input{padding:3px 5px 15px;background:white;font-size:15px}.design-v1 .composer-bottom{gap:6px}.design-v1 .input-tools{min-width:0;flex:1;gap:7px}.design-v1 .request-settings-button{border:0;border-radius:7px;background:transparent;min-width:0;max-width:calc(100% - 75px);padding:4px 2px;gap:7px}.design-v1 .model-button-copy{display:flex;gap:4px;align-items:center;min-width:0}.design-v1 #request-settings-label{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.design-v1 #request-payment-label{font-size:10px;color:#777;white-space:nowrap}.design-v1 .send{border-radius:50%;background:#262626;color:white;width:34px;height:34px}.design-v1 .composer-caption{justify-content:center;font-size:11px}.design-v1 .footnote{font-size:10px;color:#999}.design-v1 #work-launch,.design-v1 #work-panel,.design-v1 .conversation-tools,.design-v1 .source-chips,.design-v1 .squad-composer335{display:none!important}
.design-v1 input:not([type=checkbox]):not([type=radio]):not([type=range]),.design-v1 select,.design-v1 textarea{background:#fff;color:#222;border:1px solid #d9d9d9;border-radius:9px;box-shadow:none;outline:none}.design-v1 input:focus,.design-v1 select:focus,.design-v1 textarea:focus{border-color:#d9d9d9;box-shadow:none;outline:none}.design-v1 #input{border:0}.design-v1 button:focus-visible,.design-v1 a:focus-visible,.design-v1 summary:focus-visible{outline:2px solid #555;outline-offset:2px}.design-v1 .primary{background:#262626;border-color:#262626;color:#fff}.design-v1 .secondary{background:#fff;color:#333;border:1px solid #ddd}.design-v1 .profile-card{background:#fff;border:1px solid #e6e6e6;border-radius:13px;padding:18px}.design-v1 .profile-card h3{font-size:14px}.design-v1 .page-content{max-width:760px;padding:24px}.design-v1 .page-heading{gap:10px;margin-bottom:24px}.design-v1 .page-heading h2{font-size:22px;font-weight:550}.design-v1 .page-link{border:0;border-bottom:1px solid #eee;background:white;border-radius:0;padding:15px 2px}.design-v1 .provider-default-link{border:0!important;box-shadow:none;border-radius:0;background:none}.design-v1 .provider-default-icon{width:24px;height:24px;object-fit:contain}.design-v1 #v26-model-settings-card>p{margin:14px 0}.design-v1 .primary-provider350{display:block;margin:16px 0}.design-v1 .gemini-primary-card{display:none}.design-v1 #profile-history{display:block;margin:12px auto 0;border:0}.design-v1 #profile-balance-detail{color:#888;font-size:12px;margin-top:4px}.design-v1 .profile-card-actions{display:flex;flex-direction:column;gap:7px;align-items:stretch}.design-v1 #profile-balance{font-size:28px}.design-v1 progress{width:100%;height:6px;appearance:none;border:0;border-radius:7px;background:#e9e9e9;accent-color:#222;overflow:hidden}.design-v1 progress::-webkit-progress-bar{background:#e9e9e9}.design-v1 progress::-webkit-progress-value{background:#222}.design-v1 progress::-moz-progress-bar{background:#222}.design-v1 .files-capacity350{margin:12px 0 20px}.design-v1 .file-kind-tabs{flex-wrap:wrap;gap:6px;border:0}.design-v1 .file-kind-tabs button{flex:0 1 auto;font-size:12px;padding:7px 10px;border-radius:16px}.design-v1 .profile-file{padding:14px 0;border-bottom:1px solid #eee;gap:12px}.design-v1 .profile-file-info{min-width:0;flex:1}.design-v1 .profile-file-info strong{overflow-wrap:anywhere}.design-v1 .file-arrow350{flex:0 0 32px}.design-v1 .profile-file-actions[hidden]{display:none!important}.design-v1 .review-folder-tabs button[aria-selected=true],.design-v1 .gemini-provider-tabs button[aria-pressed=true]{background:#efefef;color:#222;border:1px solid #333;box-shadow:none}.design-v1 .gemini-provider-tabs button{background:white;color:#444;border:1px solid #e4e4e4;border-radius:10px;padding:10px 4px}.design-v1 #request-settings-dialog #help-modes,.design-v1 #request-settings-dialog .setting-help,.design-v1 #request-settings-dialog .hint-button,.design-v1 #request-settings-dialog .option-help{display:none!important}.design-v1 #request-settings-dialog{border-radius:18px;border:1px solid #e5e5e5;background:#fff;padding:18px}.design-v1 #request-settings-dialog h2{font-size:18px}.design-v1 .choice-sheet350{border-radius:18px 18px 0 0;max-width:580px;width:calc(100% - 20px);max-height:85dvh;margin:auto auto 0;padding:22px}.design-v1 .choice-sheet350 .choice-row{width:100%;padding:17px 10px}.design-v1 #new-mobile,.design-v1 #continue-summary{display:none!important}.design-v1 .response-tools{gap:7px}.design-v1 .response-tools button,.design-v1 .response-tools summary{font-size:11px;color:#888}.design-v1 .response-tools .row-icon{width:17px;height:17px}.design-v1 .image-gallery{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}.design-v1 .gallery-card,.design-v1 .gallery-view,.design-v1 .gallery-view img,.design-v1 .gallery-view video{max-width:100%;min-width:0}.design-v1 .media-create-dialog{border-radius:20px 20px 0 0;margin:auto auto 0;max-height:90dvh;width:min(600px,100%)}.design-v1 .media-create-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.design-v1 .media-create-fields label{min-width:0}.design-v1 .media-create-fields select{max-width:100%}.design-v1 .squad-run335{background:none;border:0;padding:10px 0}.design-v1 .squad-task335{background:#f3f3f3;border-radius:15px;padding:12px 16px;margin-left:auto;max-width:86%}.design-v1 .squad-note335{font-size:11px;color:#888}
@media(max-width:700px){.design-v1 .sidebar{width:min(315px,88vw)}.design-v1 .topbar{padding:10px 14px;height:62px}.design-v1 .messages{padding:20px 18px}.design-v1 .composer-wrap{padding:9px 12px 12px}.design-v1 .page-content{padding:18px 16px}.design-v1 .profile-card{padding:16px}.design-v1 #request-settings-dialog{width:calc(100vw - 16px)!important;max-width:520px;left:8px!important;right:8px!important}.design-v1 #request-payment-label{display:none}.design-v1 .model-button-copy{display:block}.design-v1 .profile-card-value{display:flex;align-items:center;justify-content:space-between;gap:12px}.design-v1 .profile-card-actions button{font-size:12px;padding:8px 10px}.design-v1 .profile-file-thumbnail{width:36px;height:42px}.design-v1 .file-kind-tabs{overflow:visible}.design-v1 .top-title{min-width:0}.design-v1 #current-chat-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:38vw}}
@media(prefers-reduced-motion:reduce){.design-v1 *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.design-v1 .squad-answer-picker350{width:auto;max-width:60%;margin-left:auto;padding:6px 10px;font-size:12px}.design-v1 .source-citations350{font-size:12px;margin:10px 0}.design-v1 .source-citation350 blockquote{margin:12px 0 4px;padding-left:10px;border-left:2px solid #ddd}.design-v1 .profile-card-value{display:flex;justify-content:space-between;align-items:center;gap:12px}.design-v1 .project-links350{display:grid;margin-bottom:14px}.design-v1 .forecast350{color:#888;font-size:11px;border:0;background:transparent}

/* Operational cards share the existing profile palette. */
.capacity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.capacity-card{min-width:0;margin:0}.capacity-card h3{font-size:14px}.capacity-value{font-size:24px;font-variant-numeric:tabular-nums}
#admin-section-capacity .table-scroll{max-width:100%;overflow-x:auto;margin:14px 0}
@media(min-width:720px){.capacity-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* New Template 1.2, mapped to the real production controls. */
body.design-v370{--bg:#fff;--surface:#f6f6f6;--surface2:#f7f7f7;--ink:#171717;--text:#171717;--line:#e8e8e8;--radius:12px;--strongline:#ddd;--accent:#171717;--accentInk:#fff;--muted:#707070;--field-bg:#fff;--field-ink:#222;--composer-border:#dcdcdc;--reading-width:700px;--v370-sidebar:240px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;color:var(--ink);background:var(--bg);font-synthesis:none}
.design-v370 h1,.design-v370 h2,.design-v370 h3,.design-v370 p{margin-top:0}
.design-v370 h1{font-size:26px;line-height:1.2;letter-spacing:-.6px}
.design-v370 h2{font-size:21px;line-height:1.3;letter-spacing:-.4px}
.design-v370 h3{font-size:17px;line-height:1.4}
.design-v370 button{transition:background .13s,color .13s}
.design-v370 .app{max-width:none;grid-template-columns:var(--v370-sidebar) minmax(0,1fr)}
.design-v370 .icon{width:44px;min-width:44px;height:44px;border-radius:11px;color:inherit}
.design-v370 .primary{padding:12px 18px;border:1px solid var(--accent);border-radius:11px;font-size:14px;font-weight:600;min-height:46px}
.design-v370 .secondary{padding:11px 15px;border:1px solid var(--line);border-radius:11px;min-height:44px;font-size:14px;background:var(--bg)}
.design-v370 .sidebar{width:var(--v370-sidebar);padding:12px 15px 14px;gap:18px;background:var(--surface2);border-right:1px solid var(--line)}
.design-v370 .sidebar-heading{padding:0;min-height:0;margin:0}
.design-v370 #profile-open{display:flex;gap:10px;padding:9px 10px;min-height:50px;border:0;border-radius:9px}
.design-v370 #profile-open .avatar{width:32px;height:32px;flex:0 0 32px;border-radius:50%;font-size:11px;border:1px solid var(--line);background:var(--surface)}
.design-v370 #profile-open .account-label{min-width:0;flex:1}
.design-v370 #profile-open .account-label strong{font-size:12px;font-weight:700;line-height:1.3}
.design-v370 #profile-open .account-label small{font-size:10px;margin-top:3px;color:var(--muted)}
.design-v370 .v370-profile-chevron{width:20px;height:20px;flex-shrink:0}
.design-v370 .sidebar-tools{display:flex;flex-direction:row;gap:8px;padding-bottom:4px;margin:0}
.design-v370 #new{flex:1;min-height:42px;padding:11px 12px;border:0;border-radius:10px;font-size:14px;font-weight:550;background:var(--surface);margin:0;gap:10px}
.design-v370 #new .row-icon{width:20px;height:20px}
.design-v370 .chat-search{border:0;width:40px;min-width:40px;flex:0 0 40px;padding:0;margin:0;min-height:40px;border-radius:10px;background:transparent}
.design-v370 #search-open{width:40px;min-width:40px;height:40px;padding:10px}
.design-v370 .navigation-wrap{flex:1;min-height:0;margin:0}
.design-v370 .navigation{padding-bottom:0;scrollbar-width:thin}
.design-v370 .nav-label350,.design-v370 .section-head{font-size:10px;padding:15px 10px 7px;margin:0;line-height:1.4;min-height:0;letter-spacing:.6px;font-weight:550;text-transform:uppercase;color:var(--muted)}
.design-v370 .nav-label350{margin-top:10px}
.design-v370 .feature-navigation{gap:0;padding:0;margin:0}
.design-v370 .feature-link,.design-v370 .sidebar-link{display:flex;gap:10px;padding:10px 11px;min-height:38px;font-size:12px;border-radius:8px;font-weight:400;color:var(--ink)}
.design-v370 .feature-link>svg,.design-v370 .feature-link>.row-icon,.design-v370 .sidebar-link>svg,.design-v370 .sidebar-link>.row-icon{flex:0 0 20px;width:20px;height:20px;color:var(--muted)}
.design-v370 .section-toggle{padding:0;min-height:0;font-size:10px;font-weight:550;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);cursor:default;pointer-events:none}
.design-v370 .section-chevron{display:none}
.design-v370 .section-body{display:block;grid-template-rows:1fr;opacity:1;transition:none}
.design-v370 .history .chat-row{margin:0;border-radius:8px}
.design-v370 .history .chat-row>button:first-child{min-height:38px;padding:10px 11px;gap:10px;font-size:12px;font-weight:400}
.design-v370 .history .chat-row>button:first-child.active{font-weight:550}
.design-v370 .history .chat-row:has(.active){background:var(--line)}
.design-v370 .chat-name{font-size:12px}
.design-v370 .v370-chat-symbol{width:20px;height:20px;flex:0 0 20px;color:var(--muted)}
.design-v370 .chat-edit{width:28px;min-width:28px;flex:0 0 28px;font-size:16px;opacity:0}
.design-v370 .chat-row:hover .chat-edit,.design-v370 .chat-row:focus-within .chat-edit{opacity:1}
.design-v370 .empty-hint{font-size:11px;padding:9px 11px;line-height:1.5}
.design-v370 .sidebar-footer{margin:0;border-top:1px solid var(--line);padding-top:10px;flex-shrink:0}
.design-v370 .sidebar-footer>.sidebar-link{width:100%}
.design-v370 .topbar,.design-v370 .v370-page-header{display:flex;align-items:center;gap:12px;min-height:69px;height:69px;padding:11px 20px;border-bottom:1px solid var(--line);background:var(--bg);flex-shrink:0}
.design-v370 .top-title,.design-v370 .v370-page-headline{min-width:0;flex:1}
.design-v370 .top-title strong,.design-v370 .v370-page-headline strong{font-size:15px;font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:none}
.design-v370 .top-title small,.design-v370 .v370-page-headline small{font-size:10px;font-weight:400;line-height:1.45;color:var(--muted);display:block;margin-bottom:4px}
.design-v370 .topbar .tools{gap:2px}
.design-v370 #temporary-toggle,.design-v370 #chat-options{width:34px;min-width:34px;min-height:34px;height:34px;border:0;border-radius:11px;background:transparent}
.design-v370 .header-balance350{padding:8px 10px;min-height:0;gap:6px;border:1px solid var(--line);border-radius:8px;font-size:12px;font-weight:400;background:transparent;white-space:nowrap}
.design-v370 .header-balance350 svg{height:14px;width:14px;flex:0 0 14px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.design-v370 .messages{max-width:none;margin:0;padding:28px max(28px,calc((100% - 700px)/2));width:100%;scroll-behavior:smooth}
.design-v370 .thread{max-width:none;gap:0}
.design-v370 .message.user{padding:15px 19px;background:var(--surface);border-radius:16px 16px 3px 16px;max-width:85%;margin-left:auto;font-size:15px;line-height:1.55;margin-bottom:28px}
.design-v370 .message.assistant{font-size:15px;line-height:1.7;margin-bottom:24px;padding:0;border:0;background:none}
.design-v370 .message .role{display:flex;align-items:center;gap:9px;margin:0 0 15px;font-size:11px;font-weight:600;color:var(--muted);line-height:1.65}
.design-v370 .v370-response-brand{width:23px;height:23px;object-fit:contain;flex-shrink:0;border-radius:50%;background:#fff}
.design-v370 .message .markdown{font-size:15px;line-height:1.7}
.design-v370 .message .markdown p{margin:0 0 13px}
.design-v370 .message .markdown h3{font-size:19px;margin:12px 0}
.design-v370 .message .markdown li{margin:8px 0}
.design-v370 .message .markdown ol{padding-left:22px;margin:10px 0 18px}
.design-v370 .response-tools{gap:1px;margin-top:13px;color:var(--muted)}
.design-v370 .response-tools>.v370-icon-only,.design-v370 .response-tools>.answer-more350,.design-v370 .response-tools>.usage-details>summary{display:inline-flex;align-items:center;justify-content:center;padding:7px;min-width:34px;width:34px;min-height:36px;height:36px;border:0;border-radius:8px;background:transparent;font-size:0;color:var(--muted);list-style:none}
.design-v370 .response-tools .row-icon,.design-v370 .response-tools .row-icon svg,.design-v370 .response-tools>button>svg{width:15px;height:15px}
.design-v370 .message.assistant .response-tools>button:not(.message-copy):not(.message-speak):not(.answer-more350){display:none}
.design-v370 .response-tools .usage-details{margin:0;min-width:34px;flex:0 0 auto;border:0;padding:0;position:relative}
.design-v370 .response-tools button:hover,.design-v370 .response-tools summary:hover{background:var(--surface)}
.design-v370 .welcome{padding:0;display:grid;place-items:center;min-height:100%;margin:0;border:0;background:none}
.design-v370 .messages:has(.welcome){padding-top:0;padding-bottom:0}
.design-v370 .greeting350{display:grid;place-items:center;min-height:100%;font-size:28px;font-weight:450;letter-spacing:-.7px;color:#aaa;margin:0}
.design-v370 .composer-wrap{max-width:none;width:100%;margin:0;padding:10px max(28px,calc((100% - 700px)/2)) max(16px,env(safe-area-inset-bottom));background:var(--bg)}
.design-v370 .composer{max-width:none;border:1px solid var(--composer-border);border-radius:22px;background:var(--bg);padding:15px 11px 8px;box-shadow:none}
.design-v370 .composer:focus-within{border-color:var(--composer-border);box-shadow:none}
.design-v370 #input{display:block;padding:0 5px;min-height:35px!important;max-height:140px;font-size:14px;line-height:1.5;border:0;background:transparent;color:var(--ink);border-radius:0}
.design-v370 .composer-bottom,.design-v370 .input-tools{display:flex;gap:4px;align-items:center;min-width:0}
.design-v370 .input-tools{flex:1}
.design-v370 .input-tools>.icon{width:34px;min-width:34px;height:34px}
.design-v370 #request-settings-open{min-width:0;max-width:calc(100% - 76px);min-height:37px;padding:5px 8px;gap:7px;border:0;border-radius:10px;background:var(--surface);font-size:11px}
.design-v370 #request-settings-open>img{width:19px;height:19px;border-radius:50%;object-fit:contain;flex-shrink:0;background:#fff}
.design-v370 #request-settings-open>svg{width:13px;height:13px;flex:0 0 13px}
.design-v370 .model-button-copy{display:flex;flex-direction:row;align-items:center;gap:4px;min-width:0;overflow:hidden;white-space:nowrap}
.design-v370 #request-settings-label{font-size:11px;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ink)}
.design-v370 #request-payment-label{display:block;font-size:11px;white-space:nowrap;color:var(--ink)}
.design-v370 #request-payment-label::before{content:'·';margin-right:4px}
.design-v370 #voice{margin-left:auto}
.design-v370 .send{margin-left:auto;min-width:36px;width:36px;height:36px;min-height:36px;border:0;border-radius:50%;background:var(--accent);color:var(--accentInk)}
.design-v370 .composer-caption{display:flex;justify-content:center;text-align:center;gap:5px;margin:9px 0 0;padding:0;min-height:19px}
.design-v370 .forecast350{display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:10px;color:var(--muted);padding:2px 3px;min-height:19px;max-width:100%;white-space:normal;line-height:1.45}
.design-v370 input:not([type=checkbox]):not([type=radio]):not([type=range]),.design-v370 select,.design-v370 textarea{border-color:var(--strongline);box-shadow:none;background:var(--field-bg);border-radius:12px;color:var(--field-ink);max-width:100%;min-width:0}
.design-v370 input:not([type=checkbox]):focus,.design-v370 textarea:focus,.design-v370 select:focus{outline:0;box-shadow:none}
.design-v370 button:focus-visible,.design-v370 a:focus-visible,.design-v370 summary:focus-visible{outline:2px solid #555;outline-offset:4px}
/* Routes use the same sidebar and header proportions as r7. Nested action and
   confirmation dialogs remain real modal dialogs and keep their focus trap. */
.design-v370 dialog.v370-page{position:fixed;inset:0 0 0 var(--v370-sidebar);width:calc(100% - var(--v370-sidebar));height:var(--app-height,100dvh);max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:var(--bg);color:var(--ink);overflow:hidden}
.design-v370 dialog.v370-page[open]{display:flex;flex-direction:column}
.design-v370 .v370-page-header{width:100%;position:relative;z-index:2}
.design-v370 .v370-page-header>.icon{flex:0 0 44px}
.design-v370 .v370-page-back svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.design-v370 .v370-page-body{width:100%;flex:1;min-height:0;max-width:none;overflow:auto;overscroll-behavior:contain;padding:30px max(28px,calc((100% - 760px)/2)) max(40px,env(safe-area-inset-bottom));margin:0;scrollbar-width:thin}
.design-v370 .v370-page-body.admin-page{max-width:none;padding:30px 28px 40px}
.design-v370 .v370-body-heading{position:static;top:auto;padding:0;margin:0 0 24px;border:0;gap:12px;background:transparent;min-width:0}
.design-v370 .v370-body-heading>h2{font-size:26px;line-height:1.2;letter-spacing:-.6px;font-weight:700;margin:0;min-width:0;overflow-wrap:anywhere}
.design-v370 .v370-body-heading>.v370-original-back{display:none!important}
.design-v370 .v370-body-heading h2>.row-icon{display:none}
.design-v370 .v370-page-body .profile-card{border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--bg)}
.design-v370 .v370-page-body .profile-card h3{font-size:17px;line-height:1.4}
.design-v370 .v370-page-body .page-link{display:flex;align-items:center;gap:12px;width:100%;padding:16px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left;background:transparent;font-size:14px}
.design-v370 .choice-sheet350,.design-v370 .v370-sheet{box-sizing:border-box;border:1px solid var(--line);width:530px;max-width:calc(100% - 40px);max-height:calc(100dvh - 40px);border-radius:22px 22px 16px 16px;margin:auto auto 20px;padding:24px;background:var(--bg);color:var(--ink);box-shadow:0 24px 70px #0002;overflow:auto}
.design-v370 .choice-sheet350::backdrop,.design-v370 .v370-sheet::backdrop{background:#0005;backdrop-filter:none}
.design-v370 .choice-sheet350::before,.design-v370 .v370-sheet::before{content:'';display:block;width:35px;height:4px;border-radius:4px;background:var(--strongline);margin:-13px auto 16px}
.design-v370 .choice-sheet350 .page-heading,.design-v370 .v370-sheet .page-heading{position:static;border:0;padding:0;margin-bottom:20px}
.design-v370 .choice-sheet350 h2,.design-v370 .v370-sheet h2{font-size:21px}
.design-v370 .choice-sheet350 .page-link{padding:16px 0;font-size:14px}
@media(max-width:860px){
 body.design-v370{--v370-sidebar:0px}
 .design-v370 .app{display:flex}
 .design-v370 .main{flex:1;width:100%}
 .design-v370 .sidebar{width:calc(100% - 48px);max-width:330px;z-index:90;background:var(--bg);box-shadow:15px 0 40px #0002;padding-top:max(12px,env(safe-area-inset-top))}
 .design-v370 .sidebar.open{transform:translateX(0)}
 .design-v370 #backdrop.show{z-index:89;background:#0005}
 .design-v370 .sidebar-heading{position:relative}
 .design-v370 #sidebar-close{position:absolute;right:-2px;top:-6px;width:28px;min-width:28px;height:28px;opacity:.55}
 .design-v370 #profile-open{padding-right:24px}
 .design-v370 .topbar,.design-v370 .v370-page-header{padding:10px 12px;min-height:61px;height:61px;gap:6px}
 .design-v370 .top-title strong,.design-v370 .v370-page-headline strong{font-size:13px;max-width:none}
 .design-v370 .top-title small,.design-v370 .v370-page-headline small{font-size:9px}
 .design-v370 .topbar .tools{gap:3px}
 .design-v370 .header-balance350{font-size:11px;padding:7px}
 .design-v370 .messages{padding:23px 17px}
 .design-v370 .message.user{max-width:92%;font-size:14px;padding:13px 15px;margin-bottom:25px}
 .design-v370 .message .role{font-size:10px}
 .design-v370 .composer-wrap{padding:9px 12px max(12px,env(safe-area-inset-bottom))}
 .design-v370 .greeting350{font-size:25px}
 .design-v370 #request-settings-open{font-size:10px;padding-left:5px}
 .design-v370 #request-settings-label,.design-v370 #request-payment-label{font-size:10px}
 .design-v370 .v370-page-body,.design-v370 .v370-page-body.admin-page{padding:22px 17px max(30px,env(safe-area-inset-bottom))}
 .design-v370 .v370-body-heading{margin-bottom:22px}
 .design-v370 .v370-body-heading>h2{font-size:23px}
 .design-v370 .v370-page-body .profile-card{padding:15px}
 .design-v370 .choice-sheet350,.design-v370 .v370-sheet{width:100%;max-width:100%;max-height:calc(100dvh - 36px);margin:auto 0 0;border-radius:21px 21px 0 0;padding:20px 17px max(20px,env(safe-area-inset-bottom));box-shadow:none}
 .design-v370 .chat-edit{opacity:1}
}
@media(prefers-reduced-motion:reduce){.design-v370 *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Neutralize the historical !important rules from the pre-r7 UI. */
body.design-v370 :where(.sidebar,.page-dialog){--ink:#171717;--muted:#707070;--line:#e8e8e8;--reading-width:700px}
.design-v370 #profile-open .account-label small{display:block}
.design-v370 .sidebar{gap:12px}
.design-v370 .navigation-wrap{padding-top:0}
.design-v370 .navigation{margin-top:0}
.design-v370 .nav-label350{margin-top:0}
.design-v370 .section-head{display:block!important;border:0!important;padding:15px 10px 7px!important}
.design-v370 .section-head .section-toggle{font-size:10px!important;font-weight:550!important;line-height:1.4!important;letter-spacing:.6px;min-height:0!important;padding:0!important}
.design-v370 .section-toggle>.section-chevron{display:none!important}
.design-v370 .section-toggle>.row-icon{display:none!important}
.design-v370 #request-settings-open .model-button-copy{display:flex!important;flex-direction:row!important;align-items:center;gap:4px}
.design-v370 #request-payment-label::before{display:inline!important}
.design-v370 #request-settings-label{font-weight:400}
.design-v370 #request-settings-open{gap:7px!important}
.design-v370 #balance-help{display:none!important}
.design-v370 .composer-caption .forecast350::after{content:'?';display:inline-flex;align-items:center;justify-content:center;width:10px;height:10px;line-height:10px;font-size:8px;border:1px solid currentColor;border-radius:50%;flex:0 0 10px;margin-left:5px}
.design-v370 .composer-caption .forecast350>.row-icon{display:none!important}
.design-v370 .composer:focus-within{box-shadow:none!important}
.design-v370 dialog.v370-page{transition:none!important;animation:none!important;opacity:1!important;transform:none!important}
.design-v370 dialog.v370-page>.page-content.v370-page-body{padding:30px max(28px,calc((100% - 760px)/2)) max(40px,env(safe-area-inset-bottom))!important;max-width:none!important}
.design-v370 dialog.v370-page>.page-content.admin-page{padding:30px 28px 40px!important}
.design-v370 .v370-page-body .profile-card{border-radius:12px!important;padding:18px!important}
@media(max-width:860px){
 .design-v370 dialog.v370-page>.page-content.v370-page-body,.design-v370 dialog.v370-page>.page-content.admin-page{padding:22px 17px max(30px,env(safe-area-inset-bottom))!important}
 .design-v370 .v370-page-body .profile-card{padding:15px!important}
}

.design-v370 [hidden],.design-v370 .section-head[hidden]{display:none!important}
.design-v370 dialog.v370-page:focus{outline:0}
.design-v370 .feature-navigation{border-bottom:0}

.design-v370 #request-settings-dialog::backdrop{background:#0005;backdrop-filter:none}
.design-v370 #request-settings-dialog:focus{outline:0}

/* Approved template 1.2 corrections. */
.design-v370 .sidebar-tools{padding-bottom:0}
.design-v370 .nav-label350{margin-top:0;padding-top:6px}
.design-v370 .v370-chat-symbol{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.design-v370 .v380-chat-bubble{width:22px;height:22px;flex-basis:22px;color:var(--ink);stroke-width:1.9}
.design-v370 #temporary-toggle{width:36px;height:36px;min-width:36px;min-height:36px;flex:0 0 36px;border-radius:50%;background:var(--bg);color:var(--ink)}
.design-v370 #temporary-toggle svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.design-v370 #temporary-toggle .v380-temporary-check{display:none}
.design-v370 #temporary-toggle[aria-pressed=true] .v380-temporary-check{display:block}
.design-v370 #temporary-toggle[aria-pressed=true]{background:var(--bg);color:var(--ink)}
.design-v370 #temporary-banner{display:none!important}
.design-v370 .v380-temporary-empty{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:100%;padding:24px 8px;text-align:center;color:var(--muted)}
.design-v370 .v380-temporary-empty h2{margin:0 0 5px;font-size:23px;line-height:1.35;font-weight:600;letter-spacing:0;color:var(--muted)}
.design-v370 .v380-temporary-empty p{margin:0;max-width:340px;font-size:17px;line-height:1.6;color:#888}
.design-v370 .messages.v380-empty-temporary{padding-top:0;padding-bottom:0}
.design-v370 .v380-temporary-reminder{text-align:center;color:var(--muted);font-size:12px;line-height:1.6;margin:0 0 22px}
.design-v370 .choice-sheet350[open],.design-v370 .v370-sheet[open]{animation:v380-sheet-in .22s cubic-bezier(.2,.8,.2,1)}
@keyframes v380-sheet-in{from{transform:translateY(100%);opacity:.4}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.design-v370 .choice-sheet350[open],.design-v370 .v370-sheet[open]{animation:none}}
.design-v370 #review-answer-details{position:fixed;inset:0;width:530px;max-width:calc(100% - 40px);max-height:calc(100dvh - 40px);margin:auto auto 20px;padding:24px;border-radius:22px 22px 16px 16px}
.design-v370 #review-answer-details .review-details-content{font-size:13px;line-height:1.55;min-width:0;overflow-wrap:anywhere}
.design-v370 #review-answer-details .usage-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 18px;margin:0;font-size:13px}
.design-v370 #review-answer-details .usage-grid dd{margin:0;text-align:right;overflow-wrap:anywhere}
@media(max-width:860px){.design-v370 #review-answer-details{width:100%;max-width:100%;max-height:calc(100dvh - 36px);margin:auto 0 0;padding:20px 17px max(20px,env(safe-area-inset-bottom));border-radius:21px 21px 0 0}}

/* Match the approved sidebar and header, overriding legacy mobile rules. */
.design-v370 .sidebar{gap:18px}
.design-v370 #profile-open{min-height:53.5px}
.design-v370 .sidebar-tools{height:42px;min-height:42px}
.design-v370 #new{height:42px;min-height:42px}
.design-v370 .nav-label350,.design-v370 .section-head,.design-v370 .section-toggle{line-height:normal}
.design-v370 .feature-link>span,.design-v370 .sidebar-link>span:not(.notifications370-badge){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.design-v370 .header-balance350{font-size:12px;padding:8px 10px}
@media(max-width:860px){
 .design-v370 .sidebar{width:220px;max-width:calc(100vw - 48px);box-shadow:none}
 .design-v370 #profile-open{padding-right:10px}
 .design-v370 #sidebar-close{display:none}
 .design-v370 .topbar,.design-v370 .v370-page-header{height:65px;min-height:65px}
 .design-v370 .v370-body-heading>h2{font-size:24px}
 .design-v370 .chat-edit{opacity:0}
 .design-v370 .chat-row:focus-within .chat-edit{opacity:1}
}

.design-v370 .history .chat-row{position:relative}
.design-v370 .chat-edit{position:absolute;right:2px;top:50%;transform:translateY(-50%)}
@media(max-width:860px){.design-v370 .header-balance350{font-size:11px;padding:7px}}

.design-v370 .feature-link>span:not(.row-icon){flex:1;min-width:0}

/* Account composition follows the approved r7. All values are populated by the
   production profile, wallet, storage and analytics APIs. */
.design-v1 .account-subtitle370,.design-v1 .account-intro370{font-size:13px;color:#777;line-height:1.55;margin:8px 0 24px}
.design-v1 #profile-dialog .page-heading{margin-bottom:0}
.design-v1 .account-identity370{display:grid;grid-template-columns:48px minmax(0,1fr) 36px;align-items:center;gap:12px;padding:18px;border:1px solid #e5e5e5;border-radius:12px;background:#fff;margin:0 0 16px}
.design-v1 .account-identity370>.avatar{width:48px;height:48px;font-size:16px;flex:0 0 48px}
.design-v1 .account-identity370>div:not(.avatar){min-width:0}
.design-v1 .account-identity370 #profile-name{font-size:16px;display:block;overflow-wrap:anywhere}
.design-v1 .account-telegram-id370{display:block;font-size:11px;color:#777;margin-top:6px}
.design-v1 .account-copy370{width:36px;height:36px;min-width:36px;padding:8px;font-size:12px;display:flex;justify-content:center;align-items:center}
.design-v1 .account-copy370 svg{width:18px;height:18px;flex:0 0 18px}
.design-v1 .account-shortcut370{grid-column:1/-1;justify-content:flex-start;width:100%;min-height:36px;padding:6px 0;background:none;border:0;font-size:13px;margin:0}
.design-v1 .account-shortcut370 svg{width:17px;height:17px}
.design-v1 .account-overview370{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;margin-bottom:20px}
.design-v1 .account-overview370>.profile-card{min-width:0;margin:0;padding:18px;border:1px solid #e5e5e5;border-radius:12px}
.design-v1 .account-overview370 .profile-card-heading{font-size:15px;font-weight:550;margin:0 0 18px}
.design-v1 .account-balance370 .profile-card-value{display:flex;align-items:center;justify-content:space-between;gap:12px}
.design-v1 .account-balance-amount370{min-width:0;flex:1}
.design-v1 .account-balance370 #profile-balance{font-size:23px;line-height:1.3;font-weight:600;letter-spacing:-.5px;overflow-wrap:anywhere}
.design-v1 .account-balance370 #profile-balance-detail{font-size:11px;line-height:1.45;color:#777;margin:7px 0 0}
.design-v1 .account-balance370 .profile-card-actions{display:flex;flex-direction:column;gap:6px;flex:0 1 135px;min-width:0}
.design-v1 .account-balance370 .profile-card-actions button{font-size:12px;line-height:1.3;min-height:36px;padding:8px 9px;white-space:normal}
.design-v1 .account-balance370 .profile-card-actions .row-icon{display:none}
.design-v1 .account-balance370 #profile-history{display:block;margin:16px auto 8px;padding:8px;border:0;background:none;box-shadow:none;font-size:12px;font-weight:400}
.design-v1 .account-explanation370{display:block;padding:7px 0;margin-top:8px;font-size:11px;text-decoration:none;color:#777;min-height:30px;text-align:left}
.design-v1 .account-storage370 .review-local-storage{margin:0;padding:0;border:0;background:none;min-width:0}
.design-v1 .account-storage370 #profile-storage{font-size:23px;line-height:1.3;font-weight:600;letter-spacing:-.5px}
.design-v1 .account-storage370 .profile-card-value{margin:0 0 10px}
.design-v1 .account-storage370 .profile-card-value>.profile-card-actions:empty{display:none}
.design-v1 .account-storage370 #profile-storage-progress{display:block;width:100%;height:6px;border-radius:8px;margin:12px 0}
.design-v1 .account-storage370 #profile-plan{font-size:11px;color:#777;margin:8px 0 14px}
.design-v1 .account-location370{display:flex;flex-direction:column;font-size:12px;gap:7px;margin:0 0 15px;font-weight:500}
.design-v1 .account-location370 select{width:100%;min-height:42px;padding:9px 12px;font-size:13px}
.design-v1 .account-storage-actions370{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 3px}
.design-v1 .account-storage-actions370>button{font-size:12px;padding:9px 12px;min-height:38px;border:1px solid #ddd;border-radius:8px;background:#fff;color:#222;box-shadow:none}
.design-v1 .account-storage-actions370 .row-icon{display:none}
.design-v1 .account-autorenew370{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:46px;margin:5px 0 0;padding:8px 0;font-size:13px}
.design-v1 .account-autorenew370 span{flex:1}
.design-v1 .account-autorenew370 input[role=switch]{appearance:none;width:38px;height:22px;min-width:38px;border:0;border-radius:20px;background:#bbb;position:relative;padding:0;margin:0;cursor:pointer}
.design-v1 .account-autorenew370 input[role=switch]:checked{background:#222}
.design-v1 .account-autorenew370 input[role=switch]::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;background:#fff;border-radius:50%}
.design-v1 .account-autorenew370 input[role=switch]:checked::after{left:19px}
.design-v1 #profile-dialog .profile-links{display:flex;flex-direction:column;border:1px solid #e5e5e5;border-radius:13px;padding:0 17px;margin:20px 0;background:#fff;overflow:hidden}
.design-v1 #profile-dialog .profile-links>.page-link{display:flex;align-items:center;gap:12px;text-align:left;min-height:62px;padding:16px 0;border:0;border-bottom:1px solid #e5e5e5;border-radius:0;background:none;margin:0;color:#222;font-size:14px;line-height:1.4;font-weight:550}
.design-v1 #profile-dialog .profile-links>.page-link:last-child{border-bottom:0}
.design-v1 #profile-dialog .profile-links>.page-link>span:first-of-type{flex:1;min-width:0}
.design-v1 #profile-dialog .profile-links>.page-link>svg{display:none}
.design-v1 #profile-dialog .profile-links>.page-link>span:last-child{flex:0 0 auto;color:#777;font-size:20px}
.design-v1 #profile-dialog .profile-links small{display:block;font-size:11px;color:#777;font-weight:400;line-height:1.4;margin-top:5px}
.design-v1 .account-actions370{display:flex;flex-direction:column;gap:9px;margin-top:20px;padding:0;border:0}
.design-v1 .account-actions370>button{width:100%;min-height:42px;font-size:13px;margin:0}
.design-v1 #account-page-content .personal-form{gap:16px}
.design-v1 #account-page-content .profile-card{margin:0;padding:18px}
.design-v1 #account-page-content h3{margin:0 0 15px;font-size:15px;font-weight:550;line-height:1.45}
.design-v1 .account-settings370{display:flex;flex-direction:column;gap:16px}
.design-v1 .account-settings370>.account-intro370{margin:0 0 4px}
.design-v1 .account-settings370 form.v26-settings-form{display:flex;flex-direction:column;gap:16px;margin:0}
.design-v1 .account-settings370 #v26-model-settings-card .primary-provider350{margin:0 0 10px}
.design-v1 .account-settings370 #v26-model-settings-card>p.meta{font-size:12px;margin:10px 0 2px;color:#777;line-height:1.5}
.design-v1 .account-settings370 .account-provider-row370{display:flex;align-items:center;gap:10px;border:0!important;border-bottom:1px solid #e5e5e5!important;border-radius:0!important;background:none!important;box-shadow:none!important;padding:15px 0;margin:0;min-height:64px;text-align:left;width:100%}
.design-v1 .account-settings370 .account-provider-row370:last-child{border-bottom:0!important;padding-bottom:0}
.design-v1 .account-provider-logo370{width:22px;height:22px;min-width:22px;object-fit:contain;border-radius:0}
.design-v1 .account-provider-row370>span:nth-child(2){flex:1;min-width:0}
.design-v1 .account-provider-row370 strong,.design-v1 .account-navigation370 strong,.design-v1 .tone-link350 strong{font-size:14px;font-weight:550;line-height:1.4;display:block}
.design-v1 .account-provider-row370 small,.design-v1 .account-navigation370 small,.design-v1 .tone-link350 .tone-value350{display:block;color:#777;font-size:11px;font-weight:400;margin-top:5px;line-height:1.4}
.design-v1 .account-chevron370{font-size:20px;color:#777;margin-left:auto;flex:0 0 auto}
.design-v1 .tone-link350,.design-v1 .account-navigation370{display:flex;gap:12px;align-items:center;min-height:55px;padding:12px 0;background:none;text-align:left;width:100%}
.design-v1 #v26-response-style-card .tone-link350{border-bottom:0;padding-bottom:0}
.design-v1 #v26-response-style-card>p.meta{display:none}
.design-v1 .account-settings370 .tool-switch-row{display:flex;align-items:center;gap:12px;padding:14px 0;min-height:56px;font-size:13px;border-bottom:1px solid #e5e5e5;margin:0}
.design-v1 .account-settings370 .tool-switch-row:last-child{border-bottom:0}
.design-v1 .account-settings370 .tool-switch-row>span:first-child{flex:1;min-width:0}
.design-v1 .account-settings370 .tool-switch-row input[role=switch]{appearance:none;width:38px;min-width:38px;height:22px;border-radius:20px;background:#bbb;border:0;position:relative;margin:0;padding:0}
.design-v1 .account-settings370 .tool-switch-row input[role=switch]::after{width:16px;height:16px;top:3px;left:3px;background:#fff;box-shadow:none;transform:none}
.design-v1 .account-settings370 .tool-switch-row input[role=switch]:checked{background:#222}
.design-v1 .account-settings370 .tool-switch-row input[role=switch]:checked::after{left:19px;transform:none}
.design-v1 .account-settings370 .account-media-overview370>.page-link:last-child{border-bottom:0;padding-bottom:0}
.design-v1 .account-settings370:not(.settings-detail370) .account-media-detail370{display:none}
.design-v1 .account-settings370.settings-detail370> :not(form.v26-settings-form){display:none}
.design-v1 .account-settings370.settings-detail370>form.v26-settings-form> :not(.account-media-detail370):not(.preference-save-status):not([role=status]):not(.account-save-retry370){display:none}
.design-v1 .account-settings370.settings-detail370[data-settings-detail=image] #v31-video-settings-card,.design-v1 .account-settings370.settings-detail370[data-settings-detail=video] #v26-image-settings-card{display:none}
.design-v1 .account-settings370.settings-detail370 .account-media-detail370{border:0;padding:0}
.design-v1 .account-settings370.settings-detail370 .account-media-detail370>h3{display:none}
.design-v1 .account-provider-form370{gap:18px}
.design-v1 .account-provider-form370 .profile-card{border:0!important;padding:0!important;border-radius:0!important;background:none}
.design-v1 .account-provider-form370 .profile-card>h3{display:none}
.design-v1 .account-provider-form370 .profile-field{margin-bottom:17px}
.design-v1 .account-provider-form370 .gemini-default-tabs{border:1px solid #e5e5e5;background:#f4f4f4;border-radius:9px;padding:3px;display:flex;gap:3px;margin-bottom:20px}
.design-v1 .account-provider-form370 .gemini-default-tabs .mode-choice{flex:1;border:0;padding:0}
.design-v1 .account-provider-form370 .gemini-default-tabs button{min-height:38px;border:0;border-radius:6px;background:none;padding:8px;width:100%;font-size:13px}
.design-v1 .account-provider-form370 .gemini-default-tabs button[aria-pressed=true]{background:#fff;color:#222;box-shadow:0 1px 4px #0001}
.design-v1 .account-provider-form370 .v26-default-reset{align-self:flex-start;font-size:13px;margin-top:4px}
.design-v1 .account-disclosure370{font-size:12px;color:#777;margin:0 0 20px}
.design-v1 .account-disclosure370 summary{cursor:pointer}
.design-v1 .account-disclosure370 .cost-disclosure{border:0;background:none;padding:0;font-size:12px;line-height:1.55;margin:12px 0}
.design-v1 #account-page input:not([type=checkbox]):not([type=radio]),.design-v1 #account-page select,.design-v1 #account-page textarea{background:#fff;font-size:13px;border:1px solid #dedede;border-radius:9px;min-height:42px;padding:10px 12px;width:100%;max-width:100%;color:#222}
.design-v1 #account-page textarea{min-height:100px;line-height:1.55}
.design-v1 #account-page .profile-field{font-size:13px;line-height:1.45;font-weight:500;display:flex;flex-direction:column;gap:7px;min-width:0}
.design-v1 #account-page :is(input,select,textarea):focus-visible{outline:2px solid #666;outline-offset:2px}
.design-v1 .account-analytics370 .analytics-period{display:flex;gap:12px;align-items:flex-end;margin:0 0 20px;padding:0;border:0;flex-wrap:wrap}
.design-v1 .account-analytics370 .analytics-period label{display:flex;flex-direction:column;gap:7px;flex:1;min-width:115px;font-size:12px}
.design-v1 .account-analytics370 .analytics-period>button{min-height:42px;font-size:13px}
.design-v1 .account-metrics370{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.design-v1 .account-metric370{min-width:0}
.design-v1 .account-metric370 strong{display:block;font-size:23px;line-height:1.4;font-weight:600;letter-spacing:-.6px;overflow-wrap:anywhere}
.design-v1 .account-metric370 small{display:block;font-size:11px;color:#777;margin-top:6px}
.design-v1 .account-spending-chart370{display:flex;align-items:flex-end;gap:13px;height:180px;padding:25px 10px 28px;margin:28px 0;border-bottom:1px solid #e5e5e5;overflow-x:auto}
.design-v1 .account-chart-column370{height:100%;flex:1;position:relative;display:flex;align-items:flex-end;min-width:24px}
.design-v1 .account-chart-bar370{background:#666;width:100%;border-radius:5px 5px 0 0;position:relative;min-height:1px;max-height:100%}
.design-v1 .account-chart-bar370.refund{background:#aaa;border:1px dashed #555}
.design-v1 .account-chart-bar370>b{position:absolute;bottom:calc(100% + 5px);left:0;right:0;text-align:center;font-size:9px;font-weight:400;color:#555;white-space:nowrap}
.design-v1 .account-chart-column370>small{position:absolute;top:calc(100% + 7px);left:0;right:0;text-align:center;color:#777;font-size:9px;white-space:nowrap}
.design-v1 .account-analytics370 .spending-table{width:100%;border-collapse:collapse;font-size:13px}
.design-v1 .account-analytics370 .spending-table td,.design-v1 .account-analytics370 .spending-table th{padding:15px 8px;text-align:left;border-bottom:1px solid #e5e5e5;font-weight:400}
.design-v1 .account-analytics370 .spending-table td:last-child,.design-v1 .account-analytics370 .spending-table th:last-child{text-align:right;white-space:nowrap}
.design-v1 .account-analytics370 .spending-table th{font-size:11px;color:#777}
.design-v1 .account-history370{display:block;margin:18px auto;font-size:13px;padding:8px 12px}
.design-v1 #guide-dialog .lesson,.design-v1 .account-analytics370 .lesson,.design-v1 .release-note370{padding:18px;border:1px solid #e5e5e5;border-radius:12px;background:#fff;margin:10px 0}
.design-v1 #guide-dialog .lesson>summary,.design-v1 .account-analytics370 .lesson>summary,.design-v1 .release-note370>summary{font-size:14px;font-weight:550;line-height:1.5;padding:0;cursor:pointer;list-style:none}
.design-v1 #guide-dialog .lesson>summary::after,.design-v1 .account-analytics370 .lesson>summary::after,.design-v1 .release-note370>summary::after{content:'⌄';float:right;color:#888}
.design-v1 #guide-dialog .lesson[open]>summary::after,.design-v1 .account-analytics370 .lesson[open]>summary::after,.design-v1 .release-note370[open]>summary::after{content:'⌃'}
.design-v1 #guide-dialog .lesson p,.design-v1 .release-note370 p{font-size:13px;line-height:1.6;color:#777;margin:12px 0}
@media(max-width:1050px){.design-v1 .account-overview370{grid-template-columns:1fr}}
@media(max-width:700px){.design-v1 .account-identity370{padding:15px;gap:11px}.design-v1 .account-overview370{gap:12px}.design-v1 .account-overview370>.profile-card{padding:15px}.design-v1 #profile-dialog .profile-links{padding:0 15px}.design-v1 .account-metrics370{gap:8px}.design-v1 #account-page-content .account-metric370{padding:12px}.design-v1 .account-metric370 strong{font-size:19px}.design-v1 .account-metric370 small{font-size:10px}.design-v1 .account-spending-chart370{gap:9px;padding-left:0;padding-right:0}.design-v1 .account-balance370 .profile-card-actions{flex-basis:130px}.design-v1 #account-page-content .profile-card{padding:15px}.design-v1 .account-settings370.settings-detail370 .account-media-detail370{padding:0}.design-v1 .account-settings370 .account-provider-row370{padding:14px 0}}
.design-v1 #profile-dialog .account-identity370 #add-home-screen{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;text-align:left;gap:9px;width:100%;min-width:0;margin:0;padding:6px 0;font-size:13px;line-height:1.5;border-radius:0;background:none}
.design-v1 #profile-dialog .account-identity370 #add-home-screen span{white-space:normal;flex:1}
.design-v1 #profile-dialog .account-identity370 #add-home-screen svg{width:17px;height:17px;flex:0 0 17px}
.design-v1 .account-overview370 .profile-card-heading>svg,.design-v1 .account-overview370 .account-explanation370>svg,.design-v1 .account-overview370 #profile-history>svg{display:none}
.design-v1 .account-overview370 .profile-card-heading{color:#222;gap:0}
.design-v1 .account-storage370 .review-cloud-storage{padding:0;margin:0;font-size:12px}
.design-v1 .account-storage370 .review-cloud-storage>p{font-size:11px;margin:12px 0;line-height:1.5;color:#777}
.design-v1 .account-memory370 .tool-switch-row{border:0;padding:12px 0}
.design-v1 .account-memory370 .memory-navigation{border:0;margin:0;align-items:center}
.design-v1 .account-memory370 .memory-navigation>.page-link{min-height:62px;display:flex;align-items:center;gap:10px;padding:14px 0;text-align:left;flex:1}
.design-v1 .account-memory370 .memory-navigation small{display:block;font-size:11px;color:#777;margin-top:6px;font-weight:400}
.design-v1 .account-memory370 .personal-form>.meta{font-size:12px;line-height:1.55;color:#777}
.design-v1 .account-guide-tour370{margin-top:16px;font-size:13px}

/* Neutralize the older account overrides after its cards have been reflowed. */
.design-v1 #profile-dialog .account-identity370{margin-bottom:16px!important}
.design-v1 #profile-dialog .account-identity370 #add-home-screen{max-width:none!important;min-height:36px!important;width:100%!important}
.design-v1 #profile-dialog .account-overview370{align-items:stretch;gap:16px}
.design-v1 #profile-dialog .account-overview370>.profile-card{margin:0!important;border-radius:12px!important;padding:18px!important}
.design-v1 #profile-dialog .account-overview370 .profile-card-heading{color:#222!important;font-size:17px!important;font-weight:650!important;margin:0 0 18px!important}
.design-v1 #profile-dialog .account-overview370 .profile-card-heading>.row-icon,.design-v1 #profile-dialog .account-overview370 .account-explanation370>.row-icon,.design-v1 #profile-dialog .account-overview370 #profile-history>.row-icon{display:none!important}
.design-v1 #profile-dialog .account-storage370 .review-local-storage,.design-v1 #profile-dialog .account-storage370 .review-cloud-storage{padding:0!important}
.design-v1 #profile-dialog .account-balance370 .profile-card-actions{max-width:46%;min-width:0;flex:0 1 160px}
.design-v1 #profile-dialog .account-balance370 .profile-card-actions>button{width:100%;min-width:0;min-height:40px}
.design-v1 #account-page-content.account-settings370 .profile-card{margin:0!important;border-radius:12px!important;padding:18px!important}
.design-v1 #account-page-content.account-settings370 h3{font-size:17px!important;font-weight:650;margin-bottom:18px}
.design-v1 #account-page-content.account-settings370 .tone-link350{width:100%;max-width:none;justify-content:space-between}
.design-v1 #account-page-content.account-settings370 .tone-link350>span:first-child{flex:1}
.design-v1 #account-page-content.account-settings370.settings-detail370 .account-media-detail370{padding:0!important}
@media(max-width:700px){.design-v1 #profile-dialog .account-overview370>.profile-card,.design-v1 #account-page-content.account-settings370 .profile-card{padding:15px!important}.design-v1 #account-page-content.account-settings370.settings-detail370 .account-media-detail370{padding:0!important}}
.design-v1 #account-page-content.account-memory370 .memory-navigation{display:flex;width:100%;min-width:0;gap:8px;align-items:center}
.design-v1 #account-page-content.account-memory370 .memory-navigation>.page-link{display:flex;flex:1 1 0;min-width:0;max-width:none;width:100%;justify-content:space-between;gap:12px}
.design-v1 #account-page-content.account-memory370 .account-memory-link-text370{display:block;flex:1;min-width:0;text-align:left}
.design-v1 #account-page-content.account-memory370 .account-memory-link-text370 strong{display:block;font-size:14px;font-weight:550;line-height:1.4;overflow-wrap:anywhere}
.design-v1 #account-page-content.account-memory370 .account-memory-link-text370 small{display:block;font-size:11px;line-height:1.4;margin:6px 0 0;color:#777;overflow-wrap:anywhere}
.design-v1 #account-page-content.account-memory370 .account-chevron370{position:static;display:block;flex:0 0 16px;width:16px;min-width:16px;font-size:20px;line-height:1;color:#777;text-align:right}
.design-v1 #account-page-content.account-memory370 .memory-navigation>.page-link>.row-icon{display:none!important}
.design-v1 #guide-dialog .lesson{min-height:0!important;padding:16px 18px!important;margin:10px 0!important;border-radius:12px!important}
.design-v1 #guide-dialog .lesson>summary{display:list-item!important;list-style:disclosure-closed inside!important;min-height:0!important;padding:0!important;font-size:14px!important;line-height:1.5!important}
.design-v1 #guide-dialog .lesson[open]>summary{list-style-type:disclosure-open!important}
.design-v1 #guide-dialog .lesson>summary::after{display:none!important}
.design-v1 #guide-dialog .lesson>summary>.row-icon{display:none!important}
.design-v1 #guide-dialog .guide-intro{font-size:13px;color:#777;line-height:1.5;margin:8px 0 24px}
.design-v1 .account-period370{font-size:12px;color:#777;margin:0 0 20px}
.design-v1 .account-period370>summary{cursor:pointer;min-height:30px;padding:4px 0}
.design-v1 .account-period370 .analytics-period{margin:12px 0 6px}
.design-v1 #account-page-content.account-plugins370>.account-intro370{margin:0 0 22px}
.design-v1 #account-page-content.account-plugins370>.account-plugin370{margin:0 0 16px!important;padding:18px!important;border:1px solid #e5e5e5;border-radius:12px!important}
.design-v1 #account-page-content.account-plugins370 .review-plugin-head{display:flex;align-items:center;gap:12px}
.design-v1 #account-page-content.account-plugins370 .review-plugin-head>.row-icon{width:20px;min-width:20px;flex:0 0 20px}
.design-v1 #account-page-content.account-plugins370 .review-plugin-head h3{font-size:18px!important;font-weight:650;margin:0 0 5px}
.design-v1 #account-page-content.account-plugins370 .review-plugin-head p{font-size:12px;line-height:1.4;color:#777;margin:0}
.design-v1 #account-page-content.account-plugins370 .review-connected-email:empty{display:none}
.design-v1 #account-page-content.account-plugins370 .account-plugin-scope370{font-size:13px;line-height:1.5;margin:14px 0}
.design-v1 #account-page-content.account-plugins370 .account-plugin-access370>summary{display:inline-flex;padding:10px 14px;border:1px solid #e5e5e5;border-radius:9px;list-style:none;cursor:pointer;font-size:13px;min-height:42px}
.design-v1 #account-page-content.account-plugins370 .account-plugin-access370>summary::marker{display:none}
.design-v1 #account-page-content.account-plugins370 .account-plugin-access370 p{font-size:12px;line-height:1.5;color:#777;margin:12px 0}
.design-v1 #account-page-content.account-plugins370 .account-plugin-disclosure370{font-size:12px;line-height:1.55;background:#f6f6f6;border-radius:10px;padding:15px;margin:18px 0 0}
@media(max-width:700px){.design-v1 .account-metrics370{grid-template-columns:1fr}.design-v1 #account-page-content .account-metric370{padding:15px!important;margin:0!important}.design-v1 .account-metric370 strong{font-size:23px}.design-v1 .account-metric370 small{font-size:11px}}
/* Keep the shortcut icon and label together; .row-icon is also a span. */
.design-v1 #profile-dialog #add-home-screen{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;gap:9px!important;text-align:left!important}
.design-v1 #profile-dialog #add-home-screen>.row-icon{flex:0 0 18px!important;width:18px!important;min-width:18px!important;max-width:18px!important;margin:0!important}
.design-v1 #profile-dialog #add-home-screen>span:not(.row-icon){flex:0 1 auto!important;width:auto!important;min-width:0!important;margin:0!important;text-align:left!important}

/* Template 1.2 balance layout. */
.design-v1 #profile-dialog .account-balance370 .profile-card-value{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.design-v1 #profile-dialog .account-balance370 .profile-card-actions{max-width:none;width:100%}
.design-v1 #profile-dialog .account-balance370 #profile-balance{font-size:20px;overflow-wrap:normal}

/* Final template 1.2 card typography; old decorators can insert nested icons. */
.design-v1 #profile-dialog .account-overview370 .profile-card-heading .row-icon{display:none!important}
.design-v1 #profile-dialog .account-overview370 .profile-card-heading,.design-v1 #profile-dialog .account-overview370 .profile-card-heading>span{color:var(--ink)!important;font-size:17px!important;font-weight:700!important}
.design-v1 #profile-dialog .account-balance370 #profile-history{display:block!important;width:max-content;max-width:100%;margin:16px auto 8px!important;text-align:center;font-size:13px;font-weight:400}
.design-v1 #profile-dialog .account-balance370 .profile-card-actions>button{min-height:46px;font-weight:500}
.design-v1 #profile-dialog .account-balance370 .profile-card-actions>.primary{font-weight:600}
.design-v1 #profile-dialog .account-identity370>.avatar{border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:11px;font-weight:400}
.design-v1 #profile-dialog .account-identity370 #profile-name{font-size:18px}
.design-v1 #profile-dialog .account-telegram-id370{font-size:12px;margin-top:5px}
.design-v1 #profile-dialog .account-copy370{color:var(--ink)}
.design-v1 #profile-dialog .account-identity370 #add-home-screen{min-height:42px!important;font-size:14px}
.design-v1 #profile-dialog .account-identity370{gap:12px}
.design-v1 #account-page-content.account-settings370 h3{font-size:17px!important;font-weight:700}
.design-v1 #account-page-content.account-settings370 #v26-model-settings-card>p.meta:first-of-type{display:none}
.design-v1 .account-settings370 .primary-provider350 label{font-size:14px;font-weight:600;color:var(--ink)}
.design-v1 .account-settings370 .primary-provider350 select{font-size:15px;min-height:44px}
.design-v1 .account-settings370 .account-provider-row370{min-height:78px}

/* Content screens match the approved r7 spacing, hierarchy and neutral fields. */
.design-v1 .v370-heading-copy{min-width:0;flex:1}.design-v1 .v370-page-subtitle{font-size:13px;font-weight:400;color:#777;margin:7px 0 0;line-height:1.5}.design-v1 .v370-content-note{font-size:13px;color:#767676;line-height:1.6;margin:12px 0}.design-v1 .v370-content-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px;text-align:left}.design-v1 .v370-content-copy strong{font-size:14px;font-weight:550;overflow-wrap:anywhere}.design-v1 .v370-content-copy small{font-size:12px;color:#858585;line-height:1.4;overflow-wrap:anywhere}.design-v1 .v370-content-row{display:flex;align-items:center;gap:14px;width:100%;padding:17px 0;border:0;border-bottom:1px solid #eaeaea;border-radius:0;background:transparent;text-align:left}.design-v1 .v370-content-row>.row-icon{flex:0 0 20px;width:20px;height:20px;color:#707070}.design-v1 .v370-content-arrow{color:#929292;font-size:23px;font-weight:300;margin-left:auto}.design-v1 .v370-content-row:hover{background:#fafafa}.design-v1 .v370-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}.design-v1 .v370-project-card{background:white;border:1px solid #e6e6e6;border-radius:14px;padding:24px;text-align:left;min-height:155px;min-width:0}.design-v1 .v370-project-card:hover{background:#fafafa;border-color:#ccc}.design-v1 .v370-project-card>.row-icon{width:23px;height:23px;color:#555;margin-bottom:16px}.design-v1 .v370-project-card h3{font-size:16px;font-weight:550;margin:0 0 8px;overflow-wrap:anywhere}.design-v1 .v370-project-card p{font-size:12px;margin:0;color:#888}.design-v1 .v370-project-doors{margin:6px 0 34px}.design-v1 .v370-section-heading{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:20px 0 7px}.design-v1 .v370-section-heading h3{font-size:14px;font-weight:550;margin:0}.design-v1 .v370-projects .directory-list{margin-top:0}.design-v1 .v370-content-sheet{width:min(530px,100%);max-width:530px;padding:24px;background:#fff;border:0}.design-v1 .v370-content-sheet .page-heading{margin-bottom:22px}.design-v1 .v370-content-sheet .page-heading h2{font-size:20px;font-weight:550;overflow-wrap:anywhere}.design-v1 .v370-project-instructions{min-height:280px;resize:vertical;line-height:1.7}.design-v1 .v370-sheet-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.design-v1 .v370-material-file{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #ececec;min-width:0}.design-v1 .v370-material-file>.row-icon{flex:0 0 22px;width:22px;height:22px;color:#666}.design-v1 .v370-material-actions{display:flex;gap:2px;flex-shrink:0}.design-v1 .v370-material-actions button{width:32px;height:36px;min-width:32px;padding:6px}.design-v1 .v370-full{width:100%;margin-top:16px}.design-v1 .v370-setting-link{padding:17px 0;gap:12px}.design-v1 .v370-model-sheet .settings-menu-row{border:0;border-bottom:1px solid #ececec;border-radius:0}.design-v1 .v370-model-sheet .settings-menu-link{background:white;border:0;text-align:left;font-size:14px;min-height:64px}.design-v1 .v370-model-sheet .setting-value{font-size:13px;color:#777}.design-v1 .v370-model-sheet .v370-content-row>.row-icon{display:none}.design-v1 .v370-model-sheet .v370-content-copy{flex-direction:row;align-items:center;justify-content:space-between}.design-v1 .v370-model-sheet .v370-content-copy small{text-align:right;font-size:13px}.design-v1 .v370-model-sheet .v370-content-copy strong{font-weight:400}.design-v1 .v370-model-sheet .choice-row{border:0;border-bottom:1px solid #eee;border-radius:0;padding:16px 4px;box-shadow:none}.design-v1 .v370-model-sheet .choice-row[aria-pressed=true]{background:#f6f6f6;color:#222}.design-v1 .v370-model-sheet .choice-row small{font-size:12px}.design-v1 .v370-model-sheet .gemini-provider-tabs{gap:7px;margin:15px 0 20px}.design-v1 .v370-model-sheet .gemini-provider-tabs button{border-radius:11px;min-width:0;padding:13px 3px;display:flex;flex-direction:column;gap:8px;font-family:inherit;font-size:12px;font-weight:500}.design-v1 .v370-model-sheet .gemini-provider-tabs button[aria-pressed=true]{background:#efefef;border:1px solid #424242}.design-v1 .v370-model-sheet .gemini-provider-tabs img{width:24px;height:24px;object-fit:contain}.design-v1 .v370-model-sheet .squad-stack335{width:47px;max-width:100%;height:28px;flex:0 0 28px}.design-v1 .v370-model-sheet .mode-switch{border:1px solid #e4e4e4;border-radius:9px;background:#f7f7f7;padding:3px}.design-v1 .v370-model-sheet .mode-choice{flex:1}.design-v1 .v370-model-sheet .mode-choice button{width:100%;border:0;box-shadow:none;font-size:13px}.design-v1 .v370-model-sheet .mode-choice button[aria-pressed=true]{background:white;box-shadow:0 1px 3px #00000012;border-radius:6px;color:#222}.design-v1 .v370-research-switch{margin-top:14px}.design-v1 #files-dialog .page-heading{margin-bottom:26px}.design-v1 #files-dialog .profile-files-heading{justify-content:flex-end;gap:14px;min-height:32px;margin:0}.design-v1 #files-dialog #profile-files-title{display:none}.design-v1 #files-dialog .profile-delete-note{display:none}.design-v1 #files-dialog .file-selection-toolbar[hidden]{display:none!important}.design-v1 #files-dialog:not(.v370-files-selecting) .profile-file>label:has(input[type=checkbox]){display:none}.design-v1 #files-dialog .profile-file>input[type=checkbox]{display:none}.design-v1 #files-dialog.v370-files-selecting .profile-file>input[type=checkbox]{display:block}.design-v1 #files-dialog .v370-file-origin{font-size:11px;color:#999;display:block;text-align:left;border:0;padding:2px 0;background:transparent}.design-v1 .files-capacity350{clear:both;margin:10px 0 20px}.design-v1 .files-capacity350 p{font-size:12px;margin:5px 0 10px}.design-v1 .v370-storage-link{float:right;font-size:12px;padding:4px 0;min-height:26px}.design-v1 .v370-file-search{width:100%;min-height:42px;margin:0 0 16px;padding:10px 13px;font-size:14px}.design-v1 #files-dialog .file-kind-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0}.design-v1 #files-dialog .file-kind-tabs button{flex:0 0 auto;width:auto;min-width:0;min-height:34px;border:1px solid #e3e3e3;background:#fff;border-radius:7px;padding:8px 12px;font-size:12px;font-weight:400}.design-v1 #files-dialog .file-kind-tabs button[aria-pressed=true]{background:#292929;color:white;border-color:#292929}.design-v1 #files-dialog .profile-file{align-items:center;gap:14px;padding:17px 0;min-width:0}.design-v1 #files-dialog .profile-file[hidden]{display:none!important}.design-v1 #files-dialog .profile-file-info strong{font-size:14px;font-weight:550}.design-v1 #files-dialog .profile-file-info small{font-size:12px;color:#888}.design-v1 #files-dialog .v370-file-arrow{margin-left:auto;border:0;background:none;color:#888;font-size:24px}.design-v1 .v370-gallery-tabs{margin:6px 0 22px}.design-v1 .v370-gallery-tabs .media-tabs{max-width:310px}.design-v1 .v370-gallery{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:16px;align-items:start}.design-v1 .v370-gallery-card{display:flex;flex-direction:column;gap:8px;background:#fff;padding:14px;border:1px solid #e5e5e5;border-radius:14px;overflow:hidden;min-width:0}.design-v1 .v370-gallery-card .gallery-view{border:0;aspect-ratio:4/3;overflow:hidden;border-radius:9px;margin-bottom:4px;background:#f4f4f4;padding:0;width:100%}.design-v1 .v370-gallery-card img{width:100%;height:100%;object-fit:cover}.design-v1 .v370-gallery-card .gallery-name{font-size:14px;line-height:1.5;font-weight:550;overflow-wrap:anywhere}.design-v1 .v370-gallery-card .meta{font-size:12px;color:#888}.design-v1 .v370-gallery-actions{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:6px}.design-v1 .v370-gallery-actions>.text-button{font-size:12px;text-align:left;padding:7px 2px}.design-v1 .v370-gallery-actions>.icon{width:32px;height:32px;padding:7px}.design-v1 .v370-gallery-placeholder .row-icon{width:42px;height:42px;color:#aaa}.design-v1 .v370-gallery-detail-actions{display:flex;gap:10px;margin-top:20px}.design-v1 .media-create-dialog.v370-content-sheet{padding:24px;width:min(530px,100%);max-width:530px;max-height:100dvh;border-radius:0;overflow:auto}.design-v1 .media-create-dialog .dialog-heading{margin-bottom:22px}.design-v1 .media-create-dialog .dialog-heading h2{font-size:20px;font-weight:550}.design-v1 .media-create-dialog .profile-field{font-size:13px;font-weight:500;gap:7px;margin-bottom:16px}.design-v1 .media-create-dialog textarea{min-height:100px;line-height:1.6;padding:12px}.design-v1 .media-create-model-label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border:1px solid #dedede;border-radius:9px;padding:12px;margin:4px 0 16px;position:relative;font-size:14px}.design-v1 .v370-media-model-caption{width:100%;font-size:12px;color:#888}.design-v1 .media-create-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}.design-v1 .media-create-fields .v370-effort-primary{grid-column:1/-1}.design-v1 .media-create-fields select{min-width:0;width:100%;font-size:13px;padding:10px}.design-v1 .v370-media-extras{grid-column:1/-1;border-top:1px solid #eee;padding:14px 0;font-size:13px}.design-v1 .v370-media-extras summary{cursor:pointer;padding:4px 0}.design-v1 .v370-media-extras .tool-switch-row{padding:14px 0}.design-v1 .media-create-dialog .media-references{margin:10px 0}.design-v1 .media-create-dialog .dialog-actions{margin-top:24px}.design-v1 .media-create-dialog .dialog-actions .primary{min-width:130px}.design-v1 .squad-task335{font-size:15px;font-weight:400;padding:13px 17px;margin-bottom:22px;line-height:1.7;white-space:pre-wrap}.design-v1 .v370-squad-running{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}.design-v1 .v370-squad-running .squad-run-heading335{grid-column:1/-1;margin-bottom:14px}.design-v1 .v370-squad-running>strong{font-size:14px;font-weight:550}.design-v1 .v370-squad-running .squad-progress335{grid-column:1;color:#888;font-size:12px;margin:0}.design-v1 .v370-squad-running .squad-run-actions335{grid-column:2;grid-row:2/4;align-self:center;margin:0}.design-v1 .v370-squad-complete .squad-run-heading335{margin-bottom:18px}.design-v1 .v370-squad-complete .squad-run-heading335>strong{font-size:13px;color:#888;font-weight:500}.design-v1 .v370-squad-complete .squad-result335{line-height:1.8;font-size:15px;background:transparent;border:0}.design-v1 .v370-squad-complete .squad-answer-picker350{margin-left:auto;border:1px solid #ddd;border-radius:7px;font-size:12px;padding:6px 9px}.design-v1 .v370-squad-complete .squad-tools335{margin:14px 0;align-items:center;gap:7px}.design-v1 .v370-squad-complete .squad-tools335 .icon{width:31px;height:31px;padding:6px;color:#858585;border:0}.design-v1 .v370-squad-details{margin:14px 0;color:#777;font-size:12px}.design-v1 .v370-squad-details:not([open]){display:none}.design-v1 .v370-squad-complete .squad-run-actions335 button{font-size:12px;color:#777;padding:6px 0}.design-v1 .v370-squad-complete .squad-note335{font-size:11px;color:#999}.design-v1 .v370-squad-complete .squad-objections335{background:#fafafa;border:1px solid #ececec;border-radius:9px;padding:13px;font-size:12px}
@media(max-width:600px){.design-v1 .v370-project-grid{grid-template-columns:1fr;gap:12px}.design-v1 .v370-project-card{min-height:126px;padding:19px}.design-v1 .v370-content-sheet{max-width:100%;padding:20px}.design-v1 .v370-material-file{gap:8px}.design-v1 .v370-material-file>.row-icon{display:none}.design-v1 .v370-material-actions{gap:0}.design-v1 .v370-material-actions button{width:28px;min-width:28px;padding:5px}.design-v1 .v370-content-copy strong{font-size:13px}.design-v1 .v370-page-subtitle{font-size:12px}.design-v1 .v370-files-upload{font-size:12px;padding:9px}.design-v1 .media-create-dialog.v370-content-sheet{width:100%;padding:20px;max-width:100%}.design-v1 .v370-model-sheet .gemini-provider-tabs{gap:5px}.design-v1 .v370-model-sheet .gemini-provider-tabs button{font-size:11px;padding:11px 2px}.design-v1 .v370-model-sheet .setting-value{font-size:12px}.design-v1 .v370-content-row{gap:10px}}

.design-v370 .v370-project-doors{background:var(--surface2);border-radius:14px;padding:0 14px}.design-v370 .v370-project-doors .v370-content-row:last-child{border-bottom:0}.design-v370 .media-create-dialog .media-create-model-label{display:none}.design-v370 .v370-generation-model select{width:100%;font-size:14px;min-height:42px}.design-v370 .media-create-dialog.v370-content-sheet{border-radius:22px 22px 16px 16px;max-height:calc(100dvh - 40px);margin:auto auto 20px}.design-v370 #request-settings-dialog.v370-model-sheet{width:530px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);border-radius:22px 22px 16px 16px;padding:24px;left:50%!important;top:auto!important;bottom:20px!important;transform:translateX(-50%);box-shadow:0 24px 70px #0002}.design-v370 #request-settings-dialog.v370-model-sheet::before{content:"";display:block;width:35px;height:4px;border-radius:4px;background:#ddd;margin:-13px auto 16px}.design-v370 .v370-model-sheet .popover-heading{margin-bottom:18px}.design-v370 .v370-model-sheet .popover-heading h2{font-size:21px}.design-v370 .v370-model-sheet .gemini-provider-tabs button{flex-direction:row;justify-content:center;gap:6px;min-height:52px}.design-v370 .v370-model-sheet .gemini-provider-tabs img{width:23px;height:23px}.design-v370 .v370-model-sheet .squad-stack335{width:43px;flex:0 0 43px}.design-v370 .v370-content-sheet{max-width:calc(100% - 40px)}
@media(max-width:600px){.design-v370 .v370-content-sheet{max-width:100%}.design-v370 #request-settings-dialog.v370-model-sheet{width:100%;max-width:100%;max-height:calc(100dvh - 36px);border-radius:21px 21px 0 0;bottom:0!important;padding:20px 17px}.design-v370 .v370-model-sheet .gemini-provider-tabs button{flex-direction:column;gap:5px;min-height:56px}.design-v370 .v370-model-sheet .squad-stack335{flex-basis:23px}.design-v370 .media-create-dialog.v370-content-sheet{border-radius:21px 21px 0 0;max-height:calc(100dvh - 36px);margin:auto 0 0}}

.design-v370 #directory-list .v370-project-card{display:block;text-align:left;min-height:155px}.design-v370 #directory-list .v370-project-card .row-icon{display:block}.design-v370 #directory-list .v370-project-card h3{display:block;margin:0 0 8px}.design-v370 #directory-list .v370-project-card p{display:block}.design-v370 #directory-dialog #add-project[hidden]{display:none!important}.design-v370 #nav-projects[hidden]{display:none!important}.design-v370 #files-dialog .file-thumb32{width:44px;min-width:44px;height:50px;flex:0 0 44px;border:1px solid #e6e6e6;border-radius:9px;font-size:23px;background:#fafafa}.design-v370 #files-dialog .file-thumb32 img{width:100%;height:100%;object-fit:cover}.design-v370 .v370-model-sheet .v370-model-row-copy{display:flex;flex-direction:column;flex:1;gap:5px;align-items:flex-start;text-align:left}.design-v370 .v370-model-sheet .v370-model-row-copy strong{font-size:13px;font-weight:650}.design-v370 .v370-model-sheet .v370-model-row-copy small{font-size:12px;color:#777;font-weight:400;background:none;border:0;padding:0}.design-v370 .v370-model-sheet .v370-content-copy{flex-direction:column;align-items:flex-start;gap:5px}.design-v370 .v370-model-sheet .v370-content-copy strong{font-size:13px;font-weight:650}.design-v370 .v370-model-sheet .v370-content-copy small{font-size:12px;text-align:left}.design-v370 .v370-model-sheet .settings-menu-link{padding:16px 0;min-height:68px}.design-v370 .v370-model-extras{font-size:13px;margin:18px 0}.design-v370 .v370-model-extras>summary{cursor:pointer;min-height:32px;display:list-item}.design-v370 .v370-model-tools .tool-switch-row{padding:12px 0}.design-v370 .v370-model-footer{display:flex;justify-content:flex-end;padding-top:16px;margin-top:18px;border-top:1px solid #e8e8e8}.design-v370 .v370-model-footer .primary{min-width:104px}.design-v370 #request-settings-dialog.v370-model-sheet{display:none}.design-v370 #request-settings-dialog.v370-model-sheet[open]{display:block}

.design-v370 #files-dialog #profile-files .profile-file{display:grid;grid-template-columns:44px minmax(0,1fr) 32px;gap:12px;align-items:center}.design-v370 #files-dialog #profile-files .profile-file .file-thumb32{grid-column:1;grid-row:1}.design-v370 #files-dialog #profile-files .profile-file .profile-file-info{grid-column:2;grid-row:1}.design-v370 #files-dialog #profile-files .profile-file .file-arrow350{grid-column:3;grid-row:1;margin:0;width:32px;min-width:32px;height:40px;padding:4px}.design-v370 #files-dialog.v370-files-selecting #profile-files .profile-file{grid-template-columns:22px 44px minmax(0,1fr) 32px}.design-v370 #files-dialog.v370-files-selecting #profile-files .profile-file .file-select{grid-column:1;grid-row:1}.design-v370 #files-dialog.v370-files-selecting #profile-files .profile-file .file-thumb32{grid-column:2}.design-v370 #files-dialog.v370-files-selecting #profile-files .profile-file .profile-file-info{grid-column:3}.design-v370 #files-dialog.v370-files-selecting #profile-files .profile-file .file-arrow350{grid-column:4}.design-v370 #files-dialog .files-capacity350{clear:none;margin:7px 0 20px}.design-v370 #files-dialog .files-capacity350 p{padding-top:4px;padding-right:76px}.design-v370 #files-dialog .profile-files-heading{margin-top:16px}.design-v370 #files-dialog .v370-storage-link{margin-top:4px}.design-v370 .v370-model-footer{position:sticky;bottom:-24px;background:white;padding-bottom:4px}.design-v370 .v370-model-footer .primary{min-width:104px}
@media(max-width:600px){body.design-v370 #request-settings-dialog.v370-model-sheet{left:0!important;right:0!important;width:100%!important;max-width:100%!important;transform:none!important;margin:0!important}.design-v370 .v370-model-footer .primary{width:100%}.design-v370 .v370-model-footer{bottom:-20px;padding-bottom:4px}}

.design-v370 .v370-billing-heading{min-width:0;flex:1}.design-v370 .v370-billing-heading h2{margin:0}.design-v370 .v370-billing-heading p{font-size:13px;color:#777;margin:7px 0 0}.design-v370 .v370-topup #topup-content{max-width:700px}.design-v370 .v370-topup-choices{display:flex;flex-direction:column;gap:11px;margin:24px 0}.design-v370 .v370-package-choice{display:flex;align-items:center;gap:12px;justify-content:space-between;width:100%;border:1px solid #e6e6e6;border-radius:13px;padding:18px;background:white;text-align:left}.design-v370 .v370-package-choice[aria-pressed=true]{border-color:#444;background:#f7f7f7}.design-v370 .v370-package-copy{display:flex;flex-direction:column;gap:6px}.design-v370 .v370-package-copy strong{font-size:16px;font-weight:600}.design-v370 .v370-package-copy small{font-size:12px;color:#777}.design-v370 .v370-package-check{font-size:18px}.design-v370 .v370-topup-main-actions{display:flex;flex-direction:column;gap:10px;margin:20px 0}.design-v370 .v370-topup-main-actions button{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;min-height:47px}.design-v370 .v370-topup-main-actions .row-icon{width:18px;height:18px;flex:0 0 18px}.design-v370 .v370-topup #topup-content>.check-label{font-size:12px;line-height:1.5;gap:10px;margin:12px 0}.design-v370 .v370-topup #topup-content>details{font-size:13px;margin:14px 0}.design-v370 .v370-topup #topup-content>details summary{cursor:pointer}.design-v370 .v370-topup #topup-status{font-size:12px;color:#777;line-height:1.5}.design-v370 .v370-topup-note{font-size:12px;line-height:1.7;color:#888}.design-v370 .v370-billing-notice{background:#f7f7f7;border-radius:10px;color:#757575;padding:15px 17px;font-size:12px;line-height:1.7;margin:22px 0}.design-v370 .v370-purchase-history{border-top:1px solid #eee;padding-top:16px}.design-v370 .v370-wallet-balance{padding:23px;border:1px solid #e6e6e6;border-radius:14px;margin:24px 0 12px}.design-v370 .v370-wallet-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#888;margin:0 0 9px}.design-v370 .v370-wallet-value{font-size:34px;font-weight:550;letter-spacing:-1px;overflow-wrap:anywhere}.design-v370 .v370-wallet-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;border-top:1px solid #e9e9e9;margin-top:24px;padding-top:21px}.design-v370 .v370-wallet-metrics>div{display:flex;flex-direction:column;gap:7px;min-width:0}.design-v370 .v370-wallet-metrics strong{font-size:20px;font-weight:550;overflow-wrap:anywhere}.design-v370 .v370-wallet-metrics small{font-size:12px;color:#888;line-height:1.5}.design-v370 .v370-wallet-explanation{font-size:12px;line-height:1.6;margin:10px 0 27px;color:#858585}.design-v370 .v370-ledger-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0}.design-v370 .v370-ledger-heading h3{font-size:17px;font-weight:600;margin:0}.design-v370 .v370-ledger-heading button{font-size:12px}.design-v370 .v370-ledger-filters{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}.design-v370 .v370-ledger-filters button{border:1px solid #e4e4e4;border-radius:20px;background:white;min-height:34px;padding:6px 12px;font-size:12px}.design-v370 .v370-ledger-filters button[aria-pressed=true]{background:#282828;color:#fff;border-color:#282828}.design-v370 .v370-ledger-row{display:flex;align-items:center;gap:15px;padding:18px 0;border-bottom:1px solid #eee}.design-v370 .v370-ledger-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.design-v370 .v370-ledger-copy strong{font-size:13px;font-weight:550;overflow-wrap:anywhere}.design-v370 .v370-ledger-copy small{font-size:11px;color:#999;line-height:1.5}.design-v370 .v370-ledger-amount{font-size:13px;font-weight:550;white-space:nowrap}.design-v370 .v370-request-ledger{font-size:12px;color:#777;border-top:1px solid #eee;padding:15px 0;overflow-wrap:anywhere}.design-v370 .v370-request-ledger summary{cursor:pointer}.design-v370 .v370-billing-explain{display:flex;align-items:center;gap:12px;text-align:left;width:100%}.design-v370 .v370-billing-explain>span:first-child{display:flex;flex:1;flex-direction:column;gap:5px}.design-v370 .v370-billing-explain strong{font-size:13px;font-weight:600}.design-v370 .v370-billing-explain small{font-size:12px;color:#888}.design-v370 .v370-wallet .page-heading .v370-wallet-topup{font-size:13px;padding:11px 14px}
@media(max-width:600px){.design-v370 .v370-wallet-balance{padding:19px}.design-v370 .v370-wallet-value{font-size:31px}.design-v370 .v370-wallet-metrics{gap:15px}.design-v370 .v370-wallet-metrics strong{font-size:18px}.design-v370 .v370-wallet-metrics small{font-size:11px}.design-v370 .v370-wallet .page-heading .v370-wallet-topup{padding:9px 12px;font-size:12px}.design-v370 .v370-ledger-row{gap:10px}.design-v370 .v370-ledger-amount{font-size:12px}.design-v370 .v370-billing-heading p{font-size:12px}.design-v370 .v370-topup #topup-content>.check-label{font-size:11px}}

/* Approved r7 schedule list and bottom sheet. */
.design-v370 .v370-schedules-page .page-heading{align-items:center;justify-content:space-between}
.design-v370 .v370-schedule-title{min-width:0;flex:1}
.design-v370 .v370-schedule-title h2{font-size:26px;font-weight:700;line-height:1.2;letter-spacing:-.6px;margin:0}
.design-v370 .v370-schedule-title p{font-size:13px;line-height:1.55;color:var(--muted);margin:8px 0 0}
.design-v370 .v370-schedule-create{flex:0 0 auto}
.design-v370 .v370-schedule-list{display:flex;flex-direction:column;gap:16px}
.design-v370 .v370-schedule-card{border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--bg)}
.design-v370 .v370-schedule-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.design-v370 .v370-schedule-card-heading h3{font-size:17px;line-height:1.4;letter-spacing:normal;margin:0;font-weight:700;overflow-wrap:anywhere;min-width:0}
.design-v370 .v370-schedule-card-heading h3>.row-icon{display:none}
.design-v370 .v370-schedule-state{font-size:11px;line-height:1.4;padding:5px 8px;border-radius:6px;background:var(--surface);color:var(--muted);white-space:nowrap}
.design-v370 .v370-schedule-parameters{font-size:13px;line-height:1.55;color:var(--muted);margin:18px 0 14px}
.design-v370 .v370-schedule-chat{display:block;font-size:13px;line-height:1.55;color:var(--muted);text-align:left;padding:0;min-height:0;background:transparent;border:0;border-radius:4px;width:auto}
.design-v370 .v370-schedule-chat>.row-icon{display:none}
.design-v370 .v370-schedule-chat:hover:not(:disabled){text-decoration:underline;background:transparent}
.design-v370 .v370-schedule-when{font-size:13px;line-height:1.55;color:var(--muted);margin:0}
.design-v370 .v370-schedule-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 0}
.design-v370 .v370-schedule-actions .secondary{min-height:44px;font-size:14px;padding:11px 15px}
.design-v370 .v370-schedule-actions .text-button{padding:9px 12px;min-height:44px;font-size:13px;color:var(--ink);text-decoration:none}
.design-v370 .v370-schedule-actions button:not(.icon)>.row-icon{display:none}
.design-v370 .v370-schedule-delete{width:44px;height:44px;min-width:44px;color:var(--muted)}
.design-v370 .v370-schedule-empty{font-size:13px;line-height:1.55;color:var(--muted);padding:14px 16px;background:var(--surface);border-radius:10px;margin:0}
.design-v370 .v370-schedule-details{margin-top:15px;font-size:12px;color:var(--muted)}
.design-v370 .v370-schedule-details summary{cursor:pointer;padding:5px 0;font-size:12px;color:var(--muted)}
.design-v370 .v370-schedule-details summary>.row-icon{display:none}
.design-v370 .v370-schedule-prompt{white-space:pre-wrap;font-size:13px;line-height:1.6;margin:12px 0;color:var(--ink);overflow-wrap:anywhere}
.design-v370 .v370-schedule-run{border-top:1px solid var(--line);padding:12px 0;display:grid;gap:5px}
.design-v370 .v370-schedule-run strong{font-size:13px;color:var(--ink)}
.design-v370 .v370-schedule-run small{font-size:11px}
.design-v370 .v370-schedule-run p{font-size:12px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.design-v370 dialog.v370-schedule-sheet{display:none;padding:20px 0 0;overflow:hidden;max-height:calc(100dvh - 40px);width:530px;max-width:calc(100% - 40px)}
.design-v370 dialog.v370-schedule-sheet[open]{display:flex;flex-direction:column}
.design-v370 .v370-schedule-sheet::before{flex:0 0 4px;margin:-9px auto 14px}
.design-v370 .v370-schedule-sheet:focus{outline:0}
.design-v370 .v370-schedule-sheet-heading{padding:0 24px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto}
.design-v370 .v370-schedule-sheet-heading h2{margin:0;font-size:21px;font-weight:700;letter-spacing:-.4px;line-height:1.3}
.design-v370 .v370-schedule-sheet-heading h2>.row-icon{display:none}
.design-v370 .v370-schedule-sheet-heading .icon{font-size:27px;border:0;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;border-radius:9px;color:var(--muted)}
.design-v370 .v370-schedule-form-body{min-height:0;overflow:auto;padding:4px 24px 24px;overscroll-behavior:contain}
.design-v370 .v370-schedule-form-body .schedule-form{display:flex;flex-direction:column;gap:16px;max-width:none;margin:0;padding:0}
.design-v370 .v370-schedule-form-body .schedule-form>label{display:block;font-size:13px;font-weight:550;line-height:1.5;margin:0;min-width:0}
.design-v370 .v370-schedule-form-body label.profile-field input,.design-v370 .v370-schedule-form-body label.profile-field textarea,.design-v370 .v370-schedule-form-body label.profile-field select{display:block;width:100%;margin:8px 0 0!important;border:1px solid var(--strongline)!important;border-radius:12px;background:#fff;color:#222;min-height:44px;padding:12px;font-size:14px;font-weight:400;line-height:1.5}
.design-v370 .v370-schedule-form-body .schedule-form>select{display:block;width:100%;margin-top:-8px;min-height:44px;padding:12px;border:1px solid var(--strongline);font-size:14px}
.design-v370 .v370-schedule-form-body label textarea{min-height:92px;resize:vertical}
.design-v370 .v370-schedule-form-body .tool-switch-row{padding:15px 0;border-bottom:1px solid var(--line);font-size:14px;gap:15px;line-height:1.5;margin:0}
.design-v370 .v370-schedule-form-body .tool-switch-row>span{flex:1;min-width:0}
.design-v370 .v370-schedule-form-body .tool-switch-row small{display:block;font-size:12px;color:var(--muted);line-height:1.45;font-weight:400;margin-top:4px}
.design-v370 .v370-schedule-form-body .tool-switch-row>.row-icon{display:none}
.design-v370 .v370-schedule-form-body .cost-disclosure{font-size:12px;line-height:1.55;color:var(--muted);background:var(--surface);padding:14px 16px;border-radius:10px;margin:0}
.design-v370 .v370-schedule-form-body .schedule-form>.meta{font-size:12px;line-height:1.5;color:var(--muted);margin:0}
.design-v370 .v370-schedule-form-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}
.design-v370 .v370-schedule-form-footer button>.row-icon{display:none}
.design-v370 .v370-schedule-form-delete{align-self:flex-start;font-size:12px}
@media(max-width:860px){
 .design-v370 .v370-schedule-title h2{font-size:23px}
 .design-v370 .v370-schedule-title p{font-size:12px}
 .design-v370 .v370-schedule-create{padding:10px 13px;font-size:13px;min-height:44px}
 .design-v370 .v370-schedule-card{padding:15px}
 .design-v370 dialog.v370-schedule-sheet{width:100%;max-width:100%;max-height:calc(100dvh - 36px);margin:auto 0 0;border-radius:21px 21px 0 0}
 .design-v370 .v370-schedule-sheet-heading{padding:0 17px 12px}
 .design-v370 .v370-schedule-sheet-heading h2{font-size:20px}
 .design-v370 .v370-schedule-form-body{padding:4px 17px max(20px,env(safe-area-inset-bottom))}
 .design-v370 .v370-schedule-form-footer button{flex:1}
}

.design-v370 .v370-schedule-create>.row-icon{display:none}
.design-v370 dialog.v370-schedule-sheet{opacity:1!important;transform:none!important;transition:none!important;animation:none!important;background:#fff}
.design-v370 .v370-schedule-fixed-footer{flex:0 0 auto;border-top:1px solid var(--line);padding:14px 24px 18px;background:#fff}
.design-v370 .v370-schedule-fixed-footer>.sync-error:empty{display:none}
.design-v370 .v370-schedule-fixed-footer>.sync-error{font-size:12px;line-height:1.5;margin:0 0 10px}
.design-v370 .v370-schedule-fixed-footer .v370-schedule-form-footer{margin:0}
.design-v370 .v370-schedule-form-body .tool-switch-row>.hint-button{display:none}
@media(max-width:860px){.design-v370 .v370-schedule-fixed-footer{padding:12px 17px max(16px,env(safe-area-inset-bottom))}}

/* Red is reserved for unread state; text/count also convey it without color. */
.design-v370 #sidebar-notifications{position:relative;width:100%;min-height:44px;gap:11px}
.design-v370 #sidebar-notifications .notifications370-label{min-width:0;flex:1}
.notifications370-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#c42b36;color:#fff;font-size:11px;font-weight:650;line-height:20px;font-variant-numeric:tabular-nums;flex:0 0 auto}
.notifications370-badge[hidden]{display:none!important}
#menu.has-unread-notifications370{position:relative}
#menu.has-unread-notifications370::after{content:'';position:absolute;right:6px;top:6px;width:8px;height:8px;border-radius:50%;background:#c42b36;box-shadow:0 0 0 2px #fff;pointer-events:none}
.notifications370-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.notifications370-toolbar>p{flex:1;min-width:160px;margin:0}
.notifications370-toolbar>button{min-height:40px}
.notifications370-status{margin:0 0 12px;min-height:0}
.notifications370-status:empty{display:none}
.notifications370-list{display:grid;gap:12px}
.notifications370-card{border:1px solid #e6e6e6;border-radius:12px;background:#fff;padding:18px;min-width:0}
.notifications370-card.notification.unread{border-left:1px solid #e6e6e6;background:#fafafa}
.notifications370-card-head{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}
.notifications370-card-head h3{margin:0;font-size:15px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.notifications370-unread{display:inline-flex;align-items:center;gap:5px;color:#a9202b;font-size:11px;line-height:22px;white-space:nowrap;flex:0 0 auto}
.notifications370-unread::before{content:'';width:6px;height:6px;border-radius:50%;background:#c42b36}
.notifications370-card .notifications370-body{font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0;color:#525252}
.notifications370-card time{display:block;font-size:11px;color:#858585}
.notifications370-actions{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;margin-top:10px}
.notifications370-card .notifications370-actions button{min-height:40px;margin:0;font-size:12px;text-align:left}
.notifications370-empty{padding:48px 20px;text-align:center;color:#8a8a8a}
.notifications370-empty>.row-icon{width:32px;height:32px;margin:0 auto 12px}
.notifications370-empty h3{font-size:16px;color:#555;font-weight:500}
.notifications370-empty p{max-width:340px;margin:10px auto;line-height:1.6}
@media(max-width:480px){.notifications370-card{padding:14px}.notifications370-card-head{gap:6px;flex-wrap:wrap}.notifications370-toolbar{gap:6px}.notifications370-toolbar>p{flex-basis:100%;margin-bottom:4px}.notifications370-toolbar>button{flex:1}}

#oneai-funds-warning{box-sizing:border-box;width:min(28rem,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid var(--line,#d9d9d9);border-radius:16px;background:var(--bg,Canvas);color:var(--ink,CanvasText);font:inherit;box-shadow:0 16px 64px #0003}
#oneai-funds-warning::backdrop{background:#1118}
#oneai-funds-warning h2{font-size:1.25rem;line-height:1.3;margin:0 0 14px}
#oneai-funds-warning p{font-size:.94rem;line-height:1.55;margin:12px 0 20px}
#oneai-funds-warning dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;font-size:.9rem}
#oneai-funds-warning dd{margin:0;font-variant-numeric:tabular-nums;font-weight:600}
#oneai-funds-warning .funds-actions{display:flex;gap:8px;flex-wrap:wrap}
#oneai-funds-warning button{flex:1 0 auto;max-width:100%;min-height:44px;border-radius:9px;padding:8px 12px;cursor:pointer}
#oneai-funds-warning .secondary{border:1px solid #888;background:transparent;color:inherit}
#oneai-funds-warning .primary{border:1px solid transparent;background:#282828;color:white}
#oneai-funds-warning button:focus-visible{outline:2px solid #3685cf;outline-offset:2px}

