/* =========================================================================
   Everything Bot — shared design system
   A "master index" aesthetic: near-black ink, brass tab accents, mono data.
   ========================================================================= */

:root {
  --bg: #0a0a0c;
  --surface: #131316;
  --surface-2: #19191d;
  --surface-3: #202024;
  --border: #26262b;
  --border-soft: #1c1c20;

  --text: #f1f1f3;
  --text-muted: #96969e;
  --text-faint: #5a5a62;

  --brass: #e0353d;
  --brass-strong: #f2555c;
  --brass-dim: #7a2226;
  --brass-wash: rgba(224, 53, 61, 0.1);

  --teal: #6b8cae;
  --teal-wash: rgba(107, 140, 174, 0.12);

  --green: #3dd68c;
  --green-wash: rgba(61, 214, 140, 0.1);

  --red: #e0353d;
  --red-wash: rgba(224, 53, 61, 0.1);

  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(224, 53, 61, 0.045), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(107, 140, 174, 0.04), transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- scrollbar theming ---------- */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) var(--bg);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 6px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brass-dim);
}

/* ---------- brand mark (used in sidebar + centered cards) ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--brass-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--brass);
  background: var(--brass-wash);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  line-height: 1.1;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- app shell: sidebar + main ---------- */

.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 246px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
}

.sidebar-brand {
  padding: 4px 6px 22px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 18px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.nav-item .nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  width: 18px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.is-active {
  color: var(--brass-strong);
  border-left-color: var(--brass);
  background: var(--brass-wash);
}

.nav-item.is-active .nav-index {
  color: var(--brass);
}

.nav-subgroup {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 10px 22px;
  padding-left: 12px;
  border-left: 1px solid var(--border-soft);
}

.nav-subgroup-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 6px 10px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-subitem {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
}

.nav-subitem:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-subitem.is-active {
  color: var(--brass-strong);
  background: var(--brass-wash);
}

/* ---------- nav groups (collapsible categories inside a server's subnav) ---------- */

.nav-group {
  margin-bottom: 6px;
}

.nav-group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  user-select: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.nav-group[open] > summary {
  background: var(--surface-2);
  border-color: var(--border-soft);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.nav-group summary .nav-group-chevron {
  font-size: 19px;
  line-height: 1;
  transition: transform 0.15s ease;
  flex-shrink: 0;
  color: var(--text-faint);
}

.nav-group[open] summary .nav-group-chevron {
  transform: rotate(90deg);
  color: var(--brass);
}

.nav-group.has-active summary {
  color: var(--brass);
  border-color: var(--brass-dim);
}

.nav-group-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px;
  border: 1px solid var(--border-soft);
  border-top: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  background: var(--surface);
}

.nav-subitem.is-soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-faint);
  cursor: default;
  pointer-events: none;
}

.nav-soon-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 7px;
  flex-shrink: 0;
}

/* ---------- coming-soon page stub ---------- */

.coming-soon-card {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
}

.coming-soon-card .status-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 18px;
}

.coming-soon-card h2 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 10px;
}

.coming-soon-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto;
}

.sidebar-user {
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user .user-info {
  min-width: 0;
  flex: 1;
}

.sidebar-user .user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user .logout-link {
  font-size: 11.5px;
  color: var(--text-faint);
  text-decoration: none;
}

.sidebar-user .logout-link:hover {
  color: var(--red);
}

.main {
  flex: 1;
  min-width: 0;
  padding: 44px 40px 60px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- page header ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 10px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-mono);
}

.back-link:hover {
  color: var(--brass);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brass);
  color: #17140c;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.08s ease;
}

.btn:hover {
  background: var(--brass-strong);
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 12.5px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-danger {
  background: var(--red);
  color: #1a0a0a;
}

.btn-danger:hover {
  background: var(--brass-strong);
}

/* ---------- centered card (login / not authorized / status pages) ---------- */

.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.index-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px 36px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.index-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 32px;
  width: 46px;
  height: 6px;
  background: var(--brass);
  border-radius: 0 0 3px 3px;
}

.index-card .status-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.index-card .server-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 2px solid var(--brass);
}

.index-card .eyebrow {
  margin-bottom: 6px;
}

.index-card h1 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}

.index-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 26px;
}

.secondary-link {
  display: block;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-faint);
  text-decoration: none;
  font-family: var(--font-mono);
}

.secondary-link:hover {
  color: var(--text);
}

.stage-footer {
  margin-top: 26px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- server grid (dashboard) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.server-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: border-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.server-card:hover {
  border-color: var(--brass-dim);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.server-icon-frame {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--border);
}

.server-icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-icon-frame .fallback {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--brass);
}

.server-name {
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 8px;
  word-break: break-word;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.status-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.status-tag.is-owner .dot {
  background: var(--brass);
}

.status-tag.is-owner {
  color: var(--brass);
}

/* ---------- settings sections ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 28px;
  margin-top: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.panel-head {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.entry-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brass);
  flex-shrink: 0;
}

.panel-head h2 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.panel-head .panel-desc {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.field-row {
  margin-bottom: 18px;
}

.field-row:last-child {
  margin-bottom: 0;
}

.field-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 7px;
}

.field-row select,
.field-row textarea,
.field-row input[type="number"],
.field-row input[type="text"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: var(--font-body);
  transition: border-color 0.12s ease;
}

.field-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238e93a0' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 9px 6px;
  padding-right: 30px;
  cursor: pointer;
}

.field-row select:hover {
  border-color: var(--brass-dim);
}

<<<<<<< HEAD
.field-row input[type="file"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 8px 10px;
  font-size: 12.5px;
  font-family: var(--font-body);
}

.field-row input[type="file"]::file-selector-button {
  background: var(--surface-3);
  color: var(--text);
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  margin-right: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
}

.note-edit-panel {
  display: none;
  margin-top: -4px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}

.note-edit-panel.is-open {
  display: block;
}

=======
>>>>>>> bde19e0f851c753addcbbfc862f313b57e4f0dba
.field-row select:focus,
.field-row textarea:focus,
.field-row input:focus {
  outline: none;
  border-color: var(--brass-dim);
}

.field-row textarea {
  resize: vertical;
  min-height: 64px;
  font-family: var(--font-body);
}

.form-hint {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 7px;
  line-height: 1.5;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  cursor: pointer;
}

.checkbox-row input {
  accent-color: var(--brass);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-row-label {
  font-size: 13.5px;
  font-weight: 500;
}

.toggle-row-desc {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 2px;
  font-family: var(--font-mono);
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 21px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 22px;
  transition: 0.15s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 15px;
  width: 15px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: 0.15s;
}

.switch input:checked + .slider {
  background: var(--brass-wash);
  border-color: var(--brass-dim);
}

.switch input:checked + .slider::before {
  transform: translateX(17px);
  background: var(--brass);
}

.save-bar {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.banner {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.banner-success {
  background: var(--green-wash);
  border: 1px solid rgba(61, 214, 140, 0.35);
  color: var(--green);
}

.banner-error {
  background: var(--red-wash);
  border: 1px solid rgba(224, 53, 61, 0.35);
  color: var(--red);
}

/* ---------- ledger table (admin user list) ---------- */

.ledger {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.ledger th,
.ledger td {
  text-align: left;
  padding: 13px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-soft);
}

.ledger th {
  font-family: var(--font-mono);
  color: var(--text-faint);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  font-weight: 500;
  background: var(--surface-2);
}

.ledger td.mono {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 12.5px;
}

.mono {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 12.5px;
}

.ledger tr:last-child td {
  border-bottom: none;
}

.ledger tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.012);
}

.ledger tr:hover td {
  background: var(--surface-2);
}

.ledger td a {
  color: var(--teal);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
}

.ledger td a:hover {
  text-decoration: underline;
}

/* ---------- user detail ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.field-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.field-card .field-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brass);
  margin-bottom: 6px;
}

.field-card .field-value {
  font-size: 13.5px;
  word-break: break-word;
}

.field-card .field-value a {
  color: var(--teal);
  text-decoration: none;
}

.field-card .field-value a:hover {
  text-decoration: underline;
}

.assets {
  display: flex;
  gap: 14px;
  margin: 22px 0;
  flex-wrap: wrap;
}

.asset-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.asset-card img {
  border-radius: var(--radius-sm);
  max-width: 200px;
  display: block;
  margin-bottom: 10px;
}

.asset-card .avatar-preview {
  border-radius: 50%;
  width: 92px;
  height: 92px;
  object-fit: cover;
  margin: 0 auto 10px;
}

.avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  vertical-align: middle;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-round {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brass-wash);
  color: var(--brass);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  border: 1px solid var(--brass-dim);
}

.avatar-preview.avatar-fallback {
  font-size: 28px;
}

.name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 220px;
}

.name-cell-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty {
  color: var(--text-faint);
  padding: 48px 20px;
  text-align: center;
  font-size: 13.5px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.empty::before {
  content: "§";
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--brass-dim);
  margin-bottom: 10px;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  padding: 2px 9px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- search input ---------- */

.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 12px 14px;
  font-size: 13.5px;
  font-family: var(--font-body);
  margin-bottom: 14px;
}

.search-input:focus {
  outline: none;
  border-color: var(--brass-dim);
}

.search-input::placeholder {
  color: var(--text-faint);
}

/* ---------- settings quick-nav ---------- */

.quick-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.quick-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  background: var(--surface);
}

.quick-nav a:hover {
  border-color: var(--brass-dim);
  color: var(--text);
}

.quick-nav .nav-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--brass);
}

.field-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field-grid-2 .field-row {
  margin-bottom: 0;
}

.panel .field-grid-2 + .field-row {
  margin-top: 18px;
}

.save-bar-sticky {
  position: sticky;
  bottom: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ---------- ban-trap chip selector ---------- */

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip-list-empty {
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brass-wash);
  border: 1px solid var(--brass-dim);
  color: var(--brass-strong);
  border-radius: 20px;
  padding: 6px 8px 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
}

.chip-remove {
  background: none;
  border: none;
  color: var(--brass-strong);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
  opacity: 0.7;
}

.chip-remove:hover {
  opacity: 1;
}

/* ---------- ticket panel config ---------- */

.ticket-type-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.ticket-type-info {
  min-width: 0;
}

.ticket-type-label {
  font-weight: 600;
  font-size: 13.5px;
  margin-right: 10px;
}

.ticket-type-style {
  color: var(--text-faint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ticket-type-questions {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ---------- landing page ---------- */

.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.landing-topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.landing-topbar-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
}

.landing-topbar-links a:hover {
  color: var(--text);
}

.brand-mark-solo {
  width: 30px;
  height: 30px;
  border: 1px solid var(--brass-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--brass);
  background: var(--brass-wash);
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 22px;
}

.hero-brand .accent {
  color: var(--brass);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px 70px;
  text-align: center;
}

.hero .eyebrow {
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  color: var(--text);
}

.hero h1 .accent {
  color: var(--brass);
}

.hero .hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 34px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}

.index-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 100px;
}

.index-section-head {
  text-align: center;
  margin-bottom: 40px;
}

.index-section-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 8px 0 0;
}

.feature-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.feature-entry {
  padding: 26px 24px;
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.15s ease;
}

.feature-entry:hover {
  background: var(--surface-2);
}

.feature-entry:hover .entry-number {
  color: var(--brass-strong);
}

.feature-entry .entry-number {
  display: block;
  margin-bottom: 10px;
}

.feature-entry h3 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

.feature-entry p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 10px;
}

.feature-entry .cmd-list {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.7;
}

.landing-footer {
  border-top: 1px solid var(--border-soft);
  padding: 28px 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
    gap: 16px;
  }

  .sidebar-brand {
    padding: 0;
    border: none;
    margin: 0;
  }

  .sidebar-nav {
    flex-direction: row;
  }

  .sidebar-user {
    border: none;
    padding: 0;
    margin: 0;
  }

  .sidebar-user .user-name {
    display: none;
  }

  .main {
    padding: 28px 18px 40px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }

  .feature-entry {
    border-right: none;
  }
}
