/* Shadow Remover homepage: the existing warm product UI with shadow-specific copy and controls. */
.shadow-hero { position: relative; padding-bottom: 86px; }
.shadow-hero .hero-heading { max-width: 980px; }
.shadow-hero .hero-announcement { display: inline-flex; width: fit-content; max-width: min(100%, calc(100vw - 32px)); margin: 0 auto; align-items: center; justify-content: center; gap: 10px; padding: 5px !important; border: 1px solid rgba(239, 188, 113, .22); border-radius: 999px; background: rgba(44, 32, 22, .88); box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 8px 24px rgba(0, 0, 0, .12); line-height: 1.2; }
.shadow-hero .hero-announcement-leading { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 3px 8px 3px 3px; border: 1px solid rgba(239, 188, 113, .2); border-radius: 999px; background: rgba(28, 21, 16, .72); box-shadow: inset 0 1px rgba(255, 255, 255, .035); }
.shadow-hero .hero-announcement-badge { min-height: 32px; padding: 6px 15px; border: 1px solid rgba(255, 228, 193, .16); border-radius: 999px; background: #df9a5e; box-shadow: inset 0 1px rgba(255, 255, 255, .12); color: #24170f; font-size: .84rem; font-weight: 750; line-height: 1; white-space: nowrap; }
.shadow-hero .hero-announcement-icon { flex: 0 0 22px; width: 22px; height: 22px; }
.shadow-hero .hero-announcement-icon svg { width: 100%; height: 100%; fill: currentColor; }
.shadow-hero .hero-announcement-text { display: block; padding-right: 9px; color: #d8cec4; font-size: .86rem; white-space: nowrap; }
.shadow-hero .landing-hero-copy { max-width: 820px; margin: 28px auto 0; }
.shadow-hero .hero-proof-row { justify-content: center; margin-top: 23px; }

.shadow-tool-shell { width: min(980px, 100%); margin: 32px auto 0; padding: 14px; border: 1px solid var(--color-border); border-radius: 22px; background: rgba(38, 28, 21, .96); box-shadow: 0 18px 46px rgba(0, 0, 0, .2); text-align: left; }
.shadow-tool-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr); gap: 12px; }
.shadow-uploader-panel, .shadow-result-panel { min-width: 0; padding: 14px; border: 1px solid var(--color-border); border-radius: 15px; background: #211811; }
.shadow-dropzone { display: grid; min-height: 178px; place-items: center; padding: 18px; border: 1.5px dashed rgba(240, 176, 107, .42); border-radius: 14px; background: rgba(44, 32, 22, .5); color: var(--color-text); text-align: center; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.shadow-dropzone:hover, .shadow-dropzone:focus-visible, .shadow-dropzone.is-dragging { border-color: #f0b06b; background: rgba(53, 39, 30, .8); outline: none; transform: translateY(-1px); }
.shadow-empty-state { max-width: 420px; }
.shadow-upload-icon, .result-panel-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 16px; place-items: center; border: 1px solid rgba(223, 154, 94, .24); border-radius: 16px; background: rgba(223, 154, 94, .12); color: #f0b06b; }
.shadow-upload-icon { width: 46px; height: 46px; margin-bottom: 11px; border-radius: 13px; }
.shadow-upload-icon svg, .result-panel-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.shadow-empty-state h3, .result-view h3 { margin: 0 0 7px; color: #f4eee8; font-size: 1.1rem; line-height: 1.3; }
.shadow-empty-state p, .result-view p { margin: 0; color: var(--color-text-muted); line-height: 1.55; }
.dropzone-action-hint { display: block; margin-top: 10px; color: #c9a48c; font-size: .74rem; }
.shadow-preview-state { width: 100%; max-width: 440px; }
.shadow-preview-frame { display: grid; min-height: 170px; place-items: center; overflow: hidden; border-radius: 13px; background: #17110d; }
.shadow-preview-frame img { width: 100%; max-height: 218px; object-fit: contain; }
.shadow-file-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; color: #f0e7de; }
.shadow-file-meta strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shadow-file-meta span { flex: 0 0 auto; color: var(--color-text-muted); font-size: .78rem; }
.shadow-file-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 10px; }
.text-button { padding: 3px 0; border: 0; background: transparent; color: #f0b06b; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.text-button:hover { color: #ffd4a7; text-decoration: underline; }
.text-button:disabled { cursor: wait; opacity: .5; }
.text-button-danger { color: #dfa099; }
.shadow-format-note { margin: 8px 1px 0; color: var(--color-text-muted); font-size: .74rem; line-height: 1.45; }
.shadow-upload-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.shadow-upload-actions .button { gap: 7px; }
.shadow-upload-actions svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.shadow-inline-message, .shadow-tool-status { min-height: 1.35em; margin: 9px 1px 0; font-size: .78rem; line-height: 1.45; }
.shadow-inline-message { color: #efb0aa; }
.shadow-tool-status { color: #c9a48c; }

.shadow-settings-disclosure { margin-top: 10px; border-top: 1px solid rgba(239, 188, 113, .13); }
.shadow-settings-disclosure summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 1px; color: #c9a48c; font-size: .76rem; font-weight: 750; cursor: pointer; list-style: none; user-select: none; touch-action: manipulation; }
.shadow-settings-disclosure summary::-webkit-details-marker { display: none; }
.shadow-settings-disclosure summary:hover { color: #e6c0a2; }
.shadow-settings-disclosure summary:focus-visible { outline: 3px solid rgba(223, 154, 94, .3); outline-offset: 3px; border-radius: 5px; }
.settings-disclosure-icon { position: relative; display: block; flex: 0 0 auto; width: 24px; height: 24px; border: 1px solid rgba(239, 188, 113, .22); border-radius: 50%; color: #f0b06b; transition: border-color .2s ease, background-color .2s ease; }
.settings-disclosure-icon::before, .settings-disclosure-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); transition: opacity .2s ease, transform .2s ease; }
.settings-disclosure-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.shadow-settings-disclosure summary:hover .settings-disclosure-icon { border-color: rgba(239, 188, 113, .42); background: rgba(223, 154, 94, .08); }
.shadow-settings-disclosure[open] .settings-disclosure-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg) scaleX(.35); }
.shadow-settings { display: grid; gap: 12px; margin-top: 8px; padding: 12px; border: 1px solid rgba(239, 188, 113, .13); border-radius: 12px; background: rgba(44, 32, 22, .52); }
.shadow-setting-field { display: grid; gap: 7px; color: #dfd3c8; font-size: .78rem; font-weight: 750; }
.shadow-setting-field select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid rgba(239, 188, 113, .2); border-radius: 9px; background: #2a1f18; color: #f2ece5; font: inherit; }
.shadow-setting-field select:focus-visible, .shadow-setting-field input:focus-visible, .shadow-natural-toggle input:focus-visible { outline: 3px solid rgba(223, 154, 94, .3); outline-offset: 2px; }
.setting-label-row, .range-endpoints { display: flex; justify-content: space-between; gap: 10px; }
.setting-label-row output { color: #f0b06b; font-weight: 800; }
.shadow-setting-field input[type="range"] { width: 100%; accent-color: #df9a5e; }
.range-endpoints { color: #998a7e; font-size: .7rem; font-weight: 550; }
.shadow-natural-toggle { display: flex; align-items: flex-start; gap: 10px; padding-top: 3px; color: #e8ded5; cursor: pointer; }
.shadow-natural-toggle input { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: #df9a5e; }
.shadow-natural-toggle span { display: grid; gap: 2px; }
.shadow-natural-toggle strong { font-size: .78rem; }
.shadow-natural-toggle small { color: #a99b90; font-size: .72rem; font-weight: 450; line-height: 1.45; }
.shadow-tool-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.shadow-tool-actions .button { flex: 1 1 auto; }
.shadow-tool-actions .button:disabled { cursor: not-allowed; opacity: .42; transform: none; box-shadow: none; }
.button-spinner { width: 15px; height: 15px; margin-left: 7px; border: 2px solid rgba(36, 23, 15, .35); border-top-color: currentColor; border-radius: 50%; animation: shadow-spin .75s linear infinite; }
.shadow-privacy-note { display: grid; gap: 2px; margin-top: 10px; padding: 8px 10px; border-left: 3px solid rgba(223, 154, 94, .65); border-radius: 0 8px 8px 0; background: rgba(53, 39, 30, .42); }
.shadow-privacy-note strong { color: #ffd4a7; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.shadow-privacy-note span { color: #bfae9f; font-size: .74rem; line-height: 1.5; }

.shadow-result-panel { display: flex; min-height: 405px; align-items: center; justify-content: center; }
.result-view { width: 100%; }
.result-empty, .result-loading, .result-error, .result-no-shadow { text-align: center; }
.result-view > .result-panel-icon { margin-bottom: 18px; }
.result-error-icon { font-size: 1.4rem; font-weight: 800; }
.result-error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.loading-orbit { display: block; width: 56px; height: 56px; margin: 0 auto 20px; border: 3px solid rgba(223, 154, 94, .18); border-top-color: #f0b06b; border-right-color: #f0b06b; border-radius: 50%; animation: shadow-spin .85s linear infinite; }
.result-loading { text-align: center; }
.result-loading-text { max-width: 34rem; min-height: 3.1em; margin-inline: auto !important; }
.result-loading-meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 12px; border: 1px solid rgba(239, 188, 113, .18); border-radius: 999px; background: rgba(44, 32, 22, .68); color: #c9a48c; font-size: .74rem; line-height: 1.2; }
.result-loading-meta-label { color: #bfae9f; }
.result-loading-meta time { color: #f0b06b; font-variant-numeric: tabular-nums; font-weight: 800; }
.result-success-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 14px; }
.result-kicker { margin: 0 0 7px; color: #f0b06b !important; font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.result-success-heading h3 { margin-bottom: 0; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.result-check, .result-example-mark { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border-radius: 50%; font-weight: 900; }
.result-check { background: rgba(119, 128, 86, .2); color: #dfe7bd; }
.result-example-mark { border: 1px solid rgba(240, 176, 107, .35); background: rgba(223, 154, 94, .14); color: #ffd4a7; font-size: .82rem; }
.result-example-description { margin-top: 12px !important; font-size: .85rem; }
.result-curtain-help { margin-top: 10px !important; color: #c9a48c !important; font-size: .76rem !important; line-height: 1.5 !important; }
.result-important-note { margin: 15px 0 0; color: #bfae9f !important; font-size: .73rem !important; line-height: 1.55 !important; }
.result-success > .button { width: 100%; margin-top: 18px; }
.result-download-note { margin-top: 8px !important; text-align: center; font-size: .72rem !important; }
.result-success > .button-secondary { width: auto; display: flex; margin: 13px auto 0; }

.shadow-curtain { position: relative; width: 100%; }
.shadow-curtain-viewport { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid rgba(239, 188, 113, .16); border-radius: 14px; background: #17110d; isolation: isolate; touch-action: pan-y; cursor: ew-resize; }
.shadow-curtain-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.shadow-curtain-after { position: absolute; z-index: 2; inset: 0; overflow: hidden; width: 100%; clip-path: inset(0 50% 0 0); }
.shadow-curtain-after .shadow-curtain-image { width: 100%; max-width: none; }
.shadow-curtain-before { z-index: 1; }
.shadow-curtain-chip { position: absolute; z-index: 5; top: 10px; padding: 5px 8px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(28, 19, 14, .78); color: #ffe0bd; font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; pointer-events: none; }
.shadow-curtain-chip-before { left: 10px; }
.shadow-curtain-chip-after { right: 10px; }
.shadow-curtain-divider { position: absolute; z-index: 6; top: 0; bottom: 0; width: 2px; background: #fff3df; box-shadow: 0 0 0 1px rgba(28, 19, 14, .18), 0 0 18px rgba(0, 0, 0, .28); transform: translateX(-1px); pointer-events: none; }
.shadow-curtain-handle { position: absolute; top: 50%; left: 50%; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: #df9a5e; color: #24170f; font-size: .95rem; font-weight: 900; transform: translate(-50%, -50%); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.shadow-curtain-range {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.shadow-curtain-range:focus-visible { outline: none; }

.content-section { padding: 78px 0; }
.narrow-section { width: min(1000px, calc(100% - 40px)); }
.shadow-showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shadow-showcase-card { min-width: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: 18px; background: #261c15; box-shadow: 0 14px 38px rgba(0, 0, 0, .14); }
.shadow-showcase-body { padding: 17px; }
.shadow-showcase-body h3 { margin: 0 0 8px; color: #f4eee8; font-size: 1.17rem; line-height: 1.25; }
.shadow-showcase-body p:not(.result-kicker):not(.result-curtain-help) { margin: 0; color: var(--color-text-muted); font-size: .82rem; line-height: 1.55; }
.shadow-process-steps li { min-height: 185px; }
.shadow-tip-grid, .shadow-signal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shadow-tip-card, .shadow-signal-grid article { min-width: 0; padding: 23px; border: 1px solid var(--color-border); border-radius: 16px; background: #261c15; box-shadow: 0 12px 36px rgba(0, 0, 0, .12); }
.shadow-tip-card > span { display: grid; width: 38px; height: 38px; margin-bottom: 18px; place-items: center; border-radius: 10px; background: rgba(223, 154, 94, .13); color: #f0b06b; font-size: 1.25rem; }
.shadow-tip-card h3, .shadow-signal-grid h3 { margin: 0 0 9px; color: #f0e7de; font-size: 1.02rem; line-height: 1.3; }
.shadow-tip-card p, .shadow-signal-grid p { margin: 0; color: var(--color-text-muted); font-size: .84rem; line-height: 1.65; }
.shadow-signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shadow-final-cta { border-color: rgba(223, 154, 94, .24); background: linear-gradient(135deg, #2c2016, #211811); }
.shadow-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
@keyframes shadow-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .shadow-tool-grid { grid-template-columns: 1fr; }
  .shadow-result-panel { min-height: 350px; }
  .shadow-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shadow-tip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .shadow-hero .hero-announcement-text { max-width: 42vw; overflow-wrap: anywhere; white-space: normal; }
  .shadow-tool-shell { margin-top: 26px; padding: 10px; border-radius: 18px; }
  .shadow-uploader-panel, .shadow-result-panel { padding: 12px; border-radius: 14px; }
  .shadow-dropzone { min-height: 190px; padding: 18px 14px; }
.shadow-tool-actions { align-items: stretch; flex-direction: column; gap: 11px; }
  .shadow-showcase-grid, .shadow-tip-grid, .shadow-signal-grid { grid-template-columns: 1fr; }
  .shadow-cta-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .shadow-cta-actions .button { width: 100%; }
  .content-section { padding: 64px 0; }
}

/* Reference-inspired light workbench for the primary upload flow. */
.landing-hero.shadow-hero {
  padding-bottom: 78px;
  border-bottom-color: #d7e8dc;
  background: linear-gradient(145deg, #edf7f0 0%, #f7fbf8 58%, #eaf5f0 100%);
  color: #1d3527;
}
.landing-hero.shadow-hero::before { display: none; }
.landing-hero.shadow-hero h1 { color: #173524 !important; }
.landing-hero.shadow-hero .landing-hero-copy { color: #65746c !important; }
.landing-hero.shadow-hero .hero-proof-row { color: #63736a; }
.landing-hero.shadow-hero .hero-proof-row span { color: #3da653; }
.landing-hero.shadow-hero .hero-announcement {
  border-color: #c9dfcf;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 8px 24px rgba(45, 101, 67, .08);
}
.landing-hero.shadow-hero .hero-announcement-leading {
  border-color: #d2e6d7;
  background: #f7fbf8;
}
.landing-hero.shadow-hero .hero-announcement-badge { background: #4caf50; color: #fff; }
.landing-hero.shadow-hero .hero-announcement-text { color: #596960; }
.landing-hero.shadow-hero .hero-announcement-icon { color: #f2b840; }

.shadow-tool-shell {
  width: min(1180px, calc(100% - 40px));
  margin-top: 30px;
  padding: 34px 42px 42px;
  border: 1px solid #e1ebe3;
  border-radius: 15px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 58px rgba(45, 101, 67, .14);
}
.shadow-tool-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.shadow-uploader-panel, .shadow-result-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.shadow-dropzone {
  min-height: 500px;
  padding: 34px 24px;
  border: 2px dashed #46b354;
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(247, 252, 248, .96));
  color: #1f3928;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.shadow-dropzone:hover, .shadow-dropzone:focus-visible, .shadow-dropzone.is-dragging {
  border-color: #268d3a;
  background: #fbfefb;
  box-shadow: inset 0 0 0 1px rgba(70, 179, 84, .12), 0 10px 26px rgba(70, 179, 84, .08);
  outline: none;
  transform: none;
}
.shadow-empty-state { max-width: 460px; }
.shadow-upload-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 26px;
  border: 0;
  border-radius: 50%;
  background: #8bc9aa;
  color: #fff;
}
.shadow-upload-icon svg { width: 48px; height: 48px; stroke-width: 1.9; }
.shadow-empty-state h3 {
  margin-bottom: 12px;
  color: #20652b;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}
.shadow-empty-state p { color: #66706a; font-size: 1.02rem; }
.shadow-select-button {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
  padding: 0 26px;
  border: 1px solid #41a94e;
  border-radius: 9px;
  background: #4caf50;
  color: #fff;
  font: inherit;
  font-size: 1.12rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(76, 175, 80, .18);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.shadow-select-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.shadow-select-button:hover { background: #3e9f48; box-shadow: 0 10px 22px rgba(76, 175, 80, .24); transform: translateY(-1px); }
.shadow-select-button:focus-visible { outline: 3px solid rgba(76, 175, 80, .28); outline-offset: 3px; }
.dropzone-action-hint { margin-top: 23px; color: #69736c; font-size: .9rem; }
.shadow-upload-actions { justify-content: center; margin-top: 12px; }
.shadow-upload-actions .button-secondary {
  border-color: #d5e5d8;
  background: #fff;
  color: #397345;
  box-shadow: 0 4px 12px rgba(45, 101, 67, .06);
}
.shadow-upload-actions .button-secondary:hover { border-color: #b5d6bb; background: #f4fbf5; }
.shadow-tool-actions { margin-top: 18px; }
.shadow-tool-actions .button-pill {
  border-color: #4caf50;
  background: #4caf50;
  color: #fff;
  box-shadow: 0 8px 20px rgba(76, 175, 80, .18);
}
.shadow-identify-actions .button-pill:hover { background: #3e9f48; }
.shadow-inline-message { color: #b13b35; }
.shadow-tool-status { color: #5f6e65; }
.shadow-settings-disclosure { border-top-color: #e0ebe2; }
.shadow-settings-disclosure summary { color: #4e6956; }
.settings-disclosure-icon { border-color: #bcdac2; color: #3fa44d; }
.shadow-settings { border-color: #dbe9de; background: #f7fbf8; }
.shadow-setting-field { color: #375540; }
.shadow-setting-field select { border-color: #cfe0d2; background: #fff; color: #294832; }
.shadow-setting-field select:focus-visible, .shadow-setting-field input:focus-visible, .shadow-natural-toggle input:focus-visible { outline-color: rgba(76, 175, 80, .28); }
.setting-label-row output { color: #319442; }
.shadow-setting-field input[type="range"] { accent-color: #4caf50; }
.range-endpoints, .shadow-natural-toggle small { color: #728078; }
.shadow-natural-toggle { color: #31533b; }
.shadow-natural-toggle input { accent-color: #4caf50; }
.shadow-privacy-note { border-left-color: #70bb7b; background: #f3faf4; }
.shadow-privacy-note strong { color: #3b7445; }
.shadow-privacy-note span { color: #66746b; }

.shadow-result-panel {
  min-height: 500px;
  padding: 22px 28px;
  border: 1px solid #edf1ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(45, 101, 67, .07);
  align-items: flex-start;
  justify-content: flex-start;
}
.shadow-result-panel > .result-empty,
.shadow-result-panel > .result-loading,
.shadow-result-panel > .result-error,
.shadow-result-panel > .result-no-shadow { margin-block: auto; }
.shadow-curtain-viewport { border-color: #e0e9e2; border-radius: 7px; background: #e9f1eb; }
.shadow-curtain-chip { border-color: rgba(255,255,255,.28); background: rgba(57, 86, 66, .82); color: #fff; }
.shadow-curtain-chip-after { background: rgba(33, 139, 70, .9); }
.shadow-curtain-divider { background: #fff; box-shadow: 0 0 0 1px rgba(33, 139, 70, .25), 0 0 16px rgba(24, 88, 42, .2); }
.shadow-curtain-handle { width: 40px; height: 40px; border-color: #d6ead9; background: #fff; color: #4caf50; box-shadow: 0 5px 15px rgba(39, 110, 53, .18); }
.shadow-curtain-range { accent-color: #4caf50; }
.shadow-curtain-range:focus-visible { outline-color: rgba(76,175,80,.3); }
.result-success-heading { margin: 0 0 16px; }
.result-example .result-success-heading { align-items: center; justify-content: center; text-align: center; }
.result-example .result-success-heading > div { display: grid; justify-items: center; gap: 3px; }
.result-example .result-kicker { margin: 0 !important; padding: 4px 10px; border-radius: 6px; background: #4caf50; color: #fff !important; font-size: .78rem; letter-spacing: 0; text-transform: none; }
.result-example .result-success-heading h3 { color: #355b3d; font-size: .9rem; }
.result-example .result-example-mark { display: none; }
.result-kicker { color: #329244 !important; }
.result-view h3 { color: #294832; }
.result-view p { color: #68746c; }
.result-example-mark, .result-check { border: 0; background: #e9f6eb; color: #3ca14b; }
.result-example-description, .result-curtain-help, .result-important-note { color: #69756d !important; }
.result-success > .button-pill { border-color: #4caf50; background: #4caf50; color: #fff; }
.result-success > .button-pill:hover { background: #3e9f48; }
.result-success > .button-secondary { border-color: #d1e4d4; background: #fff; color: #397345; }

@media (max-width: 980px) {
  .shadow-tool-shell { padding: 28px; }
  .shadow-tool-grid { grid-template-columns: minmax(0, 1fr); }
  .shadow-result-panel { min-height: 0; padding: 22px; }
}
@media (max-width: 620px) {
  .landing-hero.shadow-hero { padding-bottom: 56px; }
  .shadow-tool-shell { width: calc(100% - 28px); margin-top: 22px; padding: 18px 14px 20px; border-radius: 12px; }
  .shadow-dropzone { min-height: 380px; padding: 26px 14px; }
  .shadow-upload-icon { width: 72px; height: 72px; margin-bottom: 20px; }
  .shadow-upload-icon svg { width: 40px; height: 40px; }
  .shadow-empty-state h3 { font-size: 1.45rem; }
  .shadow-select-button { min-height: 52px; padding-inline: 20px; font-size: 1rem; }
  .shadow-result-panel { padding: 16px; }
.shadow-tool-actions { align-items: stretch; flex-direction: column; }
.shadow-tool-actions .button { width: 100%; }
}

/* Keep the original Shadow Remover warm palette while retaining the reference layout. */
.landing-hero.shadow-hero {
  border-bottom-color: rgba(239, 188, 113, .14);
  background: radial-gradient(circle at 50% -12%, rgba(223, 154, 94, .12), transparent 34rem), #1c1510;
  color: #f2ece5;
}
.landing-hero.shadow-hero h1 { color: #f7f1eb !important; }
.landing-hero.shadow-hero .landing-hero-copy { color: #b6aa9f !important; }
.landing-hero.shadow-hero .hero-proof-row { color: #b6aa9f; }
.landing-hero.shadow-hero .hero-proof-row span { color: #f0b06b; }
.landing-hero.shadow-hero .hero-announcement {
  border-color: rgba(239, 188, 113, .22);
  background: rgba(44, 32, 22, .88);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 8px 24px rgba(0, 0, 0, .12);
}
.landing-hero.shadow-hero .hero-announcement-leading { border-color: rgba(239, 188, 113, .2); background: rgba(28, 21, 16, .72); }
.landing-hero.shadow-hero .hero-announcement-badge { background: #df9a5e; color: #24170f; }
.landing-hero.shadow-hero .hero-announcement-text { color: #d8cec4; }
.landing-hero.shadow-hero .hero-announcement-icon { color: #fdb931; }

.shadow-tool-shell {
  border-color: rgba(239, 188, 113, .18);
  background: rgba(38, 28, 21, .98);
  box-shadow: 0 24px 58px rgba(0, 0, 0, .28);
}
.shadow-dropzone {
  border-color: rgba(240, 176, 107, .68);
  background: linear-gradient(145deg, rgba(42, 31, 24, .96), rgba(33, 24, 18, .98));
  color: #f2ece5;
}
.shadow-dropzone:hover, .shadow-dropzone:focus-visible, .shadow-dropzone.is-dragging {
  border-color: #f0b06b;
  background: #35271e;
  box-shadow: inset 0 0 0 1px rgba(240, 176, 107, .14), 0 10px 26px rgba(0, 0, 0, .16);
}
.shadow-upload-icon { background: #df9a5e; color: #24170f; }
.shadow-empty-state h3 { color: #f4eee8; }
.shadow-empty-state p { color: #c9bdb2; }
.shadow-select-button {
  border-color: #df9a5e;
  background: #df9a5e;
  color: #24170f;
  box-shadow: 0 8px 18px rgba(223, 154, 94, .18);
}
.shadow-select-button:hover { background: #f0b06b; box-shadow: 0 10px 22px rgba(223, 154, 94, .24); }
.shadow-select-button:focus-visible { outline-color: rgba(223, 154, 94, .42); }
.dropzone-action-hint { color: #b6aa9f; }
.shadow-upload-actions .button-secondary { border-color: rgba(239, 188, 113, .22); background: #2a1f18; color: #eee5dc; box-shadow: none; }
.shadow-upload-actions .button-secondary:hover { border-color: rgba(239, 188, 113, .34); background: #35271e; color: #fff6eb; }
.shadow-tool-actions .button-pill { border-color: #df9a5e; background: #df9a5e; color: #24170f; box-shadow: 0 10px 26px rgba(223, 154, 94, .18); }
.shadow-tool-actions .button-pill:hover { border-color: #f0b06b; background: #f0b06b; color: #1d1510; }
.shadow-inline-message { color: #efb0aa; }
.shadow-tool-status { color: #c9bdb2; }
.shadow-settings-disclosure { border-top-color: rgba(239, 188, 113, .13); }
.shadow-settings-disclosure summary { color: #c9a48c; }
.settings-disclosure-icon { border-color: rgba(239, 188, 113, .22); color: #f0b06b; }
.shadow-settings { border-color: rgba(239, 188, 113, .13); background: rgba(44, 32, 22, .52); }
.shadow-setting-field { color: #dfd3c8; }
.shadow-setting-field select { border-color: rgba(239, 188, 113, .2); background: #2a1f18; color: #f2ece5; }
.shadow-setting-field select:focus-visible, .shadow-setting-field input:focus-visible, .shadow-natural-toggle input:focus-visible { outline-color: rgba(223, 154, 94, .3); }
.setting-label-row output { color: #f0b06b; }
.shadow-setting-field input[type="range"] { accent-color: #df9a5e; }
.range-endpoints, .shadow-natural-toggle small { color: #a99b90; }
.shadow-natural-toggle { color: #e8ded5; }
.shadow-natural-toggle input { accent-color: #df9a5e; }
.shadow-privacy-note { border-left-color: rgba(223, 154, 94, .65); background: rgba(53, 39, 30, .42); }
.shadow-privacy-note strong { color: #ffd4a7; }
.shadow-privacy-note span { color: #bfae9f; }

.shadow-result-panel { border-color: rgba(239, 188, 113, .18); background: #261c15; box-shadow: 0 7px 22px rgba(0, 0, 0, .18); }
.shadow-curtain-viewport { border-color: rgba(239, 188, 113, .16); background: #17110d; }
.shadow-curtain-chip { border-color: rgba(255, 255, 255, .18); background: rgba(28, 19, 14, .78); color: #ffe0bd; }
.shadow-curtain-chip-after { background: rgba(119, 128, 86, .9); }
.shadow-curtain-divider { background: #fff3df; box-shadow: 0 0 0 1px rgba(28, 19, 14, .18), 0 0 18px rgba(0, 0, 0, .28); }
.shadow-curtain-handle { border-color: rgba(255, 255, 255, .55); background: #df9a5e; color: #24170f; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.shadow-curtain-range { accent-color: #df9a5e; }
.shadow-curtain-range:focus-visible { outline-color: rgba(223, 154, 94, .3); }
.result-example .result-kicker { background: #df9a5e; color: #24170f !important; }
.result-example .result-success-heading h3, .result-view h3 { color: #f4eee8; }
.result-view p { color: #b6aa9f; }
.result-example-mark, .result-check { background: rgba(223, 154, 94, .14); color: #f0b06b; }
.result-example-description, .result-curtain-help, .result-important-note { color: #bfae9f !important; }
.result-success > .button-pill { border-color: #df9a5e; background: #df9a5e; color: #24170f; }
.result-success > .button-pill:hover { border-color: #f0b06b; background: #f0b06b; color: #1d1510; }
.result-success > .button-secondary { border-color: rgba(239, 188, 113, .22); background: #2a1f18; color: #eee5dc; }

/* Compact the primary workbench so the upload and compare actions stay above the fold. */
.shadow-tool-shell {
  width: min(980px, calc(100% - 40px));
  margin-top: 18px;
  padding: 18px 20px 20px;
  border-radius: 16px;
}
.shadow-tool-grid { align-items: start; gap: 16px; }
.shadow-dropzone { min-height: 270px; padding: 18px 14px; }
.shadow-upload-icon { width: 54px; height: 54px; margin-bottom: 12px; }
.shadow-upload-icon svg { width: 28px; height: 28px; }
.shadow-empty-state h3 { margin-bottom: 6px; font-size: clamp(1.2rem, 2.5vw, 1.45rem); }
.shadow-empty-state p { font-size: .84rem; }
.shadow-select-button { min-height: 48px; margin-top: 14px; padding-inline: 18px; font-size: .92rem; }
.dropzone-action-hint { margin-top: 12px; font-size: .76rem; }
.shadow-result-panel { min-height: 270px; padding: 14px; }
.shadow-curtain-viewport { aspect-ratio: 16 / 10; }
.result-success-heading { margin-bottom: 12px; }
.result-example .result-success-heading h3 { font-size: .85rem; }
.result-example-description, .result-curtain-help, .result-important-note { font-size: .78rem; line-height: 1.4; }
.result-example-heading { display: grid; justify-items: center; margin: 0 0 10px; }
.result-example-heading .result-kicker { margin: 0 !important; padding: 4px 10px; border-radius: 6px; font-size: .76rem; letter-spacing: 0; text-transform: none; }
.result-example-title { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.result-example .shadow-curtain { margin-top: 0; }
.result-example-description { margin-top: 10px !important; }
.result-example .result-curtain-help { margin-top: 7px !important; }

@media (min-width: 981px) {
  .shadow-result-panel { margin-top: -16px; }
}

@media (max-width: 980px) {
  .shadow-tool-shell { width: min(820px, calc(100% - 28px)); padding: 18px; }
  .shadow-dropzone { min-height: 260px; }
  .shadow-result-panel { min-height: 0; padding: 16px; }
}

@media (max-width: 620px) {
  .shadow-tool-shell { width: calc(100% - 20px); margin-top: 16px; padding: 12px 10px 14px; border-radius: 14px; }
  .shadow-dropzone { min-height: 260px; padding: 18px 10px; }
  .shadow-upload-icon { width: 54px; height: 54px; margin-bottom: 12px; }
  .shadow-upload-icon svg { width: 28px; height: 28px; }
  .shadow-result-panel { padding: 12px; }
  .shadow-curtain-viewport { aspect-ratio: 4 / 3; }
}

.shadow-example-picker {
  display: grid;
  width: min(980px, calc(100% - 40px));
  justify-items: center;
  gap: 8px;
  margin: 14px auto 0;
}
.shadow-example-picker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #c9bdb2;
  font-size: .78rem;
  font-weight: 700;
}
.shadow-example-picker-label svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #f0b06b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.shadow-example-picker-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.shadow-example-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(239, 188, 113, .2);
  border-radius: 999px;
  background: rgba(42, 31, 24, .78);
  color: #bfae9f;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}
.shadow-example-chip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.shadow-example-chip:hover,
.shadow-example-chip:focus-visible {
  border-color: rgba(240, 176, 107, .7);
  background: rgba(53, 39, 30, .95);
  color: #f4eee8;
  outline: none;
  transform: translateY(-1px);
}
.shadow-example-chip.is-active {
  border-color: #df9a5e;
  background: #df9a5e;
  color: #24170f;
  box-shadow: 0 7px 16px rgba(223, 154, 94, .16);
}
.shadow-example-chip:disabled { cursor: wait; opacity: .5; transform: none; }

@media (max-width: 620px) {
  .shadow-example-picker { width: calc(100% - 20px); margin-top: 12px; }
  .shadow-example-picker-list { gap: 6px; }
  .shadow-example-chip { padding-inline: 11px; font-size: .72rem; }
}

/* Credit upgrade dialog: reuse the warm brand palette and the pricing checkout flow. */
.upgrade-dialog {
  width: min(1060px, calc(100% - 32px));
  max-width: 1060px;
  max-height: min(780px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(239, 188, 113, .22);
  border-radius: 24px;
  background: #261c15;
  color: #f2ece5;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .42);
}
.upgrade-dialog:not([open]) { display: none; }
.upgrade-dialog::backdrop { background: rgba(8, 5, 3, .78); backdrop-filter: blur(5px); }
.upgrade-dialog-shell { position: relative; display: grid; max-height: min(780px, calc(100dvh - 32px)); grid-template-columns: minmax(235px, .68fr) minmax(0, 1.32fr); overflow: auto; }
.upgrade-dialog-close { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid rgba(239, 188, 113, .18); border-radius: 50%; background: rgba(28, 19, 14, .72); color: #d8cec4; font: inherit; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease; }
.upgrade-dialog-close:hover { border-color: rgba(240, 176, 107, .58); background: #35271e; color: #fff6eb; transform: rotate(4deg); }
.upgrade-dialog-close:focus-visible, .upgrade-dialog-all-plans:focus-visible, .upgrade-pricing-tab:focus-visible, .upgrade-plan-card button:focus-visible { outline: 3px solid rgba(240, 176, 107, .42); outline-offset: 3px; }
.upgrade-dialog-benefits { display: flex; min-width: 0; flex-direction: column; padding: 46px 34px 36px; background: radial-gradient(circle at 10% 0%, rgba(223, 154, 94, .16), transparent 20rem), linear-gradient(160deg, #39281d, #241a14 68%); }
.upgrade-dialog-eyebrow { margin: 0 0 9px; color: #f0b06b; font-size: .7rem; font-weight: 850; letter-spacing: .11em; line-height: 1.3; text-transform: uppercase; }
.upgrade-dialog-benefits h2 { max-width: 280px; margin: 0; color: #fff6eb; font-size: clamp(1.85rem, 3.5vw, 2.65rem); letter-spacing: -.045em; line-height: 1.05; }
.upgrade-dialog-benefits > p:not(.upgrade-dialog-eyebrow) { max-width: 310px; margin: 16px 0 0; color: #c9bdb2; font-size: .9rem; line-height: 1.65; }
.upgrade-dialog-benefit-block { margin-top: auto; padding-top: 40px; }
.upgrade-dialog-benefit-title { margin: 0 0 13px; color: #e8ded5; font-size: .77rem; font-weight: 800; }
.upgrade-dialog-benefit-block ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.upgrade-dialog-benefit-block li { display: flex; align-items: flex-start; gap: 10px; color: #ded2c8; font-size: .8rem; line-height: 1.45; }
.upgrade-dialog-check { display: grid; flex: 0 0 22px; width: 22px; height: 22px; margin-top: -1px; place-items: center; border: 1px solid rgba(223, 154, 94, .35); border-radius: 50%; background: rgba(223, 154, 94, .14); color: #f0b06b; }
.upgrade-dialog-check svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.upgrade-dialog-credits-note { margin-top: 28px !important; padding-top: 14px; border-top: 1px solid rgba(239, 188, 113, .14); color: #a99b90 !important; font-size: .72rem !important; line-height: 1.5 !important; }
.upgrade-dialog-plans { min-width: 0; padding: 38px 32px 30px; background: #261c15; }
.upgrade-dialog-plans-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-right: 42px; }
.upgrade-dialog-plans-heading h3 { margin: 0; color: #fff6eb; font-size: clamp(1.25rem, 2.6vw, 1.8rem); letter-spacing: -.035em; line-height: 1.15; }
.upgrade-dialog-all-plans { display: inline-flex; min-height: 44px; align-items: center; gap: 5px; padding: 3px 0; color: #f0b06b; font-size: .76rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.upgrade-dialog-all-plans:hover { color: #ffd4a7; text-decoration: underline; }
.upgrade-pricing-tabs { display: flex; width: fit-content; max-width: 100%; gap: 4px; margin: 24px 0 16px; padding: 4px; border: 1px solid rgba(239, 188, 113, .14); border-radius: 999px; background: rgba(44, 32, 22, .72); }
.upgrade-pricing-tab { min-height: 44px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; color: #a99b90; font: inherit; font-size: .76rem; font-weight: 750; cursor: pointer; transition: background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.upgrade-pricing-tab:hover { color: #f2ece5; }
.upgrade-pricing-tab.is-active { background: #df9a5e; color: #24170f; box-shadow: 0 7px 18px rgba(223, 154, 94, .16); }
.upgrade-pricing-panel[hidden] { display: none; }
.upgrade-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.upgrade-plan-card { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 18px 14px 14px; border: 1px solid rgba(239, 188, 113, .16); border-radius: 15px; background: #2d2119; box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
.upgrade-plan-card.is-featured { border-color: rgba(240, 176, 107, .82); background: linear-gradient(180deg, #453021 0, #2d2119 62%); box-shadow: 0 12px 28px rgba(0, 0, 0, .2); }
.upgrade-plan-badge { display: inline-flex; min-height: 25px; align-items: center; align-self: flex-start; max-width: 100%; margin: -4px 0 11px; padding: 4px 8px; overflow: hidden; border-radius: 999px; background: #df9a5e; color: #24170f; font-size: .61rem; font-weight: 850; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.upgrade-plan-card h4 { min-height: 2.5em; margin: 0; color: #fff6eb; font-size: .9rem; line-height: 1.25; }
.upgrade-plan-description { min-height: 3.65em; margin: 9px 0 13px; color: #b6aa9f; font-size: .68rem; line-height: 1.45; }
.upgrade-plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: auto; color: #fff6eb; font-variant-numeric: tabular-nums; }
.upgrade-plan-price span { font-size: 1.85rem; font-weight: 800; letter-spacing: -.055em; line-height: .95; }
.upgrade-plan-price small { color: #a99b90; font-size: .65rem; line-height: 1.2; }
.upgrade-plan-credits { display: grid; gap: 2px; margin: 14px 0; padding: 9px 0; border-block: 1px solid rgba(239, 188, 113, .12); }
.upgrade-plan-credits strong { color: #f0b06b; font-size: .75rem; }
.upgrade-plan-credits span { color: #a99b90; font-size: .64rem; line-height: 1.35; }
.upgrade-plan-card button.button { position: relative; width: 100%; min-height: 44px; padding: 0 9px; border-color: #df9a5e; border-radius: 999px; background: #df9a5e; color: #24170f; box-shadow: none; font-size: .7rem; font-weight: 800; line-height: 1.2; text-align: center; }
.upgrade-plan-card button.button:hover { border-color: #f0b06b; background: #f0b06b; color: #1d1510; transform: translateY(-1px); }
.upgrade-plan-card button.button-secondary { border-color: rgba(239, 188, 113, .2); background: #211811; color: #eee5dc; }
.upgrade-plan-card button.button-secondary:hover { border-color: rgba(240, 176, 107, .58); background: #35271e; color: #fff6eb; }
.upgrade-plan-card button.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.upgrade-plan-card button.button.is-loading { color: transparent; }
.upgrade-plan-card button.button.is-loading::after { position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; border: 2px solid rgba(36, 23, 15, .28); border-top-color: #24170f; border-radius: 50%; content: ""; transform: translate(-50%, -50%); animation: upgrade-checkout-spin .72s linear infinite; }
.upgrade-plan-card button.button-secondary.is-loading::after { border-color: rgba(255, 246, 235, .22); border-top-color: #fff6eb; }
.upgrade-plan-note { min-height: 2.5em; margin-top: 8px; color: #998a7e; font-size: .61rem; line-height: 1.35; text-align: center; }
.upgrade-checkout-status { min-height: 1.5em; margin: 13px 0 0; color: #c9bdb2; font-size: .74rem; line-height: 1.45; text-align: center; }
.upgrade-checkout-status.is-error { color: #efb0aa; }
@keyframes upgrade-checkout-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

@media (max-width: 900px) {
  .upgrade-dialog-shell { grid-template-columns: minmax(0, 1fr); }
  .upgrade-dialog-benefits { padding: 42px 28px 28px; border-bottom: 1px solid rgba(239, 188, 113, .14); }
  .upgrade-dialog-benefits h2, .upgrade-dialog-benefits > p:not(.upgrade-dialog-eyebrow) { max-width: 600px; }
  .upgrade-dialog-benefit-block { margin-top: 26px; padding-top: 0; }
  .upgrade-dialog-benefit-block ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .upgrade-dialog-credits-note { max-width: 600px; }
  .upgrade-dialog-plans { padding: 28px; }
}

@media (max-width: 620px) {
  .upgrade-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 18px; }
  .upgrade-dialog-shell { max-height: calc(100dvh - 20px); }
  .upgrade-dialog-close { top: 8px; right: 8px; }
  .upgrade-dialog-benefits { padding: 38px 20px 22px; }
  .upgrade-dialog-benefits h2 { padding-right: 36px; font-size: 2rem; }
  .upgrade-dialog-benefit-block ul { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .upgrade-dialog-credits-note { margin-top: 20px !important; }
  .upgrade-dialog-plans { padding: 22px 16px 20px; }
  .upgrade-dialog-plans-heading { display: block; padding-right: 38px; }
  .upgrade-dialog-all-plans { margin-top: 8px; }
  .upgrade-pricing-tabs { width: 100%; }
  .upgrade-pricing-tab { flex: 1; padding-inline: 8px; font-size: .7rem; }
  .upgrade-plan-grid { grid-template-columns: minmax(0, 1fr); }
  .upgrade-plan-card h4, .upgrade-plan-description { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-orbit, .button-spinner { animation: none; }
  .upgrade-dialog-close, .upgrade-pricing-tab, .upgrade-plan-card button.button { transition: none; }
  .upgrade-dialog-close:hover, .upgrade-plan-card button.button:hover { transform: none; }
  .upgrade-plan-card button.button.is-loading::after { animation-duration: 1.5s; }
}
