.progress-subject { position: relative; z-index: 2; min-height: 32px; font-weight: 700; line-height: 1.4; transition: background .18s, box-shadow .18s; }
.progress-subject:hover { background: #eae0c3; box-shadow: 0 2px 6px #8d79521a; }
.progress-subject:active { background: #e1d4ad; }
.progress-subject[data-bound="true"] { background: #e1efe4; color: #326753; font-variant-numeric: tabular-nums; }
.progress-subject[data-bound="true"]:hover { background: #d1e6d7; }
.cloud-setting { flex-wrap: wrap; gap: 6px; }
.cloud-setting small { font-size: 11px; color: #357b6b; margin-left: auto; }
#board-set-btn[data-sync-error="true"] { position: relative; }
#board-set-btn[data-sync-error="true"]::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: #d99635; box-shadow: 0 0 0 2px #fff; }
.classroom-dialog { width: min(620px,calc(100% - 24px)); padding: clamp(18px,3vw,30px); }
.classroom-dialog .game-dialog-header { align-items: center; margin-bottom: 10px; }
.classroom-dialog h2 { font-size: clamp(22px,3vw,28px); }
.classroom-message { background: #e9f4eb; color: #326753; border-radius: 14px; padding: 12px 16px; font-size: 15px; line-height: 1.6; min-height: 24px; }
.classroom-message[data-error="true"] { background: #fff1df; color: #8b4e1e; }
.classroom-digits { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 12px; margin-top: 18px; }
.classroom-dialog label { display: grid; gap: 8px; color: #405b54; font-size: 14px; font-weight: 700; }
.classroom-dialog input { box-sizing: border-box; width: 100%; min-width: 0; border: 2px solid #dce7db; background: #fff; color: #254f45; border-radius: 13px; padding: 12px; font: inherit; outline: none; }
.classroom-digits input { text-align: center; font-size: clamp(20px,3vw,26px); letter-spacing: .07em; font-variant-numeric: tabular-nums; }
.classroom-dialog input:focus, .classroom-digits input.is-active { border-color: #6bad91; box-shadow: 0 0 0 3px #a8dac43d; }
#classroom-login { position: relative; }
.classroom-login-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; }
.classroom-login-heading strong { font-size: 18px; color: #305a49; }
.classroom-login-heading > span { color: #63786b; font-size: 12px; }
.classroom-keypad { position: absolute; z-index: 5; width: 280px; padding: 12px; border: 1px solid #c9dbc6; border-radius: 18px; background: #eaf0e3; box-shadow: 0 12px 30px #254f4529; }
.classroom-keypad::before { content: ""; position: absolute; top: -7px; left: calc(var(--keypad-arrow, 50%) - 6px); width: 12px; height: 12px; transform: rotate(45deg); background: #eaf0e3; border-top: 1px solid #c9dbc6; border-left: 1px solid #c9dbc6; }
.classroom-keypad-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #4c6c5b; font-size: 13px; margin-bottom: 8px; }
.classroom-keypad-close { width: 30px; height: 30px; border-radius: 50%; background: #d5e3d0; font-size: 22px; }
.classroom-digits input:disabled { background: #f0f2ed; color: #89968e; }
.classroom-user-name { background: transparent; color: #34765b; border-bottom: 1px dashed #84a88b; padding: 5px 6px; font-size: 17px; }
.classroom-user-name::after { content: " ✎"; font-size: 14px; }
.classroom-profile-form { width: min(100%, 340px); }
.classroom-profile-form .classroom-button-row { margin-bottom: 0; }
#classroom-keypad-buttons { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.classroom-key { border: 0; border-radius: 12px; min-height: 48px; background: #fffef9; color: #325b4d; box-shadow: 0 2px 0 #cbd9c9; font-family: inherit; font-size: 24px; font-weight: 800; line-height: 1.1; touch-action: manipulation; }
.classroom-key[data-key="back"], .classroom-key[data-key="next"] { font-size: 17px; background: #d4e8d9; }
.classroom-key:active { transform: translateY(2px); box-shadow: none; }
.classroom-nickname { margin-top: 14px; }
.classroom-nickname small { font-weight: 400; color: #65786d; margin-left: 6px; }
.classroom-tip { font-size: 13px; line-height: 1.7; color: #657565; }
.classroom-enter { width: 100%; min-height: 50px; font-size: 17px; }
.classroom-local { display: block; margin: 18px auto 0; color: #63786b; background: none; border: none; padding: 8px; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.classroom-pass { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 22px 0; border: 2px dashed #b9cdb2; background: #fffaf0; padding: 22px; border-radius: 20px; color: #477059; }
.classroom-pass strong { font-size: clamp(36px,8vw,54px); color: #305a49; letter-spacing: .16em; padding-left: .16em; }
.classroom-button-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.classroom-button-row .button { flex: 1; white-space: nowrap; justify-content: center; min-height: 44px; }
.classroom-export { margin-top: 18px; }
.classroom-export h3 { display: none; }
.classroom-date-row { display: flex; gap: 10px; align-items: end; }
.classroom-date-row label { flex: 1; min-width: 0; }
.classroom-date-row > span { padding-bottom: 14px; }
.classroom-conflict { background: #fff0da; padding: 16px; border-radius: 16px; color: #815023; margin-top: 16px; }
.classroom-conflict p, #classroom-seed p { font-size: 14px; line-height: 1.7; }
.classroom-conflict small { line-height: 1.7; display: block; }
.classroom-drafts:empty { display: none; }
.classroom-drafts { font-size: 13px; color: #66715e; border-top: 1px solid #dbe4d4; padding-top: 12px; margin-top: 16px; }
.classroom-drafts button { margin: 6px 0; font: inherit; }
@media (max-width:480px) { .classroom-digits { gap: 7px; } .classroom-digits label { font-size: 12px; } .classroom-digits input { padding: 12px 4px; } .classroom-button-row { gap: 7px; } }
@media (max-height:730px) { .classroom-key { min-height: 37px; } .classroom-dialog { padding: 15px 20px; } .classroom-keypad { padding: 9px; } .classroom-tip { margin: 10px 0; } }
