.demo-body { height: 100vh; overflow: hidden; background: #e9e3db; }
.demo-header { height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 0 24px; color: white; background: var(--navy); border-top: 5px solid var(--red); box-shadow: 0 5px 18px rgba(3,15,30,.2); }
.demo-header .brand { justify-self: start; }
.demo-safety { justify-self: center; padding: 9px 15px; font-size: .76rem; font-weight: 700; color: #d8e6f2; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; }
.demo-safety span { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #58d197; box-shadow: 0 0 0 4px rgba(88,209,151,.12); }
.demo-header-actions { justify-self: end; display: flex; gap: 10px; align-items: center; }
.quiet-button, .close-demo { min-height: 36px; padding: 0 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; color: white; background: transparent; font: inherit; font-size: .82rem; text-decoration: none; cursor: pointer; }
.close-demo { display: inline-flex; align-items: center; background: var(--red); border-color: var(--red); }
.demo-shell { height: calc(100vh - 70px); display: grid; grid-template-columns: 240px minmax(0,1fr); }
.demo-sidebar { display: flex; flex-direction: column; min-height: 0; color: #dbe6f0; background: #081f39; border-right: 1px solid #203b57; }
.demo-department { padding: 25px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.demo-department small { display: block; margin-bottom: 5px; color: #efb45c; font-size: .65rem; letter-spacing: .12em; font-weight: 900; }
.demo-department strong { display: block; color: white; font-size: .92rem; }
.demo-department span { font-size: .73rem; color: #91a7ba; }
.demo-sidebar nav { flex: 1; overflow-y: auto; padding: 13px 10px; }
.demo-sidebar nav button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 11px; margin: 3px 0; padding: 7px 11px; border: 0; border-radius: 9px; color: #b9c9d8; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.demo-sidebar nav button:hover { color: white; background: rgba(255,255,255,.06); }
.demo-sidebar nav button.active { color: white; background: #153d61; box-shadow: inset 3px 0 0 var(--red); }
.demo-sidebar nav button span { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #49647f; border-radius: 8px; font-size: .7rem; font-weight: 900; }
.demo-user { display: flex; gap: 10px; align-items: center; padding: 15px 17px; border-top: 1px solid rgba(255,255,255,.1); }
.demo-user > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: white; font-size: .72rem; font-weight: 900; }
.demo-user div { display: flex; flex-direction: column; }
.demo-user strong { color: white; font-size: .82rem; }
.demo-user small { color: #91a7ba; }
.demo-main { min-width: 0; overflow: auto; background: #f6f1ea; }
.tour-bar { position: sticky; top: 0; z-index: 4; display: flex; justify-content: space-between; gap: 30px; align-items: center; min-height: 106px; padding: 17px clamp(22px, 4vw, 48px); color: white; background: linear-gradient(100deg, #0e3153, #17496f); border-bottom: 4px solid var(--red); box-shadow: 0 8px 22px rgba(6,26,52,.14); }
.tour-bar strong { display: block; font-size: 1.08rem; }
.tour-bar p { margin: 3px 0 0; max-width: 720px; color: #cddae6; font-size: .82rem; }
.tour-kicker { display: block; margin-bottom: 4px; color: #efbd70; font-size: .62rem; font-weight: 900; letter-spacing: .15em; }
.tour-controls { display: grid; grid-template-columns: auto auto auto; gap: 8px; align-items: center; flex: 0 0 auto; }
.tour-controls > span { margin-right: 7px; color: #b9cbdb; font-size: .75rem; }
.tour-controls button { min-height: 37px; padding: 0 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 7px; color: white; background: transparent; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.tour-controls button:disabled { opacity: .35; cursor: default; }
.tour-controls .tour-next { min-width: 142px; background: var(--red); border-color: var(--red); }
.demo-view { max-width: 1400px; margin: 0 auto; padding: 34px clamp(22px, 4vw, 52px) 70px; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 25px; }
.page-heading h1 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.7rem); }
.page-heading p { margin: 7px 0 0; color: var(--muted); }
.demo-button { min-height: 42px; padding: 0 17px; border: 1px solid #cabfb2; border-radius: 8px; color: var(--navy); background: white; font: inherit; font-weight: 750; cursor: pointer; }
.demo-button.primary { color: white; background: var(--red); border-color: var(--red); }
.demo-button.small { min-height: 35px; padding-inline: 12px; font-size: .78rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.metric-card { min-height: 124px; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 7px 20px rgba(6,26,52,.05); }
.metric-card small { display: block; color: var(--muted); font-weight: 700; }
.metric-card strong { display: block; margin: 7px 0 2px; color: var(--navy); font-size: 2rem; line-height: 1; }
.metric-card span { font-size: .76rem; color: #77879a; }
.dashboard-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 25px rgba(6,26,52,.05); }
.panel h2 { margin: 0 0 17px; color: var(--navy); font-size: 1.15rem; }
.activity-list, .approval-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid #ece5dd; }
.activity-list li:last-child { border-bottom: 0; }
.activity-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--red); }
.activity-list strong { display: block; font-size: .88rem; color: var(--ink); }
.activity-list small, .activity-time { color: var(--muted); font-size: .74rem; }
.approval-list li { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid #ece5dd; }
.approval-list strong { font-size: .86rem; }
.status { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 999px; font-size: .68rem; font-weight: 850; }
.status.pending { color: #7a4b00; background: #fff0cc; }
.status.complete { color: #17613e; background: #dff4e8; }
.status.draft { color: #53677b; background: #e9eef3; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.75); }
.toolbar input, .toolbar select, .field input, .field select, .field textarea { min-height: 42px; padding: 9px 12px; border: 1px solid #c9c0b5; border-radius: 7px; color: var(--ink); background: white; font: inherit; }
.toolbar input { min-width: 260px; flex: 1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
.demo-table { width: 100%; border-collapse: collapse; }
.demo-table th { padding: 13px 14px; color: white; background: var(--navy); font-size: .75rem; text-align: left; white-space: nowrap; }
.demo-table td { padding: 14px; border-bottom: 1px solid #e5ddd4; font-size: .85rem; vertical-align: middle; }
.demo-table tr:last-child td { border-bottom: 0; }
.demo-table tbody tr:hover { background: #fbf7f2; }
.title-cell strong { display: block; color: var(--navy); }
.title-cell small { color: var(--muted); }
.assignment-layout { display: grid; grid-template-columns: 1fr 330px; gap: 18px; }
.person-list { display: grid; gap: 8px; }
.person-row { display: grid; grid-template-columns: 34px 1fr 145px; gap: 12px; align-items: center; padding: 11px 13px; border: 1px solid #ded5cb; border-radius: 9px; background: #fff; }
.person-row input { width: 19px; height: 19px; accent-color: var(--red); }
.person-row strong { display: block; font-size: .86rem; }
.person-row small { color: var(--muted); }
.person-row select { min-height: 36px; border: 1px solid #c9c0b5; border-radius: 6px; background: white; }
.summary-box { position: sticky; top: 135px; align-self: start; }
.summary-line { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid #e5ddd4; font-size: .84rem; }
.summary-line span { color: var(--muted); }
.summary-box .demo-button { width: 100%; margin-top: 17px; }
.exercise-card { max-width: 900px; margin: 0 auto; }
.scenario { margin-bottom: 18px; padding: 21px; color: white; background: var(--navy); border-left: 6px solid var(--red); border-radius: 12px; }
.scenario small { color: #efbd70; font-weight: 850; letter-spacing: .08em; }
.scenario p { margin-bottom: 0; color: #e0e8f0; }
.question-block { padding: 25px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.question-block h2 { margin-top: 0; font-size: 1.15rem; }
.answer-option { display: flex; gap: 10px; align-items: start; margin: 9px 0; padding: 12px; border: 1px solid #ddd3c8; border-radius: 8px; cursor: pointer; }
.answer-option:has(input:checked) { border-color: var(--red); background: #fff2f1; }
.answer-option input { margin-top: 3px; accent-color: var(--red); }
.score-card { display: grid; place-items: center; min-height: 300px; text-align: center; }
.score-ring { width: 120px; height: 120px; display: grid; place-items: center; border: 10px solid #dcefe5; border-top-color: #2f9a61; border-radius: 50%; color: var(--navy); font-size: 1.8rem; font-weight: 900; }
.score-card h2 { margin-bottom: 6px; }
.content-grid, .community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.content-card { min-height: 190px; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.content-card .category { color: var(--red); font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.content-card h3 { margin: 10px 0 8px; color: var(--navy); font-size: 1rem; }
.content-card p { color: var(--muted); font-size: .81rem; }
.content-card footer { min-height: 0; display: flex; justify-content: space-between; padding: 12px 0 0; color: var(--muted); background: transparent; border-top: 1px solid #ece4db; font-size: .7rem; }
.hours-layout { display: grid; grid-template-columns: 1fr 340px; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .76rem; font-weight: 800; color: var(--navy); }
.attendee-row { display: flex; flex-wrap: wrap; gap: 9px; }
.attendee-row label { display: flex; gap: 7px; align-items: center; padding: 9px 11px; border: 1px solid #d5ccc2; border-radius: 8px; font-size: .78rem; cursor: pointer; }
.attendee-row label:has(input:checked) { color: #761116; border-color: #d86a70; background: #fff1f1; }
.attendee-row input { accent-color: var(--red); }
.hours-summary strong { display: block; margin-bottom: 12px; font-size: 2rem; color: var(--navy); }
.hours-summary .bar { height: 9px; margin: 9px 0 17px; overflow: hidden; border-radius: 99px; background: #e5ddd4; }
.hours-summary .bar span { display: block; height: 100%; border-radius: 99px; background: var(--red); }
.privacy-note { margin-top: 18px; padding: 13px; border-left: 4px solid #389165; background: #e7f4ec; color: #2e5e45; font-size: .77rem; }
.demo-toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: 380px; padding: 14px 18px; color: white; background: #123c5e; border-left: 5px solid #59cc90; border-radius: 9px; box-shadow: 0 14px 35px rgba(0,0,0,.25); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .2s ease; }
.demo-toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 1050px) {
  .demo-header { grid-template-columns: 1fr auto; }
  .demo-safety { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .assignment-layout, .hours-layout { grid-template-columns: 1fr; }
  .summary-box { position: static; }
  .content-grid, .community-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .demo-body { height: auto; overflow: auto; }
  .demo-header { height: auto; min-height: 66px; padding: 9px 14px; }
  .demo-header .brand span:last-child { display: none; }
  .demo-shell { height: auto; min-height: calc(100vh - 66px); grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
  .demo-sidebar { position: sticky; top: 0; z-index: 8; display: block; width: 100%; min-width: 0; overflow: hidden; }
  .demo-department, .demo-user { display: none; }
  .demo-sidebar nav { display: flex; width: 100%; min-width: 0; overflow-x: auto; padding: 7px; }
  .demo-sidebar nav button { width: auto; flex: 0 0 auto; min-height: 40px; font-size: .76rem; }
  .demo-sidebar nav button span { display: none; }
  .demo-main { width: 100%; min-width: 0; overflow: visible; }
  .tour-bar { position: static; display: block; padding: 15px 18px; }
  .tour-controls { margin-top: 12px; grid-template-columns: auto auto 1fr; }
  .tour-controls .tour-next { min-width: 0; }
  .page-heading { display: block; }
  .page-heading .demo-button { margin-top: 12px; }
  .content-grid, .community-grid, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .person-row { grid-template-columns: 30px 1fr; }
  .person-row select { grid-column: 2; }
}
@media (max-width: 470px) {
  .demo-header-actions .quiet-button { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .tour-controls > span { display: none; }
  .tour-controls { grid-template-columns: auto 1fr; }
}
