/*
 * AHK Ehrenamtsmanagement — Präsentations-Mockup
 * Ergänzt die unveränderte style.css um die mobile Mitglieder-App.
 */

:root {
  --brand-ink: #07182E;
  --brand-deep: #061126;
  --brand-teal: #00858A;
  --brand-teal-strong: #005F61;
  --brand-aqua: #52E0CF;
  --brand-blue: #2596BE;
  --brand-coral: #F04A67;
  --brand-yellow: #F6E74A;
  --brand-mist: #F4FAFC;
  --brand-paper: #FFFFFF;
}

body.mockup-app {
  display: block;
  min-height: 100vh;
  color: var(--brand-ink);
  background: var(--brand-deep);
  overflow-x: hidden;
}

button { min-height: 44px; }
button, a { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; background: var(--brand-mist); }

.mock-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 260px;
  display: none;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 14% 8%, rgba(82,224,207,.25), transparent 20rem),
    linear-gradient(165deg, var(--brand-teal-strong), var(--brand-deep) 78%);
  border-right: 1px solid rgba(255,255,255,.1);
}

.brand-lockup { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.1rem .9rem; }
.brand-lockup strong { display: block; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .04em; line-height: .85; }
.brand-lockup span { display: block; margin-top: .18rem; color: rgba(255,255,255,.7); font-size: .7rem; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 2px solid var(--brand-aqua); border-radius: 12px 4px 12px 4px; color: var(--brand-yellow); font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; letter-spacing: .03em; transform: rotate(-2deg); }
.brand-mark--large { width: 62px; height: 62px; margin: 0 auto 1.2rem; font-size: 1.4rem; }

.team-switcher { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; width: calc(100% - 1.4rem); margin: .35rem .7rem .7rem; padding: .72rem .8rem; border: 1px solid rgba(255,255,255,.13); border-radius: .75rem; color: #fff; background: rgba(255,255,255,.06); text-align: left; cursor: pointer; }
.team-switcher small, .team-switcher strong { display: block; }
.team-switcher small { color: rgba(255,255,255,.52); font-size: .63rem; text-transform: uppercase; letter-spacing: .07em; }
.team-switcher strong { font-size: .82rem; }

.desktop-nav { display: flex; flex: 1; flex-direction: column; gap: 2px; overflow-y: auto; padding: .2rem .65rem 1rem; }
.nav-label { padding: 1rem .7rem .35rem; color: rgba(255,255,255,.36); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: .68rem; width: 100%; min-height: 46px; padding: .62rem .7rem; border: 0; border-radius: .65rem; color: rgba(255,255,255,.76); background: transparent; text-align: left; cursor: pointer; font-weight: 650; }
.nav-item .material-icons { color: rgba(255,255,255,.44); font-size: 1.15rem; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.is-active { color: #fff; background: rgba(82,224,207,.16); box-shadow: inset 3px 0 0 var(--brand-aqua); }
.nav-item.is-active .material-icons { color: var(--brand-yellow); }
.nav-count { display: inline-grid; min-width: 1.3rem; height: 1.3rem; margin-left: auto; padding: 0 .3rem; place-items: center; border-radius: 999px; color: #fff; background: var(--brand-coral); font-size: .65rem; font-style: normal; font-weight: 800; }
.nav-item--subtle { margin-bottom: .6rem; color: rgba(255,255,255,.55); font-size: .78rem; }
.mock-sidebar-footer { padding: .7rem; border-top: 1px solid rgba(255,255,255,.1); }
.mini-account { display: flex; align-items: center; gap: .65rem; padding: .7rem .55rem; }
.mini-account strong, .mini-account span { display: block; }
.mini-account strong { font-size: .8rem; }
.mini-account span { color: var(--brand-aqua); font-size: .65rem; }

.mobile-header { position: sticky; top: 0; z-index: 30; display: flex; min-height: 66px; align-items: center; justify-content: space-between; padding: 0 .8rem; color: #fff; background: linear-gradient(135deg, var(--brand-teal-strong), var(--brand-deep)); box-shadow: 0 3px 18px rgba(6,17,38,.2); }
.brand-lockup--mobile { padding: 0; }
.brand-lockup--mobile .brand-mark { width: 35px; height: 35px; border-radius: 10px 3px 10px 3px; font-size: .84rem; }
.brand-lockup--mobile strong { font-size: 1.1rem; }
.brand-lockup--mobile span { font-size: .62rem; }
.header-actions { display: flex; align-items: center; gap: .35rem; }
.icon-button { position: relative; display: inline-grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: transparent; cursor: pointer; }
.icon-button:hover { background: rgba(255,255,255,.08); }
.icon-button--light { color: var(--brand-ink); background: #fff; border: 1px solid rgba(7,24,46,.12); }
.icon-button--light:hover { color: var(--brand-teal-strong); background: #eef8f9; }
.notification-dot { position: absolute; top: 7px; right: 6px; display: grid; min-width: 17px; height: 17px; padding: 0 4px; place-items: center; border: 2px solid var(--brand-deep); border-radius: 999px; color: #fff; background: var(--brand-coral); font-size: .58rem; font-weight: 800; }
.notification-dot::after { content: '2'; }

.avatar { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand-teal), var(--brand-blue)); font-weight: 800; box-shadow: 0 2px 7px rgba(7,24,46,.15); }
.avatar--button { width: 38px; height: 38px; min-height: 38px; border: 2px solid rgba(255,255,255,.65); cursor: pointer; }
.avatar--small { width: 34px; height: 34px; flex-basis: 34px; }
.avatar--mini { width: 26px; height: 26px; flex-basis: 26px; border-width: 1px; font-size: .7rem; }
.avatar--large { width: 72px; height: 72px; flex-basis: 72px; font-size: 1.35rem; }
.avatar--a { background: linear-gradient(135deg, #00858A, #005F61); }
.avatar--b { background: linear-gradient(135deg, #2596BE, #5264d9); }
.avatar--c { background: linear-gradient(135deg, #F04A67, #b744c4); }
.avatar--muted { color: var(--brand-ink); background: #dceff2; border-color: #fff; }

main.app-main {
  margin: 0;
  min-height: calc(100vh - 66px);
  padding: 1.2rem .9rem 6.4rem;
  color: var(--brand-ink);
  background: var(--brand-mist);
}
.desktop-topbar { display: none; }
.screen { width: min(100%, 1040px); margin: 0 auto; animation: page-in .18s ease-out; }
@keyframes page-in { from { opacity: .5; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.page-header { margin-bottom: 1.35rem; }
.page-header h1, .member-hero h1 { margin: 0 0 .4rem; color: var(--brand-ink); font-family: var(--font-display); font-size: clamp(2.25rem, 9vw, 3.6rem); font-weight: 700; line-height: .88; letter-spacing: -.015em; text-transform: uppercase; }
.page-subtitle { max-width: 48rem; color: #425e70 !important; font-size: .9rem; }
.eyebrow { margin-bottom: .42rem; color: var(--brand-teal-strong); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kicker { color: var(--brand-teal) !important; }
.with-team-switch, .page-header--actions { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }

.card { border-color: rgba(7,24,46,.12); background: #fff; box-shadow: 0 5px 18px rgba(7,24,46,.06); }
.card-header { background: #edf7f8; border-color: rgba(7,24,46,.1); }
.card-header h2, .card-header h3 { color: var(--brand-ink); }
.card-body { color: #30495c; }
.btn-primary { color: #fff !important; background: #087b7c !important; border-color: #087b7c !important; }
.btn-primary:hover { background: #05696a !important; }
.btn-ghost { color: var(--brand-ink); border-color: rgba(7,24,46,.18); background: #fff; }
.btn-ghost:hover { color: var(--brand-ink); border-color: var(--brand-teal); background: #edf7f8; }

.card-label { display: block; margin-bottom: .35rem; color: #607786; font-size: .64rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.card-label--urgent { color: #b62542; }
.card-label--action { color: #8b5a00; }
.card-label--upcoming, .card-label--info { color: #087b7c; }

.urgent-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem; margin-bottom: 1.8rem; padding: 1rem; border: 1px solid rgba(240,74,103,.3); border-left: 5px solid var(--brand-coral); border-radius: 1rem; background: linear-gradient(110deg, #fff3f5, #fff); box-shadow: 0 6px 18px rgba(240,74,103,.09); cursor: pointer; }
.urgent-card__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: .75rem; color: #fff; background: var(--brand-coral); }
.urgent-card h2 { margin: 0 0 .15rem; font-size: 1rem; }
.urgent-card p { color: #4a6474; font-size: .78rem; }
.urgent-card__arrow { color: var(--brand-coral); }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 1.7rem 0 .8rem; }
.section-heading h2 { margin: 0; color: var(--brand-ink); font-size: 1.1rem; }
.text-action, .text-back { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: 0; border: 0; color: #087b7c; background: transparent; cursor: pointer; font-size: .78rem; font-weight: 800; }

.shift-stack { display: grid; gap: .7rem; }
.shift-card { display: grid; grid-template-columns: auto 1fr; gap: .85rem; padding: .85rem; border: 1px solid rgba(7,24,46,.11); border-radius: .9rem; background: #fff; box-shadow: 0 3px 12px rgba(7,24,46,.05); }
.date-tile { display: grid; width: 52px; height: 58px; place-items: center; align-content: center; border-radius: .7rem; color: #fff; background: var(--brand-teal-strong); }
.date-tile strong { font-family: var(--font-display); font-size: 1.55rem; line-height: .9; }
.date-tile span { margin-top: .2rem; color: var(--brand-aqua); font-size: .57rem; font-weight: 900; letter-spacing: .1em; }
.shift-card__content { min-width: 0; }
.shift-card__title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem; }
.shift-card h3 { color: var(--brand-ink); font-size: .92rem; }
.shift-card p { margin: .1rem 0 .4rem; color: #5c7280; font-size: .76rem; }
.position-pill { display: inline-flex; padding: .18rem .5rem; border-radius: 999px; color: #075f60; background: #e2f5f3; font-size: .67rem; font-weight: 800; }
.status-badge-ui { display: inline-flex; align-items: center; gap: .25rem; border: 1px solid transparent; }
.status-badge-ui .material-icons { font-size: .9rem; }
.status-ok { color: #0a654f; background: #e5f6ef; border-color: #b9e8d4; }
.status-info { color: #075c70; background: #e4f4f8; border-color: #b7dfe8; }
.status-action { color: #6b5100; background: #fff5c9; border-color: #ead66b; }

.dashboard-grid { display: grid; gap: .7rem; margin-top: 1.3rem; }
.dashboard-tile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; width: 100%; padding: .9rem; border: 1px solid rgba(7,24,46,.1); border-radius: .85rem; color: var(--brand-ink); background: #fff; text-align: left; cursor: pointer; box-shadow: 0 3px 10px rgba(7,24,46,.04); }
.dashboard-tile > span:nth-child(2) { display: grid; }
.dashboard-tile small { color: #6b7e89; font-size: .6rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-tile strong { margin-top: .1rem; font-size: .88rem; }
.dashboard-tile em { color: #667c89; font-size: .72rem; font-style: normal; }
.tile-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: .72rem; color: #075f60; background: #e1f3f2; }
.tile-icon--blue { color: #176b8a; background: #e1f0f5; }
.tile-icon--yellow { color: #725600; background: #fff8c9; }

.team-highlight h2 { margin: .15rem 0 .35rem; color: var(--brand-ink); font-size: 1.1rem; }
.team-highlight p { color: #425e70; }
.meta-line { display: inline-flex; align-items: center; gap: .35rem; margin-top: .7rem; color: #637b89; font-size: .72rem; }
.meta-line .material-icons { font-size: 1rem; }
.member-preview-row { display: flex; padding-left: .3rem; }
.member-preview-row .avatar { margin-left: -8px; }
.member-preview-row .avatar:first-child { margin-left: 0; }
.card-list { overflow: hidden; border: 1px solid rgba(7,24,46,.11); border-radius: 1rem; background: #fff; }
.list-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; width: 100%; padding: .9rem 1rem; border: 0; border-bottom: 1px solid rgba(7,24,46,.09); color: var(--brand-ink); background: #fff; text-align: left; cursor: pointer; }
.list-row:last-child { border-bottom: 0; }
.list-row span:nth-child(2) { display: grid; }
.list-row strong { font-size: .84rem; }
.list-row small { color: #687f8c; font-size: .7rem; }
.list-row__icon { color: #087b7c; }

.search-row { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: 1rem; }
.search-box { display: flex; flex: 1; align-items: center; gap: .55rem; min-height: 44px; padding: 0 .75rem; border: 1px solid rgba(7,24,46,.15); border-radius: .7rem; background: #fff; }
.search-box .material-icons { color: #6b7f8c; font-size: 1.1rem; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--brand-ink); background: transparent; }
.member-list { display: grid; gap: .65rem; }
.member-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: .9rem; border: 1px solid rgba(7,24,46,.11); border-radius: .85rem; background: #fff; }
.member-card__main { min-width: 0; }
.member-card__main > div { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.member-card h3 { color: var(--brand-ink); font-size: .92rem; }
.member-card p { margin-top: .12rem; color: #536d7d; font-size: .73rem; }
.member-card a { display: inline-block; margin-top: .2rem; color: #087b7c; font-size: .74rem; font-weight: 800; }
.member-card small { color: #6a7d88; font-size: .67rem; }
.muted-copy, .muted-icon { color: #81909a !important; }
.member-card--admin-extra { border-style: dashed; background: #f9fcfd; }
.context-note { display: flex; align-items: flex-start; gap: .6rem; margin-top: 1rem; padding: .8rem .9rem; border-left: 4px solid var(--brand-blue); border-radius: .55rem; color: #3a596b; background: #eaf4f7; font-size: .75rem; line-height: 1.5; }
.context-note .material-icons { color: #176b8a; font-size: 1.05rem; }
.context-note--strong { margin: 0 0 1.2rem; border-left-color: var(--brand-teal); background: #e7f5f4; }

.period-progress { margin-bottom: 1rem; }
.period-progress__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.period-progress__top strong { color: var(--brand-ink); font-size: .8rem; }
.progress-track { height: 8px; margin: .8rem 0 .45rem; overflow: hidden; border-radius: 999px; background: #dcebed; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-teal), var(--brand-blue)); }
.period-progress p { color: #687e8b; font-size: .72rem; }
.availability-list { display: grid; gap: .7rem; }
.availability-card { display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding: .85rem; border: 1px solid rgba(7,24,46,.11); border-radius: .9rem; background: #fff; }
.availability-card--urgent { border-left: 4px solid var(--brand-coral); }
.availability-card__main h3 { color: var(--brand-ink); font-size: .9rem; }
.availability-card__main p { color: #607886; font-size: .72rem; }
.need-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.need-row span { padding: .18rem .45rem; border-radius: .4rem; color: #496777; background: #edf5f6; font-size: .65rem; font-weight: 700; }
.availability-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.answer-btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 44px; border: 1px solid rgba(7,24,46,.15); border-radius: .6rem; color: #526b7b; background: #fff; cursor: pointer; font-weight: 800; }
.answer-btn .material-icons { font-size: 1rem; }
.answer-btn--yes.is-selected { color: #075f60; border-color: #62bdb0; background: #ddf5f1; }
.answer-btn--no.is-selected { color: #a82440; border-color: #ef9bad; background: #fff0f3; }
.title-with-badge { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }

.segmented { display: inline-grid; grid-template-columns: 1fr 1fr; width: 100%; margin-bottom: 1rem; padding: 4px; border-radius: .75rem; background: #dcebed; }
.segmented button { min-height: 40px; border: 0; border-radius: .55rem; color: #5b7482; background: transparent; font-weight: 800; cursor: pointer; }
.segmented button.is-active { color: var(--brand-ink); background: #fff; box-shadow: 0 2px 8px rgba(7,24,46,.08); }
.segmented span { display: inline-grid; min-width: 20px; height: 20px; margin-left: .25rem; place-items: center; border-radius: 999px; background: #e7f1f3; font-size: .64rem; }
.document-list { display: grid; gap: .7rem; }
.document-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: .9rem; border: 1px solid rgba(7,24,46,.11); border-radius: .9rem; background: #fff; }
.document-card h3 { color: var(--brand-ink); font-size: .88rem; }
.document-card p { margin: .12rem 0 .3rem; color: #506b7b; font-size: .72rem; }
.document-card > div:nth-child(2) > span:last-child { color: #74858f; font-size: .65rem; }
.file-icon, .file-thumb { display: grid; width: 48px; height: 56px; place-items: center; border-radius: .55rem; color: #176b8a; background: #e2f0f5; font-size: .62rem; font-weight: 900; }
.file-icon--pdf { color: #ad2946; background: #fbe8ec; }
.file-thumb { color: #075f60; background: linear-gradient(145deg, #dff5f1, #c6e9e8); }
.document-card--pending { border-style: dashed; background: #fffdf2; }

.channel-layout { display: grid; gap: .7rem; }
.channel-list { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .2rem; }
.channel-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; min-width: 180px; min-height: 58px; padding: .6rem .7rem; border: 1px solid rgba(7,24,46,.11); border-radius: .7rem; color: var(--brand-ink); background: #fff; text-align: left; cursor: pointer; }
.channel-item.is-active { border-color: #61bcb7; background: #e6f5f3; }
.channel-item .material-icons { color: #087b7c; font-size: 1.1rem; }
.channel-item span:nth-child(2) { display: grid; }
.channel-item strong { font-size: .78rem; }
.channel-item small { color: #667c89; font-size: .62rem; }
.chat-pane { display: flex; min-height: 560px; flex-direction: column; overflow: hidden; border: 1px solid rgba(7,24,46,.11); border-radius: 1rem; background: #fff; box-shadow: 0 5px 18px rgba(7,24,46,.05); }
.chat-pane__header { display: flex; min-height: 62px; align-items: center; justify-content: space-between; padding: .7rem .9rem; border-bottom: 1px solid rgba(7,24,46,.1); background: #edf7f8; }
.chat-pane__header strong, .chat-pane__header span { display: block; }
.chat-pane__header strong { color: var(--brand-ink); }
.chat-pane__header span { color: #6c818c; font-size: .66rem; }
.message-stream { display: flex; flex: 1; flex-direction: column; gap: .85rem; padding: .9rem; overflow-y: auto; background: linear-gradient(#f8fcfd, #fff); }
.chat-day { display: flex; align-items: center; gap: .5rem; color: #87959e; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.chat-day::before, .chat-day::after { content: ''; flex: 1; height: 1px; background: #dce9ec; }
.message-bubble { max-width: 88%; align-self: flex-start; padding: .7rem .8rem; border: 1px solid #dce7ea; border-radius: .9rem .9rem .9rem .2rem; background: #fff; box-shadow: 0 2px 6px rgba(7,24,46,.04); }
.message-bubble--own { align-self: flex-end; border-color: #9ddbd4; border-radius: .9rem .9rem .2rem .9rem; background: #def3f0; }
.message-bubble--reply { border-left: 4px solid var(--brand-blue); }
.message-author { display: flex; align-items: center; gap: .4rem; margin-bottom: .25rem; }
.message-author strong { color: var(--brand-ink); font-size: .72rem; }
.message-author time { margin-left: auto; color: #7e9099; font-size: .6rem; }
.message-bubble p { color: #304d5e; font-size: .78rem; line-height: 1.48; }
.message-state { margin-top: .32rem; color: #86949b; font-size: .58rem; text-align: right; }
.message-state--read { color: #087b7c; font-weight: 800; }
.reply-reference { margin: -.15rem 0 .45rem; padding: .3rem .45rem; border-left: 3px solid var(--brand-blue); color: #48687a; background: #edf5f8; font-size: .62rem; }
.chat-composer { padding: .7rem; border-top: 1px solid rgba(7,24,46,.1); background: #edf7f8; }
.chat-composer textarea { width: 100%; min-height: 76px; padding: .65rem; border: 1px solid rgba(7,24,46,.15); border-radius: .65rem; color: var(--brand-ink); background: #fff; resize: none; }
.chat-composer > div { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; }
.composer-hint { color: #73858f; font-size: .58rem; }
.send-button { display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: .65rem; color: #fff; background: #087b7c; cursor: pointer; }

.profile-grid { display: grid; gap: .9rem; }
.profile-identity { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.profile-identity h2 { color: var(--brand-ink); font-size: 1.15rem; }
.profile-identity span { color: #6f828d; font-size: .72rem; }
.avatar-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin: 1rem 0; }
.avatar-choice { display: grid; justify-items: center; gap: .3rem; min-height: 84px; padding: .55rem; border: 1px solid rgba(7,24,46,.14); border-radius: .65rem; color: #526b7b; background: #fff; cursor: pointer; }
.avatar-choice.is-selected { border-color: #087b7c; box-shadow: inset 0 0 0 1px #087b7c; background: #eef9f8; }
.avatar-choice span:last-child { font-size: .65rem; font-weight: 800; }
.avatar-picker--compact { grid-template-columns: repeat(3, minmax(70px, 110px)); }
.toggle-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem; margin-bottom: 1rem; cursor: pointer; }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { color: var(--brand-ink); font-size: .84rem; }
.toggle-row small { color: #6d818d; font-size: .68rem; }
.toggle-row input { position: absolute; opacity: 0; }
.toggle-ui { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #c8d6db; transition: .18s ease; }
.toggle-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(7,24,46,.2); transition: .18s ease; }
.toggle-row input:checked + .toggle-ui { background: #087b7c; }
.toggle-row input:checked + .toggle-ui::after { transform: translateX(20px); }
.choice-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.choice-pills button { min-height: 38px; padding: .35rem .65rem; border: 1px solid rgba(7,24,46,.14); border-radius: 999px; color: #566f7e; background: #fff; cursor: pointer; }
.choice-pills button.is-selected { color: #075f60; border-color: #6dbfb8; background: #def3ef; }
.device-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .85rem 1rem; border-top: 1px solid rgba(7,24,46,.09); }
.device-row:first-of-type { border-top: 0; }
.device-row > .material-icons { color: #087b7c; }
.device-row strong, .device-row small { display: block; }
.device-row strong { color: var(--brand-ink); font-size: .78rem; }
.device-row small { color: #71858f; font-size: .65rem; }

.notification-list { display: grid; gap: .7rem; }
.notification-card { display: grid; grid-template-columns: auto 1fr; gap: .75rem; padding: .9rem; border: 1px solid rgba(7,24,46,.1); border-radius: .85rem; background: #fff; }
.notification-card > .material-icons { display: grid; width: 40px; height: 40px; place-items: center; border-radius: .65rem; color: #176b8a; background: #e3f1f5; }
.notification-card--urgent { border-left: 4px solid var(--brand-coral); }
.notification-card--urgent > .material-icons { color: #b62542; background: #ffe7ec; }
.notification-card--important { border-left: 4px solid #d7ad32; }
.notification-card--important > .material-icons { color: #805d00; background: #fff5cc; }
.notification-card h3 { color: var(--brand-ink); font-size: .84rem; }
.notification-card p { margin: .12rem 0 .3rem; color: #536d7d; font-size: .72rem; }
.notification-card time { color: #86959d; font-size: .62rem; }

.admin-kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1.2rem; }
.admin-kpi { display: grid; min-height: 122px; align-content: center; justify-items: center; gap: .15rem; padding: .8rem; border: 1px solid rgba(7,24,46,.11); border-top: 4px solid #087b7c; border-radius: .85rem; color: var(--brand-ink); background: #fff; cursor: pointer; }
.admin-kpi .material-icons { color: #087b7c; }
.admin-kpi strong { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.admin-kpi small { color: #667d8a; text-align: center; }
.admin-kpi--urgent { border-top-color: var(--brand-coral); }
.admin-kpi--urgent .material-icons, .admin-kpi--urgent strong { color: #b62542; }
.management-section { margin-bottom: 1rem; }
.management-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding: .9rem 1rem; border-top: 1px solid rgba(7,24,46,.09); }
.management-row:first-of-type { border-top: 0; }
.management-row strong, .management-row span { display: block; }
.management-row strong { color: var(--brand-ink); font-size: .8rem; }
.management-row span { color: #617987; font-size: .68rem; }
.fairness-table { display: grid; }
.fairness-table > div { display: grid; grid-template-columns: 1fr 70px 110px; gap: .6rem; padding: .75rem 1rem; border-top: 1px solid rgba(7,24,46,.08); color: #526d7d; font-size: .72rem; }
.fairness-table .fairness-head { color: #71848e; background: #f6fafb; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.fairness-table strong { color: var(--brand-ink); }

.org-grid { display: grid; gap: .75rem; }
.org-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: 1rem; border: 1px solid rgba(7,24,46,.11); border-radius: .9rem; color: var(--brand-ink); background: #fff; text-align: left; cursor: pointer; }
.org-card > .material-icons:first-child { display: grid; width: 44px; height: 44px; place-items: center; border-radius: .7rem; color: #075f60; background: #e3f4f2; }
.org-card strong, .org-card small { display: block; }
.org-card strong { font-size: .86rem; }
.org-card small { color: #687f8c; font-size: .68rem; }
.org-card > .material-icons:last-child { color: #80919a; }

.filter-bar { display: grid; gap: .7rem; margin-bottom: 1rem; padding: .8rem; }
.audit-list { overflow: hidden; }
.audit-row { display: grid; grid-template-columns: auto 1fr; gap: .75rem; padding: .95rem 1rem; border-top: 1px solid rgba(7,24,46,.09); }
.audit-row:first-child { border-top: 0; }
.audit-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: .65rem; color: #075f60; background: #e2f3f1; }
.audit-icon--danger { color: #ad2946; background: #fde8ed; }
.audit-row strong { color: var(--brand-ink); font-size: .8rem; }
.audit-row p { margin: .15rem 0 .3rem; color: #4b6777; font-size: .72rem; }
.audit-row div > span { color: #84949c; font-size: .62rem; }

.screen--auth { min-height: calc(100vh - 9rem); display: grid; place-items: center; }
.auth-panel { width: min(100%, 430px); margin: 0 auto; }
.auth-panel--wide { width: min(100%, 700px); }
.auth-brand { margin-bottom: 1rem; text-align: center; }
.auth-brand h1 { margin: 0 0 .6rem; color: var(--brand-ink); font-family: var(--font-display); font-size: clamp(2.5rem, 10vw, 4rem); line-height: .88; text-transform: uppercase; }
.auth-brand p { color: #526e7e; }
.auth-card { width: 100%; }
.auth-footnote { margin-top: .8rem; color: #71848f; font-size: .68rem; text-align: center; }
.code-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; margin-bottom: 1rem; }
.code-inputs input { width: 100%; min-width: 0; height: 52px; border: 1px solid rgba(7,24,46,.16); border-radius: .55rem; color: var(--brand-ink); background: #f8fcfd; text-align: center; font-size: 1.2rem; font-weight: 800; }
.auth-card .btn + .btn { margin-top: .55rem; }
.team-choice-grid { display: grid; gap: .7rem; }
.team-choice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: 1rem; border: 1px solid rgba(7,24,46,.12); border-radius: .9rem; color: var(--brand-ink); background: #fff; text-align: left; cursor: pointer; }
.team-choice.is-selected { border-color: #6cbfb8; box-shadow: inset 4px 0 0 #087b7c; }
.team-choice__icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: .7rem; color: #075f60; background: #e0f3f1; }
.team-choice strong, .team-choice small { display: block; }
.team-choice small { color: #6b808b; font-size: .68rem; }

.bottom-nav { position: fixed; inset: auto 0 0 0; z-index: 35; display: grid; grid-template-columns: repeat(6, 1fr); min-height: 66px; padding: 4px max(2px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(2px, env(safe-area-inset-left)); border-top: 1px solid rgba(255,255,255,.12); background: rgba(6,17,38,.97); box-shadow: 0 -5px 20px rgba(6,17,38,.18); backdrop-filter: blur(14px); }
.bottom-nav__item { position: relative; display: grid; min-width: 0; min-height: 56px; place-items: center; align-content: center; gap: 1px; padding: 4px 1px; border: 0; border-radius: .55rem; color: rgba(255,255,255,.58); background: transparent; cursor: pointer; font-size: .56rem; font-weight: 750; }
.bottom-nav__item .material-icons { font-size: 1.25rem; }
.bottom-nav__item.is-active { color: var(--brand-aqua); background: rgba(82,224,207,.1); }
.bottom-nav__item i { position: absolute; top: 2px; right: calc(50% - 18px); display: grid; min-width: 16px; height: 16px; place-items: center; border-radius: 999px; color: #fff; background: var(--brand-coral); font-size: .55rem; font-style: normal; font-weight: 900; }

@media (min-width: 680px) {
  main.app-main { padding: 1.7rem 1.4rem 7rem; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .availability-card { grid-template-columns: auto 1fr auto; align-items: center; }
  .availability-actions { grid-column: auto; display: flex; }
  .answer-btn { min-width: 68px; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .profile-card--wide { grid-column: 1 / -1; }
  .admin-kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .org-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 220px; align-items: center; }
}

@media (min-width: 900px) {
  .mock-sidebar { display: flex; }
  .mobile-header, .bottom-nav { display: none; }
  main.app-main { margin-left: 260px; min-height: 100vh; padding: 5.7rem 2rem 4rem; }
  .desktop-topbar { position: fixed; top: 0; right: 0; left: 260px; z-index: 25; display: flex; min-height: 64px; align-items: center; justify-content: space-between; padding: 0 2rem; border-bottom: 1px solid rgba(7,24,46,.08); background: rgba(244,250,252,.92); backdrop-filter: blur(12px); }
  .route-chip { padding: .35rem .6rem; border: 1px solid rgba(7,24,46,.08); border-radius: .45rem; color: #657c88; background: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; }
  .desktop-actions { display: flex; align-items: center; gap: .5rem; }
  .screen { margin: 0; }
  .member-hero { padding-top: .4rem; }
  .shift-stack { grid-template-columns: repeat(2, 1fr); }
  .channel-layout { grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
  .channel-list { display: grid; overflow: visible; }
  .channel-item { min-width: 0; }
  .org-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  main.app-main { padding-right: 3rem; padding-left: 3rem; }
  .dashboard-grid { grid-template-columns: repeat(4, 1fr); }
  .dashboard-tile { grid-template-columns: auto 1fr; }
  .dashboard-tile > .material-icons:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  * { scroll-behavior: auto !important; }
}
