.home-hub,
.fixed-rooms {
  display: grid;
  gap: 24px;
  width: 100%;
}

.home-hero,
.module-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 4px;
}

.home-hero h1,
.module-header h1 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.9;
}

.home-lead,
.module-header > p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.58;
}

.home-actions,
.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.home-actions button,
.module-actions button,
.join-code-form button,
.fixed-form-panel button,
.fixed-detail-panel button,
.fixed-list-panel button,
.recent-card .panel-title button {
  border: 1px solid rgba(255, 204, 0, 0.58);
  border-radius: 999px;
  background: var(--yellow);
  color: #050505;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 12px 16px;
}

.home-actions button.ghost,
.module-actions button,
.fixed-list-panel .panel-title button,
.recent-card .panel-title button {
  background: transparent;
  color: var(--yellow);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.home-card {
  min-height: 230px;
}

.home-card h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.join-code-form,
.mode-list,
.home-room-list,
.calendar-preview,
.fixed-room-list,
.fixed-room-form,
.fixed-tab-panel,
.session-list,
.file-list {
  display: grid;
  gap: 12px;
}

.join-code-form label,
.fixed-form-panel label,
.fixed-detail-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.join-code-form input,
.fixed-form-panel input,
.fixed-detail-panel input,
.fixed-detail-panel select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(5, 5, 5, 0.64);
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
}

.panel .mode-list button,
.home-room-item,
.fixed-room-item,
.history-item,
.calendar-preview article {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 204, 0, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
}

.panel .mode-list button,
.home-room-item,
.fixed-room-item {
  cursor: pointer;
}

.panel .mode-list button:hover,
.home-room-item:hover,
.home-room-item.active,
.fixed-room-item:hover,
.fixed-room-item.active {
  border-color: rgba(255, 204, 0, 0.62);
  background: rgba(255, 204, 0, 0.1);
}

.panel .mode-list button.disabled {
  cursor: default;
  opacity: 0.58;
}

.panel .mode-list button.disabled:hover {
  border-color: rgba(255, 204, 0, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.panel .mode-list strong,
.home-room-item strong,
.fixed-room-item strong,
.history-item strong,
.calendar-preview strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.panel .mode-list span,
.home-room-item span,
.fixed-room-item span,
.history-item span,
.calendar-preview span,
#fixedRoomDetailSlug,
#driveStatusText,
.fixed-empty {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.fixed-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 0.95fr) minmax(360px, 1.4fr);
  gap: 18px;
  align-items: start;
}

.fixed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.fixed-tabs button {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
  padding: 9px 12px;
}

.fixed-tabs button[aria-pressed="true"] {
  background: rgba(255, 204, 0, 0.14);
  border-color: rgba(255, 204, 0, 0.58);
  color: var(--yellow);
}

.fixed-detail-panel {
  min-height: 420px;
}

@media (max-width: 1120px) {
  .home-grid,
  .fixed-layout {
    grid-template-columns: 1fr 1fr;
  }

  .fixed-detail-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .home-hero,
  .module-header,
  .home-grid,
  .fixed-layout {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .module-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-actions,
  .module-actions {
    justify-content: flex-start;
  }
}
