/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --border: #2f2f2f;
  --text: #222;
  --muted: #5a5a5a;
  --card: #fff;
  --radius: 8px;
  --gap: 12px;
  --container: 1024px;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
  color: var(--text, #222);
  background: #fafafa;
  padding: 16px;
}

/* Page frame */
.frame {
  max-width: var(--container, 1024px);
  margin: 0 auto;
  background: #fff;
  border: 6px solid var(--border, #2f2f2f);
  min-height: 80vh;
  padding: 16px;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.status {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.status small {
  font-size: 0.9rem;
  color: var(--muted, #5a5a5a);
}

/* Stage holds overlapping cards */
.stage {
  position: relative;
  min-height: 65vh;
}

.card {
  background: var(--card, #fff);
  border: 1px solid var(--border, #000);
  border-radius: var(--radius, 8px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* Top bar card */
.topbar {
  position: absolute;
  top: 56px;
  left: 12px;
  right: 12px;
  height: 56px;
  padding: 12px 14px;
  z-index: 1;
  display: flex;
  align-items: center;
}

/* Tall left card */
.left {
  position: absolute;
  top: 40px;
  left: 12px;
  width: 210px;
  bottom: 12px;
  padding: 12px;
  z-index: 2;
}

/* Small right card */
.right {
  position: absolute;
  top: 176px;
  right: 12px;
  width: 240px;
  height: 64px;
  padding: 12px;
  z-index: 2;
}

.label { color: #38434a; }

/* Responsive */
@media (max-width: 820px) {
  .stage { 
    min-height: 70vh; 
    display: flex; 
    flex-direction: column; 
    gap: var(--gap, 12px); 
  }
  .left { position: static; width: 100%; height: auto; margin: 8px 0; }
  .topbar { position: static; width: 100%; margin: 8px 0; }
  .right { position: static; width: 60%; height: auto; margin-left: auto; }
}