/* finesse · register=product · A=mist-white+mint+violet · B=system-sans · C=overlap-header+single-form-column · D=canvas-preview+empty-state · E=classroom-board · SOUL=6 SPECTACLE=2 DENSITY=7 */
    :root {
      color-scheme: light;
      --page: #f7fbf8;
      --panel: #fbfefc;
      --panel-soft: #f2faf5;
      --panel-input: #fbfdfc;
      --line: #dfeae4;
      --ink: #20332c;
      --muted: #6f8279;
      --accent: #48bf8d;
      --accent-strong: #299b70;
      --accent-soft: #e7f7ed;
      --on-accent: #f8fffb;
      --accent-alt: #8e86d8;
      --success: #2c7a8c;
      --danger: #b94b42;
      --warning: #f2c842;
      --radius: 8px;
      --font: "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
    }
    * { box-sizing: border-box; }
    html, body { margin: 0; min-width: 320px; overflow-x: clip; }
    body { color: var(--ink); background: var(--page); font: 16px/1.5 var(--font); }
    button, input, select, textarea { font: inherit; }
    button { min-height: 44px; cursor: pointer; touch-action: manipulation; }
    button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(38, 157, 116, .35); outline-offset: 2px; }
    [hidden] { display: none !important; }
    button:active { transform: translateY(1px); }
    button:disabled { cursor: not-allowed; opacity: .55; }
    .prototype { width: min(100%, 1200px); margin: 0 auto; background: var(--page); min-height: 100dvh; }
    .hero { min-height: 210px; padding: 22px 34px 86px; color: #fafffc; --hero-background: linear-gradient(120deg, #eaf9e9 0%, #f1faf7 58%, #e9f8fd 100%); }
    .hero-lock { position: absolute; top: 60px; right: 34px; display: flex; justify-content: flex-end; color: #89908d; }
    .hero-lock svg { width: 22px; height: 26px; }
    .hero h1 { margin: 58px 0 6px; color: #272d2b; font-size: 36px; line-height: 1.2; font-weight: 400; overflow-wrap: anywhere; }
    .hero-summary { min-height: 25px; margin: 0; color: #737d78; font-size: 15px; }
    .main { position: relative; margin-top: -62px; padding: 0 26px 48px; }
    .identity-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 20px 24px; border-radius: 22px; background: rgba(255,255,255,.9); }
    .identity-control { min-width: 0; display: grid; grid-template-columns: 54px minmax(0,1fr) 48px 48px; grid-template-rows: 48px; gap: 6px 10px; align-items: center; }
    .field-label { color: var(--muted); font-size: 14px; font-weight: 400; }
    .identity-control > .field-label { display: none; }
    .field { min-width: 0; display: grid; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 400; }
    .field select, .field input, .field textarea { width: 100%; min-width: 0; border: 1px solid transparent; border-radius: 22px; background: var(--panel-input); color: var(--ink); }
    .field select, .field input { min-height: 46px; padding: 0 13px; }
    .field textarea { min-height: 96px; padding: 11px 13px 24px; resize: vertical; }
    .field select:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); outline: 0; }
    .identity-select { display: contents; }
    .identity-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #69c97f; color: #fff; }
    .teacher-control .identity-icon { background: #f5ae4e; }
    .identity-icon svg { width: 30px; height: 30px; }
    .identity-select .identity-icon { grid-column: 1; grid-row: 1; }
    .identity-select select { grid-column: 2; grid-row: 1; width: 100%; min-width: 0; height: 48px; padding: 0 38px 0 18px; border: 1px solid #a9c8b8; border-radius: 999px; appearance: none; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%235c7569' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; color: var(--ink); font-size: 16px; font-weight: 400; cursor: pointer; }
    .identity-select select:hover { border-color: var(--accent-strong); }
    .identity-dropdown { grid-column: 2; grid-row: 1; position: relative; min-width: 0; }
    .identity-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 48px; padding: 0 18px; border: 1px solid #a9c8b8; border-radius: 999px; background: #fff; color: var(--ink); text-align: left; font-size: 16px; font-weight: 400; }
    .identity-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .identity-trigger svg { width: 16px; height: 16px; flex-shrink: 0; color: #5c7569; }
    .identity-trigger:hover, .identity-trigger[aria-expanded="true"] { border-color: var(--accent-strong); }
    .identity-options { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; right: 0; max-height: 240px; overflow-y: auto; padding: 5px; border: 1px solid #a9c8b8; border-radius: 14px; background: #fff; }
    .identity-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 8px 12px; border-radius: 9px; cursor: pointer; overflow-wrap: anywhere; }
    .identity-option[aria-selected="true"] { background: var(--accent-soft); color: #237b58; }
    .identity-option[aria-selected="true"]::after { content: "✓"; flex-shrink: 0; }
    .identity-option:hover, .identity-option.is-active { background: #d6efdf; color: #237b58; }
    .mini-action { grid-row: 1; display: grid; place-items: center; width: 48px; height: 48px; min-height: 48px; padding: 0; border: 1px solid #91c9ad; border-radius: 50%; background: var(--accent-soft); color: #237b58; }
    .add-class, .add-teacher { grid-column: 3; }
    .delete-class, .delete-teacher { grid-column: 4; border-color: #e9c5c0; background: #fff8f7; color: var(--danger); }
    .mini-action svg { width: 20px; height: 20px; }
    .mini-action:hover { background: #d6efdf; border-color: var(--accent-strong); }
    .delete-class:hover, .delete-teacher:hover { background: #fce9e6; border-color: var(--danger); }
    .section { margin-top: 27px; }
    .section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px 12px; }
    .section-title h2 { margin: 0; font-size: 23px; line-height: 1.3; font-weight: 400; text-wrap: balance; }
    .editor-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 26px 4px 12px; }
    .editor-head h2 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 400; }
    .item-count { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .add-item { padding: 0 16px; border: 1px solid rgba(38,157,116,.2); border-radius: 999px; background: var(--panel); color: var(--accent-strong); font-size: 14px; font-weight: 400; white-space: nowrap; }
    .add-item:hover, .secondary:hover { background: var(--accent-soft); }
    .items { display: grid; gap: 12px; }
    .item-card { position: relative; padding: 18px 20px 16px; border: 1px solid #e2f0e6; border-radius: 22px; background: linear-gradient(145deg, #effaf3, #f5fbf6); transition: border-color .16s ease; }
    .item-card:focus-within { border-color: #a6ddbf; }
    .item-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
    .item-heading strong { font-size: 20px; line-height: 1.3; font-weight: 400; }
    .item-card-count { color: var(--ink); font-size: 20px; font-weight: 400; white-space: nowrap; }
    .item-heading .item-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 40px; border-radius: 13px; background: var(--item-type-soft, #dff4e8); color: var(--item-type-color, var(--accent)); }
    .item-progress { height: 4px; margin: 0 0 15px 52px; border-radius: 4px; background: rgba(255,255,255,.9); }
    .item-progress span { display: block; width: 17%; height: 100%; border-radius: inherit; background: var(--accent); }
    .item-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
    .content-field { grid-column: 1 / -1; }
    .counter-row { display: flex; justify-content: flex-end; align-items: center; gap: 10px; min-height: 23px; margin-top: -2px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
    .remove-item { min-width: 44px; min-height: 36px; margin-left: auto; padding: 0 5px; border: 0; border-radius: 6px; background: transparent; color: var(--danger); font-size: 12px; }
    .remove-item:hover { text-decoration: underline; }
    .form-actions { display: flex; gap: 10px; margin-top: 10px; }
    .primary, .secondary { min-height: 46px; padding: 0 20px; border-radius: 24px; font-weight: 400; }
    .primary { border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); }
    .primary:hover { border-color: var(--accent-strong); background: var(--accent-strong); }
    .secondary { border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
    .message { min-height: 22px; margin-top: 9px; color: var(--accent-strong); font-size: 13px; }
    .preview-shell { padding: 0; border: 1px solid #e6dcff; border-radius: 20px; background: #f5f0ff; }
    .preview-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 5px; background: #f1ebff; }
    .preview-empty { min-height: 162px; display: grid; grid-template-columns: 140px minmax(0,1fr); align-items: center; gap: 22px; padding: 16px 22px; color: #7563ba; }
    .preview-empty svg { width: 136px; height: 112px; }
    .preview-empty strong { display: block; margin-bottom: 7px; font-size: 18px; }
    .preview-empty span { display: block; color: #8279a5; font-size: 14px; }
    .preview-stage { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; }
    .preview-caption { margin: 8px 12px 9px; color: var(--muted); font-size: 12px; }
    .device-panel, .history-panel { padding: 17px 18px; border-radius: var(--radius); background: var(--panel); }
    .panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
    .panel-title h2 { margin: 0; font-size: 19px; font-weight: 400; }
    .status-badge { min-height: 29px; display: inline-flex; align-items: center; padding: 2px 9px; border: 1px solid #d8e7df; border-radius: 16px; background: #f2f8f4; color: var(--success); font-size: 12px; white-space: nowrap; }
    .device-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
    .device-grid div { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 8px; padding: 10px; border: 1px solid #e8f1ec; border-radius: 15px; background: #f6fbf8; }
    .device-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #fff; }
    .device-grid div:nth-child(1) .device-icon { background: #6acb91; }
    .device-grid div:nth-child(2) .device-icon { background: #f3b34f; }
    .device-grid div:nth-child(3) .device-icon { background: #78a9e8; }
    .device-grid dt { color: var(--muted); font-size: 12px; }
    .device-grid dd { margin: 3px 0 0; color: var(--ink); font-size: 14px; font-weight: 400; overflow-wrap: anywhere; }
    .history-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
    .history-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
    .history-list .history-empty { min-height: 108px; justify-content: center; align-items: center; border-radius: 16px; border-top: 0; background: rgba(255,255,255,.62); text-align: center; }
    .desktop-rail { min-width: 0; display: grid; align-content: start; gap: 20px; }
    .history-meta { color: var(--muted); font-size: 12px; }
    .history-state { color: var(--success); font-size: 12px; text-align: right; }
    @media (min-width: 820px) {
      .prototype { padding-bottom: 20px; }
      .main { padding-right: 34px; padding-left: 34px; }
      .hero { padding-right: 46px; padding-left: 46px; }
      .hero h1 { font-size: 40px; }
    }
    @media (min-width: 1040px) {
      .hero { min-height: 260px; padding-bottom: 54px; }
      .main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); align-items: start; gap: 18px 30px; margin-top: -62px; }
      .identity-panel { grid-column: 1 / -1; }
      .collaboration-panel { grid-row: 2; margin-top: 0; }
      .section[aria-labelledby="contentTitle"] { grid-column: 1; grid-row: 3; min-width: 0; margin-top: 0; }
      .desktop-rail { grid-column: 2; grid-row: 3; }
      .identity-panel { padding: 20px 28px; }
      .section[aria-labelledby="contentTitle"] .item-card { padding: 16px; }
      .device-grid div { grid-template-columns: 36px minmax(0,1fr); padding: 8px; }
    }
    @media (max-width: 760px) {
      .identity-panel { grid-template-columns: minmax(0,1fr); gap: 18px; }
    }
    @media (max-width: 520px) {
      .hero { min-height: 202px; padding: 16px 24px 50px; --hero-background: linear-gradient(122deg, #eaf9e9 0%, #f4fbf7 57%, #eaf8fc 100%); }
      .hero-lock { top: 52px; right: 24px; }
      .hero h1 { margin-top: 36px; font-size: 32px; }
      .hero-summary { max-width: 350px; font-size: 13px; }
      .main { margin-top: -81px; padding: 0 24px 30px; }
      .identity-panel { padding: 16px 14px; border-radius: 20px; }
      .identity-control { grid-template-columns: 34px minmax(0,1fr) 42px 42px; grid-template-rows: 46px; column-gap: 7px; }
      .field-label { font-size: 12px; }
      .identity-control > .field-label { grid-column: 2; grid-row: 1; }
      .identity-icon { width: 34px; height: 34px; }
      .identity-icon svg { width: 23px; height: 23px; }
      .identity-select select { height: 46px; padding: 0 32px 0 14px; background-position: right 13px center; background-size: 14px; font-size: 14px; }
      .identity-trigger { height: 46px; padding: 0 14px; font-size: 14px; }
      .mini-action { width: 42px; height: 42px; min-height: 42px; }
      .desktop-rail { display: contents; }
      .section { margin-top: 20px; }
      .section-title h2, .editor-head h2 { font-size: 21px; }
      .section-title { margin-bottom: 11px; }
      .editor-head { margin: 22px 2px 11px; }
      .editor-head h2 { font-size: 22px; }
      .item-count { font-size: 15px; }
      .item-card { padding: 15px 14px 12px; border-radius: 21px; }
      .item-heading { gap: 9px; margin-bottom: 8px; }
      .item-heading .item-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; }
      .item-heading strong { font-size: 19px; }
      .item-card-count { margin-left: 3px; font-size: 19px; }
      .item-progress { margin-left: 52px; margin-bottom: 13px; }
      .item-fields { gap: 10px 12px; }
      .field { gap: 6px; font-size: 13px; }
      .field select, .field input { min-height: 42px; padding: 0 12px; }
      .field textarea { min-height: 52px; padding: 10px 12px 22px; }
      .type-field select, .subject-field input { padding-left: 39px; }
      .form-actions { gap: 15px; margin-top: 9px; }
      .primary, .secondary { flex: 1; min-width: 0; min-height: 48px; padding: 0 9px; border-radius: 28px; font-size: 14px; }
      .secondary { border-color: var(--accent); color: var(--accent-strong); }
      .preview-shell { padding: 0 0 1px; border-radius: 18px; }
      .preview-stage { aspect-ratio: auto; min-height: 100px; }
      .preview-empty { min-height: 100px; grid-template-columns: 74px minmax(0,1fr); gap: 13px; padding: 7px 8px; }
      .preview-empty svg { width: 72px; height: 74px; }
      .preview-empty strong { font-size: 16px; }
      .preview-empty span { font-size: 12px; }
      .device-panel, .history-panel { padding: 14px 12px; border-radius: 18px; }
      .device-grid { gap: 6px; }
      .device-grid div { grid-template-columns: minmax(0,1fr); justify-items: start; gap: 4px; padding: 8px 6px; border-radius: 14px; }
      .device-icon { width: 28px; height: 28px; }
      .device-grid dt { font-size: 10px; }
      .device-grid dd { font-size: 9px; overflow-wrap: anywhere; }
    }
    @media (max-width: 370px) {
      .identity-panel { grid-template-columns: minmax(0,1fr); }
      .item-fields { grid-template-columns: minmax(0,1fr); }
      .content-field { grid-column: 1; }
      .editor-head { align-items: center; flex-wrap: wrap; }
      .device-grid { grid-template-columns: minmax(0,1fr); }
      .device-grid div { grid-template-columns: 36px minmax(0,1fr); }
    }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Real teacher page: authentication, API messages, and server-rendered wallpaper. */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; top: 0; bottom: -80px; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--hero-background); mask-image: linear-gradient(to bottom, #000 calc(100% - 160px), transparent); z-index: -1; }
.logout { position: absolute; top: 16px; right: 24px; min-height: 32px; padding: 0 12px; font-size: 12px; }
.item-subject-field { min-width: 0; display: grid; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 400; }
.item-subject-field input { width: 100%; min-width: 0; min-height: 46px; padding: 0 13px; border: 1px solid transparent; border-radius: 22px; background: var(--panel-input); color: var(--ink); }
.preview-stage img { display: block; width: 100%; height: auto; }
.preview-stage { aspect-ratio: auto; }
.preview-empty { display: grid; grid-template-columns: 1fr; min-height: 160px; text-align: center; }
.auth-gate { position: relative; margin-top: -48px; padding: 0 24px 40px; }
.auth-panel { width: min(100%, 420px); margin: auto; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.auth-panel h2 { font-weight: 400; font-size: 23px; }
.auth-panel form, .auth-panel label { display: grid; gap: 8px; }
.auth-panel form { gap: 16px; }
.auth-panel input { width: 100%; min-height: 46px; padding: 8px 14px; border: 1px solid #a9c8b8; border-radius: 999px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.device-bind-card > div { min-width: 0; }
.device-grid .device-bind-card { grid-column: 1 / -1; grid-template-columns: 42px minmax(0,1fr); align-items: start; }
.device-bind-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.device-bind-form input { flex: 1 1 150px; min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid #a9c8b8; border-radius: 8px; background: white; color: var(--ink); }
.device-bind-form button { min-height: 42px; padding: 0 14px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: var(--on-accent); }
.device-bind-message { min-height: 20px; margin: 6px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.eyebrow, .helper { color: var(--muted); font-size: 14px; }
.auth-message { color: var(--danger); font-size: 14px; }
.auth-modes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 18px 0; }
.auth-modes .secondary { min-width: 0; padding: 0 10px; }
.auth-modes .is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.platform-panel { display: grid; width: min(100%, 980px); gap: 16px; }
.platform-panel h2, .platform-panel p { margin: 0; }
.platform-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4px 0 0; border-block: 1px solid var(--line); }
.platform-stats div { min-width: 0; padding: 14px 12px; border-right: 1px solid var(--line); }
.platform-stats div:last-child { border-right: 0; }
.platform-stats dt { color: var(--muted); font-size: 12px; }
.platform-stats dd { margin: 5px 0 0; color: var(--ink); font-size: 24px; font-weight: 400; }
.platform-section { display: grid; gap: 10px; padding-top: 4px; }
.platform-section + .platform-section { padding-top: 18px; border-top: 1px solid var(--line); }
.platform-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.platform-section-heading h3 { margin: 0; font-size: 16px; font-weight: 400; }
.platform-section-heading span { color: var(--muted); font-size: 12px; }
.platform-teacher-header, .platform-teacher-list li { display: grid; grid-template-columns: minmax(180px, 1.5fr) 100px minmax(150px, 1fr) 140px; align-items: center; gap: 12px; }
.platform-teacher-header { padding: 0 12px; color: var(--muted); font-size: 12px; }
.platform-teacher-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.platform-teacher-list li { min-height: 58px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.platform-teacher-identity { display: grid; min-width: 0; gap: 3px; }
.platform-teacher-identity strong { overflow: hidden; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.platform-teacher-identity small, .platform-authorization-date, .platform-class-access { color: var(--muted); font-size: 12px; }
.platform-authorization-status { justify-self: start; }
.status-active { color: #237b58; background: var(--accent-soft); }
.status-expired { color: var(--danger); background: #fff0ed; }
.status-unlicensed { color: var(--muted); background: var(--panel-soft); }
.platform-list-empty { display: block !important; color: var(--muted); font-size: 13px; text-align: center; }
.code-result { display: grid; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); }
.code-result span { color: var(--muted); font-size: 13px; }
.code-result code { color: var(--ink); font-size: 16px; }
.trial-code-history { display: grid; gap: 10px; }
.trial-code-history h3 { margin: 0; font-size: 15px; font-weight: 400; }
.trial-code-history ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.trial-code-history li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.trial-code-history li > span { display: grid; gap: 3px; }
.trial-code-history strong { font-size: 14px; font-weight: 400; }
.trial-code-history small, .trial-code-empty { color: var(--muted); font-size: 12px; }
.trial-code-revoke { min-height: 32px; padding: 0 12px; }
.empty-class-state { grid-column: 1 / -1; margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); text-align: center; }
.empty-class-state h2 { margin: 0 0 8px; font-size: 22px; font-weight: 400; }
.empty-class-state p { margin: 0 0 18px; color: var(--muted); }
.collaboration-panel { grid-column: 1 / -1; margin-top: 18px; }
.member-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.member-list li { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 7px 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.member-list small { color: var(--muted); }
.member-remove { min-height: 30px; padding: 0 8px; border: 0; border-radius: 999px; background: #fff0ed; color: var(--danger); font-size: 12px; }
.retention-notice, .cleanup-notice { padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; color: #237b58; background: var(--accent-soft); font-size: 13px; }
.retention-warning { border-color: #e5c991; color: #765415; background: #fff8e8; }
.status-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.status-confirmed { background: var(--accent-soft); color: #237b58; }
.status-failed { background: #fff0ed; color: var(--danger); }
.history-list strong, .history-list b { font-weight: 400; }
.history-list strong, .history-list span { overflow-wrap: anywhere; }
.history-list li > div { min-width: 0; }
.history-list li > div > span { display: block; color: var(--muted); font-size: 12px; }
.history-list b { color: var(--success); font-size: 12px; text-align: right; }
code { font: inherit; overflow-wrap: anywhere; }
@media (min-width: 1040px) {
  .device-grid div { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 520px) {
  .item-subject-field { gap: 6px; font-size: 13px; }
  .item-subject-field input { min-height: 42px; }
  .device-grid dd { font-size: 12px; }
  .preview-empty { min-height: 120px; }
}
@media (max-width: 720px) {
  .platform-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-stats div:nth-child(2) { border-right: 0; }
  .platform-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .platform-teacher-header { display: none; }
  .platform-teacher-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .platform-teacher-identity { grid-column: 1 / -1; }
  .platform-authorization-date { grid-column: 1; }
  .platform-class-access { grid-column: 2; text-align: right; }
}
