* { box-sizing: border-box; }
:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --text: #222936;
  --muted: #8a8f99;
  --line: #e7e9ef;
  --soft: #f5f6fb;
  --blue: #43a5f5;
  --blue-dark: #2f92e6;
  --purple: #615cf2;
  --cyan: #38d6c4;
  --shadow: 0 10px 32px rgba(20, 28, 45, .10);
  --danger: #d33a3a;
  --ok: #0f9f6e;
}
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .62; }
a { color: inherit; text-decoration: none; }
.site-shell { min-height: 100vh; background: var(--bg); }
.brand-top {
  height: 70px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.brand-top.centered { justify-content: center; }
.mini-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 24px; }
.bolt-logo {
  width: 32px;
  height: 32px;
  border-radius: 11px 11px 14px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #61e1cd, #2ac7b9);
  color: #fff;
  font-size: 18px;
  flex: 0 0 auto;
}
.app-browser-bar { padding: 0 28px; }
.browser-title {
  height: 50px;
  min-width: 0;
  flex: 1;
  border-radius: 22px;
  background: #f3f3f4;
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-size: 22px;
  font-weight: 900;
}
.top-icon {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #5f6369;
  font-size: 28px;
}
.page-nav {
  min-height: 92px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-size: 34px; font-weight: 900; white-space: nowrap; }
.menu-chip {
  height: 64px;
  min-width: 172px;
  border: 1px solid #dcddff;
  border-radius: 8px;
  background: #f0f0ff;
  color: #514de0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
}
.grid-icon {
  width: 28px;
  height: 28px;
  background:
    linear-gradient(#514de0 0 0) left top / 10px 10px no-repeat,
    linear-gradient(#514de0 0 0) right top / 10px 10px no-repeat,
    linear-gradient(#514de0 0 0) left bottom / 10px 10px no-repeat,
    linear-gradient(#514de0 0 0) right bottom / 10px 10px no-repeat;
}
.nav-pill {
  height: 64px;
  min-width: 134px;
  border: 0;
  border-radius: 8px;
  background: #f7f8fb;
  color: #4d535d;
  font-size: 28px;
  font-weight: 800;
}
.nav-pill.primary { background: var(--blue); color: #fff; }
.nav-pill.active { box-shadow: 0 3px 10px rgba(0,0,0,.04); }
.avatar-button {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbd4e6, #d6e3ff 54%, #b6d7ff);
  color: #2b3442;
  font-weight: 900;
  font-size: 26px;
  overflow: hidden;
}
.chevron-button {
  border: 0;
  background: transparent;
  color: #6a707a;
  font-size: 32px;
  line-height: 1;
}
.account-menu { position: relative; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 180px;
  z-index: 80;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .14);
}
.account-dropdown button {
  width: 100%; height: 38px; border: 0; border-radius: 6px; background: transparent;
  color: #384150; text-align: left; padding: 0 12px; font-size: 15px;
}
.account-dropdown button:hover { background: #f4f7fb; color: var(--blue-dark); }
.login-stage {
  min-height: calc(100vh - 162px);
  background: radial-gradient(circle at 80% 16%, rgba(129,139,255,.3), transparent 24%), #07112d;
  padding: 116px 48px 48px;
  color: #fff;
  overflow: hidden;
}
.auth-shell .auth-nav {
  display: none;
}
.auth-shell .auth-nav .wordmark { margin-right: auto; }
.auth-shell .login-stage {
  min-height: 100vh;
  padding: 56px 32px 36px;
}
.login-hero {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.26);
}
.hero-grid {
  min-height: 480px;
  padding: 108px 60px 70px;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 96px 84px,
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 96px 84px,
    linear-gradient(180deg, rgba(35,45,94,.64), rgba(23,28,72,.92));
  border: 1px solid rgba(255,255,255,.12);
}
.hero-badge {
  display: inline-flex;
  min-height: 68px;
  align-items: center;
  padding: 0 28px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font-size: 28px;
}
.hero-grid h1 { margin: 74px 0 0; font-size: 56px; line-height: 1.25; letter-spacing: 0; }
.login-panel {
  background: #fff;
  color: var(--text);
  padding: 72px 58px 62px;
}
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form h2 { margin: 0; font-size: 48px; line-height: 1.1; }
.auth-form p { margin: 24px 0 52px; color: #7b8390; font-size: 28px; }
.icon-field {
  min-height: 92px;
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: 88px minmax(0,1fr) auto;
  align-items: center;
  border: 1px solid #e1e3e8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.icon-field input {
  min-width: 0;
  height: 90px;
  border: 0;
  outline: 0;
  background: #edf3ff;
  padding: 0 28px;
  font-size: 30px;
}
.icon-field.with-button input { padding-right: 10px; }
.field-icon {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b7bbc3;
  font-size: 30px;
  background: #fff;
}
.icon-action, .field-button {
  height: 90px;
  border: 0;
  border-left: 1px solid #edf0f5;
  background: #fff;
  color: #8b8f99;
  padding: 0 26px;
  font-size: 24px;
  white-space: nowrap;
}
.login-options {
  margin: 0 0 54px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  color: #5b6069;
  font-size: 28px;
}
.login-options input { width: 34px; height: 34px; vertical-align: -6px; }
.text-link { border: 0; background: transparent; color: #625de8; font-size: inherit; padding: 0; }
.submit-main {
  width: 100%;
  min-height: 96px;
  border: 0;
  border-radius: 12px;
  background: var(--purple);
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}
.switch-line { margin-top: 44px; text-align: center; color: #7b8089; font-size: 26px; }
.form-message { min-height: 24px; color: var(--muted); font-size: 22px; margin: 18px 0 0; }
.form-message.ok { color: var(--ok); }
.form-message.error { color: var(--danger); }
.generator-page { background: #fff; }
.generator-card { padding: 42px 38px 34px; border-bottom: 1px solid var(--line); }
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 56px;
  background: #f5f6fb;
  border-radius: 5px;
  overflow: hidden;
}
.mode-tab {
  height: 68px;
  border: 0;
  background: transparent;
  color: #686d76;
  font-size: 30px;
}
.mode-tab.active { background: var(--blue); color: #fff; }
.mobile-form { display: grid; gap: 38px; }
.block-field { display: block; position: relative; }
.field-title { display: block; margin-bottom: 14px; color: #4e535c; font-size: 32px; font-weight: 900; }
.prompt-block textarea {
  width: 100%;
  height: 320px;
  border: 1px solid #dadde3;
  border-radius: 8px;
  resize: vertical;
  padding: 24px 28px 58px;
  color: var(--text);
  outline: 0;
  font-size: 28px;
  line-height: 1.55;
}
.prompt-block textarea::placeholder { color: #b0b3bb; }
.counter { position: absolute; right: 24px; bottom: 20px; color: #858993; font-size: 24px; }
.row-title { display: flex; gap: 10px; align-items: center; }
.row-title span { color: #7b7f88; font-size: 24px; }
.control-group { display: grid; gap: 10px; }
.upload-drop {
  min-height: 270px;
  border: 1px dashed #d9dce3;
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #7f848d;
  padding: 26px;
}
.upload-drop input { display: none; }
.upload-drop.drag-over { border-color: var(--blue); background: #eef7ff; }
.upload-cloud { display: block; font-size: 54px; color: #8f949c; margin-bottom: 16px; }
.upload-drop strong { display: block; font-size: 24px; font-weight: 500; }
.reference-preview { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.reference-preview img { width: 92px; height: 92px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.select-row {
  width: 100%;
  min-height: 74px;
  border: 1px solid #dfe2e8;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  padding: 0 28px;
}
.select-row strong { font-size: 28px; color: #535861; }
.select-row strong { line-height: 1.45; overflow-wrap: anywhere; }
.hidden-controls { display: none; }
.generate-button {
  width: 100%;
  height: 92px;
  border: 0;
  border-radius: 9px;
  background: #9acdfb;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}
.generate-button:not(:disabled) { background: var(--blue); }
.task-panel { background: #f1f3f7; padding: 42px 28px 90px; }
.result-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 4px solid #e2e5ec;
  margin-bottom: 52px;
}
.result-tab {
  height: 62px;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: #1f2530;
  font-size: 28px;
  font-weight: 900;
}
.result-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.result-card {
  min-height: 520px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(20,28,45,.08);
  padding: 24px;
}
.empty-box { height: 470px; display: grid; place-items: center; align-content: center; color: #a0a4ab; text-align: center; font-size: 24px; }
.empty-icon { color: #edf0f5; font-size: 100px; line-height: 1; }
.result-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.result-item { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.result-item img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.result-item a { display: block; padding: 14px; text-align: center; color: var(--blue-dark); font-weight: 800; }
.task-list { display: grid; gap: 14px; }
.task-status-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 18px; }
.task-status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; }
.task-status-head span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.progress-track { height: 8px; margin: 14px 0; border-radius: 999px; background: #edf1f6; overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .35s ease; }
.task-meta-row { display: flex; flex-wrap: wrap; gap: 8px; color: #687080; font-size: 12px; }
.task-prompt-preview { margin: 12px 0 0; color: #4b5563; font-size: 13px; line-height: 1.55; }
.task-error { margin: 10px 0 0; color: var(--danger); font-size: 13px; }
.works-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.work-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.work-card img { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #f6f8fb; }
.work-body { padding: 12px; }
.work-prompt { margin: 0 0 10px; color: #4b5563; font-size: 13px; line-height: 1.5; }
.work-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.work-actions button { min-height: 34px; border: 1px solid #d9e4f2; border-radius: 7px; background: #fff; color: var(--blue-dark); font-size: 13px; font-weight: 800; }
.reuse-note { color: var(--blue-dark); font-size: 13px; font-weight: 800; }
.prompt-collapsed .prompt-block textarea { height: 52px; min-height: 52px; overflow: hidden; resize: none; }
.history-list { display: grid; gap: 16px; }
.history-item { background: #fff; border-radius: 8px; padding: 18px; border: 1px solid var(--line); font-size: 22px; }
.drawer-mask, .modal-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,0,0,.48);
}
.menu-drawer {
  height: 100%;
  width: min(460px, 88vw);
  margin-right: auto;
  background: #fff;
  overflow: auto;
  padding: 28px;
  box-shadow: 18px 0 44px rgba(0,0,0,.18);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.drawer-close, .modal-close {
  border: 0;
  background: transparent;
  color: #858993;
  font-size: 48px;
}
.menu-drawer h2 { margin: 0; font-size: 30px; }
.drawer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.drawer-link { min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #4f5663; font-size: 15px; font-weight: 800; }
.drawer-link.active { border-color: #b9dafe; background: #eef7ff; color: var(--blue-dark); }
.drawer-link.danger { color: var(--danger); }
.drawer-panel { display: none; }
.drawer-panel.active { display: block; }
.quota-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quota-grid div { background: #f7f8fb; border-radius: 8px; padding: 18px; }
.quota-grid span { display: block; color: var(--muted); font-size: 20px; }
.quota-grid strong { display: block; margin-top: 6px; font-size: 24px; overflow-wrap: anywhere; }
.drawer-section { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 28px; }
.drawer-section h3 { margin: 0 0 18px; font-size: 28px; }
.drawer-form { display: grid; gap: 14px; }
.profile-form { margin-top: 18px; }
.drawer-form input, .drawer-form select {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  font-size: 22px;
}
.mini-list { display: grid; gap: 12px; font-size: 21px; }
.mini-card { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fafbfe; }
.prompt-library-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.prompt-library-filters button { min-height: 30px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #566071; padding: 0 10px; font-size: 13px; font-weight: 800; }
.prompt-library-filters button.active { border-color: #b9dafe; background: #eef7ff; color: var(--blue-dark); }
.prompt-library-list { display: grid; gap: 12px; }
.prompt-library-card { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fafbfe; }
.prompt-library-card > img { width: 92px; height: 92px; object-fit: cover; border-radius: 7px; background: #eef2f7; }
.prompt-library-body { min-width: 0; display: grid; gap: 5px; align-content: start; }
.prompt-library-body strong { font-size: 15px; line-height: 1.35; color: #202734; }
.prompt-library-body span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.prompt-library-body p { margin: 0; color: #4f5663; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.prompt-library-body .submit-main { width: max-content; min-height: 32px; padding: 0 13px; border-radius: 7px; font-size: 13px; }
.size-modal {
  width: min(620px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  margin: 32px auto 0;
  background: #fff;
  border-radius: 8px;
  padding: 22px 20px 18px;
  color: #4d525b;
}
.size-modal h2 { margin: 0 0 18px; color: #333943; font-size: 24px; font-weight: 600; }
.size-modal h3 { margin: 18px 0 12px; color: #656a73; font-size: 16px; font-weight: 600; }
.ratio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ratio-card {
  min-height: 96px;
  border: 1px solid #dde0e5;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #555a63;
}
.ratio-card.active { border: 3px solid var(--blue); background: #eef5ff; }
.ratio-card.disabled { opacity: .42; cursor: not-allowed; background: #f8f9fb; }
.ratio-card.disabled .ratio-shape { border-color: #d7dbe2; background: #fff; }
.ratio-shape { border: 3px solid #bfc3ca; border-radius: 5px; background: #fff; }
.ratio-card.active .ratio-shape { border-color: var(--blue); background: #c9e3ff; }
.ratio-name { font-size: 17px; font-weight: 800; }
.ratio-label { color: #8b9098; font-size: 12px; }
.resolution-tabs { display: inline-grid; grid-template-columns: repeat(3, 54px); background: #f7f8fb; border-radius: 6px; overflow: hidden; }
.resolution-tab { height: 36px; border: 0; background: transparent; color: #555b65; font-size: 14px; }
.resolution-tab.active { background: var(--blue); color: #fff; }
.size-modal hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.final-size { display: inline-flex; min-height: 38px; align-items: center; padding: 0 16px; border-radius: 7px; background: var(--blue); color: #fff; font-size: 14px; }
.modal-actions { margin-top: 28px; display: flex; justify-content: flex-end; gap: 12px; }
.cancel-button, .confirm-button { min-width: 76px; height: 38px; border-radius: 7px; font-size: 15px; }
.cancel-button { border: 1px solid #dde0e5; background: #fff; color: #4f535b; }
.confirm-button { border: 0; background: var(--blue); color: #fff; }
.params-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.param-field { display: grid; gap: 8px; min-width: 0; color: #4e535c; font-size: 18px; font-weight: 700; }
.param-field input, .param-field select { width: 100%; min-width: 0; box-sizing: border-box; min-height: 54px; border: 1px solid #dde0e5; border-radius: 8px; padding: 0 14px; font-size: 18px; background: #fff; }
.param-hint { margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
@media (min-width: 760px) and (max-width: 1199px) {
  .site-shell { max-width: 920px; margin: 0 auto; box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
}
@media (min-width: 1200px) {
  body { background: #eef2f7; }
  .site-shell { width: 100%; min-height: 100vh; background: #f4f6fa; }
  .brand-top { height: 64px; padding: 0 max(32px, calc((100vw - 1280px) / 2)); }
  .brand-top.centered { justify-content: flex-start; }
  .mini-brand { font-size: 22px; }
  .page-nav { min-height: 76px; padding: 14px max(32px, calc((100vw - 1280px) / 2)); gap: 14px; }
  .wordmark { font-size: 30px; }
  .menu-chip { height: 46px; min-width: 112px; font-size: 18px; gap: 8px; }
  .grid-icon { width: 18px; height: 18px; background-size: 7px 7px, 7px 7px, 7px 7px, 7px 7px; }
  .nav-pill { height: 46px; min-width: 94px; font-size: 18px; }
  .login-stage { min-height: calc(100vh - 140px); padding: 56px max(32px, calc((100vw - 1280px) / 2)); }
  .auth-shell .login-stage { min-height: calc(100vh - 76px); padding: 56px max(32px, calc((100vw - 1280px) / 2)) 48px; }
  .auth-shell .login-stage { min-height: 100vh; }
  .login-hero { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1.05fr) 460px; border-radius: 16px; }
  .hero-grid { min-height: 640px; padding: 96px 64px; }
  .hero-badge { min-height: 42px; padding: 0 18px; font-size: 18px; }
  .hero-grid h1 { margin-top: 72px; font-size: 52px; }
  .login-panel { padding: 58px 46px; display: flex; align-items: center; }
  .auth-form.active { width: 100%; }
  .auth-form h2 { font-size: 34px; }
  .auth-form p { margin: 14px 0 32px; font-size: 18px; }
  .icon-field { min-height: 58px; margin-bottom: 18px; grid-template-columns: 52px minmax(0,1fr) auto; border-radius: 8px; }
  .field-icon, .icon-field input, .icon-action, .field-button { height: 56px; }
  .field-icon { font-size: 18px; }
  .icon-field input { font-size: 17px; padding: 0 16px; }
  .icon-action, .field-button { font-size: 15px; padding: 0 14px; }
  .login-options { margin-bottom: 26px; font-size: 16px; }
  .login-options input { width: 18px; height: 18px; vertical-align: -3px; }
  .submit-main { min-height: 52px; font-size: 18px; border-radius: 8px; }
  .switch-line { margin-top: 22px; font-size: 16px; }
  .form-message { font-size: 14px; }
  .app-browser-bar { display: none; }
  .app-nav { position: sticky; top: 0; z-index: 40; }
  .avatar-button { width: 44px; height: 44px; font-size: 18px; margin-left: auto; }
  .account-menu .avatar-button { margin-left: 0; }
  .chevron-button { font-size: 24px; }
  .generator-page { max-width: 1280px; margin: 24px auto 0; padding: 0 32px 48px; display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 20px; background: transparent; }
  .generator-card, .task-panel { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(20,28,45,.06); }
  .generator-card { padding: 24px; border-bottom: 1px solid var(--line); background: #fff; align-self: start; position: sticky; top: 100px; max-height: calc(100vh - 124px); overflow: auto; }
  .mode-tabs { margin-bottom: 24px; }
  .mode-tab { height: 40px; font-size: 15px; }
  .mobile-form { gap: 18px; }
  .field-title { font-size: 15px; margin-bottom: 7px; }
  .prompt-block textarea { height: 210px; padding: 14px 16px 38px; font-size: 15px; line-height: 1.55; }
  .counter { right: 14px; bottom: 12px; font-size: 13px; }
  .upload-drop { min-height: 150px; padding: 18px; }
  .upload-cloud { font-size: 34px; margin-bottom: 8px; }
  .upload-drop strong { font-size: 14px; }
  .reference-preview img { width: 64px; height: 64px; }
  .select-row { min-height: 42px; padding: 0 12px; }
  .select-row strong { font-size: 13px; font-weight: 700; }
  .generate-button { height: 48px; font-size: 16px; border-radius: 8px; }
  .task-panel { padding: 24px; background: #f8f9fc; }
  .result-tabs { margin-bottom: 20px; border-bottom-width: 2px; }
  .result-tab { height: 44px; border-bottom-width: 2px; font-size: 16px; }
  .result-card { min-height: calc(100vh - 220px); padding: 22px; border-radius: 10px; }
  .empty-box { height: calc(100vh - 270px); min-height: 360px; font-size: 16px; }
  .empty-icon { font-size: 72px; }
  .works-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .work-card img { max-height: 300px; }
  .history-item { font-size: 14px; }
  .menu-drawer { width: 420px; padding: 28px; }
  .drawer-close, .modal-close { font-size: 34px; }
  .menu-drawer h2 { font-size: 28px; }
  .drawer-section h3 { font-size: 20px; }
  .drawer-form input, .drawer-form select { min-height: 44px; font-size: 15px; }
  .mini-list { font-size: 14px; }
  .quota-grid span { font-size: 13px; }
  .quota-grid strong { font-size: 16px; }
  .size-modal { width: 560px; max-height: calc(100vh - 56px); margin-top: 24px; padding: 20px 22px 18px; }
  .size-modal h2 { font-size: 24px; margin-bottom: 20px; font-weight: 600; }
  .size-modal h3 { font-size: 16px; margin: 20px 0 12px; font-weight: 600; }
  .ratio-grid { gap: 12px; }
  .ratio-card { min-height: 86px; border-radius: 8px; gap: 4px; }
  .ratio-shape { border-width: 3px; }
  .ratio-name { font-size: 15px; }
  .ratio-label { font-size: 13px; }
  .resolution-tabs { grid-template-columns: repeat(3, 56px); }
  .resolution-tab { height: 38px; font-size: 15px; }
  .size-modal hr { margin: 24px 0; }
  .final-size { min-height: 40px; padding: 0 18px; font-size: 14px; }
  .modal-actions { margin-top: 22px; gap: 12px; }
  .cancel-button, .confirm-button { min-width: 82px; height: 38px; font-size: 15px; }
  .params-grid { gap: 12px; }
  .param-field { font-size: 15px; }
  .param-field input, .param-field select { min-height: 42px; font-size: 15px; }
  .param-hint { font-size: 13px; }
}
@media (max-width: 620px) {
  .brand-top { height: 56px; padding: 0 16px; }
  .app-browser-bar { gap: 10px; }
  .browser-title { height: 44px; border-radius: 18px; font-size: 18px; padding: 0 18px; }
  .top-icon { width: 30px; height: 30px; font-size: 22px; }
  .bolt-logo { width: 26px; height: 26px; font-size: 14px; border-radius: 9px 9px 12px 12px; }
  .mini-brand { font-size: 20px; }
  .page-nav { min-height: 74px; padding: 14px 18px; gap: 12px; }
  .wordmark { font-size: 26px; }
  .menu-chip { height: 52px; min-width: 116px; font-size: 20px; gap: 8px; }
  .grid-icon { width: 20px; height: 20px; background-size: 7px 7px, 7px 7px, 7px 7px, 7px 7px; }
  .nav-pill { min-width: 76px; height: 52px; font-size: 20px; }
  .avatar-button { width: 52px; height: 52px; font-size: 20px; }
  .chevron-button { font-size: 26px; }
  .app-shell .page-nav { min-height: 64px; padding: 10px 14px; gap: 8px; }
  .app-shell .wordmark { font-size: 22px; }
  .app-shell .menu-chip { height: 44px; min-width: 92px; font-size: 16px; gap: 6px; }
  .app-shell .avatar-button { width: 42px; height: 42px; font-size: 16px; }
  .app-shell .chevron-button { width: 30px; height: 42px; font-size: 20px; }
  .account-dropdown { width: 156px; top: calc(100% + 8px); }
  .account-dropdown button { height: 36px; font-size: 14px; }
  .login-stage { min-height: calc(100vh - 130px); padding: 56px 24px 24px; }
  .auth-shell .page-nav { min-height: 64px; padding: 10px 14px; gap: 8px; }
  .auth-shell .wordmark { font-size: 22px; }
  .auth-shell .menu-chip { height: 44px; min-width: 92px; font-size: 16px; gap: 6px; }
  .auth-shell .nav-pill { min-width: 62px; height: 44px; font-size: 16px; }
  .auth-shell .login-stage { min-height: calc(100vh - 64px); padding: 22px 14px 18px; }
  .auth-shell .login-stage { min-height: 100vh; }
  .auth-shell .login-hero { border-radius: 14px; }
  .hero-grid { min-height: 300px; padding: 58px 30px 42px; background-size: 64px 58px; }
  .hero-badge { min-height: 44px; padding: 0 16px; font-size: 18px; }
  .hero-grid h1 { margin-top: 44px; font-size: 34px; }
  .login-panel { padding: 42px 28px 36px; }
  .auth-form h2 { font-size: 34px; }
  .auth-form p { margin: 16px 0 34px; font-size: 20px; }
  .icon-field { min-height: 64px; margin-bottom: 22px; grid-template-columns: 56px minmax(0,1fr) auto; }
  .field-icon, .icon-field input, .icon-action, .field-button { height: 62px; }
  .icon-field input { font-size: 20px; padding: 0 18px; }
  .field-icon { font-size: 20px; }
  .icon-action, .field-button { font-size: 16px; padding: 0 16px; }
  .login-options { margin-bottom: 34px; font-size: 18px; }
  .login-options input { width: 22px; height: 22px; vertical-align: -4px; }
  .submit-main { min-height: 66px; font-size: 22px; }
  .switch-line { margin-top: 28px; font-size: 18px; }
  .form-message { font-size: 15px; }
  .generator-card { padding: 28px 18px 24px; }
  .mode-tabs { margin-bottom: 26px; }
  .mode-tab { height: 46px; font-size: 17px; }
  .mobile-form { gap: 22px; }
  .field-title { font-size: 20px; margin-bottom: 8px; }
  .prompt-block textarea { height: 238px; padding: 16px 18px 44px; font-size: 18px; }
  .counter { right: 16px; bottom: 14px; font-size: 16px; }
  .upload-drop { min-height: 210px; }
  .upload-drop strong { font-size: 17px; }
  .select-row { min-height: 48px; padding: 0 14px; }
  .select-row strong { font-size: 15px; }
  .generate-button { height: 56px; font-size: 18px; }
  .task-panel { padding: 30px 16px 70px; }
  .result-tab { height: 50px; font-size: 20px; }
  .result-card { min-height: 360px; padding: 18px; }
  .empty-box { height: 320px; font-size: 17px; }
  .empty-icon { font-size: 70px; }
  .size-modal { width: calc(100vw - 32px); margin-top: 42px; padding: 22px 16px 18px; }
  .size-modal h2 { font-size: 24px; margin-bottom: 20px; }
  .size-modal h3 { font-size: 17px; margin: 18px 0 12px; }
  .ratio-grid { gap: 10px; }
  .ratio-card { min-height: 112px; border-radius: 8px; }
  .ratio-name { font-size: 18px; }
  .ratio-label { font-size: 13px; }
  .resolution-tabs { grid-template-columns: repeat(3, 54px); }
  .resolution-tab { height: 38px; font-size: 14px; }
  .size-modal hr { margin: 24px 0; }
  .final-size { min-height: 40px; font-size: 14px; }
  .modal-actions { margin-top: 30px; gap: 12px; }
  .cancel-button, .confirm-button { min-width: 78px; height: 40px; font-size: 15px; }
  .params-grid { grid-template-columns: 1fr; }
  .param-field { font-size: 16px; }
  .param-field input, .param-field select { min-height: 48px; font-size: 16px; }
  .app-shell .generator-card { padding: 22px 16px 20px; }
  .app-shell .mode-tabs { margin-bottom: 24px; }
  .app-shell .mode-tab { height: 42px; font-size: 15px; }
  .app-shell .mobile-form { gap: 18px; }
  .app-shell .field-title { margin-bottom: 7px; font-size: 17px; }
  .app-shell .row-title span { font-size: 14px; }
  .app-shell .prompt-block textarea { height: 210px; padding: 14px 16px 38px; font-size: 16px; line-height: 1.5; }
  .app-shell .counter { right: 14px; bottom: 12px; font-size: 14px; }
  .app-shell .upload-drop { min-height: 150px; padding: 18px; }
  .app-shell .upload-cloud { font-size: 30px; margin-bottom: 8px; }
  .app-shell .upload-drop strong { font-size: 14px; }
  .app-shell .select-row { min-height: 44px; padding: 0 12px; }
  .app-shell .select-row strong { font-size: 13px; }
  .app-shell .generate-button { height: 48px; font-size: 16px; border-radius: 8px; }
  .app-shell .task-panel { padding: 22px 14px 56px; }
  .app-shell .result-tabs { margin-bottom: 18px; border-bottom-width: 2px; }
  .app-shell .result-tab { height: 42px; border-bottom-width: 2px; font-size: 16px; }
  .app-shell .result-card { min-height: 300px; padding: 14px; }
  .app-shell .empty-box { height: 260px; font-size: 15px; }
  .app-shell .empty-icon { font-size: 58px; }
  .app-shell .works-grid { grid-template-columns: 1fr; }
  .app-shell .work-actions { grid-template-columns: 1fr 1fr 1fr; }
  .app-shell .menu-drawer { width: min(340px, 88vw); padding: 20px 16px; }
  .app-shell .drawer-close, .app-shell .modal-close { font-size: 34px; }
  .app-shell .menu-drawer h2 { font-size: 26px; }
  .app-shell .drawer-nav { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .app-shell .drawer-link { min-height: 38px; font-size: 14px; }
  .app-shell .drawer-section { margin-top: 22px; padding-top: 18px; }
  .app-shell .drawer-section h3 { margin-bottom: 12px; font-size: 20px; }
  .app-shell .quota-grid { gap: 8px; }
  .app-shell .quota-grid div { padding: 12px; }
  .app-shell .quota-grid span { font-size: 13px; }
  .app-shell .quota-grid strong { font-size: 18px; }
  .app-shell .drawer-form { gap: 10px; }
  .app-shell .drawer-form input, .app-shell .drawer-form select { min-height: 44px; font-size: 15px; }
  .app-shell .drawer-form .submit-main { min-height: 46px; font-size: 16px; }
  .app-shell .mini-list { gap: 10px; font-size: 14px; }
  .app-shell .mini-card { padding: 12px; }
  .app-shell .prompt-library-card { grid-template-columns: 76px minmax(0,1fr); gap: 10px; padding: 9px; }
  .app-shell .prompt-library-card > img { width: 76px; height: 76px; }
  .app-shell .prompt-library-body strong { font-size: 14px; }
  .app-shell .prompt-library-body p { font-size: 12px; line-height: 1.45; }
  .app-shell .prompt-library-body .submit-main { min-height: 30px; font-size: 12px; }
  .app-shell .size-modal { width: calc(100vw - 28px); max-height: calc(100vh - 48px); margin-top: 24px; padding: 18px 14px 16px; }
  .app-shell .size-modal h2 { margin-bottom: 16px; font-size: 22px; }
  .app-shell .size-modal h3 { margin: 16px 0 10px; font-size: 16px; }
  .app-shell .ratio-grid { gap: 10px; }
  .app-shell .ratio-card { min-height: 108px; }
  .app-shell .ratio-name { font-size: 17px; }
  .app-shell .ratio-label { font-size: 12px; }
  .app-shell .resolution-tabs { grid-template-columns: repeat(3, 54px); }
  .app-shell .resolution-tab { height: 38px; font-size: 14px; }
  .app-shell .size-modal hr { margin: 22px 0; }
  .app-shell .final-size { min-height: 38px; font-size: 14px; }
  .app-shell .modal-actions { margin-top: 28px; gap: 12px; }
  .app-shell .cancel-button, .app-shell .confirm-button { min-width: 78px; height: 38px; font-size: 15px; }
  .app-shell .param-field { font-size: 14px; }
  .app-shell .param-field input, .app-shell .param-field select { min-height: 42px; font-size: 15px; }
  .app-shell .param-hint { font-size: 12px; }
  .app-shell #sizeModal { align-items: flex-start; overflow: hidden; padding: 8px 0; }
  .app-shell #sizeModal .size-modal { width: calc(100vw - 24px); max-height: calc(100dvh - 16px); margin-top: 0; padding: 12px; border-radius: 8px; overflow: hidden; }
  .app-shell #sizeModal .modal-close { top: 8px; right: 10px; font-size: 24px; }
  .app-shell #sizeModal .size-modal h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.15; }
  .app-shell #sizeModal .size-modal h3 { margin: 8px 0 6px; font-size: 13px; line-height: 1.2; }
  .app-shell #sizeModal .ratio-grid { gap: 6px; grid-template-columns: repeat(4, 1fr); }
  .app-shell #sizeModal .ratio-card { min-height: 64px; gap: 2px; border-radius: 7px; border-width: 1px; }
  .app-shell #sizeModal .ratio-card.active { border-width: 2px; }
  .app-shell #sizeModal .ratio-shape { border-width: 2px; transform: scale(.62); margin: -7px 0 -5px; }
  .app-shell #sizeModal .ratio-name { font-size: 14px; line-height: 1.1; }
  .app-shell #sizeModal .ratio-label { font-size: 10px; line-height: 1.1; }
  .app-shell #sizeModal .resolution-tabs { grid-template-columns: repeat(3, 48px); }
  .app-shell #sizeModal .resolution-tab { height: 30px; font-size: 13px; }
  .app-shell #sizeModal .size-modal hr { margin: 8px 0; }
  .app-shell #sizeModal .final-size { min-height: 30px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
  .app-shell #sizeModal .modal-actions { margin-top: 8px; gap: 8px; }
  .app-shell #sizeModal .cancel-button, .app-shell #sizeModal .confirm-button { min-width: 68px; height: 32px; font-size: 13px; border-radius: 6px; }
  .app-shell #paramsModal { align-items: flex-start; overflow: hidden; padding: 8px 0; }
  .app-shell #paramsModal .size-modal { width: calc(100vw - 24px); max-height: calc(100dvh - 16px); margin-top: 0; padding: 12px; border-radius: 8px; overflow-x: hidden; overflow-y: auto; }
  .app-shell #paramsModal .modal-close { top: 8px; right: 10px; font-size: 24px; }
  .app-shell #paramsModal .size-modal h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.15; }
  .app-shell #paramsModal .params-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .app-shell #paramsModal .param-field { gap: 4px; font-size: 13px; line-height: 1.2; }
  .app-shell #paramsModal .param-field input, .app-shell #paramsModal .param-field select { min-height: 34px; height: 34px; border-radius: 6px; padding: 0 9px; font-size: 13px; }
  .app-shell #paramsModal .param-field[hidden] { display: none; }
  .app-shell #paramsModal .param-hint { margin: 8px 0 0; font-size: 11px; line-height: 1.35; }
  .app-shell #paramsModal .modal-actions { margin-top: 8px; gap: 8px; }
  .app-shell #paramsModal .cancel-button, .app-shell #paramsModal .confirm-button { min-width: 68px; height: 32px; font-size: 13px; border-radius: 6px; }
}
@media (max-width: 380px) {
  .auth-shell .menu-chip { display: none; }
  .auth-shell .page-nav { flex-wrap: nowrap; }
}
