/* The McClellan Group — design console UI (live overlay) */

#mcc-chip {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #0b1320;
  color: #f5f7f8;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.18s ease, background 0.18s ease;
}
#mcc-chip:hover { background: #1b2a44; transform: translateY(-1px); }
#mcc-chip[data-dirty="true"] { background: #b53b3b; }
#mcc-chip-dot,
.mcc-chip-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4a04c;
}
#mcc-chip[data-dirty="true"] .mcc-chip-dot { background: #ffd54f; }

.mcc-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 92vw;
  z-index: 99999;
  background: #0b1320;
  color: #e6ecf2;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.4);
}
body.mcc-panel-open .mcc-panel { transform: translateX(0); }

.mcc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mcc-panel-head strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.mcc-close {
  background: transparent;
  border: 0;
  color: rgba(230, 236, 242, 0.7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
}
.mcc-close:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.mcc-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.mcc-tab {
  flex: 1;
  background: transparent;
  border: 0;
  color: rgba(230, 236, 242, 0.55);
  padding: 12px 0;
  font: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mcc-tab:hover { color: rgba(230, 236, 242, 0.85); }
.mcc-tab[data-active="true"] {
  color: #fff;
  border-bottom-color: #d4a04c;
}

.mcc-tab-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 24px;
}
.mcc-help {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: rgba(230, 236, 242, 0.65);
  line-height: 1.5;
}
.mcc-group {
  margin-bottom: 22px;
}
.mcc-group h4 {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(230, 236, 242, 0.55);
}

.mcc-swatches {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.mcc-swatch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #e6ecf2;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.mcc-swatch:hover { background: rgba(255, 255, 255, 0.08); }
.mcc-swatch[data-active="true"] {
  border-color: #d4a04c;
  background: rgba(212, 160, 76, 0.08);
}
.mcc-swatch-dots {
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
}
.mcc-swatch-dots i {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.mcc-swatch-name {
  font-size: 13px;
}

.mcc-fonts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.mcc-font {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #e6ecf2;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.mcc-font:hover { background: rgba(255, 255, 255, 0.08); }
.mcc-font[data-active="true"] {
  border-color: #d4a04c;
  background: rgba(212, 160, 76, 0.08);
}
.mcc-font-sample {
  font-size: 18px;
  flex: 1;
}
.mcc-font-meta {
  font-size: 11px;
  color: rgba(230, 236, 242, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mcc-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mcc-choice {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 7px 14px;
  color: #e6ecf2;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
}
.mcc-choice:hover { background: rgba(255, 255, 255, 0.08); }
.mcc-choice[data-active="true"] {
  border-color: #d4a04c;
  background: rgba(212, 160, 76, 0.1);
  color: #fff;
}

.mcc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 13.5px;
}
.mcc-toggle:last-child { border-bottom: 0; }
.mcc-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #d4a04c;
}

.mcc-field {
  display: block;
  margin-bottom: 10px;
}
.mcc-field span {
  display: block;
  font-size: 11.5px;
  color: rgba(230, 236, 242, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.mcc-field input,
.mcc-field textarea {
  width: 100%;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #fff;
  font: inherit;
  font-size: 13px;
}
.mcc-field input:focus,
.mcc-field textarea:focus {
  outline: 2px solid #d4a04c;
  outline-offset: 1px;
  border-color: transparent;
}
.mcc-field textarea {
  resize: vertical;
  min-height: 64px;
  font-family: 'Inter', system-ui, sans-serif;
}

.mcc-save-actions {
  display: flex;
  gap: 8px;
  margin: 8px 0 14px;
}
.mcc-btn-primary {
  flex: 1;
  background: #d4a04c;
  color: #0b1320;
  border: 0;
  padding: 11px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.mcc-btn-primary:hover { background: #e6b260; }
.mcc-btn-primary:disabled { background: #6e6450; cursor: progress; }
.mcc-btn-secondary {
  background: transparent;
  color: #e6ecf2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 11px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}
.mcc-btn-secondary:hover { background: rgba(255, 255, 255, 0.06); }

.mcc-publish-status {
  font-size: 12.5px;
  color: rgba(230, 236, 242, 0.65);
  padding: 6px 0;
}
.mcc-publish-status[data-dirty="true"] {
  color: #ffd54f;
}

.mcc-panel-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  flex-shrink: 0;
}
.mcc-foot-toggle {
  border-bottom: 0;
  padding: 0;
  font-size: 12.5px;
  color: rgba(230, 236, 242, 0.7);
}

/* Editable outlines on the page itself */
body.mcc-edit-on [data-slot] {
  outline: 1.5px dashed rgba(125, 163, 179, 0.7);
  outline-offset: 3px;
  cursor: text;
  transition: outline 0.15s ease, background 0.15s ease;
}
body.mcc-edit-on [data-slot]:hover {
  outline-color: #d4a04c;
  background: rgba(255, 235, 180, 0.08);
}
body.mcc-edit-on [data-slot].mcc-editing {
  outline: 2px solid #d4a04c;
  background: rgba(255, 235, 180, 0.14);
}

/* Custom color picker rows */
.mcc-color-row {
  display: grid;
  grid-template-columns: 70px 44px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.mcc-color-row span {
  font-size: 12.5px;
  color: rgba(230, 236, 242, 0.85);
}
.mcc-color-row input[type="color"] {
  width: 44px;
  height: 32px;
  padding: 1px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
}
.mcc-color-row input[type="text"] {
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #fff;
  font: 13px 'JetBrains Mono', monospace;
}

/* Right-click popover */
#mcc-block-popover {
  position: fixed;
  z-index: 99999;
  width: 300px;
  max-width: calc(100vw - 24px);
  background: #0b1320;
  color: #e6ecf2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  overflow: hidden;
}
#mcc-block-popover .mcc-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#mcc-block-popover .mcc-pop-head strong {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#mcc-block-popover .mcc-pop-close {
  background: transparent;
  border: 0;
  color: rgba(230, 236, 242, 0.6);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  margin-left: 8px;
  border-radius: 3px;
}
#mcc-block-popover .mcc-pop-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
#mcc-block-popover .mcc-pop-body {
  padding: 12px;
}
#mcc-block-popover .mcc-color-row {
  margin-bottom: 6px;
}
#mcc-block-popover .mcc-pop-actions {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#mcc-block-popover .mcc-pop-actions button {
  text-align: left;
  width: 100%;
}
#mcc-block-popover .mcc-pop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}
#mcc-block-popover .mcc-pop-foot a {
  color: #d4a04c;
  text-decoration: none;
  font-size: 11.5px;
}
#mcc-block-popover .mcc-pop-foot a:hover { text-decoration: underline; }

/* Templates */
.mcc-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 22px 0 14px;
}
.mcc-templates-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(230, 236, 242, 0.55);
  margin: 0 0 6px;
}
.mcc-template-save {
  display: flex;
  gap: 6px;
  margin: 6px 0 14px;
}
.mcc-template-save input[type="text"] {
  flex: 1;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #fff;
  font: inherit;
  font-size: 13px;
}
.mcc-template-save input[type="text"]::placeholder {
  color: rgba(230, 236, 242, 0.4);
}
.mcc-template-save .mcc-btn-secondary { padding: 8px 12px; font-size: 12px; }
.mcc-template-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mcc-template-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}
.mcc-template-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mcc-template-meta strong {
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcc-template-date {
  font-size: 11px;
  color: rgba(230, 236, 242, 0.5);
  margin-top: 1px;
}
.mcc-template-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.mcc-btn-tiny {
  background: transparent;
  color: rgba(230, 236, 242, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 11.5px;
  cursor: pointer;
}
.mcc-btn-tiny:hover { background: rgba(255, 255, 255, 0.06); }
.mcc-btn-tiny-danger {
  color: #f6a4a4;
  border-color: rgba(246, 164, 164, 0.3);
}
.mcc-btn-tiny-danger:hover { background: rgba(255, 100, 100, 0.08); }
.mcc-template-empty {
  margin: 0;
  font-style: italic;
  color: rgba(230, 236, 242, 0.45);
}

/* Block color editor cards */
.mcc-block-edit {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.mcc-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mcc-block-head strong {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.mcc-block-reset {
  background: transparent;
  color: rgba(230, 236, 242, 0.6);
  border: 0;
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
}
.mcc-block-reset:hover { color: #fff; }
.mcc-block-row { margin-bottom: 6px; }
.mcc-block-row input[type="text"]::placeholder { color: rgba(230, 236, 242, 0.3); font-style: italic; }

/* Photo slots */
.mcc-photo-slot {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.mcc-photo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.mcc-photo-meta strong {
  font-size: 13px;
  font-weight: 600;
}
.mcc-photo-clear {
  background: transparent;
  color: rgba(230, 236, 242, 0.6);
  border: 0;
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 0;
}
.mcc-photo-clear:hover { color: #fff; }
.mcc-photo-preview {
  height: 80px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.mcc-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mcc-photo-empty {
  font-size: 11.5px;
  color: rgba(230, 236, 242, 0.4);
  font-style: italic;
}
.mcc-photo-upload {
  display: block;
  cursor: pointer;
}
.mcc-photo-upload input[type="file"] {
  width: 100%;
  font-size: 12px;
  color: rgba(230, 236, 242, 0.7);
}
.mcc-photo-upload span {
  display: none;
}
.mcc-photo-status {
  font-size: 11.5px;
  color: rgba(230, 236, 242, 0.7);
  margin-top: 4px;
  min-height: 1em;
}

@media (max-width: 480px) {
  .mcc-panel { width: 100vw; max-width: 100vw; }
  #mcc-chip { right: 12px; bottom: 12px; padding: 8px 14px 8px 12px; font-size: 12px; }
}
