body.ai-page {
  min-height: 100vh;
  color: #0f2f3a;
  background: linear-gradient(135deg, #06294c 0%, #087b95 46%, #19d5a5 100%);
}
.ai-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}
.ai-hero {
  position: relative;
  padding: 104px 0 92px;
  overflow: hidden;
}
.ai-hero::before,
.ai-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.ai-hero::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: 42px;
  background: rgba(255,255,255,.13);
}
.ai-hero::after {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -70px;
  background: rgba(255,255,255,.08);
}
.ai-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 72px;
  align-items: center;
}
.ai-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #dffdf7;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 13px;
}
.ai-title {
  margin: 22px 0 16px;
  color: #fff;
  font-size: 46px;
  line-height: 1.16;
  letter-spacing: -1px;
}
.ai-subtitle {
  max-width: 610px;
  color: rgba(255,255,255,.86);
  font-size: 17px;
  line-height: 1.9;
}
.ai-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}
.ai-primary,
.ai-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 52px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.ai-primary {
  color: #083b3c;
  background: linear-gradient(135deg, #d9ff68, #72ffcc);
  box-shadow: 0 16px 36px rgba(4, 49, 60, .26);
}
.ai-secondary {
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}
.ai-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
}
.ai-points span::before {
  content: "•";
  margin-right: 6px;
  color: #b8ff6d;
}
.ai-demo-card {
  position: relative;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 28px 80px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}
.ai-window-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}
.ai-window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
}
.ai-demo-inner {
  border-radius: 18px;
  padding: 20px;
  background: rgba(255,255,255,.14);
}
.ai-demo-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.13);
}
.ai-demo-icon,
.ai-chat-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d9ff68, #6cffc7);
  color: #0d8b85;
  font-weight: 900;
}
.ai-demo-line {
  height: 8px;
  border-radius: 999px;
  margin-top: 18px;
  background: rgba(255,255,255,.28);
}
.ai-demo-line.short {
  width: 64%;
}
.ai-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
  border-radius: 16px;
  color: #fff;
  background: rgba(0,96,112,.38);
}
.ai-score strong {
  color: #e7ff6b;
  font-size: 30px;
}
.ai-demo-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.ai-demo-boxes i {
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
}
.ai-benefits {
  background: #087f91;
}
.ai-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 26px 0;
  color: #fff;
  text-align: center;
}
.ai-benefit-grid b {
  display: block;
  margin-bottom: 7px;
}
.ai-benefit-grid span {
  color: rgba(255,255,255,.74);
  font-size: 13px;
}
.ai-panel-page {
  min-height: 100vh;
  padding: 88px 0 56px;
  background: #eef2f7;
}
.ai-modal-card {
  width: min(980px, calc(100% - 44px));
  margin: 0 auto;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(15,39,58,.22);
  overflow: hidden;
}
.ai-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #edf1f5;
  color: #2d3945;
}
.ai-close {
  color: #9aa8b5;
  font-size: 24px;
}
.ai-template-grid {
  max-height: calc(100vh - 168px);
  overflow: auto;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  background: #747f91;
}
.ai-template-card {
  position: relative;
  display: block;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  transition: transform .18s, box-shadow .18s;
}
.ai-template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0,0,0,.26);
}
.ai-template-card img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: top center;
}
.ai-template-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.55);
  font-size: 12px;
}
.ai-chat-page {
  height: 100vh;
  min-height: 0;
  padding: 56px 0 22px;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(7, 36, 51, .82);
}
.ai-chat-card {
  width: min(980px, calc(100% - 44px));
  height: calc(100vh - 78px);
  max-height: calc(100vh - 78px);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  background: #fff;
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
  overflow: hidden;
}
.ai-chat-side {
  padding: 58px 18px 18px;
  border-right: 1px solid #edf1f5;
}
.ai-side-btn {
  width: 100%;
  height: 42px;
  margin-bottom: 12px;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #fff;
  color: #576574;
  cursor: pointer;
}
.ai-side-btn.active {
  color: #087fac;
  border-color: #149bd1;
  background: #eefaff;
}
.ai-chat-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}
.ai-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eef2f7;
}
.ai-chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.ai-chat-body {
  min-height: 0;
  padding: 22px;
  overflow: auto;
  background: linear-gradient(180deg, #f5f9fd, #fff);
}
.ai-msg {
  max-width: 70%;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
}
.ai-msg.bot {
  color: #344454;
  background: #fff;
  box-shadow: 0 12px 28px rgba(41,71,93,.08);
}
.ai-msg.user {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(135deg, #1f9be8, #176fd7);
  box-shadow: 0 14px 30px rgba(23,111,215,.22);
}
.ai-input-row {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid #eef2f7;
}
.ai-input-row textarea {
  height: 58px;
  resize: none;
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  padding: 12px;
  outline: none;
  font-family: inherit;
}
.ai-input-row button {
  border: none;
  border-radius: 10px;
  color: #fff;
  background: #18ceb3;
  font-weight: 700;
  cursor: pointer;
}
@media (max-height: 720px) {
  .ai-chat-page {
    padding-top: 44px;
    padding-bottom: 12px;
  }
  .ai-chat-card {
    height: calc(100vh - 56px);
    max-height: calc(100vh - 56px);
  }
  .ai-chat-side {
    padding-top: 36px;
  }
  .ai-chat-head,
  .ai-input-row {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .ai-chat-body {
    padding: 14px 18px;
  }
  .ai-input-row textarea {
    height: 44px;
  }
}
@media (max-width: 860px) {
  .ai-hero-grid,
  .ai-chat-card {
    grid-template-columns: 1fr;
  }
  .ai-chat-side {
    display: none;
  }
  .ai-template-grid,
  .ai-benefit-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ai-title {
    font-size: 34px;
  }
}
.ai-chat-backdrop {
  background: rgba(3, 19, 34, 0.38);
  backdrop-filter: blur(1px);
}
.ai-chat-modal-card {
  position: relative;
  width: min(1220px, calc(100vw - 36px));
  height: min(820px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  margin: 0;
  border-radius: 4px;
}
.ai-chat-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 3;
  border: 0;
  background: none;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 860px) {
  .ai-chat-modal-card {
    width: calc(100vw - 28px);
    height: calc(100vh - 28px);
    max-height: calc(100vh - 28px);
  }
}
body.ai-modal-open {
  overflow: hidden;
}
.ai-template-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 19, 34, 0.46);
  backdrop-filter: blur(2px);
}
.ai-template-backdrop.open {
  display: flex;
}
.ai-template-modal-card,
.ai-panel-page .ai-modal-card {
  width: min(1210px, calc(100vw - 72px));
  max-height: calc(100vh - 56px);
  margin: 0;
}
.ai-template-modal-card .ai-template-grid,
.ai-panel-page .ai-template-grid {
  max-height: calc(100vh - 122px);
  padding: 18px 22px 24px;
  gap: 22px;
  background: #707b8d;
}
.ai-template-modal-card .ai-template-card,
.ai-panel-page .ai-template-card {
  min-height: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.ai-template-modal-card .ai-template-card img,
.ai-panel-page .ai-template-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297;
  object-fit: contain;
  object-position: top center;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
}
.ai-template-modal-card .ai-template-card:hover,
.ai-panel-page .ai-template-card:hover {
  transform: translateY(-3px);
}
.ai-template-modal-card .ai-close {
  border: 0;
  background: none;
  line-height: 1;
  cursor: pointer;
}
@media (min-width: 1180px) {
  .ai-template-modal-card .ai-template-grid,
  .ai-panel-page .ai-template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ai-upload-panel {
  min-height: 0;
  height: 100%;
  padding: 28px 22px;
  background: linear-gradient(180deg, #f5f9fd, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.ai-upload-panel[hidden] {
  display: none !important;
}
.ai-upload-box {
  width: min(560px, 100%);
  height: 200px;
  margin-top: 0;
  border: 1px dashed #d9e4ef;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff, #f8fbff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #617184;
  cursor: pointer;
}
.ai-upload-box b {
  color: #1782d4;
  font-weight: 500;
}
.ai-upload-icon {
  width: 46px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #1b82d2;
  font-size: 38px;
  line-height: 1;
}
.ai-upload-box input {
  display: none;
}
.ai-upload-tip {
  width: min(560px, 100%);
  margin: 14px 0 0;
  text-align: center;
  color: #9aa8b6;
  font-size: 12px;
}
.ai-upload-result {
  width: min(560px, 100%);
  margin-top: 14px;
  text-align: center;
  color: #476173;
  font-size: 13px;
}
.ai-generate-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 18px;
}
.ai-generate-btn {
  min-width: 96px;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #18ceb3;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(24, 206, 179, .22);
}
.ai-generate-btn:hover {
  background: #12bfa6;
}
.ai-chat-backdrop {
  padding: 6px 12px;
}
.ai-chat-modal-card {
  width: min(1320px, calc(100vw - 24px));
  height: min(900px, calc(100vh - 12px));
  max-height: calc(100vh - 12px);
  grid-template-columns: 160px minmax(0, 1fr);
}
.ai-chat-modal-card .ai-chat-side {
  padding-top: 54px;
}
.ai-chat-modal-card .ai-chat-body {
  padding: 26px 28px;
}
.ai-chat-modal-card .ai-chat-head {
  min-height: 52px;
  justify-content: flex-start;
  padding: 16px 52px 14px 18px;
}
.ai-chat-modal-card .ai-chat-title {
  gap: 0;
  font-size: 14px;
}
.ai-chat-modal-card .ai-input-row {
  grid-template-columns: 1fr 82px;
  padding: 16px 20px;
}
.ai-chat-modal-card .ai-input-row textarea {
  height: 60px;
}


.ai-wizard-main {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}
.ai-wizard {
  min-height: 0;
  overflow: auto;
  padding: 28px;
  background: linear-gradient(180deg, #f5f9fd, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-wizard[hidden] {
  display: none !important;
}
.ai-wizard-card {
  width: min(680px, 100%);
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(41, 71, 93, .12);
}
.ai-wizard-progress {
  position: relative;
  height: 26px;
  margin-bottom: 12px;
  color: #7b8a9a;
  font-size: 13px;
}
.ai-wizard-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  border-radius: 999px;
  background: #eef3f8;
}
.ai-wizard-progress i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f9be8, #18ceb3);
}
.ai-wizard-card h2 {
  margin: 0 0 8px;
  color: #1f2d3d;
  font-size: 24px;
}
.ai-wizard-desc {
  margin: 0 0 22px;
  color: #657789;
  line-height: 1.7;
}
.ai-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ai-field {
  display: grid;
  gap: 8px;
  color: #344454;
  font-size: 14px;
  font-weight: 700;
}
.ai-field-full {
  grid-column: 1 / -1;
}
.ai-field input,
.ai-field select,
.ai-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dde7f0;
  border-radius: 10px;
  padding: 12px;
  outline: none;
  color: #263849;
  background: #fbfdff;
  font-family: inherit;
  font-size: 14px;
}
.ai-field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.65;
}
.ai-field input:focus,
.ai-field select:focus,
.ai-field textarea:focus {
  border-color: #19a7df;
  box-shadow: 0 0 0 3px rgba(25, 167, 223, .12);
}
.ai-choice-group,
.ai-language-choice,
.ai-empty-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ai-choice input {
  display: none;
}
.ai-choice span,
.ai-language-choice button,
.ai-empty-choice button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #dbe6ef;
  border-radius: 999px;
  color: #405365;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.ai-choice input:checked + span,
.ai-language-choice button:hover,
.ai-empty-choice button:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #1f9be8, #176fd7);
}
.ai-wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.ai-primary-btn,
.ai-secondary-btn {
  min-width: 104px;
  height: 42px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 800;
}
.ai-primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #18ceb3, #13b29b);
}
.ai-primary-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}
.ai-secondary-btn {
  color: #516274;
  background: #eef3f8;
}
.ai-form-warning {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #9a4f00;
  background: #fff6e7;
}
.ai-review-list {
  display: grid;
  gap: 10px;
}
.ai-review-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f7fafc;
}
.ai-review-list b {
  color: #52677a;
}
.ai-review-list span {
  color: #25384a;
  word-break: break-word;
}
@media (max-width: 720px) {
  .ai-wizard {
    padding: 18px;
    align-items: flex-start;
  }
  .ai-form-grid,
  .ai-review-list div {
    grid-template-columns: 1fr;
  }
  .ai-wizard-card {
    padding: 22px;
  }
}


.month-picker-popup {
  width: 326px;
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  color: #606266;
  padding: 0 18px 16px;
  box-sizing: border-box;
}
.mp-header {
  height: 54px;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  border-bottom: 1px solid #ebeef5;
  margin: 0 -8px 10px;
}
.mp-year {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: #606266;
}
.mp-prev,
.mp-next {
  border: 0;
  background: transparent;
  color: #909399;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  width: 42px;
  height: 42px;
  padding: 0;
}
.mp-prev { justify-self: end; }
.mp-next { justify-self: start; }
.mp-prev:hover,
.mp-next:hover,
.mp-month:hover,
.mp-month.active { color: #409eff; }
.mp-months {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 28px;
  column-gap: 0;
  padding-top: 14px;
  margin-bottom: 0;
}
.mp-month {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #606266;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  height: 20px;
}
.mp-month.active {
  background: transparent;
  border-color: transparent;
}
.mp-clear { display: none; }
.ai-wizard-month-popup { z-index: 9999; }


.ai-tag-picker {
  display: grid;
  gap: 18px;
}
.ai-tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ai-tag-option {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #dbe6ef;
  border-radius: 999px;
  color: #405365;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.ai-tag-option:hover,
.ai-tag-option.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #1f9be8, #176fd7);
}
.ai-none-option {
  border-color: #f0d4d4;
  color: #b45b5b;
  background: #fff8f8;
}
.ai-custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
}
.ai-custom-row input {
  min-height: 42px;
  border: 1px solid #dde7f0;
  border-radius: 10px;
  padding: 0 12px;
  outline: none;
  color: #263849;
  background: #fbfdff;
  font-family: inherit;
  font-size: 14px;
}
.ai-custom-row input:focus {
  border-color: #19a7df;
  box-shadow: 0 0 0 3px rgba(25, 167, 223, .12);
}
.ai-selected-tags {
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7fafc;
}
.ai-selected-tags span {
  display: inline-flex;
  margin: 4px 8px 4px 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: #176fd7;
  background: #eaf5ff;
  font-weight: 700;
  font-size: 13px;
}
.ai-selected-tags em {
  color: #8b9aaa;
  font-style: normal;
}
@media (max-width: 720px) {
  .ai-custom-row {
    grid-template-columns: 1fr;
  }
}

.ai-inline-warning {
  margin-top: 6px;
  color: #e54848;
  font-size: 12px;
  line-height: 1.4;
}


/* ====== Mobile AI pages (max-width: 768px) ====== */
@media (max-width: 768px) {
  body.ai-page { overflow-x: hidden; }
  .ai-shell { width: calc(100% - 32px); }
  .ai-hero { padding: 76px 0 42px; }
  .ai-hero::before { width: 260px; height: 260px; right: -120px; top: 48px; }
  .ai-hero::after { width: 240px; height: 240px; left: -110px; bottom: -80px; }
  .ai-hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .ai-kicker { font-size: 11px; padding: 6px 10px; }
  .ai-title { font-size: 28px; line-height: 1.28; margin: 16px 0 12px; }
  .ai-subtitle { font-size: 14px; line-height: 1.75; margin: 0 auto; }
  .ai-actions { flex-direction: column; gap: 12px; margin-top: 24px; }
  .ai-primary,
  .ai-secondary { width: 100%; height: 48px; }
  .ai-points { justify-content: center; gap: 10px 14px; font-size: 12px; }
  .ai-demo-card { padding: 14px; border-radius: 18px; }
  .ai-demo-inner { padding: 14px; }
  .ai-score strong { font-size: 24px; }
  .ai-demo-boxes i { height: 40px; }
  .ai-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px 0; }
  .ai-benefit-grid b { font-size: 13px; }
  .ai-benefit-grid span { font-size: 11px; }

  .ai-template-backdrop { padding: 0; align-items: stretch; }
  .ai-template-modal-card,
  .ai-panel-page .ai-modal-card {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .ai-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 16px;
    background: #fff;
  }
  .ai-template-grid,
  .ai-template-modal-card .ai-template-grid,
  .ai-panel-page .ai-template-grid {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 54px);
    padding: 14px;
    gap: 18px;
    background: #707b8d;
  }
  .ai-template-card img,
  .ai-template-modal-card .ai-template-card img,
  .ai-panel-page .ai-template-card img {
    width: 100%;
    max-height: none;
    aspect-ratio: 210 / 297;
    object-fit: contain;
  }
  .ai-template-label { left: 10px; bottom: 10px; font-size: 11px; }

  .ai-chat-backdrop { padding: 0; align-items: stretch; }
  .ai-chat-modal-card,
  .ai-chat-card {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0;
    grid-template-columns: 1fr;
  }
  .ai-chat-side { display: none !important; }
  .ai-chat-main { height: 100%; grid-template-rows: auto minmax(0, 1fr) auto; }
  .ai-chat-head { padding: 12px 48px 12px 14px; }
  .ai-chat-title { font-size: 14px; }
  .ai-chat-logo { width: 34px; height: 34px; border-radius: 10px; }
  .ai-chat-body {
    padding: 14px;
    -webkit-overflow-scrolling: touch;
  }
  .ai-msg {
    max-width: 88%;
    font-size: 13px;
    padding: 11px 13px;
    line-height: 1.65;
  }
  .ai-input-row {
    position: sticky;
    bottom: 0;
    grid-template-columns: 1fr 64px;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
  }
  .ai-input-row textarea {
    height: 46px;
    max-height: 120px;
    font-size: 16px;
  }
  .ai-input-row button { font-size: 13px; }
  .ai-chat-modal-close { top: 12px; right: 12px; font-size: 26px; }

  .ai-panel-page { padding: 64px 0 28px; }
  .ai-upload-panel {
    padding: 20px 14px;
    justify-content: center;
  }
  .ai-upload-box { height: 160px; width: min(100%, 560px); }
}
