/* account.css — the account bar and the teacher view (P7). Reuses the Pryzmio tokens
   and the .raised depth/press from tokens.css; no new palette value, so contrast-check
   stays unchanged. Controls a student touches keep the 64px minimum target. */

/* ---- account bar ---- */
.account-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius);
  padding: 12px;
}
.account-bar:empty { display: none; }

.acct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.acct-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.acct-name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
}
.acct-class { font-family: var(--font-ui); font-size: 14px; color: var(--calm-text); }
.acct-code { font-weight: 700; letter-spacing: 0.08em; color: var(--ink); }

.acct-signin,
.acct-join {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}
.acct-chooser {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acct-input {
  flex: 1;
  min-width: 140px;
  min-height: var(--control-min);
  padding: 0 16px;
  font-family: var(--font-ui);
  font-size: 18px;
  background: var(--panel);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius);
}

.acct-btn {
  min-height: var(--control-min);
  padding: 0 20px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
.acct-signout,
.acct-teacher {
  min-height: 56px;
  padding: 0 18px;
}
.acct-make { background: var(--panel); }
.acct-teacher { background: var(--ink); color: var(--panel); }

.acct-save {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--calm-text);
}
.acct-save[data-state="saved"] { color: var(--calm-text); }
.acct-save[data-state="error"] { color: var(--calm-text); font-weight: 600; }

/* ---- teacher view: a full-screen record you read, over the app ---- */
.teacher-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--page);
  overflow: auto;
  padding: 16px;
}
.teacher-sheet[hidden] { display: none; }

.teacher-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.teacher-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
}
.teacher-close {
  min-height: var(--control-min);
  padding: 0 20px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  background: var(--panel);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius);
}

.teacher-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.teacher-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
}
.teacher-rowhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.teacher-student {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 18px;
}
.teacher-mode {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--calm-text);
  text-transform: capitalize;
}
.teacher-preview {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

.teacher-open {
  align-self: flex-start;
  min-height: 56px;
  padding: 0 20px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
}
.teacher-back { align-self: flex-start; }
.teacher-hear { background: var(--ink); color: var(--panel); }

.teacher-read {
  background: var(--panel);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.teacher-read-para {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
}

.teacher-empty,
.teacher-loading {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--calm-text);
}
.teacher-retention {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
  color: var(--calm-text);
  border-top: var(--border-width) solid var(--calm);
  padding-top: 12px;
  margin-top: 4px;
}

@media (min-width: 600px) {
  .teacher-toolbar { max-width: 640px; margin-left: auto; margin-right: auto; }
}
