/* Screen layouts. Measurements from the Figma frames (414 wide, 20px page gutters). */

.nowrap { white-space: nowrap; }
.ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Login (22316:175321 / 173282 / 173824) ---------- */
.login { display: flex; flex-direction: column; background: var(--gohan); }
.login-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: calc(var(--sb) + 24px) 20px 24px;
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.social { display: flex; flex-direction: column; gap: 8px; }
.login-help { margin: auto auto 32px; align-self: center; padding-top: 16px; }

/* Sheets used by the auth flows */
.sheet-form { display: flex; flex-direction: column; gap: 12px; }
.mpin-setup { display: flex; flex-direction: column; gap: 32px; }
.mpin-fields { display: flex; flex-direction: column; gap: 24px; }
.mpin-field { display: flex; flex-direction: column; gap: 20px; }
.mpin-label { font-weight: 700; }
.bio-content { gap: 12px; }
.bio-art { width: 80px; height: 80px; display: grid; place-items: center; }
.otp-text { text-align: center; padding: 0 20px; }
.otp-block { display: flex; flex-direction: column; gap: 8px; }
.otp-status { color: var(--trunks); text-align: center; min-height: 20px; }
.scan-cancel { align-self: center; margin-top: 4px; font-size: 14px; }

/* Account sheet */
.account { display: flex; align-items: center; gap: 12px; }
.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 16px; border-radius: var(--radius-s-sm); background: var(--goku);
  font: 700 16px/24px var(--font);
}
.menu-row span { flex: 1; }
.menu-row.danger { color: var(--dodoria); }

/* ---------- Tabbed screens ---------- */
.tabbed { padding-bottom: 81px; background: var(--goku); }

.blob { position: absolute; pointer-events: none; z-index: 0; }
.blob span { position: absolute; display: block; }
.blob img { width: 100%; height: 100%; }

/* ---------- Dashboard (22316:133183) ---------- */
.dash-content { position: relative; min-height: 100%; }
.dash-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: calc(var(--sb-dash) + 8px) 20px 24px;
}
.dash-header { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.dash-logo { object-fit: contain; }
.dash-header-right { display: flex; align-items: center; gap: 12px; }
.role-chip {
  display: flex; align-items: center; gap: 4px;
  height: 32px; padding: 4px 12px;
  border-radius: var(--radius-i-sm);
  background: var(--gohan);
  font: 700 12px/16px var(--font);
  color: var(--piccolo);
}
.dash-avatar {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 2px solid var(--gohan); overflow: hidden;
  filter: drop-shadow(0 6.857px 3.429px rgba(0, 0, 0, 0.16)) drop-shadow(0 0 0.571px rgba(0, 0, 0, 0.4));
  background: var(--goku);
}
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.greeting { display: flex; flex-direction: column; }
.dash-sections { display: flex; flex-direction: column; gap: 28px; }

/* Banner carousel */
.banner { position: relative; height: 134px; border-radius: var(--radius-s-sm); overflow: hidden; }
.banner-track { height: 100%; }
.banner-slide { position: relative; width: 100%; height: 134px; padding: 20px; overflow: hidden; display: flex; align-items: flex-start; }
.banner-mask { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.banner-row { position: relative; display: flex; align-items: flex-end; gap: 10px; width: 100%; }
.banner-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.banner-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; }
.banner-text p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-sub { color: var(--goku); }
.banner-cta {
  height: 34px; padding: 8px 16px; border-radius: 4px; background: #fff;
  font: 700 14px/24px var(--font); display: flex; align-items: center; white-space: nowrap;
}
.banner-art { position: relative; flex: none; }
.crop { position: absolute; overflow: hidden; display: block; }
.crop img { position: absolute; max-width: none; }
.banner .page-dots { position: absolute; left: 0; right: 0; bottom: 6px; }

/* Cards */
.card { background: var(--gohan); border-radius: var(--radius-s-sm); overflow: hidden; position: relative; }
.card-glass { background: rgba(255, 255, 255, 0.2); border: 1px solid var(--gohan); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 12px; }
.card-head h2 { flex: 1; min-width: 0; }
.view-all { display: flex; align-items: center; gap: 4px; font: 700 14px/20px var(--font); color: var(--piccolo); white-space: nowrap; }

.bm-body { padding: 0 16px 16px; }
.bm-empty { background: var(--gohan); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bm-icon { position: relative; width: 40px; height: 40px; }
.bm-copy { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bm-link { font: 500 12px/16px var(--font); color: var(--piccolo); text-decoration: underline; text-underline-position: from-font; }
.bm-tiles { background: var(--gohan); border-radius: 8px; padding: 12px 8px; }

/* Icon tiles (Academics / My View) */
.tiles { gap: 8px; padding: 8px 16px 16px; scroll-padding: 0 16px; }
.tile { width: 72px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tile-ico { position: relative; width: 44px; height: 44px; flex: none; display: block; }
.tile-ico.tinted { border-radius: var(--radius-s-sm); box-shadow: var(--shadow-tile); display: grid; place-items: center; overflow: hidden; }
.tile-ico.tinted.soft { box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.04); }
.tile-label {
  width: 72px; height: 32px; display: flex; align-items: center; justify-content: center;
  font: 500 12px/16px var(--font); text-align: center; overflow: hidden;
}
.card > .page-dots { padding-bottom: 0; }

/* Approvals */
.approvals { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.approval {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 12px 16px; border-radius: 12px; background: var(--goku); text-align: left;
}
.approval-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.approval-text > span { line-height: 20px; }

/* Celebrations */
.switcher { display: flex; gap: 8px; padding: 8px 16px; }
.chip-switch {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 8px; border-radius: 8px;
  background: var(--goku); font: 700 12px/16px var(--font); color: var(--trunks);
}
.chip-switch.is-on { background: linear-gradient(var(--jiren), var(--jiren)), var(--gohan); color: var(--bulma); }
.chip-count { width: 24px; height: 24px; border-radius: 50%; background: var(--gohan); display: grid; place-items: center; font: 700 10px/16px var(--font); color: var(--bulma); }
.chip-switch:not(.is-on) .chip-count { background: var(--gohan); color: var(--trunks); }
.people { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px 16px; }
.person { width: 79px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.p-top { display: flex; flex-direction: column; align-items: center; height: 60px; }
.p-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; margin-bottom: -4px; flex: none; }
.p-avatar img { width: 100%; height: 100%; object-fit: cover; }
.p-avatar.initials { background: var(--goku); border: 1.5px solid var(--beerus); display: grid; place-items: center; font: 700 20px/36px var(--font); }
.p-tag { position: relative; width: 64px; border-radius: 8px; font: 700 10px/16px var(--font); letter-spacing: 0.5px; text-transform: uppercase; color: #fff; }
.p-tag.bday { background: var(--chichi); }
.p-tag.anniv { background: #FFBB1C; }
.p-name { width: 100%; font: 700 10px/16px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-date { width: 100%; font: 400 10px/16px var(--font); color: var(--zeno); }

/* Events */
.events { gap: 12px; padding: 4px 12px 12px; scroll-padding: 0 12px; }
.event { position: relative; width: 240px; height: 200px; border-radius: 12px; overflow: hidden; display: flex; align-items: flex-end; padding: 12px; text-align: left; }
.event img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 26.394%, #000 84.683%); }
.event-copy { position: relative; display: flex; flex-direction: column; width: 100%; color: #fff; min-width: 0; }
.event-copy .t-xs { color: var(--beerus); }

/* Survey + holidays */
.surveys, .holidays { gap: 8px; padding: 12px; scroll-padding: 0 12px; }
.survey { width: 300px; padding: 16px; border-radius: 8px; background: var(--krillin-10); display: flex; align-items: flex-end; gap: 10px; }
.survey-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.survey-cta { height: 34px; padding: 8px 16px; border-radius: 4px; background: var(--piccolo); color: #fff; font: 400 12px/normal var(--font); }
.survey img { flex: none; }
.holiday { width: 259px; padding: 16px; border-radius: var(--radius-s-sm); background: var(--chichi-10); display: flex; align-items: center; gap: 24px; }
.holiday img { flex: none; object-fit: cover; }

.dash-error { padding: 24px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Browse (22316:132982) ---------- */
.browse-page { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 32px; padding: calc(var(--sb-dash) + 48px) 20px 16px; }
.browse-head { display: flex; flex-direction: column; gap: 8px; }
.browse-title { display: flex; align-items: center; gap: 8px; height: 40px; }
.browse-title h1 { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; max-height: 40px; padding: 8px 12px 8px 8px; border-radius: var(--radius-s-sm); background: var(--gohan); cursor: text; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 700 14px/24px var(--font); color: var(--bulma); }
.search input::placeholder { color: var(--trunks); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search:focus-within { box-shadow: 0 0 0 1px var(--piccolo); }
.browse-list { display: flex; flex-direction: column; gap: 8px; }
.browse-row { display: flex; align-items: center; background: var(--gohan); border-radius: var(--radius-s-sm); max-height: 56px; padding-right: 8px; }
.browse-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; padding: 6px 8px; text-align: left; }
.browse-star { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; flex: none; }
.browse-star:hover { background: var(--heles); }
.browse-empty { text-align: center; color: var(--trunks); padding: 24px 0; }

/* ---------- Coming soon ---------- */
.soon-screen { display: flex; flex-direction: column; background: var(--gohan); }
.soon-head { display: flex; align-items: center; gap: 8px; padding: calc(var(--sb) + 8px) 12px 8px; }
.soon-head .back { width: 40px; height: 40px; }
.soon-head h1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soon { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 32px; text-align: center; }
.soon-badge { width: 72px; height: 72px; border-radius: 20px; background: var(--jiren); color: var(--piccolo); display: grid; place-items: center; margin-bottom: 8px; }
.soon-badge svg { width: 36px; height: 36px; }
.soon-actions { padding: 0 20px 32px; }

/* ---------- My Profile (22316:136047) ---------- */
.profile-page { display: flex; flex-direction: column; gap: 24px; padding: calc(var(--sb-dash) + 8px) 20px 100px; }
.profile-head { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.profile-back { width: 31.69px; height: 31.69px; display: grid; place-items: center; }
.profile-back img { transform: rotate(180deg); }
.profile-star { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; }
.profile-star:hover, .profile-back:hover { background: var(--heles); }
.profile-card { display: flex; gap: 8px; align-items: flex-start; padding: 16px 20px; border-radius: 12px; background: var(--gohan); }
.profile-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.profile-name { font: 700 18px/28px var(--font); }
.switch-chip {
  align-self: flex-start; display: flex; align-items: center; gap: 8px; height: 40px; padding: 8px 8px 8px 12px;
  border: 1px solid var(--trunks); border-radius: var(--radius-i-sm); font: 700 14px/24px var(--font);
}
.switch-chip:hover { background: var(--goku); }
.profile-photo { position: relative; flex: none; padding: 2.286px; }
.profile-photo-ring {
  display: block; padding: 2.286px; border-radius: 50%; background: var(--gohan);
  filter: drop-shadow(0 6.857px 3.429px rgba(0, 0, 0, 0.16)) drop-shadow(0 0 0.571px rgba(0, 0, 0, 0.4));
}
.profile-photo-ring img { width: 102.857px; height: 102.857px; border-radius: 50%; object-fit: cover; }
.profile-edit {
  position: absolute; left: 84px; top: 84px; padding: 4px; border-radius: 50%;
  background: var(--piccolo); border: 2px solid var(--gohan); display: grid; place-items: center;
}
.p-groups { display: flex; flex-direction: column; gap: 24px; }
.p-group { display: flex; flex-direction: column; gap: 8px; }
.p-row {
  display: flex; align-items: center; gap: 16px; width: 100%; max-height: 56px; padding: 16px;
  border-radius: var(--radius-s-sm); background: var(--gohan); text-align: left; overflow: hidden;
}
.p-groups > .p-row, .p-group > .p-row:has(.p-row-ico[style*="32px"]) { padding-top: 12px; padding-bottom: 12px; }
.p-row:hover { background: #FAFAFA; }
.p-row-ico { flex: none; display: grid; place-items: center; }
.p-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.p-row img { flex: none; }
.app-version { display: flex; justify-content: flex-end; gap: 8px; font: 400 12px/16px var(--font); color: var(--trunks); }
.menu-row.option.is-on { background: var(--jiren); }

/* ---------- Notifications (22316:128727 Approvals / 22316:128900 Updates) ---------- */
.notif { padding-top: calc(var(--sb-dash) + 48px); padding-bottom: 113px; }
.notif-head { display: flex; flex-direction: column; gap: 8px; }
.notif-title { display: flex; align-items: center; height: 40px; padding: 0 20px; }
.notif-search { padding: 0 20px; }
.n-tabs { display: flex; gap: 8px; height: 56px; padding: 0 20px; border-bottom: 1px solid var(--beerus); }
.n-tab {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 8px 16px;
  font: 700 14px/24px var(--font); color: var(--trunks); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.n-tab.is-on { color: var(--piccolo); border-bottom-color: var(--piccolo); }
.notif-body { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
.notif-body.is-updates { padding-top: 32px; }
.n-chips { gap: 8px; padding: 0 20px; scroll-padding: 0 20px; scroll-snap-type: none; }
.n-chip {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 32px; padding: 4px 12px;
  border-radius: var(--radius-s-sm); background: var(--goku); font: 700 14px/24px var(--font); color: var(--trunks); white-space: nowrap;
}
.n-chip.is-on { background: var(--piccolo); color: var(--gohan); }
.n-badge {
  min-width: 16px; max-width: 34px; padding: 0 4px; border-radius: 100px; background: rgba(0, 0, 0, 0.35);
  font: 500 12px/16px var(--font); color: var(--gohan); text-align: center;
}
.n-chip.is-on .n-badge { background: var(--gohan); color: var(--piccolo); }
.n-list { display: flex; flex-direction: column; gap: 16px; padding: 0 20px; }
.n-group, .n-items { display: flex; flex-direction: column; gap: 4px; }
.n-date { padding: 0 16px; font: 700 10px/16px var(--font); letter-spacing: 0.5px; text-transform: uppercase; color: var(--zeno); }
.n-card {
  display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 12px 16px 12px 12px;
  border-radius: var(--radius-s-sm); background: var(--gohan); text-align: left; overflow: hidden;
}
.n-card:hover { background: #FAFAFA; }
.n-card .tile-ico { flex: none; }
.n-text { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.n-row { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 8px; }
.n-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.n-cta { color: var(--piccolo); }
.n-meta { flex: none; display: flex; align-items: center; gap: 10px; }
.n-meta.read { gap: 0; }
.n-meta .t-xs { color: var(--zeno); white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.n-empty { text-align: center; color: var(--trunks); padding: 24px 0; }

/* ---------- Notification detail (22316:129021 Circular / 22316:129080 Birthday) ---------- */
.notif-detail { background: var(--gohan); }
.nd-page { display: flex; flex-direction: column; gap: 24px; padding: calc(var(--sb) + 24px) 20px 120px; }
.nd-top { display: flex; align-items: center; height: 40px; }
.nd-back { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; }
.nd-back:hover { background: var(--heles); }
.nd-back img[width="21"] { transform: rotate(180deg); }
.nd-form { display: flex; flex-direction: column; gap: 24px; }
.nd-head { display: flex; align-items: center; gap: 16px; padding: 0 12px; }
.nd-ico {
  flex: none; width: 52px; height: 52px; border-radius: 9.455px; display: grid; place-items: center;
  box-shadow: 1.182px 1.182px 4.727px rgba(0, 0, 0, 0.04);
}
.nd-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nd-title { font: 700 18px/28px var(--font); }
.nd-text { padding: 8px; font: 400 16px/24px var(--font); color: var(--trunks); }
.nd-section { display: flex; flex-direction: column; gap: 16px; }
.nd-label { display: flex; align-items: center; gap: 8px; font: 400 16px/24px var(--font); color: var(--trunks); }
.nd-files { display: flex; flex-direction: column; gap: 8px; }
.nd-file { display: flex; align-items: center; gap: 4px; padding: 8px; border-radius: var(--radius-s-sm); background: var(--goku); }
.nd-file-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.nd-thumb { flex: none; border: 0.5px solid rgba(0, 0, 0, 0.25); border-radius: 4px; object-fit: cover; }
.nd-file-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nd-file-name { font: 700 14px/24px var(--font); color: var(--trunks); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-file-meta { font: 400 11px/normal var(--font); color: #5D626C; font-feature-settings: 'case' 1, 'dlig' 1, 'lnum' 1, 'pnum' 1; }
.nd-file-btn { flex: none; padding: 4px; border-radius: var(--radius-i-sm); display: grid; place-items: center; }
.nd-file-btn:hover { background: var(--heles); }
.nd-acc { border: 1px solid var(--beerus); border-radius: var(--radius-s-sm); background: var(--jiren); }
.nd-acc-head { display: flex; align-items: center; gap: 24px; width: 100%; padding: 12px 16px; text-align: left; }
.nd-acc-head .t-md { flex: 1; }
.nd-acc-chev { padding: 4px; border-radius: 4px; background: var(--jiren); display: grid; place-items: center; }
.nd-acc:not(.is-open) .nd-acc-chev img { transform: rotate(180deg); }
.nd-acc-body { display: flex; flex-direction: column; gap: 4px; padding: 4px; }
.nd-acc:not(.is-open) .nd-acc-body { display: none; }
.nd-wish { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 8px; background: var(--gohan); }
.nd-avatar { flex: none; border-radius: 50%; object-fit: cover; }
.nd-wish-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nd-wish-top { display: flex; align-items: center; gap: 10px; }
.nd-wish-top .t-md-b { flex: 1; min-width: 0; color: #0C1322; }
.nd-wish-top .nd-file-meta { white-space: nowrap; }
.nd-foot { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; font: 400 12px/16px var(--font); color: var(--trunks); }
.nd-preview { padding: 0 20px 24px; display: grid; place-items: center; }
.nd-preview img { max-width: 100%; max-height: 420px; border-radius: 8px; border: 1px solid var(--beerus); }

/* ---------- Academics popup (22316:133472) ---------- */
.pop-layer { position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 0 20px; }
.pop {
  position: relative; width: 100%; max-width: 374px; background: var(--gohan); border-radius: 16px; overflow: hidden;
  animation: pop-in .18s ease-out both;
}
.pop-head { display: flex; align-items: center; gap: 12px; padding: 16px; }
.pop-head h2 { flex: 1; min-width: 0; }
.pop-close { padding: 4px; border-radius: 50%; background: var(--jiren); display: grid; place-items: center; }
.pop-close:hover { background: rgba(78, 70, 180, 0.2); }
.pop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 12px; padding: 8px 16px 16px; }
.pop-grid .tile { width: auto; }
.pop-grid .tile-label { width: 100%; }
.pop-more { background: var(--jiren); border-radius: 9.818px; }
@keyframes pop-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Communication / Message tab (22316:167093 … 167831, chips 22316:172322) ---------- */
.comms-page { display: flex; flex-direction: column; gap: 24px; padding: calc(var(--sb-dash) + 48px) 20px 100px; }
.comms-head { display: flex; align-items: center; gap: 8px; height: 40px; }
.comms-head h1 { flex: 1; min-width: 0; }
.comms-search-btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; }
.comms-search-btn:hover { background: var(--heles); }
.comms-search[hidden] { display: none; }
.m-chips { gap: 4px; margin: 0 -20px; padding: 0 20px; scroll-padding: 0 20px; scroll-snap-type: none; }
.m-chip {
  display: flex; align-items: center; gap: 4px; height: 32px; padding: 4px 8px;
  border: 1px solid var(--beerus); border-radius: 4px; background: var(--gohan);
  font: 400 14px/24px var(--font); color: var(--bulma); white-space: nowrap;
}
.m-chip.menu { padding: 4px 8px 4px 12px; }
.m-chip.is-on, .m-chip.is-open { border-color: var(--piccolo); background: linear-gradient(var(--jiren), var(--jiren)), var(--gohan); color: var(--piccolo); }
.m-list { display: flex; flex-direction: column; gap: 16px; }
.m-card { width: 100%; background: var(--gohan); border-radius: 16.261px; text-align: left; overflow: hidden; }
.m-announce { padding: 12px 16px 4px; display: flex; flex-direction: column; }
.m-announce-head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--beerus); text-align: left; }
.m-announce-head img { flex: none; }
.m-announce-head .t-sm-b { flex: 1; min-width: 0; }
.m-count {
  flex: none; width: 20px; height: 20px; border-radius: 100px; background: var(--piccolo);
  display: grid; place-items: center; font: 500 15px/20px var(--font); color: var(--gohan);
}
.m-announce-row { display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 0; text-align: left; }
.m-chat { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
.m-chat:hover, .m-announce-row:hover { background: #FAFAFA; }
.m-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.m-avatar.initials {
  display: grid; place-items: center; background: var(--goku); border: 1px solid var(--beerus);
  font: 700 14px/24px var(--font); color: var(--bulma);
}
.m-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-title { font: 400 14px/24px var(--font); color: var(--bulma); }
.m-name { font: 400 14px/20px var(--font); color: var(--bulma); }
.m-sub { font: 400 14px/20px var(--font); color: var(--trunks); }
.m-meta { flex: none; align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; }
.m-announce-row .m-meta { gap: 10px; }
.m-meta.top { justify-content: flex-start; }
.m-meta .t-xs { color: var(--zeno); white-space: nowrap; }
.m-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--piccolo); }
.m-badge {
  min-width: 16px; max-width: 34px; padding: 0 4px; border-radius: 100px; background: var(--piccolo);
  font: 500 12px/16px var(--font); color: var(--gohan); text-align: center;
}
.m-fabs { position: absolute; right: 16px; bottom: 97px; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.m-fab-small, .m-fab { display: flex; align-items: center; box-shadow: 0 4px 8px 3px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.3); }
.m-fab-small { gap: 8px; padding: 4px 16px 4px 4px; border-radius: 12px; background: #ECE6F0; font: 500 14px/20px Roboto, var(--font); letter-spacing: 0.1px; color: var(--bulma); }
.m-fab { gap: 4px; height: 56px; min-width: 80px; padding: 16px 20px 16px 16px; border-radius: 16px; background: var(--piccolo); font: 700 16px/24px var(--font); color: var(--gohan); }
.m-fab-small:hover { filter: brightness(0.97); }
.m-fab:hover { filter: brightness(1.08); }
.m-menu-layer { position: absolute; inset: 0; z-index: 60; }
.m-menu {
  position: absolute; padding: 4px; border-radius: 8px; background: var(--gohan);
  display: flex; flex-direction: column;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.16)) drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.4));
  animation: fade-in .12s ease-out both;
}
.m-menu-item { width: 100%; padding: 8px 8px 8px 12px; border-radius: 8px; text-align: left; font: 400 14px/24px var(--font); color: var(--bulma); }
.m-menu-item:hover, .m-menu-item.is-on { background: var(--heles); }
.m-menu-item { white-space: nowrap; }
.m-menu-item.danger { color: var(--dodoria); }

/* ---------- Chat (22316:167955 default · 172252 replying · 168170 attach · 168374 attachments) ---------- */
.screen.chat { display: flex; flex-direction: column; overflow: hidden; background: var(--goku); }
.ch-head {
  flex: none; display: flex; align-items: center; gap: 16px; padding: calc(var(--sb-dash) + 8px) 24px 12px;
  background: var(--gohan); box-shadow: inset 0 -1px 0 #EAEAEA;
}
.ch-back, .ch-more { flex: none; display: grid; place-items: center; border-radius: 6px; }
.ch-back { width: 24px; height: 24px; }
.ch-more { width: 24px; height: 24px; margin-right: -4px; }
.ch-back:hover, .ch-more:hover { background: var(--heles); }
.ch-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 42px; }
.ch-who-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ch-who-text .t-md-b { color: #0C1322; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-role { font: 400 11px/normal var(--font); color: #5D626C; font-feature-settings: 'case' 1, 'dlig' 1, 'lnum' 1, 'pnum' 1; }
.ch-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 24px; padding: 16px 0; }
.ch-body::-webkit-scrollbar { display: none; }
.ch-body > :first-child { margin-top: auto; }
.ch-ticket { display: flex; flex-direction: column; gap: 16px; }
.ch-sep { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 4px; }
.ch-sep img { width: 100%; height: 1px; display: block; }
.ch-sep span { font: 700 10px/16px var(--font); letter-spacing: 0.5px; text-transform: uppercase; color: var(--trunks); white-space: nowrap; }
.ch-row { display: flex; flex-direction: column; padding: 0 20px; }
.ch-row.them { align-items: flex-start; }
.ch-row.me { align-items: flex-end; }
.ch-bubble { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px; border-radius: 8px; overflow: hidden; }
.ch-bubble.them { width: 286px; max-width: 100%; background: var(--whis-10); }
.ch-bubble.me { width: 306px; max-width: 100%; background: var(--gohan); }
.ch-text, .ch-time { font-feature-settings: 'case' 1, 'dlig' 1, 'lnum' 1, 'pnum' 1; overflow-wrap: anywhere; }
.ch-text { font: 400 14px/normal var(--font); color: #0C1322; white-space: pre-wrap; }
.ch-time { font: 400 11px/normal var(--font); color: #5D626C; text-align: right; }
.ch-files { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.ch-file { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--beerus); border-radius: 8px; font: 700 12px/16px var(--font); }
.ch-file-img { border-radius: 8px; object-fit: cover; border: 1px solid var(--beerus); }
.ch-action { gap: 8px; }
.ch-alert { display: flex; align-items: flex-start; gap: 4px; font: 400 12px/16px var(--font); color: var(--dodoria); text-align: right; }
.ch-reply, .ch-typing {
  width: 120px; padding: 8px 16px; border-radius: var(--radius-i-sm); font: 700 14px/24px var(--font); color: var(--goten); text-align: center;
}
.ch-reply { background: var(--piccolo); }
.ch-reply:hover { filter: brightness(1.08); }
.ch-typing { background: var(--beerus); }
.ch-pending { display: flex; justify-content: center; margin-bottom: -8px; }
.ch-pending span { padding: 2px 8px; border-radius: var(--radius-i-sm); background: rgba(0, 0, 0, 0.08); font: 400 12px/16px var(--font); color: var(--trunks); }
.ch-foot { flex: none; background: var(--gohan); }
.ch-hint { padding: 4px 24px; background: var(--beerus); border-top: 1px solid var(--heles); text-align: center; font: 400 14px/24px var(--font); color: var(--trunks); }
.ch-composer { display: flex; align-items: center; gap: 12px; }
.ch-foot > .ch-composer { padding: 20px; border-top: 1px solid var(--beerus); align-items: flex-start; }
.ch-composer.is-locked { cursor: not-allowed; }
.ch-round { flex: none; padding: 4px; border-radius: 50%; background: var(--goku); display: grid; place-items: center; }
.ch-placeholder, .ch-input { flex: 1; min-width: 0; height: 32px; font: 400 16px/24px var(--font); color: var(--trunks); display: flex; align-items: center; }
.ch-input { border: 0; outline: 0; background: transparent; color: var(--bulma); padding: 0; }
.ch-input::placeholder { color: var(--trunks); }
.ch-send { flex: none; position: relative; width: 32px; height: 32px; border-radius: 80px; overflow: hidden; }
.ch-send img { position: absolute; left: 6.4px; top: 6.4px; }
.ch-send.is-on { background: var(--piccolo); }
.ch-send:disabled { cursor: default; }
.ch-camera { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; }
.ch-camera:hover, .ch-round:hover { background: var(--beerus); }
.ch-foot.is-active { border-top: 0; }
.ch-panel {
  display: flex; flex-direction: column; gap: 16px; padding: 12px 20px 20px; background: var(--gohan);
  border-top: 1px solid var(--beerus); border-radius: 8px 8px 0 0;
}
.ch-quote { position: relative; padding: 8px 32px 8px 12px; border-radius: 8px; background: var(--goku); }
.ch-quote p { font: 400 14px/normal var(--font); color: #0C1322; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ch-quote-x { position: absolute; right: 8px; top: 4px; width: 16px; height: 16px; display: grid; place-items: center; }
.ch-picked { gap: 12px; margin: 0 -20px; padding: 11px 20px 0; scroll-snap-type: none; }
.ch-pick-doc, .ch-pick-img { position: relative; flex: none; border: 1px solid var(--beerus); border-radius: var(--radius-i-sm); }
.ch-pick-doc { display: flex; align-items: center; gap: 12px; min-width: 220px; padding: 12px; }
.ch-pick-text { display: flex; flex-direction: column; min-width: 96px; }
.ch-pick-text .t-xs { color: var(--trunks); }
.ch-pick-img { width: 64px; height: 64px; }
.ch-pick-img > img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-i-sm); display: block; }
.ch-play { position: absolute; left: 3px; bottom: 3px; padding: 2px; border-radius: 50%; background: var(--zeno); display: flex; }
.ch-pick-x { position: absolute; top: -11px; right: -11px; width: 24px; height: 24px; display: grid; place-items: center; }
.ch-attach { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 18px; padding: 12px 20px; background: var(--goku); }
.ch-attach-item { width: 80px; justify-self: start; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px; border-radius: var(--radius-s-sm); font: 400 12px/16px var(--font); color: var(--bulma); }
.ch-attach-item:hover { background: var(--heles); }
.ch-attach-item img { object-fit: cover; }
.ch-foot .home-indicator { background: var(--goten); }
.ch-pick-img .ch-pick-x { right: -9px; }

/* Chat ⋮ options: search bar, profile sheet, report sheet */
.ch-search { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 20px; background: var(--gohan); border-bottom: 1px solid var(--beerus); }
.ch-search .search { flex: 1; min-width: 0; background: var(--goku); }
.ch-search-count { font: 400 12px/16px var(--font); color: var(--trunks); white-space: nowrap; }
.ch-search-x { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.ch-search-x:hover { background: var(--heles); }
.ch-text mark { background: rgba(255, 179, 25, 0.45); color: inherit; border-radius: 2px; }
.ch-profile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 16px; text-align: center; }
.ch-profile-pic { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.ch-profile-pic.initials { display: grid; place-items: center; background: var(--goku); border: 1px solid var(--beerus); font: 700 24px/32px var(--font); }
.ch-profile-rows { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.ch-profile-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: var(--radius-s-sm); background: var(--goku); }
.ch-profile-rows dt { font: 400 14px/24px var(--font); color: var(--trunks); }
.ch-profile-rows dd { font: 700 14px/24px var(--font); }
.ch-report-intro { text-align: center; color: var(--trunks); padding-bottom: 12px; }
.ch-report-actions { padding-top: 16px; }
.btn.ch-danger { background: var(--dodoria); }
.ch-search input::-webkit-search-cancel-button { display: none; }

/* ---------- New Message (22316:168513 Staff · 168669 Students · 169275 … 170518 picking) ---------- */
.screen.newmsg { display: flex; flex-direction: column; overflow: hidden; background: var(--goku); }
.nm-top { flex: none; background: var(--gohan); }
.nm-head { display: flex; align-items: center; gap: 16px; min-height: 62px; padding: calc(var(--sb-dash) + 8px) 24px 12px; box-shadow: inset 0 -1px 0 #EAEAEA; }
.nm-head h1 { flex: 1; min-width: 0; }
.nm-back { flex: none; width: 31.69px; height: 31.69px; display: grid; place-items: center; border-radius: 6px; }
.nm-back img { transform: rotate(180deg); }
.nm-search { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; }
.nm-back:hover, .nm-search:hover { background: var(--heles); }
.nm-search[hidden] { display: none; }
.nm-to { display: flex; align-items: center; gap: 8px; min-height: 62px; padding: 8px 24px; border: 1px solid var(--beerus); background: var(--gohan); cursor: text; }
.nm-to-label { flex: none; font: 400 14px/24px var(--font); color: rgba(0, 0, 0, 0.25); }
.nm-to.has-people { padding-top: 16px; padding-bottom: 16px; }
.nm-to.has-people .nm-to-label { font-size: 16px; color: #5D626C; }
.nm-to-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; overflow: hidden; }
.nm-to.is-expanded .nm-to-field { flex-wrap: wrap; max-height: 112px; overflow-y: auto; scrollbar-width: thin; }
.nm-to-input { flex: 1; min-width: 60px; height: 32px; border: 0; outline: 0; background: transparent; font: 400 14px/24px var(--font); color: var(--bulma); padding: 0; }
.nm-to-input::placeholder { color: var(--trunks); }
.nm-to-input[hidden] { display: none; }
.nm-chip { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px; padding: 4px 8px 4px 4px; border-radius: 9999px; background: var(--jiren); max-width: 100%; }
.nm-chip-av { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--gohan); border: 1px solid var(--beerus); display: grid; place-items: center; font: 700 10px/16px var(--font); color: var(--bulma); }
.nm-chip-name { font: 400 14px/20px var(--font); color: var(--bulma); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-chip-x { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.nm-chip-x:hover, .nm-more:hover { background: rgba(78, 70, 180, 0.2); }
.nm-more { flex: none; width: 32px; height: 32px; border-radius: 9999px; background: var(--jiren); font: 400 14px/20px var(--font); color: var(--bulma); }
.nm-tabs { background: var(--gohan); }
.nm-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 20px; padding: 16px 20px 97px; }
.nm-body::-webkit-scrollbar { display: none; }
.newmsg.has-composer .nm-body { padding-bottom: 16px; }
.nm-chips { flex: none; margin: 0 -20px; }
.nm-list { display: flex; flex-direction: column; gap: 4px; }
.nm-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 16px; border-radius: 8px; background: var(--gohan); text-align: left; }
.nm-row:hover { background: #FAFAFA; }
.nm-row.is-on { background: linear-gradient(var(--jiren), var(--jiren)), var(--gohan); }
.nm-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nm-row-name { font: 700 16px/24px var(--font); color: #0C1322; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-row.student .nm-row-name { font-weight: 400; color: var(--bulma); }
.nm-check { flex: none; position: relative; width: 24px; height: 24px; }
.nm-check::before { content: ''; position: absolute; inset: 16.67%; border: 1.5px solid var(--trunks); border-radius: 4px; }
.nm-check.is-on::before { border: 0; background: var(--piccolo); }
.nm-check img { position: absolute; left: 4px; top: 4px; }
.nm-foot { flex: none; background: var(--gohan); }
.nm-composer { padding: 20px; border-top: 1px solid var(--beerus); }
.nm-foot .home-indicator { background: var(--goten); }
.nm-to.is-expanded .nm-chip { flex: none; max-width: 100%; }
