:root {
  --bg: #ede7dc;
  --surface: #f8f3ea;
  --surface-strong: #fffdf8;
  --line: #d2c8b8;
  --ink: #1f2422;
  --muted: #5f665e;
  --accent: #23463a;
  --accent-soft: #dbe4dd;
}

* {
  box-sizing: border-box;
}

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

body {
  background: linear-gradient(180deg, #ebe3d4 0%, #efe9de 55%, #f5f0e7 100%);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI Variable", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  display: grid;
  grid-template-columns: 252px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid rgba(31, 36, 34, 0.08);
  background: rgba(248, 243, 234, 0.7);
  padding: 28px 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-name,
.brand-domain,
.sidebar-note p,
.muted,
.eyeline,
.metric-label,
.status-label {
  margin: 0;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 700;
}

.brand-domain,
.muted,
.sidebar-note,
.eyeline,
.metric-label,
.status-label {
  color: var(--muted);
}

.brand-domain {
  font-size: 0.84rem;
  margin-top: 4px;
}

.nav {
  display: grid;
  gap: 8px;
  padding: 24px 0;
}

.nav a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.nav a:hover {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.7);
}

.sidebar-note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.5;
}

.content {
  padding: 36px;
  display: grid;
  gap: 24px;
}

.section {
  display: grid;
  gap: 18px;
}

.section-head,
.panel-head,
.access-grid {
  display: flex;
  gap: 16px;
}

.section-head,
.access-grid {
  justify-content: space-between;
}

h1,
h2,
.access-value {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  line-height: 1.05;
  font-weight: 700;
}

h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.status-block,
.metric,
.panel {
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(31, 36, 34, 0.08);
  border-radius: 12px;
}

.status-block {
  min-width: 180px;
  padding: 18px;
}

.status-label,
.eyeline,
.metric-label {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  padding: 20px;
}

.metric strong {
  font-size: 2rem;
  line-height: 1;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-column,
.access-grid {
  display: grid;
}

.panel {
  padding: 22px;
}

.panel-head {
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(31, 36, 34, 0.08);
  margin-bottom: 20px;
}

.token-list,
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.token-list li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.92rem;
}

.plain-list {
  display: grid;
  gap: 10px;
}

.plain-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(31, 36, 34, 0.08);
}

.plain-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.plain-list.empty,
.token-list.empty {
  color: var(--muted);
  font-style: italic;
}

.access-panel {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94) 0%, rgba(239, 243, 236, 0.92) 100%);
}

.access-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}

.access-value {
  font-size: 1.05rem;
  line-height: 1.35;
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(31, 36, 34, 0.08);
  }

  .content {
    padding: 24px;
  }

  .summary-grid,
  .two-column,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
