.iwant-page {
  --iwant-red: #a50f0f;
  --iwant-gold: #ffde00;
  --iwant-ink: #2b1111;
  --iwant-soft: #fff8ec;
  background: linear-gradient(180deg, #fff 0%, #fff8ec 100%);
  color: var(--iwant-ink);
  overflow-x: clip;
}
.iwant-page *, .iwant-page *::before, .iwant-page *::after { box-sizing: border-box; }
.iwant-page .container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.iwant-page > .container { width: 100%; max-width: none; box-sizing: border-box; }
.iwant-hero { background: var(--iwant-red); color: #fff; border-bottom: 4px solid var(--iwant-gold); padding: 44px 0; margin-bottom: 28px; }
.iwant-hero h1 { margin: 0 0 10px; color: #fff; font-size: clamp(34px, 6vw, 64px); font-weight: 800; letter-spacing: -0.04em; }
.iwant-hero p { max-width: 760px; color: rgba(255,255,255,.92); font-size: 18px; margin: 0; }
.iwant-kicker { color: var(--iwant-gold) !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px !important; margin-bottom: 10px !important; }
.iwant-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.iwant-card { background: #fff; border: 1px solid rgba(165,15,15,.12); border-radius: 22px; padding: 24px; box-shadow: 0 18px 55px rgba(95, 21, 21, .08); margin-bottom: 24px; }
.iwant-card h2 { margin-top: 0; font-weight: 800; color: var(--iwant-red); }
.iwant-primary, .iwant-secondary, .iwant-report { border: 0; border-radius: 999px; padding: 12px 16px; font-weight: 800; cursor: pointer; transition: .2s ease; text-align: center; text-decoration: none; display: inline-block; }
.iwant-primary { background: var(--iwant-red); color: #fff !important; }
.iwant-secondary { background: var(--iwant-gold); color: var(--iwant-red) !important; }
.iwant-report { background: #fff3f3; color: var(--iwant-red) !important; border: 1px solid #f0cccc; }
.iwant-primary:disabled, .iwant-secondary:disabled { opacity: .65; cursor: wait; }
.iwant-label { display: block; font-weight: 800; margin-bottom: 8px; }
.iwant-textarea, .iwant-fields input, .iwant-fields textarea, .iwant-fields select, .iwant-filter input, .iwant-filter select {
  width: 100%; border: 1px solid rgba(165,15,15,.25); border-radius: 14px; padding: 12px 14px; background: #fff; color: var(--iwant-ink); outline: none;
}
.iwant-textarea:focus, .iwant-fields input:focus, .iwant-fields textarea:focus, .iwant-fields select:focus, .iwant-filter input:focus, .iwant-filter select:focus {
  border-color: var(--iwant-red); box-shadow: 0 0 0 4px rgba(255,222,0,.35);
}
.iwant-inline { display: flex; gap: 16px; flex-wrap: wrap; margin: 14px 0; }
.iwant-chat { width: 98%; margin-left: auto; margin-right: auto; min-height: 310px; max-height: 520px; overflow-y: auto; border: 1px solid rgba(165,15,15,.16); border-radius: 22px; padding: 18px; background: linear-gradient(180deg, #fffdf7, #fff8ec); display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.iwant-message-row { display: flex; align-items: flex-start; width: 100%; min-width: 0; }
.iwant-message-row-user { justify-content: flex-end; }
.iwant-bubble { position: relative; max-width: 88%; border-radius: 20px; padding: 14px 16px; line-height: 1.65; box-shadow: 0 10px 28px rgba(95, 21, 21, .08); overflow-wrap: anywhere; min-width: 0; }
.iwant-bubble p { margin: 0 0 10px; }
.iwant-bubble p:last-child { margin-bottom: 0; }
.iwant-bubble-user { background: var(--iwant-red); color: #fff; }
.iwant-bubble-user::after, .iwant-bubble-ai::before { display: none !important; content: none !important; }
.iwant-bubble-ai { background: #fff; color: var(--iwant-ink); border: 1px solid rgba(165,15,15,.12); }
.iwant-thinking { white-space: nowrap; }
.iwant-thinking-result { min-width: min(520px, 100%); color: #777; }
.iwant-thinking-result summary { display: flex; align-items: center; gap: 6px; width: fit-content; list-style: none; color: #777; font-size: 14px; font-weight: 500; cursor: pointer; }
.iwant-thinking-result summary::-webkit-details-marker { display: none; }
.iwant-thinking-result-chevron { font-size: 10px; transition: transform .18s ease; }
.iwant-thinking-result[open] .iwant-thinking-result-chevron { transform: rotate(90deg); }
.iwant-thinking-result-content { margin: 10px 0 0; color: #777; font-size: 14px; line-height: 1.65; white-space: normal; }
.iwant-thinking-process { min-width: min(620px, 100%); }
.iwant-thinking-process > summary { color: #777; }
.iwant-thinking-summary-title { margin-bottom: 8px; color: #777; font-size: 13px; font-weight: 700; }
.iwant-thinking-summary-items { display: grid; gap: 12px; }
.iwant-thinking-summary-item + .iwant-thinking-summary-item { padding-top: 12px; border-top: 1px solid #ece7e7; }
.iwant-thinking-summary-item > p { margin: 5px 0 0; }
.iwant-thinking-answer { margin-top: 14px; padding-top: 14px; border-top: 1px solid #ece7e7; color: var(--iwant-ink); }
.iwant-thinking-answer:empty { display: none; }
.iwant-thinking-process .iwant-agent-trace-head strong,
.iwant-thinking-process .iwant-agent-trace-label,
.iwant-thinking-process .iwant-agent-trace-state { color: #666; }
.iwant-thinking-process .iwant-agent-trace-state { background: #f3f3f3; }
.iwant-thinking-process .iwant-agent-trace pre { background: #f8f8f8; border-color: #e5e5e5; }
.iwant-purpose-standalone { width: 98%; align-self: center; min-width: 0; }
.iwant-purpose-list { display: grid; gap: 12px; }
.iwant-dialogue-answer { margin: 0; }
.iwant-agent-trace { min-width: 0; }
.iwant-agent-trace-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.iwant-agent-trace-head span { flex: 0 0 auto; color: #1c7137; font-size: 12px; font-weight: 800; }
.iwant-agent-trace-head span.is-failed, .iwant-agent-trace-error { color: var(--iwant-red); }
.iwant-agent-trace-meta { margin-top: 3px; color: #8c7777; font-size: 12px; overflow-wrap: anywhere; }
.iwant-agent-trace-state { display: inline-block; margin-top: 8px; padding: 3px 7px; border-radius: 5px; color: var(--iwant-red); background: #fff0f0; font-size: 12px; font-weight: 800; }
.iwant-agent-trace-label { margin-top: 10px; color: var(--iwant-red); font-size: 12px; font-weight: 800; }
.iwant-agent-trace pre { max-height: 280px; margin: 5px 0 0; padding: 9px; overflow: auto; border: 1px solid rgba(165,15,15,.1); border-radius: 6px; background: #fffafa; color: inherit; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.iwant-agent-trace-error { margin-top: 7px !important; font-size: 12px; }
.iwant-purpose-card { border: 1px solid rgba(165,15,15,.2); border-radius: 8px; padding: 12px 14px; background: #fffdf9; min-width: 0; }
.iwant-purpose-card h4 { margin: 0 0 8px; color: var(--iwant-red); font-size: 20px; font-weight: 900; text-align: center; }
.iwant-purpose-card .iwant-param-list { margin-bottom: 0; }
.iwant-purpose-actions { border-top: 1px solid rgba(165,15,15,.12); margin-top: 12px; padding-top: 12px; }
.iwant-purpose-actions .iwant-purpose-publish { width: 100%; border-radius: 8px; }
.iwant-purpose-actions .iwant-purpose-publish:disabled,
.iwant-purpose-actions .iwant-purpose-publish.is-disabled { color: #817878; background: #d8d2d2; border-color: #d8d2d2; box-shadow: none; cursor: not-allowed; opacity: 1; }
.iwant-param-list { display: grid; gap: 8px; margin: 10px 0; }
.iwant-param-list div { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 10px; border-top: 1px solid rgba(165,15,15,.1); padding-top: 8px; }
.iwant-param-list dt { font-weight: 900; color: var(--iwant-red); }
.iwant-param-list dd { margin: 0; }
.iwant-param-list .is-missing dd { color: #9d7777; }
.iwant-confirm-question { font-weight: 900; color: var(--iwant-red); }
.iwant-disclaimer { margin: 10px auto 0; color: #8c7777; font-size: 12px; text-align: center; }
.iwant-scroll-bottom { display: none; }
.iwant-chat-input { position: relative; width: 100%; margin-top: 12px; padding: 10px; overflow: hidden; background: #f6f2f2; border: 1px solid rgba(165,15,15,.18); border-radius: 22px; }
.iwant-chat-input.is-dragover { background: #fff7f7; border-color: var(--iwant-red); box-shadow: 0 0 0 3px rgba(165,15,15,.1); }
.iwant-media-preview { display: flex; gap: 9px; padding: 2px 4px 9px; overflow-x: auto; }
.iwant-media-preview[hidden] { display: none; }
.iwant-media-preview figure, .uaash-home-media-preview figure { position: relative; width: 74px; height: 74px; margin: 0; flex: 0 0 74px; overflow: visible; }
.iwant-media-preview img, .uaash-home-media-preview img { width: 100%; height: 100%; display: block; object-fit: cover; border: 1px solid #d7c9c9; border-radius: 10px; background: #eee; }
.iwant-media-preview button, .uaash-home-media-preview button { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; display: grid; place-items: center; color: #fff; background: #2b2525; border: 2px solid #fff; border-radius: 50%; font-size: 11px; }
.iwant-attach-media.is-uploading i, .uaash-home-icon.is-uploading i { animation: iwant-upload-spin .8s linear infinite; }
.iwant-message-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: -6px -8px 8px; overflow: hidden; border-radius: 14px; }
.iwant-message-media-1 { grid-template-columns: minmax(0, 1fr); }
.iwant-message-media a { min-height: 86px; max-height: 260px; display: block; overflow: hidden; background: #e8e1e1; }
.iwant-message-media img { width: 100%; height: 100%; min-height: 86px; display: block; object-fit: cover; }
.iwant-bubble-user .iwant-message-media + p { margin: 8px 2px 1px; }
.iwant-chat-input .iwant-textarea { min-height: 46px; max-height: 152px; padding: 4px 6px; resize: none; overflow-y: auto; background: transparent; border: 0; box-shadow: none; line-height: 1.55; }
.iwant-composer-toolbar { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.iwant-composer-spacer { flex: 1; }
.iwant-composer-icon, .iwant-send-button, .iwant-confirm-head button { width: 42px; height: 42px; padding: 0; display: inline-grid; flex: 0 0 42px; place-items: center; color: var(--iwant-ink); background: #ebe5e5; border: 0; border-radius: 50%; }
.iwant-debug-button { color: var(--iwant-red); }
.iwant-send-button { color: #fff !important; background: var(--iwant-red); }
.iwant-send-button.is-stopping i { font-size: 12px; }
.iwant-request-progress { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 3px; overflow: hidden; background: rgba(165,15,15,.08); }
.iwant-request-progress span { position: absolute; top: 0; left: -34%; display: block; width: 34%; height: 100%; background: linear-gradient(90deg, transparent, var(--iwant-red) 35%, var(--iwant-red) 65%, transparent); animation: iwant-request-progress 1s ease-in-out infinite !important; will-change: left; }
.iwant-voice-panel { min-height: 78px; display: flex; align-items: center; gap: 12px; }
.iwant-voice-panel[hidden] { display: none; }
.iwant-voice-wave { height: 48px; min-width: 0; flex: 1; display: flex; align-items: center; justify-content: center; gap: 3px; overflow: hidden; }
.iwant-voice-wave span { width: 3px; height: 8px; display: block; background: var(--iwant-red); border-radius: 999px; transform-origin: center; animation: iwant-voice-bar .72s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -35ms); }
.iwant-voice-wave span:nth-child(3n) { animation-duration: .54s; }
.iwant-voice-wave span:nth-child(4n) { animation-duration: .86s; }
.iwant-voice-actions { display: flex; gap: 8px; }
.iwant-voice-done { color: #fff; background: var(--iwant-red); }
.iwant-confirm-head { display: none; }
.iwant-language-switch { display: none; }
@keyframes iwant-request-progress { from { left: -34%; } to { left: 100%; } }
@keyframes iwant-upload-spin { to { transform: rotate(360deg); } }
@keyframes iwant-voice-bar { from { height: 7px; opacity: .45; } to { height: 38px; opacity: 1; } }
body.iwant-debug-open { overflow: hidden !important; }
.iwant-debug-overlay { position: fixed; z-index: 12000; inset: 0; display: grid; place-items: center; padding: 0; background: rgba(28,18,18,.42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.iwant-debug-overlay[hidden] { display: none; }
.iwant-debug-dialog { width: 80vw; height: 80vh; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; color: #2b2323; background: #fff; border: 1px solid #dfd4d4; border-radius: 8px; box-shadow: 0 28px 90px rgba(40,12,12,.28); }
.iwant-debug-dialog > header { min-height: 58px; padding: 10px 12px 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eee5e5; }
.iwant-debug-dialog > header strong { min-width: 0; font-size: 18px; overflow-wrap: anywhere; }
.iwant-debug-close { width: 38px; height: 38px; padding: 0; flex: 0 0 38px; display: grid; place-items: center; color: #3d3434; background: #f1eded; border: 0; border-radius: 50%; font-size: 17px; }
.iwant-debug-close:hover { color: #fff; background: #a50f0f; }
.iwant-debug-tabs { display: flex; align-items: end; gap: 0; padding: 10px 14px 0; overflow-x: auto; background: #f3efef; border-bottom: 1px solid #dcd2d2; }
.iwant-debug-tabs button { min-height: 40px; padding: 9px 16px; flex: 0 0 auto; color: #665b5b; background: transparent; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; font-size: 14px; font-weight: 700; white-space: nowrap; }
.iwant-debug-tabs button.is-active { color: #a50f0f; background: #fff; border-color: #dcd2d2; }
.iwant-debug-panel { min-width: 0; min-height: 0; padding: 16px; overflow: auto; background: #fff; }
.iwant-debug-panel pre { min-height: 100%; margin: 0; padding: 16px; overflow: auto; color: #332d2d; background: #f8f6f6; border: 1px solid #e8e1e1; border-radius: 6px; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.iwant-debug-panel pre.is-empty { display: grid; place-items: center; color: #8c8080; font-family: inherit; text-align: center; }
@media (max-width: 767.98px) {
  .iwant-debug-dialog { width: 80vw; height: 80vh; }
  .iwant-debug-dialog > header { min-height: 52px; padding-left: 14px; }
  .iwant-debug-dialog > header strong { font-size: 16px; }
  .iwant-debug-tabs { padding-left: 8px; padding-right: 8px; }
  .iwant-debug-tabs button { padding-left: 12px; padding-right: 12px; font-size: 12px; }
  .iwant-debug-panel { padding: 10px; }
  .iwant-debug-panel pre { padding: 11px; font-size: 11px; }
}
.iwant-alert { margin: 14px 0; border-radius: 14px; padding: 12px 14px; font-weight: 700; }
.iwant-alert.is-ok { background: #eef9ef; color: #136b2c; }
.iwant-alert.is-error { background: #ffe3e3; color: var(--iwant-red); }
.iwant-confirm { border-top: 1px solid rgba(165,15,15,.12); margin-top: 18px; padding-top: 18px; }
.iwant-fields { display: grid; gap: 14px; }
.iwant-fields label { display: grid; gap: 7px; font-weight: 800; }
.iwant-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.iwant-saved-status { max-width: 760px; margin: 0 auto 16px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 12px; color: #276637; background: #edf8ef; border: 1px solid #cfe8d4; border-radius: 8px; }
.iwant-saved-status[hidden], .iwant-editor-section[hidden] { display: none; }
.iwant-editor-section { max-width: 760px; margin: 18px auto 0; padding-top: 16px; border-top: 1px solid #eee3e3; }
.iwant-editor-section h4 { margin: 0; font-size: 16px; }
.iwant-editor-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.iwant-contact-fields { display: grid; gap: 10px; }
.iwant-contact-row { display: grid; grid-template-columns: minmax(130px, .4fr) minmax(0, 1fr); align-items: center; gap: 12px; font-weight: 800; }
.iwant-contact-row span { display: grid; gap: 2px; }
.iwant-contact-row small { color: #8d8080; font-size: 12px; font-weight: 500; }
.iwant-contact-row input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #dfd2d2; border-radius: 8px; }
.iwant-saved-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.iwant-saved-media-grid figure { position: relative; aspect-ratio: 1; margin: 0; }
.iwant-saved-media-grid img { width: 100%; height: 100%; object-fit: cover; border: 1px solid #e3d5d5; border-radius: 8px; }
.iwant-saved-media-grid button { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: rgba(32,24,24,.82); border: 0; border-radius: 50%; }
.iwant-editor-empty { margin: 0; color: #8b7f7f; }
.iwant-upload-more { padding: 8px 12px; border-radius: 8px; }
.iwant-filter { display: grid; grid-template-columns: 1fr 150px 1fr auto; gap: 10px; margin-bottom: 18px; }
.iwant-post { border-top: 1px solid rgba(165,15,15,.12); padding: 16px 0; }
.iwant-post:first-child { border-top: 0; }
.iwant-post h3 { margin: 8px 0; font-size: 20px; }
.iwant-post h3 a { color: var(--iwant-red); text-decoration: none; }
.iwant-pill { display: inline-flex; border-radius: 999px; background: var(--iwant-gold); color: var(--iwant-red); font-weight: 900; padding: 5px 10px; font-size: 12px; }
.iwant-meta, .iwant-empty { color: #7b5757; }
.iwant-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.iwant-description { font-size: 17px; line-height: 1.75; }
.iwant-notice { background: #fff8ce; border: 1px solid #ffe36e; border-radius: 14px; padding: 12px 14px; margin-top: 18px; }
.iwant-account-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 22px 0; }
.iwant-link-button { text-decoration: none; }
.iwant-table td, .iwant-table th { vertical-align: middle; }
@media (max-width: 860px) {
  .iwant-page .container { padding-left: 14px; padding-right: 14px; }
  .iwant-hero { padding: 26px 0; margin-bottom: 16px; }
  .iwant-hero h1 { font-size: 34px; letter-spacing: 0; }
  .iwant-hero p { font-size: 15px; line-height: 1.55; }
  .iwant-kicker { letter-spacing: 0; }
  .iwant-grid, .iwant-filter { grid-template-columns: 1fr; }
  .iwant-chat { height: clamp(320px, 58dvh, 520px); min-height: 320px; max-height: none; padding: 14px; border-radius: 12px; scroll-padding-bottom: 16px; }
  .iwant-bubble { max-width: 100%; padding: 12px 14px; }
  .iwant-purpose-standalone { width: 98%; }
  .iwant-param-list div { grid-template-columns: minmax(94px, 34%) minmax(0, 1fr); gap: 8px; }
  .iwant-chat-input .iwant-textarea { font-size: 16px; }
  .iwant-card { padding: 18px; border-radius: 8px; margin-bottom: 16px; }
  .iwant-card h2 { font-size: 25px; letter-spacing: 0; }
  .iwant-label { font-size: 14px; }
  .iwant-fields input, .iwant-fields textarea, .iwant-fields select { min-height: 46px; border-radius: 8px; font-size: 16px; }
  .iwant-fields textarea { min-height: 96px; }
  .iwant-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iwant-actions button { width: 100%; min-height: 46px; border-radius: 8px; }
  .iwant-account-head { display: block; }
  .iwant-account-head .iwant-link-button { margin-top: 10px; }
}

/* I Want mobile chat shell */
@media (max-width: 767.98px) {
  body.iwant-chat-page { height: 100dvh; overflow: hidden; background: #fff; }
  body.iwant-chat-page #container { height: 100dvh; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
  body.iwant-chat-page .uaash-header { --uaash-header-height: 58px; height: calc(58px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); color: var(--iwant-red); background: rgba(255,255,255,.96); border: 0; box-shadow: none; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  body.iwant-chat-page .uaash-header__inner { width: 100%; padding: 0 12px; grid-template-columns: 124px minmax(0, 1fr) 124px; gap: 6px; }
  body.iwant-chat-page .uaash-menu-toggle { width: 44px; height: 44px; justify-self: start; color: var(--iwant-red) !important; font-size: 20px; }
  body.iwant-chat-page .uaash-brand { color: #1f1f1f !important; font-family: inherit; font-size: 17px; font-weight: 650; letter-spacing: 0; }
  body.iwant-chat-page .uaash-actions { width: 124px; height: 44px; justify-self: end; }
  body.iwant-chat-page .uaash-actions > *:not(.iwant-language-switch) { display: none !important; }
  body.iwant-chat-page .iwant-language-switch { width: 118px; height: 34px; padding: 3px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; background: #fff; border: 1px solid #d9caca; border-radius: 18px; }
  body.iwant-chat-page .iwant-language-option { min-width: 0; display: grid; place-items: center; color: #a50f0f !important; background: #fff; border-radius: 14px; font-size: 12px; font-weight: 800; line-height: 1; text-decoration: none; transition: color .16s ease, background .16s ease, box-shadow .16s ease; }
  body.iwant-chat-page .iwant-language-option.is-active { color: #fff !important; background: #a50f0f !important; box-shadow: 0 2px 7px rgba(165,15,15,.28); }
  body.iwant-chat-page .uaash-nav { width: min(360px, 88vw); padding: calc(72px + env(safe-area-inset-top)) 18px 28px; gap: 2px; color: #211b1b; background: #fff; box-shadow: 18px 0 60px rgba(45,15,15,.18); }
  body.iwant-chat-page .uaash-nav::before { content: '御造天合'; position: absolute; top: calc(24px + env(safe-area-inset-top)); left: 23px; color: var(--iwant-red); font-size: 18px; font-weight: 800; }
  body.iwant-chat-page .uaash-nav a, body.iwant-chat-page .uaash-nav-group__toggle { min-height: 48px; padding: 12px 10px; color: #2d2929 !important; border: 0; border-radius: 10px; font-size: 15px; font-weight: 600; }
  body.iwant-chat-page .uaash-nav a:hover, body.iwant-chat-page .uaash-nav a.is-active, body.iwant-chat-page .uaash-nav-group__toggle:hover { color: var(--iwant-red) !important; background: #fff0f0; }
  body.iwant-chat-page .uaash-nav-submenu { padding-left: 12px; background: transparent; }
  body.iwant-chat-page .uaash-nav .uaash-nav-submenu a { color: #514848 !important; border: 0; }
  body.iwant-chat-page .uaash-backdrop { background: rgba(35,20,20,.28); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  body.iwant-chat-page #uaash-main, body.iwant-chat-page #uaash-page { min-height: 0; height: 100%; overflow: hidden; }
  body.iwant-chat-page .uaash-footer { display: none; }
  body.iwant-chat-page .iwant-page { height: 100%; min-height: 0; background: #fff; color: #252020; }
  body.iwant-chat-page .iwant-hero, body.iwant-chat-page .iwant-card > h2, body.iwant-chat-page .iwant-label { display: none; }
  body.iwant-chat-page .iwant-page > .container { height: 100%; padding: 0 !important; }
  body.iwant-chat-page .iwant-grid, body.iwant-chat-page .iwant-card, body.iwant-chat-page #iwant-form { height: 100%; min-height: 0; }
  body.iwant-chat-page .iwant-card { margin: 0; padding: 0; display: block; background: #fff; border: 0; border-radius: 0; box-shadow: none; }
  body.iwant-chat-page #iwant-form { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; }
  body.iwant-chat-page .iwant-chat { width: 100%; height: auto; min-height: 0; max-height: none; margin: 0; padding: 24px max(16px, calc((100% - 760px) / 2)) var(--iwant-chat-bottom-padding, 24px); gap: 26px; overflow-y: auto; background: #fff; border: 0; border-radius: 0; scroll-behavior: smooth; scroll-padding-bottom: var(--iwant-chat-bottom-padding, 24px); }
  body.iwant-chat-page .iwant-bubble { max-width: min(82%, 620px); padding: 12px 15px; border-radius: 22px; box-shadow: none; font-size: 16px; line-height: 1.7; }
  body.iwant-chat-page .iwant-bubble-user { color: #fff; background: var(--iwant-red); border-bottom-right-radius: 22px; }
  body.iwant-chat-page .iwant-bubble-user::after, body.iwant-chat-page .iwant-bubble-ai::before { display: none; }
  body.iwant-chat-page .iwant-bubble-ai { max-width: 100%; padding: 0; color: #262020; background: transparent; border: 0; border-radius: 0; }
  body.iwant-chat-page .iwant-thinking { color: #8c7777; }
  body.iwant-chat-page .iwant-thinking-result { max-width: min(100%, 680px); }
  body.iwant-chat-page .iwant-thinking-result-content { color: #706666; }
  body.iwant-chat-page .iwant-purpose-standalone { width: 98%; max-width: 760px; margin: 0 auto; }
  body.iwant-chat-page .iwant-purpose-list { gap: 14px; }
  body.iwant-chat-page .iwant-purpose-card { padding: 18px; background: #fff; border: 1px solid #ead9d9; border-radius: 14px; box-shadow: 0 5px 22px rgba(92,25,25,.06); }
  body.iwant-chat-page .iwant-purpose-card h4 { margin-bottom: 14px; color: #242020; font-family: inherit; font-size: 18px; line-height: 1.45; letter-spacing: 0; }
  body.iwant-chat-page .iwant-param-list { gap: 0; }
  body.iwant-chat-page .iwant-param-list div { grid-template-columns: minmax(92px, 36%) minmax(0, 1fr); padding: 10px 0; gap: 12px; border-top: 1px solid #f0e5e5; font-size: 14px; line-height: 1.5; }
  body.iwant-chat-page .iwant-param-list dt { color: var(--iwant-red); }
  body.iwant-chat-page .iwant-purpose-actions { margin-top: 12px; padding-top: 14px; }
  body.iwant-chat-page .iwant-purpose-actions .iwant-purpose-publish { min-height: 46px; border-radius: 12px; }
  body.iwant-chat-page .iwant-scroll-bottom { position: absolute; z-index: 24; left: 50%; bottom: var(--iwant-scroll-offset, 118px); width: 42px; height: 42px; padding: 0; display: grid; place-items: center; color: var(--iwant-red); background: rgba(255,255,255,.97); border: 1px solid #e3d6d6; border-radius: 50%; box-shadow: 0 5px 18px rgba(45,20,20,.2); transform: translateX(-50%); transition: color .16s ease, background .16s ease, opacity .16s ease; }
  body.iwant-chat-page .iwant-scroll-bottom:hover { color: #fff; background: var(--iwant-red); }
  body.iwant-chat-page .iwant-scroll-bottom[hidden] { display: none; }
  body.iwant-chat-page .iwant-disclaimer { grid-row: 2; margin: 0; padding: 4px 18px 8px; color: #8c8181; background: #fff; font-size: 11px; line-height: 1.3; }
  body.iwant-chat-page .iwant-chat-input { grid-row: 3; width: min(96%, 760px); margin: 0 auto max(8px, env(safe-area-inset-bottom)); padding: 10px 10px 9px; background: #f2eeee; border: 1px solid #e4dada; border-radius: 27px; box-shadow: 0 8px 30px rgba(64,25,25,.08); }
  body.iwant-chat-page .iwant-chat-input:focus-within { border-color: rgba(165,15,15,.36); box-shadow: 0 8px 30px rgba(64,25,25,.08), 0 0 0 2px rgba(165,15,15,.08); }
  body.iwant-chat-page .iwant-chat-input .iwant-textarea { min-height: 30px; max-height: 152px; padding: 3px 8px; color: #241f1f; font-size: 16px; line-height: 1.5; }
  body.iwant-chat-page .iwant-chat-input .iwant-textarea::placeholder { color: #968a8a; }
  body.iwant-chat-page .iwant-composer-toolbar { margin-top: 5px; }
  body.iwant-chat-page .iwant-composer-icon, body.iwant-chat-page .iwant-send-button { width: 40px; height: 40px; min-height: 40px; flex-basis: 40px; border-radius: 50%; }
  body.iwant-chat-page .iwant-send-button { background: var(--iwant-red); }
  body.iwant-chat-page .iwant-chat-input:not(.has-text) .iwant-send-button:not(.is-stopping) { color: #9b8e8e !important; background: #dfd7d7; }
  body.iwant-chat-page .iwant-microphone { color: var(--iwant-red); }
  body.iwant-chat-page .iwant-voice-panel { min-height: 68px; }
  body.iwant-chat-page .iwant-voice-wave { height: 46px; }
  body.iwant-chat-page .iwant-alert { position: fixed; z-index: 1090; left: 50%; bottom: calc(118px + env(safe-area-inset-bottom)); width: min(92%, 680px); margin: 0; transform: translateX(-50%); box-shadow: 0 10px 34px rgba(55,15,15,.14); }
  body.iwant-chat-page .iwant-alert.is-ok { display: none; }
  body.iwant-chat-page .iwant-confirm { position: fixed; z-index: 1095; inset: calc(58px + env(safe-area-inset-top)) 0 0; margin: 0; padding: 0 16px max(18px, env(safe-area-inset-bottom)); overflow-y: auto; color: #2b2222; background: #fff; border: 0; }
  body.iwant-chat-page .iwant-confirm[hidden] { display: none; }
  body.iwant-chat-page .iwant-confirm-head { position: sticky; z-index: 2; top: 0; min-height: 60px; margin: 0 -16px 18px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.96); border-bottom: 1px solid #eee4e4; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  body.iwant-chat-page .iwant-confirm-head strong { font-size: 17px; }
  body.iwant-chat-page .iwant-confirm-head button { width: 38px; height: 38px; flex-basis: 38px; }
  body.iwant-chat-page .iwant-fields { max-width: 760px; margin: 0 auto; }
  body.iwant-chat-page .iwant-actions { max-width: 760px; margin: 18px auto 0; padding-bottom: 0; }
  body.iwant-chat-page .iwant-editor-section, body.iwant-chat-page .iwant-saved-status { max-width: 760px; }
}

@media (max-width: 520px) {
  .iwant-page > .container { padding-left: 0; padding-right: 0; }
  .iwant-hero { padding: 18px 0; margin-bottom: 10px; }
  .iwant-hero .container { padding-left: 16px; padding-right: 16px; }
  .iwant-hero h1 { margin-bottom: 6px; font-size: 30px; }
  .iwant-hero p { font-size: 14px; }
  .iwant-kicker { margin-bottom: 6px !important; }
  .iwant-card { margin: 0; padding: 12px; border-left: 0; border-right: 0; border-radius: 0; box-shadow: none; }
  .iwant-card h2 { margin-bottom: 12px; font-size: 23px; }
  .iwant-chat { height: clamp(330px, 56dvh, 500px); min-height: 330px; padding: 10px; gap: 12px; border-radius: 8px; }
  .iwant-bubble { max-width: 100%; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.55; }
  .iwant-purpose-standalone { width: 98%; }
  .iwant-purpose-card { padding: 10px; }
  .iwant-purpose-card h4 { font-size: 18px; line-height: 1.4; }
  .iwant-param-list { gap: 6px; }
  .iwant-param-list div { grid-template-columns: minmax(78px, 38%) minmax(0, 1fr); gap: 7px; padding-top: 7px; font-size: 13px; line-height: 1.45; }
  .iwant-purpose-actions .iwant-purpose-publish { min-height: 44px; }
  .iwant-chat-input { gap: 8px; margin-top: 10px; }
  .iwant-chat-input .iwant-textarea { min-height: 78px; max-height: 130px; padding: 11px 12px; border-radius: 8px; }
  .iwant-alert { margin: 10px 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
  .iwant-confirm { margin-top: 12px; padding-top: 12px; }
  .iwant-fields { gap: 11px; }
  .iwant-actions { gap: 8px; margin-top: 14px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .iwant-contact-row { grid-template-columns: 1fr; gap: 5px; }
  .iwant-editor-section-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
  .iwant-card { padding-left: 9px; padding-right: 9px; }
  .iwant-chat { padding: 8px; }
  .iwant-bubble { font-size: 13px; }
  .iwant-param-list div { grid-template-columns: minmax(72px, 40%) minmax(0, 1fr); gap: 6px; }
}
