/* Control Center skins: gold (default), black, white, navy, red */

.theme-cc {
  --bg: #0a0906;
  --bg-2: #100e09;
  --panel: #14120d;
  --panel-2: #1c1912;
  --soft: #262218;
  --line: rgba(212, 175, 55, 0.14);
  --line-strong: rgba(212, 175, 55, 0.26);
  --text: #f4ecd6;
  --text-2: #cbb892;
  --muted: #8a7d5f;
  --accent: #d4af37;
  --accent-soft: rgba(212, 175, 55, 0.14);
  --accent-text: #e8c96a;
  --glow-soft: rgba(212, 175, 55, 0.10);
  --glow-text: #e8c96a;
  --cc-btn: linear-gradient(160deg, #e4c35c, #c49a2a);
  --cc-btn-text: #1a1406;
}

html[data-cc-skin="black"] .theme-cc {
  --bg: #000000;
  --bg-2: #050505;
  --panel: #0c0c0c;
  --panel-2: #141414;
  --soft: #1a1a1a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f2f2;
  --text-2: #b3b3b3;
  --muted: #7a7a7a;
  --accent: #d6d6d6;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --accent-text: #ececec;
  --glow-soft: rgba(255, 255, 255, 0.06);
  --glow-text: #f0f0f0;
  --cc-btn: #e8e8e8;
  --cc-btn-text: #111;
}

html[data-cc-skin="white"] .theme-cc {
  --bg: #f3f3f4;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f7f7f8;
  --soft: #ececee;
  --line: rgba(15, 15, 18, 0.10);
  --line-strong: rgba(15, 15, 18, 0.18);
  --text: #141416;
  --text-2: #3d3d42;
  --muted: #6d6d75;
  --accent: #171717;
  --accent-soft: rgba(15, 15, 18, 0.06);
  --accent-text: #171717;
  --glow-soft: rgba(15, 15, 18, 0.05);
  --glow-text: #171717;
  --cc-btn: #171717;
  --cc-btn-text: #fff;
}

html[data-cc-skin="navy"] .theme-cc {
  --bg: #070b12;
  --bg-2: #0a1220;
  --panel: #101826;
  --panel-2: #152033;
  --soft: #1a283c;
  --line: rgba(148, 163, 184, 0.12);
  --line-strong: rgba(148, 163, 184, 0.22);
  --text: #e8eef7;
  --text-2: #b6c3d6;
  --muted: #7f90a8;
  --accent: #6ea0ff;
  --accent-soft: rgba(110, 160, 255, 0.14);
  --accent-text: #9bbbff;
  --glow-soft: rgba(110, 160, 255, 0.10);
  --glow-text: #9bbbff;
  --cc-btn: linear-gradient(160deg, #6ea0ff, #3b6fd4);
  --cc-btn-text: #071226;
}

html[data-cc-skin="red"] .theme-cc {
  --bg: #0c0506;
  --bg-2: #140809;
  --panel: #1a0c0e;
  --panel-2: #241114;
  --soft: #2c1619;
  --line: rgba(244, 63, 94, 0.16);
  --line-strong: rgba(244, 63, 94, 0.28);
  --text: #fde8eb;
  --text-2: #e7b4bb;
  --muted: #a87880;
  --accent: #e11d48;
  --accent-soft: rgba(225, 29, 72, 0.16);
  --accent-text: #fb7185;
  --glow-soft: rgba(225, 29, 72, 0.12);
  --glow-text: #fb7185;
  --cc-btn: linear-gradient(160deg, #f43f5e, #be123c);
  --cc-btn-text: #fff5f6;
}

.theme-cc.app-body,
.theme-cc.auth-body,
.theme-cc.auth-body--solo {
  background: var(--bg);
}

.theme-cc .sidebar {
  background: var(--bg-2);
  border-right-color: var(--line);
}

.theme-cc .sidebar-brand .auth-mark,
.theme-cc .auth-mark,
.theme-cc .user-avatar {
  background: var(--cc-btn);
  color: var(--cc-btn-text);
  box-shadow: none;
}

.theme-cc .sidebar-nav a.active {
  background: var(--accent-soft);
  color: var(--accent-text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.theme-cc .btn-primary {
  background: var(--cc-btn);
  color: var(--cc-btn-text);
  box-shadow: none;
}

.theme-cc .btn-primary:hover { filter: brightness(1.06); }

.theme-cc .field input,
.theme-cc .field select,
.theme-cc .field textarea {
  background: var(--bg-2);
  border-color: var(--line);
  color: var(--text);
}

.theme-cc .field input:focus,
.theme-cc .field select:focus,
.theme-cc .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.theme-cc .field-toggle {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background: var(--panel-2);
  margin-bottom: 12px;
  cursor: pointer;
}
.theme-cc .field-toggle input {
  width: auto !important;
  margin-top: 3px;
  accent-color: var(--accent);
}
.theme-cc .field-toggle span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-weight: 600;
}
.theme-cc .field-toggle span em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
}
.theme-cc .field-toggle small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}
.theme-cc .field-toggle:has(input:checked) {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.theme-cc .auth-hero,
.theme-cc .auth-panel {
  background: var(--bg);
  border-color: var(--line);
}

.theme-cc .auth-hero::after {
  border-color: var(--line);
  box-shadow: none;
}

.theme-cc .ui-kicker,
.theme-cc .ui-step b,
.theme-cc .cc-guide-card b,
.theme-cc .cc-modal-steps b,
.theme-cc .panel-kicker {
  color: var(--accent-text);
}

/* Skin picker */
.cc-skin {
  position: relative;
  z-index: 40;
}
.cc-skin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.cc-skin-btn svg { width: 16px; height: 16px; opacity: 0.9; }
.cc-skin-btn:hover { border-color: var(--line-strong); }
.cc-skin-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.cc-skin.is-open .cc-skin-menu { display: grid; gap: 4px; }
.cc-skin-label {
  margin: 2px 8px 6px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.cc-skin-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.cc-skin-menu button:hover,
.cc-skin-menu button.is-on {
  background: var(--accent-soft);
}
.cc-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}
.cc-dot--gold { background: linear-gradient(160deg, #e4c35c, #c49a2a); }
.cc-dot--black { background: #111; box-shadow: inset 0 0 0 1px #555; }
.cc-dot--white { background: #fff; box-shadow: inset 0 0 0 1px #bbb; }
.cc-dot--navy { background: #152033; box-shadow: inset 0 0 0 1px #6ea0ff; }
.cc-dot--red { background: #e11d48; }

.cc-skin--login {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
}

.ui-page { display: flex; flex-direction: column; gap: 16px; }
.ui-page .panel { margin-bottom: 0; }
.ui-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.ui-kicker {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.ui-head h1 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
  font-weight: 750;
}
.ui-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 62ch;
}
.ui-head-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ui-stat {
  min-width: 76px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}
.ui-stat em {
  display: block;
  font-style: normal;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--accent-text);
  line-height: 1;
}
.ui-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.ui-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ui-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text-2);
}
.ui-step b {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.cc-health {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cc-health-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.cc-health-card.is-ok { border-color: rgba(52, 211, 153, 0.28); }
.cc-health-card.is-warn { border-color: rgba(245, 158, 11, 0.28); }
.cc-health-card em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.cc-health-card strong { display: block; margin-top: 4px; font-size: 1rem; }

.cc-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.cc-guide--7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc-guide-card {
  padding: 16px 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  min-height: 128px;
}
.cc-guide-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  margin-bottom: 10px;
}
.cc-guide-card strong { display: block; font-size: 0.92rem; margin-bottom: 6px; }
.cc-guide-card p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }

.oto-baked-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.oto-baked {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--line);
}
.oto-baked--muted {
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-color: var(--line);
}

.cc-modal-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.cc-modal-steps li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.8rem;
  color: var(--text-2);
}
.cc-modal-steps b {
  font-family: var(--mono);
  font-size: 0.7rem;
}

@media (max-width: 1100px) {
  .cc-guide, .cc-guide--7 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .ui-head { flex-direction: column; }
  .ui-head-side { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .cc-skin-btn span { display: none; }
}
@media (max-width: 720px) {
  .cc-health, .cc-guide, .cc-guide--7, .cc-modal-steps { grid-template-columns: 1fr; }
}

/* Professional lists / tables */
.theme-cc .ui-toolbar,
.ui-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ui-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ui-search-form { margin: 0; }
.ui-search {
  min-width: 220px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
}
.theme-cc table.data th,
.theme-cc table.data td {
  vertical-align: middle;
  padding: 13px 14px;
}
.theme-cc table.data tbody tr:last-child td { border-bottom: 0; }
.cc-id {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
}
.cc-host { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cc-host strong { font-size: 0.92rem; letter-spacing: -0.02em; }
.cc-host a, .ui-meta, .ui-url {
  font-size: 0.74rem;
  color: var(--muted);
  word-break: break-all;
}
.cc-host a:hover, .ui-url:hover { color: var(--accent-text); }
.cc-prog {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.cc-bar {
  width: 64px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
html[data-cc-skin="white"] .cc-bar { background: rgba(0,0,0,0.08); }
.cc-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.cc-act {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.cc-act form { margin: 0; }
.cc-act .btn {
  padding: 6px 10px;
  font-size: 0.74rem;
  border-radius: 9px;
  white-space: nowrap;
}
.cc-act .btn-quiet {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.cc-act .btn-quiet:hover { color: var(--text); }
.cc-files {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cc-files a {
  color: var(--accent-text);
  padding: 3px 7px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.cc-files a:hover { border-color: var(--line-strong); }

.theme-cc .mod-status,
.cc-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.cc-file-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cc-file-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.cc-file-card em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.cc-file-card strong {
  display: block;
  font-family: var(--mono);
  font-size: 1rem;
  margin-bottom: 12px;
}
.cc-file-card .cc-act { justify-content: flex-start; }
.cc-preview {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}
.cc-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.cc-preview-bar strong { font-size: 0.82rem; }
.cc-iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  background: #fff;
}
.cc-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
}
.cc-tabs a {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 700;
}
.cc-tabs a.is-on {
  background: var(--cc-btn);
  color: var(--cc-btn-text);
  border-color: transparent;
}

.cc-site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}
.cc-site-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}
.cc-site-card .cc-host strong { font-size: 1rem; }
.cc-site-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.75rem;
  color: var(--muted);
}
.cc-empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
}
.cc-empty strong { display: block; color: var(--text); margin-bottom: 6px; }

@media (max-width: 980px) {
  .theme-cc .mod-status,
  .cc-meta,
  .cc-file-grid,
  .cc-site-grid { grid-template-columns: 1fr; }
  .cc-act { flex-wrap: wrap; }
}

.cb-page .mod-status-item span { color: var(--text-2); }
.cb-page .mod-status-item strong,
.cb-page .cb-table td,
.cb-page .cb-table th,
.cb-page .cc-host strong { color: var(--text); }
.cb-page .cb-table .muted,
.cb-page .cc-host a { color: var(--text-2); }

.cc-plain tbody td { vertical-align: middle; padding: 16px 14px; }
.cc-plain .cc-host strong { font-size: 0.98rem; letter-spacing: -0.02em; }
.cc-plain .cc-host a { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--muted); }
.cc-plain .cc-act { justify-content: flex-end; }
