.large-collage-workspace {
  --large-ink: #272521;
  --large-muted: #6e6a63;
  --large-paper: #fbf9f4;
  --large-panel: #f1eee7;
  --large-line: #c9c2b6;
  --large-accent: #b85d47;
  --large-sage: #647266;
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(430px, 1fr) minmax(235px, 270px);
  min-height: 760px;
  border: 1px solid #afa89d;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.72), transparent 32%),
    repeating-linear-gradient(0deg, rgba(91, 81, 69, 0.025) 0 1px, transparent 1px 4px),
    var(--large-paper);
  color: var(--large-ink);
  box-shadow: 0 20px 55px rgba(54, 45, 35, 0.12);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.large-page-intro {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: end;
  padding-top: clamp(24px, 4vw, 52px);
  padding-bottom: clamp(18px, 3vw, 34px);
}

.large-breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--large-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.large-breadcrumbs a,
.large-page-intro-copy a,
.large-page-copy a {
  color: #7f3528;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.large-page-intro h1 {
  max-width: 680px;
  margin: 0;
  color: #282622;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4.6vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.large-page-intro-copy {
  max-width: 690px;
  padding-bottom: 5px;
}

.large-page-intro-copy p {
  margin: 0 0 12px;
  color: #4f4b45;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.55;
}

.large-page-intro-copy a {
  font-weight: 800;
}

.large-page-tool {
  padding-top: 0;
}

.large-page-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding-top: clamp(36px, 6vw, 84px);
  padding-bottom: clamp(44px, 7vw, 96px);
}

.large-page-copy > *,
.large-page-intro > *,
.large-page-explainer > *,
.large-page-details > * {
  min-width: 0;
}

.large-page-explainer {
  display: grid;
  grid-template-columns: minmax(240px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}

.large-page-explainer h2,
.large-page-details h2,
.large-page-copy .faq h2 {
  margin: 4px 0 14px;
  color: #282622;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.large-page-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.large-density-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}

.large-density-table {
  width: 100%;
  min-width: 480px;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.84rem;
  border: 1px solid rgba(40, 38, 34, 0.22);
  background: #fff;
}

.large-density-table th,
.large-density-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(40, 38, 34, 0.14);
  white-space: nowrap;
}

.large-density-table th {
  background: #f4ecdc;
  font-weight: 700;
  color: #282622;
}

.large-density-table tr:last-child td {
  border-bottom: 0;
}

.large-workflow-list {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}

body[data-page="large-photo-collage-maker"] tool-feedback {
  display: block;
  width: min(100% - 32px, 1540px);
  margin: 28px auto 0;
}

.large-collage-workspace[hidden] {
  display: none !important;
}

body[data-tool-mode="large"] .tool-hero {
  width: min(calc(100% - 28px), 1480px);
}

.large-collage-workspace h2,
.large-order-dialog h2 {
  color: #282622;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.2vw, 2.35rem);
  font-weight: 500;
  line-height: 1;
}

.large-control-rail,
.large-result-rail {
  position: relative;
  z-index: 2;
  padding: 22px 20px;
  background: rgba(246, 243, 236, 0.96);
}

.large-control-rail {
  border-right: 1px solid var(--large-line);
}

.large-result-rail {
  border-left: 1px solid var(--large-line);
}

.large-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--large-line);
}

.large-step-label {
  display: block;
  margin-bottom: 6px;
  color: var(--large-accent);
  font: 800 0.66rem/1.2 "Courier New", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.large-mobile-sheet-close {
  display: none;
}

.large-upload-card {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--large-line);
  background: rgba(255, 255, 255, 0.66);
}

.large-count {
  width: max-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e1e6df;
  color: #475248;
  font-size: 0.7rem;
  font-weight: 800;
}

.large-upload-card strong {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.18rem;
}

.large-upload-card p,
.large-field-group p,
.large-export-note {
  margin: 0;
  color: var(--large-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.large-primary-button,
.large-secondary-button,
.large-text-button {
  min-height: 43px;
  border: 1px solid #45413c;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 800;
}

.large-primary-button {
  background: var(--large-ink);
  color: #fff;
}

.large-secondary-button {
  background: #fff;
  color: var(--large-ink);
}

.large-text-button {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--large-accent);
  text-align: left;
}

.large-primary-button:disabled,
.large-secondary-button:disabled,
.large-text-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.large-field-group {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 15px 0;
  border: 0;
  border-top: 1px solid rgba(201, 194, 182, 0.8);
}

.large-field-group > label,
.large-field-group legend {
  padding: 0;
  color: #3a3732;
  font-size: 0.76rem;
  font-weight: 800;
}

.large-field-group select {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--large-line);
  border-radius: 2px;
  background: #fff;
  color: var(--large-ink);
  font-size: 0.78rem;
}

.large-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--large-line);
  background: #fff;
}

.large-segmented button {
  min-height: 39px;
  border: 0;
  background: transparent;
  color: var(--large-muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.large-segmented button + button {
  border-left: 1px solid var(--large-line);
}

.large-segmented button.is-active {
  background: var(--large-sage);
  color: #fff;
}

.large-field-split {
  grid-template-columns: 1fr 0.72fr;
  gap: 9px;
}

.large-field-split label {
  display: grid;
  gap: 7px;
}

.large-local-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  color: var(--large-muted);
  font-size: 0.7rem;
}

.large-local-note span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--large-sage);
  border-radius: 50%;
  color: var(--large-sage);
}

.large-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  padding: 25px 28px 20px;
  background:
    linear-gradient(rgba(82, 93, 84, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 93, 84, 0.035) 1px, transparent 1px),
    #e9eee9;
  background-size: 26px 26px;
}

.large-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.large-quality-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 220px;
  padding: 7px 10px;
  border: 1px solid #aeb6ad;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--large-muted);
  font-size: 0.66rem;
  font-weight: 750;
  text-align: right;
}

.large-quality-pill span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aaa59d;
}

.large-quality-pill.is-ready span {
  background: #4f8664;
  box-shadow: 0 0 0 3px rgba(79, 134, 100, 0.13);
}

.large-poster-desk {
  position: relative;
  display: grid;
  min-height: 600px;
  place-items: center;
  padding: 26px 0 16px;
}

.large-poster-desk.is-drop-target::after {
  position: absolute;
  inset: 20px;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 2px dashed var(--large-accent);
  background: rgba(251, 249, 244, 0.9);
  color: var(--large-accent);
  content: "Drop photos to add them";
  font-weight: 900;
}

.large-poster-shadow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(68%, 460px);
  aspect-ratio: 2 / 3;
  transform: translate(calc(-50% + 13px), calc(-50% + 12px)) rotate(1.2deg);
  border: 1px solid rgba(83, 73, 61, 0.2);
  background: #d9d2c7;
  box-shadow: 0 20px 38px rgba(49, 42, 34, 0.18);
}

.large-poster-frame {
  position: relative;
  z-index: 1;
  width: min(68%, 460px);
  border: 10px solid #fff;
  background: #fff;
  box-shadow: 0 18px 36px rgba(55, 45, 35, 0.17);
}

.large-poster-frame canvas {
  display: block;
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  background: #fbfaf6;
  box-shadow: none;
  touch-action: auto;
}

.large-empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 26px;
  background:
    radial-gradient(circle at 50% 35%, rgba(184, 93, 71, 0.08), transparent 32%),
    #fbfaf6;
  text-align: center;
}

.large-empty-state[hidden] {
  display: none;
}

.large-empty-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--large-accent);
  border-radius: 50%;
  color: var(--large-accent);
  font: 300 2rem/1 ui-sans-serif, sans-serif;
}

.large-empty-state strong {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.35rem;
}

.large-empty-state p {
  margin: 0;
  color: var(--large-muted);
  font-size: 0.76rem;
}

.large-empty-state button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--large-ink);
  background: var(--large-ink);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.large-stage-status {
  margin: 0;
  color: var(--large-muted);
  font-size: 0.7rem;
  text-align: center;
}

.large-stage-status[data-tone="error"] { color: #a33b2c; }
.large-stage-status[data-tone="success"] { color: #42694f; }
.large-stage-status[data-tone="warn"] { color: #8a5f25; }

.large-result-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px 0 15px;
}

.large-result-summary div {
  display: grid;
  gap: 3px;
}

.large-result-summary strong {
  color: var(--large-ink);
  font-family: ui-serif, Georgia, serif;
  font-size: 1.05rem;
}

.large-result-summary span {
  color: var(--large-muted);
  font-size: 0.66rem;
}

.large-thumb-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--large-line);
  background: #fff;
}

.large-thumb-strip:empty {
  display: none;
}

.large-thumb-strip span {
  aspect-ratio: 1;
  overflow: hidden;
  background: #ece9e2;
}

.large-thumb-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.large-download-stack {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.large-privacy-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 13px;
  background: #e5ebe5;
  color: #465249;
}

.large-privacy-card > span {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.large-privacy-card p {
  display: grid;
  gap: 2px;
  margin: 0;
  font-size: 0.67rem;
  line-height: 1.35;
}

.large-export-note {
  margin-top: 12px;
}

.large-mobile-taskbar {
  display: none;
}

.large-order-dialog {
  --large-ink: #272521;
  --large-muted: #6e6a63;
  --large-paper: #fbf9f4;
  --large-line: #c9c2b6;
  --large-accent: #b85d47;
  --large-sage: #647266;
  width: min(760px, calc(100vw - 28px));
  max-height: min(820px, calc(100svh - 28px));
  padding: 0;
  border: 1px solid #8d877e;
  background: var(--large-paper, #fbf9f4);
  color: #282622;
  box-shadow: 0 30px 90px rgba(35, 30, 25, 0.34);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.large-order-dialog::backdrop {
  background: rgba(33, 37, 34, 0.66);
  backdrop-filter: blur(2px);
}

.large-order-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(800px, calc(100svh - 30px));
  max-height: inherit;
}

.large-order-shell > header,
.large-order-shell > footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: #fbf9f4;
}

.large-order-shell > header {
  align-items: flex-start;
  border-bottom: 1px solid #cbc4b8;
}

.large-order-shell > header p {
  margin: 7px 0 0;
  color: #6e6a63;
  font-size: 0.74rem;
}

.large-dialog-close {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.6rem;
}

.large-order-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 24px;
}

.large-order-row {
  display: grid;
  grid-template-columns: 38px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  border-bottom: 1px solid #d4cec4;
}

.large-order-number {
  color: #9d5b4b;
  font: 800 0.72rem/1 "Courier New", monospace;
}

.large-order-row img {
  width: 58px;
  height: 52px;
  object-fit: cover;
  background: #e4e1da;
}

.large-order-row strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.large-order-actions {
  display: flex;
  gap: 5px;
}

.large-order-actions button {
  min-width: 34px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #bcb5a9;
  background: #fff;
  color: #383530;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 750;
}

.large-order-actions button:disabled {
  opacity: 0.36;
}

.large-order-shell > footer {
  justify-content: flex-end;
  border-top: 1px solid #cbc4b8;
}

.large-order-shell > footer button {
  min-width: 130px;
}

@media (max-width: 1180px) {
  .large-collage-workspace {
    grid-template-columns: 245px minmax(430px, 1fr);
  }

  .large-result-rail {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 18px;
    border-top: 1px solid var(--large-line);
    border-left: 0;
  }

  .large-result-rail .large-sheet-head {
    grid-row: span 2;
  }

  .large-result-rail .large-download-stack {
    margin: 0;
  }

  .large-result-rail .large-export-note,
  .large-result-rail .large-privacy-card {
    margin: 0;
  }
}

@media (max-width: 900px) {
  .large-page-intro,
  .large-page-explainer {
    grid-template-columns: minmax(0, 1fr);
  }

  .large-page-intro {
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .large-page-intro {
    padding-top: 22px;
  }

  .large-page-intro h1 {
    font-size: clamp(2.25rem, 12vw, 3.65rem);
  }

  .large-page-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .large-page-copy {
    padding-top: 36px;
  }

  body[data-tool-mode="large"] .tool-hero {
    width: 100%;
    padding-top: 0;
  }

  body[data-tool-mode="large"] .tool-mode-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0;
    border-right: 0;
    border-left: 0;
  }

  body.large-sheet-lock {
    overflow: hidden;
  }

  .large-collage-workspace {
    display: block;
    min-height: 0;
    padding-bottom: 72px;
    border-right: 0;
    border-left: 0;
  }

  .large-stage {
    min-height: calc(100svh - 190px);
    padding: 19px 14px 16px;
  }

  .large-stage-head h2 {
    font-size: 1.72rem;
  }

  .large-quality-pill {
    max-width: 145px;
    font-size: 0.57rem;
  }

  .large-poster-desk {
    min-height: 0;
    padding: 24px 0 12px;
  }

  .large-poster-frame,
  .large-poster-shadow {
    width: min(78vw, 420px);
  }

  .large-control-rail,
  .large-result-rail {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: none;
    max-height: min(78svh, 720px);
    overflow-y: auto;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    border: 1px solid #9f988c;
    border-radius: 18px 18px 0 0;
    background: #f6f3ec;
    box-shadow: 0 -22px 65px rgba(35, 30, 25, 0.28);
  }

  .large-control-rail.is-mobile-open,
  .large-result-rail.is-mobile-open {
    display: block;
  }

  .large-control-rail.is-mobile-open::before,
  .large-result-rail.is-mobile-open::before {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 44px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #b9b2a6;
    content: "";
  }

  .large-mobile-sheet-close {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #bbb4a8;
    background: #fff;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 800;
  }

  .large-mobile-taskbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid #aaa397;
    background: rgba(251, 249, 244, 0.97);
    box-shadow: 0 -10px 30px rgba(45, 38, 31, 0.12);
  }

  .large-mobile-taskbar button {
    display: grid;
    min-height: 58px;
    place-items: center;
    gap: 1px;
    border: 0;
    border-right: 1px solid #d2ccc1;
    background: transparent;
    color: #35322e;
    font-size: 0.67rem;
    font-weight: 800;
  }

  .large-mobile-taskbar button span {
    color: var(--large-accent);
    font-size: 0.84rem;
  }

  whatsapp-feedback-fab,
  body[data-page="large-photo-collage-maker"] whatsapp-feedback-fab {
    --wff-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    --wff-right: calc(14px + env(safe-area-inset-right, 0px)) !important;
    --wff-z-index: 50 !important;
    z-index: 50 !important;
  }

  body.large-sheet-lock whatsapp-feedback-fab,
  body[data-page="large-photo-collage-maker"].large-sheet-lock whatsapp-feedback-fab {
    --wff-z-index: 30 !important;
    z-index: 30 !important;
    pointer-events: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
  }

  .large-order-dialog {
    width: 100%;
    max-width: none;
    max-height: 86svh;
    margin: auto 0 0;
    border: 0;
    border-radius: 18px 18px 0 0;
  }

  .large-order-shell {
    height: 86svh;
  }

  .large-order-shell > header,
  .large-order-shell > footer {
    padding: 16px;
  }

  .large-order-list {
    padding: 6px 16px;
  }

  .large-order-row {
    grid-template-columns: 28px 48px minmax(0, 1fr);
    gap: 9px;
    min-height: 78px;
  }

  .large-order-row img {
    width: 48px;
    height: 48px;
  }

  .large-order-actions {
    grid-column: 3;
  }

  .large-order-actions button {
    min-height: 30px;
  }

  .large-order-shell > footer button {
    min-width: 0;
    flex: 1;
  }
}

@media (max-width: 420px) {
  .large-stage-head {
    display: grid;
  }

  .large-quality-pill {
    max-width: none;
    justify-self: start;
  }

  .large-poster-frame,
  .large-poster-shadow {
    width: 82vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .large-collage-workspace * {
    scroll-behavior: auto !important;
  }
}
