:root {
  --bg: #f6f3ee;
  --paper: #fffaf4;
  --ink: #25211d;
  --muted: #82786d;
  --line: #e3d9ce;
  --brand: #b56a43;
  --brand-dark: #7d3f24;
  --soft: #ead9c8;
  --green: #6f8a72;
  --shadow: 0 20px 60px rgba(64, 40, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, #fff8ef 0, var(--bg) 38%, #efe8df 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

button {
  font: inherit;
}

.app {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 28px;
  background: rgba(255, 250, 244, 0.76);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 42px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--ink);
  color: white;
  letter-spacing: 2px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 20px;
  margin-bottom: 0;
}

.steps {
  display: grid;
  gap: 12px;
}

.step-group {
  display: grid;
  gap: 8px;
}

.step {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
  color: var(--muted);
}

.step.done {
  color: var(--green);
}

.step.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.side-subnav {
  margin-left: 18px;
  padding: 8px;
  display: grid;
  gap: 6px;
  border-left: 2px solid rgba(181, 106, 67, 0.25);
}

.side-subnav a {
  display: block;
  padding: 13px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.side-subnav a.active,
.side-subnav a:hover {
  background: #efe1d2;
  color: var(--brand-dark);
}

.client-card {
  margin-top: 34px;
  padding: 20px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.project-center-card {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(239, 225, 210, 0.68));
  box-shadow: 0 14px 34px rgba(64, 40, 25, 0.08);
}

.project-center-card h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

.project-center-card label {
  display: grid;
  gap: 7px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.project-center-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: #fffaf4;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.project-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.project-actions button {
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.project-actions button:last-child {
  background: #efe1d2;
  color: var(--brand-dark);
}

.project-center-card > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.client-card h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.client-card p:last-child {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.admin-entry {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed rgba(181, 106, 67, 0.36);
  border-radius: 16px;
  color: var(--brand-dark);
  background: rgba(239, 225, 210, 0.45);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.main {
  padding: 34px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: stretch;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.95), rgba(234, 217, 200, 0.75));
  box-shadow: var(--shadow);
}

.hero h2 {
  font-size: 34px;
  line-height: 1.22;
  margin-bottom: 14px;
}

.hero p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0;
}

.hero-price {
  border-radius: 24px;
  background: var(--ink);
  color: white;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-price span,
.hero-price small {
  color: rgba(255, 255, 255, 0.68);
}

.hero-price strong {
  font-size: 38px;
  margin: 12px 0 8px;
}

.product-admin-board {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(111, 138, 114, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(244, 235, 226, 0.9));
  box-shadow: 0 16px 40px rgba(64, 40, 25, 0.08);
}

.product-admin-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.78fr) minmax(360px, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.product-admin-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.64);
}

.product-admin-form label {
  display: grid;
  gap: 7px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.product-admin-form > .full,
.product-admin-form label.full,
.product-admin-form button {
  grid-column: 1 / -1;
}

.product-admin-form input,
.product-admin-form select,
.product-admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: #fffaf4;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.product-admin-form textarea {
  resize: vertical;
  line-height: 1.55;
}

.product-admin-form input:focus,
.product-admin-form select:focus,
.product-admin-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(181, 106, 67, 0.12);
}

.style-board-admin-form input[type="file"] {
  padding: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.style-board-admin-form input[type="file"]::file-selector-button {
  margin-right: 9px;
  border: 0;
  border-radius: 10px;
  padding: 7px 10px;
  background: rgba(181, 106, 67, 0.1);
  color: var(--brand-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.product-admin-form button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--ink);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.product-admin-form .style-board-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 2px;
}

.product-admin-form .style-board-actions button {
  grid-column: auto;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fffaf4;
  color: var(--brand-dark);
  white-space: nowrap;
}

.product-admin-form .style-board-actions button[type="submit"] {
  grid-column: 1 / -1;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.product-admin-form .style-board-actions .danger-button {
  background: #fff;
  color: #a64738;
  border-color: rgba(166, 71, 56, 0.28);
}

.product-library-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffaf4;
}

.library-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.library-toolbar strong {
  font-size: 18px;
}

.library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.library-toolbar button,
.library-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: white;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.library-actions button:first-child {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.product-library-list {
  display: grid;
  gap: 12px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.empty-library {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.empty-library strong {
  color: var(--ink);
}

.library-product-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.library-product-image {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #efe1d2;
  overflow: hidden;
}

.library-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-product-image span {
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 900;
}

.library-product-card small {
  color: var(--brand);
  font-weight: 900;
}

.library-product-card h4 {
  margin: 5px 0;
  font-size: 18px;
}

.library-product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.library-product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.library-product-meta strong {
  color: var(--brand-dark);
}

.library-product-meta button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: white;
  color: var(--muted);
  cursor: pointer;
}

.explainer-admin-board {
  margin-top: 24px;
}

.explainer-admin-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(480px, 1.28fr);
  gap: 18px;
  align-items: start;
}

.explainer-upload-field small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

.device-explainer-library {
  display: grid;
  gap: 14px;
}

.explainer-library-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.explainer-library-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: #efe1d2;
}

.explainer-library-card small {
  color: var(--brand);
  font-weight: 900;
}

.explainer-library-card h4 {
  margin: 5px 0;
  font-size: 20px;
}

.explainer-library-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.explainer-library-card span {
  color: var(--muted);
  font-size: 12px;
}

.explainer-library-card button {
  float: right;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: white;
  color: var(--muted);
  cursor: pointer;
}

.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.style-board-admin-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(150px, 1fr));
  gap: 10px;
}

.style-board-admin-preview figure {
  position: relative;
  min-height: 180px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f4eee7;
}

.style-board-admin-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.style-board-admin-preview figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(37, 33, 29, 0.82);
  color: white;
  font-size: 11px;
}

.style-board-admin-preview .default-slot {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f6eee5, #e8d7c6);
}

.style-board-admin-preview .default-slot > span {
  color: rgba(90, 53, 25, 0.28);
  font-size: 58px;
  font-weight: 900;
}

.admin-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.86);
  backdrop-filter: blur(18px);
}

.admin-sidebar > .brand {
  flex: 0 0 auto;
}

.admin-nav {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  gap: 10px;
  margin-top: 34px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 53, 25, 0.25) transparent;
}

.admin-nav a,
.back-to-config {
  display: block;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
}

.admin-nav a.active,
.admin-nav a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.back-to-config {
  flex: 0 0 auto;
  margin-top: 16px;
  background: #efe1d2;
  color: var(--brand-dark);
  text-align: center;
}

.admin-main {
  padding: 34px;
}

.admin-hero {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 18%, rgba(181, 106, 67, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(234, 217, 200, 0.76));
  box-shadow: var(--shadow);
}

.admin-hero h2 {
  max-width: 980px;
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1.18;
}

.admin-hero p:last-child {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.admin-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.admin-placeholder-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffaf4;
}

.admin-placeholder-grid h3 {
  margin-bottom: 8px;
}

.admin-placeholder-grid p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.archive-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-placeholder-grid .project-archive-admin {
  grid-column: 1 / -1;
}

.archive-toolbar {
  margin-bottom: 4px;
}

.archive-toolbar h3,
.archive-toolbar p {
  margin: 0;
}

.project-archive-form[hidden] {
  display: none;
}

.project-archive-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.project-archive-form label {
  display: grid;
  gap: 7px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.project-archive-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fffaf4;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.project-archive-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.project-archive-form-actions button,
.archive-card-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.project-archive-form-actions button[type="submit"],
.archive-card-actions button:first-child {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.archive-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.archive-card small {
  color: var(--brand);
  font-weight: 900;
}

.archive-card h4 {
  margin: 5px 0;
  font-size: 18px;
}

.archive-card p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
}

.archive-card em {
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
  line-height: 1.55;
}

.archive-card-side > span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.archive-card-side {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.archive-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.archive-card-actions .danger-button {
  border-color: rgba(166, 71, 56, 0.28);
  color: #a64738;
}

@media (max-width: 760px) {
  .project-archive-form {
    grid-template-columns: 1fr;
  }

  .archive-card {
    grid-template-columns: 1fr;
  }

  .archive-card-side {
    justify-items: start;
  }

  .archive-card-actions {
    justify-content: flex-start;
  }
}


.system-map {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.72);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}

.map-node {
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--muted);
}

.map-node.required {
  background: var(--ink);
  color: white;
}

.map-node.hot {
  background: #f3e3d3;
  color: var(--brand-dark);
}

.map-line {
  min-width: 28px;
  height: 1px;
  background: var(--line);
}

.water-overview {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 18%, rgba(181, 106, 67, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(242, 232, 220, 0.86));
  box-shadow: 0 16px 40px rgba(64, 40, 25, 0.08);
}

.overview-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.overview-head h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.overview-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.overview-head > div:first-child > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.overview-lecture-tip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.overview-lecture-tip strong {
  white-space: nowrap;
}

.overview-lecture-tip span {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

.legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 340px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend .cold {
  background: #7da8b6;
}

.legend .hot {
  background: #c87a52;
}

.legend .drink {
  background: #6f8a72;
}

.home-diagram {
  position: relative;
  min-height: 430px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.72) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.72) 1px, transparent 1px),
    linear-gradient(135deg, #fdf8f1, #efe2d2);
  background-size: 92px 92px, 92px 92px, auto;
  border: 1px solid rgba(227, 217, 206, 0.92);
  overflow: hidden;
}

.home-diagram::before {
  content: "";
  position: absolute;
  inset: 34px 36px;
  border: 2px solid rgba(125, 63, 36, 0.13);
  border-radius: 24px;
}

.pipe {
  position: absolute;
  border-radius: 999px;
  opacity: 0.9;
}

.main-pipe {
  left: 84px;
  right: 180px;
  top: 178px;
  height: 8px;
  background: linear-gradient(90deg, #7da8b6, #7da8b6 62%, #6f8a72);
}

.branch {
  width: 8px;
  background: #7da8b6;
}

.branch.kitchen {
  left: 650px;
  top: 178px;
  height: 116px;
}

.branch.bath {
  left: 438px;
  top: 64px;
  height: 114px;
}

.branch.dining {
  left: 820px;
  top: 64px;
  height: 114px;
  background: #6f8a72;
}

.branch.hot-loop {
  left: 650px;
  top: 314px;
  width: 280px;
  height: 7px;
  background: linear-gradient(90deg, #c87a52, #d59a78);
}

.diagram-node {
  position: absolute;
  z-index: 2;
  width: 160px;
  min-height: 82px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(227, 217, 206, 0.96);
  box-shadow: 0 12px 26px rgba(64, 40, 25, 0.08);
}

.diagram-node::before {
  content: "";
  position: absolute;
  left: 14px;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7da8b6;
  border: 4px solid #fffaf4;
  box-shadow: 0 4px 12px rgba(64, 40, 25, 0.13);
}

.diagram-node strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.diagram-node small {
  color: var(--muted);
  line-height: 1.45;
}

.diagram-node.inlet {
  left: 48px;
  top: 138px;
  background: var(--ink);
  color: white;
}

.diagram-node.inlet small {
  color: rgba(255, 255, 255, 0.66);
}

.diagram-node.inlet::before {
  background: var(--brand);
}

.diagram-node.pre {
  left: 190px;
  top: 138px;
}

.diagram-node.central {
  left: 346px;
  top: 138px;
}

.diagram-node.soft {
  left: 374px;
  top: 30px;
}

.diagram-node.drink {
  left: 572px;
  top: 245px;
}

.diagram-node.drink::before,
.diagram-node.pipe-machine::before {
  background: #6f8a72;
}

.diagram-node.pipe-machine {
  left: 742px;
  top: 30px;
}

.diagram-node.heater {
  left: 914px;
  top: 245px;
}

.diagram-node.heater::before {
  background: #c87a52;
}

.space-card {
  position: absolute;
  z-index: 1;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(37, 33, 29, 0.07);
  border: 1px solid rgba(125, 63, 36, 0.11);
  color: var(--ink);
}

.space-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 13px;
}

.space-card b {
  font-size: 15px;
}

.kitchen-space {
  left: 612px;
  top: 330px;
}

.bath-space {
  left: 256px;
  top: 52px;
}

.dining-space {
  left: 924px;
  top: 72px;
}

.callout {
  position: absolute;
  z-index: 3;
  max-width: 230px;
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.92);
  border: 1px solid rgba(181, 106, 67, 0.28);
  box-shadow: 0 12px 28px rgba(64, 40, 25, 0.1);
}

.callout strong {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-dark);
}

.callout span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.c1 {
  left: 62px;
  bottom: 28px;
}

.c2 {
  left: 410px;
  bottom: 28px;
}

.c3 {
  right: 42px;
  bottom: 28px;
}

.plan-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
}

.plan-canvas {
  position: relative;
  min-height: 720px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 42%, #fff 0, #fff 34%, rgba(255, 250, 244, 0.72) 70%),
    linear-gradient(135deg, #fffaf4, #eadccb);
  border: 1px solid rgba(227, 217, 206, 0.92);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 14px rgba(255, 250, 244, 0.7),
    0 18px 46px rgba(64, 40, 25, 0.12);
}

.plan-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 65% 20%, rgba(181, 106, 67, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.12), rgba(255, 250, 244, 0.42));
  pointer-events: none;
}

.plan-canvas img {
  position: absolute;
  left: 13%;
  top: 18%;
  width: 74%;
  height: 66%;
  object-fit: contain;
  filter: contrast(1.02) grayscale(0.1);
  opacity: 0.78;
}

.connector-layer {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
}

.connector-layer path {
  fill: none;
  stroke: rgba(176, 57, 47, 0.72);
  stroke-width: 1.35px;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  vector-effect: non-scaling-stroke;
}

.connector-layer .connector-prefilter,
.connector-layer .connector-central,
.connector-layer .connector-soft {
  stroke: rgba(65, 137, 163, 0.68);
}

.connector-layer .connector-drink,
.connector-layer .connector-pipeline,
.connector-layer .connector-dishwasher,
.connector-layer .connector-fridge {
  stroke: rgba(83, 137, 91, 0.68);
}

.connector-layer .connector-heater,
.connector-layer .connector-hot,
.connector-layer .connector-oven {
  stroke: rgba(199, 104, 65, 0.68);
}

.connector-layer .connector-socket {
  stroke: rgba(130, 113, 95, 0.68);
}

.connector-layer .connector-fresh {
  stroke: rgba(87, 147, 116, 0.62);
}

.connector-layer .connector-ac {
  stroke: rgba(72, 142, 172, 0.62);
}

.connector-layer .connector-service {
  stroke: rgba(130, 113, 95, 0.58);
}

.connector-layer .connector-network {
  stroke: rgba(74, 122, 145, 0.62);
}

.connector-layer .connector-smart {
  stroke: rgba(154, 99, 72, 0.62);
}

.plan-lines {
  position: absolute;
  left: 13%;
  top: 18%;
  z-index: 4;
  width: 74%;
  height: 66%;
  pointer-events: none;
}

/* 上传并确定平面方案后，不再叠加默认示意图专用的固定管线路径。 */
.plan-canvas.uses-uploaded-plan > .plan-lines {
  display: none;
}

.line {
  fill: none;
  stroke-width: 0.8px;
  stroke-linecap: round;
  stroke-dasharray: 3 7;
  opacity: 0.12;
  vector-effect: non-scaling-stroke;
}

.line.cold {
  stroke: rgba(79, 155, 181, 0.7);
}

.line.drink {
  stroke: rgba(93, 147, 103, 0.7);
}

.line.hot {
  stroke: rgba(200, 111, 70, 0.7);
}

.pin {
  position: absolute;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  min-width: 190px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.82);
  border: 1px solid rgba(227, 217, 206, 0.82);
  box-shadow: 0 10px 24px rgba(64, 40, 25, 0.08);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transform-origin: center;
  user-select: none;
  touch-action: none;
}

.water-plan .pin,
.electric-plan .pin {
  display: none;
}

.water-plan .map-device-marker,
.electric-plan .map-device-marker {
  opacity: 0.75;
  transform: translate(-50%, -50%) scale(0.72);
}

.water-plan .map-dot,
.electric-plan .map-dot {
  opacity: 0.72;
  transform: translate(-50%, -50%) scale(0.72);
}

.pin i {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  color: white;
  font-style: normal;
  font-weight: 800;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(37, 33, 29, 0.06),
    0 8px 18px rgba(64, 40, 25, 0.12);
}

.pin i img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.pin span {
  color: var(--ink);
  white-space: nowrap;
  display: grid;
  gap: 2px;
}

.pin span b {
  font-size: 16px;
  line-height: 1.1;
}

.pin span small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.simple-pin i {
  width: 44px;
  height: 44px;
  background: currentColor;
}

.simple-pin span b {
  font-size: 17px;
}

.mini-device {
  display: block;
  position: relative;
  width: 28px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff1e5, #d28b60);
  border: 2px solid rgba(124, 65, 38, 0.18);
}

.mini-device::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 14px;
  height: 5px;
  border-radius: 6px;
  background: rgba(124, 65, 38, 0.25);
}

.mini-device::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 12px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.45);
}

.pin[data-type="cold"] {
  color: #4f9bb5;
}

.pin[data-type="drink"] {
  color: #5d9367;
}

.pin[data-type="hot"] {
  color: #c86f46;
}

.pin-inlet { left: 15%; top: 46%; }
.pin-central { left: 36%; top: 88%; }
.pin-sink { left: 51%; top: 11%; }
.pin-dining { left: 20%; top: 25%; }
.pin-heater { left: 76%; top: 11%; }
.pin-guest-bath { left: 88%; top: 36%; }
.pin-master-bath { left: 87%; top: 60%; }

.map-dot {
  position: absolute;
  z-index: 7;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-weight: 800;
  font-size: 14px;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transform-origin: center;
  user-select: none;
  touch-action: none;
  box-shadow:
    0 0 0 7px rgba(255, 250, 244, 0.78),
    0 10px 22px rgba(64, 40, 25, 0.18);
}

.map-dot[data-type="cold"] {
  background: #4f9bb5;
}

.map-dot[data-type="drink"] {
  background: #5d9367;
}

.map-dot[data-type="hot"] {
  background: #c86f46;
}

.map-device-marker {
  position: absolute;
  z-index: 7;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transform-origin: center;
  user-select: none;
  touch-action: none;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid currentColor;
  box-shadow:
    0 0 0 7px rgba(255, 250, 244, 0.76),
    0 12px 26px rgba(64, 40, 25, 0.18);
}

.map-device-marker img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.map-device-marker[data-type="cold"] {
  color: #4f9bb5;
}

.map-device-marker[data-type="drink"] {
  color: #5d9367;
}

.map-device-marker[data-type="hot"] {
  color: #c86f46;
}

.water-plan .pin {
  min-width: 210px;
}

.water-plan .pin span b {
  font-size: 17px;
}

.water-plan .pin::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  pointer-events: none;
}

.dot-inlet { left: 25%; top: 50%; }
.dot-central { left: 35%; top: 50%; }
.dot-sink { left: 58%; top: 23%; }
.dot-dining { left: 37%; top: 39%; }
.dot-heater { left: 72%; top: 22%; }
.dot-guest-bath { left: 76%; top: 35%; }
.dot-master-bath { left: 83%; top: 36%; }

.electric-plan .plan-canvas img,
.electric-plan img {
  opacity: 0.74;
}

.e-dot-dishwasher { left: 58%; top: 23%; }
.e-dot-oven { left: 64%; top: 24%; }
.e-dot-fridge { left: 51%; top: 19%; }
.e-dot-small { left: 36%; top: 38%; }

.e-pin-dishwasher { left: 33%; top: 12%; }
.e-pin-oven { left: 78%; top: 12%; }
.e-pin-fridge { left: 17%; top: 22%; }
.e-pin-small { left: 14%; top: 48%; }

.system-divider {
  margin: 54px 0 24px;
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 20%, rgba(181, 106, 67, 0.13), transparent 28%),
    linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(234, 217, 200, 0.78));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.system-divider h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.system-divider p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.coming-soon {
  margin-top: 24px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.72);
  border: 1px dashed var(--line);
}

.coming-soon h3 {
  margin: 0;
  color: var(--muted);
}

.preface-section {
  margin-top: 0;
}

.review-board,
.plan-compare-board,
.craft-overview,
.case-map-board,
.final-board {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 0%, rgba(181, 106, 67, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(244, 235, 226, 0.88));
  box-shadow: 0 16px 40px rgba(64, 40, 25, 0.08);
}

.review-board {
  display: grid;
  grid-template-columns: 280px 1fr 360px;
  gap: 18px;
}

.review-card,
.review-grid article,
.need-card,
.need-detail {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  padding: 20px;
}

.review-card.strong {
  background: var(--ink);
  color: white;
}

.review-card.strong p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.project-fields {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.project-fields label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 800;
}

.project-fields input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: none;
}

.project-fields input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.project-fields input:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.need-profile {
  margin-top: 18px;
  padding: 14px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.need-profile span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 900;
}

.need-profile strong {
  display: block;
  color: #fff;
  line-height: 1.65;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.need-card {
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: 0.18s ease;
}

.need-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(64, 40, 25, 0.09);
}

.need-card.active {
  border-color: var(--brand);
  background: #fff3e8;
  box-shadow: inset 0 0 0 1px rgba(181, 106, 67, 0.6);
}

.review-grid article span,
.need-card span {
  color: var(--brand);
  font-weight: 900;
}

.review-grid article strong,
.need-card strong {
  display: block;
  margin: 8px 0;
  font-size: 18px;
}

.review-grid article p,
.need-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.need-detail {
  background: #fffaf4;
}

.need-detail h3 {
  font-size: 24px;
}

.need-detail > p {
  color: var(--muted);
  line-height: 1.65;
}

.need-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f4eadf;
}

.need-status span {
  color: var(--brand-dark);
  font-weight: 900;
}

.need-status em {
  color: var(--green);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.need-checks {
  display: grid;
  gap: 10px;
}

.need-subsection {
  display: grid;
  gap: 10px;
  margin: 16px 0 12px;
}

.need-subsection > span {
  color: var(--brand);
  font-weight: 900;
}

.need-radios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.need-radios label {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  cursor: pointer;
  transition: 0.16s ease;
}

.need-radios label:hover {
  border-color: rgba(181, 106, 67, 0.45);
  transform: translateY(-1px);
}

.need-radios label.selected {
  border-color: var(--brand);
  background: #fff3e8;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px rgba(181, 106, 67, 0.48);
}

.need-radios input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.need-radios strong {
  font-size: 15px;
}

.need-other-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.need-other-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(181, 106, 67, 0.12);
}

.need-chip-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.need-chip-checks label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  cursor: pointer;
  transition: 0.16s ease;
}

.need-chip-checks label.selected {
  border-color: var(--brand);
  background: #fff3e8;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px rgba(181, 106, 67, 0.42);
}

.need-chip-checks input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.need-chip-checks strong {
  font-size: 14px;
}

.quality-life-block {
  padding: 14px;
  border: 1px dashed rgba(181, 106, 67, 0.38);
  border-radius: 18px;
  background: rgba(255, 243, 232, 0.55);
}

.quality-life-block p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.need-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-weight: 800;
}

.need-checks input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.need-note {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.need-note span {
  color: var(--brand);
  font-weight: 900;
}

.need-note textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  resize: vertical;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  line-height: 1.6;
  outline: none;
}

.need-note textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(181, 106, 67, 0.12);
}

.need-next {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(111, 138, 114, 0.12);
}

.need-next span {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.need-next strong {
  line-height: 1.55;
}

.plan-compare-board {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(360px, 0.65fr);
  gap: 22px;
}

.plan-solution-board {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.plan-solution-list {
  display: grid;
  gap: 24px;
}

.plan-solution-item {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 0%, rgba(181, 106, 67, 0.09), transparent 25%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.97), rgba(244, 235, 226, 0.9));
  box-shadow: 0 16px 40px rgba(64, 40, 25, 0.08);
}

.plan-solution-item.is-selected {
  border-color: rgba(181, 106, 67, 0.62);
  box-shadow: 0 16px 40px rgba(64, 40, 25, 0.08), inset 0 0 0 1px rgba(181, 106, 67, 0.18);
}

.plan-solution-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.plan-solution-number {
  display: flex;
  align-items: center;
  gap: 15px;
}

.plan-solution-number > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: var(--ink);
  color: white;
  font-size: 17px;
  font-weight: 900;
}

.plan-solution-number h3 {
  margin: 3px 0;
  font-size: 26px;
}

.plan-solution-number small {
  color: var(--muted);
}

.plan-solution-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.plan-solution-header-actions button,
.plan-add-solution button {
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.plan-select-current.active {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.plan-delete-solution {
  color: #a84536 !important;
}

.plan-solution-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 250px);
  align-items: start;
  gap: 14px;
}

.plan-add-solution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border: 1px dashed rgba(181, 106, 67, 0.42);
  border-radius: 26px;
  background: rgba(255, 250, 244, 0.72);
}

.plan-add-solution h3 {
  margin: 4px 0 6px;
}

.plan-add-solution span {
  color: var(--muted);
  line-height: 1.6;
}

.plan-add-solution button {
  flex: 0 0 auto;
  padding: 14px 22px;
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.plan-workbench {
  grid-template-columns: minmax(620px, 1fr) minmax(300px, 340px);
  align-items: start;
}

.plan-stage,
.plan-decision {
  min-width: 0;
}

.plan-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.plan-toolbar h3 {
  margin-bottom: 6px;
  font-size: 24px;
}

.plan-toolbar p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.floor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.floor-tabs button,
.plan-image-tabs button,
.compare-options article button,
.plan-ai-panel button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  cursor: pointer;
}

.floor-tabs button {
  min-width: 48px;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 900;
}

.floor-tabs button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.floor-tabs button.add-floor {
  min-width: auto;
  border-style: dashed;
  border-color: rgba(181, 106, 67, 0.48);
  background: #fff8f1;
  color: var(--brand);
}

.floor-tabs button.remove-floor {
  min-width: auto;
  border-color: rgba(168, 69, 54, 0.24);
  background: rgba(168, 69, 54, 0.06);
  color: #a84536;
}

.plan-image-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.plan-image-tabs button {
  padding: 13px 14px;
  border-radius: 17px;
  text-align: left;
}

.plan-image-tabs button.active {
  border-color: var(--brand);
  background: #fff3e8;
  box-shadow: inset 0 0 0 1px rgba(181, 106, 67, 0.48);
}

.plan-image-tabs strong,
.plan-image-tabs span {
  display: block;
}

.plan-image-tabs strong {
  color: var(--ink);
}

.plan-image-tabs span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.compare-plan {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: #fff;
  overflow: hidden;
  border: 1px solid var(--line);
}

.plan-preview {
  min-height: 620px;
}

.compare-plan img {
  width: 92%;
  max-height: 500px;
  object-fit: contain;
  opacity: 0.88;
}

.plan-empty-preview {
  display: grid;
  place-items: center;
  gap: 10px;
  width: 100%;
  padding: 24px;
  text-align: center;
}

.plan-empty-preview strong {
  font-size: 20px;
}

.plan-empty-preview span {
  color: var(--muted);
}

.plan-empty-symbol {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px dashed rgba(181, 106, 67, 0.52);
  border-radius: 22px;
  background: #fff7ef;
  color: var(--brand);
  font-size: 30px;
  font-style: normal;
  font-weight: 500;
}

.plan-empty-preview button {
  margin-top: 6px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.flow-empty-preview {
  min-height: 360px;
}

.plan-empty-preview img {
  width: 80%;
  max-height: 320px;
  opacity: 0.38;
}

.plan-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.plan-upload-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px dashed rgba(181, 106, 67, 0.35);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.75);
  cursor: pointer;
}

.plan-upload-card.flow-entry {
  width: 100%;
  text-align: left;
  font: inherit;
}

.plan-upload-card.flow-entry.active {
  border-style: solid;
  border-color: var(--brand);
  background: #fff3e8;
}

.plan-upload-card.has-image {
  border-style: solid;
  border-color: rgba(111, 138, 114, 0.42);
  background: rgba(111, 138, 114, 0.1);
}

.plan-upload-card input {
  display: none;
}

.plan-upload-card span {
  color: var(--brand);
  font-weight: 900;
}

.plan-upload-card strong {
  color: var(--ink);
}

.plan-upload-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.compare-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.move-line {
  fill: none;
  stroke: rgba(92, 138, 106, 0.78);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.move-line.second {
  stroke: rgba(181, 106, 67, 0.78);
}

.demo-mark {
  fill: rgba(181, 106, 67, 0.16);
  stroke: rgba(181, 106, 67, 0.72);
  stroke-width: 0.9;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}

.compare-legend {
  position: absolute;
  left: 26px;
  bottom: 22px;
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.88);
  box-shadow: 0 10px 24px rgba(64, 40, 25, 0.1);
}

.compare-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.compare-legend i {
  width: 20px;
  height: 8px;
  border-radius: 999px;
}

.compare-legend .move {
  background: rgba(92, 138, 106, 0.78);
}

.compare-legend .demo {
  background: rgba(181, 106, 67, 0.62);
}

.compare-options {
  display: grid;
  gap: 16px;
}

.compare-options article {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fffaf4;
}

.compare-options article.selected {
  border-color: var(--brand);
  background: #fff3e8;
  box-shadow: inset 0 0 0 1px rgba(181, 106, 67, 0.6);
}

.compare-options article {
  cursor: pointer;
}

.compare-options article button {
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.compare-options article.selected button {
  background: var(--brand);
  border-color: var(--brand);
}

.compare-options span {
  color: var(--brand);
  font-weight: 900;
}

.compare-options h3 {
  margin: 8px 0;
}

.compare-options p,
.compare-options li {
  color: var(--muted);
  line-height: 1.65;
}

.plan-decision {
  position: sticky;
  top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fffaf4;
}

.plan-decision > p {
  color: var(--muted);
  line-height: 1.65;
}

.plan-note {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.plan-note span {
  color: var(--brand);
  font-weight: 900;
}

.plan-note textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  resize: vertical;
  background: white;
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  outline: none;
}

.plan-ai-panel,
.plan-relation {
  margin-top: 16px;
  padding: 15px;
  border-radius: 18px;
  background: rgba(239, 225, 210, 0.44);
}

.plan-ai-panel h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.plan-ai-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.plan-ai-panel button {
  width: 100%;
  margin: 12px 0;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  font-weight: 900;
}

.plan-ai-output {
  display: grid;
  gap: 8px;
}

.plan-ai-output p {
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-size: 13px;
}

.plan-relation strong,
.plan-relation span {
  display: block;
}

.plan-relation strong {
  color: var(--brand-dark);
  margin-bottom: 6px;
}

.plan-relation span {
  color: var(--muted);
  line-height: 1.55;
}

.plan-options-below {
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: 6px;
}

.plan-options-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.plan-options-head h3 {
  margin: 4px 0 0;
  font-size: 24px;
}

.plan-options-head > span {
  color: var(--muted);
  font-size: 13px;
}

.plan-options-below .compare-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-options-below .compare-options article {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 20px;
}

.plan-options-below .compare-options article ul {
  flex: 1;
  margin: 10px 0 0;
  padding-left: 20px;
}

.flow-toolbox {
  position: static;
  display: grid;
  gap: 0;
  padding: 15px;
  background: rgba(255, 252, 248, 0.96);
  transition: opacity 180ms ease, border-color 180ms ease;
}

.flow-toolbox.is-inactive {
  border-color: rgba(181, 106, 67, 0.28);
}

.flow-toolbox.is-disabled .flow-tool-section,
.flow-toolbox.is-disabled .flow-tool-actions,
.flow-toolbox.is-disabled .flow-quick-help {
  opacity: 0.38;
  pointer-events: none;
}

.flow-tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
}

.flow-tool-head h3 {
  margin: 4px 0 0;
  font-size: 19px;
}

.flow-save-state {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(111, 138, 114, 0.12);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.flow-tool-section {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.flow-tool-label {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.flow-type-list {
  display: grid;
  gap: 8px;
}

.flow-type-list button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.flow-type-list button.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.flow-type-list i {
  width: 32px;
  border-top: 3px dashed var(--flow-color);
}

.flow-type-list strong {
  font-size: 12px;
}

.flow-type-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.flow-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  border-radius: 14px;
  background: #eee8e1;
}

.flow-tool-mode-grid {
  gap: 4px;
}

.flow-mode-switch button {
  padding: 9px 5px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.flow-mode-switch button.active {
  background: var(--ink);
  color: white;
  box-shadow: 0 5px 14px rgba(33, 29, 25, 0.16);
}

.flow-style-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.flow-style-controls label > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.flow-style-controls output {
  color: var(--ink);
}

.flow-style-controls input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.flow-color-control {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.flow-color-control input[type="color"] {
  width: 50px;
  height: 30px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.flow-node-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
}

.flow-node-toggle input {
  accent-color: var(--brand);
}

.flow-tool-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.flow-tool-actions button {
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.flow-tool-actions button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.flow-tool-actions button.danger {
  color: #a84536;
}

.flow-tool-actions button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.flow-quick-help {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(239, 225, 210, 0.42);
}

.flow-quick-help strong {
  color: var(--brand-dark);
  font-size: 12px;
}

.flow-quick-help span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.flow-canvas-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 14px;
}

.flow-canvas {
  position: relative;
  width: 100%;
  line-height: 0;
  user-select: none;
}

.compare-plan .flow-canvas img {
  display: block;
  width: 100%;
  max-height: none;
  object-fit: contain;
  opacity: 0.82;
  pointer-events: none;
}

.flow-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.flow-canvas.tool-route svg,
.flow-canvas.tool-pen svg {
  cursor: crosshair;
}

.flow-canvas.tool-eraser .flow-line {
  cursor: cell;
}

.flow-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: stroke;
}

.flow-line-group.selected .flow-line {
  filter: drop-shadow(0 0 3px rgba(33, 29, 25, 0.38));
}

.flow-canvas.is-adjusting .flow-line {
  cursor: pointer;
}

.flow-line.draft {
  opacity: 0.72;
  pointer-events: none;
}

.flow-node {
  fill: white;
  stroke: var(--node-color);
  stroke-width: 0.45;
  vector-effect: non-scaling-stroke;
  cursor: grab;
}

.flow-node.selected,
.flow-node.draft {
  fill: var(--node-color);
}

.flow-node:active {
  cursor: grabbing;
}

.flow-canvas-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(100%, 940px);
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f5efe9;
  color: var(--muted);
  font-size: 11px;
}

.flow-canvas-status strong {
  color: var(--brand);
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 16px;
}

.quote-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.quote-pill {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
}

.quote-pill span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quote-pill strong {
  color: var(--brand-dark);
  font-size: 22px;
}

.quote-pill.strong {
  background: var(--ink);
  border-color: var(--ink);
}

.quote-pill.strong span {
  color: rgba(255, 255, 255, 0.7);
}

.quote-pill.strong strong {
  color: white;
}

.craft-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffaf4;
}

.craft-card:hover {
  border-color: rgba(181, 106, 67, 0.65);
  box-shadow: 0 14px 34px rgba(64, 40, 25, 0.08);
}

.craft-index {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.craft-card h3 {
  margin-bottom: 6px;
}

.craft-title span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #efe1d2;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.craft-card p {
  margin: 0;
  color: var(--muted);
}

.craft-price {
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}

.craft-price small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.craft-cost-lines {
  grid-column: 2 / 4;
  display: grid;
  gap: 8px;
}

.craft-cost-lines div {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(227, 217, 206, 0.82);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.craft-cost-lines span {
  color: var(--brand);
  font-weight: 900;
}

.craft-cost-lines strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.craft-cost-lines em {
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 900;
}

.craft-detail {
  grid-column: 2 / 4;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(239, 225, 210, 0.56);
}

.craft-detail span {
  color: var(--brand);
  font-weight: 900;
}

.craft-detail strong {
  flex: 1;
  color: var(--ink);
}

.craft-detail em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.craft-card ul {
  grid-column: 2 / 4;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.case-map-board {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(300px, 0.55fr);
  gap: 20px;
}

.craft-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.craft-space-group { padding: 22px; border: 1px solid var(--line); border-radius: 28px; background: #fffaf5; }
.craft-space-head { display: grid; grid-template-columns: 52px 1fr auto; gap: 15px; align-items: center; margin-bottom: 18px; }
.craft-space-head > i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--brand-dark); color: #fff; font-style: normal; font-weight: 900; }
.craft-space-head span { color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.craft-space-head h3 { margin: 4px 0; font-size: 23px; }
.craft-space-head p { margin: 0; color: var(--muted); font-size: 12px; }
.craft-space-head > strong { padding: 8px 13px; border-radius: 999px; background: #f0e2d4; color: var(--brand-dark); font-size: 12px; }
.craft-space-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.craft-choice-item { display: grid; grid-template-rows: auto auto auto; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 12px 34px rgba(72, 50, 35, .06); transition: border-color .2s, box-shadow .2s, transform .2s; }
.craft-choice-item.has-selection { border-color: var(--brand); box-shadow: 0 16px 40px rgba(181, 106, 67, .14); transform: translateY(-1px); }
.craft-item-visual { position: relative; min-height: 0; margin: 0; background: #eee8df; }
.craft-item-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.craft-item-visual.is-system-sprite { height: 300px; }
.craft-item-visual.is-uploaded { aspect-ratio: 1 / 1; background: #f3eee8; }
.craft-item-visual.is-uploaded img { width: 100% !important; max-width: 100% !important; height: 100%; object-fit: contain; transform: none !important; }
.craft-item-visual span { position: absolute; left: 16px; top: 16px; padding: 7px 13px; border-radius: 999px; background: rgba(45, 37, 32, .86); color: #fff; font-size: 12px; font-weight: 900; backdrop-filter: blur(8px); }
.craft-item-copy { display: grid; align-content: start; min-height: 138px; padding: 20px 22px 14px; }
.craft-item-copy small { color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.craft-item-copy h3 { margin: 7px 0 9px; font-size: 23px; }
.craft-item-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.craft-item-action { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 20px 19px; border-top: 1px solid #eee3d9; background: #fffaf5; }
.craft-item-action > div { display: grid; gap: 4px; }
.craft-item-action span { color: var(--muted); font-size: 11px; }
.craft-item-action strong { color: var(--brand-dark); font-size: 24px; }
.craft-item-action strong small { color: var(--muted); font-size: 11px; }
.craft-item-action button { min-width: 126px; padding: 12px 15px; border: 1px solid var(--brand); border-radius: 999px; background: #fff; color: var(--brand); cursor: pointer; font-weight: 900; }
.craft-item-action button.active { background: var(--brand-dark); color: #fff; box-shadow: 0 8px 22px rgba(118, 64, 36, .2); }
.craft-choice-card { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr); gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 14px 40px rgba(72, 50, 35, .06); }
.craft-choice-card.has-selection { border-color: rgba(181, 106, 67, .65); box-shadow: 0 16px 44px rgba(181, 106, 67, .13); }
.craft-choice-visual { position: relative; min-height: 330px; background: #eee8df; }
.craft-choice-visual img { width: 100%; height: 100%; object-fit: contain; display: block; }
.craft-choice-visual > span { position: absolute; left: 18px; top: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(62, 48, 38, .88); color: #fff; font-size: 13px; font-weight: 900; backdrop-filter: blur(8px); }
.craft-choice-copy { padding: 28px; display: grid; align-content: center; gap: 20px; }
.craft-choice-heading { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.craft-choice-heading i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #f1e2d2; color: var(--brand-dark); font-style: normal; font-weight: 900; }
.craft-choice-heading h3 { margin: 0 0 7px; font-size: 25px; }
.craft-choice-heading p { margin: 0; color: var(--muted); line-height: 1.65; }
.craft-option-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.craft-option-list button { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; text-align: left; padding: 14px 15px; border: 1px solid #eadfd3; border-radius: 16px; background: #fffaf5; color: var(--ink); cursor: pointer; }
.craft-option-list button span { font-weight: 900; }
.craft-option-list button em { grid-column: 1; color: var(--muted); font-size: 12px; font-style: normal; }
.craft-option-list button b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--brand); font-size: 12px; }
.craft-option-list button.active { border-color: var(--brand); background: #f5e6d7; box-shadow: inset 0 0 0 1px var(--brand); }
.craft-custom-note { display: grid; gap: 10px; margin-top: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.craft-custom-note span { font-weight: 900; font-size: 18px; }
.craft-custom-note textarea { width: 100%; box-sizing: border-box; padding: 15px; border: 1px solid #dfd3c7; border-radius: 15px; resize: vertical; font: inherit; }
.craft-custom-note small { color: var(--muted); }
.craft-admin-preview article { display: grid; gap: 10px; }
.craft-admin-preview img { width: 100%; max-height: 300px; object-fit: contain; border-radius: 16px; background: #f4efe9; }
.craft-admin-preview h4, .craft-admin-preview p { margin: 0; }
.craft-admin-preview article > span { color: var(--brand); font-weight: 900; }
.craft-admin-preview article > div { display: grid; gap: 8px; }
.craft-admin-preview b { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: #f8f1ea; }
.craft-admin-preview em { color: var(--brand); font-size: 12px; font-style: normal; }

.product-admin-form .craft-surface-tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border-radius: 16px;
  background: #f1ebe4;
}

.product-admin-form .craft-surface-tabs button {
  grid-column: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
}

.product-admin-form .craft-surface-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 5px 16px rgba(64, 40, 25, 0.08);
}

.craft-surface-tabs button span {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(181, 106, 67, 0.11);
  color: var(--brand);
  font-size: 11px;
}

.product-admin-form .craft-group-manager {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 244, 0.72);
}

.craft-group-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.product-admin-form .craft-group-actions button,
.product-admin-form .craft-option-manager button {
  grid-column: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  white-space: nowrap;
}

.product-admin-form .craft-group-actions .danger-button {
  color: #a64738;
  border-color: rgba(166, 71, 56, 0.25);
}

.product-admin-form .craft-option-manager {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.craft-option-manager > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.craft-admin-option-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.product-admin-form .craft-admin-option-list button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  padding: 10px;
  text-align: left;
  white-space: normal;
}

.craft-admin-option-list button span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #f4ece4;
  color: var(--brand);
  font-size: 10px;
}

.craft-admin-option-list button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.craft-admin-option-list button em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.product-admin-form .craft-admin-option-list button.active {
  border-color: var(--brand);
  background: #f9eee5;
  box-shadow: inset 0 0 0 1px rgba(181, 106, 67, 0.18);
}

.product-admin-form .craft-library-form .library-crud-actions,
.craft-library-form .library-crud-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#craftLibraryPreview + #resetCraftLibraryGroup {
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 760px) {
  .product-admin-form .craft-group-manager {
    grid-template-columns: 1fr;
  }

  .craft-group-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .craft-admin-option-list {
    grid-template-columns: 1fr;
  }
}

.budget-reference-board { display: grid; gap: 20px; }
.transparent-promise { display: flex; justify-content: space-between; gap: 30px; padding: 30px; border-radius: 26px; background: linear-gradient(135deg, #3a2c24, #704325); color: #fff; }
.transparent-promise span { color: #f2c89f; font-weight: 900; }
.transparent-promise h3 { margin: 8px 0; color: #fff8f1; font-size: 28px; text-shadow: 0 1px 1px rgba(0,0,0,.18); }
.transparent-promise p { margin: 0; max-width: 720px; color: rgba(255,250,245,.84); line-height: 1.7; }
.transparent-promise > strong { align-self: center; text-align: right; font-size: 24px; line-height: 1.45; color: #ffd6b0; text-shadow: 0 1px 1px rgba(0,0,0,.16); }
.budget-cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.budget-cost-grid article { padding: 23px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.budget-cost-grid i { color: #c7a88d; font-style: normal; font-weight: 900; }.budget-cost-grid span,.budget-cost-grid strong,.budget-cost-grid small { display:block; }.budget-cost-grid span { margin-top: 14px; font-weight:900; }.budget-cost-grid strong { margin-top:6px; font-size:22px; color:var(--brand-dark); }.budget-cost-grid p,.budget-cost-grid small { color:var(--muted); }
.quote-detail-board{border:1px solid var(--line);border-radius:22px;background:#fff;overflow:hidden}
.quote-detail-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 22px;background:#f5eee8}.quote-detail-head span{color:var(--brand);font-size:12px;font-weight:900}.quote-detail-head h3{margin:4px 0 0}.quote-detail-head>strong{color:var(--brand-dark);font-size:20px}
.quote-detail-groups{display:grid}.quote-detail-groups details{border-top:1px solid var(--line)}.quote-detail-groups details:first-child{border-top:0}.quote-detail-groups summary{display:flex;justify-content:space-between;gap:16px;padding:16px 22px;cursor:pointer;font-weight:900}.quote-detail-groups summary strong{color:var(--brand-dark)}
.quote-table{padding:0 22px 16px}.quote-table-row{display:grid;grid-template-columns:minmax(260px,1fr) 120px 120px 130px;gap:12px;align-items:center;padding:11px 0;border-top:1px dashed var(--line);font-size:12px}.quote-table-row>span:nth-child(n+2),.quote-table-row>strong{text-align:right}.quote-table-row b,.quote-table-row small{display:block}.quote-table-row small{margin-top:3px;color:var(--muted);font-size:10px}.quote-table-header{color:var(--muted);font-weight:800}.quote-calculation-note{margin:0;padding:14px 22px;background:#f8f5f1;color:var(--muted);font-size:12px;line-height:1.6}.quote-empty-state{padding:26px;text-align:center;background:#f8f5f1}.quote-empty-state span{color:var(--brand);font-weight:900}.quote-empty-state h3{margin:6px 0}.quote-empty-state p{margin:0;color:var(--muted)}
.quote-library-admin{margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}
.quote-library-admin>.library-toolbar{margin-bottom:16px}.quote-library-admin>.library-toolbar div{display:grid;gap:3px}.quote-library-admin>.library-toolbar span{color:var(--muted);font-size:12px}
.quote-library-layout{display:grid;grid-template-columns:minmax(360px,.8fr) minmax(0,1.2fr);gap:18px;align-items:start}
.quote-library-preview{display:grid;gap:8px;max-height:760px;overflow:auto}
.quote-library-preview article{display:flex;justify-content:space-between;gap:16px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}
.quote-library-preview article.is-disabled{opacity:.48}.quote-library-preview span,.quote-library-preview small{display:block;color:var(--muted);font-size:11px}.quote-library-preview h4{margin:3px 0;font-size:14px}.quote-library-preview p{margin:0;color:var(--muted);font-size:11px}.quote-library-preview article>div:last-child{text-align:right}.quote-library-preview strong{color:var(--brand-dark);white-space:nowrap}
.professional-fees { padding: 26px; border: 1px solid var(--line); border-radius: 26px; background: #fffaf5; }.fee-edit-head{display:flex;justify-content:space-between;gap:20px;align-items:center}.fee-edit-head span{color:var(--brand);font-weight:900}.fee-edit-head h3{margin:5px 0 0}.fee-edit-head>strong{color:var(--brand-dark);font-size:20px}.fee-input-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:20px}.fee-input-grid label{position:relative;display:grid;gap:7px;font-size:12px;font-weight:900}.fee-input-grid input{width:100%;box-sizing:border-box;padding:12px 48px 12px 11px;border:1px solid #decfbe;border-radius:12px}.fee-input-grid em{position:absolute;right:10px;bottom:12px;color:var(--muted);font-size:11px;font-style:normal}.fee-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:15px}.fee-service-card{padding:20px;border:1px solid #eadfd4;border-radius:20px;background:#fff}.fee-service-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.fee-service-heading span,.fee-service-heading small{display:block;color:var(--muted)}.fee-service-heading strong{display:block;margin:5px 0;font-size:24px;color:var(--brand-dark)}.fee-service-heading em{padding:7px 10px;border-radius:999px;background:#f6e9dc;color:var(--brand);font-size:12px;font-style:normal;font-weight:900}.fee-service-card>p{margin:14px 0;color:#6f6258;line-height:1.7}.fee-deliverables{margin-top:16px;padding-top:15px;border-top:1px solid #eee2d7}.fee-deliverable-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.fee-deliverable-head span{color:#2f2925;font-weight:900}.fee-deliverable-head b{color:var(--brand);font-size:12px}.fee-deliverables ol{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:13px 0 0;padding:0;list-style:none}.fee-deliverables li{display:flex;gap:9px;padding:11px;border-radius:12px;background:#fbf7f2}.fee-deliverables li>i{display:grid;place-items:center;flex:0 0 22px;height:22px;border-radius:50%;background:var(--brand-dark);color:#fff;font-size:11px;font-style:normal;font-weight:900}.fee-deliverables li strong{display:block;color:#322b26;font-size:13px}.fee-deliverables li small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.5}.budget-disclaimer{padding:15px 18px;border-radius:14px;background:#f2ece5;color:var(--muted);font-size:13px;line-height:1.65}.case-map-visual{text-decoration:none;color:inherit}.case-map-cta{display:inline-flex;margin-top:14px;padding:11px 18px;border-radius:999px;background:var(--brand-dark);color:#fff}

@media (max-width: 900px) { .craft-choice-card { grid-template-columns: 1fr; }.craft-space-options { grid-template-columns: 1fr; }.craft-space-head { grid-template-columns: 48px 1fr; }.craft-space-head > strong { grid-column: 2; justify-self: start; }.craft-choice-visual { min-height: 240px; }.craft-choice-item { grid-template-rows: auto auto auto; }.craft-item-visual.is-system-sprite { height: 260px; }.craft-option-list { grid-template-columns: 1fr; }.budget-cost-grid,.fee-input-grid,.quote-library-layout { grid-template-columns: 1fr; }.transparent-promise,.fee-edit-head,.quote-detail-head { flex-direction: column; align-items:flex-start; }.transparent-promise > strong { text-align:left; }.fee-result-grid,.fee-deliverables ol { grid-template-columns:1fr; }.quote-table-row{grid-template-columns:1fr 1fr}.quote-table-header{display:none}.quote-table-row>span:nth-child(n+2),.quote-table-row>strong{text-align:left} }

.case-map-visual {
  min-height: 360px;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(181, 106, 67, 0.16), transparent 38%),
    #fffaf4;
  overflow: hidden;
}

.case-map-visual h3 {
  font-size: 34px;
  margin-bottom: 8px;
}

.case-map-visual p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
}

.map-orbit {
  position: absolute;
  inset: 34px;
  border: 1px dashed rgba(181, 106, 67, 0.35);
  border-radius: 999px;
}

.map-orbit span {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 8px 18px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.case-list {
  display: grid;
  gap: 14px;
}

.case-list article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.case-list strong,
.case-list span {
  display: block;
}

.case-list span {
  margin-top: 8px;
  color: var(--muted);
}

.final-board {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
}

.final-left {
  display: grid;
  gap: 16px;
}

.final-ticket,
.final-budget {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fffaf4;
}

.final-ticket h3,
.final-budget h3 {
  font-size: 26px;
}

.final-checklist {
  display: grid;
  gap: 10px;
}

.final-checklist div,
.budget-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.final-checklist span,
.budget-line span {
  color: var(--muted);
}

.final-checklist strong,
.budget-line strong {
  text-align: right;
}

.pdf-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: auto;
  padding: 36px;
  background: rgba(37, 33, 29, 0.56);
  backdrop-filter: blur(12px);
}

.pdf-preview-modal[hidden] {
  display: none;
}

.pdf-preview-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.pdf-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: #fffaf4;
  box-shadow: var(--shadow);
}

.pdf-preview-toolbar h3 {
  margin: 0;
}

.pdf-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-actions > span { max-width: 220px; color: #8a7869; font-size: 11px; line-height: 1.45; text-align: right; }

.pdf-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.pdf-actions button:first-child {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.pdf-page {
  width: 210mm;
  margin: 0 auto 40px;
  display: grid;
  gap: 28px;
  background: transparent;
  color: #25211d;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.pdf-sheet {
  position: relative;
  box-sizing: border-box;
  width: 210mm;
  min-width: 210mm;
  max-width: 210mm;
  height: 297mm;
  min-height: 297mm;
  max-height: 297mm;
  overflow: hidden;
  padding: 13mm 13mm 17mm;
  background: #fffdf9;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.pdf-cover-sheet {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 85% 15%, rgba(191, 132, 77, 0.18), transparent 28%),
    linear-gradient(145deg, #fffdf9 0 62%, #f1e5d7 62% 100%);
}

.pdf-cover-brand { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid #d7c9ba; }
.pdf-cover-brand span { color: #9f191f; font-size: 25px; font-weight: 900; letter-spacing: .08em; }
.pdf-cover-brand small { color: #87786b; font-size: 10px; letter-spacing: .12em; }
.pdf-cover-title { margin-top: 130px; }
.pdf-cover-title i { color: #a56d3a; font-size: 11px; font-style: normal; font-weight: 900; letter-spacing: .18em; }
.pdf-cover-title h1 { margin: 18px 0 25px; color: #28221e; font-size: 52px; line-height: 1.16; letter-spacing: -.04em; }
.pdf-cover-title p { margin: 0; color: #9f191f; font-size: 20px; font-weight: 800; }
.pdf-cover-meta { width: 62%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 28px; margin-top: 58px; }
.pdf-cover-meta div { display: grid; gap: 5px; padding-bottom: 10px; border-bottom: 1px solid #d9cdbf; }
.pdf-cover-meta span { color: #8d7e71; font-size: 10px; }
.pdf-cover-meta strong { font-size: 13px; }
.pdf-purpose-note { margin-top: auto; padding: 17px 19px; border-left: 4px solid #9f191f; background: rgba(255,255,255,.72); }
.pdf-purpose-note strong { color: #9f191f; font-size: 12px; }
.pdf-purpose-note p { margin: 6px 0 0; color: #675d55; font-size: 11px; line-height: 1.7; }

.pdf-page-head { display: flex; align-items: center; gap: 15px; padding-bottom: 17px; border-bottom: 2px solid #302822; }
.pdf-page-head > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #9f191f; color: #fff; font-size: 17px; font-weight: 900; }
.pdf-page-head small { color: #a56d3a; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.pdf-page-head h2 { margin: 4px 0 0; font-size: 24px; }
.pdf-intro { margin: 17px 0; color: #6e6258; font-size: 11px; line-height: 1.75; }
.pdf-content-block { margin-top: 22px; }
.pdf-content-block h3,
.pdf-system-grid h3,
.pdf-two-panel h3,
.pdf-evidence-row h3,
.pdf-confirmation h3 { margin: 0 0 12px; color: #7d3f24; font-size: 15px; }

.pdf-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pdf-table div,
.pdf-budget-grid div {
  padding: 11px;
  border-radius: 11px;
  background: #f3eae0;
}

.pdf-table strong,
.pdf-table span {
  display: block;
}

.pdf-table strong,
.pdf-budget-grid strong {
  color: #25211d;
}

.pdf-table span,
.pdf-budget-grid span {
  margin-top: 5px;
  color: #756a60;
  font-size: 10px;
  line-height: 1.5;
}

.pdf-budget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.pdf-key-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.pdf-key-grid div { display: grid; gap: 5px; padding: 12px; border: 1px solid #e4d9ce; border-radius: 12px; }
.pdf-key-grid span { color: #8b7c70; font-size: 9px; }
.pdf-key-grid strong { font-size: 11px; line-height: 1.45; }
.pdf-plan-conclusion { padding: 18px; border-radius: 14px; background: #2d2520; color: #fff; }
.pdf-plan-conclusion h3 { color: #f0c58f; }
.pdf-plan-conclusion p { margin: 0; color: rgba(255,255,255,.76); font-size: 11px; line-height: 1.7; }
.pdf-plan-conclusion p strong { color: #fff; }
.pdf-plan-conclusion > div { display: grid; gap: 4px; margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.15); }
.pdf-plan-conclusion span { color: #f0c58f; font-size: 9px; }
.pdf-plan-conclusion b { font-size: 10px; }

.pdf-plan-visual-meta {
  display: grid;
  grid-template-columns: 1.6fr .7fr .7fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.pdf-plan-visual-meta div {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid #e2d6ca;
  border-radius: 11px;
  background: #fff;
}

.pdf-plan-visual-meta span { color: #89786b; font-size: 8px; }
.pdf-plan-visual-meta strong { font-size: 10px; line-height: 1.4; }

.pdf-plan-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 545px;
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid #dfd2c5;
  border-radius: 15px;
  background: #f3ece4;
}

.pdf-plan-figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #fff;
}

.pdf-plan-figure figcaption {
  padding: 10px 14px;
  background: #2d2520;
  color: rgba(255, 255, 255, .78);
  font-size: 8px;
  line-height: 1.5;
}

.pdf-plan-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pdf-plan-summary section {
  padding: 14px;
  border-radius: 12px;
  background: #f3eae0;
}

.pdf-plan-summary h3 { margin: 0 0 7px; color: #7d3f24; font-size: 12px; }
.pdf-plan-summary p { margin: 0; color: #65594f; font-size: 8.5px; line-height: 1.6; }
.pdf-plan-summary ul { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.pdf-plan-summary li { padding: 5px 7px; border-radius: 999px; background: #fff; color: #6b4e39; font-size: 7.5px; }
.pdf-plan-summary small { display: block; margin-top: 7px; color: #937f6f; font-size: 7.5px; line-height: 1.5; }

.pdf-drawing-sheet { --drawing-accent: #9f191f; background: #fffefa; }
.pdf-drawing-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 14px; border-bottom: 2px solid #29231f; }
.pdf-drawing-head > div { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; column-gap: 12px; }
.pdf-drawing-head span { grid-row: 1 / 3; display: grid; place-items: center; height: 48px; border-radius: 10px; background: var(--drawing-accent); color: #fff; font-size: 11px; font-weight: 900; }
.pdf-drawing-head small { color: #9b7a5d; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.pdf-drawing-head h2 { margin: 3px 0 0; font-size: 22px; }
.pdf-drawing-head > strong { padding: 7px 10px; border: 1px solid #d8cabc; border-radius: 999px; color: #8e7c6d; font-size: 7px; letter-spacing: .12em; }
.pdf-drawing-meta { display: grid; grid-template-columns: 1.5fr 1.1fr .65fr .65fr .65fr; gap: 7px; margin-top: 13px; }
.pdf-drawing-meta div { display: grid; gap: 3px; padding: 8px 9px; border: 1px solid #e4d9ce; border-radius: 8px; background: #fff; }
.pdf-drawing-meta span { color: #948477; font-size: 7px; }
.pdf-drawing-meta b { overflow: hidden; color: #302923; font-size: 8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.pdf-drawing-board { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 650px; margin: 13px 0 0; overflow: hidden; border: 1px solid #d9ccbf; border-radius: 12px; background: #f4eee7; }
.pdf-drawing-board > .flow-canvas-wrap { min-height: 0; padding: 16px; background: #fff; }
.pdf-drawing-board .flow-canvas { display: grid; place-items: center; width: 100%; height: 100%; }
.pdf-drawing-board .flow-canvas img { position: static; display: block; width: 100%; height: 100%; max-height: 590px; object-fit: contain; opacity: 1; filter: none; }
.pdf-drawing-board .flow-canvas-status { display: none; }
.pdf-drawing-board .dynamic-flow-svg { pointer-events: none; }
.pdf-drawing-board figcaption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; background: #2c2723; color: rgba(255,255,255,.72); font-size: 7px; line-height: 1.4; }
.pdf-drawing-board figcaption span { color: #f1c38c; font-weight: 900; }
.pdf-drawing-board figcaption b { font-weight: 500; text-align: right; }
.pdf-drawing-empty { display: grid; place-content: center; place-items: center; gap: 8px; height: 100%; min-height: 520px; background: repeating-linear-gradient(-45deg,#faf7f2 0 14px,#f5eee6 14px 28px); color: #8b796b; }
.pdf-drawing-empty strong { color: #513f32; font-size: 18px; }
.pdf-drawing-empty span { max-width: 330px; text-align: center; font-size: 9px; line-height: 1.6; }
.pdf-drawing-notes { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-left: 4px solid var(--drawing-accent); background: #f3ebe2; }
.pdf-drawing-notes strong { color: var(--drawing-accent); font-size: 9px; }
.pdf-drawing-notes p { margin: 0; color: #71655b; font-size: 8px; line-height: 1.55; }
.pdf-flow-legend { display: flex; align-items: center; gap: 5px; color: #685c52; font-size: 7px; white-space: nowrap; }
.pdf-flow-legend i { width: 14px; height: 3px; border-radius: 4px; }
.pdf-flow-legend .life { background: #df5b35; }
.pdf-flow-legend .housework { background: #3b9a58; }
.pdf-flow-legend .visitor { background: #2788d8; }

.pdf-system-board { height: 610px; }
.pdf-system-map { width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
.pdf-system-map-stage { position: absolute; inset: 7% 8%; overflow: visible; }
.pdf-system-map::before { opacity: .3; }
.pdf-system-map-stage > .pdf-mep-base {
  position: absolute !important;
  inset: auto !important;
  left: var(--base-left, 7%) !important;
  top: var(--base-top, 6%) !important;
  display: block !important;
  width: var(--base-width, 86%) !important;
  height: var(--base-height, 88%) !important;
  z-index: 2;
  object-fit: contain !important;
  filter: none !important;
  opacity: .92 !important;
}
.pdf-mep-connectors { position: absolute; inset: 0; z-index: 11; width: 100%; height: 100%; pointer-events: none; }
.pdf-mep-connectors line { fill: none; stroke: color-mix(in srgb, var(--drawing-accent) 58%, transparent); stroke-width: .38; stroke-dasharray: 1.2 1.8; vector-effect: non-scaling-stroke; }
.pdf-system-map .placed-device,
.pdf-system-map .placed-label { pointer-events: none; }
.pdf-system-map .placed-device { width: 32px; height: 32px; padding: 4px; }
.pdf-system-map .placed-device img,
.pdf-system-map .placed-device .placed-symbol { width: 24px; height: 24px; }
.pdf-system-map .placed-label { min-width: 86px; padding: 3px 5px; background: rgba(255,255,255,.86); }
.pdf-system-map .placed-label strong { font-size: 9px; }
.pdf-system-map .placed-label small { margin-top: 1px; font-size: 6px; }
.pdf-system-map .connector-layer path { stroke-width: 1px; }
.pdf-system-map .pdf-placed-device,
.pdf-system-map .pdf-placed-label { position: absolute; }
.pdf-system-map .pdf-placed-label { max-width: 108px; white-space: normal; }
.pdf-system-register { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 10px; align-items: start; margin-top: 10px; padding: 10px 12px; border: 1px solid #e2d7cc; border-radius: 10px; }
.pdf-system-register > strong { color: var(--drawing-accent); font-size: 9px; }
.pdf-system-register > div { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.pdf-system-register span { display: inline-flex; align-items: center; gap: 4px; color: #554a42; font-size: 7px; }
.pdf-system-register span i { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--drawing-accent); color: #fff; font-size: 6px; font-style: normal; font-weight: 900; }
.pdf-system-register em { color: #927f70; font-size: 8px; font-style: normal; }
.pdf-system-drawing .pdf-drawing-notes { margin-top: 9px; padding-top: 9px; padding-bottom: 9px; }

.pdf-style-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #2d2520;
  color: #fff;
}

.pdf-style-identity > div:first-child { display: grid; gap: 4px; }
.pdf-style-identity span { color: #e9b779; font-size: 8px; font-weight: 900; }
.pdf-style-identity strong { font-size: 20px; }
.pdf-style-identity p { margin: 0; color: rgba(255,255,255,.65); font-size: 8px; }
.pdf-style-identity > div:last-child { display: flex; align-items: center; gap: 8px; }
.pdf-style-identity i { display: grid; place-items: center; width: 42px; height: 42px; border: 3px solid rgba(255,255,255,.28); border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px rgba(0,0,0,.12); font-style: normal; }
.pdf-style-identity i b { padding: 2px 4px; border-radius: 999px; background: rgba(255,255,255,.82); color: #372e28; font-size: 7px; }

.pdf-style-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 238px);
  gap: 9px;
  margin-top: 14px;
}

.pdf-style-reference-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #eee4da;
}

.pdf-style-reference-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pdf-style-reference-grid figcaption { position: absolute; left: 9px; bottom: 9px; padding: 5px 8px; border-radius: 999px; background: rgba(37,33,29,.78); color: #fff; font-size: 7px; }

.pdf-style-reference-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.pdf-style-reference-note section { padding: 14px; border: 1px solid #e1d5c9; border-radius: 12px; background: #fff; }
.pdf-style-reference-note h3 { margin: 0 0 7px; color: #7d3f24; font-size: 12px; }
.pdf-style-reference-note p { margin: 0; color: #685b51; font-size: 8.5px; line-height: 1.6; }
.pdf-style-reference-note small { display: block; margin-top: 7px; color: #9a806c; font-size: 7.5px; line-height: 1.5; }

.pdf-system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pdf-system-grid > section { padding: 15px; border: 1px solid #e2d6ca; border-radius: 14px; background: #fff; }
.pdf-selection-list { display: grid; }
.pdf-selection-list > div { display: grid; grid-template-columns: minmax(95px, .8fr) minmax(0, 1.2fr); gap: 10px; padding: 7px 0; border-bottom: 1px dashed #e2d7cb; }
.pdf-selection-list > div:last-child { border-bottom: 0; }
.pdf-selection-list span { color: #806f62; font-size: 9px; }
.pdf-selection-list strong { text-align: right; font-size: 9px; line-height: 1.45; }
.pdf-warning { margin-top: 15px; padding: 14px 16px; border-radius: 12px; background: #fff3df; }
.pdf-warning strong { color: #8b5c21; font-size: 11px; }
.pdf-warning p { margin: 5px 0 0; color: #715f4a; font-size: 9px; line-height: 1.65; }

.pdf-style-callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding: 17px; border-radius: 14px; background: #2d2520; color: #fff; }
.pdf-style-callout div { display: grid; gap: 4px; }
.pdf-style-callout span { color: #e9b779; font-size: 9px; }
.pdf-style-callout strong { font-size: 18px; }
.pdf-style-callout p { max-width: 360px; margin: 0; color: rgba(255,255,255,.65); font-size: 9px; line-height: 1.55; }
.pdf-two-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 17px; }
.pdf-two-panel > section { padding: 15px; border: 1px solid #e2d6ca; border-radius: 14px; background: #fff; }
.pdf-inline-note { margin: 12px 0 0; padding: 11px; border-radius: 10px; background: #fff1df; color: #735b3d; font-size: 9px; line-height: 1.6; }
.pdf-footnote { margin: 13px 0 0; color: #87776b; font-size: 9px; line-height: 1.6; }

.pdf-supervision-slogan { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 20px; padding: 17px; border-radius: 14px; background: #2d2520; color: #fff; }
.pdf-supervision-slogan span { padding: 9px 14px; border-radius: 999px; background: #9f191f; font-size: 14px; font-weight: 900; }
.pdf-supervision-slogan b { color: #d4a36b; }
.pdf-supervision-loop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 14px 0; }
.pdf-supervision-loop > * { padding: 10px 5px; border-radius: 9px; background: #f2e8dd; color: #5e5146; text-align: center; font-size: 9px; }
.pdf-supervision-loop strong { background: #9f191f; color: #fff; }
.pdf-inspection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pdf-inspection-grid article { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 8px; padding: 9px; border: 1px solid #e5d9cd; border-radius: 10px; }
.pdf-inspection-grid i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #f2e8dd; color: #9f191f; font-size: 9px; font-style: normal; font-weight: 900; }
.pdf-inspection-grid strong { font-size: 9px; }
.pdf-inspection-grid p { margin: 3px 0 0; color: #76695f; font-size: 7.5px; line-height: 1.45; }
.pdf-evidence-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: center; margin-top: 14px; padding: 15px; border-radius: 14px; background: #f4e9dd; }
.pdf-evidence-row p { color: #6f6156; font-size: 9px; line-height: 1.65; }
.pdf-evidence-row a { color: #9f191f; font-size: 10px; font-weight: 800; text-decoration: none; }
.pdf-evidence-row a small { font-size: 7px; font-weight: 600; }
.pdf-evidence-row figure { margin: 0; text-align: center; }
.pdf-evidence-row img { width: 115px; height: 115px; object-fit: contain; background: #fff; }
.pdf-evidence-row figcaption { margin-top: 5px; color: #6f6156; font-size: 7px; }

.pdf-transparent-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 20px 0; padding: 20px; border-radius: 15px; background: #2d2520; color: #fff; }
.pdf-transparent-banner span { color: #e8b877; font-size: 9px; font-weight: 900; }
.pdf-transparent-banner h3 { margin: 5px 0; font-size: 19px; }
.pdf-transparent-banner p { margin: 0; color: rgba(255,255,255,.66); font-size: 9px; }
.pdf-transparent-banner > strong { color: #f2c58d; font-size: 18px; white-space: nowrap; }
.pdf-budget-main strong { font-size: 13px; }
.pdf-budget-main small { display: block; margin-top: 5px; color: #8a796b; font-size: 8px; }
.pdf-budget-construction { grid-template-columns: repeat(4, 1fr); }
.pdf-budget-construction > div:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 16px 18px; background: #2d2520; color: #fff; }
.pdf-budget-construction > div:last-child span { margin: 0; color: #e8b877; }
.pdf-budget-construction > div:last-child strong { color: #f3ca97; font-size: 18px; }
.pdf-budget-construction > div:last-child small { grid-column: 1 / -1; color: rgba(255,255,255,.58); }
.pdf-service-fees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.pdf-service-fees > div { padding: 13px; border: 1px solid #dfd2c5; border-radius: 13px; }
.pdf-service-fees span { color: #9f191f; font-size: 9px; font-weight: 900; }
.pdf-service-fees strong { display: block; margin-top: 4px; font-size: 15px; }
.pdf-service-fees p { margin: 5px 0 0; color: #75685d; font-size: 8px; line-height: 1.45; }
.pdf-service-fees ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; margin: 9px 0 0; padding: 0; list-style: none; }
.pdf-service-fees li { position: relative; padding-left: 10px; color: #3c332d; font-size: 7px; line-height: 1.35; }
.pdf-service-fees li::before { content: "✓"; position: absolute; left: 0; color: #9f191f; font-weight: 900; }
.pdf-service-fees li b,.pdf-service-fees li small { display: block; }
.pdf-service-fees li small { margin-top: 1px; color: #8a796b; font-size: 6px; }
.pdf-estimate-notice { margin-top: 16px; padding: 16px; border-left: 4px solid #9f191f; background: #fff3e3; }
.pdf-estimate-notice strong { color: #9f191f; font-size: 11px; }
.pdf-estimate-notice p { margin: 6px 0; color: #6f6054; font-size: 9px; line-height: 1.7; }
.pdf-estimate-notice small { color: #947e69; font-size: 8px; }

.pdf-quote-detail-sheet { --drawing-accent: #9f191f; }
.pdf-quote-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 14px; }
.pdf-quote-summary div { display: grid; gap: 5px; padding: 12px; border: 1px solid #e2d5c9; border-radius: 11px; background: #fff; }
.pdf-quote-summary span { color: #8c7a6c; font-size: 8px; }
.pdf-quote-summary strong { font-size: 11px; }
.pdf-quote-table { overflow: hidden; border: 1px solid #ded1c5; border-radius: 13px; background: #fff; }
.pdf-quote-row { display: grid; grid-template-columns: minmax(0, 2.2fr) .72fr .72fr .72fr; align-items: center; min-height: 58px; border-bottom: 1px solid #eadfd5; }
.pdf-quote-row:last-child { border-bottom: 0; }
.pdf-quote-row > * { padding: 9px 11px; }
.pdf-quote-row > span:first-child { display: grid; grid-template-columns: 24px minmax(0,1fr); column-gap: 7px; }
.pdf-quote-row i { grid-row: 1 / 3; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #f1e4d8; color: #9f191f; font-size: 7px; font-style: normal; font-weight: 900; }
.pdf-quote-row b { font-size: 8.5px; line-height: 1.35; }
.pdf-quote-row small { margin-top: 2px; color: #8a7a6d; font-size: 6.8px; line-height: 1.35; }
.pdf-quote-row > span:not(:first-child), .pdf-quote-row > strong { color: #4f453d; font-size: 8px; text-align: right; }
.pdf-quote-row > strong { color: #9f191f; font-size: 9px; }
.pdf-quote-head { min-height: 36px; background: #2d2723; color: #fff; }
.pdf-quote-head > span { color: rgba(255,255,255,.78) !important; font-size: 7px !important; font-weight: 800; }
.pdf-quote-head > span:first-child { display: block; }
.pdf-quote-total { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 18px; align-items: center; margin-top: 15px; padding: 16px 18px; border-radius: 13px; background: #2d2723; color: #fff; }
.pdf-quote-total div { display: grid; gap: 4px; }
.pdf-quote-total span { color: #e7b879; font-size: 8px; }
.pdf-quote-total strong { color: #f3ca97; font-size: 20px; }
.pdf-quote-total p { margin: 0; color: rgba(255,255,255,.68); font-size: 8px; line-height: 1.65; }

.pdf-professional-fee-total { display: grid; grid-template-columns: 1fr 24px 1fr 24px 1.15fr; align-items: center; gap: 8px; margin: 18px 0; }
.pdf-professional-fee-total > div { display: grid; gap: 5px; padding: 15px; border: 1px solid #e1d4c8; border-radius: 12px; background: #fff; }
.pdf-professional-fee-total > div:last-of-type { background: #2d2520; color: #fff; }
.pdf-professional-fee-total span { color: #9f191f; font-size: 8px; font-weight: 900; }
.pdf-professional-fee-total strong { font-size: 17px; }
.pdf-professional-fee-total small { color: #8b796c; font-size: 7px; }
.pdf-professional-fee-total > div:last-of-type span { color: #e8b877; }
.pdf-professional-fee-total > div:last-of-type strong { color: #f3ca97; }
.pdf-professional-fee-total > div:last-of-type small { color: rgba(255,255,255,.6); }
.pdf-professional-fee-total > i { color: #b47b49; font-size: 17px; font-style: normal; font-weight: 900; text-align: center; }
.pdf-service-fees-full { margin-top: 0; }
.pdf-service-fees-full > div { padding: 16px; }
.pdf-final-price { display: grid; grid-template-columns: 170px minmax(0,1fr); align-items: center; gap: 8px 18px; margin-top: 16px; padding: 17px 19px; border-left: 5px solid #9f191f; background: #fff1df; }
.pdf-final-price span { color: #9f191f; font-size: 10px; font-weight: 900; }
.pdf-final-price strong { color: #2d2520; font-size: 21px; text-align: right; }
.pdf-final-price p { grid-column: 1 / -1; margin: 0; color: #766556; font-size: 8px; line-height: 1.55; }

.pdf-final-panels { margin-top: 20px; }
.pdf-check-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pdf-check-list li { position: relative; padding: 9px 9px 9px 27px; border-radius: 9px; background: #f5ece2; color: #65594f; font-size: 10px; line-height: 1.5; }
.pdf-check-list li::before { content: "✓"; position: absolute; left: 10px; color: #9f191f; font-weight: 900; }
.pdf-confirmation { margin-top: 18px; padding: 18px; border-radius: 14px; background: #2d2520; color: #fff; }
.pdf-confirmation h3 { color: #eabb7d; }
.pdf-confirmation p { color: rgba(255,255,255,.7); font-size: 9px; line-height: 1.65; }
.pdf-confirmation label { display: block; margin-top: 12px; color: #eabb7d; font-size: 9px; }
.pdf-writing-lines { display: grid; gap: 12px; margin-top: 10px; }
.pdf-writing-lines i { height: 1px; background: rgba(255,255,255,.3); }

.signature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.signature-row span {
  border-bottom: 1px solid #8b8177;
  padding: 0 0 30px;
  color: #5f564d;
  font-size: 9px;
}

.pdf-footer { position: absolute; left: 50px; right: 50px; bottom: 28px; display: flex; justify-content: space-between; padding-top: 9px; border-top: 1px solid #d9cdbf; color: #8b7d71; font-size: 8px; }
.pdf-footer b { color: #9f191f; }

@media print {
  @page { size: 210mm 297mm; margin: 0; }
  html,
  body {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body > :not(#pdfPreviewModal) {
    display: none !important;
  }

  body * {
    visibility: hidden;
  }

  #pdfPreviewModal,
  #pdfPreviewModal * {
    visibility: visible;
  }

  #pdfPreviewModal {
    position: static;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: white;
    backdrop-filter: none;
  }

  .pdf-preview-toolbar {
    display: none;
  }

  .pdf-page {
    width: 100%;
    margin: 0;
    display: block;
  }

  .pdf-sheet {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    margin: 0;
    padding: 13mm 13mm 17mm;
    transform: none !important;
    zoom: 1 !important;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }

  .pdf-sheet:last-child { break-after: auto; page-break-after: auto; }
  .pdf-footer { left: 13mm; right: 13mm; bottom: 8mm; }
}

.style-overview {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 235, 226, 0.72), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(244, 235, 226, 0.88));
  box-shadow: 0 16px 40px rgba(64, 40, 25, 0.08);
}

.style-progress {
  min-width: 190px;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--ink);
  color: white;
}

.style-directions-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.style-progress-alternate {
  color: var(--ink);
  background: #f1e2d4;
  border: 1px solid rgba(181, 106, 67, 0.18);
}

.style-progress-alternate span {
  color: var(--brand-dark);
}

.style-progress span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.style-progress strong {
  font-size: 20px;
}

.style-list {
  display: grid;
  gap: 26px;
}

.style-row-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(227, 217, 206, 0.95);
  border-radius: 24px;
  padding: 14px 18px 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(64, 40, 25, 0.08);
  cursor: pointer;
  transition: 0.18s ease;
}

.style-row-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(64, 40, 25, 0.12);
}

.style-row-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(181, 106, 67, 0.12), 0 18px 36px rgba(64, 40, 25, 0.12);
}

.style-row-card.alternate {
  border-color: rgba(181, 106, 67, 0.55);
  box-shadow: 0 0 0 3px rgba(181, 106, 67, 0.07), 0 16px 32px rgba(64, 40, 25, 0.1);
}

.style-brand-line {
  height: 28px;
  border-bottom: 2px solid #27231f;
  display: flex;
  align-items: center;
  gap: 10px;
}

.style-brand-line strong {
  font-size: 16px;
  letter-spacing: -0.03em;
}

.style-brand-line span {
  color: var(--muted);
  font-size: 13px;
}

.style-direction-actions {
  margin-left: auto;
  display: flex;
  gap: 7px;
}

.style-direction-btn {
  border: 1px solid rgba(181, 106, 67, 0.25);
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.style-direction-btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.style-direction-btn.alternate {
  background: #f3e4d7;
}

.style-direction-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.style-row-body {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 14px 0;
}

.style-profile-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.style-profile-copy p {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 11px 13px;
  border-radius: 14px;
  background: #f7f2ec;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.style-profile-copy strong {
  color: var(--brand-dark);
  white-space: nowrap;
}

.style-profile-copy span {
  min-width: 0;
}

.style-name-vertical {
  display: grid;
  place-items: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.16em;
  font-size: 24px;
  font-weight: 800;
  color: #15120f;
  line-height: 1.15;
}

.style-image-mosaic {
  height: clamp(320px, 31vw, 520px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 9px;
  overflow: hidden;
}

.style-image-mosaic img {
  display: block;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  object-fit: cover;
  background: #f4eee7;
}

.style-image-mosaic img:nth-child(1) {
  grid-row: span 1;
}

.style-image-mosaic img:nth-child(2) {
  object-position: 70% 50%;
}

.style-image-mosaic img:nth-child(3) {
  object-position: 35% 55%;
}

.style-image-mosaic img:nth-child(4) {
  object-position: 82% 60%;
}

.style-color-ratio {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  background: #eeeeed;
}

.style-color-ratio > span {
  color: #68615a;
  font-weight: 800;
}

.ratio-track {
  display: flex;
  align-items: center;
  height: 40px;
  border-bottom: 2px solid #49443f;
}

.ratio-track i {
  position: relative;
  flex: 0 0 var(--w);
  min-width: 70px;
  height: 100%;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ratio-track b {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.28);
}

.ratio-track em {
  margin-left: 10px;
  color: #736b62;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.style-note {
  margin: 12px 4px 0 104px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.storage-overview {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 0%, rgba(181, 106, 67, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(244, 235, 226, 0.88));
  box-shadow: 0 16px 40px rgba(64, 40, 25, 0.08);
}

.storage-list {
  display: grid;
  gap: 30px;
}

.storage-board {
  overflow: hidden;
  border: 1px solid rgba(227, 217, 206, 0.95);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(64, 40, 25, 0.1);
}

.storage-board.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(181, 106, 67, 0.12), 0 18px 40px rgba(64, 40, 25, 0.14);
}

.storage-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #5a3519;
  color: #e5c09a;
}

.storage-board-head div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.storage-board-head strong {
  color: white;
  letter-spacing: -0.03em;
}

.storage-board-head span {
  font-size: 20px;
  font-weight: 800;
}

.storage-board-head button {
  border: 1px solid rgba(229, 192, 154, 0.5);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.storage-reference-status {
  border: 1px solid rgba(229, 192, 154, 0.5);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.storage-board img {
  display: block;
  width: 100%;
  background: #f4efe8;
}

.storage-space-gallery {
  position: relative;
  height: clamp(560px, 58vw, 760px);
  margin: 0 14px 14px;
  background: #f4efe8;
}

.storage-gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #f4efe8;
}

.storage-gallery-toolbar span {
  color: var(--muted);
  font-size: 11px;
}

.storage-gallery-toolbar > div {
  display: flex;
  gap: 8px;
}

.storage-gallery-toolbar button {
  border: 1px solid rgba(181, 106, 67, 0.4);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
}

.storage-gallery-shell.editing .storage-gallery-toolbar button,
.storage-gallery-shell.crop-editing .storage-gallery-toolbar button {
  background: var(--brand-dark);
  color: #fff;
}

.storage-gallery-item {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 3px solid transparent;
  border-radius: 12px;
  background: #eee5dc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.storage-gallery-shell.editing .storage-gallery-reference {
  border-color: rgba(181, 106, 67, 0.7);
  cursor: move;
  touch-action: none;
}

.storage-gallery-site,
.storage-gallery-floorplan {
  aspect-ratio: 16 / 9;
  height: auto !important;
}

.storage-gallery-item.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(181, 106, 67, 0.2);
}

.storage-space-gallery img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  background: #eee5dc;
}

.storage-gallery-floorplan img {
  transform-origin: center;
}

.storage-gallery-shell.crop-editing .storage-gallery-floorplan {
  border-color: var(--brand);
  cursor: grab;
  touch-action: none;
}

.storage-gallery-shell.annotation-editing .storage-gallery-floorplan {
  border-color: #ff4d4f;
  cursor: crosshair;
  touch-action: none;
}

.storage-gallery-shell.crop-editing .storage-gallery-floorplan:active {
  cursor: grabbing;
}

.storage-gallery-item figcaption,
.storage-gallery-item button {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(28, 22, 18, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.storage-gallery-item button {
  cursor: pointer;
}

.storage-gallery-item .storage-reference-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(36, 29, 24, 0.72);
  box-shadow: 0 6px 20px rgba(31, 24, 19, 0.18);
  font-size: 10px;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.storage-gallery-item .storage-reference-button i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.storage-reference-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.storage-gallery-item .storage-reference-button:hover {
  transform: translateY(-2px);
  background: rgba(36, 29, 24, 0.88);
  box-shadow: 0 9px 24px rgba(31, 24, 19, 0.24);
}

.storage-gallery-item.selected .storage-reference-button {
  border-color: rgba(255, 244, 233, 0.7);
  background: rgba(164, 87, 50, 0.92);
}

.storage-gallery-item.selected .storage-reference-button i {
  background: rgba(255, 255, 255, 0.22);
}

.storage-gallery-item .storage-crop-reset {
  right: 10px;
  bottom: 48px;
  left: auto;
  padding: 5px 9px;
}

.storage-floorplan-tools {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  max-width: calc(100% - 16px);
}

.storage-gallery-item .storage-floorplan-tools button {
  position: static;
  padding: 5px 8px;
  font-size: 10px;
}

.storage-floorplan-annotation {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  border: 4px solid #ff4d4f;
  background: rgba(255, 77, 79, 0.08);
  pointer-events: none;
}

.storage-resize-handle {
  display: none;
  position: absolute;
  z-index: 6;
  width: 18px;
  height: 18px;
  border-color: #a71920;
  border-style: solid;
}

.storage-resize-handle.handle-nw { top: 3px; left: 3px; border-width: 3px 0 0 3px; cursor: nwse-resize; }
.storage-resize-handle.handle-ne { top: 3px; right: 3px; border-width: 3px 3px 0 0; cursor: nesw-resize; }
.storage-resize-handle.handle-sw { bottom: 3px; left: 3px; border-width: 0 0 3px 3px; cursor: nesw-resize; }
.storage-resize-handle.handle-se {
  right: 7px;
  bottom: 7px;
  display: none;
  width: 32px;
  height: 32px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #a71920;
  box-shadow: 0 7px 18px rgba(80, 20, 20, .34);
  cursor: nwse-resize;
}

.storage-resize-handle.handle-se::after {
  content: "↘";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  font-style: normal;
  font-weight: 900;
}

.storage-gallery-shell.editing .storage-gallery-reference .storage-resize-handle {
  display: block;
}

.storage-gallery-shell.editing .storage-gallery-reference {
  border-color: rgba(167, 25, 32, .78);
  box-shadow: 0 0 0 2px rgba(167, 25, 32, .12);
}

.storage-gallery-shell.editing .storage-gallery-reference.is-resizing {
  border-color: #a71920;
  box-shadow: 0 0 0 4px rgba(167, 25, 32, .16), 0 16px 30px rgba(64, 40, 25, .18);
}

.storage-size-indicator {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(167, 25, 32, .9);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  pointer-events: none;
}

.storage-gallery-shell.editing .storage-size-indicator {
  display: block;
}

.storage-gallery-admin-preview figure:first-child {
  grid-row: span 2;
}

.storage-gallery-admin-preview .storage-planning-admin-preview {
  grid-column: 1 / -1;
  grid-row: auto;
  min-height: 220px;
}

.storage-space-planning-block {
  overflow: hidden;
  margin: 18px 20px 0;
  border: 1px solid rgba(227, 217, 206, 0.94);
  border-radius: 20px;
  background: #fff;
}

.living-storage-inventory {
  margin: 0;
  border-top: 1px solid #eadfd5;
}

.living-needs-combined {
  overflow: hidden;
  margin: 14px 20px 20px;
  border: 1px solid rgba(227, 217, 206, 0.94);
  border-radius: 20px;
  background: #fff;
}

.living-needs-combined .storage-content-grid {
  padding-top: 0;
}

.living-needs-title {
  padding-bottom: 12px;
}

.living-tv-wall-choice {
  margin: 14px 20px 0;
  border: 1px solid rgba(227, 217, 206, 0.94);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.living-tv-wall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px 18px;
}

.living-tv-wall-grid > button {
  display: grid;
  grid-template-rows: 250px auto;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border: 2px solid #eee3d8;
  border-radius: 16px;
  background: #fffaf5;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.living-tv-wall-grid > button:hover {
  transform: translateY(-2px);
  border-color: rgba(181, 106, 67, 0.55);
  box-shadow: 0 10px 24px rgba(64, 40, 25, 0.1);
}

.living-tv-wall-grid > button.selected {
  border-color: var(--brand);
  background: #fff3e8;
  box-shadow: 0 0 0 3px rgba(181, 106, 67, 0.12);
}

.living-tv-wall-visual {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #eee7df;
}

.living-tv-wall-visual img {
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.living-tv-wall-visual.side-right img {
  transform: translateX(-50%);
}

.living-tv-wall-visual.side-full img {
  width: 100%;
}

.living-tv-wall-copy {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 150px;
  padding: 18px 20px 20px;
}

.living-tv-wall-copy strong {
  color: var(--brand-dark);
  font-size: 20px;
}

.living-tv-wall-copy small {
  color: var(--muted);
  line-height: 1.55;
}

.living-tv-wall-copy em { margin-top: 8px; color: var(--brand-dark); font-size: 17px; font-style: normal; font-weight: 900; }
.living-tv-wall-copy b { justify-self: end; margin-top: -36px; padding: 8px 13px; border-radius: 999px; background: #f1e2d2; color: var(--brand); font-size: 11px; }
.living-tv-wall-grid > button.selected .living-tv-wall-copy b { background: var(--brand-dark); color: #fff; }

.living-tv-wall-note {
  display: grid;
  gap: 7px;
  margin: 0 18px 18px;
  padding: 14px 16px;
  border: 1px solid #eadfd5;
  border-radius: 14px;
  background: #fffaf5;
}

.living-tv-wall-note > span {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.living-tv-wall-note textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #dfd1c4;
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
}

.living-tv-wall-note textarea:focus {
  outline: 2px solid rgba(181, 106, 67, 0.2);
  border-color: var(--brand);
}

.living-tv-wall-note small {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 900px) {
  .living-tv-wall-grid > button { grid-template-columns: 1fr; }
  .living-tv-wall-visual { height: 220px; }
}

.living-wall-admin-fields {
  padding: 14px;
  border: 1px solid #eaded2;
  border-radius: 14px;
  background: #fffaf5;
}

.living-wall-admin-fields > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.living-gallery-page-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 6px;
  margin-top: 12px;
}

.living-gallery-page-upload > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#bedroomGalleryPage2Fields > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.living-gallery-page-upload input[type="file"],
#bedroomGalleryPage2Fields input[type="file"] {
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 1180px) {
  #storage-gallery-admin .explainer-admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #storage-gallery-admin .product-library-panel {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  #storageGalleryAdminForm,
  .living-wall-admin-fields > div,
  .living-gallery-page-upload > div {
    grid-template-columns: minmax(0, 1fr);
  }

  #storageGalleryAdminForm .style-board-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

.living-gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f4efe8;
}

.living-gallery-pagination button {
  border: 1px solid #dfd1c4;
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.living-gallery-pagination button.active {
  border-color: var(--brand);
  background: var(--brand-dark);
  color: #fff;
}

.living-gallery-pagination span {
  display: flex;
  gap: 6px;
}

.living-gallery-pagination i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d6c7b9;
}

.living-gallery-pagination i.active {
  width: 20px;
  border-radius: 999px;
  background: var(--brand);
}

.living-gallery-extra-page {
  position: relative;
  margin: 0 14px 14px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.living-gallery-extra-page img {
  display: block;
  width: 100%;
  height: auto;
}

.living-gallery-extra-page figcaption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(31,25,21,.76);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .storage-space-gallery {
    height: 620px;
  }

  .storage-gallery-toolbar span {
    display: none;
  }
}

.storage-workflow {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: #f7f1ea;
}

.storage-workflow-step {
  overflow: hidden;
  border: 1px solid rgba(227, 217, 206, 0.94);
  border-radius: 20px;
  background: #fff;
}

.storage-step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
}

.storage-step-title i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #5a3519;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.storage-step-title div {
  display: grid;
  gap: 3px;
}

.storage-step-title strong {
  font-size: 17px;
}

.storage-step-title span {
  color: var(--muted);
  font-size: 12px;
}

.storage-style-triptych {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-block: 1px solid var(--line);
}

.storage-style-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 12px;
}

.storage-style-choices button {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf6f1;
  color: var(--ink);
  cursor: pointer;
}

.storage-style-choices button span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.storage-style-choices button.selected {
  border-color: var(--brand);
  background: #fff0e4;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.storage-plan-detail-image {
  border-top: 1px solid var(--line);
}

.storage-inventory-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  padding: 0 18px 16px;
}

.storage-inventory-grid label {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 13px;
  background: #f7f2ec;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.storage-inventory-grid label > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.storage-inventory-grid input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #cdb9a7;
  padding: 5px 2px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  outline: none;
}

.storage-inventory-grid em {
  color: var(--brand-dark);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.storage-special-note {
  display: grid;
  gap: 7px;
  margin: 0 18px 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.storage-special-note textarea {
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: #fffaf5;
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
}

.storage-save-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 18px 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #edf4ea;
  color: #58704f;
  font-size: 11px;
}

.storage-save-hint b {
  color: #3f6735;
  white-space: nowrap;
}

.storage-save-hint span {
  color: var(--muted);
}

.storage-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 22px 0;
  background: #f7f1ea;
}

.storage-content-grid section {
  padding: 14px 16px;
  border: 1px solid rgba(227, 217, 206, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
}

.storage-content-grid section > span {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.storage-content-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.storage-content-grid ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.storage-content-grid li {
  padding: 5px 9px;
  border-radius: 999px;
  background: #efe2d5;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.storage-board-footer {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) 1fr;
  gap: 18px;
  padding: 16px 18px 18px;
  background: #fffaf4;
}

.storage-board-footer p {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
  font-weight: 700;
}

.storage-board-footer ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.storage-board-footer li {
  padding: 7px 10px;
  border-radius: 999px;
  background: #efe4d8;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.device-tray {
  margin-top: 18px;
  padding: 20px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.86), transparent 28%),
    rgba(255, 250, 244, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(64, 40, 25, 0.08);
}

/* 大机电讲解工作台：大图在上，设备与说明依次向下展开 */
.water-overview {
  display: flex;
  flex-direction: column;
}

.water-overview > .overview-head {
  order: 0;
}

.water-overview > .plan-board {
  display: contents;
}

.water-overview > .plan-board > .plan-canvas {
  order: 1;
  width: 100%;
  height: clamp(520px, 60vh, 680px);
  min-height: 0;
}

.water-overview > .device-tray {
  order: 2;
  position: sticky;
  bottom: 12px;
  z-index: 28;
  padding: 14px 16px;
  background: rgba(255, 250, 244, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(64, 40, 25, 0.16);
}

.water-overview > .plan-board > .plan-explain {
  order: 3;
  margin-top: 18px;
}

.water-overview > .plan-board > .plan-canvas > img {
  left: 7%;
  top: 6%;
  width: 86%;
  height: 88%;
  opacity: 0.88;
}

.water-overview > .plan-board > .plan-canvas > .plan-lines {
  left: 7%;
  top: 6%;
  width: 86%;
  height: 88%;
}

.water-overview > .plan-board > .plan-explain ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 22px;
}

.water-overview > .plan-board > .plan-explain .plan-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.water-overview > .device-tray .tray-head {
  margin-bottom: 9px;
}

.water-overview > .device-tray .tray-head h4 {
  font-size: 17px;
}

.water-overview > .device-tray .area-tabs {
  margin-bottom: 9px;
}

.water-overview > .device-tray .tray-tip {
  margin-top: 8px;
}

.water-overview > .device-tray .tray-items {
  grid-template-columns: repeat(6, minmax(108px, 1fr));
  gap: 8px;
}

.water-overview > .device-tray .tray-device {
  position: relative;
  min-height: 76px;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 15px;
  font-size: 13px;
}

.water-overview > .device-tray .tray-device img {
  max-width: 50px;
  max-height: 38px;
}

.water-overview > .device-tray .tray-symbol,
.water-overview > .device-tray .tray-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.water-overview > .device-tray .tray-icon svg {
  width: 30px;
  height: 30px;
}

.water-overview > .device-tray .tray-device::after {
  display: none;
}

.water-overview > .device-tray .tray-device.has-explainer::after {
  display: none;
}

.tray-detail-trigger {
  position: absolute;
  right: 7px;
  top: 7px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(181, 106, 67, 0.12);
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.tray-detail-trigger:hover,
.tray-detail-trigger:focus-visible {
  background: var(--brand);
  color: #fff;
  outline: none;
}

.network-overview #networkTrayItems:has(.tray-device[data-plan-index]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.network-overview .tray-device[data-plan-index] {
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  place-items: center start;
  min-height: 112px;
  padding: 15px 18px;
  text-align: left;
}

.network-overview .tray-device[data-plan-index] > img {
  grid-row: 1 / 3;
  align-self: center;
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.network-overview .tray-device[data-plan-index] .tray-symbol,
.network-overview .tray-device[data-plan-index] .tray-icon {
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  color: var(--brand-dark);
  background: rgba(181, 106, 67, 0.1);
}

.network-overview .tray-device-name {
  align-self: end;
  font-size: 16px;
  line-height: 1.25;
}

.network-overview .tray-device-desc {
  display: block;
  align-self: start;
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  white-space: normal;
  word-break: keep-all;
}

.network-overview .tray-device[data-plan-index].system-tier-selected {
  border-color: var(--brand);
  background: #fff4e8;
  box-shadow: inset 0 0 0 1px var(--brand), 0 12px 24px rgba(64, 40, 25, 0.1);
}

.tray-head h4 {
  margin: 0;
  font-size: 20px;
}

.clear-placements {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.clear-placements:hover {
  color: var(--brand-dark);
  border-color: rgba(181, 106, 67, 0.35);
}

.tray-items {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
}

.area-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.area-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 800;
}

.area-tab.active,
.area-tab:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tray-device {
  min-height: 96px;
  border: 1px solid rgba(227, 217, 206, 0.96);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f5ede4);
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px;
  cursor: grab;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(64, 40, 25, 0.07);
}

.tray-device:active {
  cursor: grabbing;
}

.tray-device::after {
  content: "点击讲解";
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(3px);
  transition: 0.18s ease;
}

.tray-device:hover::after,
.tray-device.explainer-active::after {
  opacity: 1;
  transform: translateY(0);
}

.tray-device.explainer-active {
  border-color: rgba(181, 106, 67, 0.55);
  box-shadow: 0 0 0 3px rgba(181, 106, 67, 0.1), 0 14px 30px rgba(64, 40, 25, 0.11);
}

.device-explainer-modal[hidden] {
  display: none;
}

.device-explainer-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
}

.device-explainer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(31, 26, 22, 0.66);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.device-explainer-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 94vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid rgba(227, 217, 206, 0.95);
  border-radius: 30px;
  background: #fffaf2;
  box-shadow: 0 30px 90px rgba(24, 18, 14, 0.32);
}

.device-explainer-close {
  position: sticky;
  z-index: 3;
  top: 18px;
  float: right;
  margin: 18px 18px 0 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(227, 217, 206, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 26px;
  cursor: pointer;
}

.device-explainer-layout {
  padding: 38px;
}

.device-explainer-kicker {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.device-explainer-layout h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
}

.device-explainer-summary {
  margin: 12px 0 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.device-explainer-reference {
  display: block;
  width: 100%;
  border-radius: 22px;
  background: #f7f0e5;
}

.device-explainer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) 1.18fr;
  gap: 24px;
}

.device-explainer-visual,
.device-explainer-section {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.device-explainer-visual {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 28px;
}

.device-explainer-visual img {
  width: 100%;
  height: 330px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.device-explainer-copy {
  display: grid;
  gap: 14px;
}

.device-explainer-section {
  padding: 20px 22px;
}

.device-explainer-section strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 17px;
}

.device-explainer-section p,
.device-explainer-section ul {
  margin: 0;
  color: var(--ink);
  line-height: 1.75;
}

.device-explainer-section ul {
  padding-left: 20px;
}

body.device-explainer-open {
  overflow: hidden;
}

.tray-device img {
  max-width: 68px;
  max-height: 52px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.tray-symbol {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--ink);
  color: white;
  font-size: 24px;
}

.tray-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(207, 188, 169, 0.92);
  color: #8a6047;
  box-shadow:
    inset 0 0 0 5px rgba(248, 243, 236, 0.88),
    0 10px 20px rgba(64, 40, 25, 0.08);
}

.tray-icon svg {
  width: 42px;
  height: 42px;
}

.tray-icon-light {
  color: #c58a3d;
}

.tray-icon-floor,
.tray-icon-socket {
  color: #b56a43;
}

.tray-icon-switch,
.tray-icon-power {
  color: #5f6f5f;
}

.tray-icon-network,
.tray-icon-smart {
  color: #4b8ba1;
}

.tray-icon-heater {
  color: #c56a4a;
}

.tray-icon-appliance {
  color: #6f6a62;
}

.tray-icon-tv,
.tray-icon-projector,
.tray-icon-printer {
  color: #5d6678;
}

.tray-icon-curtain,
.tray-icon-coffee,
.tray-icon-wine {
  color: #9a6b4f;
}

.tray-icon-washer,
.tray-icon-dryer,
.tray-icon-fridge,
.tray-icon-dishwasher {
  color: #6b8792;
}

.tray-icon-oven,
.tray-icon-hood,
.tray-icon-robot,
.tray-icon-toilet {
  color: #8a7564;
}

.tray-tip {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.plan-canvas.drop-ready {
  outline: 3px dashed rgba(181, 106, 67, 0.45);
  outline-offset: -14px;
}

.placed-device {
  position: absolute;
  z-index: 12;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transform-origin: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(176, 57, 47, 0.22);
  box-shadow: 0 4px 10px rgba(64, 40, 25, 0.08);
  backdrop-filter: blur(8px);
  cursor: move;
  user-select: none;
  touch-action: none;
}

.placed-device img,
.placed-device .placed-symbol {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: white;
  object-fit: contain;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
}

.placed-device .placed-symbol {
  background: #b92b23;
}

.placed-device .placed-symbol.placed-icon {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(185, 43, 35, 0.22);
  color: #a9362f;
  box-shadow: inset 0 0 0 4px rgba(248, 243, 236, 0.9);
}

.placed-device .placed-symbol.placed-icon svg {
  width: 24px;
  height: 24px;
}

.placed-device .placed-icon-light {
  color: #c58a3d;
}

.placed-device .placed-icon-socket,
.placed-device .placed-icon-floor {
  color: #b56a43;
}

.placed-device .placed-icon-switch,
.placed-device .placed-icon-power {
  color: #5f6f5f;
}

.placed-device .placed-icon-network,
.placed-device .placed-icon-smart {
  color: #4b8ba1;
}

.placed-device .placed-icon-heater {
  color: #c56a4a;
}

.placed-device .placed-icon-appliance {
  color: #6f6a62;
}

.placed-device .placed-icon-tv,
.placed-device .placed-icon-projector,
.placed-device .placed-icon-printer {
  color: #5d6678;
}

.placed-device .placed-icon-curtain,
.placed-device .placed-icon-coffee,
.placed-device .placed-icon-wine {
  color: #9a6b4f;
}

.placed-device .placed-icon-washer,
.placed-device .placed-icon-dryer,
.placed-device .placed-icon-fridge,
.placed-device .placed-icon-dishwasher {
  color: #6b8792;
}

.placed-device .placed-icon-oven,
.placed-device .placed-icon-hood,
.placed-device .placed-icon-robot,
.placed-device .placed-icon-toilet {
  color: #8a7564;
}

.placed-device span {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.placed-device.placed-icon-only {
  width: 42px;
  height: 42px;
  padding: 5px;
  border-radius: 50%;
  justify-content: center;
}

.placed-device.placed-icon-only span:not(.placed-symbol) {
  display: none;
}

.placed-device.placed-icon-only img,
.placed-device.placed-icon-only .placed-symbol {
  width: 32px;
  height: 32px;
}

.placed-label {
  position: absolute;
  z-index: 13;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transform-origin: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  border: 0;
  box-shadow: none;
  backdrop-filter: blur(4px);
  cursor: move;
  user-select: none;
  touch-action: none;
}

.placed-label i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  border: 1px solid rgba(185, 43, 35, 0.28);
  box-shadow: 0 5px 12px rgba(64, 40, 25, 0.08);
  flex: 0 0 auto;
}

.placed-label i img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.placed-label .placed-symbol {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #b92b23;
  color: white;
  font-weight: 900;
}

.placed-label strong {
  display: block;
  font-size: 15px;
  line-height: 1.18;
  color: #a9362f;
  font-weight: 800;
}

.placed-label small {
  display: block;
  margin-top: 3px;
  color: #a9362f;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.86;
}

.canvas-delete-btn {
  display: none;
}

.floating-tools {
  position: fixed;
  z-index: 9999;
  display: flex;
  gap: 6px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(37, 33, 29, 0.9);
  box-shadow: 0 14px 34px rgba(64, 40, 25, 0.24);
  backdrop-filter: blur(12px);
}

.floating-tools[hidden] {
  display: none;
}

.floating-tools button {
  border: 0;
  min-width: 34px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.floating-tools button[data-tool="delete"] {
  background: #b92b23;
}


.canvas-editable {
  cursor: move;
}

.canvas-selected {
  outline: 1.5px solid rgba(185, 43, 35, 0.9);
  outline-offset: 4px;
  box-shadow:
    0 0 0 7px rgba(185, 43, 35, 0.08),
    0 12px 24px rgba(64, 40, 25, 0.12) !important;
}

.canvas-edit-toolbar {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(37, 33, 29, 0.86);
  color: white;
  font-size: 12px;
  box-shadow: 0 14px 28px rgba(64, 40, 25, 0.18);
  pointer-events: none;
}

@media (max-width: 1400px) {
  .tray-items {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-explain {
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 250, 244, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(64, 40, 25, 0.08);
}

.plan-explain h4 {
  font-size: 22px;
  margin: 0 0 16px;
}

.plan-explain ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.plan-explain li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.plan-explain b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.plan-explain li span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.plan-tip {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: var(--ink);
  color: white;
}

.plan-tip strong {
  display: block;
  margin-bottom: 8px;
}

.plan-tip span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  font-size: 13px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.62fr) minmax(560px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.product-picker {
  grid-template-columns: minmax(360px, 0.58fr) minmax(620px, 0.95fr);
}

.product-picker > .cards {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-gutter: stable;
}

.product-picker > .cards::-webkit-scrollbar,
.product-picker > .summary::-webkit-scrollbar {
  width: 6px;
}

.product-picker > .cards::-webkit-scrollbar-thumb,
.product-picker > .summary::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(181, 106, 67, 0.24);
}

.product-picker > .summary {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding-right: 4px;
}

.cards {
  display: grid;
  gap: 18px;
}

.option-card,
.panel {
  background: rgba(255, 250, 244, 0.9);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 12px 32px rgba(64, 40, 25, 0.08);
}

.option-card {
  padding: 20px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 26px;
  box-shadow: inset 0 0 36px rgba(255, 255, 255, 0.18);
}

.card-head h3 {
  font-size: 22px;
  margin-bottom: 2px;
}

.short-copy {
  margin: 0;
  color: var(--muted);
}

.tag {
  align-self: flex-start;
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 13px;
}

.use-line {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(227, 217, 206, 0.8);
  display: flex;
  align-items: center;
  gap: 12px;
}

.use-line span {
  white-space: nowrap;
  color: var(--brand);
  font-size: 13px;
}

.use-line strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.plan {
  border: 1px solid var(--line);
  background: white;
  border-radius: 22px;
  padding: 0;
  cursor: pointer;
  transition: 0.18s ease;
  min-height: 96px;
  overflow: hidden;
  text-align: left;
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: stretch;
}

.plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(64, 40, 25, 0.1);
}

.plan.selected {
  border-color: var(--brand);
  background: #fff4e8;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.plan.selected .plan-image::after {
  content: "已选择";
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(37, 33, 29, 0.78);
  color: white;
  font-size: 12px;
}

.plan-image {
  position: relative;
  height: 100%;
  min-height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.plan-image::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 24px;
}

.product-stage {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.38) 38%, rgba(213, 198, 181, 0.42) 100%),
    linear-gradient(135deg, #f8f1e8, #e5d4c2) !important;
}

.product-stage img {
  position: relative;
  z-index: 1;
  max-width: 82%;
  max-height: 78px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 18px 18px rgba(56, 42, 31, 0.18));
  transition: 0.18s ease;
}

.plan:hover .product-stage img {
  transform: scale(1.04);
}

.tier-badge {
  position: absolute !important;
  left: 9px;
  top: 9px;
  z-index: 2;
  width: auto !important;
  height: auto !important;
  padding: 6px 10px;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: var(--brand-dark) !important;
  font-size: 12px !important;
  backdrop-filter: blur(10px);
}

.plan-image > .device {
  position: relative;
  z-index: 1;
}

.device {
  width: 92px;
  height: 88px;
  display: block;
  filter: drop-shadow(0 18px 18px rgba(32, 26, 20, 0.22));
}

.device i,
.device b,
.device em {
  position: absolute;
  display: block;
  box-sizing: border-box;
}

.device-filter i {
  left: 34px;
  top: 4px;
  width: 24px;
  height: 80px;
  border-radius: 13px;
  background: linear-gradient(180deg, #f8f5ee, #cfd6ce);
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.device-filter b {
  left: 21px;
  top: 18px;
  width: 50px;
  height: 13px;
  border-radius: 10px;
  background: #efe6d8;
}

.device-filter em {
  left: 17px;
  top: 54px;
  width: 58px;
  height: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.device-clean i,
.device-soft i {
  left: 20px;
  top: 6px;
  width: 52px;
  height: 76px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #d8e0df);
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.device-clean b,
.device-soft b {
  left: 30px;
  top: 18px;
  width: 32px;
  height: 10px;
  border-radius: 999px;
  background: rgba(66, 93, 101, 0.34);
}

.device-clean em,
.device-soft em {
  left: 34px;
  top: 42px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 5px solid rgba(79, 118, 124, 0.34);
}

.device-soft i {
  background: linear-gradient(180deg, #fff8ec, #dec5aa);
}

.device-soft em {
  border-color: rgba(132, 91, 58, 0.34);
}

.device-drink i {
  left: 14px;
  top: 18px;
  width: 64px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fff9, #d5e5dc);
  border: 2px solid rgba(255, 255, 255, 0.76);
}

.device-drink b {
  left: 26px;
  top: 30px;
  width: 40px;
  height: 8px;
  border-radius: 10px;
  background: rgba(52, 91, 75, 0.3);
}

.device-drink em {
  left: 34px;
  top: 46px;
  width: 24px;
  height: 8px;
  border-radius: 10px;
  background: rgba(52, 91, 75, 0.18);
}

.device-pipe i {
  left: 30px;
  top: 8px;
  width: 34px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff7ea, #e1c096);
  border: 2px solid rgba(255, 255, 255, 0.76);
}

.device-pipe b {
  left: 39px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(143, 88, 46, 0.28);
}

.device-pipe em {
  left: 37px;
  top: 48px;
  width: 20px;
  height: 8px;
  border-radius: 10px;
  background: rgba(143, 88, 46, 0.25);
}

.device-loop i {
  left: 21px;
  top: 16px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 12px solid rgba(255, 255, 255, 0.84);
}

.device-loop b {
  left: 56px;
  top: 13px;
  width: 24px;
  height: 24px;
  border-top: 12px solid rgba(255, 255, 255, 0.84);
  border-right: 12px solid rgba(255, 255, 255, 0.84);
  transform: rotate(38deg);
}

.device-loop em {
  left: 39px;
  top: 38px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.device-heat i {
  left: 20px;
  top: 8px;
  width: 52px;
  height: 72px;
  border-radius: 13px;
  background: linear-gradient(180deg, #fff1e5, #d8976e);
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.device-heat b {
  left: 30px;
  top: 20px;
  width: 32px;
  height: 12px;
  border-radius: 8px;
  background: rgba(114, 45, 22, 0.25);
}

.device-heat em {
  left: 34px;
  top: 48px;
  width: 24px;
  height: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
}

.tier-0 {
  transform: scale(0.88);
}

.tier-1 {
  transform: scale(1);
}

.tier-2 {
  transform: scale(1.12);
}

.plan-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  flex: 1;
}

.plan strong {
  display: block;
  font-size: 16px;
}

.plan small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plan-features {
  display: grid;
  gap: 3px;
  margin: 5px 0 2px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.plan-features li {
  position: relative;
  padding-left: 13px;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 800;
}

.plan.selected .plan-features {
  color: var(--ink);
}

.plan em {
  margin-top: auto;
  color: var(--brand-dark);
  font-weight: 700;
  font-style: normal;
  font-size: 15px;
}

.visual-filter {
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(135deg, #8b9b8f, #405246);
}

.visual-clean {
  background:
    radial-gradient(circle at 70% 26%, rgba(255, 255, 255, 0.46), transparent 22%),
    linear-gradient(135deg, #8bb2bf, #456674);
}

.visual-soft {
  background:
    radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.36), transparent 24%),
    linear-gradient(135deg, #c5a789, #7b604c);
}

.visual-drink {
  background:
    radial-gradient(circle at 72% 70%, rgba(255, 255, 255, 0.4), transparent 24%),
    linear-gradient(135deg, #91b5a7, #4b7566);
}

.visual-pipe {
  background:
    radial-gradient(circle at 28% 32%, rgba(255, 255, 255, 0.4), transparent 24%),
    linear-gradient(135deg, #d3a76f, #9a5f36);
}

.visual-loop {
  background:
    radial-gradient(circle at 64% 30%, rgba(255, 255, 255, 0.44), transparent 24%),
    linear-gradient(135deg, #b48a80, #794b43);
}

.visual-heat {
  background:
    radial-gradient(circle at 30% 72%, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(135deg, #c97d4f, #76341e);
}

.summary {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 24px;
}

.panel {
  padding: 22px;
}

.panel h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.detail-panel {
  padding: 24px;
}

#electricDetail .scene-grid {
  grid-template-columns: 1fr;
}

#airDetail .scene-grid {
  grid-template-columns: 1fr;
}

#networkDetail .scene-grid {
  grid-template-columns: 1fr;
}

#electricDetail .scene-grid figure:first-child img,
#electricDetail .scene-grid img,
#airDetail .scene-grid figure:first-child img,
#airDetail .scene-grid img,
#networkDetail .scene-grid figure:first-child img,
#networkDetail .scene-grid img {
  height: 360px;
}

#electricDetail .scene-grid figure:nth-child(2) img,
#airDetail .scene-grid figure:nth-child(2) img,
#networkDetail .scene-grid figure:nth-child(2) img {
  height: 220px;
}

.electric-secondary-panel,
.air-secondary-panel,
.network-secondary-panel {
  display: none;
}

.detail-title {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.detail-product {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,.9), rgba(255,255,255,.2) 48%),
    linear-gradient(135deg, #efe2d4, #d7c2ac);
  overflow: hidden;
}

.detail-product img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.library-source {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.detail-title h3 {
  font-size: 28px;
  margin: 0 0 4px;
}

.detail-title p {
  margin: 0;
  color: var(--muted);
}

.scene-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 14px;
  margin-bottom: 20px;
}

.scene-grid figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.scene-grid img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.scene-grid figure:first-child img {
  height: 420px;
}

.scene-grid figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.detail-section {
  padding: 14px 0;
  border-top: 1px dashed var(--line);
}

.detail-section span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.detail-section p {
  margin: 0;
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
}

.detail-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
}

.compact-panel {
  padding: 20px;
}

.selected-list {
  display: grid;
  gap: 10px;
}

.selected-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
}

.selected-item strong {
  color: var(--ink);
  text-align: right;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.warning {
  background: #fff7ec;
}

.warning ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.confirm-btn {
  border: 0;
  border-radius: 18px;
  padding: 17px 18px;
  background: var(--brand);
  color: white;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(181, 106, 67, 0.25);
}

.supervision-board {
  display: grid;
  gap: 24px;
  margin-bottom: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, #fffdf9, #f7efe6);
  box-shadow: 0 20px 55px rgba(64, 40, 25, 0.08);
}

.supervision-loop {
  display: grid;
  grid-template-columns: repeat(9, auto);
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 18px;
  border-radius: 20px;
  background: #2d2520;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.supervision-loop b { color: #c99b61; }
.supervision-loop strong {
  padding: 10px 14px;
  border-radius: 999px;
  background: #a71920;
  color: #fff;
  box-shadow: 0 8px 18px rgba(167, 25, 32, 0.32);
}

.supervision-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.supervision-principles article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 4px 13px;
  padding: 18px;
  border: 1px solid rgba(167, 25, 32, 0.13);
  border-radius: 18px;
  background: #fff;
}

.supervision-principles i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #a71920;
  color: #fff;
  font-size: 21px;
  font-style: normal;
  font-weight: 900;
}

.supervision-principles h3,
.supervision-principles p { margin: 0; }
.supervision-principles p { color: var(--muted); font-size: 12px; line-height: 1.55; }

.supervision-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.supervision-head span,
.evidence-copy > span,
.delivery-entry-grid span,
.inspection-node-summary small {
  color: #a71920;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.supervision-head h3,
.supervision-head p { margin: 5px 0 0; }
.supervision-head p { color: var(--muted); line-height: 1.65; }
.supervision-head > strong {
  max-width: 460px;
  padding: 13px 16px;
  border-radius: 14px;
  background: #fff4e5;
  color: #73542c;
  font-size: 12px;
  line-height: 1.6;
}

.inspection-node-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.inspection-node-card {
  align-self: start;
  overflow: hidden;
  border: 1px solid #e6d9cc;
  border-radius: 18px;
  background: #fff;
  transition: 0.2s ease;
}

.inspection-node-card:hover,
.inspection-node-card.is-open {
  border-color: rgba(167, 25, 32, 0.42);
  box-shadow: 0 12px 28px rgba(64, 40, 25, 0.09);
}

.inspection-node-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 16px 16px 9px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.inspection-node-summary i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #f5ebe1;
  color: #a71920;
  font-style: normal;
  font-weight: 900;
}

.inspection-node-summary span { display: grid; gap: 3px; }
.inspection-node-summary strong { font-size: 15px; }
.inspection-node-summary b { color: var(--brand); font-size: 10px; white-space: nowrap; }
.inspection-node-card > p { min-height: 56px; margin: 0; padding: 0 16px 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.inspection-node-detail {
  display: grid;
  gap: 13px;
  padding: 16px;
  border-top: 1px solid #eee2d7;
  background: #fffaf5;
}
.inspection-node-detail[hidden] { display: none; }
.inspection-node-detail section > strong { font-size: 12px; }
.inspection-node-detail ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.inspection-node-detail em { padding: 10px 12px; border-radius: 10px; background: #f5ebe1; color: #8b632f; font-size: 10px; font-style: normal; font-weight: 800; line-height: 1.5; }

.inspection-standard-modal[hidden] { display: none; }
.inspection-standard-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.inspection-standard-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(31, 26, 22, 0.72);
  backdrop-filter: blur(10px);
}

.inspection-standard-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 94vw);
  max-height: min(760px, 90vh);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(167, 25, 32, .08), transparent 32%),
    #fffaf5;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .38);
}

.inspection-standard-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #e4d6c8;
  border-radius: 50%;
  background: #fff;
  color: #4a3d34;
  cursor: pointer;
  font-size: 24px;
}

.inspection-standard-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 55px;
}

.inspection-standard-head > i {
  display: grid;
  flex: 0 0 58px;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #a71920;
  color: #fff;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
}

.inspection-standard-head div { display: grid; gap: 4px; }
.inspection-standard-head span { color: #a71920; font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.inspection-standard-head h2 { margin: 0; color: var(--ink); font-size: 28px; }
.inspection-standard-summary { margin: 22px 0 0; padding: 16px 18px; border-left: 4px solid #a71920; border-radius: 0 14px 14px 0; background: #f4e9de; color: #675a50; line-height: 1.7; }

.inspection-standard-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.inspection-standard-content section {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid #e5d8cb;
  border-radius: 18px;
  background: #fff;
}

.inspection-standard-content section > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f5ebe1;
  color: #a71920;
  font-size: 11px;
  font-weight: 900;
}

.inspection-standard-content strong { font-size: 14px; }
.inspection-standard-content ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.inspection-standard-content em { grid-column: 1 / -1; padding: 14px 16px; border-radius: 14px; background: #2d2520; color: #f0c58f; font-size: 11px; font-style: normal; font-weight: 800; text-align: center; }
body.inspection-standard-open { overflow: hidden; }

.evidence-system {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: center;
  padding: 26px;
  border-radius: 24px;
  background: #2d2520;
  color: #fff;
}

.phone-stack { position: relative; min-height: 420px; }
.phone-stack img { position: absolute; width: 55%; max-height: 410px; object-fit: cover; object-position: top; border: 7px solid #fff; border-radius: 24px; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28); }
.phone-stack img:first-child { left: 5%; top: 0; transform: rotate(-4deg); }
.phone-stack img:last-child { right: 4%; bottom: 0; transform: rotate(4deg); }
.evidence-copy > span { color: #f0b58f; }
.evidence-copy h3 { margin: 7px 0 8px; color: #fff8f1; font-size: 26px; }
.evidence-copy > p { margin: 0; color: rgba(255, 250, 245, 0.82); line-height: 1.75; }
.evidence-capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 17px; }
.evidence-capabilities b { display: grid; gap: 5px; padding: 13px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 13px; background: rgba(255, 255, 255, 0.07); color: #fff8f1; font-size: 12px; }
.evidence-capabilities small { color: rgba(255, 250, 245, 0.68); font-weight: 600; line-height: 1.5; }
.camera-note { margin-top: 15px; padding: 15px; border: 1px solid rgba(255, 214, 176, 0.1); border-radius: 14px; background: rgba(167, 25, 32, 0.42); }
.camera-note strong { color: #ffd6b0; }
.camera-note p { margin: 6px 0; color: rgba(255, 250, 245, 0.86); font-size: 12px; line-height: 1.65; }
.camera-note small { color: rgba(255, 250, 245, 0.66); line-height: 1.5; }

.delivery-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.delivery-entry-grid > a,
.miniprogram-entry { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px; border: 1px solid #e6d9cc; border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; }
.delivery-entry-grid h3, .delivery-entry-grid p { margin: 5px 0; }
.delivery-entry-grid p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.delivery-entry-grid > a > strong { color: #a71920; white-space: nowrap; }
.miniprogram-entry > div { min-width: 0; }
.miniprogram-entry button { flex: 0 0 116px; display: grid; gap: 5px; place-items: center; padding: 8px; border: 1px solid #eaded3; border-radius: 14px; background: #fffaf5; cursor: pointer; }
.miniprogram-entry button img { width: 100px; height: 100px; object-fit: contain; }
.miniprogram-entry button small { color: var(--brand); font-weight: 800; }

.mini-program-modal[hidden] { display: none; }
.mini-program-modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 24px; }
.mini-program-backdrop { position: absolute; inset: 0; border: 0; background: rgba(31, 26, 22, 0.72); backdrop-filter: blur(9px); }
.mini-program-dialog { position: relative; z-index: 1; width: min(440px, 92vw); display: grid; place-items: center; gap: 10px; padding: 34px; border-radius: 26px; background: #fff; text-align: center; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.mini-program-dialog > span { color: #a71920; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.mini-program-dialog h2, .mini-program-dialog p { margin: 0; }
.mini-program-dialog p { color: var(--muted); font-size: 12px; }
.mini-program-dialog img { width: min(300px, 75vw); height: auto; }
.mini-program-close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 22px; cursor: pointer; }
body.mini-program-open { overflow: hidden; }

.inspection-admin-preview { display: grid; gap: 10px; }
.inspection-admin-preview article { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.inspection-admin-preview article.is-disabled { opacity: .52; }
.inspection-admin-preview i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #f5ebe1; color: #a71920; font-style: normal; font-weight: 900; }
.inspection-admin-preview span { color: #a71920; font-size: 10px; font-weight: 900; }
.inspection-admin-preview h4, .inspection-admin-preview p { margin: 3px 0; }
.inspection-admin-preview p, .inspection-admin-preview small { color: var(--muted); font-size: 11px; line-height: 1.5; }

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .summary {
    position: static;
    height: auto;
  }

  .content-grid,
  .hero,
  .review-board,
  .plan-compare-board,
  .case-map-board,
  .final-board {
    grid-template-columns: 1fr;
  }

  .review-grid,
  .craft-grid {
    grid-template-columns: 1fr;
  }

  .plan-solution-workbench {
    grid-template-columns: 1fr;
  }

  .plan-decision {
    position: static;
  }

  .plan-options-below .compare-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inspection-node-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-system { grid-template-columns: 1fr; }
  .phone-stack { width: min(520px, 100%); margin: 0 auto; }

  .storage-board-footer {
    grid-template-columns: 1fr;
  }

  .storage-inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-picker > .cards,
  .product-picker > .summary {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .overview-head {
    flex-direction: column;
  }

  .legend {
    justify-content: flex-start;
    min-width: 0;
  }

  .home-diagram {
    min-width: 1080px;
  }

  .plan-board {
    grid-template-columns: 1fr;
  }

  .plan-canvas {
    min-width: 980px;
  }

  .water-overview {
    overflow-x: auto;
  }

  .water-overview > .device-tray {
    position: static;
  }

  .water-overview > .plan-board > .plan-canvas {
    height: 620px;
  }
}

@media (max-width: 760px) {
  .main,
  .sidebar {
    padding: 18px;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .plan {
    min-height: 0;
  }

  .style-directions-summary,
  .style-profile-copy,
  .storage-content-grid {
    grid-template-columns: 1fr;
  }

  .style-brand-line {
    height: auto;
    min-height: 34px;
    flex-wrap: wrap;
    padding-bottom: 6px;
  }

  .style-direction-actions {
    width: 100%;
    margin-left: 0;
  }

  .plan-toolbar,
  .plan-options-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .plan-solution-item {
    padding: 17px;
    border-radius: 22px;
  }

  .plan-solution-header,
  .plan-add-solution {
    align-items: flex-start;
    flex-direction: column;
  }

  .plan-solution-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .plan-solution-header-actions button,
  .plan-add-solution button {
    width: 100%;
  }

  .floor-tabs {
    justify-content: flex-start;
  }

  .plan-image-tabs,
  .plan-upload-grid,
  .plan-options-below .compare-options {
    grid-template-columns: 1fr;
  }

  .compare-plan,
  .plan-preview {
    min-height: 340px;
  }

  .flow-canvas-wrap {
    padding: 10px;
  }

  .storage-style-choices,
  .storage-inventory-grid {
    grid-template-columns: 1fr;
  }

  .supervision-board { padding: 17px; border-radius: 20px; }
  .supervision-loop { grid-template-columns: 1fr; justify-items: center; }
  .supervision-loop b { transform: rotate(90deg); }
  .supervision-principles,
  .inspection-node-grid,
  .delivery-entry-grid,
  .evidence-capabilities { grid-template-columns: 1fr; }
  .supervision-head { align-items: stretch; flex-direction: column; }
  .inspection-node-summary { grid-template-columns: 40px minmax(0, 1fr); }
  .inspection-node-summary b { grid-column: 2; }
  .inspection-standard-modal { padding: 12px; }
  .inspection-standard-dialog { width: 100%; max-height: 92vh; padding: 22px 18px; border-radius: 22px; }
  .inspection-standard-head { padding-right: 44px; }
  .inspection-standard-head > i { flex-basis: 48px; width: 48px; height: 48px; border-radius: 15px; }
  .inspection-standard-head h2 { font-size: 21px; }
  .inspection-standard-content { grid-template-columns: 1fr; }
  .phone-stack { min-height: 330px; }
  .phone-stack img { max-height: 320px; }
  .delivery-entry-grid > a,
  .miniprogram-entry { align-items: flex-start; flex-direction: column; }
  .miniprogram-entry button { width: 132px; align-self: center; }
}
