.wallpaper-app {
  --wp-navy: #1e2b3c;
  --wp-accent: #e8650a;
  --wp-line: #e5e7eb;
  --wp-soft: #f7f7f4;
  overflow: visible;
}

.wallpaper-input-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.wallpaper-input-row > * { min-width: 0; }

.wallpaper-input-row > .panel {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.wallpaper-intro-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  border: 1px solid #fed7aa;
  border-radius: 9px;
  background: #fff8f0;
  color: #7c3a08;
  font-size: 13px;
  line-height: 1.55;
}

.wallpaper-intro-note > span {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--wp-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.wallpaper-intro-note p { margin: 1px 0 0; }
.wallpaper-intro-note strong { color: #9a4307; }

.wallpaper-app .panel { min-width: 0; }
.wallpaper-app .panel__title { color: #667386; }

.unit-input { position: relative; }
.unit-input .inp,
.wall-field .unit-input input { padding-right: 46px; }
.unit-input > span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #7b8491;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.panel-tip {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--wp-line);
  color: #7b8491;
  font-size: 11px;
  line-height: 1.5;
}

.pattern-options { display: grid; gap: 7px; }
.pattern-option { display: block; cursor: pointer; }
.pattern-option input { position: absolute; opacity: 0; pointer-events: none; }
.pattern-option > span {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 52px;
  padding: 9px 12px 9px 38px;
  border: 1.5px solid var(--wp-line);
  border-radius: 8px;
  background: #fafafa;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.pattern-option > span::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 16px;
  width: 13px;
  height: 13px;
  border: 1.5px solid #aab1bb;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
}
.pattern-option b { color: #273548; font-size: 12px; font-weight: 650; }
.pattern-option small { color: #7b8491; font-size: 10px; line-height: 1.35; }
.pattern-option input:checked + span {
  border-color: var(--wp-accent);
  background: #fff8f2;
  box-shadow: 0 0 0 2px rgba(232, 101, 10, .07);
}
.pattern-option input:checked + span::before { border-color: var(--wp-accent); background: var(--wp-accent); }
.pattern-option input:focus-visible + span { outline: 3px solid rgba(232, 101, 10, .18); outline-offset: 2px; }

.pattern-fields { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--wp-line); }
.half-drop-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -3px;
  color: #5f6976;
  font-size: 11px;
  cursor: pointer;
}
.half-drop-control input { accent-color: var(--wp-accent); }

.start-offset-field {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px dashed var(--wp-line);
}

.field-label-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
}

.field-label-row > label { margin-bottom: 0; }

.field-help { position: relative; display: inline-flex; flex: 0 0 auto; }

.field-help .hint-icon {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
}

.field-help .hint-icon:focus-visible {
  outline: 3px solid rgba(232, 101, 10, .2);
  outline-offset: 2px;
}

.field-tooltip {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 8px);
  width: 260px;
  padding: 10px 11px;
  border: 1px solid #d8dde3;
  border-radius: 8px;
  background: var(--wp-navy);
  color: #fff;
  box-shadow: 0 8px 22px rgba(30, 43, 60, .2);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  transform: translateX(-50%);
}

.field-tooltip::after {
  position: absolute;
  left: 50%;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: var(--wp-navy);
  content: '';
  transform: translateX(-50%);
}

.field-tooltip[hidden] { display: none; }

.walls-panel { padding-bottom: 14px; }
.walls-header { align-items: center; }
.wall-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--wp-accent);
  border-radius: 8px;
  background: #fff;
  color: var(--wp-accent);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.wall-add:hover { background: var(--wp-accent); color: #fff; }
.wall-add > span { font-size: 17px; line-height: 1; }
.wall-add:disabled { opacity: .45; cursor: not-allowed; }

.wall-list { display: grid; gap: 8px; }
.wall-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) 112px;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--wp-line);
  border-radius: 9px;
  background: #fafafa;
  transition: border-color .15s, box-shadow .15s;
}
.wall-row--single { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.wall-row--single .wall-actions { display: none; }
.wall-row:focus-within { border-color: #f4b183; box-shadow: 0 0 0 2px rgba(232, 101, 10, .06); }
.wall-name {
  grid-column: 1 / -1;
  margin: 0 1px -2px;
  color: #89929e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1px;
}
.wall-field label {
  display: block;
  margin-bottom: 5px;
  color: #707b89;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.wall-field input {
  width: 100%;
  height: 40px;
  padding: 9px 11px;
  border: 1.5px solid var(--wp-line);
  border-radius: 7px;
  background: #fff;
  color: #273548;
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}
.wall-field input:focus { border-color: var(--wp-accent); outline: none; box-shadow: 0 0 0 3px rgba(232, 101, 10, .1); }
.wall-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.wall-actions button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 40px;
  border: 1px solid var(--wp-line);
  border-radius: 7px;
  background: #fff;
  color: #687382;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.wall-actions button:hover:not(:disabled) { border-color: var(--wp-accent); color: var(--wp-accent); background: #fff8f2; }
.wall-actions button[data-remove]:hover:not(:disabled) { border-color: #dc2626; color: #dc2626; background: #fff5f5; }
.wall-actions button:disabled { opacity: .3; cursor: not-allowed; }

.calculator-error {
  padding: 12px 15px;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 8px;
  background: #fff5f5;
  color: #991b1b;
  font-size: 13px;
}

.results-overview {
  padding: 18px;
  border: 1px solid var(--wp-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(30, 43, 60, .04);
}

.results-overview-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}

.results-overview-icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #fff2e8;
  color: var(--wp-accent);
  font-size: 15px;
  font-weight: 800;
}

.results-overview-heading h2 {
  margin: 0 0 2px;
  color: var(--wp-navy);
  font-size: 16px;
  font-weight: 650;
}

.results-overview-heading p {
  margin: 0;
  color: #7b8491;
  font-size: 10px;
  line-height: 1.45;
}

.wallpaper-summary {
  gap: 0;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--wp-line);
  border-radius: 9px;
}
.wallpaper-summary .summary-card {
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--wp-line);
  border-radius: 0;
  background: #fbfbfa;
  box-shadow: none;
}
.wallpaper-summary .summary-card:last-child { border-right: 0; }
.wallpaper-summary .summary-card--accent { background: var(--wp-navy); }
.wallpaper-summary .summary-card small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #7b8491;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wallpaper-summary .summary-card--accent small { color: rgba(255,255,255,.58); }
.wallpaper-summary .summary-card__val { white-space: nowrap; }

.reserve-advice {
  margin-bottom: 10px;
  padding: 11px 13px;
  border: 1px solid #cddfd5;
  border-radius: 8px;
  background: #f2f8f4;
  color: #53655a;
  font-size: 11px;
  line-height: 1.55;
}
.reserve-advice strong { color: #28543a; }
.reserve-advice--extra { border-color: #f1cfaa; background: #fff8f0; color: #755337; }
.reserve-advice--extra strong { color: #9a4307; }

.result-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: #f4f6f7;
  overflow: hidden;
}
.result-detail { padding: 11px 14px; border-right: 1px solid var(--wp-line); }
.result-detail:last-child { border-right: 0; }
.result-detail span { display: block; margin-bottom: 3px; color: #7b8491; font-size: 10px; text-transform: uppercase; letter-spacing: .45px; }
.result-detail strong { color: #273548; font-family: var(--font-mono); font-size: 13px; }

.plan-section {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--wp-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(30, 43, 60, .04);
}
.plan-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 6px; }
.plan-title-row > div:first-child > span,
.guide-heading > span {
  display: block;
  margin-bottom: 4px;
  color: var(--wp-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.plan-title-row h2 { color: var(--wp-navy); font-size: 18px; font-weight: 650; }
.plan-explanation { max-width: 900px; margin: 0 0 17px; color: #707b89; font-size: 11px; line-height: 1.55; }
.plan-legend { display: flex; align-items: center; gap: 13px; color: #7b8491; font-size: 10px; white-space: nowrap; }
.plan-legend span { display: flex; align-items: center; gap: 5px; }
.plan-legend b { color: var(--wp-navy); font-family: var(--font-mono); font-size: 11px; }

.walls-viewport { overflow-x: auto; padding: 6px 4px 12px; scrollbar-color: #c5cad1 transparent; }
.walls-plan { display: flex; align-items: flex-end; min-width: max-content; }
.wall-visual-card { width: var(--card-width); min-width: 180px; max-width: 520px; }
.wall-visual-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 39px;
  padding: 0 3px 8px;
}
.wall-visual-head div { min-width: 0; }
.wall-visual-head strong { display: block; overflow: hidden; color: #273548; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.wall-visual-head span { color: #7b8491; font-family: var(--font-mono); font-size: 9px; }
.wall-visual-stage-wrap { display: flex; align-items: flex-end; height: 288px; }
.wall-visual-stage {
  position: relative;
  width: 100%;
  height: var(--wall-height);
  min-height: 90px;
  border-top: 2px solid var(--wp-navy);
  border-bottom: 5px solid #d7d1c8;
  background: #f1ede7;
  box-shadow: inset 0 0 0 1px rgba(30,43,60,.2), 0 5px 12px rgba(30,43,60,.07);
  overflow: hidden;
}
.paper-fragment {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: var(--fragment-left);
  width: var(--fragment-width);
  min-width: 2px;
  border-right: 1px solid rgba(30,43,60,.55);
  background-color: var(--strip-color);
  overflow: hidden;
}
.paper-fragment.patterned {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'%3E%3Cg fill='none' stroke='%235d6c65' stroke-opacity='.24' stroke-width='2'%3E%3Cpath d='M0 0 50 60 0 120M100 0 50 60 100 120'/%3E%3Cpath d='M50 17v86M50 34c-13-1-20-8-22-18 12 0 20 6 22 18Zm0 0c13-1 20-8 22-18-12 0-20 6-22 18ZM50 86c-13 1-20 8-22 18 12 0 20-6 22-18Zm0 0c13 1 20 8 22 18-12 0-20-6-22-18Z'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.62' stroke='%235d6c65' stroke-opacity='.22' stroke-width='1.5'%3E%3Cellipse cx='50' cy='52' rx='7' ry='14'/%3E%3Cellipse cx='50' cy='68' rx='7' ry='14'/%3E%3Cellipse cx='42' cy='60' rx='14' ry='7'/%3E%3Cellipse cx='58' cy='60' rx='14' ry='7'/%3E%3Ccircle cx='50' cy='60' r='4' fill='%23e8650a' fill-opacity='.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: var(--pattern-width) var(--pattern-size);
  background-position: var(--pattern-x) var(--pattern-position);
  background-repeat: repeat-y;
}
.paper-fragment.drop::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  top: var(--phase-mark);
  border-top: 1px dashed rgba(124,58,8,.45);
}
.paper-fragment > span {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 22px;
  padding: 2px 4px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 4px;
  background: rgba(30,43,60,.8);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.paper-fragment.too-narrow > span { display: none; }
.wall-corner {
  position: relative;
  z-index: 4;
  flex: 0 0 18px;
  width: 18px;
  height: 288px;
}
.wall-corner::before { content: ''; position: absolute; left: 7px; bottom: 0; width: 4px; height: 100%; border-radius: 3px 3px 0 0; background: var(--wp-navy); box-shadow: 2px 0 0 rgba(232,101,10,.25); }
.wall-corner::after { content: 'kampas'; position: absolute; bottom: 8px; left: 10px; color: #8a94a1; font-size: 8px; transform: rotate(-90deg); transform-origin: left bottom; }

.roll-plan { display: grid; gap: 12px; }
.roll-card { padding: 12px; border: 1px solid var(--wp-line); border-radius: 9px; background: #fafafa; }
.roll-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.roll-card-head strong { color: #273548; font-size: 12px; }
.roll-card-head span { color: #7b8491; font-family: var(--font-mono); font-size: 10px; }
.roll-track {
  display: flex;
  width: 100%;
  height: 46px;
  border: 1px solid #aeb6c0;
  border-radius: 6px;
  background: #ebecef;
  overflow: hidden;
}
.roll-piece {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 2px;
  border-right: 1px solid rgba(30,43,60,.35);
  background: var(--strip-color);
  color: #273548;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
}
.roll-piece.pattern-waste { min-width: 3px; background: repeating-linear-gradient(135deg, #f59e0b 0 4px, #fed7aa 4px 8px); color: #7c3a08; }
.roll-piece.remainder { background: repeating-linear-gradient(135deg, #e4e7eb 0 5px, #f5f6f7 5px 10px); color: #7b8491; }
.roll-piece small { display: block; margin-top: 1px; font-size: 7px; font-weight: 500; }
.roll-labels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.roll-labels span { padding: 3px 7px; border: 1px solid var(--wp-line); border-radius: 999px; background: #fff; color: #647080; font-size: 9px; }
.roll-labels b { color: #273548; font-family: var(--font-mono); }

.wallpaper-warning {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #fde68a;
  border-radius: 9px;
  background: #fffbeb;
  color: #785a12;
}
.wallpaper-warning svg { flex: 0 0 20px; margin-top: 1px; color: #d97706; }
.wallpaper-warning p { margin: 0; font-size: 11px; line-height: 1.55; }
.wallpaper-warning strong { color: #6f4b06; }

.wallpaper-guide .guide-heading { max-width: 760px; margin-bottom: 25px; }
.guide-heading h2 { margin-bottom: 8px; }
.guide-heading p { color: #707b89; font-size: 13px; line-height: 1.65; }
.wallpaper-guide .steps { grid-template-columns: repeat(4, 1fr); }

.wallpaper-content { padding-top: 8px; }
.wallpaper-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wallpaper-content-grid article { padding: 22px; border: 1px solid var(--wp-line); border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(30,43,60,.04); }
.wallpaper-content-grid h2 { margin-bottom: 10px; font-size: 17px; }
.wallpaper-content-grid p { margin: 0 0 9px; color: #66717f; font-size: 12px; line-height: 1.7; }
.wallpaper-content-grid p:last-child { margin-bottom: 0; }

.source-card {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  background: #f5f8fb;
}
.source-card > span { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 50%; background: var(--wp-navy); color: #fff; font-family: serif; font-weight: 700; }
.source-card strong { display: block; margin-bottom: 3px; color: #273548; font-size: 12px; }
.source-card p { margin: 0 0 8px; color: #66717f; font-size: 11px; line-height: 1.6; }
.source-card div div { display: flex; flex-wrap: wrap; gap: 8px 15px; }
.source-card a { color: #b84d06; font-size: 10px; font-weight: 600; text-decoration: none; }
.source-card a:hover { text-decoration: underline; }

.related-tools { padding-top: 4px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 17px; }
.related-grid a { display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 11px; padding: 15px; border: 1px solid var(--wp-line); border-radius: 9px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.related-grid a:hover { border-color: var(--wp-accent); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(30,43,60,.08); }
.related-grid a > span { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 8px; background: #f5f3ee; font-size: 19px; }
.related-grid strong { color: #273548; font-size: 12px; }
.related-grid p { margin: 2px 0 0; color: #7b8491; font-size: 10px; line-height: 1.4; }
.related-grid b { color: var(--wp-accent); font-size: 16px; }

@media (min-width: 1051px) {
  .wallpaper-input-row > .panel { min-height: 374px; }

  .wallpaper-input-row .wall-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }

  .wallpaper-input-row .wall-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 1050px) {
  .wallpaper-input-row { grid-template-columns: 1fr 1fr; }
  .wallpaper-input-row .walls-panel { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .wall-row { grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) 112px; }
  .wall-row--single { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wall-actions { grid-column: auto; justify-content: flex-end; }
  .wallpaper-guide .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .wallpaper-input-row { grid-template-columns: 1fr; }
  .wallpaper-input-row .walls-panel { grid-column: auto; }
  .wall-row { grid-template-columns: 1fr 1fr; align-items: end; }
  .wall-actions { grid-column: 1 / -1; }
  .wallpaper-summary { grid-template-columns: 1fr 1fr; }
  .wallpaper-summary .summary-card:nth-child(2) { border-right: 0; }
  .wallpaper-summary .summary-card:nth-child(-n+2) { border-bottom: 1px solid var(--wp-line); }
  .result-details { grid-template-columns: 1fr 1fr; }
  .result-detail:nth-child(2) { border-right: 0; }
  .result-detail:nth-child(-n+2) { border-bottom: 1px solid var(--wp-line); }
  .plan-title-row { align-items: flex-start; flex-direction: column; }
  .wallpaper-content-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .wallpaper-app { padding-left: 10px; padding-right: 10px; }
  .wallpaper-app .panel { padding: 15px; }
  .field-grid-2 { grid-template-columns: 1fr 1fr; }
  .walls-header { align-items: stretch; }
  .wall-add { width: 100%; }
  .wall-row { grid-template-columns: 1fr 1fr; padding: 9px; }
  .wall-actions { grid-column: 1 / -1; }
  .wall-actions { justify-content: stretch; }
  .wall-actions button { flex: 1; }
  .field-tooltip { left: auto; right: -8px; width: min(250px, calc(100vw - 42px)); transform: none; }
  .field-tooltip::after { left: auto; right: 10px; transform: none; }
  .results-overview { padding: 15px 11px; }
  .results-overview-heading { padding: 0 3px; }
  .wallpaper-summary { grid-template-columns: 1fr 1fr; gap: 0; }
  .wallpaper-summary .summary-card { padding: 11px; }
  .wallpaper-summary .summary-card__val { font-size: 18px; }
  .result-details { grid-template-columns: 1fr; }
  .result-detail { border-right: 0; border-bottom: 1px solid var(--wp-line); }
  .result-detail:nth-child(3) { border-bottom: 1px solid var(--wp-line); }
  .result-detail:last-child { border-bottom: 0; }
  .plan-section { padding: 15px 11px; }
  .plan-legend { flex-wrap: wrap; white-space: normal; }
  .wallpaper-guide .steps { grid-template-columns: 1fr; }
  .wallpaper-content-grid article { padding: 17px; }
  .source-card { padding: 14px; }
}

@media print {
  .page-hero,
  .wallpaper-intro-note,
  .wallpaper-input-row,
  .calc-btn-wrap,
  .wallpaper-warning,
  .info-section,
  .footer { display: none !important; }
  .wallpaper-app { max-width: none; padding: 0; }
  .results-section { display: block !important; }
  .plan-section { break-inside: avoid; box-shadow: none; }
  .walls-viewport { overflow: visible; }
  .walls-plan { transform-origin: left top; }
}
