.class-control{max-width:70%;overflow:hidden}.class-tiles{display:flex;gap:6px;overflow-x:auto;padding:2px}.class-tile{min-width:54px;height:40px;border:1px solid var(--line);border-radius:11px;background:white;color:var(--ink);font-weight:820;cursor:pointer}.class-tile.active{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 5px 14px rgba(23,90,184,.24)}
.bell-tabs{display:flex;align-items:center;gap:5px;margin-top:8px}.bell-tabs button{border:0;border-radius:9px;background:#edf2f7;color:var(--muted);padding:6px 10px;font-weight:750;cursor:pointer}.bell-tabs button.active{background:var(--blue);color:white}.bell-tabs .date-chip{margin-left:auto;padding:5px 9px}.changed-badge{padding:7px 11px;border-radius:999px;background:#ff5f45;color:white;font-size:13px;font-weight:850;box-shadow:0 0 0 5px rgba(255,95,69,.13);animation:changedPulse 1.8s ease-in-out infinite}
.bells-week{margin-top:8px;display:grid;gap:5px;overflow:hidden}.bell-week-row{display:grid;grid-template-columns:33px 1fr auto;align-items:center;gap:7px;border:1px solid var(--line);border-radius:10px;padding:6px 8px;background:#fbfdff;font-size:12px}.bell-week-row.today{border-color:#69a0e8;background:#f1f7ff}.bell-week-row.changed{border-color:#ff8a78;background:#fff2ef}.bell-week-row b{color:var(--blue)}.bell-week-times{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-variant-numeric:tabular-nums}.mini-change{color:#e04632;font-weight:850}.feed-tab-important.hidden{display:none!important}
.bell.activity,.dialog-bell.activity{background:#fff6df;border-color:#f1c56f}.bell.activity b,.dialog-bell.activity b{color:#9a6412}
@keyframes changedPulse{50%{transform:scale(1.04);box-shadow:0 0 0 8px rgba(255,95,69,.06)}}
.shift-switch{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:14px;font-weight:750}.shift-switch button,.dialog-shifts button{width:42px;height:38px;border:1px solid var(--line);border-radius:11px;background:white;color:var(--ink);font-weight:850;cursor:pointer}.shift-switch button.active,.dialog-shifts button.active{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 5px 14px rgba(23,90,184,.2)}
.head-actions{display:flex;align-items:center;gap:9px}.back-button{border:1px solid var(--line);border-radius:11px;background:white;color:var(--blue);padding:8px 12px;font-weight:780;cursor:pointer}.class-picker{flex:1;min-height:0;margin-top:11px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;align-content:center}.class-pick-tile{min-height:102px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,#fff,#f0f6fd);color:var(--blue);font-size:28px;font-weight:880;cursor:pointer;box-shadow:0 8px 22px rgba(37,75,118,.08)}.class-pick-tile:hover{border-color:#77a9e8;transform:translateY(-2px)}
.school-table th:first-child{width:58px}.school-table th:last-child{width:auto}.school-table th{padding:5px 3px;text-align:center;font-size:11px}.school-table td:first-child{font-size:13px;color:var(--muted)}.school-table td.lesson-cell{padding:5px 4px;text-align:center;font-size:12px;line-height:1.12;overflow-wrap:anywhere}.school-table tr.activity-row td{background:#fff9ee;color:#82551b}.school-table tr.activity-row td:first-child{font-size:18px;color:#ef962f}.school-table .class-head{font-size:13px;color:var(--blue);font-weight:880}
.sidebar{grid-template-rows:.65fr .72fr 1.15fr}.bell-summary{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end;margin-top:8px}.bell-summary .bell-columns{margin:0}.bell-summary .bell{padding:6px 8px;font-size:12px}.open-bells{height:100%;min-width:88px;border:0;border-radius:12px;background:var(--blue);color:white;font-weight:780;padding:8px;cursor:pointer}.clubs{display:flex;flex-direction:column;padding:17px 19px}.club-list{flex:1;min-height:0;margin-top:8px;display:grid;grid-template-columns:1fr 1fr;gap:6px;overflow:hidden;align-content:start}.club-list.empty{grid-template-columns:1fr;grid-template-rows:1fr;width:100%;height:100%;margin-top:0;place-items:center;text-align:center;padding:12px}.club-item{border:1px solid var(--line);border-radius:12px;background:#fbfdff;padding:7px 9px;min-width:0}.club-item strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.club-item span{display:block;color:var(--muted);font-size:11px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bells-dialog{width:min(1050px,86vw);border:0;border-radius:28px;padding:28px 34px 34px;background:white;color:var(--ink);box-shadow:0 35px 100px rgba(17,41,70,.3)}.bells-dialog::backdrop{background:rgba(22,43,67,.52);backdrop-filter:blur(4px)}.bells-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.bells-dialog h2{font-size:30px;margin:3px 0}.dialog-shifts{display:flex;gap:7px}.dialog-shifts button{width:auto;padding:0 16px}.bells-dialog-content{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.bell-day-card{border:1px solid var(--line);border-radius:16px;padding:13px;background:#fbfdff}.bell-day-card.today{border-color:#69a0e8;background:#f1f7ff}.bell-day-card.changed{border:2px solid #ff725d;background:#fff2ef}.bell-day-card h3{margin:0 0 10px;display:flex;justify-content:space-between;font-size:16px}.bell-day-card .mini-change{font-size:10px}.dialog-bell{display:flex;justify-content:space-between;padding:6px 0;border-top:1px solid #e6edf5;font-size:12px}.dialog-bell b{color:var(--blue)}
.news-dialog article{grid-template-columns:minmax(260px,.55fr) minmax(0,1.45fr);gap:24px}.news-dialog .detail-copy p{font-size:18px;line-height:1.5}.detail-media{position:relative;min-width:0;height:100%;display:flex;align-items:center}.news-dialog .detail-image{max-height:590px}.photo-arrow{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:52px;border:0;border-radius:12px;background:rgba(255,255,255,.9);color:var(--ink);font-size:30px;box-shadow:0 4px 14px rgba(0,0,0,.18);cursor:pointer}.photo-arrow.prev{left:8px}.photo-arrow.next{right:8px}.photo-counter{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);padding:5px 10px;border-radius:999px;background:rgba(19,38,61,.78);color:white;font-size:12px;font-weight:750}
.swipe-hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:7px;padding:9px 13px;border-radius:999px;background:rgba(19,38,61,.82);color:white;font-size:12px;font-weight:780;pointer-events:none;animation:hintFade 4s ease forwards}.swipe-hint i{font-size:20px;font-style:normal;animation:swipeMove 1s ease-in-out 3}@keyframes swipeMove{0%,100%{transform:translateX(-7px)}50%{transform:translateX(7px)}}@keyframes hintFade{0%,65%{opacity:1}100%{opacity:0}}
/* Stable dashboard sizing: long publication text must never widen the sidebar. */
.dashboard,.sidebar,.sidebar>*,.feed,.feed-list,.feed-item,.feed-item>div{min-width:0}.sidebar>*{min-height:0}.feed{overflow:hidden}.feed-list{overflow-y:auto;overflow-x:hidden;align-content:start;scrollbar-width:thin;padding-right:3px}.feed-item{grid-template-columns:76px minmax(0,1fr);align-items:start;padding:10px;min-height:78px}.feed-item>div{overflow:hidden}.feed-item img{width:76px;height:58px}.feed-item h3{font-size:15px}.feed-item p{-webkit-line-clamp:3;font-size:12px;line-height:1.3}.feed-item .read-more{display:block;margin-top:4px;color:var(--blue);font-size:11px;font-weight:800}.feed.posts-only .feed-tabs{justify-content:flex-start}.feed.posts-only .feed-list{margin-top:10px}
.news-dialog{width:min(1480px,92vw);height:min(860px,88vh)}.news-dialog article{grid-template-columns:minmax(420px,.95fr) minmax(0,1.05fr);gap:32px;padding:36px 94px 48px}.detail-media{height:auto;min-height:0;align-self:stretch}.news-dialog .detail-image{height:100%;max-height:680px}.news-dialog .detail-copy{min-width:0;padding:4px 12px 4px 0}.news-dialog .detail-copy h2{font-size:30px}.news-dialog .detail-copy p{font-size:17px;line-height:1.48}.news-arrow{width:68px;height:92px;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:.8}.news-arrow span{font-size:48px}.news-arrow small{font-size:11px;color:var(--muted);font-weight:800}.photo-arrow{width:46px;height:62px}.swipe-hint{font-size:14px}
@media(min-width:1500px){.class-picker{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.class-pick-tile{min-height:170px;font-size:40px}.school-table td.lesson-cell{font-size:14px;line-height:1.2}.school-table th{font-size:12px}}
