/* Existing Marketing Ultra tokens, approved mascot and Sora. No pixel figures. */
.classroom-app { height: 100dvh; min-height: 0; display: flex; flex-direction: column; background: var(--stage); overflow: hidden; font-family: Sora, 'Segoe UI', sans-serif; font-variant-numeric: tabular-nums; }
.cm-header { flex: none; min-height: 68px; padding: 12px 3vw; display: flex; align-items: center; gap: 30px; border-bottom: 2px solid var(--line); background: var(--paper); }
.cm-header .wordmark { width: 198px; flex: none; }
.cm-header .wordmark-name { font-size: 25px; }
.cm-header .wordmark small { font-size: 9px; }
.cm-header-label { font-size: 10px; letter-spacing: .13em; font-weight: 700; flex: 1; }
.cm-header nav { display: flex; gap: 18px; align-items: center; font-size: 12px; }
.cm-header button { border: 1px solid var(--line); border-radius: 6px; background: white; font-size: 24px; line-height: 1; width: 38px; height: 34px; }
.cm-status { flex: none; padding: 9px 3vw 0; display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-dim); }
#cm-demo-label { font-weight: 700; color: var(--mint-deep); }
#cm-viewport { position: relative; flex: 1; min-height: 0; margin: 0 3vw; }
#cm-stage { width: 100%; max-width: 1500px; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(var(--cm-scale,1)); transform-origin: center; padding: 20px 0; }
.cm-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.cm-chip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; padding: 5px 9px; background: var(--yellow); font-size: 11px; letter-spacing: .04em; }
.cm-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.cm-heading h1 { font-size: clamp(26px, 3vw, 45px); line-height: 1.16; letter-spacing: -.045em; max-width: 1020px; margin: 0; }
.cm-heading p { margin: 10px 0 0; font-size: 15px; color: var(--ink-dim); max-width: 850px; line-height: 1.5; }
.cm-timer { flex: none; font-size: 26px; font-weight: 700; border: 2px solid var(--line); border-radius: 50%; width: 76px; height: 76px; display: grid; place-items: center; background: var(--paper); }
.cm-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.cm-card { background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 24px; min-width: 0; }
.cm-card h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.035em; margin: 0 0 15px; }
.cm-card p { font-size: 15px; line-height: 1.55; margin: 10px 0; }
.cm-mode-card { display: flex; flex-direction: column; box-shadow: 4px 4px 0 var(--line); }
.cm-mode-card .cm-mode-number { font-size: 42px; font-weight: 800; color: var(--mint-deep); margin-bottom: 28px; }
.cm-mode-card p { min-height: 48px; }
.cm-mode-card .cm-button { margin-top: 24px; }
.cm-mode-card .cm-text-button { align-self: start; margin-top: 15px; }
.cm-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid var(--line); border-radius: 8px; background: var(--ink); color: white; font-weight: 700; padding: 13px 21px; font-size: 14px; text-align: center; min-height: 46px; }
.cm-button.secondary { background: var(--paper); color: var(--ink); }
.cm-button.accent { background: var(--yellow); color: var(--ink); }
.cm-text-button { background: transparent; border: 0; border-bottom: 1px solid currentColor; padding: 2px 0; font-size: 13px; }
.cm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.cm-case { background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 20px; }
.cm-case > p { margin: 0 0 16px; line-height: 1.5; font-size: 15px; }
.cm-clue { border-top: 1px solid #a8c4b7; padding: 12px 0; display: grid; grid-template-columns: minmax(100px, .75fr) 1.5fr; column-gap: 12px; }
.cm-clue:last-child { padding-bottom: 0; }
.cm-clue span { font-size: 12px; color: var(--ink-dim); padding-top: 3px; }
.cm-clue strong { font-size: clamp(17px, 1.65vw, 25px); line-height: 1.3; }
.cm-clue small { grid-column: 2; font-size: 12px; line-height: 1.5; margin-top: 4px; }
.cm-options { display: flex; flex-direction: column; gap: 12px; }
.cm-options h2 { font-size: 22px; line-height: 1.3; margin: 0 0 5px; }
.cm-option { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--paper); border: 2px solid var(--line); border-radius: 9px; padding: 17px; font-size: 16px; line-height: 1.4; }
.cm-option:nth-of-type(2) { background: #e5f3fd; }
.cm-option:nth-of-type(3) { background: #fcf7ce; }
.cm-option .cm-letter { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-weight: 800; background: white; }
button.cm-option:hover:not(:disabled) { box-shadow: 3px 3px 0 var(--line); transform: translate(-1px,-1px); }
.cm-option[aria-pressed=true] { outline: 3px solid var(--mint-deep); outline-offset: 2px; }
.cm-scale { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.cm-level { display: flex; flex-direction: column; gap: 15px; align-items: start; text-align: left; border: 2px solid var(--line); background: var(--paper); padding: 22px; border-radius: 10px; line-height: 1.35; font-size: 16px; }
.cm-level strong { font-size: 42px; line-height: 1; }
.cm-level:nth-child(2) { background: #e8f7ef; }.cm-level:nth-child(3) { background: #cbf3df; }.cm-level:nth-child(4) { background: #9eebc7; }.cm-level:nth-child(5) { background: #71e8b3; }
.cm-level[aria-pressed=true] { outline: 3px solid var(--mint-deep); outline-offset: 2px; }
.cm-note { font-size: 13px; line-height: 1.5; color: var(--ink-dim); margin: 18px 0 0; }
.cm-results { display: flex; flex-direction: column; gap: 12px; }
.cm-bar-row { display: grid; grid-template-columns: minmax(170px,1fr) 1fr 100px; align-items: center; gap: 18px; font-size: 15px; }
.cm-bar-track { height: 28px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); overflow: hidden; }
.cm-bar { height: 100%; background: var(--mint); min-width: 0; }
.cm-bar-row strong { text-align: right; font-size: 17px; }
.cm-resolution { border: 2px solid var(--line); padding: 24px; background: var(--paper); border-radius: 10px; }
.cm-resolution h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.3; }
.cm-resolution p { font-size: 16px; line-height: 1.6; margin: 12px 0; }
.cm-takeaway { padding: 14px 18px; border-left: 5px solid var(--mint-deep); background: var(--yellow); font-size: 18px; font-weight: 700; line-height: 1.4; margin-top: 18px; }
.cm-verdict { padding: 12px 0; border-top: 1px solid #a8c4b7; font-size: 15px; line-height: 1.5; }
.cm-verdict small { display: block; font-size: 11px; font-weight: 700; color: var(--mint-deep); letter-spacing: .08em; margin-bottom: 4px; }
.cm-lobby { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cm-lobby h1 { font-size: clamp(32px,4vw,58px); line-height: 1.12; letter-spacing: -.05em; margin: 0 0 20px; }
.cm-lobby p { font-size: 17px; line-height: 1.6; max-width: 640px; }
.cm-lobby-art { position: relative; height: 320px; display: flex; align-items: center; justify-content: center; }
.cm-mascot { max-height: 100%; max-width: 220px; object-fit: contain; }
.cm-pin { background: var(--yellow); padding: 20px 24px; border: 2px solid var(--line); border-radius: 9px; transform: rotate(-2deg); position: absolute; bottom: 10px; right: 0; box-shadow: 4px 4px 0 var(--line); }
.cm-pin strong { display: block; font-size: 44px; letter-spacing: .06em; }
.cm-pin span { font-size: 12px; }
.cm-qr { position: absolute; left: 0; bottom: 15px; padding: 9px; background: white; border: 2px solid var(--line); border-radius: 8px; }
.cm-qr img { display: block; width: 132px; height: 132px; }
.cm-split .cm-bar-row { grid-template-columns: 1fr 100px; gap: 6px 12px; font-size: 14px; }
.cm-split .cm-bar-track { grid-column: 1; grid-row: 2; height: 10px; }
.cm-split .cm-bar-row strong { grid-column: 2; grid-row: 1 / span 2; font-size: 15px; }
.cm-join-link { display: block; overflow-wrap: anywhere; font-size: 13px; margin-top: 10px; text-decoration: underline; }
.cm-count { font-weight: 700; color: var(--mint-deep); }
.cm-brief p { font-size: 14px; margin: 0 0 14px; }
.cm-brief p strong { display: block; font-size: 11px; letter-spacing: .08em; color: var(--mint-deep); margin-bottom: 4px; }
.cm-criteria { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; font-size: 12px; }
.cm-criteria span { background: var(--yellow); padding: 7px 10px; border-radius: 4px; }
.cm-proposal { display: flex; flex-direction: column; gap: 12px; }
.cm-proposal h2 { font-size: 20px; overflow-wrap: anywhere; margin: 0; }
.cm-proposal p { font-size: 14px; overflow-wrap: anywhere; margin: 0; }
.cm-proposal .cm-metric { border-top: 1px solid #a8c4b7; padding-top: 12px; }
.cm-proposal small { font-size: 11px; color: var(--ink-dim); }
.cm-proposal .cm-button { margin-top: auto; }
.cm-votes { font-size: 28px; font-weight: 800; color: var(--mint-deep); }
.cm-pagination { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 20px; font-size: 13px; }
.cm-pagination button { padding: 8px 14px; min-height: 38px; }
.cm-pagination select { min-width: 0; max-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font-size: 12px; }
.cm-form { display: flex; flex-direction: column; gap: 14px; }
.cm-form label { display: flex; flex-direction: column; font-size: 13px; gap: 7px; font-weight: 700; }
.cm-form input, .cm-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-weight: 400; background: white; color: var(--ink); }
.cm-form textarea { resize: vertical; min-height: 85px; }
.cm-form small { font-size: 11px; font-weight: 400; color: var(--ink-dim); }
.cm-sent { padding: 22px; background: var(--paper); border: 2px solid var(--mint-deep); border-radius: 10px; }
.cm-sent h2 { font-size: 24px; margin: 0 0 10px; }.cm-sent p { font-size: 15px; line-height: 1.5; margin: 0; }
#cm-controls { flex: none; min-height: 72px; border-top: 2px solid var(--line); padding: 12px 3vw; background: var(--paper); display: flex; gap: 16px; align-items: center; justify-content: space-between; font-size: 13px; }
#cm-controls > div { display: flex; gap: 12px; align-items: center; }
#cm-toast { position: fixed; bottom: 85px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 16px 24px; border-radius: 8px; z-index: 20; max-width: 90vw; }
.cm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-height: 720px) and (min-width: 701px) {
  .cm-header { min-height: 56px; padding-block: 7px; }.cm-status { padding-top: 5px; }
  #cm-stage { padding-block: 12px; }.cm-heading { margin-bottom: 14px; }.cm-heading h1 { font-size: 28px; }
  .cm-kicker { margin-bottom: 8px; }.cm-case { padding: 15px; }.cm-clue { padding-block: 9px; }
  .cm-options { gap: 9px; }.cm-option { padding: 13px; }.cm-options h2 { font-size: 20px; }
  .cm-resolution { padding: 16px; }.cm-resolution p { font-size: 15px; line-height: 1.45; margin: 9px 0; }.cm-takeaway { font-size: 16px; margin-top: 12px; padding-block: 10px; }
  .cm-verdict { padding-block: 8px; font-size: 14px; }.cm-verdict small { margin-bottom: 3px; }
  .cm-card { padding: 18px; }.cm-mode-card .cm-mode-number { margin-bottom: 15px; }
  .cm-criteria { margin-bottom: 12px; }.cm-heading p { margin-top: 6px; font-size: 14px; }
  .cm-brief p { margin-bottom: 10px; line-height: 1.45; }.cm-brief p:last-child { margin-bottom: 0; }
  .cm-proposal { gap: 10px; }.cm-proposal h2 { font-size: 20px; }.cm-proposal p { font-size: 15px; line-height: 1.45; }
  .cm-pagination { margin-top: 12px; }
  .cm-lobby-art { height: 260px; } #cm-controls { min-height: 62px; padding-block: 8px; }
}
@media (max-width: 700px) {
  .classroom-app { height: auto; min-height: 100dvh; overflow: auto; }
  .cm-header { min-height: 60px; gap: 10px; padding: 12px 18px; }.cm-header .wordmark { width: 158px; }.cm-header .wordmark-name { font-size: 20px; }
  .cm-header-label { display: none; }.cm-header nav { margin-left: auto; font-size: 10px; gap: 10px; }
  .cm-status { padding: 10px 18px 0; font-size: 10px; flex-wrap: wrap; gap: 5px; }
  #cm-viewport { margin: 0 18px; flex: 1; } #cm-stage { position: static; transform: none; width: auto; padding: 24px 0; }
  .cm-kicker { font-size: 10px; gap: 8px; }.cm-heading { align-items: start; gap: 10px; margin-bottom: 18px; }.cm-heading h1 { font-size: 26px; }.cm-heading p { font-size: 13px; }
  .cm-timer { width: 55px; height: 55px; font-size: 19px; }
  .cm-grid,.cm-split,.cm-lobby { grid-template-columns: 1fr; gap: 20px; }
  .cm-mode-card p { min-height: 0; }.cm-mode-card .cm-mode-number { margin-bottom: 12px; }
  .cm-case { padding: 16px; }.cm-case > p { font-size: 13px; }.cm-clue { grid-template-columns: 1fr 1.5fr; }.cm-clue strong { font-size: 18px; }.cm-clue small { font-size: 11px; }
  .cm-options h2 { font-size: 20px; }.cm-option { font-size: 15px; padding: 14px; }
  .cm-scale { grid-template-columns: 1fr; gap: 9px; }.cm-level { flex-direction: row; align-items: center; padding: 14px; gap: 18px; font-size: 14px; }.cm-level strong { font-size: 26px; width: 20px; flex: none; }
  .cm-bar-row { grid-template-columns: 1fr 95px; gap: 8px; }.cm-bar-track { grid-column: 1; grid-row: 2; height: 17px; }.cm-bar-row strong { grid-column: 2; grid-row: 1 / span 2; }
  .cm-lobby h1 { font-size: 34px; }.cm-lobby p { font-size: 15px; }.cm-lobby-art { height: 220px; }.cm-pin strong { font-size: 36px; }
  .cm-resolution { padding: 18px; }.cm-resolution p { font-size: 14px; }.cm-takeaway { font-size: 16px; }
  .cm-criteria { gap: 6px; font-size: 10px; }.cm-criteria span { padding: 6px 8px; }
  .cm-pagination { flex-wrap: wrap; gap: 8px; }.cm-pagination select { width: 100%; max-width: none; }
  #cm-controls { position: sticky; bottom: 0; flex-wrap: wrap; min-height: 60px; padding: 10px 18px; font-size: 11px; gap: 10px; } #cm-controls > div { flex-wrap: wrap; gap: 8px; }
  #cm-controls .cm-button { min-height: 42px; padding: 10px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .classroom-app * { animation: none !important; transition: none !important; } }
