@layer components {
  .panel,
  .table-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(50, 48, 41, .045);
    overflow: hidden;
  }

  .panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
  }

  .panel-heading h2 {
    margin: 0;
    font-size: 16px;
  }

  .panel-heading * {
    line-height: normal;
  }

  .panel-eyebrow {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .floating-panel {
    background: rgba(253, 252, 248, .97);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
  }

  .flash-stack {
    position: fixed;
    z-index: 1200;
    top: 72px;
    left: 50%;
    width: min(520px, calc(100% - 28px));
    transform: translateX(-50%);
    pointer-events: none;
  }

  .flash {
    padding: 12px 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 12px;
  }

  .flash-notice {
    color: var(--green);
  }

  .flash-alert {
    color: #8f3f37;
    border-color: #dfb3ad;
  }

  .detail-panel {
    padding: 22px;
  }

  .detail-list {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
  }

  .detail-list dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
  }

  .detail-list dd {
    margin: 0;
    font-size: 13px;
  }

  .empty-state {
    padding: 38px 20px;
    color: var(--muted);
    text-align: center;
  }

  .empty-state h2 {
    color: var(--ink);
    font-size: 16px;
  }

  @media (max-width: 680px) {
    .detail-list {
      grid-template-columns: 1fr;
    }
  }
}
