
:root { color-scheme: dark; }
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#0b0b0d;
  color:#f5f5f5;
}
a{ color:#c7a44a; text-decoration:none; }
a:hover{ text-decoration:underline; }
.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; gap:16px; align-items:center; justify-content:space-between;
  padding:14px 18px;
  background:rgba(0,0,0,0.8);
  border-bottom:1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.topbar-left{ display:flex; gap:14px; align-items:baseline; }
.topbar h1{ margin:0; font-size:18px; font-weight:700; }
.backlink{ font-size:14px; opacity:0.9; }
.container{ max-width:1100px; margin:18px auto; padding:0 14px 40px; }
.card{
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
  padding:16px;
  margin-bottom:14px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}
h2{ margin:0 0 10px; font-size:16px; }
.muted{ opacity:0.75; font-size:13px; }
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
@media (max-width: 860px){ .grid-2{ grid-template-columns:1fr; } }
label{ display:flex; flex-direction:column; gap:6px; font-size:13px; }
input, textarea, select{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.35);
  color:#fff;
  outline:none;
}

/* Make color pickers actually show the selected color (do not style them like text inputs). */
input[type="color"]{
  padding:0;
  height:40px;
  background: transparent;
  border-radius:12px;
  cursor:pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper{ padding:0; border-radius:12px; }
input[type="color"]::-webkit-color-swatch{ border:none; border-radius:12px; }
input[type="color"]::-moz-color-swatch{ border:none; border-radius:12px; }
textarea{ resize:vertical; }
button{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color:#fff;
  cursor:pointer;
}
button:hover{ background: rgba(0,0,0,0.5); }
button.primary{
  background: rgba(199,164,74,0.25);
  border-color: rgba(199,164,74,0.6);
}
button.primary:hover{ background: rgba(199,164,74,0.35); }

.row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; flex-wrap:wrap; }
.inline{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.status{ margin-top:10px; font-size:13px; }
.status.ok{ color:#9be39b; }
.status.err{ color:#ff9b9b; }
.tabs{
  display:flex; gap:8px; flex-wrap:wrap;
  margin: 8px 0 12px;
}
.tab{
  padding:9px 10px;
  border-radius:999px;
  font-size:13px;
}
.tab.active{
  border-color: rgba(199,164,74,0.8);
  background: rgba(199,164,74,0.18);
}
.hidden{ display:none; }
.tablewrap{ overflow:auto; border-radius:14px; border:1px solid rgba(255,255,255,0.10); }
.table{
  width:100%;
  border-collapse:collapse;
  min-width:720px;
}
.table th, .table td{
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  vertical-align:top;
  font-size:13px;
}
.table th{ text-align:left; opacity:0.85; background: rgba(255,255,255,0.03); }
.table td:last-child, .table th:last-child{ width:1%; white-space:nowrap; }
.small{ width:110px; }


.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.fieldset {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.7);
}

.fieldset h3 {
  margin-top: 0;
}

.range-val {
  display: inline-block;
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  margin-left: 8px;
}



/* Design previews */
.design-preview{margin-top:12px;padding:12px;border-radius:14px;border:1px solid rgba(255,255,255,0.15);}
.design-preview .dp-title{font-weight:800;margin-bottom:6px;}
.design-preview .dp-text{opacity:0.95;}
