/* Designer internals only. Shared shell chrome and route-level dimensions belong
 * to design-system.css, including while the shell is in designer mode. */
:root {
  --parity-topbar-height: 67px;
  --parity-tool-width: 81px;
  --parity-secondary-width: 200px;
  --parity-property-width: 285px;
  --parity-phone-width: 342px;
  --parity-phone-height: 728px;
  --parity-phone-header-height: 52px;
  --parity-phone-nav-height: 54px;
  --parity-workspace-min-width: 1180px;
  --parity-blue: #315eea;
  --parity-blue-soft: #edf2ff;
  --parity-bg: #f4f5f8;
  --parity-panel: #fbfcfe;
  --parity-panel-strong: #f7f9fc;
  --parity-canvas: #eff1f5;
  --parity-line: #e2e6ed;
  --parity-line-strong: #d5dae4;
  --parity-text: #202735;
  --parity-muted: #7b8493;
  --parity-faint: #a7afbc;
  --parity-shadow: 0 16px 44px rgba(53, 65, 89, .09);
}

.parity-designer {
  --parity-bg: #f4f5f8;
  --parity-panel: #fbfcfe;
  --parity-panel-strong: #f7f9fc;
  --parity-canvas: #eff1f5;
  --parity-line: #e2e6ed;
  --parity-line-strong: #d5dae4;
  --parity-text: #202735;
  --parity-muted: #7b8493;
  --parity-faint: #a7afbc;
  --parity-blue-soft: #edf2ff;
  --parity-shadow: 0 16px 44px rgba(53, 65, 89, .09);
  position: fixed;
  z-index: 40;
  inset: 0;
  overflow: auto;
  color: var(--parity-text);
  background: var(--parity-bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}
.parity-designer * { box-sizing: border-box; letter-spacing: 0; }
.parity-designer button,
.parity-designer select,
.parity-designer input,
.parity-designer textarea { font: inherit; letter-spacing: 0; }
.parity-designer button:focus-visible,
.parity-designer select:focus-visible,
.parity-designer input:focus-visible,
.parity-designer textarea:focus-visible { outline: 2px solid rgba(49, 94, 234, .35); outline-offset: 2px; }

.parity-designer-topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-width: var(--parity-workspace-min-width);
  height: var(--parity-topbar-height);
  border-bottom: 1px solid var(--parity-line);
  background: rgba(251, 252, 254, .96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}
.parity-topbar-start,
.parity-topbar-center,
.parity-topbar-end { display: flex; align-items: center; height: 100%; }
.parity-topbar-start { gap: 16px; padding-left: 18px; }
.parity-topbar-center { justify-content: center; gap: 9px; }
.parity-audience-control { display: inline-flex; height: 38px; align-items: center; gap: 7px; padding: 0 4px 0 10px; border: 1px solid #dbe1ea; border-radius: 4px; background: #fff; white-space: nowrap; }
.parity-audience-label { color: #596579; font-size: 12px; font-weight: 650; }
.parity-audience-switch { display: inline-flex; padding: 3px; border: 1px solid #dbe1ea; border-radius: 4px; background: #f4f6f9; }
.parity-audience-switch button { min-height: 30px; padding: 0 11px; border: 0; border-radius: 3px; background: transparent; color: #667085; font: inherit; font-size: 12px; cursor: pointer; }
.parity-audience-switch button.is-active { background: #315eea; color: #fff; box-shadow: 0 1px 3px rgba(49,94,234,.22); }
:root[data-theme="dark"] .parity-audience-switch { border-color: #35404d; background: #181e26; }
:root[data-theme="dark"] .parity-audience-control { border-color: #35404d; background: #242a32; }
:root[data-theme="dark"] .parity-audience-label { color: #c4ccd8; }
.parity-topbar-end { justify-content: flex-end; gap: 12px; padding-right: 32px; }
.parity-back-button {
  display: inline-flex;
  min-width: 108px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #d8dfec;
  border-radius: 6px;
  color: #334463;
  background: #fff;
  box-shadow: 0 2px 7px rgba(50, 68, 99, .07);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.parity-back-button:hover {
  border-color: #aebee5;
  color: var(--parity-blue);
  background: var(--parity-blue-soft);
  box-shadow: 0 4px 12px rgba(49, 94, 234, .11);
  transform: translateY(-1px);
}
.parity-back-button:active { transform: translateY(0); }
.parity-back-icon { font-size: 25px; font-weight: 400; line-height: 1; transform: translateY(-1px); }
.parity-back-label { white-space: nowrap; }
.parity-page-select {
  display: flex;
  align-items: center;
  width: 192px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--parity-line);
  border-radius: 4px;
  color: var(--parity-muted);
  background: var(--parity-panel-strong);
  font-size: 13px;
}
.parity-page-select span { flex: 0 0 auto; }
.parity-page-select select { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--parity-text); background: transparent; font-weight: 600; }
.parity-editing-zone[aria-disabled="true"] { opacity: 1; filter: none; }
.parity-designer button:disabled { cursor: not-allowed; opacity: .52; }
.parity-publish-button,
.parity-history-button,
.parity-save-button,
.parity-designer-theme { height: 34px; border-radius: 4px; cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease; }
.parity-publish-button { padding: 0 15px; border: 1px solid #dfe5f5; color: var(--parity-blue); background: #f1f4fb; }
.parity-publish-button:hover { border-color: #c9d4f4; background: #e9eefb; }
.parity-history-button { padding: 0 12px; border: 1px solid transparent; color: var(--parity-muted); background: transparent; font-size: 12px; }
.parity-history-button:hover { color: var(--parity-text); background: var(--parity-panel-strong); }
.parity-designer-theme { width: 34px; border: 1px solid var(--parity-line); color: var(--parity-muted); background: var(--parity-panel); font-size: 16px; }
.parity-designer-theme:hover { border-color: #c9d4f4; color: var(--parity-blue); background: var(--parity-blue-soft); }
.parity-save-button { min-width: 94px; padding: 0 18px; border: 1px solid var(--parity-blue); color: #f9fbff; background: var(--parity-blue); box-shadow: 0 5px 14px rgba(49, 94, 234, .18); }
.parity-save-button:hover { background: #264fda; transform: translateY(-1px); }
.parity-save-status { color: var(--parity-muted); font-size: 11px; }
.parity-save-status.error { color: #b14d36; }

.parity-designer-body {
  display: grid;
  grid-template-columns: var(--parity-tool-width) var(--parity-secondary-width) minmax(420px, 1fr) var(--parity-property-width);
  min-width: var(--parity-workspace-min-width);
  height: calc(100vh - var(--parity-topbar-height));
}
.parity-tool-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding-top: 24px;
  border-right: 1px solid var(--parity-line);
  background: #f4f6fb;
}
.parity-tool {
  position: relative;
  display: flex;
  width: 64px;
  min-height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #68748a;
  background: transparent;
  cursor: pointer;
}
.parity-tool-icon { position: relative; display: block; width: 30px; height: 30px; color: #343a43; }
.parity-tool-icon::before,
.parity-tool-icon::after,
.parity-tool-icon i::before,
.parity-tool-icon i::after { content: ""; position: absolute; box-sizing: border-box; }
.parity-tool-icon-template::before { inset: 3px 2px 2px; border: 2px solid currentColor; border-radius: 2px; }
.parity-tool-icon-template::after { top: 10px; left: 4px; width: 22px; border-top: 2px solid currentColor; }
.parity-tool-icon-template i::before { top: 11px; left: 11px; height: 15px; border-left: 2px solid currentColor; }
.parity-tool-icon-cube::before { top: 4px; left: 6px; width: 18px; height: 18px; border: 2px solid currentColor; transform: rotate(30deg) skew(-5deg, -5deg); }
.parity-tool-icon-cube::after { top: 8px; left: 15px; height: 18px; border-left: 2px solid currentColor; }
.parity-tool-icon-paint::before { top: 4px; left: 5px; width: 20px; height: 20px; border: 2px solid currentColor; transform: rotate(45deg); }
.parity-tool-icon-paint::after { right: 0; bottom: 0; width: 7px; height: 10px; border: 2px solid currentColor; border-radius: 55% 55% 65% 65%; transform: rotate(25deg); }
.parity-tool-icon-navigation::before { top: 6px; left: 4px; width: 22px; height: 16px; border: 2px solid currentColor; border-radius: 2px; }
.parity-tool-icon-navigation::after { top: 11px; left: 8px; width: 14px; border-top: 2px solid currentColor; box-shadow: 0 5px 0 currentColor; }
.parity-tool.is-active .parity-tool-icon { color: var(--parity-blue); }
.parity-tool img { display: block; width: 30px; height: 30px; object-fit: contain; }
.parity-tool b { font-size: 12px; font-weight: 500; }
.parity-tool:hover { color: #475b84; background: rgba(255, 255, 255, .72); }
.parity-tool.is-active { border-color: #e0e5f0; color: var(--parity-blue); background: #fff; box-shadow: 0 7px 18px rgba(65, 79, 109, .07); }
.parity-tool.is-active::before { position: absolute; left: 0; width: 3px; height: 34px; border-radius: 0 3px 3px 0; background: var(--parity-blue); content: ""; }

.parity-secondary-panel {
  overflow-y: auto;
  border-right: 1px solid var(--parity-line);
  background: var(--parity-panel);
  scrollbar-color: #cbd1db transparent;
  scrollbar-width: thin;
}
.parity-panel-heading { padding: 24px 22px 15px; }
.parity-panel-heading strong { font-size: 14px; font-weight: 650; }
.parity-panel-heading p { margin: 10px 0 0; color: var(--parity-muted); font-size: 11px; line-height: 1.65; }
.parity-fixed-page-note { display: grid; gap: 10px; margin: 16px 13px; padding: 16px; border: 1px solid var(--parity-line); border-left: 3px solid var(--parity-blue); border-radius: 4px; color: var(--parity-muted); background: var(--parity-panel); }
.parity-fixed-page-note strong { color: var(--parity-text); font-size: 14px; }
.parity-fixed-page-note p, .parity-fixed-page-note small { margin: 0; line-height: 1.7; }
.parity-template-list { display: grid; gap: 15px; padding: 0 16px 24px; }
.parity-template-card {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--parity-line);
  border-radius: 3px;
  color: var(--parity-text);
  background: #f6f7fa;
  text-align: left;
  cursor: pointer;
}
.parity-template-card::after { position: absolute; top: 7px; right: 7px; width: 0; height: 0; border-top: 27px solid var(--parity-blue); border-left: 27px solid transparent; opacity: 0; content: ""; }
.parity-template-card:hover { border-color: #86a3f1; background: #fff; box-shadow: 0 9px 24px rgba(60, 75, 108, .09); }
.parity-template-card:hover::after { opacity: 1; }
.parity-template-card img { display: block; width: 100%; height: 214px; object-fit: cover; background: #e6e8ed; }
.parity-template-card span { overflow: hidden; padding: 0 3px 3px; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.parity-component-library { display: grid; gap: 18px; padding: 16px 13px 30px; }
.parity-library-group { display: grid; gap: 14px; }
.parity-library-group > header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 8px 3px; color: #667085; background: var(--parity-panel); font-size: 11px; }
.parity-library-group > header strong { color: #344054; font-size: 12px; }
.parity-library-group > header span { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 10px; background: #eef2f8; }
.parity-library-card { display: grid; gap: 8px; margin: 0; }
.parity-library-card > strong { color: #3f4858; font-size: 12px; font-weight: 650; }
.parity-library-card > button { justify-self: center; min-height: 29px; margin-top: -1px; padding: 0 16px; border: 1px solid #dce2ec; border-radius: 16px; color: #506a9c; background: #fff; box-shadow: 0 3px 9px rgba(60, 75, 108, .06); font-size: 10px; cursor: pointer; }
.parity-library-card > button:hover { border-color: #7899ee; color: var(--parity-blue); background: var(--parity-blue-soft); }
.parity-library-thumb { position: relative; display: grid; width: 100%; height: 108px; place-items: center; overflow: hidden; border: 1px solid #e0e5ee; border-radius: 3px; background: #eef1f5; box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .38); }
.parity-library-thumb > img { display: block; width: 100%; height: 100%; object-fit: contain; background: #f5f6f8; image-rendering: auto; }
.parity-library-thumb i,
.parity-library-thumb b,
.parity-library-thumb em { display: block; box-sizing: border-box; }
.parity-library-thumb-productSearch { grid-template-columns: 1fr 34px; gap: 5px; padding: 36px 18px; }
.parity-library-thumb-productSearch .search-line { width: 100%; height: 18px; border: 1px solid #c9d0db; border-radius: 9px; background: #fff; }
.parity-library-thumb-productSearch .search-button { width: 34px; height: 18px; border-radius: 9px; background: #313a49; }
.parity-library-thumb-hero { align-content: end; justify-items: start; padding: 12px; background: linear-gradient(145deg, #9ba89d, #535b53); }
.parity-library-thumb-hero .hero-sky { position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.5), transparent 55%); }
.parity-library-thumb-hero .hero-copy { width: 55%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.88); box-shadow: 0 9px 0 rgba(255,255,255,.48); }
.parity-library-thumb-image { align-content: end; justify-items: start; padding: 11px; background: #e7ebef; }
.parity-library-thumb-image .single-image { position: absolute; inset: 9px 9px 29px; border-radius: 2px; background: linear-gradient(145deg, #c2ccd3, #697782); }
.parity-library-thumb-image .image-caption { width: 47%; height: 5px; border-radius: 3px; background: #8d99a7; }
.parity-library-thumb-carousel { padding: 10px; background: #e9edf2; }
.parity-library-thumb-carousel .carousel-card { width: 86%; height: 69px; border-radius: 3px; background: linear-gradient(135deg, #acb6c0, #707b88); box-shadow: -12px 4px 0 rgba(255,255,255,.55), 12px 4px 0 rgba(255,255,255,.55); }
.parity-library-thumb-carousel .carousel-dots { position: absolute; bottom: 12px; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: -8px 0 #fff, 8px 0 #fff; }
.parity-library-thumb-quickNavigation,
.parity-library-thumb-sceneGrid,
.parity-library-thumb-productCategory,
.parity-library-thumb-linkedImagesTwo { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 15px 22px; }
.parity-library-thumb-quickNavigation { grid-template-columns: repeat(4, 1fr); padding: 28px 13px; }
.parity-library-thumb-quickNavigation i { width: 26px; height: 26px; border-radius: 50%; background: #c6d1df; box-shadow: 0 33px 0 -10px #9ca7b6; }
.parity-library-thumb-sceneGrid i,
.parity-library-thumb-productCategory i,
.parity-library-thumb-linkedImagesTwo i { width: 100%; height: 35px; border-radius: 2px; background: linear-gradient(135deg, #b9c4cf, #7e8b97); }
.parity-library-thumb-video .video-frame { width: 78%; height: 70px; border-radius: 3px; background: linear-gradient(135deg, #99a6b4, #596674); }
.parity-library-thumb-video .video-play { position: absolute; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #596674; background: rgba(255,255,255,.88); font-size: 12px; }
.parity-library-thumb-announcement { grid-template-columns: 24px 1fr; gap: 7px; padding: 38px 22px; }
.parity-library-thumb-announcement .notice-icon { color: #657a99; }
.parity-library-thumb-announcement .notice-line { width: 100%; height: 5px; border-radius: 3px; background: #9ca9ba; box-shadow: 0 10px 0 #c0c8d3; }
.parity-library-thumb-spacer { grid-template-rows: 1fr auto 1fr; gap: 8px; padding: 18px 22px; }
.parity-library-thumb-spacer b { color: #8b96a4; font-size: 9px; font-weight: 500; }
.parity-library-thumb-spacer .spacer-line { width: 100%; height: 1px; background: #cbd2dc; }
.parity-library-thumb-categoryEntry { grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 19px 14px 13px; }
.parity-library-thumb-categoryEntry b { position: absolute; top: 10px; left: 14px; color: #667386; font-size: 8px; }
.parity-library-thumb-categoryEntry i { width: 100%; height: 58px; border-radius: 2px; background: linear-gradient(#a3adb8 66%, #fff 66%); }
.parity-library-thumb-brandGrid,
.parity-library-thumb-iconInfo { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 28px 18px; }
.parity-library-thumb-brandGrid b,
.parity-library-thumb-iconInfo b { display: grid; height: 45px; place-items: center; border: 1px solid #d4dbe5; border-radius: 3px; color: #6f7d8e; background: #fff; font: 600 13px Georgia, serif; }
.parity-library-thumb-caseCategory { grid-template-columns: repeat(2, 1fr); gap: 7px; padding: 15px; }
.parity-library-thumb-caseCategory i { width: 100%; height: 72px; border-radius: 2px; background: linear-gradient(155deg, #a3aab2, #626b75); }
.parity-library-thumb-popularProducts { grid-template-columns: repeat(3, 1fr); gap: 6px; align-items: end; padding: 20px 14px 15px; }
.parity-library-thumb-popularProducts i { width: 100%; height: 61px; border-radius: 2px; background: linear-gradient(#9da8b4 68%, #fff 68%); box-shadow: 0 0 0 1px #dce1e8; }

.parity-pending-products { position: relative; min-height: 310px; padding-bottom: 112px; overflow: hidden; }
.parity-pending-products .parity-recommendation-product { filter: none; opacity: 1; }
.parity-pending-products .parity-boundary-grid { margin-top: 8px; }
.parity-pending-products .parity-boundary-product.boundary-1 { filter: blur(1.6px); opacity: .68; }
.parity-pending-products .parity-boundary-product.boundary-2 { filter: blur(4px); opacity: .38; }
.parity-pending-product-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 92px 18px 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 45%, #fff 100%);
}
.parity-pending-product-fade button { padding: 9px 24px; border: 0; border-radius: 4px; background: #7a4936; color: #fff; font: inherit; font-size: 12px; font-weight: 600; }
:root[data-theme="dark"] .parity-pending-product-fade { background: linear-gradient(180deg, rgba(24,30,38,0), rgba(24,30,38,.96) 45%, #181e26 100%); }
.parity-library-thumb-weeklyNew { grid-template-columns: 32px 1fr 1fr; gap: 7px; padding: 19px 13px; }
.parity-library-thumb-weeklyNew em { align-self: start; padding: 4px 3px; color: #fff; background: #ec725b; font-size: 7px; font-style: normal; }
.parity-library-thumb-weeklyNew i { width: 100%; height: 64px; border-radius: 2px; background: linear-gradient(#9da8b4 70%, #fff 70%); }
.parity-library-thumb-categoryProducts { grid-template-columns: 32px 1fr 1fr; gap: 7px; padding: 18px 13px; }
.parity-library-thumb-categoryProducts b { align-self: stretch; padding-top: 9px; color: #657185; border-right: 1px solid #d2d8e0; font-size: 9px; }
.parity-library-thumb-categoryProducts i { width: 100%; height: 65px; background: linear-gradient(#a6b0ba 72%, #fff 72%); }
.parity-library-thumb-featuredProducts { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 24px 13px 12px; }
.parity-library-thumb-featuredProducts b { position: absolute; top: 9px; left: 13px; padding: 2px 5px; color: #fff; border-radius: 2px; background: #5b6e85; font-size: 7px; }
.parity-library-thumb-featuredProducts i { width: 100%; height: 66px; background: linear-gradient(145deg, #aeb8c1 66%, #fff 66%); }
.parity-library-thumb-productRail { grid-template-columns: repeat(4, 58px); gap: 7px; justify-content: start; padding: 18px 12px; overflow: hidden; }
.parity-library-thumb-productRail i { width: 58px; height: 72px; border-radius: 2px; background: linear-gradient(#9ca8b4 68%, #fff 68%); box-shadow: 0 0 0 1px #dce1e8; }
.parity-library-thumb-linkedImages { grid-template-columns: 1.3fr .7fr; grid-template-rows: 1fr 1fr; gap: 3px; padding: 10px 17px; }
.parity-library-thumb-linkedImages i { width: 100%; height: 100%; background: #8996a3; }
.parity-library-thumb-linkedImages i:first-child { grid-row: 1 / 3; }
.parity-library-thumb-richText { align-content: center; justify-items: start; gap: 8px; padding: 20px; }
.parity-library-thumb-richText b { color: #455165; font-family: Georgia, serif; font-size: 13px; }
.parity-library-thumb-richText i { width: 100%; height: 4px; border-radius: 2px; background: #c0c7d1; }
.parity-library-thumb-richText i:nth-of-type(2) { width: 82%; }
.parity-library-thumb-richText i:nth-of-type(3) { width: 58%; }
.parity-library-thumb-contact { align-content: center; gap: 12px; padding: 20px 34px; background: linear-gradient(135deg, #f1ede8, #e3e8ed); }
.parity-library-thumb-contact b { color: #354155; font-size: 10px; }
.parity-library-thumb-contact i { width: 82px; height: 20px; border-radius: 2px; background: #4f6179; }
.parity-library-thumb-location { overflow: hidden; background: repeating-linear-gradient(35deg, #edf0f3 0 18px, #e2e7eb 18px 21px); }
.parity-library-thumb-location .map-pin { z-index: 1; display: grid; width: 28px; height: 28px; place-items: center; border: 7px solid #51657b; border-radius: 50% 50% 50% 0; color: #fff; background: #fff; transform: rotate(-45deg); }
.parity-library-thumb-location .map-road { position: absolute; width: 140%; height: 5px; background: rgba(255,255,255,.95); transform: rotate(-17deg); }
.parity-library-thumb-location .map-road.two { transform: rotate(58deg); }
.parity-library-thumb .generic-block { position: absolute; left: 15%; width: 70%; height: 14px; border: 1px solid #d5dbe4; border-radius: 3px; background: #fff; }
.parity-library-thumb .generic-block.one { top: 22px; height: 42px; background: linear-gradient(135deg, #aab4bf, #77838f); }
.parity-library-thumb .generic-block.two { bottom: 24px; width: 45%; height: 6px; background: #98a4b2; }
.parity-library-thumb .generic-block.three { bottom: 13px; width: 31%; height: 5px; background: #c0c7d0; }

.parity-editor-dialog { display: grid; width: min(850px, calc(100vw - 48px)); max-height: min(760px, calc(100vh - 56px)); grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border: 1px solid #d6dce6; border-radius: 8px; color: #202733; background: #fbfcfe; box-shadow: 0 28px 72px rgba(35, 46, 67, .24); }
.parity-editor-dialog > header { display: flex; min-height: 72px; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid #e8ebf0; }
.parity-editor-dialog > header span { color: #8a93a1; font-size: 10px; }
.parity-editor-dialog > header h2 { margin: 3px 0 0; font-size: 18px; }
.parity-editor-dialog > header button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: #707987; background: transparent; font-size: 24px; cursor: pointer; }
.parity-editor-dialog > header button:hover { background: #eef1f5; }
.parity-editor-dialog-body { overflow: auto; padding: 24px 28px 30px; }
.parity-editor-dialog > footer { display: flex; min-height: 66px; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 28px; border-top: 1px solid #e8ebf0; background: #f7f8fa; }
.parity-editor-dialog > footer button { min-width: 90px; height: 36px; border: 1px solid #d3d9e2; border-radius: 4px; color: #596273; background: #fff; cursor: pointer; }
.parity-editor-dialog > footer .primary { border-color: var(--parity-blue); color: #fff; background: var(--parity-blue); }
.parity-editor-items { display: grid; gap: 14px; }
.parity-item-editor { border: 1px solid #dce1e9; border-radius: 6px; background: #fff; }
.parity-item-editor-head { display: flex; min-height: 46px; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #edf0f4; background: #f8f9fb; }
.parity-item-editor-head b { font-size: 12px; }
.parity-item-editor-head div { display: flex; gap: 5px; }
.parity-item-editor-head button { min-width: 32px; height: 28px; border: 1px solid #d8dde6; border-radius: 3px; color: #657082; background: #fff; cursor: pointer; }
.parity-item-editor-head button.danger { padding: 0 9px; color: #a14535; }
.parity-item-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; }
.parity-item-fields label { display: grid; gap: 6px; }
.parity-item-fields label.wide, .parity-item-media.wide { grid-column: 1 / -1; }
.parity-item-fields label span, .parity-item-media span { color: #697386; font-size: 11px; }
.parity-item-fields input, .parity-item-fields select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #d8dde6; border-radius: 3px; background: #fff; }
.parity-item-media { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px dashed #ccd3df; border-radius: 4px; background: #f8fafc; }
.parity-item-media button, .parity-editor-add { height: 34px; padding: 0 13px; border: 1px solid #ccd4e0; border-radius: 4px; color: #46608c; background: #fff; cursor: pointer; }
.parity-editor-add { justify-self: start; }
.parity-editor-search { position: sticky; z-index: 2; top: -24px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 0 0 16px; background: #fbfcfe; }
.parity-editor-search input { height: 40px; padding: 0 13px; border: 1px solid #d4dae4; border-radius: 4px; background: #fff; }
.parity-editor-search span { color: #697386; font-size: 11px; }
.parity-choice-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.parity-choice-card, .parity-single-choice label { display: flex; min-height: 62px; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid #dce1e9; border-radius: 5px; background: #fff; cursor: pointer; }
.parity-choice-card.is-selected, .parity-single-choice label.is-selected { border-color: #8da9ef; background: #f3f6ff; box-shadow: inset 3px 0 var(--parity-blue); }
.parity-choice-card span, .parity-single-choice span { display: grid; gap: 4px; min-width: 0; }
.parity-choice-card b, .parity-single-choice b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.parity-choice-card small, .parity-single-choice small { color: #818a98; font-size: 10px; line-height: 1.45; }
.parity-single-choice { display: grid; gap: 10px; }
.parity-editor-empty { display: grid; min-height: 150px; place-items: center; align-content: center; gap: 8px; color: #838c99; border: 1px dashed #d5dbe5; border-radius: 6px; background: #f8f9fb; text-align: center; }
.parity-editor-empty b { color: #586273; font-size: 13px; }
.parity-editor-empty span { font-size: 11px; }

.parity-settings-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(35, 45, 61, .34); backdrop-filter: blur(2px); }
.parity-settings-dialog { display: grid; width: min(760px, calc(100vw - 48px)); max-height: min(720px, calc(100vh - 56px)); grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border: 1px solid rgba(211, 217, 228, .9); border-radius: 8px; color: #222a36; background: #fbfcfe; box-shadow: 0 28px 72px rgba(35, 46, 67, .23); }
.parity-settings-dialog > header { position: relative; display: flex; min-height: 68px; align-items: center; justify-content: center; border-bottom: 1px solid #edf0f4; }
.parity-settings-dialog > header h2 { margin: 0; font-size: 17px; font-weight: 680; }
.parity-settings-dialog > header button { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #7b8493; background: transparent; font-size: 24px; cursor: pointer; }
.parity-settings-dialog > header button:hover { background: #eff2f7; }
.parity-dialog-scroll { overflow-y: auto; padding: 24px 42px 30px; }
.parity-settings-dialog fieldset { margin: 22px 0 0; padding: 0; border: 0; }
.parity-settings-dialog legend { margin-bottom: 12px; color: #343d4b; font-size: 13px; font-weight: 650; }
.parity-settings-dialog > footer { display: flex; min-height: 66px; align-items: center; justify-content: center; gap: 10px; border-top: 1px solid #edf0f4; background: #f8f9fb; }
.parity-settings-dialog > footer button { min-width: 82px; height: 36px; border: 1px solid #d7dce5; border-radius: 4px; color: #596273; background: #fff; cursor: pointer; }
.parity-settings-dialog > footer button.primary { border-color: var(--parity-blue); color: #fff; background: var(--parity-blue); }
.parity-dialog-logo { display: grid; grid-template-columns: 110px 150px 52px; align-items: center; gap: 12px; }
.parity-dialog-logo > span { color: #3f4856; font-size: 12px; }
.parity-dialog-logo button { height: 38px; border: 1px dashed #c9d0dc; border-radius: 4px; color: #667185; background: #f6f8fb; cursor: pointer; }
.parity-dialog-logo img { width: 48px; height: 34px; object-fit: contain; border: 1px solid #e0e4eb; background: #fff; }
.parity-title-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 28px; margin-top: 24px; }
.parity-title-grid label { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 8px; }
.parity-title-grid label span { color: #3f4856; font-size: 12px; }
.parity-title-grid input,
.parity-nav-row input[type="text"] { min-width: 0; height: 36px; border: 1px solid #d9dee7; border-radius: 3px; color: #2a313d; background: #fff; padding: 0 10px; font-size: 12px; }
.parity-dialog-segment { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.parity-dialog-segment legend { width: 100%; }
.parity-dialog-segment label { position: relative; padding: 8px 13px 8px 30px; border: 1px solid #dce1e9; border-radius: 4px; color: #596273; background: #fff; font-size: 12px; }
.parity-dialog-segment input { position: absolute; left: 10px; }
.parity-color-choices { display: flex; flex-wrap: wrap; gap: 11px; }
.parity-color-choice { position: relative; display: grid; justify-items: center; gap: 5px; cursor: pointer; }
.parity-color-choice input { position: absolute; opacity: 0; pointer-events: none; }
.parity-color-choice span { display: block; width: 38px; height: 26px; border: 2px solid #fff; border-radius: 4px; background: var(--choice-color); box-shadow: 0 0 0 1px #d9dee7; }
.parity-color-choice b { color: #858d9b; font-size: 9px; font-weight: 500; }
.parity-color-choice.is-selected span,
.parity-color-choice:has(input:checked) span { box-shadow: 0 0 0 2px var(--parity-blue); }
.parity-background-color { display: flex; align-items: center; gap: 28px; margin-top: 22px; }
.parity-background-color > label:first-child { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.parity-background-color input[type="color"] { width: 46px; height: 32px; padding: 2px; border: 1px solid #d7dce5; background: #fff; }
.parity-inline-check { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.parity-nav-table { margin-top: 24px; overflow: hidden; border: 1px solid #e0e4eb; border-radius: 4px; }
.parity-nav-table-head,
.parity-nav-row { display: grid; grid-template-columns: 42px 70px 70px minmax(90px, .65fr) minmax(185px, 1.35fr); align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; }
.parity-nav-table-head { min-height: 38px; color: #737d8c; background: #f2f4f7; font-size: 10px; font-weight: 650; }
.parity-nav-row { border-top: 1px solid #e8ebf0; background: #fff; }
.parity-nav-row.is-hidden { opacity: .68; }
.parity-nav-row[data-parity-nav-reserved] { position: relative; background: #f8fafc; }
.parity-nav-reserved-note { position: absolute; right: 20px; top: -9px; padding: 1px 7px; color: #526071; background: #eef2f7; border-radius: 10px; font-size: 9px; }
.parity-nav-row input[readonly] { color: #7b8492; background: #f3f5f8; cursor: not-allowed; }
.parity-nav-enabled { display: grid; place-items: center; text-align: center; }
.parity-nav-enabled input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.parity-nav-enabled button { min-width: 44px; height: 28px; border: 1px solid #cbd2dc; border-radius: 3px; color: #445064; background: #fff; font-size: 11px; cursor: pointer; }
.parity-nav-enabled button:disabled { color: #8c96a5; border-color: #d7dce4; background: #f3f5f8; cursor: not-allowed; }
.parity-nav-row:not(.is-hidden) .parity-nav-enabled button { color: #a44439; border-color: #e3bbb6; background: #fff8f7; }
.parity-nav-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #dce1e8; border-radius: 4px; color: #384455; background: #f7f8fa; }
.parity-nav-icon-picker { display: grid; min-width: 0; place-items: center; }
.parity-nav-icon-picker input[type="hidden"] { display: none; }
.parity-nav-icon-picker button { display: grid; width: 54px; height: 38px; padding: 3px; place-items: center; border: 1px solid #d9dee7; border-radius: 4px; color: #596579; background: #fff; cursor: pointer; font-size: 10px; }
.parity-nav-icon-picker button:hover { border-color: var(--parity-brand); }
.parity-nav-icon-picker img { width: 26px; height: 26px; object-fit: contain; }
.parity-dialog-help { margin: 10px 0 0; color: #89919e; font-size: 10px; }
.parity-phone-wordmark { display: block; width: 62px; height: 15px; justify-self: center; object-fit: contain; }
.parity-phone-top-blue { color: #fff; background: #315eea; }
.parity-phone-top-black { color: #fff; background: #15181d; }
.parity-phone-top-red { color: #fff; background: #ef4236; }
.parity-phone-top-orange { color: #fff; background: #f47b12; }
.parity-phone-top-pink { color: #fff; background: #d84e8b; }
.parity-phone-top-purple { color: #fff; background: #6555df; }
.parity-phone-top-green { color: #fff; background: #0b9f80; }
.parity-phone-top-yellow { background: #e9b51b; }
.parity-phone-top-brand { color: #fff; background: var(--parity-brand); }
.parity-phone-top-transparent { color: #171a1f; background: rgba(255, 255, 255, .9); }
.parity-phone-nav { background: var(--parity-nav-bg, #fff); }

.parity-phone-stage {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 18px 48px 24px;
  background: var(--parity-canvas);
  background-image: radial-gradient(circle at 50% 0, rgba(255, 255, 255, .78), transparent 43%);
}
.parity-device-preview { position: absolute; right: 48px; bottom: 28px; display: grid; justify-items: center; gap: 8px; }
.parity-device-preview-button { display: grid; width: 52px; height: 52px; place-items: center; border: 0; border-radius: 50%; color: #1f2732; background: #fff; box-shadow: 0 8px 24px rgba(45, 57, 78, .16); font-size: 27px; cursor: pointer; }
.parity-device-preview-button:hover { color: var(--parity-blue); transform: translateY(-1px); }
.parity-device-preview span { padding: 6px 9px; border-radius: 4px; color: #fff; background: rgba(34, 39, 48, .86); font-size: 10px; }
.parity-library-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.designer-preview-code-dialog > div { justify-items: center; text-align: center; }
.designer-preview-code-dialog img { width: 260px; height: 260px; border: 1px solid #e2e6ed; border-radius: 5px; background: #fff; }
.designer-preview-code-dialog p { max-width: 390px; margin: 0; color: #687281; font-size: 13px; line-height: 1.7; }
.designer-preview-code-result { display: grid; justify-items: center; gap: 12px; }
.designer-preview-code-notice { display: grid; max-width: 390px; gap: 6px; padding: 12px 14px; border: 1px solid #ead8c9; border-radius: 5px; color: #654b3e; text-align: left; background: #fff8f2; }
.designer-preview-code-notice span { font-size: 13px; line-height: 1.6; }
.designer-preview-code-loading { display: grid; width: 260px; height: 260px; place-content: center; gap: 10px; border: 1px solid #e2e6ed; color: #687281; background: #f7f8fa; }
.designer-preview-code-loading::before { width: 26px; height: 26px; margin: auto; border: 3px solid #d7dce5; border-top-color: #315eea; border-radius: 50%; animation: parity-spin .8s linear infinite; content: ""; }
@keyframes parity-spin { to { transform: rotate(360deg); } }
.parity-phone-stage::before { position: absolute; top: 20px; bottom: 20px; left: 50%; width: min(680px, calc(100% - 48px)); border-right: 1px solid rgba(207, 213, 223, .55); border-left: 1px solid rgba(207, 213, 223, .55); transform: translateX(-50%); content: ""; pointer-events: none; }
.parity-phone-workspace {
  position: relative;
  width: var(--parity-phone-width);
  height: calc(var(--parity-phone-height) + 54px);
  flex: 0 0 auto;
}
.parity-phone-workspace.parity-device-workspace-huawei { --parity-phone-height: 724px; }
.parity-device-toolbar { display: flex; height: 42px; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; padding: 5px 6px 5px 12px; border: 1px solid rgba(202, 209, 220, .82); border-radius: 9px; color: #667085; background: rgba(251, 252, 254, .94); box-shadow: 0 6px 18px rgba(53, 65, 89, .07); }
.parity-device-toolbar > span { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 650; }
.parity-device-toolbar > span i { width: 7px; height: 7px; border-radius: 50%; background: #315eea; box-shadow: 0 0 0 4px rgba(49, 94, 234, .10); }
.parity-device-toolbar > div { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid #dde2ea; border-radius: 7px; background: #f0f2f6; }
.parity-device-toolbar button { min-width: 98px; height: 28px; padding: 0 10px; border: 0; border-radius: 5px; color: #747d8b; background: transparent; font-size: 10px; cursor: pointer; }
.parity-device-toolbar button.is-active { color: #253450; background: #fbfcfe; box-shadow: 0 1px 4px rgba(43, 55, 77, .14); font-weight: 650; }
:root[data-theme="dark"] .parity-device-toolbar { border-color: #38414d; color: #bbc3cf; background: rgba(35, 41, 50, .96); }
:root[data-theme="dark"] .parity-device-toolbar > div { border-color: #3d4653; background: #1b2028; }
:root[data-theme="dark"] .parity-device-toolbar button.is-active { color: #e6ebf3; background: #303844; }
.parity-phone-shell {
  position: relative;
  width: var(--parity-phone-width);
  height: var(--parity-phone-height);
  flex: 0 0 auto;
  overflow: hidden;
  border: 6px solid #17191d;
  border-radius: 48px;
  background: #f3f3f3;
  box-shadow: 0 28px 60px rgba(38, 46, 61, .18), 0 0 0 1px rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.parity-phone-shell.parity-device-huawei { border-width: 5px; border-color: #25272b; border-radius: 34px; box-shadow: 0 26px 58px rgba(38, 46, 61, .16), 0 0 0 1px rgba(255, 255, 255, .72); }
.parity-device-status { position: absolute; z-index: 7; top: 0; right: 0; left: 0; display: flex; height: 29px; align-items: center; justify-content: space-between; padding: 0 17px; color: var(--parity-top-fg, #171a1f); background: var(--parity-top-bg, #fff); font-size: 9px; font-weight: 650; }
.parity-device-cutout { position: absolute; top: 6px; left: 50%; width: 88px; height: 20px; transform: translateX(-50%); border-radius: 13px; background: #050607; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.parity-device-cutout b { display: none; }
.parity-device-huawei .parity-device-cutout { top: 7px; display: flex; width: 34px; height: 10px; align-items: center; justify-content: space-between; border-radius: 0; background: transparent; box-shadow: none; }
.parity-device-huawei .parity-device-cutout b { display: block; width: 8px; height: 8px; border-radius: 50%; background: #101216; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px rgba(0,0,0,.06); }
.parity-device-huawei .parity-device-cutout b:nth-child(2) { width: 9px; height: 9px; }
.parity-device-signals { display: flex; height: 12px; align-items: flex-end; gap: 1px; }
.parity-device-signals > i { display: block; width: 2px; border-radius: 1px; background: currentColor; }
.parity-device-signals > i:nth-child(1) { height: 3px; }
.parity-device-signals > i:nth-child(2) { height: 5px; }
.parity-device-signals > i:nth-child(3) { height: 7px; }
.parity-device-signals > i:nth-child(4) { height: 9px; }
.parity-device-signals > b { margin-left: 3px; font-size: 7px; line-height: 10px; }
.parity-phone-top {
  color: var(--parity-top-fg, #171a1f);
  background: var(--parity-top-bg, #fff);
  position: absolute;
  z-index: 4;
  top: 29px;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: center;
  height: 48px;
  padding: 0 13px;
  border-radius: 0;
}

.parity-custom-color { padding: 12px 0 4px; }
.parity-custom-color > label { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(210px, 1.6fr); gap: 18px; align-items: center; }
.parity-custom-color-controls { display: grid; grid-template-columns: 56px minmax(120px, 1fr); gap: 10px; }
.parity-custom-color-controls input[type="color"] { width: 56px; height: 42px; padding: 3px; border: 1px solid #d7dce3; border-radius: 4px; background: #fff; cursor: pointer; }
.parity-custom-color-controls input[type="text"] { min-width: 0; text-transform: lowercase; }
.parity-custom-color small { display: block; margin: 8px 0 0; color: #818a96; }
.parity-mini-controls { justify-self: end; padding: 5px 8px; border: 1px solid #e7e8eb; border-radius: 13px; color: #252a31; white-space: nowrap; font-size: 10px; }
.parity-phone-scroll { position: absolute; top: 77px; right: 0; bottom: 73px; left: 0; overflow-x: hidden; overflow-y: auto; background: #f2f2f2; scrollbar-width: none; }
.parity-phone-scroll::-webkit-scrollbar { display: none; }
.parity-phone-nav { position: absolute; z-index: 4; right: 0; bottom: 14px; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: 59px; border-top: 1px solid #e7e8ea; background: #fff; }
.parity-device-gesture { position: absolute; z-index: 8; bottom: 5px; left: 50%; width: 112px; height: 4px; transform: translateX(-50%); border-radius: 3px; background: #15171a; opacity: .9; }
.parity-device-huawei .parity-device-gesture { width: 96px; height: 3px; background: #555a61; opacity: .72; }
.parity-phone-nav button { display: flex; min-width: 0; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; color: var(--parity-nav-inactive, #8e949e); background: transparent; font: inherit; cursor: pointer; }
.parity-nav-icon { display: grid; width: 24px; height: 24px; place-items: center; }
.parity-phone-nav img { width: 28px; height: 28px; object-fit: contain; }
.parity-phone-nav-solid .parity-nav-icon { border-radius: 6px; background: currentColor; }
.parity-phone-nav-solid .parity-nav-icon img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.parity-phone-nav-text button { gap: 0; }
.parity-phone-nav-text b { font-size: 11px; font-weight: 600; }
.parity-nav-image-empty { display: block; width: 18px; height: 18px; border: 1px dashed currentColor; border-radius: 3px; opacity: .42; }
.parity-phone-nav-solid .parity-nav-image-empty { width: 10px; height: 10px; border: 0; background: var(--parity-nav-bg, #fff); opacity: 1; }
.parity-phone-nav b { max-width: 72px; overflow: hidden; opacity: 0; text-overflow: ellipsis; transition: opacity 160ms ease; white-space: nowrap; font-size: 9px; font-weight: 500; }
.parity-phone-nav .is-active b { opacity: 1; font-weight: 600; }
.parity-phone-nav .is-active { color: var(--parity-nav-active, #161b22); }
.parity-preview-empty { display: grid; height: 100%; place-items: center; color: var(--parity-muted); font-size: 12px; }
.parity-fixed-workflow { display: grid; gap: 10px; min-height: 100%; padding: 12px; color: #20242c; background: #f4f2ef; box-sizing: border-box; }
.parity-workflow-panel { padding: 12px; background: #fff; box-sizing: border-box; }
.parity-fixed-workflow.radius-none .parity-workflow-panel, .parity-fixed-workflow.radius-none .parity-workflow-primary { border-radius: 0; }
.parity-fixed-workflow.radius-small .parity-workflow-panel, .parity-fixed-workflow.radius-small .parity-workflow-primary { border-radius: 4px; }
.parity-fixed-workflow.radius-medium .parity-workflow-panel, .parity-fixed-workflow.radius-medium .parity-workflow-primary { border-radius: 8px; }
.parity-fixed-workflow.is-soft .parity-workflow-panel { background: #fbf8f5; }
.parity-fixed-workflow.is-outline .parity-workflow-panel { border: 1px solid #ddd6cf; background: #fff; }
.parity-fixed-workflow.is-plain .parity-workflow-panel { padding-right: 2px; padding-left: 2px; background: transparent; }
.parity-catalog-template { position: relative; display: block; background: #faf8f6; }
.parity-catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 8px 2px 12px; }
.parity-catalog-heading span { display: grid; gap: 3px; }
.parity-catalog-heading b { color: #342822; font-size: 18px; }
.parity-catalog-heading small { color: #8c7b72; font-size: 9px; }
.parity-catalog-view-toggle { width: 32px; height: 28px; display: grid; align-content: center; gap: 3px; padding: 7px; border: 1px solid #ded3cc; border-radius: 4px; background: #faf7f4; }
.parity-catalog-view-toggle i { height: 2px; border-radius: 2px; background: #725142; }
.parity-catalog-tools { position: sticky; top: 0; z-index: 1; padding-bottom: 10px; background: #faf8f6; }
.parity-catalog-search { display: flex; align-items: center; gap: 7px; padding: 10px; border-radius: 4px; color: #8c7b72; background: #f1ebe6; font-size: 10px; }
.parity-catalog-search i { color: #937569; font-size: 12px; font-style: normal; }
.parity-catalog-filters { display: flex; gap: 6px; margin-top: 8px; }
.parity-catalog-filters span { display: flex; min-width: 62px; justify-content: space-between; gap: 6px; padding: 5px 8px; border: 1px solid #ded3cc; border-radius: 3px; color: #725142; background: #fffdfa; font-size: 8px; }
.parity-catalog-filters i { color: #9b6e57; font-size: 7px; font-style: normal; }
.parity-catalog-demo-note { width: fit-content; margin: 0 0 9px; padding: 3px 7px; border-radius: 10px; color: #8a6756; background: #efe6df; font-size: 8px; }
.parity-catalog-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.parity-catalog-products article { overflow: hidden; border: 1px solid #eee5df; border-radius: 4px; background: #fcfaf8; }
.parity-catalog-products .parity-product-swatch { width: 100%; height: auto; aspect-ratio: 4 / 5; display: block; border-radius: 0; object-fit: cover; }
.parity-catalog-products article div { display: grid; gap: 2px; padding: 7px; }
.parity-catalog-products b { color: #6a3f2d; font-size: 8px; }
.parity-catalog-products strong { color: #40302a; font-size: 10px; }
.parity-catalog-products small { color: #8c7b72; font-size: 8px; }
.parity-catalog-access-shell { position: relative; }
.parity-catalog-access-shell.is-locked { padding-bottom: 72px; }
.parity-catalog-products .visitor-preview-medium { filter: blur(2px); opacity: .62; }
.parity-catalog-products .visitor-preview-strong { filter: blur(4px); opacity: .35; }
.parity-catalog-access-fade { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 62px 15px 6px; text-align: center; background: linear-gradient(180deg, rgba(250, 247, 244, 0), #faf7f4 48%, #faf7f4 100%); }
.parity-catalog-access-fade button { width: 160px; min-height: 34px; border: 0; border-radius: 4px; color: #fff; background: #7a4936; font-size: 10px; font-weight: 600; }
.parity-workflow-intro, .parity-selection-card, .parity-sales-card, .parity-address-card { display: grid; gap: 5px; }
.parity-workflow-intro b { font-size: 15px; }
.parity-selection-header { display: grid; gap: 5px; padding: 6px 2px 2px; }
.parity-selection-header > small { color: #747b85; font-size: 9px; line-height: 1.55; }
.parity-selection-header > em { width: fit-content; padding: 3px 7px; border-radius: 10px; color: #8a6756; background: #efe6df; font-size: 8px; font-style: normal; }
.parity-selection-heading { display: flex; align-items: center; justify-content: space-between; }
.parity-selection-heading > b { color: #342822; font-size: 18px; }
.parity-selection-heading > span { display: flex; align-items: center; gap: 5px; }
.parity-selection-heading button { height: 30px; display: flex; align-items: center; gap: 4px; padding: 0 9px; border: 1px solid #e6ddd7; border-radius: 10px; color: #765242; background: #fff; box-shadow: 0 3px 10px rgba(65, 44, 33, .07); font-size: 9px; }
.parity-selection-history-clock { position: relative; width: 11px; height: 11px; box-sizing: border-box; border: 1px solid currentColor; border-radius: 50%; }
.parity-selection-history-clock::before { position: absolute; top: 2px; left: 4px; width: 1px; height: 3px; background: currentColor; content: ""; }
.parity-selection-history-clock::after { position: absolute; top: 5px; left: 4px; width: 3px; height: 1px; transform: rotate(25deg); transform-origin: left center; background: currentColor; content: ""; }
.parity-selection-view-toggle { width: 30px; height: 30px; display: grid; grid-template-columns: repeat(2, 4px); grid-template-rows: repeat(2, 4px); align-content: center; justify-content: center; gap: 3px; border: 1px solid #e6ddd7; border-radius: 10px; background: #fff; box-shadow: 0 3px 10px rgba(65, 44, 33, .07); box-sizing: border-box; }
.parity-selection-view-toggle u { width: 4px; height: 4px; border: 1px solid #725142; border-radius: 1px; box-sizing: border-box; text-decoration: none; }
.parity-selection-list { display: grid; gap: 8px; }
.parity-workflow-intro small, .parity-workflow-panel small, .parity-workflow-panel p, .parity-workflow-internal small { margin: 0; color: #747b85; font-size: 9px; line-height: 1.6; }
.parity-selection-card { position: relative; grid-template-columns: 68px minmax(0, 1fr); align-items: stretch; min-height: 84px; padding: 0; overflow: hidden; border-radius: 10px; }
.parity-selection-card > div { display: grid; min-width: 0; align-content: start; gap: 3px; padding: 9px 10px; }
.parity-selection-card .parity-selection-thumb { width: 68px; height: 100%; min-height: 84px; border: 0; border-radius: 0; aspect-ratio: auto; }
.parity-selection-card > div b { font-size: 12px; }
.parity-selection-card > div small { color: #747b85; font-size: 9px; }
.parity-selection-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 6px; }
.parity-selection-card-heading > span { display: grid; min-width: 0; gap: 2px; }
.parity-selection-card-heading button, .parity-address-card > button { border: 0; color: #aaa09a; background: transparent; font-size: 8px; }
.parity-selection-note-entry { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: #7a4936; font-size: 9px; font-weight: 600; }
.parity-selection-note-entry i { padding: 2px 5px; border-radius: 8px; color: #8b6654; background: #f2ebe5; font-size: 7px; font-style: normal; font-weight: 400; }
.parity-workflow-note > span { padding: 8px; border: 1px solid #e1ddd8; color: #59606a; background: #fff; font-size: 9px; }
.parity-selection-thumb { display: block; width: 58px; aspect-ratio: 4 / 5; border: 1px solid #e2ddd7; background: #d3ccc1; object-fit: cover; }
.parity-selection-thumb.tone-1 { background: #9eaaa9; }
.parity-selection-card p { margin: 3px 0; color: #747b85; font-size: 9px; }
.parity-selection-action { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid #e8e2dc; background: #fff; }
.parity-selection-action span { display: grid; gap: 2px; }
.parity-selection-action small { color: #888f98; font-size: 8px; }
.parity-selection-action .parity-workflow-primary { margin: 0; }
.parity-selection-feedback { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #dfd7d0; border-radius: 5px; color: #5c493f; background: #fff; }
.parity-selection-feedback b { font-size: 10px; }
.parity-selection-feedback small, .parity-selection-feedback span { color: #887970; font-size: 8px; }
.parity-workflow-note { display: grid; gap: 6px; }
.parity-workflow-primary { min-height: 36px; border: 0; color: #fff; background: var(--parity-brand, #7a4936); font-size: 11px; font-weight: 700; }
.parity-company-card { display: flex; align-items: center; gap: 10px; }
.parity-company-card > div { display: grid; gap: 3px; }
.parity-company-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: #171a1f; font-weight: 700; }
.parity-contact-intro { display: grid; gap: 5px; padding: 3px 2px 5px; }
.parity-contact-intro > b { font-size: 18px; }
.parity-contact-intro > small { color: #84766e; font-size: 9px; line-height: 1.6; }
.parity-sales-card { gap: 0; padding: 14px; box-shadow: 0 7px 20px rgba(73,49,38,.07); }
.parity-sales-card .parity-workflow-primary { margin-top: 10px; }
.parity-sales-card strong { font-size: 13px; }
.parity-sales-identity { display: flex; align-items: center; gap: 9px; }
.parity-sales-identity > i { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #765242; background: #eee4dc; font-size: 13px; font-style: normal; font-weight: 700; }
.parity-sales-identity > span { display: grid; flex: 1; gap: 2px; }
.parity-sales-identity > span > span { display: flex; align-items: center; gap: 6px; }
.parity-sales-identity > span b { width: fit-content; padding: 2px 5px; border-radius: 999px; color: #765242; background: #eee4dc; font-size: 7px; }
.parity-sales-card > p { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(101,77,65,.09); color: #76675f; font-size: 8px; line-height: 1.6; }
.parity-copy-phone { min-height: 28px; border: 0; color: #765242; background: transparent; font-size: 9px; }
.parity-address-section { display: grid; gap: 6px; }
.parity-address-section > header { display: flex; align-items: center; }
.parity-address-section > header b { font-size: 12px; }
.parity-address-list { padding-top: 0; padding-bottom: 0; }
.parity-address-list article { display: grid; grid-template-columns: 30px 1fr; gap: 9px; padding: 10px 0; }
.parity-address-list article + article { border-top: 1px solid #e8e1db; }
.parity-address-list article > i { position: relative; display: block; width: 28px; height: 28px; border-radius: 9px; background: #eee4de; }
.parity-address-list article > i::before { position: absolute; top: 6px; left: 9px; width: 8px; height: 11px; border: 1.4px solid #76513e; border-radius: 8px; content: ""; }
.parity-address-list article > i u { position: absolute; top: 10px; left: 12px; width: 3px; height: 3px; border-radius: 50%; background: #76513e; }
.parity-address-list article > div { display: grid; gap: 4px; }
.parity-address-list article > div > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.parity-address-list article > div > span small { color: #9c8d84; font-size: 7px; }
.parity-address-list article p { margin: 0; color: #75675f; font-size: 8px; }
.parity-address-list article footer { display: flex; gap: 10px; }
.parity-address-list article button { padding: 4px 0; border: 0; color: #765242; background: transparent; font-size: 8px; font-weight: 600; }
.parity-address-card { position: relative; }
.parity-address-card > span { display: flex; gap: 6px; padding-top: 4px; }
.parity-address-card > span button { padding: 6px 8px; border: 1px solid #ddd5cf; color: #6f4a3b; background: #fff; font-size: 9px; }
.parity-workflow-internal { display: grid; gap: 3px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #ddd6cf; }
.parity-product-detail-template { position: relative; min-height: 100%; padding-bottom: 50px; color: #30231e; background: #faf8f5; box-sizing: border-box; }
.parity-product-detail-summary { display: grid; gap: 5px; padding: 18px 16px 13px; background: #fff; }
.parity-product-detail-summary > small { color: #7a4936; font-family: Georgia, serif; font-size: 12px; letter-spacing: .03em; }
.parity-product-detail-summary > strong { font-family: Georgia, "Songti SC", serif; font-size: 20px; font-weight: 500; }
.parity-product-detail-metrics { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 8px; align-items: baseline; margin-top: 5px; padding: 10px 0; border-top: 1px solid #e7dfd8; border-bottom: 1px solid #e7dfd8; }
.parity-product-detail-metrics span, .parity-product-detail-composition span { color: #846f64; font-size: 9px; }
.parity-product-detail-metrics b { font-size: 11px; font-weight: 600; }
.parity-product-detail-composition { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: start; }
.parity-product-detail-composition p { margin: 0; font-size: 10px; line-height: 1.65; overflow-wrap: anywhere; }
.parity-product-detail-gallery { display: grid; gap: 6px; padding: 8px; }
.parity-product-detail-image { display: block; width: 100%; min-height: 150px; border-radius: 6px; background: #eee8e2; object-fit: cover; }
.parity-product-detail-actions { position: sticky; z-index: 3; bottom: 0; display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; padding: 8px; border-top: 1px solid #eadfd6; background: rgba(255,255,255,.96); }
.parity-product-detail-actions button { min-height: 34px; border: 1px solid #8d573d; border-radius: 5px; color: #7a4936; background: #fff; font-size: 10px; font-weight: 700; }
.parity-product-detail-actions button:last-child { color: #fff; background: #8d573d; }
.parity-fixed-workflow-controls > p { margin: -6px 0 2px; color: var(--parity-muted); font-size: 11px; line-height: 1.6; }

.parity-property-panel {
  overflow-y: auto;
  border-left: 1px solid var(--parity-line);
  padding: 22px 25px 32px;
  background: var(--parity-panel);
  scrollbar-color: #cbd1db transparent;
  scrollbar-width: thin;
}
.parity-property-title { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--parity-line); color: var(--parity-faint); font-size: 12px; }
.parity-property-empty { padding: 30px 3px 0; color: var(--parity-faint); font-size: 12px; line-height: 1.75; }
.parity-preview-item { position: relative; z-index: 1; width: 100%; min-height: 0; overflow: visible; border: 0; background: #fff; box-sizing: border-box; cursor: pointer; }
.parity-preview-item.is-selected { z-index: 3; outline: 2px solid #4f7bea; outline-offset: -2px; }
.parity-preview-item.is-selected::after { position: absolute; z-index: 9; top: 5px; left: 5px; padding: 2px 5px; border-radius: 2px; color: #fff; background: var(--parity-blue); font-size: 8px; content: "已选"; pointer-events: none; }
.parity-component-toolbar {
  position: absolute;
  z-index: 12;
  top: 88px;
  right: -44px;
  display: grid;
  width: 38px;
  overflow: hidden;
  border: 1px solid #d5dae2;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(39, 48, 63, .2);
}
.parity-component-toolbar button {
  display: grid;
  width: 38px;
  height: 39px;
  padding: 0;
  place-items: center;
  border: 0;
  border-bottom: 1px solid #e5e8ed;
  color: #707783;
  background: #fff;
  font: 700 20px/1 Arial, sans-serif;
  cursor: pointer;
}
.parity-component-toolbar button:last-child { border-bottom: 0; }
.parity-component-toolbar button:hover:not(:disabled) { color: var(--parity-blue); background: #f2f6ff; }
.parity-component-toolbar button.is-danger { color: #737b86; font-size: 18px; }
.parity-component-toolbar button.is-danger:hover { color: #b74640; background: #fff3f2; }
.parity-component-toolbar button:disabled { color: #c6cbd2; background: #f7f8fa; cursor: not-allowed; }
.parity-preview-hidden { display: grid; min-height: 56px; place-items: center; color: #858e9c; background: repeating-linear-gradient(135deg, #f7f8fa, #f7f8fa 8px, #eef0f4 8px, #eef0f4 16px); font-size: 12px; }
.parity-media-placeholder { display: block; width: 100%; min-height: 76px; background: linear-gradient(135deg, #d7d0c8, #88776b); }
.parity-preview-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px 8px; }
.parity-preview-heading strong { position: static; color: #20242c; font-size: 15px; }
.parity-preview-heading small { color: #8f96a0; font-size: 10px; }
.parity-search-preview { display: flex; align-items: center; margin: 10px 12px; overflow: hidden; border: 1px solid #e1e4e9; border-radius: 18px; color: #969ca6; background: #fff; font-size: 11px; }
.parity-search-preview span { flex: 1; padding: 9px 12px; }
.parity-search-preview b { padding: 9px 13px; color: #fff; background: #252a30; font-size: 10px; }
.parity-hero-preview { position: relative; height: calc(var(--parity-phone-height) - var(--parity-phone-header-height) - var(--parity-phone-nav-height)); overflow: hidden; background: #b8ad9d; }
.parity-hero-preview.full { height: calc(var(--parity-phone-height) - var(--parity-phone-header-height) - var(--parity-phone-nav-height)); }
.parity-hero-preview.large { height: 320px; }
.parity-hero-preview.medium { height: 230px; }
.parity-hero-preview img,
.parity-carousel-preview img,
.parity-single-image img,
.parity-generic-preview img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.parity-hero-preview i { position: absolute; inset: 0; background: #161616; }
.parity-carousel-preview { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.parity-carousel-preview.ratio-2-1 { aspect-ratio: 2 / 1; }
.parity-carousel-preview.ratio-4-3 { aspect-ratio: 4 / 3; }
.parity-carousel-preview.ratio-1-1 { aspect-ratio: 1 / 1; }
.parity-carousel-preview.ratio-3-4 { aspect-ratio: 3 / 4; }
.parity-carousel-preview.ratio-9-16 { aspect-ratio: 9 / 16; }
.parity-carousel-dots { position: absolute; bottom: 9px; left: 50%; display: flex; gap: 4px; transform: translateX(-50%); }
.parity-carousel-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .72); }
.parity-tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; padding: 0 12px 12px; }
.parity-tile-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.parity-tile-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.parity-tile-grid article { position: relative; min-height: 70px; overflow: hidden; background: #e9ebef; }
.parity-tile-grid article img,
.parity-tile-grid article .parity-media-placeholder { width: 100%; height: 100%; min-height: 70px; object-fit: cover; }
.parity-tile-grid article b { position: absolute; bottom: 6px; left: 7px; color: #fff; font-size: 10px; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.parity-category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; padding: 0 12px 12px; }
.parity-category-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.parity-category-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.parity-category-grid span { display: grid; min-height: 62px; place-content: center; gap: 4px; border: 1px solid #e0e3e8; color: #303741; background: #f7f5f2; text-align: center; }
.parity-category-grid b { font-size: 11px; }
.parity-category-grid small { color: #8d949f; font-size: 8px; }
.parity-video-preview { position: relative; height: 180px; overflow: hidden; background: #d8d2ca; }
.parity-video-preview img,
.parity-video-preview .parity-media-placeholder { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.parity-video-preview > span { position: absolute; top: 50%; left: 50%; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .18); transform: translate(-50%, -50%); }
.parity-announcement-preview { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: #575e69; background: #fafafa; font-size: 11px; }
.parity-announcement-preview p { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.parity-icon-info { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px; text-align: center; }
.parity-icon-info span { display: grid; gap: 5px; justify-items: center; font-size: 10px; }
.parity-icon-info i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #735c4c; background: #f1ece7; font-style: normal; }
.parity-product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 12px 14px; }
.parity-product-grid article { display: grid; min-width: 0; gap: 3px; }
.parity-product-swatch { aspect-ratio: 1.15; background: #d3ccc1; }
.parity-product-swatch.tone-1 { background: #7c5e50; }
.parity-product-swatch.tone-2 { background: #a3a69c; }
.parity-product-swatch.tone-3 { background: #594b48; }
.parity-product-grid b { overflow: hidden; color: #262626; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.parity-product-grid small { color: #8e949e; font-size: 9px; }
.parity-product-grid img.parity-product-swatch { width: 100%; object-fit: cover; }
.parity-preview-data-empty { display: grid; min-height: 118px; margin: 0 12px 14px; place-content: center; gap: 6px; border: 1px dashed #d8dde5; color: #727b89; background: #f8f9fb; text-align: center; }
.parity-preview-data-empty b { color: #505967; font-size: 12px; }
.parity-preview-data-empty small { font-size: 9px; }
.parity-linked-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.parity-linked-images.is-paired { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 6px; }
.parity-linked-images img,
.parity-linked-images .parity-media-placeholder { width: 100%; height: 100%; min-height: 92px; object-fit: cover; }
.parity-solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; padding: 0 12px 12px; }
.parity-solution-grid article { position: relative; min-height: 102px; overflow: hidden; background: #ddd; }
.parity-solution-grid img, .parity-solution-grid .parity-media-placeholder { width: 100%; height: 100%; min-height: 102px; object-fit: cover; }
.parity-solution-grid article span { position: absolute; right: 0; bottom: 0; left: 0; padding: 18px 7px 7px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.68)); }
.parity-solution-grid small { display: block; margin-top: 2px; font-size: 8px; }
.parity-slider-preview { position: relative; display: flex; gap: 7px; overflow: hidden; padding: 0 12px 18px; }
.parity-slider-preview img, .parity-slider-preview > .parity-media-placeholder { width: 74%; min-width: 74%; height: 145px; object-fit: cover; }
.parity-slider-preview i { position: absolute; bottom: 8px; width: 4px; height: 4px; border-radius: 50%; background: #adb3bc; }
.parity-slider-preview i:nth-last-child(3) { left: calc(50% - 9px); } .parity-slider-preview i:nth-last-child(2) { left: 50%; background: #30363f; } .parity-slider-preview i:last-child { left: calc(50% + 9px); }
.parity-slider-a-preview, .parity-slider-b-preview { display: flex; gap: 8px; overflow: hidden; padding: 0 12px 14px; }
.parity-slider-a-preview article { min-width: 72%; }
.parity-slider-b-preview article { min-width: 45%; }
.parity-slider-a-preview img, .parity-slider-a-preview .parity-media-placeholder, .parity-slider-b-preview img, .parity-slider-b-preview .parity-media-placeholder { width: 100%; min-height: 130px; object-fit: cover; }
.parity-slider-a-preview b, .parity-slider-b-preview b { display: block; padding-top: 5px; font-size: 10px; }
.parity-news-preview, .parity-service-preview, .parity-activity-preview { display: grid; gap: 8px; padding: 0 12px 13px; }
.parity-news-preview article, .parity-service-preview article, .parity-activity-preview article { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: center; min-height: 60px; }
.parity-news-preview img, .parity-news-preview .parity-media-placeholder, .parity-service-preview img, .parity-service-preview .parity-media-placeholder, .parity-activity-preview img, .parity-activity-preview .parity-media-placeholder { width: 82px; height: 60px; min-height: 60px; object-fit: cover; }
.parity-news-preview small, .parity-service-preview small, .parity-activity-preview small { display: block; padding-top: 4px; color: #8a929e; font-size: 8px; }
.parity-wechat-preview, .parity-store-preview { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; margin: 10px 12px; padding: 12px; border: 1px solid #e2e5e9; background: #fff; }
.parity-wechat-preview > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #fff; background: #0aa46e; font-size: 9px; }
.parity-wechat-preview small, .parity-store-preview small { display: block; margin-top: 3px; color: #8a929e; font-size: 8px; }
.parity-wechat-preview button, .parity-store-preview button { padding: 7px 9px; border: 0; color: #fff; background: #20252c; font-size: 9px; }
.parity-store-preview > span { font-size: 26px; }
.parity-mosaic { display: grid; height: 210px; gap: 5px; padding: 6px 12px 12px; }
.parity-mosaic article { position: relative; overflow: hidden; background: #ddd; }
.parity-mosaic img, .parity-mosaic .parity-media-placeholder { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.parity-mosaic b { position: absolute; bottom: 6px; left: 7px; color: #fff; font-size: 9px; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.parity-mosaic-tileOne { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 1fr); } .parity-mosaic-tileOne article:first-child { grid-row: 1 / 3; }
.parity-mosaic-tileTwo { grid-template-columns: repeat(2, 1fr); grid-template-rows: 2fr 1fr; }
.parity-mosaic-tileThree { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; } .parity-mosaic-tileThree article:first-child { grid-column: 1 / 3; }
.parity-mosaic-tileFour { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
.parity-mosaic-tileSix { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.parity-form-preview { display: grid; gap: 8px; padding: 12px; }
.parity-form-preview .parity-preview-heading { padding: 0 0 4px; }
.parity-form-preview > span { padding: 9px 10px; border: 1px solid #e0e3e8; color: #9a9fa7; background: #fff; font-size: 9px; }
.parity-form-preview > button { padding: 10px; border: 0; color: #fff; background: #20252c; }
.parity-page-nav-preview { display: grid; padding: 0 12px 12px; }
.parity-page-nav-preview span { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; min-height: 42px; border-bottom: 1px solid #eceef1; }
.parity-page-nav-preview i { font-style: normal; } .parity-page-nav-preview small { font-size: 18px; }
.parity-custom-category-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 12px 12px; }
.parity-custom-category-preview article { display: grid; gap: 4px; text-align: center; font-size: 9px; }
.parity-custom-category-preview img, .parity-custom-category-preview .parity-media-placeholder { width: 100%; min-height: 76px; object-fit: cover; }
.parity-single-image { width: 100%; overflow: hidden; background: #f1f2f4; }
.parity-single-image.ratio-original img { height: auto; max-height: none; object-fit: contain; }
.parity-single-image.ratio-16-9 { aspect-ratio: 16 / 9; }
.parity-single-image.ratio-2-1 { aspect-ratio: 2 / 1; }
.parity-single-image.ratio-4-3 { aspect-ratio: 4 / 3; }
.parity-single-image.ratio-1-1 { aspect-ratio: 1 / 1; }
.parity-single-image.ratio-3-4 { aspect-ratio: 3 / 4; }
.parity-single-image.ratio-9-16 { aspect-ratio: 9 / 16; }
.parity-single-image.fit-contain img { object-fit: contain; }
.parity-single-image.has-white-background,
.parity-carousel-preview.has-white-background { background: #fff; padding: 12px; }
.parity-single-image.has-margin-left,
.parity-carousel-preview.has-margin-left { margin-left: 12px; width: calc(100% - 12px); }
.parity-single-image.has-margin-right,
.parity-carousel-preview.has-margin-right { margin-right: 12px; width: calc(100% - 12px); }
.parity-single-image.has-margin-left.has-margin-right,
.parity-carousel-preview.has-margin-left.has-margin-right { width: calc(100% - 24px); }
.parity-single-image.has-margin-top,
.parity-carousel-preview.has-margin-top { margin-top: 12px; }
.parity-single-image.has-margin-bottom,
.parity-carousel-preview.has-margin-bottom { margin-bottom: 12px; }
.parity-single-image.has-rounded-block,
.parity-carousel-preview.has-rounded-block { border-radius: 12px; }
.parity-single-image.has-rounded-image img,
.parity-carousel-preview.has-rounded-image img { border-radius: 10px; }
.parity-category-routes { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #e2e6ee; }
.parity-category-routes > header { display: grid; gap: 4px; margin-bottom: 2px; }
.parity-category-routes > header small { color: #7b8492; }
.parity-category-route { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #dfe4ec; background: #fff; }
.parity-category-route.is-selected { border-color: #315eea; background: #f3f6ff; }
.parity-category-route label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.parity-category-route label span { display: grid; gap: 3px; }
.parity-category-route button { min-height: 36px; border: 1px solid #cfd6e1; background: #fff; cursor: pointer; }
.parity-contact-preview { width: calc(100% - 24px); margin: 12px; padding: 12px; border: 0; color: #fff; background: #7a4936; }
.parity-location-preview { display: grid; grid-template-columns: 30px 1fr; gap: 2px 8px; padding: 14px; }
.parity-location-preview span { grid-row: 1 / 3; font-size: 24px; }
.parity-location-preview small { color: #8e949e; }
.parity-rich-text { padding: 14px; color: #494949; font-size: 12px; line-height: 1.7; }

.parity-property-section { display: grid; gap: 14px; padding-top: 4px; }
.parity-property-section h3 { margin: 0 0 4px; font-size: 16px; }
.parity-selected-component { display: flex; align-items: center; justify-content: space-between; padding: 11px 0 15px; border-bottom: 1px solid var(--parity-line); }
.parity-selected-component strong { font-size: 15px; }
.parity-selected-component span { color: #7e8a9e; font-size: 11px; }
.parity-property-field { display: grid; gap: 7px; margin: 0; color: #5b6472; font-size: 12px; }
.parity-property-field > span { display: flex; justify-content: space-between; }
.parity-property-field input,
.parity-property-field select,
.parity-property-field textarea { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid #dce1e9; border-radius: 3px; outline: 0; color: var(--parity-text); background: #fff; }
.parity-property-field textarea { resize: vertical; }
.parity-property-field input:hover,
.parity-property-field select:hover,
.parity-property-field textarea:hover { border-color: #bfc8d7; }
.parity-property-field input:focus,
.parity-property-field select:focus,
.parity-property-field textarea:focus { border-color: #7898ed; box-shadow: 0 0 0 3px rgba(49, 94, 234, .08); }
.parity-property-switch { display: flex; align-items: center; gap: 8px; min-height: 34px; color: #555f6d; font-size: 12px; }
.parity-property-switch input { width: 16px; height: 16px; accent-color: var(--parity-blue); }
.parity-property-action { min-height: 36px; border: 1px solid #dce2eb; border-radius: 3px; color: #4d6288; background: var(--parity-panel-strong); cursor: pointer; }
.parity-property-action:hover { border-color: #7898ed; color: var(--parity-blue); background: var(--parity-blue-soft); }
.parity-media-value { color: #7d8d89; }
.parity-property-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding-top: 12px; border-top: 1px solid var(--parity-line); }
.parity-property-actions button { min-height: 34px; border: 1px solid #dce2eb; border-radius: 3px; color: #596474; background: #fff; cursor: pointer; }
.parity-property-actions button:hover { border-color: #7898ed; color: var(--parity-blue); background: var(--parity-blue-soft); }
.parity-property-actions .danger { color: #b3483f; }
.parity-property-actions .danger:hover { border-color: #e1a29c; color: #a63b33; background: #fff2f1; }

/* Keep the real editing actions comfortably touchable without changing the preview shell itself. */
.parity-designer .parity-back-button,
.parity-designer .parity-publish-button,
.parity-designer .parity-history-button,
.parity-designer .parity-save-button { min-height: 44px; height: 44px; }
.parity-designer .parity-designer-theme { width: 44px; min-width: 44px; min-height: 44px; height: 44px; }
.parity-designer .parity-property-action,
.parity-designer .parity-property-actions button { min-height: 44px; }
.parity-designer .parity-component-toolbar { width: 44px; }
.parity-designer .parity-component-toolbar button { width: 44px; min-width: 44px; min-height: 44px; height: 44px; }

/* 4A: Keep the page builder's real device preview at its measured size while each operating panel owns its scrolling. */
@media (max-width: 1180px) {
  .parity-designer { overscroll-behavior: contain; }
  .parity-designer-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "start end" "center center";
    min-width: 0;
    height: auto;
    min-height: var(--parity-topbar-height);
    padding: 8px 16px;
  }
  .parity-topbar-start { grid-area: start; min-width: 0; padding-left: 0; }
  .parity-topbar-center { grid-area: center; justify-content: flex-start; min-height: 44px; }
  .parity-topbar-end { grid-area: end; padding-right: 0; }
  .parity-designer .parity-page-select select { min-height: var(--sx-touch-control-height, 44px); }
  .parity-designer-body {
    grid-template-columns: var(--parity-tool-width) minmax(0, 1fr);
    grid-template-rows: minmax(240px, auto) minmax(780px, auto) minmax(300px, auto);
    min-width: 0;
    height: auto;
    min-height: calc(100vh - var(--parity-topbar-height));
  }
  .parity-tool-rail { grid-row: 1 / 4; }
  .parity-secondary-panel { grid-column: 2; grid-row: 1; max-height: min(34vh, 360px); }
  .parity-phone-stage { grid-column: 1 / -1; grid-row: 2; min-height: 780px; }
  .parity-property-panel { grid-column: 2; grid-row: 3; max-height: min(46vh, 460px); }
}

@media (max-width: 820px) {
  .parity-designer-topbar { grid-template-areas: "start" "center" "end"; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 12px; }
  .parity-topbar-start,
  .parity-topbar-center,
  .parity-topbar-end { width: 100%; min-height: 44px; flex-wrap: wrap; gap: 8px; }
  .parity-topbar-center { justify-content: flex-start; }
  .parity-topbar-end { justify-content: flex-end; }
  .parity-back-button,
  .parity-publish-button,
  .parity-history-button,
  .parity-save-button,
  .parity-designer-theme { min-height: var(--sx-touch-control-height, 44px); }
  .parity-page-select { width: min(192px, calc(100vw - 176px)); min-height: var(--sx-touch-control-height, 44px); }
  .parity-designer .parity-page-select select { min-height: var(--sx-touch-control-height, 44px); }
  .parity-audience-control { min-height: var(--sx-touch-control-height, 44px); }
  .parity-audience-switch button { min-height: var(--sx-touch-control-height, 44px); }
  .parity-designer-body { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(780px, auto) auto; }
  .parity-tool-rail { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 6px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--parity-line); }
  .parity-tool { width: 100%; min-height: var(--sx-touch-control-height, 44px); flex-direction: row; gap: 7px; }
  .parity-tool.is-active::before { top: auto; bottom: 0; left: 50%; width: 30px; height: 3px; transform: translateX(-50%); border-radius: 3px 3px 0 0; }
  .parity-secondary-panel { grid-column: 1; grid-row: 2; max-height: min(40vh, 340px); border-right: 0; border-bottom: 1px solid var(--parity-line); }
  .parity-phone-stage { grid-column: 1; grid-row: 3; min-height: 780px; flex-direction: column; align-items: center; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; padding: 16px 12px 24px; }
  .parity-phone-stage::before { width: min(680px, calc(100% - 24px)); }
  .parity-phone-workspace { margin: 0 12px; }
  .parity-device-preview { position: static; right: auto; bottom: auto; margin-top: 16px; }
  .parity-device-preview-button { width: var(--sx-touch-control-height, 44px); height: var(--sx-touch-control-height, 44px); }
  .parity-device-toolbar { min-height: var(--sx-touch-control-height, 44px); height: auto; }
  .parity-device-toolbar button { min-height: var(--sx-touch-control-height, 44px); }
  .parity-property-panel { grid-column: 1; grid-row: 4; max-height: min(52vh, 460px); border-left: 0; }
  .parity-property-field input,
  .parity-property-field select,
  .parity-property-field textarea,
  .parity-property-action,
  .parity-property-actions button { min-height: var(--sx-touch-control-height, 44px); }
  .parity-component-toolbar button { width: var(--sx-touch-control-height, 44px); height: var(--sx-touch-control-height, 44px); }
  .parity-component-toolbar { width: var(--sx-touch-control-height, 44px); }
}

@media (max-width: 560px) {
  .parity-topbar-start { align-items: stretch; }
  .parity-back-button { min-width: var(--sx-touch-control-height, 44px); padding: 0 12px; }
  .parity-back-label { display: none; }
  .parity-page-select { flex: 1 1 168px; width: auto; }
  .parity-audience-control { flex: 1 1 150px; justify-content: space-between; }
  .parity-topbar-center .parity-publish-button,
  .parity-topbar-center .parity-history-button { flex: 1 1 auto; }
  .parity-save-button { min-width: 0; flex: 1 1 auto; }
  .parity-tool { justify-content: center; padding: 0 4px; }
  .parity-tool b { font-size: 11px; }
  .parity-tool-icon { width: 25px; height: 25px; }
  .parity-phone-stage { align-items: flex-start; padding-right: 0; padding-left: 0; }
  .parity-phone-workspace { margin-right: 12px; margin-left: 12px; }
  .parity-device-preview { align-self: center; }
}

:root[data-theme="dark"] .parity-designer {
  --parity-bg: #171a20;
  --parity-panel: #20242b;
  --parity-panel-strong: #272c34;
  --parity-canvas: #181c22;
  --parity-line: #343a44;
  --parity-line-strong: #424956;
  --parity-text: #edf0f5;
  --parity-muted: #9aa3b1;
  --parity-faint: #77808d;
  --parity-blue-soft: #263456;
  --parity-shadow: 0 18px 48px rgba(0, 0, 0, .32);
}
:root[data-theme="dark"] .parity-designer .parity-designer-topbar,
:root[data-theme="dark"] .parity-designer .parity-tool-rail,
:root[data-theme="dark"] .parity-designer .parity-secondary-panel,
:root[data-theme="dark"] .parity-designer .parity-property-panel { background: var(--parity-panel); }
:root[data-theme="dark"] .parity-designer .parity-tool-rail { background: #1b2027; }
:root[data-theme="dark"] .parity-designer .parity-phone-stage { background: var(--parity-canvas); background-image: radial-gradient(circle at 50% 0, rgba(73, 84, 105, .16), transparent 45%); }
:root[data-theme="dark"] .parity-designer .parity-phone-stage::before { border-color: rgba(76, 85, 101, .28); }
:root[data-theme="dark"] .parity-designer .parity-page-select,
:root[data-theme="dark"] .parity-designer .parity-tool.is-active { color: var(--parity-text); background: var(--parity-panel-strong); }
:root[data-theme="dark"] .parity-designer .parity-back-button { color: var(--parity-text); border-color: var(--parity-line-strong); background: var(--parity-panel-strong); box-shadow: 0 2px 8px rgba(0, 0, 0, .22); }
:root[data-theme="dark"] .parity-designer .parity-back-button:hover { color: #9db5ff; border-color: #6378ad; background: var(--parity-blue-soft); }
:root[data-theme="dark"] .parity-designer .parity-template-card { border-color: #373e49; color: var(--parity-text); background: #292e36; }
:root[data-theme="dark"] .parity-designer .parity-library-row { border-color: #343b45; }
:root[data-theme="dark"] .parity-designer .parity-library-row span { color: #d3d9e3; }
:root[data-theme="dark"] .parity-designer .parity-library-row button,
:root[data-theme="dark"] .parity-designer .parity-property-action,
:root[data-theme="dark"] .parity-designer .parity-property-actions button { border-color: #46505e; color: #dce4f2; background: #292f38; }
:root[data-theme="dark"] .parity-designer .parity-property-field input,
:root[data-theme="dark"] .parity-designer .parity-property-field select,
:root[data-theme="dark"] .parity-designer .parity-property-field textarea { border-color: #414a57; color: #edf1f6; background: #272c34; }

:root[data-theme="dark"] .parity-settings-backdrop { background: rgba(5, 8, 13, .72); }
:root[data-theme="dark"] .parity-settings-dialog { color: var(--color-text); border-color: var(--color-border); background: var(--color-surface); box-shadow: 0 30px 78px rgba(0, 0, 0, .55); }
:root[data-theme="dark"] .parity-settings-dialog > header,
:root[data-theme="dark"] .parity-settings-dialog > footer { border-color: var(--color-border); background: var(--color-surface); }
:root[data-theme="dark"] .parity-settings-dialog > header button { color: var(--color-text-muted); }
:root[data-theme="dark"] .parity-settings-dialog > header button:hover { color: var(--color-text); background: var(--color-hover); }
:root[data-theme="dark"] .parity-settings-dialog legend,
:root[data-theme="dark"] .parity-dialog-logo > span,
:root[data-theme="dark"] .parity-title-grid label span { color: var(--color-text); }
:root[data-theme="dark"] .parity-settings-dialog > footer button,
:root[data-theme="dark"] .parity-dialog-logo button,
:root[data-theme="dark"] .parity-dialog-segment label { color: var(--color-text); border-color: var(--color-border); background: var(--color-input); }
:root[data-theme="dark"] .parity-title-grid input,
:root[data-theme="dark"] .parity-nav-row input[type="text"],
:root[data-theme="dark"] .parity-custom-color-controls input[type="text"] { color: var(--color-text); border-color: var(--color-border); background: var(--color-input); }
:root[data-theme="dark"] .parity-dialog-logo img,
:root[data-theme="dark"] .parity-background-color input[type="color"],
:root[data-theme="dark"] .parity-custom-color-controls input[type="color"] { border-color: var(--color-border); background: var(--color-input); }
:root[data-theme="dark"] .parity-nav-table { border-color: var(--color-border); }
:root[data-theme="dark"] .parity-nav-table-head { color: var(--color-text-muted); background: var(--color-surface-subtle); }
:root[data-theme="dark"] .parity-nav-row { color: var(--color-text); border-color: var(--color-border-soft); background: var(--color-surface); }
:root[data-theme="dark"] .parity-nav-row[data-parity-nav-reserved] { background: var(--color-surface-subtle); }
:root[data-theme="dark"] .parity-nav-reserved-note { color: var(--color-text-muted); background: var(--color-surface-raised); }
:root[data-theme="dark"] .parity-nav-enabled button { color: var(--color-text); border-color: var(--color-border); background: var(--color-surface-raised); }
:root[data-theme="dark"] .parity-nav-row:not(.is-hidden) .parity-nav-enabled button { color: #ffafa5; border-color: #74433e; background: #2e201f; }
:root[data-theme="dark"] .parity-nav-icon-picker button { color: var(--color-text-muted); border-color: var(--color-border); background: var(--color-input); }
:root[data-theme="dark"] .parity-nav-icon { color: var(--color-text); border-color: var(--color-border); background: var(--color-input); }
:root[data-theme="dark"] .parity-dialog-help,
:root[data-theme="dark"] .parity-custom-color small,
:root[data-theme="dark"] .parity-color-choice b { color: var(--color-text-muted); }

.designer-workflow-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; overflow: hidden; border: 0; border-radius: 6px; color: #242a33; background: #fff; box-shadow: 0 24px 70px rgba(31, 39, 52, .22); }
.designer-workflow-dialog::backdrop { background: rgba(39, 48, 63, .38); backdrop-filter: blur(2px); }
.designer-workflow-dialog form,
.designer-workflow-dialog > div { display: grid; gap: 22px; margin: 0; padding: 28px; }
.designer-workflow-dialog header span { color: #8a684f; font-size: 11px; font-weight: 700; }
.designer-workflow-dialog header h2 { margin: 5px 0 0; font-size: 21px; }
.designer-workflow-dialog label { display: grid; gap: 8px; color: #515b69; font-size: 12px; }
.designer-workflow-dialog textarea { width: 100%; box-sizing: border-box; padding: 12px; resize: vertical; border: 1px solid #dce1e8; border-radius: 4px; outline: 0; color: #202630; background: #fff; font: inherit; line-height: 1.6; }
.designer-workflow-dialog textarea:focus { border-color: #6c8ee7; box-shadow: 0 0 0 3px rgba(49, 94, 234, .08); }
.designer-workflow-dialog label small { color: #9199a5; }
.designer-workflow-dialog footer { display: flex; justify-content: flex-end; gap: 9px; }
.designer-workflow-dialog footer button { min-width: 86px; min-height: 38px; border: 1px solid #d9dee6; border-radius: 3px; color: #586270; background: #fff; cursor: pointer; }
.designer-workflow-dialog footer button.primary { border-color: #315eea; color: #fff; background: #315eea; }
.designer-history-dialog { width: min(640px, calc(100vw - 32px)); }
.designer-history-list { display: grid; max-height: min(55vh, 480px); gap: 8px; overflow: auto; }
.designer-history-list > button { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 15px; border: 1px solid #e0e4ea; border-radius: 4px; color: #29313c; background: #fff; text-align: left; cursor: pointer; }
.designer-history-list > button:hover { border-color: #7798ee; background: #f5f8ff; }
.designer-history-list span { display: grid; gap: 5px; }
.designer-history-list small { color: #89929e; }
.designer-history-list em { color: #315eea; font-style: normal; font-size: 12px; }
.designer-confirm-dialog p { margin: 0; color: #66707e; font-size: 13px; line-height: 1.7; }
.designer-confirm-dialog footer button.danger { border-color: #b94b43; background: #b94b43; }
:root[data-theme="dark"] .designer-workflow-dialog { color: #edf0f5; background: #20242b; }
:root[data-theme="dark"] .designer-workflow-dialog textarea,
:root[data-theme="dark"] .designer-workflow-dialog footer button,
:root[data-theme="dark"] .designer-history-list > button { border-color: #424a56; color: #edf0f5; background: #292f38; }
:root[data-theme="dark"] .designer-history-list > button:hover { border-color: #6f8bd2; background: #263456; }
:root[data-theme="dark"] .designer-confirm-dialog p { color: #aab2bf; }
