/* Readability and small-screen fit, shared across all views. */
.card-summary { color: #798398; font-size: 14px; }
.card-meta, .tag { font-size: 12px; }
.side-link { white-space: nowrap; }
.side-link em { font-size: 9px; }
.side-link .ico { width: 18px; height: 18px; }
.side-link { gap: 10px; padding-left: 11px; padding-right: 9px; }
.side-note strong { line-height: 1.6; }
.modal-body p, .page-heading p, .panel > .muted { font-size: 16px; }
.detail-content { font-size: 14px; }
.card-bottom { min-height: 49px; }
.resource-card .price { font-size: 13px; }
.card-bottom-right > span { font-size: 11px; }
.hero-art img { object-position: 60% center; }
.generation-ready-note strong { color: #375cf3; margin-right: 6px; }
.generator-shell { display: grid; grid-template-columns: minmax(360px, .82fr) minmax(420px, 1.18fr); min-height: 720px; border: 1px solid #e4e9f3; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 16px 45px rgba(34,51,88,.05); }
.generator-controls { padding: 28px; border-right: 1px solid #e9edf4; overflow: auto; }
.generator-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.generator-kicker { color: #315cf5; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.generator-top h2 { font-size: 20px; margin: 7px 0 0; }
.generator-status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border: 1px solid #e1e6f0; background: #f7f8fb; color: #8992a3; padding: 7px 9px; border-radius: 20px; font-size: 11px; }
.generator-status i { width: 7px; height: 7px; border-radius: 50%; background: #aab2c1; }
.generator-status.online { color: #438a75; background: #eef9f5; border-color: #d8eee6; }
.generator-status.online i { background: #55ae91; }
.generator-prompt { display: block; position: relative; }
.generator-prompt textarea { width: 100%; min-height: 155px; resize: vertical; border: 1px solid #dfe5f0; border-radius: 12px; padding: 15px 16px 32px; color: #33415b; line-height: 1.8; font-size: 14px; }
.generator-prompt textarea:focus { border-color: #7795ff; outline: 3px solid #e8edff; }
.generator-prompt > span { position: absolute; right: 13px; bottom: 10px; color: #a1a9b8; font-size: 10px; }
.generator-prompt b { font-weight: 500; }
.generator-section { margin-top: 24px; }
.generator-label { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 11px; }
.generator-label strong, .generator-options legend, .generator-count > span { font-size: 13px; font-weight: 600; color: #5d687d; }
.generator-label span { color: #929bad; font-size: 11px; }
.reference-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.reference-add, .reference-item { height: 94px; border: 1px dashed #cfd8ea; background: #fafbfe; border-radius: 10px; margin: 0; position: relative; overflow: hidden; }
.reference-add { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8390a8; cursor: pointer; text-align: center; }
.reference-add:hover { border-color: #7896ff; background: #f3f6ff; color: #315cf5; }
.reference-add .ico { width: 18px; height: 18px; margin-bottom: 5px; }
.reference-add strong { font-size: 11px; }
.reference-add small { font-size: 9px; line-height: 1.4; margin-top: 3px; }
.reference-add input { position: absolute; opacity: 0; pointer-events: none; }
.reference-item img { width: 100%; height: 100%; object-fit: cover; }
.reference-item button { position: absolute; right: 5px; top: 5px; width: 24px; height: 24px; display: grid; place-items: center; color: white; background: rgba(20,31,52,.74); border-radius: 6px; }
.reference-item button .ico { width: 13px; height: 13px; }
.reference-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 13px 6px 5px; background: linear-gradient(transparent,rgba(12,22,42,.72)); color: white; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.generator-options { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-top: 25px; }
.generator-options fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.generator-options legend { margin-bottom: 10px; }
.choice-grid { display: grid; gap: 7px; }
.ratio-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.resolution-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.choice { min-height: 65px; border: 1px solid #e2e7f0; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; color: #7d879a; position: relative; }
.choice:hover { border-color: #adbded; }
.choice:has(input:checked) { border-color: #4d70f4; background: #f0f4ff; color: #315cf5; box-shadow: inset 0 0 0 1px #4d70f4; }
.choice input { position: absolute; opacity: 0; }
.choice b, .choice span { font-size: 11px; }
.ratio-shape { display: block; border: 1.5px solid currentColor; border-radius: 2px; width: 18px; height: 18px; }
.ratio-4-3 { width: 21px; height: 16px; }.ratio-3-4 { width: 15px; height: 20px; }.ratio-16-9 { width: 24px; height: 14px; }.ratio-9-16 { width: 13px; height: 22px; }
.resolution-choice { min-height: 65px; gap: 3px; }
.resolution-choice span { font-size: 13px; font-weight: 650; }
.resolution-choice small { font-size: 8px; }
.generator-count { display: flex; grid-column: 1/-1; align-items: center; gap: 15px; border-top: 1px solid #eef1f6; padding-top: 15px; }
.generator-count select { margin-left: auto; border: 1px solid #dfe5ef; border-radius: 8px; padding: 8px 30px 8px 10px; color: #647188; background: white; }
.advanced-settings { border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; padding: 15px 0; margin-top: 18px; color: #758097; }
.advanced-settings summary { cursor: pointer; font-size: 12px; }
.generator-submit { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; }
.generator-submit > div { display: grid; gap: 3px; }
.generator-submit span { color: #929aab; font-size: 10px; }
.generator-submit strong { font-size: 13px; color: #57647c; }
.generator-submit small { font-size: 9px; color: #a4abba; }
.generator-results { min-width: 0; display: grid; place-items: center; padding: 35px; background-color: #f7f9fd; background-image: radial-gradient(#dce3f0 .75px,transparent .75px); background-size: 18px 18px; }
.result-empty { max-width: 440px; text-align: center; color: #8994a8; }
.result-empty h2 { color: #3e4d68; font-size: 20px; margin: 24px 0 10px; }
.result-empty p { font-size: 13px; line-height: 1.9; }
.result-empty > small { display: block; margin-top: 15px; font-size: 11px; }
.result-orbit { width: 112px; height: 112px; margin: auto; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#fff,#e8eeff); border: 1px solid #dce4fa; color: #5274ee; position: relative; box-shadow: 0 20px 45px rgba(53,86,183,.1); }
.result-orbit .ico { width: 33px; height: 33px; }
.result-orbit i { position: absolute; width: 11px; height: 11px; background: #6f8cf5; border-radius: 3px; right: 5px; top: 24px; }.result-orbit i:last-child { background: #b5c4ff; width: 8px; height: 8px; left: 14px; top: auto; bottom: 15px; border-radius: 50%; }
.result-spec { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 20px; }
.result-spec span { border: 1px solid #dfe5f1; background: rgba(255,255,255,.86); padding: 6px 9px; border-radius: 6px; font-size: 10px; }
.result-error > .ico { width: 44px; height: 44px; color: #df896c; }
.generation-canvas-frame { height: 780px; }
@media (max-width: 760px) {
  .header-right a.button { display: none; }
  .account-link { font-size: 12px; }
  .hero h1 { font-size: clamp(24px, 7.15vw, 30px); line-height: 1.55; letter-spacing: -1px; }
  .hero-copy { padding: 25px 22px 10px; }
  .hero-art { min-height: 175px; }
  .hero-art img { object-position: center 60%; }
  .hero-art-caption { display: none; }
  .card-title { font-size: 15px; }
  .card-summary { font-size: 12px; min-height: 44px; }
  .card-meta { font-size: 10px; }
  .tag { font-size: 10px; }
  .resource-card .price { font-size: 11px; }
  .card-bottom { min-height: 42px; }
  .modal-body p, .page-heading p { font-size: 14px; }
  .quick-entry strong { font-size: 13px; }
  .quick-entry small { font-size: 10px; }
  .generator-shell { grid-template-columns: 1fr; min-height: 0; }
  .generator-controls { padding: 20px 16px; border-right: 0; border-bottom: 1px solid #e9edf4; }
  .generator-top { flex-direction: column; gap: 10px; }
  .generator-options { grid-template-columns: 1fr; }
  .generator-results { min-height: 390px; padding: 28px 18px; }
  .reference-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .reference-add, .reference-item { height: 75px; }
  .generator-submit { align-items: flex-end; }
  .generator-submit .button { padding-left: 16px; padding-right: 16px; }
  .generation-canvas-frame { height: 790px; }
}
@media (max-width: 359px) {
  .header { padding-left: 12px; padding-right: 12px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 8px; }
  .account-link .ico { display: none; }
  .account-link { font-size: 11px; }
  .hero-actions { gap: 7px; }
  .hero-actions .button { font-size: 11px; padding-left: 9px; padding-right: 9px; }
  .hero-actions .ico { width: 16px; height: 16px; }
  .quick-entry { gap: 7px; padding: 13px 9px; }
  .quick-icon { width: 28px; height: 31px; }
  .quick-entry strong { font-size: 12px; }
  .quick-entry small { font-size: 9px; }
  .ratio-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .resolution-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .generator-submit { flex-direction: column; align-items: stretch; }
}
