/* The LP3 model view uses the public product selector's typography and studio palette. */
dspm-lp3-cabinet, .plx-cabinet {
  display:block; container:lp3-cabinet / inline-size; min-width:0;
  color:var(--ink); background:#f4f7f9; border:1px solid #becfd9; border-radius:13px;
}
.lp3-view-title {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:.75rem 1.25rem; padding:1.12rem 1.3rem;
  color:white; background:linear-gradient(110deg,#122d43,#1d4059); border-radius:12px 12px 0 0;
}
.lp3-view-title h2 { margin:0; color:white; font-size:clamp(1.55rem,2.65vw,2.35rem); line-height:1.1; letter-spacing:-.035em; }
.lp3-view-title .lp3-model { display:grid; gap:.22rem; margin:0; color:#d4e3ed; font-size:.79rem; line-height:1.3; }
.lp3-model strong { color:white; font-size:.9rem; font-weight:500; overflow-wrap:anywhere; }
.lp3-configuration { padding:1rem 1.25rem; background:white; border-bottom:1px solid var(--line); }
.lp3-form-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap:.8rem 1rem; }
.lp3-input { display:grid; align-content:start; gap:.35rem; min-width:0; color:#344f62; font-size:.88rem; font-weight:700; }
.lp3-input select,.lp3-input input,.system3d-canvas-footer select {
  width:100%; min-width:0; min-height:44px; padding:.45rem .6rem;
  border:1px solid #afc2ce; border-radius:6px; color:var(--ink); background:white; font:inherit; font-size:.95rem; font-weight:500;
}
.lp3-multiple { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:.55rem 1.25rem; border:0; padding:0; margin:0; min-width:0; }
.lp3-multiple legend { padding:0; margin-bottom:.35rem; font-weight:700; }
.lp3-multiple input { margin-right:.45rem; accent-color:var(--blue); }
.lp3-setting-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; margin-top:.9rem; }
.lp3-setting-groups details,.system3d-study { border:1px solid #c1d1dc; border-radius:7px; background:white; min-width:0; }
.lp3-setting-groups:has(details[open]) { grid-template-columns:minmax(0,1fr); }
.lp3-setting-groups summary,.system3d-study summary {
  display:flex; justify-content:space-between; align-items:center; gap:.55rem; min-height:43px; padding:.5rem .75rem;
  list-style:none; color:#26475d; font-size:.9rem; font-weight:700; cursor:pointer;
}
.lp3-setting-groups summary span { display:inline-flex; align-items:center; gap:.55rem; }
.lp3-setting-groups summary::-webkit-details-marker,.system3d-study summary::-webkit-details-marker { display:none; }
.lp3-setting-groups [open]>summary>.lp3-icon,.system3d-study[open]>summary .lp3-icon { transform:rotate(180deg); }
.lp3-setting-groups details[open]>.lp3-form-row,.system3d-study>div { padding:.75rem .9rem 1rem; border-top:1px solid var(--line); }
.lp3-icon { width:1.05rem; height:1.05rem; flex:none; }
.configured-system-3d { display:grid; gap:1rem; min-width:0; padding:1rem; }
.lp3-lineup-panel,.system3d-inspector {
  min-width:0; border:1px solid #c6d5df; border-radius:9px; background:white; box-shadow:0 2px 4px #1c384d09;
}
.lp3-panel-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.6rem 1rem; padding:1rem 1.05rem .8rem; }
.lp3-panel-heading h3,.lp3-view-dialog h3 { color:#15374d; margin:0; font-size:clamp(1.22rem,1.55vw,1.55rem); line-height:1.2; letter-spacing:-.028em; }
.lp3-panel-heading p,.lp3-plan-heading p { color:var(--quiet); font-size:.87rem; line-height:1.45; margin:.25rem 0 0; }
.lp3-view-button {
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem; min-height:41px; max-width:100%; padding:.43rem .66rem;
  color:#19374c; background:white; border:1px solid #afc2ce; border-radius:6px; font:inherit; font-size:.87rem; font-weight:700; line-height:1.25; cursor:pointer;
}
.lp3-view-button:hover:not(:disabled),.lp3-input select:hover,.system3d-shelf-tabs button:hover { background:#f1f6f9; border-color:#62839b; }
.lp3-view-button:disabled { background:#f0f3f5; border-color:#d1dce2; color:#687a85; cursor:default; }
.lp3-view-button[aria-pressed="true"] { color:#1749a8; border-color:#98b7e9; background:var(--soft); }
.lp3-view-button.lp3-download:not(:disabled) { color:white; border-color:var(--blue); background:var(--blue); }
.lp3-view-button.lp3-download:hover:not(:disabled) { background:#133eaa; }
.system3d-metrics {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0 1.05rem 1rem;
  border:1px solid #d1dfe8; border-radius:7px; background:#f3f7fa;
}
.system3d-metrics>div { min-width:0; display:flex; align-items:baseline; flex-wrap:wrap; gap:.15rem .55rem; padding:.65rem .85rem; }
.system3d-metrics>div+div { border-left:1px solid #d1dfe8; }
.system3d-metrics strong { color:#16364d; font-size:1.5rem; line-height:1.1; letter-spacing:-.035em; font-variant-numeric:tabular-nums; }
.system3d-metrics span { color:#415c70; font-size:.87rem; font-weight:500; }
.lp3-view-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(13.75rem,25%); gap:1rem; align-items:start; padding:0 1.05rem 1rem; }
.system3d-scene { min-width:0; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:white; }
.system3d-toolbar,.lp3-camera-tools,.system3d-canvas-footer {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.6rem; padding:.6rem .7rem;
}
.system3d-toolbar { border-bottom:1px solid #cfdae1; }
.system3d-toggle,.lp3-camera,.lp3-zoom { display:flex; align-items:center; flex-wrap:wrap; gap:.23rem; }
.system3d-toggle,.lp3-camera { padding:2px; border:1px solid #b8cad7; border-radius:7px; background:#eff4f7; }
.system3d-toggle .lp3-view-button,.lp3-camera .lp3-view-button { min-height:36px; padding:.35rem .6rem; border:1px solid transparent; border-radius:4px; color:#365166; background:transparent; }
.system3d-toggle .lp3-view-button[aria-pressed="true"],.lp3-camera .lp3-view-button[aria-pressed="true"] { color:white; background:#24559d; border-color:#24559d; }
.system3d-canvas { position:relative; min-width:0; height:clamp(21rem,32vw,31rem); background:#eef4f8; overflow:hidden; }
.system3d-canvas canvas { display:block; width:100% !important; height:100% !important; touch-action:none; }
.system3d-canvas canvas:focus-visible { outline-offset:-4px; }
.lp3-camera-tools { border-top:1px solid var(--line); }
.lp3-zoom { gap:.32rem; }
.lp3-zoom .lp3-view-button { min-width:40px; }
.system3d-canvas-footer { border-top:1px solid #e0e8ed; background:#f7fafb; align-items:center; }
.system3d-canvas-footer p,.system3d-canvas-footer label { font-size:.81rem; color:#355168; font-weight:700; margin:0; }
.system3d-canvas-footer .lp3-gesture { display:block; color:#4d6270; margin-top:.2rem; font-size:.78rem; line-height:1.4; }
.system3d-canvas-footer label { display:flex; align-items:center; gap:.5rem; }
.system3d-canvas-footer select { width:auto; min-height:35px; font-size:.83rem; padding:.25rem .45rem; }
.lp3-cabinet-list { min-width:0; }
.lp3-cabinet-list h4,.lp3-shelf-navigation h4,.lp3-plan-heading h4,.lp3-reserved h4 { margin:0; color:#15374d; font-size:1rem; line-height:1.25; }
.lp3-cabinet-list h4 { margin:0 0 .65rem; }
.system3d-lineup { display:grid; gap:.5rem; align-content:start; }
.system3d-lineup button {
  display:grid; grid-template-columns:2.65rem minmax(0,1fr); align-items:center; text-align:left; gap:.55rem;
  min-width:0; width:100%; min-height:72px; padding:.57rem .65rem; border:1px solid #c1d1dc; border-radius:6px; color:var(--ink); background:white;
}
.system3d-lineup button:hover { border-color:#62839b; }
.system3d-lineup button[aria-pressed="true"] { border-color:#779edc; background:#edf3ff; box-shadow:inset 3px 0 0 var(--blue); }
.lp3-elevation { display:block; width:100%; height:3.6rem; }
.lp3-cab-data { display:grid; gap:.17rem; }
.lp3-cab-id { color:#305a8a; font-size:.75rem; font-weight:700; letter-spacing:.05em; }
.lp3-cab-data strong { font-size:.99rem; }
.lp3-dims,.lp3-cab-count { color:#405b70; font-size:.81rem; line-height:1.4; }
.lp3-inspection-grid { display:grid; grid-template-columns:minmax(10rem,24%) minmax(0,1fr); gap:1rem; padding:0 1.05rem 1rem; }
.lp3-shelf-navigation { background:#f3f7fa; border:1px solid #d2dfe8; border-radius:7px; padding:.8rem; min-width:0; }
.lp3-shelf-navigation>p,.lp3-reserved p { font-size:.85rem; color:#455f72; line-height:1.5; margin:.3rem 0 .65rem; }
.system3d-shelf-tabs { display:grid; gap:.28rem; }
.system3d-shelf-tabs button {
  min-width:0; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.15rem .35rem;
  border:1px solid #c6d5df; border-radius:5px; padding:.44rem .55rem; min-height:39px; background:white; color:#234458; text-align:left;
}
.system3d-shelf-tabs button[aria-pressed="true"] { background:#e6effe; border-color:#7da1d9; box-shadow:inset 3px 0 0 var(--blue); color:#143f93; }
.system3d-shelf-tabs strong { font-size:.87rem; }
.system3d-shelf-tabs span,.lp3-source { font-size:.78rem; }
.system3d-shelf { min-width:0; display:flex; flex-direction:column; align-self:stretch; }
.lp3-plan-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.5rem; }
.lp3-plan-heading h4 { font-size:1.08rem; }
.lp3-plan-heading h4 span { color:#466077; font-size:.9rem; font-weight:500; }
.lp3-source { color:#456177; font-weight:500; }
.lp3-drawing { display:grid; align-content:center; justify-items:stretch; gap:.3rem; flex:1; margin-top:.65rem; padding:.7rem .85rem; background:#f7fafc; border:1px solid #c9d9e4; border-radius:7px; }
.lp3-drawing svg { display:block; width:100%; height:auto; max-height:16.2rem; font-family:Roboto,Arial,sans-serif; }
.lp3-dim-line,.lp3-drawing-front { text-align:center; color:#3a566c; font-size:.79rem; line-height:1.35; font-variant-numeric:tabular-nums; }
.lp3-dim-line { display:flex; align-items:center; justify-content:center; gap:.5rem; font-weight:700; }
.lp3-dim-line:before,.lp3-dim-line:after { content:""; width:12%; border-top:1px solid #a6bcca; }
.lp3-drawing-reference { margin:.35rem 0 0; color:#536a7a; font-size:.76rem; line-height:1.4; }
.lp3-reserved { align-self:stretch; justify-content:center; align-items:start; padding:1.2rem; border:1px dashed #afc2ce; border-radius:7px; background:#f7fafc; }
.lp3-reserved .lp3-icon { color:#53748a; height:1.6rem; width:1.6rem; margin-bottom:.55rem; }
.lp3-battery-key { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.4rem 1rem; border-top:1px solid var(--line); padding:.7rem 1.05rem; color:#38566c; font-size:.82rem; line-height:1.5; }
.system3d-legend,.system3d-legend span { display:flex; flex-wrap:wrap; align-items:center; gap:.3rem; }
.system3d-legend { gap:.45rem .8rem; }
.system3d-legend svg { width:.74rem; height:.74rem; }
.system3d-study>div { color:var(--quiet); font-size:.87rem; line-height:1.55; }
.system3d-study p { margin:0 0 .6rem; }
.system3d-study p:last-child { margin:0; }
.lp3-study-note { margin:0; color:var(--quiet); font-size:.8rem; line-height:1.45; }
.lp3-view-alert,[data-cabinet-app]>p[role="status"] { margin:1rem; padding:.85rem 1rem; border:1px solid #bfcedb; border-radius:7px; background:#fff; color:#29495f; line-height:1.5; }
.lp3-view-dialog { width:min(88rem,96vw); max-width:96vw; max-height:94vh; max-height:94dvh; padding:0; overflow:auto; border:1px solid #859daf; border-radius:12px; background:white; margin:auto; color:var(--ink); }
.lp3-view-dialog::backdrop { background:#0a2039c9; }
.lp3-view-dialog h3 { color:white; background:linear-gradient(110deg,#122d43,#1d4059); padding:.85rem 1rem; }
.lp3-view-dialog .system3d-scene { border:0; border-radius:0; }
.lp3-view-dialog .system3d-canvas { height:min(64vh,48rem); }
dspm-lp3-cabinet :focus-visible,.plx-cabinet :focus-visible,.lp3-view-dialog :focus-visible { outline:3px solid #356deb; outline-offset:2px; }
@container lp3-cabinet (max-width:49rem) {
  .lp3-view-grid { grid-template-columns:minmax(0,1fr); }
  .system3d-lineup { grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr)); }
  .lp3-inspection-grid { grid-template-columns:minmax(10rem,29%) minmax(0,1fr); }
}
@container lp3-cabinet (max-width:35rem) {
  .lp3-view-title,.lp3-configuration { padding:.85rem; }
  .lp3-view-title h2 { font-size:1.5rem; }
  .lp3-setting-groups,.lp3-inspection-grid { grid-template-columns:minmax(0,1fr); }
  .configured-system-3d { padding:.55rem; gap:.65rem; }
  .lp3-panel-heading { padding:.78rem; }
  .lp3-view-grid,.lp3-inspection-grid { padding:0 .65rem .75rem; gap:.75rem; }
  .system3d-metrics { margin:0 .65rem .75rem; }
  .system3d-metrics>div { padding:.56rem .35rem; flex-direction:column; align-items:flex-start; }
  .system3d-metrics strong { font-size:1.27rem; }
  .system3d-metrics span { font-size:.76rem; }
  .system3d-canvas { height:clamp(17.5rem,82vw,23rem); }
  .system3d-toolbar,.lp3-camera-tools,.system3d-canvas-footer { padding:.5rem; gap:.45rem; }
  .system3d-shelf-tabs { grid-template-columns:repeat(auto-fit,minmax(5.5rem,1fr)); }
  .system3d-shelf-tabs button { flex-direction:column; align-items:flex-start; }
  .lp3-battery-key { padding:.65rem; }
}
@media (max-width:650px) {
  .lp3-view-button,.lp3-camera .lp3-view-button,.system3d-toggle .lp3-view-button,.system3d-shelf-tabs button,.system3d-canvas-footer select { min-height:42px; }
  .system3d-toggle .lp3-view-button { padding:.35rem .46rem; }
  .lp3-view-dialog .system3d-canvas { height:55dvh; }
}
