:root {
  --ink: #171920;
  --muted: #6f7280;
  --line: #d7dce7;
  --paper: #f4f7fb;
  --panel: #ffffff;
  --stage: #121820;
  --stage-2: #263241;
  --accent: #ff4f63;
  --gold: #ffca5f;
  --mint: #33c7a1;
  --blue: #4b7dff;
  --violet: #7b61ff;
  --shadow: 0 18px 55px rgba(18, 24, 32, 0.12);
  --glow: 0 0 0 1px rgba(75, 125, 255, 0.18), 0 18px 50px rgba(75, 125, 255, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #eef4fb 0%, #f8fafc 42%, #f4f7fb 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  background:
    linear-gradient(180deg, #101720 0%, #17212c 54%, #101820 100%);
  color: #fffdf8;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 5px;
  background: #0f1720;
  box-shadow: inset 0 -10px 0 rgba(255, 202, 95, 0.2), 0 0 26px rgba(51, 199, 161, 0.2);
}

.brand-mark span {
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0.72);
  box-shadow: 0 0 10px rgba(255, 202, 95, 0.72);
}

.brand h1 {
  font-size: 1.02rem;
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav button,
.sidebar-action {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav button:hover,
.nav button.active {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 3px 0 0 var(--gold);
}

.nav .symbol,
.quick-button .symbol,
.icon-button .symbol {
  width: 22px;
  text-align: center;
  font-weight: 800;
}

.sidebar-card {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-card strong {
  display: block;
}

.sidebar-card span {
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.85rem;
}

.main {
  min-width: 0;
}

.topbar {
  min-height: 74px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 251, 0.88);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: 0;
}

.topbar p {
  margin: 3px 0 0;
  color: var(--muted);
}

.user-chip {
  border: 1px solid rgba(75, 125, 255, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(18, 24, 32, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #fff1b8);
  display: grid;
  place-items: center;
  font-weight: 900;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content {
  padding: 26px;
  display: grid;
  gap: 22px;
  min-width: 0;
  overflow-x: hidden;
}

.hero-band {
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 24, 32, 0.98), rgba(32, 47, 59, 0.92)),
    repeating-linear-gradient(90deg, #151f2a 0 26px, #111922 26px 52px);
  color: #fffdf8;
  padding: 24px;
  min-height: 210px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--glow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 12px;
  color: #b8ffe9;
  background: rgba(51, 199, 161, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-band h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

.hero-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 62ch;
}

.marquee {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.06);
}

.marquee-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.bulb {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(246, 189, 96, 0.85);
}

.guide-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-strip article {
  border: 1px solid rgba(75, 125, 255, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 36px rgba(18, 24, 32, 0.08);
}

.guide-action {
  display: grid;
  gap: 10px;
  align-content: start;
}

.guide-strip strong,
.guide-strip span {
  display: block;
}

.guide-strip strong {
  color: var(--stage);
}

.guide-strip span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.88rem;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 220, 231, 0.82);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.panel-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(215, 220, 231, 0.76);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.panel-header h3 {
  margin: 0;
  font-size: 0.98rem;
  text-transform: uppercase;
  color: #202734;
}

.panel-body {
  padding: 18px;
  min-width: 0;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(135px, 1fr));
  gap: 12px;
}

.status-panel {
  border-color: rgba(51, 199, 161, 0.26);
}

.live-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.live-status span {
  color: var(--muted);
}

.roster-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.roster-summary strong {
  font-size: 1.35rem;
  color: #142034;
}

.roster-summary span,
.roster-divider {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.dashboard-roster,
.member-roster-list {
  display: grid;
  gap: 10px;
}

.dashboard-member-row,
.member-roster-card {
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 10px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.92));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dashboard-member-row.is-online {
  border-color: rgba(98, 196, 65, 0.28);
  box-shadow: inset 3px 0 0 rgba(98, 196, 65, 0.68);
}

.dashboard-member-row strong,
.member-roster-card strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.presence-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(174, 183, 196, 0.16);
}

.presence-dot.online {
  background: #62c441;
  box-shadow: 0 0 0 3px rgba(98, 196, 65, 0.16);
}

.presence-dot.offline {
  background: #aeb7c4;
}

.compact-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.84rem;
}

.roster-divider {
  margin-top: 4px;
  text-transform: uppercase;
}

.members-modal-body {
  display: grid;
  gap: 14px;
}

.member-roster-card {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.admin-modal-tools {
  border-top: 1px solid rgba(215, 220, 231, 0.9);
  margin-top: 6px;
  padding-top: 14px;
  display: grid;
  gap: 12px;
}

.admin-modal-tools header {
  display: grid;
  gap: 2px;
}

.quick-button,
.primary-button,
.secondary-button,
.danger-button,
.icon-button {
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 8px;
  min-height: 42px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.quick-button {
  min-height: 58px;
  justify-content: flex-start;
  box-shadow: 0 12px 30px rgba(18, 24, 32, 0.08);
}

.quick-button:hover,
.secondary-button:hover,
.icon-button:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(75, 125, 255, 0.11);
}

.primary-button {
  border-color: #17212c;
  background: #17212c;
  color: #fffdf8;
}

.primary-button:hover {
  background: #223244;
}

.danger-button {
  border-color: rgba(228, 88, 88, 0.4);
  background: rgba(228, 88, 88, 0.12);
  color: #9a2f2f;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.list-item strong {
  display: block;
}

.meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 4px;
}

.badge {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
  background: #e9eef8;
  color: #334052;
}

.badge.red {
  background: rgba(228, 88, 88, 0.14);
  color: #a33737;
}

.badge.green {
  background: rgba(116, 180, 155, 0.2);
  color: #2f6655;
}

.badge.blue {
  background: rgba(82, 113, 185, 0.14);
  color: #344d91;
}

.alert-card {
  border-left: 5px solid var(--accent);
  background: #fff8f5;
}

.library-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.library-layout > * {
  min-width: 0;
}

.folder-list {
  display: grid;
  gap: 8px;
}

.folder-button {
  border: 1px solid rgba(215, 220, 231, 0.9);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  min-height: 96px;
  padding: 16px;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  width: 100%;
}

.folder-button.active {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue), 0 10px 26px rgba(75, 125, 255, 0.12);
}

.folder-button:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(75, 125, 255, 0.1), 0 12px 28px rgba(18, 24, 32, 0.08);
}

.folder-button strong,
.folder-button .meta {
  display: block;
}

.folder-open {
  border-radius: 999px;
  background: #e8f0ff;
  color: #254ca8;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.field {
  width: 100%;
  border: 1px solid rgba(199, 207, 220, 0.98);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.field:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(75, 125, 255, 0.14);
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.file-card {
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.file-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.file-card header > div {
  min-width: 0;
  flex: 1 1 auto;
}

.file-card strong,
.file-card .meta {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.file-card .badge {
  flex: 0 1 auto;
  max-width: 45%;
  white-space: normal;
  text-align: center;
}

.file-preview-frame {
  width: 100%;
  min-height: min(62vh, 680px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.file-preview-audio {
  width: 100%;
}

.script-preview {
  border: 1px dashed #c7bfb2;
  border-radius: 8px;
  padding: 12px;
  color: #4c4740;
  background: #fbf5eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.5;
}

.poll-card {
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.poll-options {
  display: grid;
  gap: 8px;
}

.poll-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 1.2fr auto;
  gap: 10px;
  align-items: center;
}

.vote-buttons {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vote-summary {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.meter {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #ece6dc;
  display: flex;
}

.meter span:nth-child(1) {
  background: var(--mint);
}

.meter span:nth-child(2) {
  background: var(--gold);
}

.meter span:nth-child(3) {
  background: var(--accent);
}

.month-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.file-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  justify-content: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.file-actions .secondary-button,
.file-actions .danger-button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px;
}

.date-box {
  border-radius: 8px;
  background: #17212c;
  color: #fffdf8;
  text-align: center;
  padding: 8px;
}

.date-box strong {
  display: block;
  font-size: 1.35rem;
}

.messenger {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 560px;
}

.channels {
  border-right: 1px solid var(--line);
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.channel-button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 10px;
  text-align: left;
}

.channel-button.active {
  background: #e8f0ff;
  color: #254ca8;
}

.chat-area {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
}

.chat-area.has-target {
  grid-template-rows: auto 1fr auto;
}

.private-target {
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  background: rgba(232, 240, 255, 0.62);
}

.messages {
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.message {
  max-width: 680px;
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.message.important {
  border-color: rgba(228, 88, 88, 0.45);
  background: #fff8f5;
}

.composer {
  border-top: 1px solid var(--line);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
}

.important-toggle {
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.online-list {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.member-pill {
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.76);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-align: left;
}

.member-pill .avatar {
  width: 24px;
  height: 24px;
  font-size: 0.72rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dashboard-auth {
  max-width: 620px;
}

.onboarding-layout {
  display: grid;
  gap: 18px;
}

.onboarding-hero h3 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.onboarding-hero p {
  color: var(--muted);
  max-width: 72ch;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.onboarding-card {
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(18, 24, 32, 0.07);
}

.onboarding-card strong {
  display: block;
  color: var(--stage);
}

.onboarding-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.pitch-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
}

.pitch-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pitch-column {
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  align-content: start;
  gap: 10px;
}

.pitch-column h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.pitches-ready {
  background: #f8fbf7;
  border-color: rgba(116, 180, 155, 0.42);
}

.pitch-card {
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 10px;
}

.pitch-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pitch-stats div {
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.pitch-stats strong {
  display: block;
  font-size: 1.5rem;
}

.pitch-stats span {
  color: var(--muted);
  font-size: 0.82rem;
}

.collab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
}

.sketch-editor {
  min-height: 520px;
  line-height: 1.55;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.collab-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.invite-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.invite-card {
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.profile-panel {
  display: grid;
  gap: 12px;
}

.profile-photo-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.profile-avatar {
  width: 86px;
  height: 86px;
  font-size: 1.4rem;
  flex: 0 0 auto;
}

.file-label {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(41, 62, 60, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 251, 248, 0.95), rgba(255, 255, 255, 0.95));
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.file-label input {
  width: 100%;
  color: var(--muted);
  font-weight: 650;
}

.schedule-pitch-meeting {
  border-left: 5px solid var(--blue);
}

.schedule-rehearsal {
  border-left: 5px solid var(--mint);
}

.schedule-show {
  border-left: 5px solid var(--gold);
}

.schedule-urgent {
  border-left: 5px solid var(--accent);
}

.schedule-other {
  border-left: 5px solid var(--muted);
}

.inline-create {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  width: min(470px, 100%);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.member-card {
  border: 1px solid rgba(215, 220, 231, 0.9);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.admin-member-row {
  align-items: center;
}

.admin-member-row > div {
  min-width: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(29, 28, 33, 0.48);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 20;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: min(620px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.modal.wide-modal {
  width: min(900px, 100%);
}

.modal form {
  display: grid;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.empty-state {
  border: 1px dashed rgba(75, 125, 255, 0.3);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 36px));
  border-radius: 8px;
  background: #17212c;
  color: #fffdf8;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  font-weight: 750;
}

.hidden {
  display: none !important;
}

/* Control-panel redesign */
body {
  background:
    radial-gradient(circle at top left, rgba(255, 202, 95, 0.09), transparent 28rem),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: #111a2a;
}

.app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(13, 24, 34, 0.96), rgba(10, 18, 27, 0.99)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.4), 18px 0 50px rgba(20, 31, 46, 0.08);
  padding: 16px 14px;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

.brand {
  display: grid;
  align-items: center;
  min-height: 78px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 236, 246, 0.62);
  background:
    radial-gradient(circle at 50% 50%, #273544 0 42%, transparent 43%),
    conic-gradient(from 0deg, #d7dee8 0 8%, #738091 8% 13%, #d7dee8 13% 21%, #6b7788 21% 27%, #d7dee8 27% 35%, #778496 35% 41%, #d7dee8 41% 49%, #6e7b8d 49% 55%, #d7dee8 55% 63%, #7b8798 63% 69%, #d7dee8 69% 77%, #6f7b8b 77% 83%, #d7dee8 83% 91%, #6b7788 91% 100%);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.45), inset 0 -5px 10px rgba(0, 0, 0, 0.46), 0 10px 26px rgba(0, 0, 0, 0.32);
}

.brand-mark span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #202a36, #0e141c);
  color: #ffc52f;
  font-size: 1.55rem;
  font-weight: 950;
  text-shadow: 0 0 12px rgba(255, 196, 48, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 2px rgba(0, 0, 0, 0.35);
  transform: none;
}

.brand h1 {
  font-size: 1.13rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.brand p {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.68rem;
  font-weight: 850;
}

.nav {
  gap: 5px;
}

.nav button {
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 760;
  gap: 9px;
}

.nav button:hover,
.nav button.active {
  background: linear-gradient(90deg, rgba(255, 202, 95, 0.18), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 202, 95, 0.28);
  color: #ffd45d;
  box-shadow: inset 4px 0 0 #ffc52f, 0 10px 26px rgba(0, 0, 0, 0.18);
}

.nav .symbol {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 0.72rem;
  flex: 0 0 26px;
}

.sidebar-card {
  margin-top: auto;
  flex-shrink: 0;
  border-radius: 12px;
  padding: 12px;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(40, 51, 63, 0.92), rgba(17, 25, 35, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 28px rgba(0, 0, 0, 0.2);
}

.sidebar-card strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.sidebar-card span {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  line-height: 1.35;
}

.sidebar-card::after {
  content: "";
  display: block;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #111a24 0 18%, #ffc52f 18% 78%, #111a24 78%);
  box-shadow: 0 0 14px rgba(255, 197, 47, 0.32), inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.topbar {
  min-height: 100px;
  padding: 26px 34px;
  border-bottom: 1px solid rgba(183, 195, 210, 0.55);
  background: rgba(248, 250, 253, 0.92);
}

.topbar h2 {
  font-size: clamp(2rem, 3vw, 2.65rem);
  color: #111b2d;
  font-weight: 900;
}

.topbar p {
  font-size: 1.05rem;
  color: #687184;
}

.user-chip {
  border-color: rgba(190, 199, 212, 0.9);
  background: #fff;
  box-shadow: 0 12px 32px rgba(24, 35, 49, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 10px 16px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  order: 2;
}

.user-chip.online::before {
  background: #62c441;
  box-shadow: 0 0 0 3px rgba(98, 196, 65, 0.16);
}

.user-chip.offline::before {
  background: #aeb7c4;
  box-shadow: 0 0 0 3px rgba(174, 183, 196, 0.18);
}

.auth-button,
.signout-button {
  border: 1px solid rgba(190, 199, 212, 0.9);
  border-radius: 999px;
  min-height: 42px;
  padding: 9px 15px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #142034;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(24, 35, 49, 0.08);
}

.auth-button:hover,
.signout-button:hover {
  border-color: rgba(255, 197, 47, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 197, 47, 0.16), 0 12px 28px rgba(24, 35, 49, 0.1);
}

.hub-login-prompt .empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.hub-login-prompt .empty-state strong {
  font-size: 1.25rem;
  color: #142034;
}

.content {
  padding: 28px 34px 40px;
}

.hero-band {
  position: relative;
  border-radius: 16px;
  min-height: 245px;
  padding: 46px 54px;
  border: 1px solid rgba(11, 18, 27, 0.8);
  background:
    linear-gradient(110deg, rgba(23, 34, 47, 0.97), rgba(18, 27, 38, 0.95)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 11px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -10px 25px rgba(0, 0, 0, 0.42), 0 22px 50px rgba(15, 25, 38, 0.26);
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(151, 164, 181, 0.28);
  border-radius: 12px;
  pointer-events: none;
}

.hero-band h2 {
  font-size: clamp(2.45rem, 5.8vw, 4.2rem);
  font-weight: 950;
  letter-spacing: 0;
  color: #f6f8fb;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.32), 0 16px 30px rgba(0, 0, 0, 0.5);
}

.hero-band p {
  color: rgba(245, 248, 252, 0.86);
  font-size: 1.05rem;
  line-height: 1.55;
}

.eyebrow {
  border-color: rgba(255, 197, 47, 0.28);
  background: linear-gradient(180deg, rgba(7, 13, 19, 0.78), rgba(20, 29, 39, 0.82));
  color: #ffd34f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 22px rgba(255, 197, 47, 0.1);
}

.hero-screw {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8eef6, #627183 43%, #121922 72%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.screw-a { left: 18px; top: 18px; }
.screw-b { right: 18px; top: 18px; }
.screw-c { left: 18px; bottom: 18px; }
.screw-d { right: 18px; bottom: 18px; }

.marquee {
  position: relative;
  border-radius: 15px;
  padding: 24px;
  border: 1px solid rgba(130, 144, 162, 0.42);
  background: linear-gradient(180deg, #111821, #0b1118);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.32), inset 0 0 34px rgba(255, 197, 47, 0.08), 0 18px 34px rgba(0, 0, 0, 0.34);
}

.marquee::after {
  content: "";
  position: absolute;
  right: -50px;
  top: 25%;
  width: 32px;
  height: 50%;
  border-radius: 8px;
  background: repeating-linear-gradient(180deg, #0b1118 0 8px, #2b3947 8px 12px);
}

.bulb {
  width: 30px;
  background: radial-gradient(circle at 35% 30%, #fff3a6, #ffc52f 58%, #b97900);
  box-shadow: 0 0 18px rgba(255, 197, 47, 0.72), inset 0 -3px 5px rgba(132, 81, 0, 0.28);
}

.guide-strip {
  gap: 18px;
}

.guide-strip article {
  min-height: 128px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-color: rgba(199, 208, 221, 0.86);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 14px 34px rgba(27, 38, 53, 0.09);
}

.step-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffc52f;
  font-size: 2rem;
  font-weight: 950;
  background:
    radial-gradient(circle at 50% 50%, #253241 0 44%, transparent 45%),
    conic-gradient(#c9d3df 0 9%, #566677 9% 15%, #c9d3df 15% 25%, #556576 25% 33%, #c9d3df 33% 43%, #59697a 43% 51%, #c9d3df 51% 61%, #566677 61% 69%, #c9d3df 69% 79%, #566677 79% 87%, #c9d3df 87% 100%);
  text-shadow: 0 0 11px rgba(255, 197, 47, 0.62);
  box-shadow: 0 12px 24px rgba(14, 23, 34, 0.22), inset 0 -4px 8px rgba(0, 0, 0, 0.38);
}

.guide-strip strong {
  font-size: 1.16rem;
  color: #142034;
}

.guide-strip span {
  font-size: 0.98rem;
  line-height: 1.45;
}

.quick-actions {
  gap: 16px;
}

.quick-button {
  position: relative;
  min-height: 68px;
  border-radius: 9px;
  border-color: rgba(199, 208, 221, 0.9);
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 10px 26px rgba(27, 38, 53, 0.09);
  color: #142034;
  font-size: 1rem;
  font-weight: 800;
  overflow: hidden;
}

.quick-button::before {
  content: "";
  width: 3px;
  align-self: stretch;
  background: #ffc52f;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
}

.quick-button:hover {
  border-color: rgba(255, 197, 47, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(27, 38, 53, 0.13);
}

.quick-button .symbol {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef3f8;
  color: #111b2d;
}

.panel {
  border-radius: 12px;
  border-color: rgba(199, 208, 221, 0.86);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(27, 38, 53, 0.09);
}

.primary-button {
  border-color: #121c2a;
  background: linear-gradient(180deg, #1d2a38, #101824);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.secondary-button:hover,
.icon-button:hover {
  border-color: rgba(255, 197, 47, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 197, 47, 0.16);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar-card {
    display: none;
  }

  .hero-band,
  .guide-strip,
  .grid.two,
  .library-layout,
  .auth-grid,
  .messenger,
  .pitch-layout,
  .collab-layout {
    grid-template-columns: 1fr;
  }

  .hero-band {
    padding: 34px 28px;
  }

  .marquee {
    max-width: 420px;
  }

  .quick-actions,
  .grid.three,
  .file-grid,
  .member-grid,
  .onboarding-grid,
  .pitch-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channels {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .library-layout .file-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .content {
    padding: 16px;
  }

  .nav,
  .quick-actions,
  .guide-strip,
  .live-status,
  .grid.three,
  .file-grid,
  .member-grid,
  .onboarding-grid,
  .pitch-board,
  .pitch-stats,
  .auth-actions,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-band {
    padding: 18px;
  }

  .hero-band h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .guide-strip article {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .poll-row,
  .timeline-item,
  .composer,
  .inline-create,
  .dashboard-member-row,
  .member-roster-card {
    grid-template-columns: 1fr;
  }

  .topbar-user {
    justify-content: flex-start;
  }

  .roster-summary {
    display: grid;
  }
}

/* Phone usability pass */
html {
  -webkit-text-size-adjust: 100%;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

@media (max-width: 760px) {
  body {
    background: linear-gradient(180deg, #f7f9fc 0%, #edf3f8 100%);
  }

  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 18;
    height: auto;
    padding: 9px 12px 8px;
    gap: 7px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(7, 13, 20, 0.22);
  }

  .brand {
    min-height: 68px;
    padding: 0 0 4px;
    border-bottom: 0;
    align-items: center;
    width: 100%;
  }

  .brand-logo {
    width: 100%;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    object-position: center;
  }

  .nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 1px 3px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav button {
    flex: 0 0 auto;
    min-width: 88px;
    min-height: 44px;
    padding: 7px 9px;
    border-radius: 10px;
    justify-content: center;
    font-size: 0.8rem;
    scroll-snap-align: start;
  }

  .nav button span:last-child {
    white-space: nowrap;
  }

  .nav .symbol {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 7px;
    font-size: 0.66rem;
  }

  .sidebar-card {
    display: none;
  }

  .topbar {
    position: static;
    min-height: 0;
    padding: 14px 14px 12px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .topbar h2 {
    font-size: 1.55rem;
    line-height: 1.05;
  }

  .topbar p {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .topbar-user {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    justify-content: stretch;
  }

  .auth-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .user-chip {
    min-width: 0;
    padding: 8px 10px;
  }

  .user-chip span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .auth-button,
  .signout-button,
  .quick-button,
  .primary-button,
  .secondary-button,
  .danger-button,
  .icon-button,
  .channel-button,
  .folder-button,
  .member-pill {
    min-height: 44px;
  }

  .content {
    padding: 12px 12px 88px;
    gap: 14px;
  }

  .hero-band {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px 18px;
    border-radius: 12px;
    gap: 14px;
  }

  .hero-band::before {
    inset: 8px;
  }

  .hero-screw {
    width: 10px;
    height: 10px;
  }

  .screw-a { left: 10px; top: 10px; }
  .screw-b { right: 10px; top: 10px; }
  .screw-c { left: 10px; bottom: 10px; }
  .screw-d { right: 10px; bottom: 10px; }

  .hero-band h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
    line-height: 1;
  }

  .hero-band p {
    font-size: 0.95rem;
  }

  .marquee {
    display: none;
  }

  .eyebrow {
    min-height: 25px;
    padding: 4px 9px;
    font-size: 0.7rem;
  }

  .guide-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guide-strip article {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .step-badge {
    width: 44px;
    height: 44px;
    font-size: 1.28rem;
  }

  .guide-strip strong {
    font-size: 1rem;
  }

  .guide-strip span {
    font-size: 0.88rem;
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .quick-button {
    min-height: 58px;
    padding: 10px;
    font-size: 0.9rem;
  }

  .quick-button .symbol {
    width: 28px;
    height: 28px;
  }

  .panel {
    border-radius: 10px;
  }

  .panel-header {
    padding: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .panel-header h3 {
    font-size: 0.9rem;
  }

  .panel-body {
    padding: 12px;
  }

  .grid {
    gap: 14px;
  }

  .grid.two,
  .auth-grid,
  .library-layout,
  .collab-layout,
  .pitch-layout,
  .messenger {
    grid-template-columns: 1fr;
  }

  .live-status {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .live-status .secondary-button {
    width: 100%;
  }

  .list-item {
    display: grid;
    gap: 10px;
  }

  .list-item .month-tools {
    width: 100%;
  }

  .folder-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .folder-button {
    min-height: 76px;
    padding: 12px;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .folder-open {
    display: none;
  }

  .file-grid {
    grid-template-columns: 1fr;
  }

  .file-card {
    padding: 12px;
  }

  .file-card header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .file-card .badge {
    max-width: 100%;
    justify-self: start;
  }

  .file-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .month-tools {
    gap: 8px;
  }

  .month-tools > button,
  .month-tools > a {
    flex: 1 1 auto;
  }

  .poll-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .vote-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timeline-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .date-box {
    padding: 7px 5px;
  }

  .date-box strong {
    font-size: 1.1rem;
  }

  .channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px;
  }

  .online-list {
    grid-column: 1 / -1;
  }

  .messages {
    padding: 12px;
  }

  .message {
    max-width: 100%;
  }

  .composer {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .important-toggle,
  .composer .primary-button {
    width: 100%;
  }

  .dashboard-member-row,
  .member-roster-card,
  .invite-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .dashboard-member-row .compact-button,
  .member-roster-card .compact-button,
  .invite-card .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .roster-summary {
    display: grid;
    gap: 2px;
  }

  .profile-photo-block {
    align-items: flex-start;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
  }

  .inline-create {
    grid-template-columns: 1fr;
  }

  .pitch-stats {
    grid-template-columns: 1fr;
  }

  .sketch-editor {
    min-height: 360px;
    font-size: 0.92rem;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal,
  .modal.wide-modal {
    width: 100%;
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
    overflow: auto;
  }

  .modal .panel-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.98);
  }

  input,
  select,
  textarea,
  .field {
    font-size: 16px;
  }

  .file-preview-frame {
    min-height: 58dvh;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .nav button {
    min-width: 78px;
    font-size: 0.74rem;
  }

  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand {
    min-height: 62px;
  }

  .brand-logo {
    max-height: 66px;
  }

  .topbar-user {
    grid-template-columns: 1fr;
  }

  .signout-button {
    width: 100%;
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-button {
    font-size: 0.84rem;
  }

  .folder-list,
  .file-actions,
  .vote-buttons,
  .channels {
    grid-template-columns: 1fr;
  }

  .dashboard-member-row,
  .member-roster-card,
  .invite-card,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .presence-dot {
    justify-self: start;
  }
}
