/* Sua coleção — sala escura, gramática do design system: painéis nus,
   fio hairline, números em mono, holo só no CTA e na nav ativa. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
}

.co { max-width: 1160px; margin: 0 auto; padding: 34px 20px 60px; }
.co-load { color: var(--muted); font-size: 0.9rem; padding: 40px 0; }

.co-eyebrow {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.co h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------ gate */
.co-gate { max-width: 640px; padding: 30px 0 10px; }
.co-gate h1 { margin-top: 8px; }
.co-gate-sub { color: var(--muted); margin-top: 14px; line-height: 1.55; }
.co-gate-list { list-style: none; margin-top: 18px; border-top: 1px solid var(--hairline); }
.co-gate-list li {
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  font-size: 0.92rem;
}
.co-gate-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 2px;
  background: var(--holo-line);
}
.co-gate .co-cta { margin-top: 24px; }
.co-gate-note { color: var(--muted); font-size: 0.8rem; margin-top: 12px; }

/* ------------------------------------------------------------ head + stats */
.co-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.co-updated {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.co-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.co-stat {
  background: var(--panel);
  border: 1px solid var(--hairline);
  padding: 14px 16px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.co-stat-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.co-stat-value { font-family: var(--font-mono); font-weight: 600; font-size: 1.45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-stat-value.up { color: var(--up); }
.co-stat-value.down { color: var(--down); }
.co-stat-sub { color: var(--muted); font-size: 0.74rem; }

/* ------------------------------------------------------------ sections */
.co-sec { margin-top: 34px; }
.co-sec-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 10px;
}
.co-sec-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.co-count { color: var(--muted); font-family: var(--font-mono); font-weight: 400; font-size: 0.8rem; margin-left: 6px; }
.co-hint { color: var(--muted); font-size: 0.78rem; }
.co-sec-head .co-link { margin-left: auto; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hairline-2); }
.co-sec-head .co-link:hover { border-color: var(--ink); }
.co-note { color: var(--muted); font-size: 0.78rem; margin-top: 10px; }

/* ------------------------------------------------------------ chart */
.co-chart-wrap { margin-top: 14px; background: var(--panel); border: 1px solid var(--hairline); padding: 14px 14px 8px; }
#coChart { width: 100%; height: 200px; display: block; }
.co-chart-x { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; margin-top: 6px; }

/* ------------------------------------------------------------ search + form */
.co-search { position: relative; margin-top: 14px; max-width: 620px; }
.co-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
#coSearch {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--hairline-2);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 13px 14px 13px 42px;
}
#coSearch:focus { outline: none; border-color: var(--ink); }
.co-sg {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--panel);
  border: 1px solid var(--hairline-2);
  max-height: 320px;
  overflow-y: auto;
}
.co-sg-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}
.co-sg-row:last-child { border-bottom: 0; }
.co-sg-row:hover, .co-sg-row.active { background: var(--panel-2); }
.co-sg-row .n { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-sg-row .s { color: var(--muted); font-weight: 400; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-sg-row .g { margin-left: auto; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; flex: none; }

.co-form { margin-top: 14px; background: var(--panel); border: 1px solid var(--hairline); padding: 16px; max-width: 760px; }
.co-form-card { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.co-form-card img { width: 46px; height: 64px; object-fit: cover; border-radius: var(--radius-card); background: var(--panel-2); flex: none; }
.co-form-name { font-weight: 600; }
.co-form-set { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.co-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.co-form-grid label, .co-edit label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.co-form-wide { grid-column: 1 / -1; }
.co-form-grid input, .co-form-grid select, .co-edit input, .co-edit select {
  background: var(--bg);
  border: 1px solid var(--hairline-2);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 9px 10px;
  letter-spacing: 0;
  text-transform: none;
  min-width: 0;
}
.co-form-grid input:focus, .co-form-grid select:focus, .co-edit input:focus, .co-edit select:focus { outline: none; border-color: var(--ink); }
.co-form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.co-form-hint { color: var(--muted); font-size: 0.82rem; }
.co-form-hint.error { color: var(--down); }

.co-cta {
  background: var(--holo);
  color: #08090B;
  border: 0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 22px;
  cursor: pointer;
}
.co-cta:hover { filter: brightness(1.06); }
.co-cta[disabled] { opacity: 0.6; cursor: wait; }
.co-btn-ghost {
  background: transparent;
  border: 1px solid var(--hairline-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
}
.co-btn-ghost:hover { color: var(--ink); border-color: var(--muted); }

/* ------------------------------------------------------------ table */
.co-empty { color: var(--muted); font-size: 0.9rem; padding: 18px 0; max-width: 620px; line-height: 1.55; }
.co-table-wrap { overflow-x: auto; margin-top: 4px; }
.co-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.co-table th {
  text-align: left;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 10px 8px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.co-table th.num, .co-table td.num { text-align: right; }
.co-table td { padding: 10px; border-bottom: 1px solid var(--hairline); vertical-align: middle; font-size: 0.9rem; }
.co-table .th-art { width: 46px; }
.co-table .td-art img { width: 36px; height: 50px; object-fit: cover; border-radius: var(--radius-card); background: var(--panel-2); display: block; }
.co-table .td-art span { display: block; width: 36px; height: 50px; background: var(--panel-2); border: 1px solid var(--hairline); }
.co-table .td-card b { display: block; font-weight: 600; }
.co-table .td-card a { color: var(--ink); text-decoration: none; }
.co-table .td-card a:hover { border-bottom: 1px solid var(--hairline-2); }
.co-table .td-card small { color: var(--muted); font-size: 0.78rem; display: block; margin-top: 2px; }
.co-table .td-card i { color: var(--muted); font-style: normal; font-size: 0.76rem; display: block; margin-top: 3px; }
.co-table .td-grade { white-space: nowrap; }
.co-table .td-grade small { color: var(--muted); font-size: 0.74rem; margin-left: 4px; }
.co-table .mono { font-family: var(--font-mono); white-space: nowrap; }
.co-table .td-val b { font-family: var(--font-mono); font-weight: 600; display: block; }
.co-table .td-val small { color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem; }
.co-table .td-val .pl { display: block; font-family: var(--font-mono); font-size: 0.74rem; margin-top: 2px; }
.co-table .up { color: var(--up); }
.co-table .down { color: var(--down); }
.co-table .none { color: var(--muted); }
.co-table .th-act { width: 120px; }
.co-table .td-act { white-space: nowrap; text-align: right; }
.co-table .td-act button {
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 6px;
  cursor: pointer;
}
.co-table .td-act button:hover { color: var(--ink); }
.co-table .td-act button.danger:hover { color: var(--down); }

.co-edit td { background: var(--panel); }
.co-edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.co-edit-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

.co-method { color: var(--muted); font-size: 0.8rem; line-height: 1.6; margin-top: 34px; max-width: 760px; }

@media (max-width: 640px) {
  .co { padding-top: 24px; }
  .co-stat-value { font-size: 1.25rem; }
}
