:root {
  --bg: #0b0c0d;
  --surface: #0f1112;
  --surface-2: #131516;
  --surface-3: #17191a;
  --line: #2d3032;
  --line-soft: #202325;
  --text: #e7e7e5;
  --muted: #9a9a96;
  --dim: #6f716f;
  --accent: #b9825d;
  --accent-2: #d3a27e;
  --danger: #d48d8d;
  --warning: #c8a46b;
  --success: #8eae94;
  --max: 1540px;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; }
.hidden { display: none !important; }

::selection {
  background: rgba(185, 130, 93, .28);
  color: var(--text);
}

/* auth */

.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(360px, 100%);
}

.auth-brand {
  margin-bottom: 28px;
}

.brand {
  color: var(--text);
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -.035em;
}

.auth-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  border: 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  padding: 0 0 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.auth-tab:hover { color: var(--text); }
.auth-tab.active { color: var(--text); border-bottom-color: var(--accent); }

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label,
.admin-key-form label,
.import-panel label {
  display: grid;
  gap: 5px;
}

.auth-form label > span,
.admin-key-form label > span,
.import-panel label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.auth-form small,
.admin-key-form small,
.import-panel small {
  color: var(--dim);
  font-size: 9px;
}

/* inputs/actions */

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1px;
  outline: none;
  background: #090a0b;
}

input,
select { height: 34px; padding: 0 9px; }

textarea {
  min-height: 72px;
  padding: 8px 9px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder { color: #5f6160; }

input:hover,
textarea:hover,
select:hover { border-color: #3a3e40; }

input:focus,
textarea:focus,
select:focus { border-color: var(--accent); }

.action {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 1px;
  padding: 5px 10px;
  background: transparent;
  color: var(--muted);
}

.action:hover {
  border-color: #464a4c;
  color: var(--text);
  background: rgba(255,255,255,.015);
}

.action.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #15100d;
  font-weight: 680;
}

.action.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.text-action {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.text-action:hover { color: var(--accent-2); }

.message {
  margin: 12px 0 0;
  font-size: 10px;
}

.error { color: var(--danger); }

/* application bar */

.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(11,12,13,.97);
}

.appbar-inner {
  width: min(calc(100% - 32px), var(--max));
  height: 58px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.brand-button {
  border: 0;
  padding: 0;
  background: transparent;
}

.primary-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 24px;
}

.primary-nav button {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.primary-nav button:hover { color: var(--text); }

.primary-nav button.active {
  color: var(--text);
}

.primary-nav button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
}

.app-context {
  display: flex;
  align-items: center;
  gap: 10px;
}

.context-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.context-button:hover { color: var(--text); }

.context-select {
  display: flex;
  align-items: center;
  gap: 7px;
}

.context-select span {
  color: var(--dim);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.context-select select {
  width: auto;
  min-width: 190px;
  height: 30px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 20px 0 0;
  background: transparent;
  font-size: 11px;
}

/* layout */

.notice {
  width: min(calc(100% - 32px), var(--max));
  margin: 12px auto 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--warning);
  font-size: 10px;
}

.notice.error { color: var(--danger); }

.workspace {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 34px 0 58px;
}

.view { display: none; }
.view.active { display: block; }

.view-head,
.home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.view-head h1,
.home-head h1 {
  margin: 2px 0 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.kicker {
  margin: 0;
  color: var(--dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.view-actions,
.control-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* home */

.home-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.home-copy {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.index-list {
  width: min(1180px, 100%);
  border-bottom: 1px solid var(--line);
}

.index-list button {
  width: 100%;
  min-height: 84px;
  display: grid;
  grid-template-columns: 36px 220px minmax(260px, 520px) 1fr;
  gap: 14px;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--line-soft);
  padding: 0 4px;
  background: transparent;
  text-align: left;
}

.index-list button:first-child { border-top: 0; }

.index-list button:hover { background: rgba(255,255,255,.014); }

.index-list span {
  color: var(--dim);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.index-list strong {
  font-size: 14px;
  font-weight: 650;
}

.index-list small {
  color: var(--muted);
  font-size: 11px;
}

.index-list b {
  color: var(--dim);
  font-size: 14px;
  font-weight: 400;
  text-align: right;
}

.index-list button:hover strong,
.index-list button:hover b { color: var(--accent-2); }

/* common data */

.metric-line {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  margin-bottom: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-width: 0;
  padding: 12px 14px 12px 0;
  border-right: 1px solid var(--line-soft);
}

.metric + .metric { padding-left: 12px; }
.metric:last-child { border-right: 0; }

.metric span {
  display: block;
  overflow: hidden;
  color: var(--dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric small {
  display: block;
  margin-top: 1px;
  color: var(--dim);
  font-size: 9px;
}

.status-line {
  margin: -2px 0 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11px;
}

.status-line.error { color: var(--danger); }

.control-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
}

.period-control {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.period-control button {
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 3px 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.period-control button:hover { color: var(--text); }
.period-control button.active { color: var(--text); border-bottom-color: var(--accent); }

.period-standalone {
  margin: -2px 0 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.search {
  width: 240px;
  height: 32px;
  font-size: 11px;
}

.small-select {
  width: auto;
  min-width: 104px;
  height: 32px;
  font-size: 11px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  cursor: pointer;
}

.check input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--accent);
}

.data-table-wrap {
  overflow: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th,
.data-table td {
  height: 42px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  color: var(--dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.data-table th:first-child,
.data-table td:first-child { text-align: left; }

.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(255,255,255,.017); }
.data-table tbody tr.clickable { cursor: pointer; }

.data-table th[data-intel-sort],
.performance-table th button { cursor: pointer; }

.data-table th.sorted { color: var(--accent-2); }

.empty-row td {
  height: 70px;
  color: var(--muted);
  text-align: left !important;
}

.member-name {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.member-meta {
  display: block;
  margin-top: 1px;
  color: var(--dim);
  font-size: 9px;
  font-weight: 400;
}

.stat-source {
  display: block;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.stat-source.verified { color: var(--accent-2); }

.member-detail-row td {
  height: auto;
  padding: 0 !important;
  background: #090a0b;
  white-space: normal;
}

.member-detail {
  padding: 12px 8px 14px;
  border-bottom: 1px solid var(--line);
}

.member-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.member-detail-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 640;
}

.member-detail-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.member-detail-head a {
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
}

.member-detail-head a:hover { color: var(--accent-2); }

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-metrics .metric { padding-top: 8px; padding-bottom: 8px; }

.detail-war-list {
  margin-top: 12px;
}

.detail-war-list header {
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* overview lists */

.split-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-list > section {
  min-width: 0;
  padding: 12px 16px 12px 0;
}

.split-list > section + section {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.split-list section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.split-list h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
}

.line-list {}

.line-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  padding: 6px 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.line-row:first-child { border-top: 0; }
button.line-row:hover strong { color: var(--accent-2); }

.line-row strong {
  display: block;
  font-size: 11px;
  font-weight: 620;
}

.line-row small {
  display: block;
  margin-top: 1px;
  color: var(--dim);
  font-size: 9px;
}

.line-row b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

/* performance */

.performance-table th button {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: right;
  text-transform: inherit;
  letter-spacing: inherit;
}

.performance-table th:first-child button { text-align: left; }

.performance-table .net {
  border-left: 1px solid var(--line-soft);
  font-weight: 680;
}

.performance-table .secondary {
  display: block;
  margin-top: 1px;
  color: var(--dim);
  font-size: 9px;
  font-weight: 400;
}

.performance-table a {
  color: inherit;
  text-decoration: none;
}

.performance-table a:hover { color: var(--accent-2); }

/* archive/import */

.archive-count {
  color: var(--muted);
  font-size: 10px;
}

.archive-count strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.archive-table tbody tr { cursor: pointer; }
.archive-table tbody tr:hover td:first-child { color: var(--accent-2); }

.import-panel {
  margin: 0 0 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.import-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.import-actions {
  min-width: 170px;
  display: grid;
  gap: 9px;
}

.import-progress {
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.import-row {
  display: grid;
  grid-template-columns: 90px 82px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 10px;
}

.import-row strong { font-weight: 620; }
.import-row span { color: var(--accent-2); }
.import-row small { color: var(--muted); }
.import-row.error span { color: var(--danger); }

/* war detail */

.detail-head {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 12px;
}

.detail-title h2 {
  margin: 2px 0 2px;
  font-size: 18px;
  font-weight: 650;
}

.detail-title > span {
  color: var(--muted);
  font-size: 10px;
}

.score-line {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 18px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.score-side {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.score-side.opponent { justify-content: flex-start; }

.score-side span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-side strong {
  font-size: 19px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.score-versus {
  color: var(--dim);
  font-size: 9px;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.share-panel {
  display: grid;
  grid-template-columns: minmax(150px,.5fr) minmax(220px,1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.share-panel strong,
.share-panel small {
  display: block;
}

.share-panel strong { font-size: 9px; }
.share-panel small { color: var(--dim); font-size: 8px; }
.share-panel span { grid-column: 2 / -1; color: var(--muted); font-size: 8px; }
.share-panel span.error { color: var(--danger); }

/* settings/admin */

.settings-list {
  max-width: 720px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.settings-list div {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.settings-list dt {
  color: var(--muted);
  font-size: 9px;
}

.settings-list dd {
  margin: 0;
  font-size: 10px;
  font-weight: 620;
}

.admin-section {
  max-width: 900px;
  margin-top: 30px;
}

.admin-section > header h2 {
  margin: 2px 0 10px;
  font-size: 13px;
  font-weight: 650;
}

.admin-faction-list {
  border-top: 1px solid var(--line);
}

.admin-faction-row {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 7px 0;
  background: transparent;
  text-align: left;
}

.admin-faction-row:hover strong { color: var(--accent-2); }

.admin-faction-row strong,
.admin-faction-row small { display: block; }

.admin-faction-row strong { font-size: 10px; }
.admin-faction-row small { margin-top: 1px; color: var(--dim); font-size: 8px; }
.admin-faction-row b { color: var(--muted); font-size: 9px; font-weight: 500; }

.admin-key-form {
  max-width: 620px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-key-form p {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 620;
}

.admin-key-form > div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}

/* responsive */

@media (max-width: 980px) {
  .appbar-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
  }

  .app-context {
    grid-column: 1 / -1;
    order: 3;
    height: 30px;
    margin-top: -8px;
    padding-bottom: 7px;
    overflow-x: auto;
  }

  .appbar-inner { height: auto; min-height: 54px; padding-top: 12px; }
  .primary-nav { justify-self: end; height: 34px; }

  .detail-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .detail-metrics .metric:nth-child(3) { border-right: 0; }
}

@media (max-width: 760px) {
  body { font-size: 13px; }
  .appbar-inner,
  .workspace,
  .notice {
    width: min(calc(100% - 20px), var(--max));
  }

  .appbar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    height: 34px;
    gap: 18px;
    overflow-x: auto;
  }

  .app-context {
    order: 2;
    grid-column: auto;
    margin: 0 0 0 auto;
    padding: 0;
  }

  .context-select { display: none; }

  .workspace { padding-top: 20px; }

  .view-head h1,
  .home-head h1 { font-size: 22px; }

  .view-head,
  .home-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .home-copy { text-align: left; }

  .index-list button {
    grid-template-columns: 28px minmax(100px, .7fr) minmax(0, 1fr) 14px;
    min-height: 68px;
    gap: 8px;
  }

  .metric-line {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric { border-bottom: 1px solid var(--line-soft); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-last-child(-n+2) { border-bottom: 0; }

  .control-line {
    align-items: stretch;
    flex-direction: column;
  }

  .control-cluster { justify-content: space-between; }
  .search { width: 100%; }

  .split-list { grid-template-columns: 1fr; }
  .split-list > section { padding: 12px 0; }
  .split-list > section + section {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .detail-title {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .score-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .score-side,
  .score-side.opponent { justify-content: space-between; }
  .score-versus { display: none; }

  .share-panel { grid-template-columns: 1fr; }
  .share-panel span { grid-column: 1; }

  .import-panel form { grid-template-columns: 1fr; }
  .import-actions { min-width: 0; }

  .detail-metrics { grid-template-columns: 1fr 1fr; }
  .detail-metrics .metric:nth-child(3) { border-right: 1px solid var(--line-soft); }
  .detail-metrics .metric:nth-child(2n) { border-right: 0; }
}

@media (max-width: 520px) {
  .primary-nav { gap: 14px; }
  .context-button { display: none; }

  .index-list button {
    grid-template-columns: 24px minmax(0,1fr) 14px;
  }

  .index-list small { display: none; }

  .period-control { gap: 10px; }
  .performance-controls .control-cluster { align-items: stretch; flex-direction: column; }

  .settings-list div { grid-template-columns: 110px minmax(0,1fr); }
}


/* desktop column rhythm */

.intel-table {
  table-layout: fixed;
}

.intel-table th:nth-child(1),
.intel-table td:nth-child(1) { width: 22%; }

.intel-table th:nth-child(2),
.intel-table td:nth-child(2) { width: 12%; }

.intel-table th:nth-child(3),
.intel-table td:nth-child(3) { width: 12%; }

.intel-table th:nth-child(4),
.intel-table td:nth-child(4) { width: 14%; }

.intel-table th:nth-child(5),
.intel-table td:nth-child(5) { width: 12%; }

.intel-table th:nth-child(6),
.intel-table td:nth-child(6) { width: 16%; }

.intel-table th:nth-child(7),
.intel-table td:nth-child(7) { width: 12%; }

#performanceTable {
  min-width: 980px;
}

#performanceTable th:first-child,
#performanceTable td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 210px;
  background: var(--bg);
}

#performanceTable th:first-child {
  z-index: 3;
}

#performanceTable tbody tr:hover td:first-child {
  background: #0e1011;
}

#performanceTable.is-detail th:nth-child(5),
#performanceTable.is-detail td:nth-child(5) {
  border-left: 1px solid var(--line);
}

@media (max-width: 760px) {
  .index-list {
    width: 100%;
  }

  .intel-table {
    table-layout: auto;
    min-width: 920px;
  }

  .intel-table th,
  .intel-table td {
    width: auto !important;
  }
}


/* freshness + access */

.freshness {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 9px;
}

.freshness.stale {
  color: var(--warning);
}

.access-section {
  max-width: 900px;
  margin-top: 30px;
}

.access-section > header {
  margin-bottom: 8px;
}

.access-section > header h2 {
  margin: 2px 0 3px;
  font-size: 13px;
  font-weight: 650;
}

.access-section > header span {
  color: var(--muted);
  font-size: 9px;
}

.access-list {
  border-top: 1px solid var(--line);
}

.access-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}

.access-row strong,
.access-row small {
  display: block;
}

.access-row strong {
  font-size: 11px;
  font-weight: 620;
}

.access-row small {
  margin-top: 2px;
  color: var(--dim);
  font-size: 9px;
}

.access-select {
  height: 30px;
  font-size: 10px;
}

.access-empty {
  padding: 12px 0;
  color: var(--muted);
  font-size: 10px;
}

.share-panel {
  grid-template-columns: minmax(150px,.45fr) 110px minmax(220px,1fr) auto auto;
}

.share-panel .small-select {
  width: 110px;
}

@media (max-width: 760px) {
  .freshness {
    font-size: 9px;
  }

  .access-row {
    grid-template-columns: 1fr 110px;
  }

  .share-panel {
    grid-template-columns: 1fr;
  }

  .share-panel .small-select {
    width: 100%;
  }
}
