/* VouchCord product UI. The real wordmark is the only brand mark. */
:root {
  --bg: #10131c;
  --bg-secondary: #151a25;
  --panel: #191e2a;
  --input-bg: #121722;
  --panel-hover: #242b3a;
  --border: #2b3242;
  --border-strong: #3b455b;
  --border-input: #364056;
  --text: #c6cee0;
  --text-bright: #edf0f7;
  --text-muted: #9aa7be;
  --accent: #925cff;
  --accent-hover: #a374ff;
  --accent-light: #bd9cff;
  --accent-dim: #302344;
  --gradient-accent: linear-gradient(135deg, #8f53f0, #7951d6);
  --font-display: var(--font-body);
  color-scheme: dark;
}

body { font-size: 13px; }
.workspace-brand { height: 94px; padding: 12px 19px; }
.workspace-logo { width: 198px; height: auto; display: block; object-fit: contain; }
.brand-mark, .brand-workspace { display: none; }
.sidebar-server { margin-top: 0; }
.sidebar-server-info .server-name { font-size: 12px; }
.sidebar-server-info .change-link { font-size: 11px; }
.nav-group-label { text-transform: none; letter-spacing: .2px; font-size: 11px; color: #7f8aa5; }
.nav-item { font-size: 12px; padding: 10px 12px; }
.nav-item.active { background: #302641; color: #d6c1ff; }
.nav-item.active::before { background: #a976ff; }
.nav-item svg { opacity: .8; }
.sidebar-user-label { font-size: 11px; }
.workspace-breadcrumb { font-size: 12px; }
.dash-topbar-sub { font-size: 11px; }
.workspace-search { font-size: 11px; min-width: 225px; }
.workspace-help { font-size: 11px; }
.workspace-page-heading h2 { font-size: 28px; margin-top: 0; }
.workspace-page-heading p { font-size: 13px; }
.workspace-status { font-size: 11px; }
.workspace-status .muted { font-size: 10px; }
.range-control button { font-size: 11px; }
.workspace-heading-actions .btn { font-size: 12px; }
.stat-card .stat-label { font-size: 12px; }
.stat-card .stat-value { font-size: 30px; }
.metric-caption { font-size: 10px; line-height: 1.5; }
.card-heading h3 { font-size: 14px; }
.card-heading p { font-size: 11px; }
.chart-legend, .workspace-text-button { font-size: 11px; }
.activity-summary > div { font-size: 11px; }
.activity-summary small { font-size: 10px; }
.rating-bar-label { font-size: 11px; }
.rating-bar-count { font-size: 10px; min-width: 76px; }
.rating-donut span { font-size: 10px; }
.workspace-table th { font-size: 10px; }
.workspace-table td, .workspace-table td strong { font-size: 12px; }
.workspace-table td p { font-size: 10px; }
.workspace-table code, .workspace-table .table-rating { font-size: 11px; }
.table-date small { font-size: 9px; }
.product-detail > div:first-child { font-size: 12px; }
.product-detail span, .product-rank { font-size: 10px; }
.chart-footnote, .chart-data { font-size: 10px; }
.workspace-health .kpi-label { font-size: 11px; }
.workspace-section-heading h3 { font-size: 14px; }
.workspace-section-heading > span { font-size: 10px; }
.overview-dl { font-size: 12px; }
.feature-chip { font-size: 10px; }
.workspace-meta { font-size: 10px; line-height: 1.7; }
.workspace-footer { font-size: 10px; }

/* Every tab has the same page-level hierarchy and action location. */
.studio-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  grid-column: 1 / -1;
}
.studio-page-header h2 { color: var(--text-bright); font-size: 28px; font-weight: 700; letter-spacing: -.9px; margin: 0 0 9px; }
.studio-page-header p { color: var(--text-muted); font-size: 13px; line-height: 1.6; max-width: 72ch; }
.studio-page-actions { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.studio-page-actions [role="status"] { font-size: 11px; max-width: 220px; }
.studio-page-actions .btn { font-size: 12px; min-height: 40px; padding: 10px 18px; }
.studio-page-actions:empty { display: none; }
.panel-card { padding: 25px; border-radius: 12px; box-shadow: none; }
.panel-card-title { font-size: 16px; font-weight: 650; letter-spacing: -.4px; margin-bottom: 10px; }
.panel-card-desc { font-size: 13px; max-width: 80ch; line-height: 1.75; margin-bottom: 21px; }
.panel-card > h4 { font-size: 13px; }
[data-panel="settings"] > .panel-head { display: none; }
[data-panel="supportGuild"] > .panel-head .panel-head-row { display: none; }
[data-panel="supportGuild"] > .panel-head .panel-head-desc { font-size: 12px; }
.settings-intro-card { border: 0; background: transparent; padding: 0; margin: 0; }
.settings-intro-card .settings-intro-head { display: none; }
.settings-intro-lead { display: none; }
.settings-intro-note { font-size: 12px; padding-bottom: 14px; }
.subtabs { display: flex; width: fit-content; max-width: 100%; gap: 5px; padding: 4px; margin-bottom: 24px; border: 1px solid var(--border); background: #141925; border-radius: 8px; overflow-x: auto; }
.subtab { font-size: 12px; font-weight: 500; padding: 9px 16px; white-space: nowrap; border-radius: 5px; color: var(--text-muted); }
.subtab.active { color: #e5d8ff; background: #332641; box-shadow: none; }
.subtab:hover:not(.active) { background: #202637; color: #e3e8f4; }
.studio-save-note { padding: 0 3px; color: var(--text-muted); font-size: 12px; }
.studio-save-note .form-hint { margin-top: 0 !important; max-width: 80ch; }

/* Fields are calm, readable and consistently sized across all settings pages. */
.dash-input, .dash-select, .dash-textarea, .field-control, .field-input {
  background-color: #121722;
  border-color: #364056;
  color: #d5dced;
  font-size: 13px;
  border-radius: 7px;
  min-height: 42px;
}
.dash-input:focus, .dash-select:focus, .dash-textarea:focus { border-color: #a278e7; box-shadow: 0 0 0 3px #925cff15; }
.dash-input::placeholder, .dash-textarea::placeholder { color: #78869e; opacity: 1; }
.dash-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa7be' stroke-width='1.8'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.form-label { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: #b4bfd4; }
.form-group { gap: 8px; min-width: 0; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.form-label, .form-hint { overflow-wrap: anywhere; }
.form-hint { font-size: 11px; line-height: 1.7; color: #8f9eb8; max-width: 72ch; }
.check-row, .dash-check { font-size: 13px; line-height: 1.6; }
input[type="checkbox"], input[type="radio"] { accent-color: #9865ed; }
.btn { min-height: 38px; font-size: 12px; font-weight: 600; border-radius: 7px; }
.btn-sm { min-height: 33px; font-size: 11px; padding: 6px 13px; }
.btn-ghost { color: #b8c2d8; }
.btn-ghost:hover { background: #252d3d; }
.btn-danger { background: #a64257; color: #fff; }
.btn-danger:hover { background: #c45168; }
.toolbar-row { gap: 12px; }
.inline-code { color: #c1a4ee; background: #2b223d; padding: 3px 7px; font-size: 11px; }
.settings-feature-card { padding: 20px; background: #141a26; border-color: #2f384b; border-radius: 9px; }
.settings-feature-desc, .settings-tool-hint { font-size: 12px; line-height: 1.7; }
.settings-feature-head { font-size: 13px; font-weight: 600; }
.settings-counter-tool { padding: 15px; }
.settings-tool-label { text-transform: none; letter-spacing: 0; font-size: 11px; }
.settings-key-display { font-size: 12px; padding: 12px; }
.settings-grid { gap: 16px 24px; }
.setup-grid { grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr); gap: 24px; align-items: start; }
.setup-guide { background: #151b27; }
.setup-steps { gap: 22px; }
.setup-steps li { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.setup-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.setup-steps strong { font-size: 13px; }
.setup-steps p { font-size: 12px; line-height: 1.7; }
.setup-required-note { font-size: 12px; line-height: 1.7; margin-top: 22px; padding: 14px; border-radius: 7px; background: #30291d; border: 1px solid #51432a; }
.setup-required-note strong { color: #ddbd81; }
.embed-top-grid { gap: 24px; align-items: start; }
.embed-preview-card { margin-top: 18px; }
.layout-field-list { border-color: var(--border); border-radius: 9px; overflow: hidden; }
.layout-field-row { background: #161c28; border-color: #30394c; padding: 13px 15px; }
.layout-options { gap: 17px; margin-top: 22px; }

/* Catalog and moderation: distinct toolbars above quiet data surfaces. */
.products-panel { gap: 20px; }
.products-panel-head { align-items: center; gap: 24px; }
.products-panel-head .panel-card-desc { margin-bottom: 0; }
.products-groups-toggle { font-size: 12px; background: #202536; border: 1px solid var(--border); border-radius: 7px; }
.products-stats { font-size: 12px; color: #ad9ad8; }
.products-add-row { padding: 17px; border-radius: 9px; background: #131925; border: 1px solid var(--border); }
.products-add-row .dash-input { flex: 1; }
.products-add-row .btn { min-height: 42px; }
.products-table-wrap { max-height: 560px; border: 1px solid var(--border); }
.products-table th { background: #141925; color: #8e9bb5; text-transform: none; font-size: 11px; letter-spacing: 0; padding: 14px 18px; }
.products-table td { font-size: 13px; padding: 16px 18px; border-color: #2a3143; }
.products-table .btn { color: #a2acc3; }
.products-table .btn:hover { color: #f29bb0; background: #35212d; }
.product-group-card { background: #171d2a; border: 1px solid var(--border); box-shadow: none; }
.dash-item-list li { padding: 16px; background: #171d2a; border-color: var(--border); }
.dash-item-empty { font-size: 13px; padding: 30px 20px; text-align: center; }
.vouch-grid { gap: 18px; }
.vouch-card { background: #191e2a; border: 1px solid #2e3749; padding: 21px; border-radius: 10px; gap: 15px; box-shadow: none; }
.vouch-card-product { font-size: 13px; color: #c1a0ff; }
.vouch-card-comment { font-size: 13px; line-height: 1.85; color: #b1bdd3; }
.vouch-card-meta { padding-top: 15px; border-top: 1px solid #2b3344; font-size: 11px; line-height: 1.7; }
.vouch-card-actions { border-top: 1px solid #2b3344; padding-top: 15px; margin-top: auto; }
.vouch-card-head { font-size: 12px; }
.vouch-card-stars { color: #d7b775; }
.pagination-bar { padding: 18px 0; font-size: 12px; }
.profile-search-row { padding-top: 3px; }
.profile-search-row .dash-input { max-width: 430px; }
.profile-empty-card { padding: 54px 24px; text-align: center; background: #151a26; border-style: dashed; }
.profile-stat-grid { gap: 16px; }
.profile-stat-grid .stat-value { font-size: 24px; }
.profile-server-table th, .profile-server-table td { padding: 15px; font-size: 12px; }
.profile-recent-list { gap: 12px; }

/* Public identity and rewards keep content fields separate from presentation. */
[data-panel="publicPage"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
[data-panel="publicPage"] > .panel-card { min-width: 0; }
[data-panel="publicPage"] .studio-page-header { margin-bottom: 28px; }
.pp-link-row { gap: 8px; }
.dash-file { width: 100%; min-width: 0; max-width: 100%; font-size: 12px; color: #8e9cb7; padding: 10px 0; }
.dash-file::file-selector-button { background: #252b3b; border: 1px solid #3b445a; border-radius: 6px; color: #c6d0e4; padding: 8px 12px; margin-right: 12px; cursor: pointer; }
[data-panel="coupons"] .panel-card-desc { max-width: 80ch; }
[data-panel="coupons"] .form-grid { max-width: 920px; }
[data-panel="coupons"] table { border-color: var(--border); }
[data-panel="coupons"] th { font-size: 11px; text-transform: none; }
[data-panel="coupons"] td { font-size: 12px; }
.backup-split { gap: 24px; align-items: stretch; }
.backup-split .panel-card { display: flex; flex-direction: column; }
.backup-split .panel-card > .btn { align-self: flex-start; margin-top: auto; }
.backup-result { max-width: 100%; overflow: auto; background: #111622; border-color: var(--border); font-size: 12px; }
.backup-recent-card { background: #151b27; border: 1px solid #30394c; border-radius: 9px; }
.backup-help-tight { font-size: 12px; padding: 14px 16px; background: #141a26; border-radius: 7px; }
.renumber-sep { border-color: var(--border); }
.ba-guild-card, .ba-guild-row { background: #191e2a; border-color: var(--border); }
.ba-filter-popover { background: #191e2a; border-color: #3b455b; box-shadow: 0 20px 60px #0006; }

/* Support is a task-oriented destination rather than a wall of instructions. */
.studio-support-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr); align-items: start; gap: 24px; }
.studio-support-main { padding: 34px; }
.studio-support-mark { width: 50px; height: 50px; display: grid; place-items: center; color: #bc94ff; background: #302443; border-radius: 13px; margin-bottom: 24px; }
.studio-support-mark svg { width: 27px; height: 27px; }
.studio-support-main > h3 { font-size: 24px; margin-bottom: 14px; }
.studio-support-main > p { font-size: 13px; line-height: 1.85; max-width: 58ch; color: #9eacc4; margin-bottom: 24px; }
.studio-support-main > .btn { padding: 11px 20px; }
.studio-support-steps { margin-top: 30px; border-top: 1px solid var(--border); }
.studio-support-steps > div { padding: 20px 0 0; }
.studio-support-steps strong { font-size: 13px; font-weight: 600; color: #d5dced; }
.studio-support-steps p { font-size: 12px; line-height: 1.7; color: #92a0ba; margin-top: 6px; }
.studio-resource-list h3 { font-size: 16px; margin-bottom: 9px; }
.studio-resource-list > p { font-size: 12px; color: #91a0b9; margin-bottom: 22px; }
.studio-resource-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0; border-top: 1px solid var(--border); }
.studio-resource-list strong { display: block; font-size: 13px; font-weight: 600; color: #c6d0e5; }
.studio-resource-list small { display: block; font-size: 11px; color: #8f9db7; line-height: 1.6; margin-top: 5px; }
.studio-resource-list a > span:last-child { color: #b193e6; }
.studio-resource-list a:hover strong { color: #cfb2ff; }
.selection-logo { display: block; width: 250px; height: auto; margin: 0 auto 35px; }
.login-logo-img { width: 260px; max-width: 100%; height: auto; filter: none; margin-bottom: 22px; }
.login-card { border-color: #30394c; border-radius: 16px; box-shadow: 0 24px 90px #0004; }
.login-subtitle { font-size: 14px; }
.server-select-header h2 { font-size: 25px; letter-spacing: -.7px; }
.server-card { border-radius: 11px; border-color: #30394c; }
.server-card-name { font-size: 13px; }
.server-select-footer { font-size: 12px; }
.workspace-command { border-color: #3a4357; }
.command-input-row input { font-size: 14px; }
.command-results button { font-size: 13px; }
.dash-modal-panel { border: 1px solid #3b445b; border-radius: 12px; box-shadow: 0 30px 100px #0008; }
.dash-modal-title { font-size: 18px; }
.dash-modal-hint { font-size: 12px; }
.dash-modal-footer { border-color: var(--border); }

@media (max-width: 1100px) {
  .studio-support-grid, .setup-grid { grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr); }
  [data-panel="publicPage"] { grid-template-columns: 1fr; }
  .settings-feature-grid-3 { grid-template-columns: 1fr; }
  .workspace-metrics { gap: 12px; }
  .metric-caption { font-size: 10px; }
}
@media (max-width: 820px) {
  .studio-support-grid, .setup-grid { grid-template-columns: 1fr; }
  .studio-page-header { align-items: flex-start; gap: 18px; }
  .studio-page-header h2 { font-size: 25px; }
  .studio-page-header p { font-size: 12px; }
  .panel-card { padding: 22px; }
}
@media (max-width: 600px) {
  .dash-topbar { height: 74px; min-height: 74px; gap: 12px; }
  .dash-topbar-titles { flex: 1; min-width: 0; }
  .dash-topbar-sub { display: none !important; }
  .workspace-breadcrumb { white-space: nowrap; gap: 8px; }
  .workspace-breadcrumb > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .workspace-search { min-width: 0; width: 34px; height: 34px; padding: 8px; justify-content: center; }
  .studio-page-header { flex-direction: column; margin-bottom: 23px; }
  .studio-page-actions { width: 100%; }
  .studio-page-actions .btn { width: 100%; }
  .studio-support-main { padding: 24px; }
  .panel-card { padding: 20px; }
  .subtabs { width: 100%; }
  .subtab { flex: 1; padding: 9px 11px; font-size: 11px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .products-panel-head { flex-direction: column; align-items: stretch; }
  .products-groups-toggle { justify-content: flex-start; }
  .products-add-row { flex-direction: column; align-items: stretch; }
  .products-add-row .dash-input { width: 100%; }
  .products-table th, .products-table td { padding: 14px 12px; }
  .products-table .btn { white-space: nowrap; }
  .profile-search-row .dash-input { max-width: none; width: 100%; flex-basis: 100%; }
  .workspace-breadcrumb { font-size: 11px; }
  .dash-topbar-sub { font-size: 10px; }
  .workspace-page-heading h2 { font-size: 25px; }
  .workspace-page-heading p { font-size: 12px; }
  .stat-card .stat-label { font-size: 11px; }
  .metric-caption { font-size: 9px; }
  .stat-card .stat-value { font-size: 26px; }
  .workspace-status { max-width: 145px; font-size: 10px; }
  .workspace-status .muted { font-size: 9px; }
  .range-control button { padding: 6px 8px; font-size: 10px; }
  .rating-bar-count { min-width: 66px; font-size: 9px; }
  .card-heading p { font-size: 10px; }
  .workspace-table-wrap { margin-left: -20px; margin-right: -20px; }
  .studio-resource-list a { padding: 17px 0; }
}
