:root {
  --ecckp-ink: #1d130f;
  --ecckp-ink-soft: #594a43;
  --ecckp-copper: #a85a25;
  --ecckp-copper-dark: #82411b;
  --ecckp-cream: #f5f0e9;
  --ecckp-paper: #fffdf9;
  --ecckp-line: #ded4ca;
  --ecckp-success: #176b49;
  --ecckp-danger: #a62d2d;
  --ecckp-radius: 18px;
  --ecckp-shadow: 0 24px 70px rgba(37, 23, 15, .13);
}

.ecckp-root,
.ecckp-root * {
  box-sizing: border-box;
}

.ecckp-root {
  width: 100%;
  color: var(--ecckp-ink);
  font-family: "Alexandria", "Inter", "Noto Sans Arabic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  isolation: isolate;
}

.ecckp-root button,
.ecckp-root input,
.ecckp-root textarea,
.ecckp-root select {
  font: inherit;
}

.ecckp-shell {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border: 1px solid var(--ecckp-line);
  border-radius: 26px;
  background: var(--ecckp-paper);
  box-shadow: var(--ecckp-shadow);
}

.ecckp-shell[dir="rtl"] {
  direction: rtl;
}

.ecckp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  padding: 22px 28px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 15%, rgba(168, 90, 37, .42), transparent 30%),
    linear-gradient(110deg, #1c100c, #2b1710 54%, #160c09);
}

.ecckp-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ecckp-mark {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  color: #e6b083;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.08em;
}

.ecckp-title {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
}

.ecckp-subtitle {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
}

.ecckp-project-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  white-space: nowrap;
}

.ecckp-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #62cf9c;
  box-shadow: 0 0 0 6px rgba(98, 207, 156, .13);
}

.ecckp-body {
  display: grid;
  grid-template-columns: 292px minmax(420px, 1fr) 250px;
  min-height: 664px;
}

.ecckp-sidebar,
.ecckp-summary {
  position: relative;
  z-index: 3;
  background: var(--ecckp-paper);
}

.ecckp-sidebar {
  border-inline-end: 1px solid var(--ecckp-line);
}

.ecckp-summary {
  border-inline-start: 1px solid var(--ecckp-line);
}

.ecckp-shell.is-design-panel-collapsed .ecckp-sidebar,
.ecckp-shell.is-summary-panel-collapsed .ecckp-summary {
  display: none;
}

.ecckp-shell.is-design-panel-collapsed .ecckp-body {
  grid-template-columns: minmax(420px, 1fr) 250px;
}

.ecckp-shell.is-summary-panel-collapsed .ecckp-body {
  grid-template-columns: 292px minmax(420px, 1fr);
}

.ecckp-shell.is-design-panel-collapsed.is-summary-panel-collapsed .ecckp-body {
  grid-template-columns: minmax(420px, 1fr);
}

.ecckp-shell.is-summary-overlay .ecckp-body {
  grid-template-columns: 270px minmax(380px, 1fr);
}

.ecckp-shell.is-summary-overlay .ecckp-summary {
  position: absolute;
  z-index: 6;
  top: 96px;
  right: 0;
  display: block;
  width: min(260px, 90%);
  height: 664px;
  box-shadow: -18px 0 55px rgba(42, 24, 16, .15);
  transform: translateX(101%);
  transition: transform .25s ease;
}

.ecckp-shell[dir="rtl"].is-summary-overlay .ecckp-summary {
  right: auto;
  left: 0;
  transform: translateX(-101%);
}

.ecckp-shell.is-summary-overlay .ecckp-summary.is-open {
  transform: translateX(0);
}

.ecckp-shell.is-design-overlay {
  min-height: 740px;
  border-radius: 18px;
}

.ecckp-shell.is-design-overlay .ecckp-topbar {
  min-height: 84px;
  padding: 16px 18px;
}

.ecckp-shell.is-design-overlay .ecckp-project-status {
  display: none;
}

.ecckp-shell.is-design-overlay .ecckp-body {
  display: block;
  min-height: 656px;
}

.ecckp-shell.is-design-overlay .ecckp-sidebar {
  position: absolute;
  z-index: 7;
  top: 84px;
  left: 0;
  display: block;
  width: min(320px, 90%);
  height: 656px;
  box-shadow: 18px 0 55px rgba(42, 24, 16, .18);
  transform: translateX(-101%);
  transition: transform .25s ease;
}

.ecckp-shell[dir="rtl"].is-design-overlay .ecckp-sidebar {
  right: 0;
  left: auto;
  transform: translateX(101%);
}

.ecckp-shell.is-design-overlay .ecckp-sidebar.is-open {
  transform: translateX(0);
}

.ecckp-shell.is-design-overlay .ecckp-summary {
  top: 84px;
  height: 656px;
}

.ecckp-shell.is-design-overlay .ecckp-panel-scroll,
.ecckp-shell.is-design-overlay .ecckp-viewport {
  height: 656px;
}

.ecckp-shell.is-design-overlay .ecckp-toolbar {
  top: 12px;
  width: auto;
}

.ecckp-shell.is-design-overlay .ecckp-toolbar .ecckp-tool-label {
  display: none;
}

.ecckp-shell.is-design-overlay .ecckp-tool {
  min-width: 34px;
  padding: 0 8px;
}

.ecckp-shell.is-design-overlay .ecckp-stage-hint {
  bottom: 68px;
}

.ecckp-shell.is-phone-layout {
  min-height: 700px;
  border-radius: 0;
}

.ecckp-shell.is-phone-layout .ecckp-topbar {
  min-height: 76px;
}

.ecckp-shell.is-phone-layout .ecckp-mark {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
}

.ecckp-shell.is-phone-layout .ecckp-title {
  font-size: 16px;
}

.ecckp-shell.is-phone-layout .ecckp-subtitle {
  display: none;
}

.ecckp-shell.is-phone-layout .ecckp-sidebar,
.ecckp-shell.is-phone-layout .ecckp-summary {
  top: 76px;
  height: 624px;
}

.ecckp-shell.is-phone-layout .ecckp-panel-scroll,
.ecckp-shell.is-phone-layout .ecckp-viewport {
  height: 624px;
}

.ecckp-shell.is-phone-layout .ecckp-toolbar {
  max-width: calc(100% - 16px);
  overflow-x: auto;
}

.ecckp-panel-scroll {
  height: 664px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #c8b7aa transparent;
  scrollbar-width: thin;
}

.ecckp-panel-section {
  padding: 22px;
  border-bottom: 1px solid var(--ecckp-line);
}

.ecckp-section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 5px;
  color: var(--ecckp-copper);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ecckp-section-kicker::before {
  width: 25px;
  height: 1px;
  content: "";
  background: currentColor;
}

.ecckp-section-title {
  margin: 0 0 15px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

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

.ecckp-field {
  display: grid;
  gap: 5px;
}

.ecckp-field--full {
  grid-column: 1 / -1;
}

.ecckp-field label {
  color: var(--ecckp-ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.ecckp-input-wrap {
  position: relative;
}

.ecckp-input-wrap input,
.ecckp-search,
.ecckp-quote-form input,
.ecckp-quote-form textarea {
  width: 100%;
  border: 1px solid var(--ecckp-line);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--ecckp-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ecckp-input-wrap input {
  height: 42px;
  padding: 0 41px 0 12px;
}

[dir="rtl"] .ecckp-input-wrap input {
  padding: 0 12px 0 41px;
}

.ecckp-input-wrap span {
  position: absolute;
  top: 50%;
  inset-inline-end: 10px;
  transform: translateY(-50%);
  color: #8b7d75;
  font-size: 10px;
}

.ecckp-input-wrap input:focus,
.ecckp-search:focus,
.ecckp-quote-form input:focus,
.ecckp-quote-form textarea:focus {
  border-color: var(--ecckp-copper);
  box-shadow: 0 0 0 3px rgba(168, 90, 37, .11);
}

.ecckp-layouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.ecckp-layout-card {
  position: relative;
  min-height: 76px;
  padding: 11px;
  border: 1px solid var(--ecckp-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ecckp-ink);
  cursor: pointer;
  text-align: start;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ecckp-layout-card:hover,
.ecckp-layout-card.is-active {
  border-color: var(--ecckp-copper);
  box-shadow: 0 8px 24px rgba(95, 54, 29, .1);
  transform: translateY(-2px);
}

.ecckp-layout-card.is-active::after {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  content: "✓";
  background: var(--ecckp-copper);
  color: #fff;
  font-size: 10px;
}

.ecckp-layout-icon {
  display: block;
  width: 34px;
  height: 28px;
  margin-bottom: 6px;
  border: 5px solid #6c5144;
  border-top: 0;
  opacity: .75;
}

.ecckp-layout-icon--straight {
  height: 10px;
  border-width: 0 0 5px;
}

.ecckp-layout-icon--l {
  border-inline-end: 0;
  border-top: 0;
}

.ecckp-layout-icon--u {
  border-top: 0;
}

.ecckp-layout-icon--island {
  position: relative;
  height: 12px;
  border-width: 0 0 5px;
}

.ecckp-layout-icon--island::after {
  position: absolute;
  top: 13px;
  left: 9px;
  width: 18px;
  height: 5px;
  content: "";
  background: #6c5144;
}

.ecckp-layout-card strong {
  display: block;
  font-size: 11px;
  line-height: 1.35;
}

.ecckp-unit-grid {
  display: grid;
  gap: 8px;
}

.ecckp-unit-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--ecckp-line);
  border-radius: 11px;
  background: #fff;
  color: var(--ecckp-ink);
  cursor: pointer;
  text-align: start;
  transition: border-color .2s ease, background .2s ease;
}

.ecckp-unit-card:hover {
  border-color: var(--ecckp-copper);
  background: #fbf6f0;
}

.ecckp-unit-picto {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #bca99c;
  border-radius: 5px;
  background: linear-gradient(135deg, #e4d2c3, #b98b68);
  color: #543426;
  font-size: 9px;
  font-weight: 800;
}

.ecckp-unit-picto::after {
  position: absolute;
  top: 6px;
  right: 5px;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  content: "";
  background: #6a5146;
}

.ecckp-unit-card strong,
.ecckp-unit-card small {
  display: block;
}

.ecckp-unit-card strong {
  font-size: 11px;
  line-height: 1.45;
}

.ecckp-unit-card small {
  color: #85766e;
  font-size: 9px;
}

.ecckp-unit-add {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--ecckp-cream);
  color: var(--ecckp-copper);
  font-size: 16px;
}

.ecckp-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, .9), transparent 27%),
    linear-gradient(155deg, #f6f1ea, #e9dfd4);
}

.ecckp-toolbar {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 28px);
  padding: 6px;
  border: 1px solid rgba(99, 74, 61, .16);
  border-radius: 14px;
  background: rgba(255, 253, 249, .89);
  box-shadow: 0 10px 35px rgba(45, 27, 18, .11);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.ecckp-toolbar-group {
  display: flex;
  gap: 4px;
  padding-inline-end: 6px;
  border-inline-end: 1px solid var(--ecckp-line);
}

.ecckp-toolbar-group:last-child {
  padding-inline-end: 0;
  border: 0;
}

.ecckp-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5d4b42;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ecckp-tool-label {
  line-height: 1;
}

.ecckp-tool:hover,
.ecckp-tool.is-active {
  background: #2b1710;
  color: #fff;
}

.ecckp-tool:disabled,
.ecckp-tool.is-disabled,
.ecckp-tool[aria-disabled="true"] {
  opacity: .35;
  cursor: not-allowed;
}

.ecckp-viewport {
  position: relative;
  width: 100%;
  height: 664px;
  touch-action: none;
}

.ecckp-canvas-3d,
.ecckp-canvas-2d {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  outline: 0;
}

.ecckp-canvas-3d:active,
.ecckp-canvas-2d:active {
  cursor: grabbing;
}

.ecckp-canvas-3d.is-move-mode {
  cursor: crosshair;
}

.ecckp-canvas-3d.is-moving-unit,
.ecckp-canvas-3d.is-moving-unit:active {
  cursor: move;
}

.ecckp-canvas-3d.is-invalid-drop {
  box-shadow: inset 0 0 0 3px var(--ecckp-danger);
}

.ecckp-canvas-2d[hidden],
.ecckp-canvas-3d[hidden] {
  display: none;
}

.ecckp-stage-hint {
  position: absolute;
  z-index: 3;
  bottom: 15px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(97, 76, 65, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #6f6159;
  font-size: 10px;
  line-height: 1.55;
  max-width: calc(100% - 24px);
  pointer-events: none;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.ecckp-loading {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(245, 240, 233, .86);
  transition: opacity .35s ease, visibility .35s ease;
}

.ecckp-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.ecckp-loader-card {
  display: grid;
  gap: 12px;
  place-items: center;
  color: #5f4f47;
  font-size: 11px;
}

.ecckp-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #dbc9bb;
  border-top-color: var(--ecckp-copper);
  border-radius: 50%;
  animation: ecckp-spin .8s linear infinite;
}

@keyframes ecckp-spin { to { transform: rotate(360deg); } }

.ecckp-summary-card {
  padding: 20px;
  border-bottom: 1px solid var(--ecckp-line);
}

.ecckp-summary-card h3 {
  margin: 0 0 13px;
  font-size: 14px;
}

.ecckp-metric-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.ecckp-metric {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #ddd1c7;
  font-size: 11px;
}

.ecckp-metric dt {
  color: #796b63;
}

.ecckp-metric dd {
  margin: 0;
  font-weight: 700;
  text-align: end;
}

.ecckp-selected-empty {
  padding: 15px;
  border: 1px dashed #cfc1b6;
  border-radius: 12px;
  color: #82736b;
  font-size: 10px;
  text-align: center;
}

.ecckp-dimension-editor {
  margin-top: 13px;
  padding: 12px;
  border: 1px solid var(--ecckp-line);
  border-radius: 12px;
  background: #fbf8f4;
}

.ecckp-dimension-editor h4 {
  margin: 0 0 9px;
  color: var(--ecckp-ink);
  font-size: 10px;
}

.ecckp-dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.ecckp-dimension-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ecckp-dimension-field > span {
  color: #796b63;
  font-size: 8px;
  font-weight: 700;
}

.ecckp-dimension-input {
  position: relative;
}

.ecckp-dimension-input input {
  width: 100%;
  height: 36px;
  padding: 0 25px 0 8px;
  border: 1px solid var(--ecckp-line);
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ecckp-ink);
  font-size: 10px;
  font-weight: 700;
}

[dir="rtl"] .ecckp-dimension-input input {
  padding: 0 8px 0 25px;
}

.ecckp-dimension-input input:focus {
  border-color: var(--ecckp-copper);
  box-shadow: 0 0 0 3px rgba(168, 90, 37, .11);
}

.ecckp-dimension-input b {
  position: absolute;
  top: 50%;
  inset-inline-end: 7px;
  color: #96877f;
  font-size: 7px;
  transform: translateY(-50%);
}

.ecckp-dimension-editor p {
  margin: 8px 0 0;
  color: #82736b;
  font-size: 8px;
  line-height: 1.55;
}

.ecckp-shell[data-theme="dark"] .ecckp-dimension-editor {
  background: #2b1e18;
}

.ecckp-property-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.ecckp-mini-button {
  min-height: 34px;
  border: 1px solid var(--ecckp-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ecckp-ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.ecckp-mini-button:hover {
  border-color: var(--ecckp-copper);
  color: var(--ecckp-copper);
}

.ecckp-mini-button.is-active {
  border-color: var(--ecckp-copper);
  background: var(--ecckp-copper);
  color: #fff;
}

.ecckp-tooltip {
  position: fixed;
  z-index: 2147483000;
  top: 0;
  left: 0;
  width: max-content;
  max-width: min(270px, calc(100vw - 16px));
  padding: 9px 12px;
  border: 1px solid rgba(226, 176, 131, .34);
  border-radius: 10px;
  background: linear-gradient(135deg, #2d1811, #1b0f0b);
  box-shadow: 0 12px 32px rgba(36, 20, 13, .28);
  color: #fff;
  font-family: "Alexandria", "Inter", "Noto Sans Arabic", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  text-align: start;
  transform: translateY(4px) scale(.98);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  visibility: hidden;
}

.ecckp-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.ecckp-mini-button--danger:hover {
  border-color: var(--ecckp-danger);
  color: var(--ecckp-danger);
}

.ecckp-estimate {
  padding: 16px;
  border-radius: 14px;
  background: #25130d;
  color: #fff;
}

.ecckp-estimate small {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .58);
}

.ecckp-estimate strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
}

.ecckp-estimate em {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .55);
  font-size: 9px;
  font-style: normal;
}

.ecckp-primary,
.ecckp-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.ecckp-primary {
  border: 1px solid var(--ecckp-copper);
  background: var(--ecckp-copper);
  color: #fff !important;
}

.ecckp-primary:hover {
  background: var(--ecckp-copper-dark);
  box-shadow: 0 10px 26px rgba(168, 90, 37, .24);
  transform: translateY(-1px);
}

.ecckp-secondary {
  border: 1px solid var(--ecckp-line);
  background: #fff;
  color: var(--ecckp-ink) !important;
}

.ecckp-secondary:hover {
  border-color: var(--ecckp-copper);
  color: var(--ecckp-copper) !important;
}

.ecckp-cta-stack {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ecckp-button-label {
  display: block;
  color: inherit;
  font: inherit;
  line-height: 1.45;
  text-align: center;
}

.ecckp-material-open {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--ecckp-line);
  border-radius: 11px;
  background: #fff;
  color: var(--ecckp-ink);
  cursor: pointer;
  text-align: start;
}

.ecckp-material-open img {
  width: 50px;
  height: 50px;
  border-radius: 7px;
  object-fit: cover;
}

.ecckp-material-open strong,
.ecckp-material-open small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecckp-material-open strong { font-size: 10px; }
.ecckp-material-open small { color: #84736b; font-size: 9px; }

.ecckp-drawer-backdrop,
.ecckp-modal-backdrop {
  position: fixed;
  z-index: 99995;
  inset: 0;
  background: rgba(21, 12, 8, .66);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  backdrop-filter: blur(6px);
}

.ecckp-drawer-backdrop.is-open,
.ecckp-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.ecckp-material-drawer {
  position: fixed;
  z-index: 99996;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(480px, 94vw);
  height: 100%;
  background: var(--ecckp-paper);
  box-shadow: -20px 0 80px rgba(23, 13, 9, .23);
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.2, .75, .25, 1);
  overscroll-behavior: contain;
}

[dir="rtl"] .ecckp-material-drawer {
  right: auto;
  left: 0;
  box-shadow: 20px 0 80px rgba(23, 13, 9, .23);
  transform: translateX(-105%);
}

.ecckp-material-drawer.is-open {
  transform: translateX(0);
}

.ecckp-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px;
  border-bottom: 1px solid var(--ecckp-line);
}

.ecckp-drawer-head h2 {
  margin: 0;
  font-size: 18px;
}

.ecckp-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--ecckp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ecckp-ink);
  cursor: pointer;
  font-size: 18px;
}

.ecckp-material-controls {
  display: grid;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--ecckp-line);
}

.ecckp-search {
  height: 43px;
  padding: 0 13px;
}

.ecckp-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.ecckp-chip {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--ecckp-line);
  border-radius: 999px;
  background: #fff;
  color: #62544c;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.ecckp-chip.is-active {
  border-color: #29170f;
  background: #29170f;
  color: #fff;
}

.ecckp-material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding: 16px 22px 28px;
  overscroll-behavior: contain;
}

.ecckp-print-portal {
  display: none;
}

.ecckp-material-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--ecckp-line);
  border-radius: 13px;
  background: #fff;
  color: var(--ecckp-ink);
  cursor: pointer;
  text-align: start;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ecckp-material-card:hover,
.ecckp-material-card.is-active {
  border-color: var(--ecckp-copper);
  box-shadow: 0 12px 30px rgba(62, 40, 28, .12);
  transform: translateY(-2px);
}

.ecckp-material-card img {
  display: block;
  width: 100%;
  height: clamp(110px, 28vw, 156px);
  aspect-ratio: 1.35;
  background: #e7e0d8;
  object-fit: cover;
}

.ecckp-material-card span {
  display: block;
  padding: 9px 10px 10px;
}

.ecckp-material-card strong,
.ecckp-material-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecckp-material-card strong { font-size: 10px; }
.ecckp-material-card small { color: #85766d; font-size: 8px; }

.ecckp-modal {
  position: fixed;
  z-index: 99996;
  top: 50%;
  left: 50%;
  width: min(620px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  overflow-y: auto;
  border-radius: 20px;
  background: var(--ecckp-paper);
  box-shadow: 0 35px 110px rgba(15, 8, 5, .38);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -47%) scale(.98);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.ecckp-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.ecckp-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--ecckp-line);
}

.ecckp-modal-head h2 {
  margin: 0 0 5px;
  font-size: 21px;
  line-height: 1.35;
}

.ecckp-modal-head p {
  margin: 0;
  color: #75665e;
  font-size: 11px;
}

.ecckp-quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 24px 26px;
}

.ecckp-quote-form label {
  display: grid;
  gap: 5px;
  color: #5b4b43;
  font-size: 10px;
  font-weight: 700;
}

.ecckp-quote-form input {
  height: 44px;
  padding: 0 12px;
}

.ecckp-quote-form textarea {
  min-height: 95px;
  padding: 10px 12px;
  resize: vertical;
}

.ecckp-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

.ecckp-form-status {
  display: none;
  grid-column: 1 / -1;
  padding: 12px;
  border-radius: 10px;
  font-size: 10px;
}

.ecckp-form-status.is-visible { display: block; }
.ecckp-form-status.is-error { background: #fdeaea; color: var(--ecckp-danger); }
.ecckp-form-status.is-success { background: #e7f5ee; color: var(--ecckp-success); }

.ecckp-quote-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 5px;
}

.ecckp-quote-actions [hidden] {
  display: none !important;
}

.ecckp-toast {
  position: fixed;
  z-index: 100000;
  bottom: 22px;
  left: 50%;
  max-width: min(420px, calc(100vw - 30px));
  padding: 11px 15px;
  border-radius: 10px;
  background: #25130d;
  box-shadow: 0 12px 35px rgba(17, 9, 6, .25);
  color: #fff;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: opacity .22s ease, transform .22s ease;
}

.ecckp-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ecckp-shell[data-theme="dark"] {
  --ecckp-ink: #f5eee9;
  --ecckp-ink-soft: #cdbfb7;
  --ecckp-paper: #211713;
  --ecckp-cream: #30231d;
  --ecckp-line: #46372f;
  color-scheme: dark;
}

.ecckp-shell[data-theme="dark"] .ecckp-sidebar,
.ecckp-shell[data-theme="dark"] .ecckp-summary,
.ecckp-shell[data-theme="dark"] .ecckp-panel-section,
.ecckp-shell[data-theme="dark"] .ecckp-layout-card,
.ecckp-shell[data-theme="dark"] .ecckp-unit-card,
.ecckp-shell[data-theme="dark"] .ecckp-material-open,
.ecckp-shell[data-theme="dark"] .ecckp-secondary,
.ecckp-shell[data-theme="dark"] .ecckp-mini-button,
.ecckp-shell[data-theme="dark"] .ecckp-material-drawer,
.ecckp-shell[data-theme="dark"] .ecckp-modal,
.ecckp-shell[data-theme="dark"] .ecckp-material-card,
.ecckp-shell[data-theme="dark"] .ecckp-chip,
.ecckp-shell[data-theme="dark"] input,
.ecckp-shell[data-theme="dark"] textarea {
  background: #211713;
  color: var(--ecckp-ink);
}

@media (max-width: 1180px) {
  .ecckp-body { grid-template-columns: 270px minmax(380px, 1fr); }
  .ecckp-summary {
    position: absolute;
    z-index: 6;
    top: 96px;
    right: 0;
    width: 260px;
    height: 664px;
    box-shadow: -18px 0 55px rgba(42, 24, 16, .15);
    transform: translateX(101%);
    transition: transform .25s ease;
  }
  [dir="rtl"] .ecckp-summary { right: auto; left: 0; transform: translateX(-101%); }
  .ecckp-summary.is-open { transform: translateX(0); }
}

@media (max-width: 820px) {
  .ecckp-shell { min-height: 740px; border-radius: 18px; }
  .ecckp-topbar { min-height: 84px; padding: 16px 18px; }
  .ecckp-project-status { display: none; }
  .ecckp-body { display: block; min-height: 656px; }
  .ecckp-sidebar {
    position: absolute;
    z-index: 7;
    top: 84px;
    left: 0;
    width: min(320px, 90vw);
    height: 656px;
    box-shadow: 18px 0 55px rgba(42, 24, 16, .18);
    transform: translateX(-101%);
    transition: transform .25s ease;
  }
  [dir="rtl"] .ecckp-sidebar { left: auto; right: 0; transform: translateX(101%); }
  .ecckp-sidebar.is-open { transform: translateX(0); }
  .ecckp-summary { top: 84px; height: 656px; }
  .ecckp-panel-scroll { height: 656px; }
  .ecckp-viewport { height: 656px; }
  .ecckp-toolbar { top: 12px; width: auto; }
  .ecckp-toolbar .ecckp-tool-label { display: none; }
  .ecckp-tool { min-width: 34px; padding: 0 8px; }
  .ecckp-stage-hint { bottom: 68px; }
}

@media (max-width: 520px) {
  .ecckp-shell { min-height: 700px; border-radius: 0; }
  .ecckp-topbar { min-height: 76px; }
  .ecckp-mark { flex-basis: 40px; width: 40px; height: 40px; }
  .ecckp-title { font-size: 16px; }
  .ecckp-subtitle { display: none; }
  .ecckp-sidebar,
  .ecckp-summary { top: 76px; height: 624px; }
  .ecckp-panel-scroll,
  .ecckp-viewport { height: 624px; }
  .ecckp-toolbar { max-width: calc(100% - 16px); overflow-x: auto; }
  .ecckp-material-grid { grid-template-columns: 1fr 1fr; padding-inline: 14px; }
  .ecckp-drawer-head,
  .ecckp-material-controls { padding-inline: 15px; }
  .ecckp-quote-form { grid-template-columns: 1fr; padding: 18px; }
  .ecckp-quote-form label,
  .ecckp-quote-form .ecckp-field--full,
  .ecckp-form-status,
  .ecckp-quote-actions { grid-column: 1; }
  .ecckp-quote-actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .ecckp-root *,
  .ecckp-root *::before,
  .ecckp-root *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@page {
  size: A4 landscape;
  margin: 8mm;
}

@media print {
  html,
  body.ecckp-printing {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  body.ecckp-printing > *:not(.ecckp-print-portal) {
    display: none !important;
  }

  body.ecckp-printing > .ecckp-print-portal {
    display: grid !important;
  }

  .ecckp-print-portal {
    box-sizing: border-box;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 190mm;
    overflow: hidden;
    border: .35mm solid #d8cabf;
    border-radius: 5mm;
    background: #fffdf9;
    color: #1d130f;
    font-family: "Alexandria", "Noto Sans Arabic", Arial, sans-serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    page-break-inside: avoid;
  }

  .ecckp-print-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8mm;
    min-height: 25mm;
    padding: 4.5mm 7mm;
    color: #fff;
    background: linear-gradient(110deg, #1c100c, #351b11);
  }

  .ecckp-print-brand {
    display: flex;
    align-items: center;
    gap: 4mm;
  }

  .ecckp-print-brand > span {
    display: grid;
    width: 15mm;
    height: 15mm;
    place-items: center;
    border: .35mm solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    color: #e6b083;
    font-size: 10pt;
    font-weight: 800;
  }

  .ecckp-print-brand strong,
  .ecckp-print-brand small,
  .ecckp-print-date strong,
  .ecckp-print-date small {
    display: block;
  }

  .ecckp-print-brand strong { font-size: 12pt; }
  .ecckp-print-brand small,
  .ecckp-print-date small { color: rgba(255, 255, 255, .65); font-size: 7.5pt; }
  .ecckp-print-date { text-align: end; }
  .ecckp-print-date strong { font-size: 8.5pt; }

  .ecckp-print-main {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(72mm, .8fr);
    gap: 6mm;
    min-height: 0;
    padding: 6mm 7mm;
  }

  .ecckp-print-visual {
    display: grid;
    min-width: 0;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    border: .3mm solid #ded4ca;
    border-radius: 4mm;
    background: #f5f0e9;
  }

  .ecckp-print-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .ecckp-print-details {
    min-width: 0;
    padding: 2mm 0;
  }

  .ecckp-print-details h1 {
    margin: 0 0 5mm;
    color: #1d130f;
    font-size: 18pt;
    line-height: 1.3;
  }

  .ecckp-print-details dl { margin: 0; }
  .ecckp-print-details dl > div {
    display: grid;
    grid-template-columns: 29mm minmax(0, 1fr);
    gap: 3mm;
    padding: 3.2mm 0;
    border-bottom: .25mm solid #ded4ca;
  }

  .ecckp-print-details dt { color: #7b6b63; font-size: 8pt; }
  .ecckp-print-details dd { margin: 0; font-size: 8.5pt; font-weight: 700; overflow-wrap: anywhere; }

  .ecckp-print-finish {
    display: flex;
    align-items: center;
    gap: 3mm;
    margin-top: 5mm;
    padding: 3mm;
    border: .3mm solid #ded4ca;
    border-radius: 3mm;
  }

  .ecckp-print-finish img { width: 17mm; height: 17mm; border-radius: 2mm; object-fit: cover; }
  .ecckp-print-finish small,
  .ecckp-print-finish strong { display: block; }
  .ecckp-print-finish small { color: #7b6b63; font-size: 7pt; }
  .ecckp-print-finish strong { font-size: 8.5pt; }

  .ecckp-print-portal footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8mm;
    min-height: 17mm;
    padding: 3.5mm 7mm;
    border-top: .3mm solid #ded4ca;
  }

  .ecckp-print-portal footer p { max-width: 210mm; margin: 0; color: #6f5f56; font-size: 7.5pt; line-height: 1.55; }
  .ecckp-print-portal footer strong { color: #a85a25; font-size: 8pt; white-space: nowrap; }
}

