:root {
  --bg: #f5f5f7;
  --bg-secondary: #eef2f7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-muted: #f8fafc;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --muted: #667085;
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.1);
  --success: #34c759;
  --warning: #ff9f0a;
  --danger: #ff453a;
  --shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 16px 36px rgba(15, 23, 42, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Helvetica Neue",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(10, 132, 255, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(110, 86, 207, 0.08), transparent 26%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 42%, #edf1f7 100%);
}

body,
button,
input,
select,
textarea,
p,
span,
strong,
h1,
h2,
h3,
h4 {
  overflow-wrap: anywhere;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: none;
  border-color: rgba(10, 132, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
}

textarea {
  resize: vertical;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.82), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.56), transparent 20%);
}

.is-hidden {
  display: none !important;
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  min-width: 0;
}

.overline {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.75rem;
}

.lead,
.muted,
.preview-row p,
.hero-note,
.camera-copy p,
.select-row p,
.timeline-row-meta span,
.project-card p,
.booking-entry-card p,
.booking-list-main p,
.guide-item p,
.team-row span,
.profile-pill span,
.detail-group span,
.return-row p,
.inventory-card-copy p {
  color: var(--muted);
}

.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.badge-row,
.button-row,
.demo-actions,
.main-nav,
.header-actions,
.booking-entry-actions,
.booking-mini-actions,
.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.secondary-button,
.icon-button,
.nav-pill,
.segment,
.step-chip,
.timeline-bar,
.subnav-pill {
  appearance: none;
  border: 0;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.primary-button,
.secondary-button,
.icon-button,
.nav-pill,
.segment,
.subnav-pill {
  border-radius: 16px;
  padding: 11px 16px;
  border: 1px solid transparent;
}

.primary-button {
  color: white;
  background: linear-gradient(180deg, #1b95ff 0%, #0a84ff 100%);
  box-shadow: 0 12px 26px rgba(10, 132, 255, 0.2);
}

.secondary-button,
.icon-button,
.nav-pill,
.segment,
.subnav-pill,
.step-chip {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.primary-button:hover:not(:disabled),
.secondary-button:hover:not(:disabled),
.icon-button:hover,
.nav-pill:hover,
.segment:hover,
.subnav-pill:hover,
.camera-card:hover:not(:disabled),
.project-card:hover,
.filter-item:hover,
.select-row:hover,
.timeline-bar:hover {
  transform: translateY(-1px);
}

.auth-shell,
.app-shell {
  width: min(1440px, calc(100% - 28px));
  margin: 20px auto 36px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 420px);
  gap: 24px;
  min-height: calc(100vh - 56px);
  align-items: center;
}

.auth-visual,
.preview-stack,
.login-form,
.workspace,
.booking-layout,
.inventory-grid,
.project-card-list,
.booking-entry-list,
.team-list,
.side-stack,
.guide-list,
.role-grid,
.filter-list,
.project-sheet-grid,
.detail-group {
  display: grid;
  gap: 16px;
}

.auth-visual {
  gap: 20px;
}

.auth-brand {
  padding: 20px 8px;
}

.auth-brand h1,
.hero-card h1,
.locked-card h1,
.view-head h1,
.auth-card h2 {
  margin: 0 0 12px;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.auth-brand h1,
.hero-card h1 {
  font-size: clamp(3rem, 8vw, 5.8rem);
  max-width: 10ch;
}

.locked-card h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  max-width: 12ch;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 54ch;
}

.auth-preview,
.auth-card {
  padding: 30px;
}

.preview-head,
.section-head,
.project-card-top,
.camera-title-row,
.wizard-top,
.project-sheet-head,
.dialog-actions,
.wizard-actions,
.booking-entry-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.preview-row,
.team-row,
.filter-item,
.project-card,
.booking-list-row,
.return-row,
.guide-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.preview-row,
.team-row,
.filter-item,
.return-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.auth-card {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.error-text {
  min-height: 1.2rem;
  margin: 0;
  color: var(--danger);
}

.demo-block {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.app-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

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

.brand-lockup strong {
  display: block;
  font-size: 0.95rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  background: linear-gradient(180deg, #1b95ff 0%, #0a84ff 100%);
}

.main-nav {
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-pill,
.subnav-pill {
  white-space: nowrap;
}

.nav-pill.is-active,
.segment.is-active,
.subnav-pill.is-active,
.step-chip.is-active {
  background: var(--accent-soft);
  border-color: rgba(10, 132, 255, 0.18);
  color: #075ab1;
}

.header-actions {
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.profile-pill strong {
  display: block;
  font-size: 0.95rem;
}

.profile-pill span {
  display: block;
  font-size: 0.82rem;
}

#headerPrimaryAction {
  display: none;
}

.workspace {
  margin-top: 18px;
}

.flash-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.flash-banner.success {
  border-color: rgba(52, 199, 89, 0.2);
  background: rgba(52, 199, 89, 0.08);
}

.flash-banner.warning {
  border-color: rgba(255, 159, 10, 0.2);
  background: rgba(255, 159, 10, 0.08);
}

.hero-single,
.booking-layout,
.content-grid,
.split-layout {
  display: grid;
  gap: 18px;
}

.hero-card,
.wizard-card,
.timeline-card,
.filter-card,
.locked-card,
.inventory-card,
.compact-card,
.project-sheet,
.sheet-card {
  padding: 26px;
}

.hero-card-clean {
  display: grid;
  gap: 20px;
}

.hero-note-box,
.edit-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.hero-note {
  margin: 0;
  font-size: 0.96rem;
}

.view-head {
  margin-bottom: 16px;
}

.view-head h1,
.section-head h2,
.project-sheet-head h3,
.auth-card h2 {
  margin: 0 0 8px;
  letter-spacing: -0.035em;
}

.subnav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  margin-bottom: 18px;
}

.booking-layout,
.content-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.booking-layout > .card,
.content-grid > .card,
.project-calendar-stack > .card,
.team-layout > .card,
.side-stack > .card {
  padding: 26px;
}

.project-calendar-stack {
  display: grid;
  gap: 18px;
}

.wizard-card {
  display: grid;
  gap: 20px;
}

.wizard-card-single {
  max-width: 100%;
}

.step-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 14px;
}

.step-chip span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.8rem;
}

.step-label {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
}

.wizard-pane,
.soft-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.8);
}

.wizard-pane {
  padding: 22px;
}

.soft-panel {
  padding: 16px 18px;
  color: var(--muted);
  line-height: 1.55;
}

.hint-panel-inline {
  display: grid;
  gap: 8px;
}

.compact-hints {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.field-grid {
  display: grid;
  gap: 16px;
}

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

.camera-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.equipment-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.camera-card {
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.camera-card.is-selected,
.select-row.is-selected,
.filter-item.is-active {
  border-color: rgba(10, 132, 255, 0.24);
  box-shadow: 0 14px 32px rgba(10, 132, 255, 0.12);
}

.camera-card.is-disabled,
.select-row.is-disabled {
  opacity: 0.52;
}

.camera-image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.camera-copy {
  padding: 16px 16px 18px;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.option-list {
  display: grid;
  gap: 12px;
}

.camera-copy span,
.choice-copy span {
  color: var(--muted);
}

.choice-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.choice-card.is-selected {
  border-color: rgba(10, 132, 255, 0.24);
  box-shadow: 0 14px 32px rgba(10, 132, 255, 0.12);
}

.choice-card.is-disabled {
  opacity: 0.62;
}

.choice-image {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.7);
}

.choice-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.choice-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.quantity-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.84);
}

.quantity-stepper strong {
  min-width: 24px;
  text-align: center;
}

.quantity-stepper .icon-button {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
}

.select-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.select-row input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
}

.select-row-copy {
  display: grid;
  gap: 4px;
}

.booking-entry-card,
.inventory-card,
.guide-item,
.composer-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.booking-entry-card {
  display: grid;
  gap: 14px;
}

.booking-entry-top {
  align-items: center;
}

.booking-entry-actions,
.booking-mini-actions {
  justify-content: flex-end;
}

.danger-button {
  border-color: rgba(255, 69, 58, 0.2);
  color: #9f241c;
  background: rgba(255, 69, 58, 0.08);
}

.booking-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 18px;
}

.booking-list-main,
.booking-list-side {
  display: grid;
  gap: 6px;
}

.booking-list-main span,
.inventory-card-copy span,
.project-card span {
  color: var(--muted);
}

.booking-list-side {
  justify-items: end;
  text-align: right;
}

.return-row {
  align-items: center;
}

.equipment-layout {
  grid-template-columns: 320px minmax(0, 1fr);
}

.filter-card,
.timeline-card {
  height: 100%;
}

.filter-list {
  gap: 10px;
}

.filter-item {
  width: 100%;
  text-align: left;
}

.filter-copy,
.filter-metrics {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.filter-item strong,
.filter-item span {
  display: block;
}

.filter-item span:last-child {
  min-width: 20px;
}

.filter-metrics {
  text-align: right;
  color: var(--muted);
}

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

.timeline-header,
.timeline-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.timeline-meta-head,
.timeline-row-meta {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.timeline-row-meta {
  display: grid;
  gap: 4px;
}

.timeline-row-meta,
.booking-list-main,
.booking-list-side,
.inventory-card-copy,
.project-card,
.guide-item,
.member-meta,
.section-head > div {
  min-width: 0;
}

.timeline-days,
.timeline-track {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: 8px;
  min-height: 68px;
}

.timeline-day-head,
.track-cell {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.timeline-day-head {
  padding: 10px 6px;
  text-align: center;
  font-size: 0.78rem;
}

.timeline-day-head strong {
  display: block;
}

.track-cell {
  grid-row: 1;
}

.timeline-bar {
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 16px;
  color: #03315f;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.18), rgba(10, 132, 255, 0.1));
  border: 1px solid rgba(10, 132, 255, 0.18);
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.12);
}

.timeline-bar.confirmed,
.status-pill.confirmed,
.status-pill.available {
  color: #046938;
  background: rgba(52, 199, 89, 0.12);
  border-color: rgba(52, 199, 89, 0.18);
}

.timeline-bar.preparation,
.status-pill.preparation {
  color: #8a5800;
  background: rgba(255, 159, 10, 0.12);
  border-color: rgba(255, 159, 10, 0.18);
}

.timeline-bar.production,
.status-pill.production {
  color: #8f1f16;
  background: rgba(255, 69, 58, 0.12);
  border-color: rgba(255, 69, 58, 0.18);
}

.status-pill.planned {
  color: #075ab1;
  background: rgba(10, 132, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.18);
}

.project-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  text-align: left;
}

.inventory-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.inventory-card {
  display: grid;
  gap: 14px;
}

.inventory-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.78);
}

.inventory-thumb-generic {
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #075ab1;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.1), rgba(255, 255, 255, 0.92));
}

.inventory-card-copy {
  display: grid;
  gap: 8px;
}

.team-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
}

.team-row {
  align-items: center;
}

.member-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 132, 255, 0.08);
  color: #075ab1;
  font-weight: 700;
}

.inline-select {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.guide-item {
  display: grid;
  gap: 8px;
}

.admin-form-grid {
  display: grid;
  gap: 14px;
}

.form-actions-inline {
  padding-top: 4px;
}

code {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.9em;
}

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

.role-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.role-card-top {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.role-card.admin {
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.1), rgba(255, 255, 255, 0.74));
}

.role-card.production {
  background: linear-gradient(180deg, rgba(255, 159, 10, 0.1), rgba(255, 255, 255, 0.74));
}

.role-card.crew {
  background: linear-gradient(180deg, rgba(52, 199, 89, 0.1), rgba(255, 255, 255, 0.74));
}

.sheet-dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

.sheet-dialog::backdrop {
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(10px);
}

.sheet-card,
.project-sheet {
  width: min(720px, calc(100vw - 24px));
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.project-dialog .project-sheet {
  width: min(1000px, calc(100vw - 24px));
}

.dialog-list {
  margin: 18px 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

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

.compact-card,
.full-span {
  border-radius: 24px;
}

.full-span {
  grid-column: 1 / -1;
}

.detail-group {
  gap: 10px;
}

.empty-state,
.timeline-empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 980px) {
  .auth-shell,
  .booking-layout,
  .content-grid,
  .split-layout,
  .equipment-layout,
  .team-layout,
  .project-sheet-grid {
    grid-template-columns: 1fr;
  }

  .app-header {
    grid-template-columns: auto auto;
    row-gap: 10px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .timeline-header,
  .timeline-row {
    grid-template-columns: 1fr;
  }

  .timeline-days,
  .timeline-track {
    overflow-x: auto;
    padding-bottom: 6px;
  }
}

@media (max-width: 860px) {
  .app-header,
  .preview-head,
  .section-head,
  .wizard-top,
  .project-sheet-head,
  .dialog-actions,
  .wizard-actions,
  .booking-entry-top {
    display: flex;
    flex-direction: column;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .field-grid-two,
  .booking-list-row {
    grid-template-columns: 1fr;
  }

  .booking-list-side {
    justify-items: start;
    text-align: left;
  }

  .camera-grid,
  .inventory-grid,
  .equipment-choice-grid {
    grid-template-columns: 1fr;
  }

  .profile-pill {
    width: 100%;
    justify-content: space-between;
  }

  .team-row {
    align-items: flex-start;
  }

  .team-row-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .auth-shell,
  .app-shell {
    width: min(100% - 16px, 1440px);
    margin-top: 12px;
  }

  .auth-preview,
  .auth-card,
  .hero-card,
  .wizard-card,
  .timeline-card,
  .filter-card,
  .locked-card,
  .inventory-card,
  .compact-card,
  .project-sheet,
  .sheet-card {
    padding: 22px;
    border-radius: 24px;
  }

  .auth-brand h1,
  .hero-card h1,
  .locked-card h1 {
    font-size: clamp(2.4rem, 14vw, 4.4rem);
  }
}
