.client-list {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
}

.row {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) minmax(90px, 0.8fr) minmax(220px, 1.5fr) 0.45fr auto auto;
  align-items: center;
  gap: 12px;
  min-width: 980px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.row:last-child { border-bottom: 0; }
.row-head { min-height: 40px; color: var(--muted); font-size: 12px; font-weight: 600; }
.row:not(.row-head):hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.shop-id { min-width: 0; }
.shop-name { display: flex; align-items: center; gap: 8px; }

.shop-name { font-weight: 650; }
.shop-meta, .muted { color: var(--muted); font-size: 13px; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}

.pill.ok { color: var(--green); background: rgba(61, 220, 151, 0.12); }
.pill.off { color: #ffb3c2; background: rgba(255, 107, 138, 0.12); }
.status-on { color: var(--green); font-weight: 600; }
.status-off { color: #ffb3c2; font-weight: 600; }

.actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: nowrap; }

.site-links { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.site-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
}
.site-link b { flex: none; font-size: 11px; font-weight: 650; color: var(--purple-light); }
.site-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-link:hover span { text-decoration: underline; }

.empty {
  padding: 28px 0 10px;
  color: var(--muted);
}

.form { display: grid; gap: 12px; margin-top: 8px; }

.field { display: grid; gap: 6px; }
.field span { color: var(--muted); font-size: 13px; }
.field input:not([type="file"]):not([type="color"]) {
  height: 44px;
  padding: 0 12px;
}
.field input:focus { border-color: var(--purple); }
.field input[type="file"] {
  height: auto;
  padding: 8px 0;
}
.hint { color: var(--faint); font-size: 12px; }
.logo-preview {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #120c1c;
  border: 1px solid var(--line);
}
.logo-preview[hidden] { display: none; }
.color-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.color-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tone { display: grid; gap: 14px; }
.admin-color-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #120c1c;
  color: var(--text);
}
.tone-chips { display: flex; gap: 6px; }
.tone-chips i { width: 16px; height: 16px; border-radius: 5px; }
.theme-editor { display: grid; grid-template-columns: 280px 1fr; gap: 18px; min-height: 520px; }
.theme-controls { display: flex; flex-direction: column; gap: 10px; max-height: min(74vh, 700px); }
.theme-list { overflow: auto; display: grid; align-content: start; gap: 8px; padding-right: 6px; }
.theme-group { margin-top: 8px; color: var(--faint); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.theme-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.theme-hex { color: var(--faint); font-size: 12px; }
.theme-row input[type="color"] {
  width: 36px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}
.phone-frame {
  display: grid;
  align-content: start;
  gap: 10px;
  width: min(360px, 100%);
  min-height: 520px;
  margin: 0 auto;
  padding: 16px 14px 18px;
  border: 1px solid var(--ph-line, #24302a);
  border-radius: 28px;
  background:
    radial-gradient(120% 90px at 50% -12px, color-mix(in srgb, var(--ph-glow, #e11d48) 72%, transparent), transparent 70%),
    var(--ph-bg, #070a08);
  color: var(--ph-text, #f4f7f5);
}
.ph-top, .ph-card, .ph-tabs { display: flex; align-items: center; }
.ph-top { justify-content: space-between; font-size: 13px; }
.ph-top span { color: var(--ph-muted, #8d9a91); font-size: 11px; }
.ph-avatar { width: 28px; height: 28px; border: 1px solid var(--ph-line, #24302a); border-radius: 50%; background: var(--ph-card, #141a16); }
.ph-card, .ph-sheet, .ph-modal {
  border: 1px solid var(--ph-line, #24302a);
  border-radius: 16px;
}
.ph-card { gap: 10px; padding: 14px; background: var(--ph-card, #141a16); }
.ph-mark { width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--ph-accent, #22c55e) 18%, transparent); }
.ph-sheet { display: grid; gap: 4px; padding: 12px 14px; background: var(--ph-sheet, #171c19); }
.ph-muted { color: var(--ph-muted, #8d9a91); font-size: 12px; }
.ph-modal { display: grid; gap: 8px; padding: 12px; background: var(--ph-modal, #161d19); }
.ph-input, .ph-btn { display: flex; align-items: center; height: 36px; border-radius: 10px; }
.ph-input { padding: 0 10px; background: var(--ph-input, #0c100e); color: var(--ph-muted, #8d9a91); font-size: 12px; }
.ph-btn { justify-content: center; background: var(--ph-accent, #22c55e); color: var(--ph-on, #05210f); font-size: 13px; font-weight: 700; }
.ph-tabs { justify-content: space-between; margin-top: auto; padding: 8px; border: 1px solid var(--ph-line, #24302a); border-radius: 16px; background: var(--ph-tab, #0d110f); color: var(--ph-muted, #8d9a91); font-size: 12px; }
.ph-tabs .is-on { color: var(--ph-accent, #22c55e); }
.phone-login {
  display: grid;
  align-content: center;
  width: min(360px, 100%);
  min-height: 520px;
  margin: 0 auto;
  padding: 24px 16px;
  border-radius: 28px;
  background: var(--ph-login-bg, #070a08);
  color: var(--ph-login-text, #f4f7f5);
}
.phone-frame[hidden], .phone-login[hidden] { display: none; }
.ph-login-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: var(--ph-login-card, #141a16);
}
.ph-login-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--ph-login-button, #22c55e); }
.ph-login-card strong { font-size: 22px; }
.ph-login-card > span,
.ph-login-label { color: var(--ph-login-muted, #8d9a91); font-size: 12px; }
.ph-login-field {
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--ph-login-input, #0c100e);
  color: var(--ph-login-input-text, #f4f7f5);
  font-size: 12px;
  line-height: 34px;
}
.ph-login-go {
  display: grid;
  place-items: center;
  height: 36px;
  border-radius: 10px;
  background: var(--ph-login-button, #22c55e);
  color: var(--ph-login-button-text, #05210f);
  font-size: 13px;
  font-weight: 700;
}
.preview-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.preview-tabs button {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}
.preview-tabs button.is-on { background: #8000f8; border-color: transparent; color: #fff; }
.desk-frame[hidden], .login-frame[hidden] { display: none; }
.desk-frame {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 520px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--p-line, #2a332d);
  background: var(--p-main, #070a08);
  color: var(--p-text, #f4f7f5);
}
.desk-side { padding: 16px 12px; background: var(--p-side, #0d110f); }
.desk-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; }
.desk-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--p-accent, #22c55e); }
.desk-kicker { display: block; margin: 8px 8px 6px; color: var(--p-muted, #8d9a91); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.desk-nav { height: 32px; padding: 0 8px; border-radius: 8px; color: var(--p-muted, #8d9a91); font-size: 13px; line-height: 32px; }
.desk-nav.is-on { color: var(--p-accent, #22c55e); background: color-mix(in srgb, var(--p-accent, #22c55e) 18%, transparent); }
.desk-main { padding: 18px; }
.desk-main h3 { margin: 0; font-size: 22px; }
.desk-muted { margin: 4px 0 0; color: var(--p-muted, #8d9a91); font-size: 12px; }
.desk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.desk-search, .desk-input, .desk-btn, .desk-modal { display: inline-flex; align-items: center; }
.desk-search {
  height: 28px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid var(--p-line, #2a332d);
  border-radius: 999px;
  background: var(--p-search, #101512);
  color: var(--p-muted, #8d9a91);
  font-size: 12px;
}
.desk-card { background: var(--p-container, #141a16); border: 1px solid var(--p-line, #2a332d); }
.desk-tools, .desk-modal { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.desk-modal {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--p-line, #2a332d);
  background: var(--p-modal, #161d19);
}
.desk-modal strong { margin-right: 4px; font-size: 13px; }
.desk-input, .desk-btn { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
.desk-input { background: var(--p-input, #0c100e); color: var(--p-input-text, #f4f7f5); border: 1px solid var(--p-line, #2a332d); }
.desk-btn { background: var(--p-button, #22c55e); color: var(--p-button-text, #05210f); font-weight: 700; }
.desk-card { display: grid; gap: 8px; padding: 12px; border-radius: 12px; }
.desk-card strong { font-size: 22px; }
.desk-spark { width: 64px; height: 4px; border-radius: 999px; background: var(--p-accent, #22c55e); }
.desk-list {
  display: grid;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--p-line, #2a332d);
  border-radius: 12px;
}
.desk-list div {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  background: var(--p-table, #1b221d);
  font-size: 12px;
}
.desk-list div + div { border-top: 1px solid var(--p-line, #2a332d); }
.desk-list .is-head, .desk-list span { color: var(--p-muted, #8d9a91); }
.login-frame {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 520px;
  overflow: hidden;
  border-radius: 16px;
  color: var(--l-text, #f4f7f5);
  background:
    radial-gradient(420px 180px at 18% 78%, color-mix(in srgb, var(--l-button, #22c55e) 28%, transparent), transparent 70%),
    var(--l-bg, #070a08);
}
.login-copy { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 28px; }
.login-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--l-button, #22c55e); }
.login-copy strong { font-size: 28px; letter-spacing: -0.04em; }
.login-copy span, .login-label { color: var(--l-muted, #8d9a91); font-size: 13px; }
.login-copy span { max-width: 220px; }
.login-card {
  align-self: center;
  width: min(230px, 86%);
  margin: 20px;
  padding: 16px;
  display: grid;
  gap: 8px;
  border-radius: 16px;
  background: var(--l-card, #161d19);
}
.login-field {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--l-input, #0c100e);
  color: var(--l-input-text, #f4f7f5);
  font-size: 12px;
  line-height: 32px;
}
.login-go {
  height: 34px;
  border-radius: 10px;
  background: var(--l-button, #22c55e);
  color: var(--l-button-text, #05210f);
  font-size: 13px;
  font-weight: 700;
  line-height: 34px;
  text-align: center;
}
@media (max-width: 900px) {
  .theme-editor, .desk-frame, .login-frame { grid-template-columns: 1fr; }
}
.tone-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tone-card {
  display: grid;
  gap: 10px;
  min-height: 108px;
  padding: 12px;
  border-radius: 14px;
  background: #120c1c;
  border: 1px solid var(--line);
}
.tone-kicker { color: var(--faint); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.tone-bar { display: block; height: 8px; border-radius: 999px; }
.tone-pill {
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.tone-admin { background: #101512; }
.tone-desk { display: flex; align-items: center; gap: 8px; }
.tone-mark { width: 28px; height: 28px; border-radius: 8px; }
.tone-active { display: inline-block; padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.tone-line { display: block; width: 72px; height: 4px; margin-top: 8px; border-radius: 999px; }
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 0;
}
.swatch.is-on { border-color: #fff; }
.field input[type="color"] {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  height: 28px;
  flex: 0 0 36px;
  padding: 2px;
  border-radius: 8px;
  background: transparent;
}
.shop-id { display: flex; align-items: center; gap: 10px; }
.shop-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #120c1c;
}
.color-dot {
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  display: inline-block;
}

.form-actions, .account-line {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.account-line {
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.account-line strong { display: block; }
.badge {
  margin-left: 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
}

.form-error { min-height: 18px; color: var(--red); font-size: 13px; }
