/* Veo public demo. System fonts only. No third-party assets. */
:root {
  --ink: #241c16;
  --muted: #5c534b;
  --paper: #faf7f2;
  --card: #fffdf9;
  --line: #e4d8cc;
  --terra: #b24a32;
  --terra-ink: #fff;
  --navy: #0a1628;
  --ok: #2c5a3e;
  --coach: #efe4d4;
  --focus: #1a4d8c;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #e8e2d8; color: var(--ink);
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.45; height: 100%; }
body { display: flex; flex-direction: column; min-height: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.strip {
  background: var(--navy); color: #fff; padding: 6px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  flex: 0 0 auto;
}
.strip a { color: #fff; text-underline-offset: 2px; display: inline-flex; align-items: center;
  min-height: 44px; min-width: 44px; padding: 10px 4px; }
.strip p { margin: 0; font-size: 13px; line-height: 18px; color: #d5dbe4; flex: 1 1 220px; }

#veo-app { width: 100%; max-width: 430px; position: relative; display: flex; flex-direction: column; }
@media (max-width: 480px) { #veo-app { max-width: none; } }
.stage { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; align-items: flex-start;
  padding: 16px 12px 20px; }

.phone {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 760px;
  max-height: 760px;
  background: var(--paper);
  border: 1px solid #d7ccc0;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(36, 28, 22, 0.12);
  display: flex; flex-direction: column;
  overflow: hidden;
}
@media (max-width: 480px) {
  body { background: var(--paper); overflow: hidden; }
  .stage { padding: 0; }
  #veo-app { max-width: none; height: 100%; }
  .phone { max-width: none; width: 100%; height: 100%; max-height: none;
    border: 0; border-radius: 0; box-shadow: none; }
}

.wm { position: absolute; top: 8px; right: 10px; margin: 0; font-size: 10px; letter-spacing: 0.04em;
  color: #9a8f84; text-transform: uppercase; pointer-events: none; z-index: 2; }

.top { padding: 8px 14px 4px; flex: 0 0 auto; }
.top h1 { margin: 2px 0 4px; font-size: 16px; line-height: 20px; font-weight: 650; padding-right: 88px; }
.mode { margin: 0; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--terra); font-weight: 650; }
.sub { margin: 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.reset { position: absolute; top: 10px; right: 12px; }

.main { flex: 1 1 auto; overflow: auto; padding: 0 12px 0; position: relative; }

.coach { background: var(--coach); border-radius: 10px; padding: 4px 8px; margin: 0 0 4px;
  display: flex; gap: 8px; align-items: center; }
.coach p { margin: 0; flex: 1; font-size: 13px; line-height: 18px; }
.coach-x { background: none; border: 0; color: var(--muted); text-decoration: underline;
  padding: 8px 10px; font-size: 13px; min-height: 44px; min-width: 44px; display: inline-flex;
  align-items: center; justify-content: center; flex: 0 0 auto; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; align-content: start; padding-bottom: 0; }
.stu { appearance: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  min-height: 44px; min-width: 44px; padding: 2px 2px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; }
.stu:focus, .tab:focus, .btn:focus, .chip:focus, .sent:focus, .textish:focus, .crow-a button:focus {
  outline: 3px solid var(--focus); outline-offset: 2px; }
.stu-name { font-size: 14px; line-height: 16px; font-weight: 600; text-align: center;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar { position: relative; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-size: 14px; font-weight: 650; flex: 0 0 auto; }
.av-badge { position: absolute; right: -4px; bottom: -2px; background: var(--ok); color: #fff;
  font-size: 10px; line-height: 16px; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 3px; }

.tabs { display: flex; border-top: 1px solid var(--line); flex: 0 0 44px; min-height: 44px; background: var(--card); }
.tab { flex: 1; border: 0; background: none; font-weight: 650; color: var(--muted);
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.tab.on { color: var(--ink); box-shadow: inset 0 -3px 0 var(--terra); }

.foot { flex: 0 0 auto; background: var(--paper); border-top: 1px solid var(--line); }
.bottom-slot { padding: 6px 12px 4px; background: var(--paper); }
.bottom-slot.pair { display: flex; gap: 8px; flex-wrap: wrap; }
.bottom-slot.pair .btn { flex: 1 1 30%; }

.btn { border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 12px 14px; font-weight: 650; min-height: 44px; }
.btn.primary { background: var(--terra); color: var(--terra-ink); border-color: var(--terra); }
.btn.primary:disabled, .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { background: transparent; }

.textish { background: none; border: 0; color: var(--terra); text-decoration: underline; padding: 6px; min-height: 44px; }

.snack { position: absolute; left: 12px; right: 12px; bottom: 120px; background: var(--ink); color: #fff;
  border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center;
  gap: 8px; font-size: 13px; z-index: 5; }
.snack .textish { color: #fff; }

.block { margin: 0 0 14px; }

.block h3 { margin: 0 0 6px; font-size: 14px; }
.block ul, .elog-list, .pick { list-style: none; margin: 0; padding: 0; }
.crow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.crow-t { flex: 1; min-width: 0; }
.crow-t strong { display: block; font-size: 14px; }
.crow-t span { font-size: 12px; color: var(--muted); }
.crow-a { display: flex; flex-direction: column; gap: 6px; }
.crow-a .btn { min-height: 44px; padding: 8px 10px; font-size: 13px; }

.sheet-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.sheet-head h2 { margin: 0; font-size: 18px; line-height: 22px; }
.sheet-head p { margin: 0; color: var(--muted); font-size: 13px; }

.campo { margin: 0 0 14px; }
.campo h3 { font-size: 14px; margin: 0 0 6px; }
.hint { color: var(--muted); font-size: 13px; }
.sent { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; min-height: 44px; }
.sent.veo { box-shadow: inset 3px 0 0 var(--terra); }
.sent.teacher { background: #f3f1ed; box-shadow: none; cursor: default; }
.lbl-teacher { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 650; }
.badge-draft { display: inline-block; background: #e7f0ea; color: var(--ok); font-size: 12px; font-weight: 650;
  border-radius: 999px; padding: 4px 10px; margin: 0 0 12px; }
.insuff-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0 0 12px; background: var(--card); }

.next { border: 0; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.next legend { font-weight: 650; font-size: 14px; padding: 0; margin: 0 0 4px; }
.next label { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.why { color: var(--muted); font-size: 13px; }
.ok { color: var(--ok); font-size: 14px; }

.pop { position: absolute; left: 12px; right: 12px; bottom: 72px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; box-shadow: 0 10px 30px rgba(36,28,22,.18); z-index: 6; }
.pop ul { margin: 8px 0 12px; padding-left: 18px; }
.pop p { margin: 0; }

.overlay { position: absolute; inset: 0; background: rgba(36,28,22,.4); display: flex; align-items: flex-end; z-index: 8; }
.sheet { width: 100%; max-height: 88%; overflow: auto; background: var(--card); border-radius: 16px 16px 0 0; padding: 16px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 8px;
  min-height: 56px; text-align: left; font-size: 13px; font-weight: 650; }
.write-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 8px 0; }
.write-box textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin: 8px 0; }
.pick li { min-height: 44px; display: flex; align-items: center; }
.elog-list { margin: 0; padding: 0; }
.elog { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.elog.priv { color: var(--muted); }

@media (max-width:768px){
  #veo{padding-bottom:140px;scroll-margin-bottom:140px}
  #veo h2,#veo p,#veo ol,#veo a,#veo figcaption{scroll-margin-bottom:140px}
  #veo.soft .wrap{display:flex;flex-direction:column;}
  #veo.soft .wrap > p:first-of-type{order:1;}
  #veo.soft .wrap > h2{order:2;}
  #veo.soft .wrap > p.lede{order:3;}
  #veo.soft .wrap > p:not(:first-of-type):not(.lede){order:4;}
  #veo.soft .wrap > ol{order:4;}
  #veo.soft .wrap > .project-shots{order:5;}
}

/* Phones: a two-line Spanish status line pushed the last roster row under the bottom button.
   Tighter padding inside each roster tile (avatar stays 44 px, tile stays above 44 px) wins the height back. */
@media (max-width:480px) and (max-height:860px){
  .grid .stu{padding:0 2px;gap:0;}
}
