:root {
  --bg: #0f0f0f;
  --bg-soft: #171613;
  --surface: rgba(28, 28, 28, 0.88);
  --surface-strong: rgba(36, 35, 33, 0.96);
  --surface-alt: rgba(48, 47, 44, 0.88);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(180, 155, 110, 0.24);
  --text: #fffdf8;
  --text-soft: rgba(255, 253, 248, 0.82);
  --muted: rgba(255, 253, 248, 0.62);
  --gold: #b49b6e;
  --gold-soft: rgba(180, 155, 110, 0.16);
  --success: #95cf7f;
  --danger: #d47b7b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.13), transparent 26%),
    radial-gradient(circle at top right, rgba(180, 155, 110, 0.18), transparent 24%),
    linear-gradient(180deg, #201d19 0%, #131210 38%, #0d0d0d 100%);
  letter-spacing: 0.01em;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.noscript {
  max-width: 720px;
  margin: 8rem auto;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.app-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 1.25rem;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.login-shell--minimal {
  padding: 2rem 1.25rem;
}

.login-grid {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.25rem;
}

.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.hero-panel {
  padding: 2rem;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(140deg, rgba(180, 155, 110, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 34%),
    var(--surface);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(180, 155, 110, 0.3), rgba(180, 155, 110, 0.08)),
    rgba(180, 155, 110, 0.08);
  border: 1px solid rgba(180, 155, 110, 0.2);
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(180, 155, 110, 0.09);
  border: 1px solid rgba(180, 155, 110, 0.18);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-copy h1 {
  max-width: 11ch;
  margin: 1rem 0 0.75rem;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-card,
.stat-card,
.day-column,
.video-card,
.focus-card,
.request-card,
.video-tile,
.empty-card,
.mini-card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.feature-card {
  padding: 1rem;
}

.feature-card strong,
.stat-card strong,
.video-card strong,
.focus-card strong,
.request-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.feature-card p,
.stat-card p,
.video-card p,
.focus-card p,
.request-card p,
.helper-text,
.field-hint,
.empty-card p,
.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.login-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.login-card > p {
  margin: 0.75rem 0 1.5rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.login-minimal-card {
  width: min(520px, 100%);
  padding: 2.5rem;
  background:
    radial-gradient(circle at top, rgba(180, 155, 110, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(180, 155, 110, 0.16);
}

.login-minimal-brand {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
  text-align: center;
}

.login-wordmark {
  font-size: clamp(2.8rem, 9vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--text);
  text-transform: uppercase;
  line-height: 0.9;
}

.login-subcopy {
  margin: 0;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-note {
  margin: -0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.login-action-row {
  margin-top: 0.6rem;
  justify-content: center;
}

.login-action-row .button {
  min-width: 220px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.form-grid--single,
.stack {
  display: grid;
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(180, 155, 110, 0.48);
  background: rgba(255, 255, 255, 0.045);
}

.field input[type="file"] {
  padding: 0.75rem 0.9rem;
}

.field-hint {
  font-size: 0.8rem;
}

.action-row,
.top-actions,
.planner-controls,
.inline-actions,
.day-tabs,
.filter-row,
.status-row,
.modal-actions,
.summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.action-row {
  margin-top: 1.5rem;
  align-items: center;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 0.95rem 1.1rem;
}

.topbar.panel {
  border-radius: 22px;
}

.topbar .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip,
.ghost-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-weight: 600;
}

.chip--active {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

.button,
.ghost-button,
.danger-button,
.install-button {
  min-height: 50px;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

.button:hover,
.ghost-button:hover,
.danger-button:hover,
.install-button:hover {
  transform: translateY(-1px);
}

.button {
  background: linear-gradient(135deg, #c3ac81, #9f8458);
  color: #060606;
  font-weight: 800;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 600;
}

.danger-button {
  background: rgba(212, 123, 123, 0.12);
  border-color: rgba(212, 123, 123, 0.24);
  color: #ffd7d7;
  font-weight: 700;
}

.install-button {
  background: rgba(180, 155, 110, 0.12);
  border-color: rgba(180, 155, 110, 0.24);
  color: var(--gold);
  font-weight: 700;
}

.button:disabled,
.ghost-button:disabled,
.danger-button:disabled,
.install-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.dashboard-grid {
  display: grid;
  gap: 1.2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.1rem;
}

.stat-card .value {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(1.65rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.layout-grid,
.admin-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.2rem;
}

.section-card {
  padding: 1.2rem;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-header h2,
.section-header h3,
.panel-title {
  margin: 0;
}

.section-header p,
.panel-subtitle,
.preview-note {
  margin: 0.3rem 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.planner-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.8rem;
}

.day-column {
  min-height: 360px;
  padding: 0.9rem;
}

.day-header {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.75rem;
}

.day-header strong {
  display: block;
}

.day-header span {
  color: var(--muted);
  font-size: 0.84rem;
}

.day-column.is-today {
  border-color: rgba(180, 155, 110, 0.36);
  box-shadow: inset 0 0 0 1px rgba(180, 155, 110, 0.12);
}

.planner-list,
.focus-grid,
.request-list,
.video-library,
.mini-list,
.mobile-day-list {
  display: grid;
  gap: 0.7rem;
}

.planner-item {
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--item-accent-rgb, 180, 155, 110), 0.42);
  background:
    linear-gradient(180deg, rgba(var(--item-accent-rgb, 180, 155, 110), 0.54), rgba(var(--item-accent-rgb, 180, 155, 110), 0.24)),
    rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--item-accent, var(--gold));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.planner-item h4,
.focus-card h4,
.video-card h4,
.video-tile h4,
.mini-card h4,
.request-card h4 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.planner-item .item-meta,
.focus-card .item-meta,
.video-card .item-meta,
.request-card .item-meta,
.mini-card .item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag--gold {
  color: var(--gold);
  background: rgba(180, 155, 110, 0.12);
}

.tag--success {
  color: var(--success);
  background: rgba(149, 207, 127, 0.12);
}

.tag--danger {
  color: #ffc5c5;
  background: rgba(212, 123, 123, 0.16);
}

.empty-card {
  padding: 1.1rem;
  border-style: dashed;
}

.split-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.week-banner {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr auto;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(180, 155, 110, 0.14), transparent 48%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(180, 155, 110, 0.18);
}

.week-banner h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.week-banner p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
}

.planner-mobile {
  display: none;
}

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

.focus-card,
.video-card,
.request-card,
.video-tile,
.mini-card {
  padding: 1rem;
}

.video-card--current {
  background:
    linear-gradient(135deg, rgba(180, 155, 110, 0.14), transparent 42%),
    var(--surface-alt);
  border-color: rgba(180, 155, 110, 0.24);
}

.video-library {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.video-tile.is-locked {
  opacity: 0.6;
}

.video-tile.is-current {
  border-color: rgba(180, 155, 110, 0.32);
}

.helper-panel {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.notice {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(180, 155, 110, 0.2);
  background: rgba(180, 155, 110, 0.08);
  color: var(--text);
}

.notice.notice--danger {
  border-color: rgba(212, 123, 123, 0.25);
  background: rgba(212, 123, 123, 0.14);
}

.preview-shell {
  display: grid;
  gap: 1rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  z-index: 50;
}

.modal-card {
  width: min(980px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(10, 10, 10, 0.98);
  border: 1px solid rgba(180, 155, 110, 0.2);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 18px;
  background: #000;
}

.video-frame--embed {
  display: block;
}

.video-embed-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.video-embed-guard {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.75rem;
  z-index: 2;
}

.footer-note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

.app-shell--focused {
  max-width: none;
  padding: 0.85rem 1rem 1rem;
}

.topbar--minimal {
  padding: 1rem 1.15rem;
}

.topbar--planner {
  margin-bottom: 0.85rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.topbar-primary--planner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.planner-wordmark {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text);
  white-space: nowrap;
}

.topbar-tabs--planner {
  justify-content: center;
}

.top-actions--planner {
  flex-shrink: 0;
  align-items: center;
}

.top-actions--planner .ghost-button {
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

.topbar-session {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.topbar-account-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  color: var(--text-soft);
}

.topbar-account-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.54);
}

.topbar-account-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-logout-button {
  min-height: 40px;
  padding: 0.45rem 0.25rem;
  border-radius: 999px;
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: #f07f7f;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.topbar-logout-button:hover {
  background: transparent;
  color: #ff9e9e;
  transform: none;
}

.topbar-primary {
  display: grid;
  gap: 0.9rem;
}

.topbar-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tab-button {
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
}

.tab-button--active {
  background: rgba(180, 155, 110, 0.2);
  border-color: rgba(180, 155, 110, 0.36);
  color: #fff5df;
}

.workspace-stack {
  display: grid;
  gap: 1.1rem;
}

.planner-stage--minimal {
  display: grid;
  gap: 0.9rem;
}

.planner-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.planner-toolbar-main,
.planner-toolbar-side {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.planner-toolbar-side {
  justify-content: flex-end;
}

.planner-week-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.planner-controls--minimal {
  width: auto;
}

.planner-stage {
  padding: 1.2rem;
}

.planner-stage-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.planner-stage-top h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.planner-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.planner-client-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.planner-client-bar strong {
  font-size: 1.1rem;
}

.planner-client-picker {
  min-width: 260px;
}

.planner-client-picker--inline {
  min-width: 220px;
  max-width: 240px;
  gap: 0.35rem;
}

.planner-client-picker--inline span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.planner-client-select-wrap select {
  min-height: 44px;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  appearance: none;
}

.planner-client-picker label {
  margin-bottom: 0.35rem;
}

.planner-legend--minimal {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.planner-legend-list--minimal {
  gap: 0.55rem;
}

.legend-chip--minimal {
  min-height: 42px;
  padding: 0.68rem 0.9rem;
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.12);
}

.legend-chip--minimal .legend-chip__emoji {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.planner-import-button--minimal {
  min-height: 42px;
  padding: 0.68rem 0.95rem;
  border-radius: 999px;
  min-width: 88px;
  justify-content: center;
}

.repeat-day-picker {
  width: 100%;
}

.planner-legend {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(180, 155, 110, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(180, 155, 110, 0.12);
}

.planner-legend-copy strong {
  display: block;
  margin-bottom: 0.2rem;
}

.planner-legend-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.planner-legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.legend-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-weight: 700;
}

.legend-chip__emoji {
  font-size: 1.05rem;
}

.planner-import-button {
  position: relative;
  overflow: hidden;
}

.planner-grid--clean {
  gap: 0.9rem;
}

.planner-grid--full {
  width: 100%;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.7rem;
}

.day-column--clean {
  min-height: 520px;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    rgba(36, 35, 32, 0.94);
}

.day-column--minimal {
  min-height: clamp(420px, 66vh, 760px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.65rem;
  padding: 0.95rem 0.8rem 0.8rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    rgba(40, 38, 35, 0.96);
}

.day-column--drop-target {
  border-color: rgba(180, 155, 110, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(180, 155, 110, 0.16),
    0 18px 40px rgba(0, 0, 0, 0.16);
}

.day-header--clean {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
}

.day-header--minimal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.planner-list--minimal {
  min-height: calc(100% - 54px);
}

.day-heading {
  display: grid;
  gap: 0.12rem;
}

.wake-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.wake-chip--filled,
.wake-chip--readonly {
  color: var(--gold);
  border-color: rgba(180, 155, 110, 0.2);
  background: rgba(180, 155, 110, 0.08);
}

.wake-chip--empty {
  color: var(--muted);
  min-width: 44px;
  justify-content: center;
}

.wake-chip__icon {
  font-size: 0.82rem;
}

.day-top-items {
  display: grid;
  gap: 0.4rem;
}

.pinned-item {
  padding: 0.6rem 0.7rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--item-accent-rgb, 180, 155, 110), 0.46);
  border-left: 4px solid var(--item-accent, var(--gold));
  background:
    linear-gradient(180deg, rgba(var(--item-accent-rgb, 180, 155, 110), 0.62), rgba(var(--item-accent-rgb, 180, 155, 110), 0.28)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 18px rgba(0, 0, 0, 0.1);
}

.pinned-item__label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pinned-item strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
}

.pinned-item--button {
  width: 100%;
  text-align: left;
  appearance: none;
  color: var(--text);
}

.day-timeline {
  position: relative;
  min-height: clamp(340px, 56vh, 620px);
  padding-bottom: 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.03);
  overflow: hidden;
  cursor: pointer;
}

.day-timeline--mobile {
  min-height: clamp(420px, 64vh, 720px);
}

.day-timeline--drop-target {
  border-color: rgba(180, 155, 110, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(180, 155, 110, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.timeline-marker {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  height: 0;
  pointer-events: none;
}

.timeline-marker span {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  color: rgba(255, 253, 248, 0.56);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.timeline-marker--first span {
  transform: none;
  top: 0.35rem;
}

.timeline-marker--last {
  top: auto !important;
  bottom: 0;
}

.timeline-marker--last span {
  top: auto;
  bottom: 0.25rem;
  transform: none;
}

.timeline-marker::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1.8rem;
  right: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.timeline-marker--last::after {
  top: auto;
  bottom: 0;
}

.planner-item--timeline {
  position: absolute;
  margin: 0;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(var(--item-accent-rgb, 180, 155, 110), 0.56);
  border-left-width: 4px;
  background:
    linear-gradient(180deg, rgba(var(--item-accent-rgb, 180, 155, 110), 0.74), rgba(var(--item-accent-rgb, 180, 155, 110), 0.38)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.planner-drag-handle {
  float: right;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  min-height: 1.9rem;
  margin: -0.15rem -0.2rem 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  cursor: grab;
  touch-action: none;
  transition: background 0.18s ease, transform 0.18s ease;
  user-select: none;
}

.planner-drag-handle:hover {
  background: rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.planner-drag-handle:active {
  cursor: grabbing;
}

.planner-drag-active,
.planner-drag-active * {
  user-select: none;
}

.planner-drag-source {
  opacity: 0.22;
  transform: scale(0.985);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.planner-drag-preview {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: var(--drag-preview-width) !important;
  height: var(--drag-preview-height) !important;
  margin: 0 !important;
  pointer-events: none !important;
  z-index: 120;
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.28),
    0 6px 16px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0.98;
  will-change: transform;
}

.planner-drag-preview .planner-drag-handle {
  cursor: grabbing;
}

.planner-drag-handle--timeline {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  margin: 0;
  z-index: 2;
}

.planner-item--timeline .item-meta {
  display: none;
}

.planner-item--timeline .timeline-item__time {
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.planner-item--timeline h4 {
  margin: 0 0 0.18rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.planner-item--timeline p {
  margin: 0;
  color: rgba(255, 253, 248, 0.74);
  font-size: 0.68rem;
  line-height: 1.35;
}

.wake-modal-card {
  width: min(430px, 100%);
}

.create-client-modal-card {
  width: min(440px, 100%);
}

.wake-day-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.wake-day-toggle {
  position: relative;
}

.wake-day-toggle input {
  position: absolute;
  opacity: 0;
  inset: 0;
  pointer-events: none;
}

.wake-day-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.wake-day-toggle input:checked + span {
  color: var(--gold);
  border-color: rgba(180, 155, 110, 0.28);
  background: rgba(180, 155, 110, 0.1);
}

.planner-empty-space--minimal {
  min-height: clamp(330px, 56vh, 680px);
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.03);
  background: rgba(255, 255, 255, 0.012);
}

.planner-empty-space {
  min-height: 380px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent),
    rgba(255, 255, 255, 0.015);
}

.mobile-day-list--minimal {
  min-height: 280px;
}

.day-column--mobile {
  min-height: auto;
}

.planner-empty-mobile--minimal {
  min-height: 280px;
  border: 1px dashed rgba(255, 255, 255, 0.03);
  background: rgba(255, 255, 255, 0.012);
}

.planner-empty-mobile {
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.planner-item--button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.composer-card {
  width: min(760px, 100%);
}

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

  .hero-panel {
    min-height: unset;
  }

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

  .planner-legend {
    grid-template-columns: 1fr;
  }

  .planner-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .planner-toolbar-side {
    justify-content: space-between;
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding: calc(env(safe-area-inset-top, 0px) + 1.15rem) 0.9rem 0.9rem;
  }

  .topbar,
  .section-card,
  .hero-panel,
  .login-card {
    padding: 1rem;
  }

  .feature-grid,
  .form-grid,
  .stats-grid,
  .video-library,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .planner-stage-top,
  .planner-client-bar,
  .topbar-primary--planner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .planner-client-picker {
    min-width: 0;
  }

  .planner-toolbar-main,
  .planner-toolbar-side,
  .planner-legend--minimal {
    width: 100%;
  }

  .planner-toolbar-side {
    justify-content: flex-start;
    gap: 0.7rem;
  }

  .planner-week-pill {
    width: 100%;
    justify-content: center;
  }

  .planner-controls--minimal {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0.55rem;
  }

  .planner-controls--minimal > * {
    min-width: 0;
  }

  .planner-grid {
    display: none;
  }

  .planner-mobile {
    display: grid;
    gap: 0.9rem;
  }

  .day-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }

  .topbar--planner {
    gap: 0.95rem;
  }

  .topbar-primary--planner {
    gap: 0.85rem;
  }

  .top-actions--planner {
    width: 100%;
    justify-content: space-between;
    gap: 0.65rem;
  }

  .topbar-session {
    width: 100%;
    justify-content: space-between;
    gap: 0.8rem;
  }

  .topbar-account-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .topbar-logout-button {
    width: auto;
    flex: 0 0 auto;
    align-self: center;
  }

  .week-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .planner-wordmark {
    letter-spacing: 0.14em;
  }

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

  .button,
  .ghost-button,
  .danger-button,
  .install-button {
    width: 100%;
  }

  .top-actions--planner .ghost-button,
  .top-actions--planner .danger-button,
  .top-actions--planner .install-button {
    width: auto;
  }

  .action-row > *,
  .top-actions > *,
  .planner-controls > *,
  .inline-actions > *,
  .modal-actions > * {
    flex: 1 1 100%;
  }

  .planner-controls--minimal > * {
    flex: 1 1 0;
    width: auto;
    padding-inline: 0.35rem;
    font-size: 0.82rem;
  }

  .planner-legend-list--minimal {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
  }

  .planner-import-button--minimal {
    width: 100%;
  }
}
