:root {
  --ink: #18322b;
  --green: #244b3e;
  --cream: #f1eee6;
  --paper: #fff;
  --line: #d8d4ca;
  --selected: #8d9b83;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.native-app {
  --native-safe-top: max(env(safe-area-inset-top, 0px), 28px);
}
.account-bar {
  height: 64px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 80; background: #fff; border-bottom: 1px solid var(--line);
}
.account-brand {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.account-brand b, .account-brand span { display: block; }
.account-brand b { font-size: 13px; letter-spacing: 1.4px; }
.account-brand span { margin-top: 2px; font-size: 7px; letter-spacing: 1.6px; }
.account-nav { display: flex; align-self: stretch; gap: 8px; }
.nav-button { padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.nav-button.active { border-bottom-color: var(--green); }
.account-actions { display: flex; align-items: center; gap: 10px; }
.credit-pill { padding: 8px 11px; border-radius: 20px; background: #eef3ef; font-size: 10px; }
.credit-pill b { font-size: 13px; }
.account-button { padding: 9px 13px; border: 1px solid var(--green); background: white; cursor: pointer; font-size: 9px; font-weight: 800; }
.auth-gate { position: fixed; inset: 64px 0 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: #eeeae1; }
.auth-card { width: min(410px, 100%); padding: 34px; background: white; border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(24,50,43,.12); text-align: center; }
.auth-logo { width: 48px; height: 48px; margin: auto; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font-weight: 900; }
.auth-card h1 { margin: 22px 0 8px; font-size: 27px; letter-spacing: -1.2px; }
.auth-card > p { margin: 0 0 24px; color: #707975; font-size: 12px; line-height: 1.6; }
.google-login, #emailForm button { width: 100%; height: 45px; border: 0; cursor: pointer; font-size: 11px; font-weight: 800; }
.google-login { border: 1px solid #d3d2cd; background: white; }
.google-login span { margin-right: 9px; color: #4285f4; font-size: 15px; }
.auth-divider { margin: 18px 0; border-top: 1px solid #e4e1da; }
.auth-divider span { position: relative; top: -8px; padding: 0 8px; background: white; color: #929894; font-size: 8px; }
#emailForm { display: grid; gap: 10px; text-align: left; }
#emailForm [hidden] { display: none !important; }
#emailForm label { display: grid; gap: 7px; }
#emailForm label > span, .auth-row small {
  color: #747c78;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
#emailForm input { height: 45px; padding: 0 13px; border: 1px solid #d3d2cd; font-size: 11px; }
#emailForm button { background: var(--green); color: white; }
.name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.name-fields[hidden] { display: none !important; }
.password-field { position: relative; }
.password-field input { padding-right: 70px !important; }
#togglePassword {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: auto !important;
  height: 33px !important;
  padding: 0 10px;
  border: 0 !important;
  border-radius: 10px !important;
  color: #5f716a !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 8px !important;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid #e3e5df;
  border-radius: 15px;
  background: #f5f7f3;
}
.auth-tabs button {
  height: 40px;
  border: 0;
  border-radius: 11px;
  color: #6c7772;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}
.auth-tabs button.active {
  color: var(--green);
  background: white;
  box-shadow: 0 8px 18px rgba(24,53,45,.08);
}
.auth-row { display: flex; min-height: 24px; align-items: center; justify-content: space-between; gap: 10px; }
.auth-row small { text-transform: none; letter-spacing: 0; line-height: 1.35; }
.magic-link-button { background: white !important; color: var(--green) !important; border: 1px solid var(--green) !important; }
.secondary-auth-button { color: var(--green) !important; border: 1px solid #bfcfc7 !important; background: #f5f8f6 !important; box-shadow: none !important; }
.text-auth-button { height: 31px !important; color: #63756d !important; background: transparent !important; box-shadow: none !important; font-size: 9px !important; }
.password-recovery { display: grid; gap: 9px; margin-top: 13px; padding: 14px; border-radius: 13px; background: #edf5f1; text-align: left; }
.password-recovery[hidden] { display: none !important; }
.password-recovery strong { font-size: 10px; }
.password-recovery input { height: 43px; padding: 0 13px; border: 1px solid #cfd9d3; }
.password-recovery button { height: 43px; border: 0; color: white; background: var(--green); cursor: pointer; font-weight: 800; }
.auth-message {
  position: relative;
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 13px 13px 13px 42px;
  border: 1px solid #d6e1da;
  border-radius: 15px;
  color: #254d40;
  background: #f0f7f3;
  text-align: left;
  box-shadow: 0 10px 26px rgba(24,53,45,.07);
}
.auth-message::before {
  content: "i";
  position: absolute;
  left: 13px;
  top: 14px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 10px;
  font-weight: 900;
  font-family: Georgia, serif;
}
.auth-message strong { font-size: 10px; letter-spacing: -.1px; }
.auth-message span { color: #66756e; font-size: 9px; line-height: 1.55; }
.auth-message a { color: #173f34; font-weight: 900; text-decoration: underline; text-underline-offset: 2px; }
.auth-message.success { border-color: #accfbd; background: #edf8f1; }
.auth-message.success::before { content: "✓"; font-family: inherit; background: #2f765a; }
.auth-message.error { border-color: #e1b7ad; background: #fff3f0; color: #7d2e22; }
.auth-message.error::before { content: "!"; font-family: inherit; background: #b84d39; }
.auth-message.error span { color: #8b5a52; }
.auth-message.loading { border-color: #c7d8cf; background: linear-gradient(90deg, #f3faf6, #fff); }
.auth-message.loading::before {
  content: "";
  border: 2px solid rgba(255,255,255,.55);
  border-top-color: white;
  background: var(--green);
  animation: spin .8s linear infinite;
}
.retention-note { display: block; margin-top: 7px; color: #5f776d; font-size: 8px; line-height: 1.45; }
.dashboard-view { min-height: calc(100vh - 64px); padding: 48px 6vw; background: var(--cream); }
.dashboard-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 30px; }
.dashboard-heading small { font-size: 8px; letter-spacing: 1.8px; }
.dashboard-heading h1 { margin: 6px 0 0; font-size: 36px; }
.primary-small { padding: 11px 16px; border: 0; background: var(--green); color: white; cursor: pointer; font-size: 9px; font-weight: 800; }
.generation-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 18px; }
.generation-card { overflow: hidden; background: white; border: 1px solid var(--line); }
.generation-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #ddd;
  cursor: zoom-in;
}
.generation-preview img, .generation-card > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #ddd; }
.generation-preview span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(18,48,40,.78);
  font-size: 8px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(4px);
  transition: .18s ease;
}
.generation-preview:hover span { opacity: 1; transform: translateY(0); }
.generation-card > div { padding: 14px; }
.generation-card small { color: #818985; font-size: 8px; }
.generation-card strong { display: block; margin-top: 4px; font-size: 11px; }
.reuse-generation { width: 100%; margin-top: 11px; padding: 9px; border: 1px solid #bfd0c7; color: var(--green); background: #f4f8f5; font-size: 8px; font-weight: 800; cursor: pointer; }
.reuse-generation:disabled { cursor: wait; opacity: .55; }
.generation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.download-generation, .share-generation {
  padding: 9px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: var(--green);
  text-align: center;
  text-decoration: none;
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}
.share-generation {
  color: var(--green);
  border: 1px solid #bfd0c7;
  background: #f4f8f5;
}
.download-generation:disabled, .share-generation:disabled { cursor: wait; opacity: .55; }
.history-preview-modal {
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: 0 34px 120px rgba(0,0,0,.36);
}
.history-preview-modal::backdrop { background: rgba(15,34,29,.7); backdrop-filter: blur(6px); }
.history-modal-switch {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}
.history-modal-switch button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: #5f6f68;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}
.history-modal-switch button.active {
  color: white;
  background: var(--green);
}
.history-preview-modal img {
  width: 100%;
  max-height: calc(100vh - 132px);
  object-fit: contain;
  display: block;
  background: #202623;
}
.history-modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.history-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px;
}
.history-modal-footer strong { font-size: 15px; }
.history-modal-footer div { display: flex; gap: 9px; }
.history-modal-footer button {
  min-width: 116px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--green);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}
.history-modal-footer .history-modal-share {
  color: var(--green);
  border: 1px solid #bfd0c7;
  background: #f4f8f5;
}
@media (max-width: 620px) {
  .generation-preview span { opacity: 1; transform: none; }
  .history-preview-modal { width: 100vw; max-height: 100vh; border-radius: 0; }
  .history-preview-modal img { max-height: calc(100vh - 156px); }
  .history-modal-switch { top: 10px; left: 10px; }
  .history-modal-footer { align-items: stretch; flex-direction: column; }
  .history-modal-footer div { display: grid; grid-template-columns: 1fr 1fr; }
  .history-modal-footer button { width: 100%; }
}
.empty-dashboard { grid-column: 1/-1; padding: 80px 20px; border: 1px dashed #bbbdb7; color: #7f8783; text-align: center; font-size: 11px; }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin-bottom: 22px; }
.stat-grid article { padding: 22px; background: white; border: 1px solid var(--line); }
.stat-grid small { color: #818985; font-size: 8px; letter-spacing: 1px; }
.stat-grid strong { display: block; margin-top: 8px; font-size: 25px; }
.admin-table-wrap { overflow: auto; background: white; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 10px; }
th, td { padding: 13px; border-bottom: 1px solid #ece9e2; text-align: left; white-space: nowrap; }
th { color: #7d8581; font-size: 8px; letter-spacing: .8px; }
.admin-section-title {
  margin: 26px 0 12px;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -.5px;
}
.admin-review-wrap td { vertical-align: middle; }
.admin-review-wrap td:first-child strong,
.admin-review-wrap td:first-child small {
  display: block;
}
.admin-review-wrap td:first-child small {
  margin-top: 4px;
  color: #78817d;
}
.admin-compare-pair {
  display: grid;
  grid-template-columns: repeat(2, 96px);
  gap: 8px;
  padding: 0 !important;
}
.admin-image-open {
  position: relative;
  width: 96px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9ded9;
  border-radius: 11px;
  background: #f1f2ef;
  cursor: zoom-in;
}
.admin-image-open img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.admin-image-open span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  color: white;
  background: rgba(18,48,40,.78);
  font-size: 7px;
  font-weight: 900;
}
.admin-image-missing {
  width: 96px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px dashed #c7cec7;
  border-radius: 11px;
  color: #8a928e;
  background: #f7f8f5;
  font-size: 8px;
}
.admin-status {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 999px;
  color: #5d6b65;
  background: #eef1ed;
  font-size: 8px;
  font-weight: 900;
}
.admin-status.completed { color: #17613f; background: #e8f6ee; }
.admin-status.failed { color: #983727; background: #fff0ed; }
.admin-status.processing, .admin-status.pending { color: #795a1c; background: #fff6df; }
.admin-delete-media { padding: 7px 10px; border: 1px solid #c9a39d; background: #fff7f5; color: #8d3024; cursor: pointer; font-size: 9px; }
.admin-delete-media:disabled { cursor: wait; opacity: .55; }
.admin-credit-form {
  display: grid;
  grid-template-columns: 74px 130px auto;
  gap: 6px;
  align-items: center;
}
.admin-credit-form input {
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #d9ded8;
  border-radius: 9px;
  background: #fbfcfa;
  color: var(--ink);
  font-size: 9px;
}
.admin-credit-form button {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #c6d8d0;
  border-radius: 9px;
  background: #edf6f1;
  color: var(--green);
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
}
.admin-credit-form button:disabled { cursor: wait; opacity: .6; }
.account-menu { position: fixed; z-index: 100; right: 27px; top: 57px; width: 230px; padding: 14px; background: white; border: 1px solid var(--line); box-shadow: 0 16px 35px rgba(0,0,0,.12); }
.account-menu strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.account-menu button { width: 100%; margin-top: 12px; padding: 9px; border: 1px solid #d0cec8; background: white; cursor: pointer; font-size: 9px; }
.support-widget {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  font-family: inherit;
}
.support-fab {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 22px;
  color: white;
  background: linear-gradient(135deg, #12372e, #2c6a57);
  box-shadow: 0 18px 42px rgba(18,55,46,.24);
  cursor: pointer;
}
.support-fab span {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
}
.support-fab svg { width: 38px; height: 38px; display: block; }
.support-fab.open span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255,255,255,.86);
  border-radius: 8px;
  font-size: 0;
}
.support-fab.open svg { display: none; }
.support-fab.open span::before {
  content: "×";
  display: block;
  position: static;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  transform: translateY(-1px);
  font-size: 31px;
  font-weight: 300;
  line-height: 1;
  color: white;
}
.support-fab.open span::after { display: none; }
.support-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(24,53,45,.1);
  border-radius: 22px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(222,237,229,.78), transparent 34%),
    linear-gradient(145deg, #fffefa, #eef3ee);
  box-shadow: 0 22px 62px rgba(24,53,45,.16);
}
.support-panel header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid rgba(24,53,45,.08);
  background: rgba(255,255,255,.5);
}
.support-avatar {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--green);
  background: #e6f0eb;
  font-size: 18px;
  font-weight: 900;
}
.support-avatar img {
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
}
.support-panel header strong { display: block; font-size: 16px; }
.support-panel header small { display: block; margin-top: 3px; color: #708078; font-size: 9px; }
.support-panel header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  color: #66756e;
  background: rgba(255,255,255,.58);
  cursor: pointer;
  font-size: 26px;
  line-height: 34px;
  padding: 0 0 2px;
}
.support-body {
  max-height: 270px;
  overflow: auto;
  padding: 15px;
}
.support-messages { display: grid; gap: 10px; margin-bottom: 13px; }
.support-message {
  width: fit-content;
  max-width: 92%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(24,53,45,.08);
  border-radius: 18px;
  color: #56645e;
  background: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.55;
  box-shadow: 0 8px 22px rgba(24,53,45,.06);
}
.support-message.user {
  margin-left: auto;
  color: white;
  background: linear-gradient(135deg, #17483c, #2d6b58);
}
.support-chips,
.support-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}
.support-chips button,
.support-feedback button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d8e3dc;
  border-radius: 999px;
  color: var(--green);
  background: rgba(255,255,255,.72);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.support-chips button:hover,
.support-feedback button:hover { background: #eaf3ee; }
.support-feedback button.active {
  border-color: rgba(24,72,60,.9);
  color: white;
  background: linear-gradient(135deg, #17483c, #2d6b58);
}
.support-feedback { padding-top: 15px; border-top: 1px solid rgba(24,53,45,.08); }
.support-compose {
  padding: 16px 18px 14px;
  border-top: 1px solid rgba(24,53,45,.08);
  background:
    radial-gradient(circle at 20% 0, rgba(222,237,229,.65), transparent 42%),
    rgba(255,255,255,.34);
}
.support-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: #68766f;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}
.support-compose h3 {
  margin: 0 0 11px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -.2px;
}
.support-compose textarea {
  width: 100%;
  min-height: 104px;
  padding: 15px;
  resize: none;
  border: 1px solid #d7e1db;
  border-radius: 20px;
  color: var(--ink);
  background: white;
  outline: none;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
}
.support-compose textarea::placeholder { color: #8b9993; }
.support-send-large {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border: 0;
  border-radius: 19px;
  color: white;
  background: linear-gradient(135deg, #17483c, #2d6b58);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}
.support-send-large span { margin-right: 8px; }
.support-send-large:disabled { cursor: wait; opacity: .55; }
.support-form {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 10px;
  padding: 14px 18px 10px;
  border-top: 1px solid rgba(24,53,45,.08);
  background: rgba(255,255,255,.42);
}
.support-form input {
  height: 48px;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid #d7e1db;
  border-radius: 17px;
  color: var(--ink);
  background: white;
  outline: none;
  font-size: 16px;
}
.support-form input::placeholder { color: #8b9993; }
.support-form button {
  border: 0;
  border-radius: 17px;
  color: white;
  background: linear-gradient(135deg, #17483c, #2d6b58);
  cursor: pointer;
  font-size: 20px;
}
.support-form button:disabled { cursor: wait; opacity: .55; }
.support-note {
  display: block;
  padding: 0 18px 16px;
  color: #7c8a84;
  text-align: center;
  font-size: 9px;
}
.photo-guide { width: min(600px,calc(100% - 28px)); padding: 30px; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 30px 90px rgba(16,42,34,.28); }
.photo-guide::backdrop { background: rgba(15,34,29,.62); backdrop-filter: blur(5px); }
.photo-guide > small { color: #5e7c70; font-size: 8px; font-weight: 800; letter-spacing: 1.5px; }
.photo-guide h2 { margin: 8px 0 22px; font-size: 27px; letter-spacing: -1px; }
.dialog-close { position: absolute; right: 16px; top: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eef2ef; cursor: pointer; font-size: 20px; }
.photo-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-guide-grid article { display: flex; gap: 10px; padding: 14px; border-radius: 13px; background: #f4f7f4; }
.photo-guide-grid article > span { width: 23px; height: 23px; flex: none; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 10px; }
.photo-guide-grid strong { font-size: 10px; }
.photo-guide-grid p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.guide-upload { width: 100%; margin-top: 17px; padding: 12px; border: 0; color: white; background: var(--green); cursor: pointer; font-weight: 800; }
.package-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; max-width: 1050px; margin: auto; }
.package-card { position: relative; padding: 30px; background: white; border: 1px solid var(--line); }
.package-card.featured { border: 2px solid var(--green); transform: translateY(-7px); }
.package-card small { color: #7c8581; font-size: 8px; letter-spacing: 1.5px; }
.package-card h2 { margin: 11px 0 2px; font-size: 25px; }
.package-card > strong { display: block; margin: 9px 0; font-size: 31px; }
.package-card p { min-height: 42px; color: #747d79; font-size: 10px; line-height: 1.5; }
.package-card button { width: 100%; padding: 12px; border: 0; background: var(--green); color: white; cursor: pointer; font-size: 10px; font-weight: 800; }
.popular { position: absolute; right: 17px; top: 17px; padding: 5px 7px; color: white !important; background: var(--green); }
.payment-note { margin-top: 25px; color: #77807c; text-align: center; font-size: 9px; }
button, input { font: inherit; }
button { color: inherit; }

.studio {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 390px 1fr;
}

.panel {
  min-height: calc(100vh - 64px);
  padding: 28px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 11px; margin-bottom: 34px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 50%;
  font-size: 12px; font-weight: 900; letter-spacing: -1px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: 1.5px; }
.brand small { margin-top: 2px; font-size: 7px; letter-spacing: 1.7px; }

.control-block { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid #e8e5de; }
.block-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.block-title > span {
  width: 25px; height: 25px; display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 50%; font-size: 10px; font-weight: 800;
}
.block-title h2 { margin: 0; font-size: 13px; }

.upload {
  min-height: 115px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px dashed #a8aea9; background: #faf9f6; cursor: pointer; transition: .2s;
}
.upload:hover, .upload.dragover { border-color: var(--green); background: #f0f4f0; }
.upload input { display: none; }
.upload-symbol { font-size: 22px; font-weight: 300; }
.upload strong { margin-top: 6px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.upload small { margin-top: 4px; color: #8a928e; font-size: 9px; }
.inline-photo-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px 9px;
  margin-bottom: 10px;
  padding: 10px 11px;
  border-radius: 11px;
  color: #60736a;
  background: #f2f6f3;
  font-size: 8px;
}
.inline-photo-guide strong { grid-column: 1/-1; color: var(--ink); font-size: 9px; }
.inline-photo-guide span::before { content: "✓"; margin-right: 5px; color: #39745f; font-weight: 900; }

.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.model {
  height: 62px; padding: 8px; display: flex; align-items: center; gap: 10px;
  border: 1px solid #d6d3cc; background: white; cursor: pointer; font-size: 10px; font-weight: 700;
}
.model.selected { border: 1.5px solid var(--green); background: #f1f4f0; }
.door { width: 31px; height: 42px; flex: none; border: 1px solid #8f978f; background: #ebeae4; }
.door.shaker { box-shadow: inset 0 0 0 5px #ebeae4, inset 0 0 0 6px #8f978f; }
.door.classic { box-shadow: inset 0 0 0 4px #ebeae4, inset 0 0 0 5px #8f978f, inset 0 0 0 9px #ebeae4, inset 0 0 0 10px #8f978f; }
.door.slatted { background: repeating-linear-gradient(90deg, #e5e4de 0 3px, #929992 3px 4px); }

.colors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.color {
  aspect-ratio: 1; padding: 0; border: 4px solid white; border-radius: 50%;
  background: var(--swatch); box-shadow: 0 0 0 1px #c9c8c2; cursor: pointer;
}
.color.selected { box-shadow: 0 0 0 2px var(--green); }
.color.custom { display: grid; place-items: center; border: 1px dashed #999f9b; background: white; font-size: 17px; }
.custom-color-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dfe5de;
  border-radius: 16px;
  background: #fbfcfa;
  box-shadow: 0 12px 30px rgba(24,53,45,.07);
}
.custom-color-panel[hidden] { display: none !important; }
.custom-color-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.custom-color-panel strong { font-size: 11px; }
#closeCustomColor {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: var(--green);
  background: #edf3ef;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.mobile-palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mobile-palette button {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid #d8dfd8;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
  text-align: left;
}
.mobile-palette button::before {
  content: "";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(24,53,45,.18);
  border-radius: 50%;
  background: var(--swatch);
}
.hex-color-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 11px;
}
.hex-color-field span {
  grid-column: 1 / -1;
  color: #718078;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}
.hex-color-field input {
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid #d8dfd8;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font-size: 12px;
  font-weight: 800;
}
.hex-color-field input.invalid { border-color: #b95c4c; box-shadow: 0 0 0 4px rgba(185,92,76,.12); }
.hex-color-field button {
  min-height: 43px;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--green);
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
}
.custom-color-panel small {
  display: block;
  margin-top: 10px;
  color: #7b8781;
  font-size: 8px;
  line-height: 1.45;
}
.choice { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 10px; }
.choice span { width: 10px; height: 10px; border-radius: 50%; background: var(--selected); }
.mask-help { margin: -2px 0 12px; color: #707a76; font-size: 10px; line-height: 1.5; }
.auto-mask-status { display: flex; gap: 11px; align-items: center; padding: 13px; border: 1px solid #d7ddd8; background: #f2f6f2; }
.analysis-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); }
.auto-mask-status strong, .auto-mask-status small { display: block; }
.auto-mask-status strong { font-size: 10px; }
.auto-mask-status small { margin-top: 3px; color: #78817d; font-size: 8px; }
.auto-mask-status.processing .analysis-icon { animation: spin .8s linear infinite; }
.auto-mask-status.success { border-color: #83aa8d; background: #edf7ef; }
.auto-mask-status.error { border-color: #c99898; background: #fff1f1; }
.mask-mode-switch {
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #687871;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}
.mask-mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mask-mode-switch i {
  position: relative;
  width: 42px;
  height: 23px;
  border-radius: 20px;
  background: #3f715f;
  cursor: pointer;
  transition: .2s ease;
}
.mask-mode-switch i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: .2s ease;
}
.mask-mode-switch input:checked + i { background: #8a7765; }
.mask-mode-switch input:checked + i::after { transform: translateX(19px); }
.manual-mask-panel { margin-top: 10px; padding: 11px; border-radius: 12px; background: #f7f4f0; }
.manual-mask-panel[hidden] { display: none !important; }
.advanced-mask { margin-top: 10px; }
.advanced-mask summary { cursor: pointer; color: #68736e; font-size: 9px; font-weight: 800; }
.advanced-mask .mask-help { margin-top: 10px; }
.brush-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 7px; }
.brush-row label { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 700; }
.brush-row input { min-width: 0; width: 100%; accent-color: var(--green); }
.brush-row button { padding: 7px 8px; border: 1px solid #d0cec7; background: white; cursor: pointer; font-size: 8px; font-weight: 700; }
.feather-field { display: block; margin-top: 11px; }
.feather-field > span { display: block; margin-bottom: 5px; color: #77817c; font-size: 8px; font-weight: 800; }
.feather-field select {
  width: 100%;
  height: 39px;
  padding: 8px;
  border: 1px solid #dfe2dc;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-size: 9px;
}
.feather-field small { display: block; margin-top: 6px; color: #78867f; font-size: 7px; line-height: 1.4; }
.pro-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pro-options label > span { display: block; margin-bottom: 5px; color: #77817c; font-size: 8px; font-weight: 800; }
.pro-options select { width: 100%; padding: 8px; border: 1px solid #d0cec7; background: white; font-size: 9px; }
.quality-options { display: grid; gap: 8px; margin-top: 12px; }
.quality-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #dde4df;
  border-radius: 14px;
  background: #fbfcfa;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.quality-option:hover { transform: translateY(-1px); border-color: #aac2b8; }
.quality-option.selected {
  border-color: #39745f;
  background: #eef6f2;
  box-shadow: 0 7px 18px rgba(36,93,77,.08);
}
.quality-option input { accent-color: var(--green); }
.quality-option b { display: block; color: var(--ink); font-size: 10px; }
.quality-option small { display: block; margin-top: 3px; color: #74817c; font-size: 7px; line-height: 1.35; }
.color-lock {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 11px;
  padding: 11px 12px;
  border: 1px solid #dfe7e2;
  border-radius: 14px;
  background: #f8faf7;
  font-size: 9px;
  font-weight: 700;
}
.color-lock input { accent-color: var(--green); }
.color-lock span { display: grid; gap: 3px; }
.color-lock b { color: var(--ink); font-size: 9px; }
.color-lock small { color: #77847e; font-size: 7px; line-height: 1.35; }
.custom-instruction { display: block; margin-top: 13px; }
.optional-badge { margin-left: auto; padding: 4px 6px; border-radius: 7px; color: #63756d; background: #edf2ee; font-size: 7px; font-weight: 700; }
.custom-instruction > span { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 9px; font-weight: 800; }
.custom-instruction > span small { padding: 4px 6px; border-radius: 7px; color: #63756d; background: #edf2ee; font-size: 7px; font-weight: 700; }
.custom-instruction textarea {
  width: 100%;
  min-height: 58px;
  padding: 10px;
  resize: none;
  border: 1px solid #d5ddd8;
  background: #fbfcfa;
  color: var(--ink);
  font-size: 9px;
  line-height: 1.45;
  outline: none;
}
.custom-instruction textarea:focus { border-color: #6e9988; box-shadow: 0 0 0 3px rgba(36,93,77,.09); }
.custom-instruction > small { display: block; margin-top: 5px; color: #7d8983; font-size: 7px; line-height: 1.4; }
.prompt-panel { margin: -4px 0 18px; border: 1px solid #d9d6ce; background: #faf9f6; }
.prompt-panel summary {
  padding: 12px 13px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; list-style: none; font-size: 10px; font-weight: 800;
}
.prompt-panel summary::-webkit-details-marker { display: none; }
.prompt-panel[open] summary span { transform: rotate(180deg); }
.prompt-content { padding: 0 12px 12px; border-top: 1px solid #e2dfd7; }
.prompt-content label, .prompt-content label > span { display: block; }
.prompt-content label > span { margin: 11px 0 5px; color: #77817c; font-size: 7px; font-weight: 800; letter-spacing: 1px; }
.prompt-content textarea {
  width: 100%; min-height: 118px; padding: 9px; resize: vertical;
  border: 1px solid #d6d3cb; background: white; color: #31443e;
  font: 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}
#negativePromptPreview { min-height: 75px; }
#copyPrompt { width: 100%; margin-top: 9px; padding: 9px; border: 1px solid var(--green); background: white; cursor: pointer; font-size: 9px; font-weight: 800; }

.generate {
  width: 100%; min-height: 64px; padding: 12px 18px; display: flex; align-items: center; gap: 15px;
  border: 0; background: var(--green); color: white; text-align: left; cursor: pointer;
}
.generate > span { font-size: 20px; }
.generate strong, .generate small { display: block; }
.generate strong { font-size: 13px; }
.generate small { margin-top: 3px; color: #b9cac4; font-size: 9px; }
.generate:disabled { opacity: .45; cursor: not-allowed; }

.workspace { min-width: 0; min-height: calc(100vh - 64px); padding: 28px; display: flex; flex-direction: column; }
.workspace-head {
  height: 44px; display: flex; align-items: flex-start; justify-content: space-between;
  font-size: 11px;
}
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #b1b5b2; }
.status-dot.ready { background: #58a568; box-shadow: 0 0 0 4px rgba(88,165,104,.12); }
.workspace-head button { padding: 0; border: 0; background: transparent; color: #6f7975; cursor: pointer; font-size: 10px; }

.stage { position: relative; flex: 1; min-height: 530px; overflow: hidden; background: #dfdbd2; }
.empty-state {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #7f8884; background:
    linear-gradient(135deg, rgba(255,255,255,.3) 25%, transparent 25%) 0 0 / 30px 30px,
    #dfdbd2;
}
.empty-state strong { margin-top: 10px; font-size: 12px; }
.upload-scene {
  position: relative;
  width: 142px;
  height: 160px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.upload-scene::before,
.upload-scene::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.upload-scene::before {
  inset: 8px;
  background: radial-gradient(circle, rgba(36,93,77,.12), transparent 62%);
  animation: uploadGlow 3.2s ease-in-out infinite;
}
.upload-scene::after {
  width: 132px;
  height: 132px;
  border: 1px dashed rgba(36,93,77,.22);
  animation: uploadOrbit 12s linear infinite;
}
.phone-frame {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 132px;
  padding: 9px 7px 8px;
  border: 2px solid #202421;
  border-radius: 23px;
  background: linear-gradient(160deg, #fbfbf8, #e1e4dd);
  box-shadow: 0 19px 38px rgba(24,53,45,.2), inset 0 0 0 1px rgba(255,255,255,.7);
  transform: rotate(-3deg);
}
.phone-frame::before,
.phone-frame::after {
  content: "";
  position: absolute;
  width: 2px;
  border-radius: 99px;
  background: #202421;
}
.phone-frame::before {
  left: -4px;
  top: 28px;
  height: 22px;
  box-shadow: 0 34px 0 #202421;
}
.phone-frame::after {
  right: -4px;
  top: 48px;
  height: 24px;
}
.phone-speaker {
  position: absolute;
  z-index: 4;
  top: 5px;
  left: 50%;
  width: 26px;
  height: 7px;
  display: block;
  margin: 0;
  border-radius: 99px;
  background: #151817;
  transform: translateX(-50%);
  box-shadow: inset 7px 0 0 rgba(255,255,255,.035);
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.65), transparent 30%),
    linear-gradient(180deg, #eef2ec 0 42%, #d3d9d0 42% 47%, #eff1eb 47% 100%);
}
.phone-screen i,
.phone-screen b {
  position: absolute;
  display: block;
  background: rgba(36,93,77,.56);
}
.phone-screen i:nth-child(1) {
  left: 9px;
  right: 9px;
  top: 29px;
  height: 22px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 31%, rgba(255,255,255,.28) 31% 34%, transparent 34% 64%, rgba(255,255,255,.28) 64% 67%, transparent 67%),
    rgba(36,93,77,.5);
}
.phone-screen i:nth-child(2) {
  left: 9px;
  right: 9px;
  top: 64px;
  height: 5px;
  border-radius: 99px;
  background: #8f7a5f;
  box-shadow: 0 34px 0 rgba(36,93,77,.16);
}
.phone-screen i:nth-child(3) {
  left: 9px;
  right: 9px;
  top: 70px;
  width: auto;
  height: 24px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 31%, rgba(255,255,255,.28) 31% 34%, transparent 34% 64%, rgba(255,255,255,.28) 64% 67%, transparent 67%),
    rgba(36,93,77,.42);
}
.phone-screen b {
  display: none;
}
.phone-screen em {
  position: absolute;
  left: -18px;
  right: -18px;
  top: -18px;
  height: 18px;
  display: block;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  filter: blur(2px);
  transform: rotate(-16deg);
  animation: uploadScan 2.7s ease-in-out infinite;
}
.upload-pulse {
  position: absolute;
  right: 12px;
  bottom: 21px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #16483c, #2d725e);
  box-shadow: 0 10px 22px rgba(24,53,45,.18);
}
.upload-pulse::before {
  content: "+";
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
}
.upload-pulse::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 17px;
  border: 1px solid rgba(36,93,77,.23);
  animation: uploadPulse 1.9s ease-out infinite;
}
@keyframes uploadScan {
  0%, 22% { top: -18px; opacity: 0; }
  35% { opacity: .9; }
  76% { top: 126px; opacity: .1; }
  100% { top: 126px; opacity: 0; }
}
@keyframes uploadPulse {
  from { transform: scale(.82); opacity: .8; }
  to { transform: scale(1.35); opacity: 0; }
}
@keyframes uploadGlow {
  0%, 100% { transform: scale(.94); opacity: .65; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes uploadOrbit {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .upload-scene::before,
  .upload-scene::after,
  .phone-screen em,
  .upload-pulse::after {
    animation: none;
  }
}
#beforeImage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #202623; display: none; }
#maskCanvas { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; display: none; cursor: crosshair; touch-action: none; }
.after-layer { position: absolute; inset: 0 0 0 50%; overflow: hidden; display: none; }
#afterCanvas { position: absolute; top: 0; right: 0; width: var(--stage-width); height: var(--stage-height); object-fit: contain; background: #202623; }
.compare-line { position: absolute; z-index: 5; top: 0; bottom: 0; left: 50%; width: 2px; background: white; display: none; pointer-events: none; }
.compare-line span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: white; color: var(--green); font-weight: 900; box-shadow: 0 5px 20px rgba(0,0,0,.25);
}
#compareSlider { position: absolute; z-index: 6; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; display: none; }
.tag {
  position: absolute; z-index: 4; top: 18px; padding: 7px 10px;
  background: rgba(18,31,27,.7); color: white; font-size: 8px; letter-spacing: 1.5px; display: none;
}
.before-tag { left: 18px; }
.after-tag { right: 18px; background: var(--green); }
.processing {
  position: absolute; z-index: 10; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(24,50,43,.9); color: white;
}
.processing.show { display: flex; }
.progress-card {
  width: min(470px,calc(100% - 30px));
  padding: 28px;
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 80px rgba(0,0,0,.25);
}
.progress-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.progress-heading small, .progress-heading strong { display: block; }
.progress-heading small { color: #6f7e77; font-size: 7px; font-weight: 800; letter-spacing: 1.4px; }
.progress-heading strong { margin-top: 6px; font-size: 19px; letter-spacing: -.6px; }
.progress-heading > span { padding: 7px 9px; border-radius: 9px; color: #587066; background: #eef3f0; font-size: 10px; font-weight: 800; }
.progress-percent-row { display: flex; justify-content: space-between; margin: 22px 0 8px; font-size: 9px; font-weight: 800; }
.progress-percent-row b { color: #28644f; font-size: 11px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 10px; background: #e5e9e6; }
.progress-track i { display: block; width: 4%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2d7960,#173f34); transition: width .7s ease; }
.progress-steps { display: grid; gap: 13px; margin: 23px 0 0; padding: 0; list-style: none; }
.progress-steps li { display: flex; align-items: center; gap: 11px; color: #9aa29e; font-size: 10px; font-weight: 700; }
.progress-steps li i { width: 19px; height: 19px; flex: none; border: 2px solid #d0d7d3; border-radius: 50%; }
.progress-steps li.active { color: #245f4c; }
.progress-steps li.active i { border-color: #2e8063; border-top-color: transparent; animation: spin .8s linear infinite; }
.progress-steps li.done { color: #52675e; }
.progress-steps li.done i { display: grid; place-items: center; border-color: #2f7e62; background: #2f7e62; }
.progress-steps li.done i::after { content: "✓"; color: white; font-size: 10px; font-style: normal; }
.progress-note { display: block; margin-top: 22px; color: #7b8781; text-align: center; font-size: 8px; }
.spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .progress-card { padding: 22px 18px; border-radius: 18px; }
  .progress-heading strong { font-size: 16px; }
  .progress-steps { gap: 11px; }
  .progress-steps li { font-size: 9px; }
}

.result-bar {
  min-height: 72px; padding: 0 18px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 20px;
  border: 1px solid var(--line); border-top: 0; background: white;
}
.result-bar[hidden] { display: none !important; }
.result-bar > div:not(.result-actions) { align-self: center; }
.result-bar small, .result-bar strong { display: block; }
.result-bar small { margin-bottom: 4px; color: #8a928e; font-size: 8px; letter-spacing: 1.1px; }
.result-bar strong { font-size: 11px; }
.result-bar i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--selected); vertical-align: -1px; }
.result-bar button { padding: 10px 14px; border: 1px solid #c8cbc7; background: white; cursor: pointer; font-size: 9px; font-weight: 800; }
.result-bar button:disabled { opacity: .4; cursor: not-allowed; }

@media (max-width: 850px) {
  .studio { grid-template-columns: 330px 1fr; }
  .panel { padding: 20px; }
  .workspace { padding: 20px; }
}

@media (max-width: 680px) {
  .studio { display: block; }
  .panel { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin-bottom: 28px; }
  .workspace { min-height: 590px; padding: 14px; }
  .stage { min-height: 440px; }
  .result-bar { grid-template-columns: 1fr 1fr; }
  .result-bar button { grid-column: 1 / -1; margin-bottom: 12px; }
  .package-grid { grid-template-columns: 1fr; }
  .package-card.featured { transform: none; }
}

/* 2026 modern arayüz */
:root {
  --ink: #18352d;
  --green: #173f34;
  --green-2: #245d4d;
  --mint: #eaf3ef;
  --cream: #f4f3ee;
  --paper: rgba(255,255,255,.94);
  --line: #dedfd9;
  --muted: #738079;
  --shadow-sm: 0 8px 25px rgba(24,53,45,.07);
  --shadow-lg: 0 24px 70px rgba(24,53,45,.13);
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(173,199,187,.18), transparent 31rem),
    var(--cream);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.01em;
}

button, input, select, textarea { border-radius: 11px; }
button { transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
button:not(:disabled):active { transform: translateY(1px); }

.account-bar {
  height: 72px;
  padding: 0 clamp(16px, 3vw, 42px);
  border-bottom: 1px solid rgba(24,53,45,.09);
  background: rgba(252,252,249,.88);
  box-shadow: 0 1px 0 rgba(255,255,255,.75);
  backdrop-filter: blur(18px);
}
body.native-app .account-bar {
  height: calc(72px + var(--native-safe-top));
  padding-top: var(--native-safe-top);
}
.account-brand { display: flex; align-items: center; gap: 11px; }
.account-brand::before {
  content: "US";
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; color: white; background: linear-gradient(145deg, var(--green-2), var(--green));
  box-shadow: 0 8px 20px rgba(23,63,52,.18); font-size: 11px; font-weight: 800;
}
.account-brand b { font-size: 12px; letter-spacing: 1.2px; }
.account-brand span { color: var(--muted); font-size: 7px; letter-spacing: 1.3px; }
.account-nav { height: 46px; align-self: center; gap: 5px; padding: 4px; border: 1px solid rgba(24,53,45,.08); border-radius: 15px; background: rgba(236,239,235,.75); }
.nav-button { padding: 0 16px; border: 0; border-radius: 11px; color: #69756f; font-size: 9px; font-weight: 700; }
.nav-button:hover { color: var(--ink); background: rgba(255,255,255,.62); }
.nav-button.active { border: 0; color: var(--ink); background: white; box-shadow: 0 3px 12px rgba(24,53,45,.09); }
.credit-pill { padding: 8px 13px; border: 1px solid #d9e7df; background: var(--mint); color: var(--green); }
.account-button { padding: 10px 16px; border: 0; border-radius: 12px; color: white; background: var(--green); box-shadow: 0 8px 18px rgba(23,63,52,.14); }
.account-button:hover { background: var(--green-2); transform: translateY(-1px); }
.install-button { padding: 9px 12px; border: 1px solid #c8d8d0; color: var(--green); background: #f2f7f4; font-size: 8px; font-weight: 800; }

.auth-gate {
  inset: 72px 0 0;
  overflow: auto;
  background:
    radial-gradient(circle at 20% 20%, rgba(144,177,161,.42), transparent 28rem),
    radial-gradient(circle at 85% 75%, rgba(211,193,155,.28), transparent 28rem),
    linear-gradient(135deg, #edf1ec, #f7f4ed);
}
body.native-app .auth-gate {
  inset: calc(72px + var(--native-safe-top)) 0 0;
}
.auth-gate[hidden], body.signed-in .auth-gate { display: none !important; }
.auth-gate::before, .auth-gate::after {
  content: ""; position: fixed; z-index: -1; width: 260px; height: 360px;
  border-radius: 120px 120px 28px 28px; border: 1px solid rgba(23,63,52,.09);
  background: rgba(255,255,255,.19); transform: rotate(18deg);
}
.auth-gate::before { left: 8%; top: 19%; }
.auth-gate::after { right: 8%; bottom: 4%; transform: rotate(-16deg); }
.auth-card {
  width: min(440px, 100%);
  padding: 42px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}
.auth-logo {
  width: 54px; height: 54px; border: 0; border-radius: 17px;
  color: white; background: linear-gradient(145deg, var(--green-2), var(--green));
  box-shadow: 0 12px 25px rgba(23,63,52,.2);
}
.auth-card h1 { margin-top: 25px; font-size: clamp(27px,4vw,34px); line-height: 1.12; letter-spacing: -1.6px; }
.auth-card > p { max-width: 330px; margin: 0 auto 27px; color: var(--muted); }
.google-login, #emailForm button, #emailForm input { height: 49px; border-radius: 13px; }
.google-login { border-color: #dfe2dc; box-shadow: 0 5px 16px rgba(24,53,45,.05); }
.google-login:hover { border-color: #bfc9c2; background: #fbfcfa; }
.google-login:disabled { cursor: not-allowed; opacity: .58; background: #f2f3ef; }
#emailForm input { padding: 0 15px; border-color: #dfe2dc; background: rgba(255,255,255,.9); outline: none; }
#emailForm input:focus { border-color: #6f9889; box-shadow: 0 0 0 4px rgba(61,117,96,.1); }
#emailForm button { background: linear-gradient(135deg, var(--green), var(--green-2)); box-shadow: 0 8px 20px rgba(23,63,52,.15); }

.studio {
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(360px, 420px) 1fr;
  gap: 18px;
  padding: 18px;
}
.panel {
  min-height: calc(100vh - 108px);
  max-height: calc(100vh - 108px);
  padding: 22px;
  border: 1px solid rgba(24,53,45,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  scrollbar-width: thin;
  scrollbar-color: #c9d0cb transparent;
}
.brand { margin: 2px 2px 24px; padding-bottom: 20px; border-bottom: 1px solid #eaebe6; }
.brand-mark { width: 44px; height: 44px; border: 0; border-radius: 14px; color: white; background: var(--green); box-shadow: 0 9px 20px rgba(23,63,52,.16); }
.brand small { color: var(--muted); }
.control-block {
  margin-bottom: 12px;
  padding: 17px;
  border: 1px solid #e4e6e0;
  border-radius: 17px;
  background: rgba(255,255,255,.7);
}
.block-title { margin-bottom: 13px; }
.block-title > span { width: 27px; height: 27px; border: 0; color: var(--green); background: var(--mint); }
.block-title h2 { font-size: 12px; letter-spacing: -.15px; }
.photo-help-button { margin-left: auto; padding: 6px 8px; border: 0; color: #547266; background: #edf3ef; font-size: 7px; font-weight: 800; }
.upload {
  min-height: 120px;
  border: 1.5px dashed #aabbb2;
  border-radius: 15px;
  background: linear-gradient(145deg, #fafbf9, #f3f7f4);
}
.upload:hover, .upload.dragover { border-color: var(--green-2); background: var(--mint); transform: translateY(-1px); box-shadow: inset 0 0 0 3px rgba(36,93,77,.04); }
.upload-symbol { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--green); font-size: 19px; }
.model-grid { gap: 9px; }
.model {
  min-height: 104px; padding: 8px; border-color: #e1e3de; border-radius: 13px; background: #fbfcfa;
  display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 9px; text-align: left;
}
.model:hover { border-color: #9eb3a9; transform: translateY(-1px); }
.model.selected { border: 1.5px solid #39745f; background: #edf5f1; box-shadow: 0 5px 15px rgba(36,93,77,.08); }
.model img { width: 64px; height: 82px; display: block; border-radius: 8px; object-fit: cover; background: #f4f4f1; }
.model span, .model b, .model small { display: block; }
.model b { font-size: 10px; }
.model small { margin-top: 4px; color: #7a8781; font-size: 7px; line-height: 1.3; }
.door { border-radius: 3px; }
.colors { gap: 12px; }
.color { border-width: 3px; box-shadow: 0 0 0 1px #d4d5d0, 0 4px 10px rgba(24,53,45,.08); }
.color:hover { transform: scale(1.07); }
.color.selected { box-shadow: 0 0 0 2px white, 0 0 0 4px var(--green), 0 5px 12px rgba(24,53,45,.13); }
.choice { padding: 9px 11px; border-radius: 11px; background: #f4f6f3; }
.auto-mask-status { border: 0; border-radius: 13px; background: linear-gradient(135deg, #edf5f1, #f5f8f5); }
.analysis-icon { border-radius: 11px; }
.advanced-mask { padding: 10px 11px; border-radius: 12px; background: #f7f8f5; }
.pro-options select { height: 39px; border-color: #dfe2dc; border-radius: 10px; }
.prompt-panel { margin: 12px 0; border-color: #e0e2dc; border-radius: 15px; overflow: hidden; background: rgba(255,255,255,.72); }
.prompt-content textarea { border-radius: 10px; }
.generate {
  position: sticky; bottom: 0;
  min-height: 70px; border-radius: 16px;
  background: linear-gradient(135deg, #12372e, #28614f);
  box-shadow: 0 14px 28px rgba(23,63,52,.2);
}
.generate:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 17px 32px rgba(23,63,52,.27); }
.generate > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.13); }

.workspace {
  min-height: calc(100vh - 108px);
  padding: 5px 5px 5px 0;
}
.workspace-head {
  height: 49px; padding: 0 9px; align-items: center;
}
.workspace-head > div { padding: 8px 12px; border-radius: 20px; background: rgba(255,255,255,.64); }
.workspace-head button { padding: 8px 12px; border: 1px solid rgba(24,53,45,.1); border-radius: 10px; background: rgba(255,255,255,.62); }
.stage {
  min-height: 540px;
  border: 1px solid rgba(24,53,45,.09);
  border-radius: 24px;
  background: #d8d9d2;
  box-shadow: 0 18px 50px rgba(24,53,45,.12);
}
.empty-state {
  color: #6d7c75;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.58), transparent 38%),
    linear-gradient(135deg, #e8eae4, #daddd6);
}
.empty-state strong { font-size: 13px; }
.tag { top: 20px; padding: 8px 12px; border-radius: 9px; backdrop-filter: blur(8px); }
.before-tag { left: 20px; }
.after-tag { right: 20px; }
.processing { background: rgba(17,48,39,.88); backdrop-filter: blur(8px); }
.result-bar {
  margin-top: 12px; min-height: 75px; padding: 0 20px;
  border: 1px solid rgba(24,53,45,.08); border-radius: 17px;
  box-shadow: var(--shadow-sm);
}
.result-bar button { padding: 11px 15px; border: 0; color: white; background: var(--green); }

.dashboard-view { min-height: calc(100vh - 72px); padding: clamp(30px,5vw,64px) clamp(18px,7vw,100px); }
.dashboard-heading h1 { font-size: clamp(30px,4vw,46px); letter-spacing: -1.8px; }
.primary-small { border-radius: 12px; box-shadow: 0 8px 18px rgba(23,63,52,.14); }
.generation-grid { gap: 22px; }
.generation-card {
  border: 0; border-radius: 18px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.generation-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.generation-placeholder { min-height: 190px; display: grid; place-items: center; color: var(--muted); background: #e9ebe6; }
.stat-grid article, .package-card, .admin-table-wrap {
  border: 1px solid rgba(24,53,45,.08); border-radius: 18px; box-shadow: var(--shadow-sm);
}
.package-grid { gap: 22px; }
.package-card { padding: 34px; }
.package-card.featured { border-color: #79a28f; box-shadow: 0 22px 55px rgba(23,63,52,.15); }
.package-card button { border-radius: 12px; }
.package-card button:disabled { cursor: not-allowed; opacity: .55; }
.popular { border-radius: 8px; }
.admin-table-wrap { overflow: auto; }
.admin-delete-media { border-radius: 9px; }
.account-menu { top: 66px; border: 0; border-radius: 16px; box-shadow: var(--shadow-lg); }

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(47,118,90,.16), transparent 35%),
    linear-gradient(135deg, #f7f6f1, #eef1ea);
  color: var(--ink);
}
.legal-shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 60px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--ink);
  text-decoration: none;
}
.legal-brand img { width: 48px; height: 48px; object-fit: contain; }
.legal-brand b { display: block; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; }
.legal-brand small { color: var(--muted); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; }
.legal-card {
  padding: clamp(26px,5vw,54px);
  border: 1px solid rgba(24,53,45,.09);
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-lg);
}
.legal-card > small {
  color: #75837c;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
}
.legal-card h1 {
  margin: 12px 0 20px;
  color: var(--ink);
  font-size: clamp(32px,5vw,56px);
  letter-spacing: -2px;
}
.legal-card h2 {
  margin: 28px 0 8px;
  color: #173f34;
  font-size: 18px;
  letter-spacing: -.4px;
}
.legal-card p {
  margin: 0 0 12px;
  color: #53635b;
  font-size: 15px;
  line-height: 1.75;
}
.legal-card a { color: #173f34; font-weight: 800; }

@media (max-width: 1050px) {
  .studio { grid-template-columns: 350px 1fr; padding: 12px; gap: 12px; }
  .panel { padding: 16px; }
  .account-nav { max-width: 46vw; overflow-x: auto; }
}

@media (max-width: 760px) {
  .account-bar { height: auto; min-height: 68px; padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  body.native-app .account-bar {
    min-height: calc(68px + var(--native-safe-top));
    padding-top: calc(10px + var(--native-safe-top));
  }
  .account-brand span { display: none; }
  .account-nav { order: 3; width: 100%; max-width: none; height: 42px; overflow-x: auto; }
  .nav-button { flex: 1 0 auto; padding: 0 13px; }
  .studio { display: flex; flex-direction: column; padding: 10px; }
  .panel { order: 2; max-height: none; min-height: auto; padding: 14px; border-radius: 19px; }
  .workspace { order: 1; min-height: auto; padding: 0; }
  .workspace-head { height: 45px; }
  .stage { min-height: 52vh; border-radius: 19px; }
  .result-bar { grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
  .result-bar button { grid-column: 1/-1; margin-bottom: 12px; }
  .brand { display: none; }
  .control-block { padding: 15px; }
  .auth-gate { inset: 72px 0 0; align-items: start; padding-top: max(66px, calc(env(safe-area-inset-top) + 48px)); }
  body.native-app .auth-gate {
    inset: calc(72px + var(--native-safe-top)) 0 0;
    padding-top: 24px;
  }
  .auth-card { padding: 29px 22px; border-radius: 23px; }
  .dashboard-view { padding-top: 30px; }
  .stat-grid { grid-template-columns: 1fr; }
  .legal-shell { width: min(100% - 22px, 900px); padding-top: 18px; }
  .legal-card { border-radius: 22px; }
}

@media (max-width: 430px) {
  .account-brand::before { width: 34px; height: 34px; border-radius: 10px; }
  .account-brand b { font-size: 10px; }
  .account-actions { gap: 6px; }
  .credit-pill { padding: 7px 9px; }
  .account-button { padding: 9px 11px; }
  .stage { min-height: 47vh; }
  .model-grid { grid-template-columns: 1fr 1fr; }
  .pro-options { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: 1fr; }
}

/* Yeni marka ve açılış vitrini */
.account-brand::before { display: none; }
.logo-mark, .auth-logo, .brand-mark {
  flex: none;
  display: block;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 9px 18px rgba(23,63,52,.16));
}
.logo-mark { width: 39px; height: 39px; }
.auth-logo { width: 56px; height: 56px; margin: 0 auto; }
.brand-mark { width: 44px; height: 44px; }

.auth-gate {
  display: block;
  padding: clamp(18px,3vw,38px);
}
.auth-shell {
  width: min(1240px, 100%);
  min-height: calc(100vh - 72px - clamp(36px,6vw,76px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(360px,.65fr);
  gap: clamp(20px,3vw,42px);
  align-items: center;
}
.auth-story { min-width: 0; }
.hero-copy { max-width: 760px; margin-bottom: 22px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #3b6758;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.hero-kicker::before { content: ""; width: 26px; height: 1px; background: #6d9485; }
.hero-copy h1 {
  margin: 0;
  color: #14372e;
  font-size: clamp(34px,4.5vw,66px);
  line-height: 1.01;
  letter-spacing: -3.3px;
}
.hero-copy h1 em { color: #557a6c; font-style: normal; font-weight: 500; }
.hero-copy p {
  max-width: 610px;
  margin: 17px 0 0;
  color: #64766f;
  font-size: clamp(11px,1.15vw,14px);
  line-height: 1.7;
}
.hero-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 7px solid rgba(255,255,255,.8);
  border-radius: 24px;
  background: #d9dcd6;
  box-shadow: 0 28px 75px rgba(24,53,45,.18);
}
.hero-example-tabs {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 14px;
  display: flex;
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background: rgba(18,45,38,.34);
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}
.hero-example-tabs button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2px;
  white-space: nowrap;
}
.hero-example-tabs button.active {
  color: #173f34;
  background: white;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.hero-before, .hero-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hero-after-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: clip-path;
}
.hero-compare-line {
  position: absolute;
  z-index: 4;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px rgba(18,55,46,.08);
  pointer-events: none;
}
.hero-compare-line span {
  position: absolute;
  left: 50%; top: 50%;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 4px solid rgba(255,255,255,.6);
  border-radius: 50%;
  color: #173f34;
  background: white;
  box-shadow: 0 9px 25px rgba(0,0,0,.22);
  font-size: 15px;
  font-weight: 900;
  transform: translate(-50%,-50%);
}
#heroCompareSlider {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.hero-label {
  position: absolute;
  z-index: 3;
  top: 17px;
  padding: 8px 11px;
  border-radius: 9px;
  color: white;
  background: rgba(18,45,38,.68);
  backdrop-filter: blur(8px);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.3px;
}
.hero-label-before { left: 17px; }
.hero-label-after { right: 17px; background: rgba(29,91,72,.82); }
.hero-caption {
  margin: 16px 0 0;
  color: #254d40;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.15px;
}
.hero-caption::before, .hero-caption::after { content: "✦"; margin: 0 9px; color: #8ea99e; font-size: 9px; }
.how-it-works { width: min(1100px,100%); margin: 22px auto 10px; padding: 26px; border: 1px solid rgba(24,53,45,.08); border-radius: 24px; background: rgba(255,255,255,.62); }
.how-heading { text-align: center; }
.how-heading small { color: #517366; font-size: 8px; font-weight: 800; letter-spacing: 1.7px; }
.how-heading h2 { max-width: 630px; margin: 8px auto 22px; font-size: clamp(21px,2.5vw,32px); letter-spacing: -1.2px; }
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.how-grid article { padding: 18px; border-radius: 16px; background: rgba(255,255,255,.78); }
.how-grid article > span { color: #7d998d; font-size: 9px; font-weight: 800; }
.how-grid strong { display: block; margin-top: 9px; font-size: 12px; }
.how-grid p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }

.auth-card {
  width: 100%;
  padding: clamp(29px,3vw,42px);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, #0f8a63, #1db7a3);
}
.auth-brand-name {
  display: block;
  margin-top: 14px;
  color: #244d40;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
}
.auth-card h2 {
  margin: 10px 0 10px;
  color: #183a30;
  font-size: clamp(28px,3vw,38px);
  letter-spacing: -1.2px;
}
.auth-card > p { margin-bottom: 26px; }
.auth-divider span { font-size: 11px; }
.auth-tabs button { font-size: 14px; }
#emailForm label > span,
.auth-row small {
  font-size: 12px;
  letter-spacing: 1.5px;
}
#emailForm input {
  font-size: 15px;
}
#emailForm input::placeholder {
  font-size: 15px;
}
#emailForm button,
.google-login {
  font-size: 14px;
}
.text-auth-button {
  font-size: 12px !important;
}
.auth-message strong {
  font-size: 13px;
}
.auth-message span {
  font-size: 12px;
}
@media (min-width: 761px) {
  .auth-card { max-width: 520px; }
  .google-login { height: 58px; font-size: 14px; }
  #emailForm input, #emailForm button { height: 56px; font-size: 15px; }
}

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr minmax(330px,.8fr); }
  .hero-copy h1 { letter-spacing: -2.2px; }
}

@media (max-width: 760px) {
  .account-brand::before { display: none; }
  .logo-mark { width: 34px; height: 34px; }
  .auth-gate { padding: 20px 14px 35px; }
  body.native-app .auth-gate { padding: 24px 14px 35px; }
  .auth-shell { min-height: auto; grid-template-columns: 1fr; gap: 25px; }
  .auth-story { display: flex; flex-direction: column; }
  .hero-copy { margin-bottom: 17px; text-align: center; }
  .hero-kicker { justify-content: center; }
  .hero-copy h1 { font-size: clamp(31px,10vw,46px); letter-spacing: -2px; }
  .hero-copy p { margin: 13px auto 0; }
  .hero-compare { border-width: 5px; border-radius: 18px; }
  .hero-example-tabs {
    top: 10px;
    padding: 5px;
  }
  .hero-example-tabs button {
    min-height: 28px;
    padding: 0 10px;
    font-size: 8px;
  }
  .hero-caption { font-size: 10px; }
  .auth-card { max-width: 520px; margin: auto; }
  #emailForm input,
  #newPasswordInput,
  #customHexInput,
  .custom-instruction textarea,
  .feather-field select,
  .password-recovery input {
    font-size: 16px !important;
  }
  #emailForm input::placeholder,
  #newPasswordInput::placeholder,
  #customHexInput::placeholder,
  .custom-instruction textarea::placeholder {
    font-size: 15px;
  }
  .name-fields { grid-template-columns: 1fr; }
  .auth-row { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (max-width: 430px) {
  .account-brand div span { display: none; }
  .hero-copy h1 br { display: none; }
  .hero-compare { aspect-ratio: 4/3; }
  .hero-compare-line span { width: 42px; height: 42px; }
  .hero-label { top: 12px; padding: 6px 8px; }
  .hero-label-before { left: 12px; }
  .hero-label-after { right: 12px; }
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 !important;
}
.result-actions button { min-width: 118px; min-height: 42px; }
.result-bar .result-actions button {
  padding: 11px 15px;
  border: 0;
  color: white;
  background: var(--green);
}
.result-bar .result-actions #shareButton {
  color: var(--green);
  border: 1px solid #bfcfc7;
  background: white;
}
.result-bar .result-actions button:disabled { opacity: .4; cursor: not-allowed; }

@media (max-width: 760px) {
  .result-actions { grid-column: 1/-1; margin-bottom: 12px; }
  .result-actions button { flex: 1; }
  .how-it-works { padding: 20px 14px; }
  .how-grid { grid-template-columns: 1fr; }
  .photo-guide { padding: 25px 18px; }
  .photo-guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .result-bar {
    min-height: 0;
    padding: 14px;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: center;
  }
  .result-bar > div:not(.result-actions) {
    min-height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .result-actions {
    grid-column: 1/-1;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    justify-content: center;
  }
  .result-actions button {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px !important;
  }
}

@media (max-width: 430px) {
  .inline-photo-guide { grid-template-columns: 1fr; }
  .result-bar { border-radius: 14px; }
  .result-bar small { font-size: 7px; }
  .result-bar strong { font-size: 10px; }
}

/* Stüdyo yerleşim düzeltmeleri */
.prompt-panel[hidden] { display: none !important; }
.history-retention {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.empty-state { cursor: pointer; }
.empty-state small {
  margin-top: 8px;
  color: #819087;
  font-size: 9px;
  font-weight: 600;
}
.empty-state:focus-visible {
  outline: 3px solid rgba(36,93,77,.28);
  outline-offset: -5px;
}
.empty-state.dragover {
  color: var(--green);
  background: #e4eee8;
  box-shadow: inset 0 0 0 3px rgba(36,93,77,.2);
}
.generate { position: static; }
.result-bar { grid-template-columns: 1fr 1fr minmax(220px,1fr); }
.result-actions { justify-self: center; }

@media (min-width: 1000px) {
  .studio {
    grid-template-columns: 350px minmax(0,1fr);
    gap: 14px;
    padding: 14px;
  }
  .panel {
    min-height: calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    padding: 15px;
    border-radius: 19px;
  }
  .brand {
    margin-bottom: 14px;
    padding: 2px 3px 14px;
  }
  .brand-mark { width: 39px; height: 39px; }
  .control-block {
    margin-bottom: 9px;
    padding: 13px;
    border-radius: 14px;
  }
  .block-title { margin-bottom: 10px; }
  .block-title > span { width: 24px; height: 24px; }
  .upload { min-height: 92px; }
  .upload-symbol { width: 29px; height: 29px; }
  .model { min-height: 82px; padding: 6px; grid-template-columns: 48px 1fr; }
  .model img { width: 48px; height: 64px; }
  .colors { gap: 9px; }
  .choice { margin-top: 9px; padding: 7px 9px; }
  .auto-mask-status { padding: 10px; }
  .analysis-icon { width: 28px; height: 28px; }
  .pro-options { margin-top: 9px; }
  .color-lock { margin-top: 8px; }
  .generate { min-height: 60px; border-radius: 14px; }
  .workspace {
    min-height: calc(100vh - 100px);
    height: calc(100vh - 100px);
  }
  .workspace-head { height: 46px; }
  .stage { min-height: 0; }
  .result-bar { flex: none; min-height: 68px; }
}

@media (max-width: 760px) {
  .result-bar { grid-template-columns: 1fr 1fr; }
  .empty-state small { max-width: 240px; padding: 0 12px; text-align: center; }
  .support-widget { right: 14px; bottom: 14px; }
  .support-fab { width: 58px; height: 58px; border-radius: 20px; }
  .support-panel {
    right: -2px;
    bottom: 72px;
    width: min(360px, calc(100vw - 24px));
    max-height: calc(100vh - 130px);
    border-radius: 22px;
  }
  .support-body { max-height: min(255px, 38vh); }
}

@media (max-width: 900px) {
  .result-bar {
    min-height: 0;
    padding: 12px 14px;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: center;
  }
  .result-bar > div:not(.result-actions) {
    min-height: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .result-actions {
    grid-column: 1/-1;
    width: min(100%, 340px);
    margin: 0 auto;
    justify-self: center;
  }
  .result-actions button {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    padding: 8px 11px !important;
  }
}
