/* Local classroom and school workspace. Touch targets remain usable on phones. */
.ws-space { min-width: 0; }
.ws-space h2,.ws-space h3,.ws-space strong,.ws-space p,.ws-space button { overflow-wrap: anywhere; }
.ws-local-note { margin: -8px 0 23px; border: 1px solid #dbe4d4; border-radius: 12px; background: #f2f5ec; }
.ws-local-note summary { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 11px 15px; font-size: 13px; color: #4e6b54; cursor: pointer; }
.ws-local-note summary svg { width: 17px; height: 17px; }
.ws-local-note p { padding: 0 15px 15px; color: #64745f; font-size: 13px; line-height: 1.8; }
.ws-class-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 10px; scroll-snap-type: x proximity; }
.ws-class-pill { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-width: 175px; max-width: 280px; padding: 12px; background: #fff; border: 1px solid #dfe7d8; border-radius: 12px; text-align: left; scroll-snap-align: start; }
.ws-class-pill strong,.ws-class-pill small { display: block; }
.ws-class-pill strong { font-size: 14px; }
.ws-class-pill small { color: #687762; margin-top: 4px; font-size: 12px; }
.ws-class-pill.is-active { border-color: #176e65; background: #eaf3ec; box-shadow: inset 0 0 0 1px #176e65; }
.ws-mini-symbol { display: grid; place-items: center; width: 32px; height: 38px; flex: 0 0 32px; color: var(--teal); }
.ws-class-banner { display: flex; align-items: center; gap: 13px; padding: 21px; border-radius: 18px; background: #e8eddf; margin-bottom: 21px; }
.ws-class-banner>div:nth-child(2) { flex: 1; min-width: 0; }
.ws-class-banner h2 { margin: 7px 0 6px; font-size: 24px; }
.ws-class-banner p { font-size: 13px; color: #607658; }
.ws-class-banner-icon { display: grid; place-items: center; flex: 0 0 48px; height: 54px; color: var(--teal); border-radius: 14px; background: #ffffffa8; }
.ws-class-banner-icon svg { width: 28px; height: 28px; }
.ws-label { display: inline-flex; padding: 4px 8px; border-radius: 6px; background: #eef3e7; color: #4b704d; font-size: 12px; line-height: 1.55; }
.ws-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; padding: 5px; margin: 0 0 21px; border: 1px solid #e2e6dd; background: #eeefe7; border-radius: 12px; }
.ws-tabs button { display: flex; justify-content: center; align-items: center; gap: 8px; min-width: 0; min-height: 46px; border: 0; border-radius: 8px; background: transparent; color: #647260; font-size: 14px; font-weight: 600; }
.ws-tabs button.is-active { background: #fff; color: #176e65; box-shadow: 0 2px 6px #183b3a0b; }
.ws-tabs svg { width: 17px; height: 17px; }
.ws-panel { margin: 0 0 21px !important; }
.ws-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.ws-panel-head>div { min-width: 0; }
.ws-panel-head h2 { font-size: 20px; }
.ws-panel-head p { margin-top: 7px; color: #67785f; font-size: 13px; line-height: 1.7; }
.ws-space .btn { white-space: normal; min-height: 44px; font-size: 14px; }
.ws-space .btn.small { min-height: 44px; font-size: 13px; padding: 9px 11px; }
.ws-date-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; margin-bottom: 20px; }
.ws-date-form>.ws-form-error { grid-column: 1/-1; }
.ws-date-form .field input { font-size: 16px; min-height: 44px; }
.ws-counts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 19px 0; }
.ws-counts>div { padding: 11px 5px; border-radius: 10px; background: #f1f4ec; text-align: center; }
.ws-counts>div:nth-child(2) { background: #f8efe6; }
.ws-counts>div:nth-child(3) { background: #f0ebf4; }
.ws-counts strong { display: block; font-size: 22px; line-height: 1.2; }
.ws-counts span { display: block; margin-top: 5px; font-size: 12px; color: #667560; }
.ws-roster { display: grid; gap: 10px; }
.ws-student-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; border: 1px solid #e4e8de; border-radius: 12px; background: #fdfdf9; }
.ws-student-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ws-student-identity strong { min-width: 0; font-size: 14px; }
.ws-avatar { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; font-size: 23px; border-radius: 13px; background: #edf2e4; }
.ws-attendance-options { display: flex; gap: 3px; }
.ws-attendance-button { min-height: 44px; min-width: 54px; padding: 9px 6px; border: 1px solid transparent; background: #eef1e8; border-radius: 7px; font-size: 12px; color: #677260; }
.ws-attendance-button.is-active { color: #fff; background: #176e65; }
.ws-attendance-button[data-status="absent"].is-active { background: #a66346; }
.ws-attendance-button[data-status="excused"].is-active { background: #85728b; }
.ws-footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 21px; }
.ws-footer-actions>.btn { flex: 1 1 120px; }
.ws-caption { margin-top: 16px; color: #6e7c66; font-size: 12px; line-height: 1.8; }
.ws-kind-note { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border-radius: 12px; background: #f8ede5; color: #8b604a; margin-bottom: 18px; }
.ws-kind-note svg { margin-top: 3px; width: 21px; height: 21px; }
.ws-kind-note p { font-size: 14px; line-height: 1.7; }
.ws-badge-key { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 23px; }
.ws-badge-key span { font-size: 12px; padding: 7px 8px; background: #f3f5ed; border-radius: 8px; color: #5e7854; }
.ws-celebrate-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.ws-celebrate-card { display: flex; align-items: center; flex-direction: column; text-align: center; min-width: 0; padding: 16px 9px 10px; border: 1px solid #e0e7d8; border-radius: 14px; background: #f9fbf5; }
.ws-celebrate-card .ws-avatar { width: 55px; height: 55px; flex-basis: 55px; font-size: 30px; margin-bottom: 10px; }
.ws-celebrate-card strong { font-size: 14px; }
.ws-earned-marks { display: flex; flex-wrap: wrap; min-height: 32px; justify-content: center; align-items: center; gap: 5px; margin: 9px 0; }
.ws-earned-marks>span { font-size: 20px; }
.ws-earned-marks .ws-no-marks { font-size: 11px; color: #788572; }
.ws-celebrate-card>.btn { width: 100%; font-size: 12px; }
.ws-manage { padding: 0; border: 1px solid #dce5d4; border-radius: 12px; background: #f5f7ef; margin-bottom: 21px; }
.ws-manage>summary { min-height: 48px; padding: 13px 16px; color: #496d46; font-size: 14px; cursor: pointer; }
.ws-manage>.btn { margin: 10px 9px 13px; }
.ws-manage-list { margin: 0 16px; }
.ws-manage-list>div { display: flex; align-items: center; gap: 5px; padding: 9px 0; border-top: 1px solid #e0e7d8; }
.ws-manage-list>div>span { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.ws-manage-list .btn { font-size: 12px; padding-inline: 8px; }
.ws-plan-limit { font-size: 13px; color: #6d7b63; margin: 19px 0; line-height: 1.8; }
.ws-empty { text-align: center; padding: 21px; color: #61755c; }
.ws-empty p { font-size: 14px; line-height: 1.8; }
.ws-empty .btn { margin-top: 22px; }
.ws-large-symbol { display: grid; place-items: center; margin: 0 auto 20px; width: 65px; height: 65px; border-radius: 18px; background: #e9f0df; color: var(--teal); }
.ws-large-symbol svg { width: 31px; height: 31px; }
.ws-board-list { display: grid; gap: 13px; }
.ws-board-card { padding: 17px; background: #f7f9f1; border: 1px solid #e1e7d9; border-radius: 13px; }
.ws-board-card.is-pinned { background: #edf4e8; border-color: #cfdcbe; }
.ws-board-card.is-complete { background: #f2f5ec; }
.ws-board-card.is-complete h3::before { content: '✓ '; color: #176e65; }
.ws-board-card>.ws-label { margin-bottom: 10px; }
.ws-board-card h3 { font-size: 16px; margin-bottom: 10px; }
.ws-board-card p { font-size: 14px; line-height: 1.8; color: #61735a; }
.ws-meta-row { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 11px; }
.ws-meta-row>span:nth-child(2) { font-size: 12px; color: #6c7a62; }
.ws-note-actions { display: flex; flex-wrap: wrap; gap: 3px; margin: 13px -9px -8px; }
.ws-note-actions>.btn.small { font-size: 12px; padding-inline: 9px; }
.ws-school-hero { position: relative; padding: 31px; border-radius: 20px; background: #e6eddd; border: 1px solid #dce5d2; overflow: hidden; }
.ws-school-hero>.ws-label { background: #ffffffc4; }
.ws-school-hero h2 { margin: 17px 0 14px; font-size: 31px; letter-spacing: -.8px; line-height: 1.2; max-width: 360px; }
.ws-school-hero p { font-size: 15px; color: #627a58; line-height: 1.8; max-width: 330px; margin-bottom: 25px; }
.ws-school-symbol { position: absolute; display: grid; place-items: center; right: 26px; top: 25px; width: 55px; height: 55px; border-radius: 16px; background: #ffffffa8; color: #176e65; }
.ws-school-symbol svg { width: 29px; height: 29px; }
.ws-preview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 21px 0; }
.ws-preview-grid .panel { margin: 0; padding: 21px; }
.ws-preview-grid h3 { font-size: 17px; line-height: 1.4; margin-bottom: 12px; }
.ws-preview-grid p { font-size: 14px; line-height: 1.8; color: #63765c; }
.ws-preview-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 11px; color: #176e65; background: #ecf1e4; }
.ws-preview-grid article:nth-child(2) .ws-preview-icon { background: #f7e9df; color: #b65f3d; }
.ws-preview-grid article:nth-child(3) .ws-preview-icon { background: #eee8f2; color: #8a759b; }
.ws-demo-explainer { padding: 21px; border-radius: 13px; background: #f0f3e8; }
.ws-demo-explainer strong { font-size: 15px; }
.ws-demo-explainer p { margin-top: 9px; font-size: 14px; color: #64735d; line-height: 1.8; }
.ws-school-banner { display: flex; justify-content: space-between; gap: 17px; padding: 24px; margin-bottom: 18px; border-radius: 17px; background: #e7eedf; }
.ws-school-banner>div { min-width: 0; }
.ws-school-banner h2 { font-size: 25px; margin: 13px 0 10px; }
.ws-school-banner p { font-size: 13px; color: #5e7756; line-height: 1.7; }
.ws-school-banner>span { display: grid; place-items: center; flex: 0 0 48px; height: 48px; background: #ffffff9e; color: #176e65; border-radius: 13px; }
.ws-school-banner>span svg { width: 27px; height: 27px; }
.ws-school-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0 0 22px; }
.ws-school-shortcuts a,.ws-school-shortcuts button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 9px 5px; border: 1px solid #dce5d2; border-radius: 9px; background: #fff; color: #176e65; font-size: 12px; text-align: center; }
.ws-school-shortcuts svg { width: 16px; height: 16px; }
.ws-channel-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.ws-channel-tabs button { min-height: 44px; padding: 10px 13px; border: 1px solid #dde5d4; border-radius: 9px; background: #f7f9f1; color: #65775c; font-size: 14px; }
.ws-channel-tabs button.is-active { background: #176e65; color: #fff; border-color: #176e65; }
.ws-chat-stream { display: grid; gap: 14px; }
.ws-chat-message { padding: 16px 17px 11px; background: #f1f5e9; border-radius: 13px; }
.ws-chat-message>div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 9px; }
.ws-chat-message strong { font-size: 14px; }
.ws-chat-message>div>span { font-size: 11px; color: #75836a; }
.ws-chat-message p { font-size: 14px; line-height: 1.8; color: #5d7354; }
.ws-chat-message>.btn { margin-top: 7px; padding-left: 0; font-size: 12px; }
.ws-event-list { display: grid; gap: 15px; }
.ws-event { display: flex; align-items: flex-start; gap: 15px; padding: 15px 0; border-top: 1px solid #e6ebdf; }
.ws-event-day { display: flex; flex-direction: column; text-align: center; justify-content: center; width: 54px; min-height: 65px; flex: 0 0 54px; background: #f5e9db; border-radius: 12px; color: #a66c45; }
.ws-event-day strong { font-size: 24px; line-height: 1.2; }
.ws-event-day span { font-size: 12px; text-transform: capitalize; }
.ws-event-copy { min-width: 0; flex: 1; }
.ws-event-copy h3 { margin-bottom: 7px; font-size: 16px; }
.ws-event-copy p { color: #63785a; font-size: 13px; line-height: 1.75; }
.ws-event-copy p+p { margin-top: 7px; }
.ws-teacher-list { display: grid; gap: 12px; }
.ws-teacher { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #e6eadf; }
.ws-teacher>div { flex: 1; min-width: 0; }
.ws-teacher strong,.ws-teacher>div>span { display: block; }
.ws-teacher strong { font-size: 14px; }
.ws-teacher>div>span { font-size: 12px; color: #748269; margin-top: 4px; }
.ws-teacher .btn.small { padding-inline: 5px; font-size: 11px; }
.ws-teacher .btn svg { width: 16px; height: 16px; }
.ws-mark-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.ws-mark-choice { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 17px 12px; min-height: 120px; gap: 12px; border: 1px solid #dce5d2; border-radius: 13px; background: #f4f7ed; }
.ws-mark-choice>span { font-size: 36px; }
.ws-mark-choice strong { font-size: 14px; }
.ws-check-label { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 17px; color: #537249; font-size: 14px; }
.ws-check-label input { width: 19px; height: 19px; accent-color: #176e65; }
.ws-form-error:not(:empty) { margin-top: 14px; }
.ws-report-entry { display: flex; align-items: center; gap: 10px; width: 100%; padding: 15px; margin-bottom: 21px; border: 1px solid #dce6d3; border-radius: 13px; background: #edf3e6; text-align: left; }
.ws-report-entry>span:nth-child(2) { min-width: 0; flex: 1; }
.ws-report-entry strong,.ws-report-entry small { display: block; }
.ws-report-entry strong { font-size: 15px; }
.ws-report-entry small { margin-top: 5px; font-size: 13px; color: #617859; }
.ws-report-preview { padding: 17px; border-radius: 13px; background: #f0f5e8; margin-bottom: 19px; }
.ws-report-preview h3 { margin: 14px 0 !important; font-size: 17px; }
.ws-report-preview .ws-counts { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 0; }
.ws-report-preview .ws-counts>div { background: #ffffffb3; }
.ws-report-preview .ws-counts span { font-size: 11px; }
#ws-class-form .field+.field,#ws-student-form .field+.field,#ws-note-form .field+.field,#ws-school-form .field+.field,#ws-notice-form .field+.field,#ws-event-form .field+.field,#ws-teacher-form .field+.field { margin-top: 17px; }
#ws-class-form .form-grid>.field,#ws-event-form .form-grid>.field { margin-top: 0; }
@media(max-width:600px) {
 .ws-class-banner { flex-wrap: wrap; padding: 20px; gap: 11px; }
 .ws-class-banner-icon { flex-basis: 42px; height: 48px; }
 .ws-class-banner>.btn { margin-left: 48px; }
 .ws-class-banner h2 { font-size: 23px; }
 .ws-tabs button { gap: 5px; font-size: 13px; }
 .ws-student-row { flex-wrap: wrap; padding: 12px; }
 .ws-student-identity { width: 100%; }
 .ws-attendance-options { width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 1px; gap: 6px; }
 .ws-attendance-button { font-size: 13px; }
 .ws-celebrate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .ws-panel-head { gap: 8px; }
 .ws-panel-head h2 { font-size: 19px; }
 .ws-panel-head>.btn { flex-shrink: 0; font-size: 12px; padding-inline: 9px; }
 .ws-counts { gap: 6px; }
 .ws-counts strong { font-size: 23px; }
 .ws-preview-grid { gap: 12px; }
 .ws-preview-grid .panel { padding: 18px; }
 .ws-preview-grid h3 { font-size: 16px; }
 .ws-preview-grid p { font-size: 13px; }
 .ws-school-hero { padding: 25px; }
 .ws-school-hero h2 { margin-top: 25px; font-size: 30px; }
 .ws-school-symbol { right: 21px; top: 19px; width: 42px; height: 42px; }
 .ws-school-symbol svg { width: 23px; height: 23px; }
 .ws-school-banner { padding: 21px; }
 .ws-school-banner h2 { font-size: 24px; }
 .ws-school-banner>span { flex-basis: 39px; height: 43px; }
 .ws-school-shortcuts { gap: 7px; }
 .ws-school-shortcuts a,.ws-school-shortcuts button { flex-direction: column; gap: 5px; font-size: 12px; padding: 10px 5px; }
 .ws-teacher { flex-wrap: wrap; }
 .ws-teacher>.btn { flex: 1 1 80px; margin-left: 49px; }
 .ws-teacher>.btn:last-child { margin-left: 0; }
 .ws-teacher>div { flex-basis: calc(100% - 54px); }
 .ws-manage-list>div { flex-wrap: wrap; }
 .ws-manage-list>div>span { flex-basis: 100%; }
 .ws-manage-list .btn { flex: 1; }
 .ws-event { gap: 11px; }
 .ws-event-day { width: 46px; flex-basis: 46px; min-height: 59px; }
 .ws-event-copy h3 { font-size: 15px; }
}
@media(max-width:360px) {
 .ws-school-hero h2 { font-size: 26px; }
 .ws-preview-grid { grid-template-columns: minmax(0,1fr); }
 .ws-panel-head { flex-wrap: wrap; }
 .ws-panel-head>.btn { flex-basis: 100%; }
 .ws-class-banner-icon { display: none; }
 .ws-class-banner>.btn { margin-left: 0; }
 .ws-celebrate-grid { gap: 8px; }
 .ws-celebrate-card { padding-inline: 5px; }
 .ws-celebrate-card>.btn { font-size: 11px; padding-inline: 5px; }
 .ws-tabs button { font-size: 12px; }
}
