:root{
  --bg:#0b0b0f;
  --card:#13131a;
  --card-2:#171722;
  --border:rgba(255,255,255,.08);
  --text:#ffffff;
  --muted:#a1a1aa;
  --muted-2:#d6d7df;
  --accent-a:#6366f1;
  --accent-b:#a855f7;
  --accent-c:#ec4899;
  --accent-gradient:linear-gradient(135deg, var(--accent-a), var(--accent-b) 58%, var(--accent-c));
  --success:#31d0aa;
  --shadow-lg:0 28px 90px rgba(0,0,0,.42);
  --shadow-md:0 16px 42px rgba(0,0,0,.28);
  --radius-xl:32px;
  --radius-lg:24px;
  --radius-md:18px;
  --radius-sm:14px;
  --pill:999px;
}

*{
  box-sizing:border-box;
}

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

body{
  font-family:"Manrope", system-ui, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 15% 18%, rgba(99,102,241,.22), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(236,72,153,.15), transparent 24%),
    linear-gradient(180deg, #0b0b0f 0%, #0d0d13 48%, #0a0a0e 100%);
}

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

button{
  font:inherit;
}

#app{
  min-height:100vh;
}

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

.loading-card{
  width:min(560px, 100%);
  padding:32px;
  border-radius:var(--radius-xl);
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)), var(--card);
  box-shadow:var(--shadow-lg);
}

.loading-card h1,
.hero-copy h1,
.calendar-head h2,
.panel-header h2{
  margin:0;
  font-family:"Sora", "Manrope", sans-serif;
  letter-spacing:-.05em;
}

.loading-card h1{
  margin-top:12px;
  font-size:clamp(36px, 6vw, 58px);
  line-height:.98;
}

.loading-card p{
  margin:16px 0 0;
  color:var(--muted-2);
  line-height:1.7;
}

.loading-bar{
  margin-top:22px;
  width:100%;
  height:10px;
  border-radius:var(--pill);
  overflow:hidden;
  background:rgba(255,255,255,.06);
}

.loading-bar span{
  display:block;
  width:38%;
  height:100%;
  border-radius:inherit;
  background:var(--accent-gradient);
  animation:loading 1.1s ease-in-out infinite alternate;
}

@keyframes loading{
  from{ transform:translateX(0); }
  to{ transform:translateX(150%); }
}

.demo-shell{
  min-height:100vh;
  padding:24px;
}

.demo-topbar,
.demo-hero,
.panel,
.calendar-shell{
  width:min(1320px, 100%);
  margin:0 auto;
}

.demo-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 0 18px;
}

.demo-brand{
  font-family:"Sora", "Manrope", sans-serif;
  font-size:28px;
  font-weight:800;
  letter-spacing:-.05em;
}

.demo-subbrand{
  margin-top:6px;
  color:var(--muted);
  font-size:14px;
}

.demo-top-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.demo-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 20px;
  border-radius:var(--pill);
  border:1px solid transparent;
  cursor:pointer;
  font-weight:800;
  transition:transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.demo-button:disabled{
  cursor:not-allowed;
  opacity:.6;
  transform:none;
}

.demo-button:hover{
  transform:translateY(-2px);
}

.demo-button.primary{
  background:var(--accent-gradient);
  color:#fff;
  box-shadow:0 18px 38px rgba(99,102,241,.24);
}

.demo-button.secondary{
  background:rgba(255,255,255,.04);
  border-color:var(--border);
  color:#f0f0f6;
}

.demo-hero{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  padding:18px 0 28px;
}

.hero-copy{
  max-width:760px;
}

.hero-copy h1{
  margin-top:12px;
  font-size:clamp(42px, 7vw, 74px);
  line-height:.96;
}

.hero-copy p{
  margin:18px 0 0;
  max-width:640px;
  color:var(--muted-2);
  font-size:18px;
  line-height:1.7;
}

.hero-inline-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.hero-inline-chip{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 14px;
  border-radius:var(--pill);
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:#ececf6;
  font-size:13px;
  font-weight:700;
}

.demo-alert{
  width:min(1320px, 100%);
  margin:0 auto 18px;
  padding:16px 18px;
  border-radius:var(--radius-lg);
  border:1px solid rgba(99,102,241,.18);
  background:rgba(99,102,241,.08);
  color:#f2f2ff;
  line-height:1.65;
}

.demo-alert.error{
  border-color:rgba(248,113,113,.24);
  background:rgba(127,29,29,.18);
}

.panel-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#d8d4ff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.panel-kicker::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent-gradient);
  box-shadow:0 0 14px rgba(168,85,247,.6);
}

.stage-pills{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.stage-pill{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border-radius:var(--pill);
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.stage-pill.active{
  color:#fff;
  box-shadow:0 0 0 1px rgba(255,255,255,.06) inset;
  background:rgba(255,255,255,.09);
}

.demo-grid{
  width:min(1320px, 100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  align-items:stretch;
}

.panel,
.calendar-shell{
  border-radius:var(--radius-xl);
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), var(--card);
  box-shadow:var(--shadow-lg);
}

.panel{
  padding:24px;
  min-height:640px;
}

.panel-header,
.calendar-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}

.panel-header h2,
.calendar-head h2{
  margin-top:10px;
  font-size:30px;
  line-height:1.02;
}

.panel-meta{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.transcript-list{
  display:grid;
  gap:14px;
}

.transcript-line{
  padding:18px;
  border-radius:var(--radius-lg);
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);
}

.transcript-line strong{
  display:block;
  margin-bottom:10px;
  font-size:15px;
  letter-spacing:-.02em;
}

.transcript-line p{
  margin:0;
  color:var(--muted-2);
  line-height:1.8;
  font-size:16px;
}

.transcript-empty{
  opacity:.85;
}

.action-list{
  display:grid;
  gap:14px;
}

.action-card{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:14px;
  padding:18px;
  border-radius:var(--radius-lg);
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);
}

.action-checkline{
  position:relative;
  display:inline-flex;
  width:24px;
  height:24px;
  margin-top:2px;
}

.action-checkline input{
  position:absolute;
  opacity:0;
  inset:0;
}

.check-mark{
  width:24px;
  height:24px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.04);
  position:relative;
}

.check-mark::after{
  content:"";
  position:absolute;
  inset:5px;
  border-radius:4px;
  background:var(--accent-gradient);
}

.action-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.action-title-row strong{
  font-size:18px;
  line-height:1.35;
  letter-spacing:-.03em;
}

.action-tag{
  flex:none;
  padding:7px 10px;
  border-radius:var(--pill);
  background:rgba(49,208,170,.15);
  color:#7df0d2;
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.action-tag.warn{
  background:rgba(251,191,36,.14);
  color:#f8ce5a;
}

.action-meta{
  margin-top:8px;
  color:#ebeaf6;
  font-size:14px;
  font-weight:700;
}

.action-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.action-badge{
  padding:7px 10px;
  border-radius:var(--pill);
  background:rgba(255,255,255,.05);
  color:#d8daea;
  font-size:12px;
  font-weight:700;
}

.deadline-field{
  display:block;
  margin-top:14px;
}

.deadline-field span{
  display:block;
  margin-bottom:8px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.deadline-field input{
  width:100%;
  min-height:48px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#fff;
  padding:0 14px;
  outline:none;
}

.deadline-field input:focus{
  border-color:rgba(168,85,247,.4);
}

.action-source{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.65;
  font-size:14px;
}

.action-empty{
  grid-template-columns:1fr;
}

.approve-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:18px;
  padding:18px;
  border-radius:var(--radius-lg);
  border:1px solid rgba(99,102,241,.18);
  background:rgba(99,102,241,.08);
}

.approve-bar strong{
  display:block;
  font-size:16px;
  margin-bottom:6px;
}

.approve-bar p{
  margin:0;
  color:var(--muted-2);
  line-height:1.65;
}

.calendar-shell{
  padding:24px;
}

.calendar-grid{
  display:grid;
  gap:14px;
  margin-top:18px;
}

.calendar-card{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:14px;
  align-items:center;
  padding:18px;
  border-radius:var(--radius-lg);
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);
}

.calendar-icon{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  border-radius:16px;
  background:rgba(255,255,255,.05);
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.calendar-copy strong{
  display:block;
  margin-bottom:6px;
  font-size:18px;
  letter-spacing:-.03em;
}

.calendar-copy div{
  color:var(--muted-2);
  line-height:1.65;
}

.calendar-link{
  display:inline-block;
  margin-top:10px;
  color:#ffffff;
  text-decoration:underline;
  text-underline-offset:3px;
}

.calendar-state{
  padding:8px 12px;
  border-radius:var(--pill);
  background:rgba(49,208,170,.15);
  color:#7df0d2;
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.calendar-success{
  margin-top:20px;
  padding:20px;
  border-radius:var(--radius-lg);
  border:1px solid rgba(49,208,170,.16);
  background:rgba(49,208,170,.08);
}

.calendar-success strong{
  display:block;
  font-size:18px;
  margin-bottom:8px;
}

.calendar-success p{
  margin:0;
  color:var(--muted-2);
  line-height:1.7;
}

.calendar-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}

.calendar-skipped{
  margin-top:20px;
  padding:20px;
  border-radius:var(--radius-lg);
  border:1px solid rgba(251,191,36,.18);
  background:rgba(251,191,36,.07);
}

.calendar-skipped > strong{
  display:block;
  margin-bottom:14px;
  font-size:18px;
}

.calendar-skipped-list{
  display:grid;
  gap:12px;
}

.skipped-card{
  padding:16px;
  border-radius:var(--radius-md);
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.04);
}

.skipped-card strong{
  display:block;
  margin-bottom:8px;
}

.skipped-card p{
  margin:0;
  color:var(--muted-2);
  line-height:1.65;
}

@media (max-width: 960px){
  .demo-shell{
    padding:18px;
  }

  .demo-topbar,
  .demo-hero,
  .demo-grid,
  .panel,
  .calendar-shell{
    width:100%;
  }

  .demo-topbar,
  .demo-hero,
  .approve-bar{
    flex-direction:column;
    align-items:flex-start;
  }

  .demo-grid{
    grid-template-columns:1fr;
  }

  .panel{
    min-height:auto;
  }

  .calendar-card{
    grid-template-columns:1fr;
    align-items:flex-start;
  }
}
