.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; gap: 10px; width: 100%; min-width: 0; }
.iwant-message-row-user { justify-content: flex-end; }
.iwant-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; font-size: 12px; font-weight: 900; line-height: 1; box-shadow: 0 6px 16px rgba(95,21,21,.14); }
.iwant-avatar-ai { background: var(--iwant-red); color: #fff; }
.iwant-avatar-user { background: var(--iwant-gold); color: var(--iwant-red); }
.iwant-bubble { position: relative; max-width: calc(88% - 44px); 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; border-bottom-right-radius: 6px; }
.iwant-bubble-user::after { content: ''; position: absolute; top: 13px; right: -8px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 9px solid var(--iwant-red); }
.iwant-bubble-ai { background: #fff; color: var(--iwant-ink); border: 1px solid rgba(165,15,15,.12); border-bottom-left-radius: 6px; }
.iwant-bubble-ai::before { content: ''; position: absolute; top: 13px; left: -8px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-right: 9px solid #fff; }
.iwant-thinking { white-space: nowrap; }
.iwant-purpose-standalone { width: 98%; align-self: center; min-width: 0; }
.iwant-purpose-list { display: grid; gap: 12px; }
.iwant-dialogue-answer { margin: 0; }
.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-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-chat-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 12px; }
.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-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-message-row { gap: 8px; }
  .iwant-avatar { flex-basis: 30px; width: 30px; height: 30px; font-size: 11px; }
  .iwant-bubble { max-width: calc(100% - 38px); 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 { grid-template-columns: 1fr; }
  .iwant-chat-input .iwant-textarea { min-height: 86px; max-height: 150px; resize: vertical; font-size: 16px; line-height: 1.55; }
  .iwant-chat-input .iwant-primary { width: 100%; min-height: 48px; border-radius: 8px; }
  .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; }
}

@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-message-row { gap: 7px; }
  .iwant-avatar { flex-basis: 28px; width: 28px; height: 28px; font-size: 10px; }
  .iwant-bubble { max-width: calc(100% - 35px); padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.55; }
  .iwant-bubble-user { border-bottom-right-radius: 4px; }
  .iwant-bubble-ai { border-bottom-left-radius: 4px; }
  .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)); }
}

@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; }
}
