/* ============================================================
   Karteo — dashboard (personal cabinet)
   ============================================================ */

.dash { background: var(--ink); color: var(--paper); min-height: 100vh; }

.dash-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.dash-head { margin-bottom: 36px; }
.dash-head .kicker { margin-bottom: 14px; }
.dash-sub {
  margin-top: 12px;
  max-width: 560px;
  color: rgba(239, 233, 221, 0.6);
  font-size: 16px;
  line-height: 1.5;
}

/* states */
.dash-gate,
.dash-empty,
.dash-error,
.dash-loading {
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  background: rgba(239, 233, 221, 0.035);
  padding: 48px 28px;
  text-align: center;
}
.dash-gate p,
.dash-empty p,
.dash-error p {
  color: rgba(239, 233, 221, 0.65);
  margin: 0 0 20px;
}
.dash-empty h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}
.dash-error p { color: #E98A7B; margin-bottom: 0; }

.dash-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(239, 233, 221, 0.6);
}
.dash-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(239, 233, 221, 0.25);
  border-top-color: var(--paper);
  animation: dash-spin 0.7s linear infinite;
}
@keyframes dash-spin { to { transform: rotate(360deg); } }

/* grid */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.dcard {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  background: rgba(239, 233, 221, 0.04);
  position: relative;
  overflow: hidden;
}
.dcard::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent, #E04E1A);
}
.dcard-qr {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
}
.dcard-qr img { width: 100%; height: 100%; display: block; }

.dcard-body { min-width: 0; flex: 1; }
.dcard-name {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.dcard-role {
  margin-top: 2px;
  font-size: 13px;
  color: rgba(239, 233, 221, 0.62);
}
.dcard-link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--t-mono);
  font-size: 12px;
  color: var(--accent, #E04E1A);
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dcard-link:hover { text-decoration: underline; }
.dcard-meta {
  margin-top: 8px;
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(239, 233, 221, 0.4);
}
.dcard-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dcard-copy.is-copied { color: var(--accent, #E04E1A); border-color: var(--accent, #E04E1A); }

@media (max-width: 640px) {
  .dash-main { padding: 100px 16px 64px; }
  .dash-grid { grid-template-columns: 1fr; }
}
