:root {
  --ivory: #b0b4b0;
  --paper: #fffdf8;
  --cream: #f6f3ed;
  --stone: #b3b7b2;
  --stone-deep: #7f8980;
  --taupe: #69736c;
  --charcoal: #26302c;
  --charcoal-soft: #3c4741;
  --ink-muted: #68736b;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.84);
  --gold: #879187;
  --gold-dark: #4f5b54;
  --line: rgba(38, 48, 44, 0.16);
  --shadow: 0 22px 60px rgba(38, 48, 44, 0.13);
  --shadow-soft: 0 12px 36px rgba(38, 48, 44, 0.08);
  --radius: 8px;
  --sans: "Inter", "Avenir Next", "Helvetica Neue", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Cormorant Garamond", "Bodoni 72", "Didot", "Libre Baskerville", "Iowan Old Style", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ivory);
  color: var(--charcoal);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--charcoal);
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.app {
  min-height: 100vh;
}

.landing {
  background: var(--ivory);
}

.landing-bar {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(18px, 4vw, 54px);
  color: var(--on-dark);
  mix-blend-mode: normal;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  background: var(--stone);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(38, 48, 44, 0.16);
}

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

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-title {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
}

.brand-kicker,
.eyebrow,
.meta,
.field-note,
.tag,
.sense-label,
.table-heading {
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-kicker {
  color: rgba(248, 240, 232, 0.72);
}

.landing-actions,
.hero-actions,
.page-actions,
.row-actions,
.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero {
  min-height: 92svh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(30, 39, 35, 0.78), rgba(30, 39, 35, 0.28) 48%, rgba(30, 39, 35, 0.08)),
    url("./assets/sensorium-forest-hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(38, 48, 44, 0), rgba(176, 180, 176, 0.98));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(790px, 100%);
  padding: 142px clamp(18px, 6vw, 72px) 108px;
  color: var(--on-dark);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(58px, 11vw, 150px);
}

.hero .tagline {
  margin: 24px 0 0;
  max-width: 580px;
  font-family: var(--display);
  font-size: clamp(25px, 4vw, 44px);
  line-height: 1.08;
}

.hero p {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(248, 240, 232, 0.82);
  font-size: 17px;
  line-height: 1.75;
}

.section {
  padding: clamp(46px, 8vw, 96px) clamp(18px, 5vw, 68px);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
}

.section-copy {
  max-width: 590px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.7;
}

.section-header .section-title,
.page-header .page-title {
  color: var(--on-dark);
}

.section-header .eyebrow,
.page-header .eyebrow,
.page-header .muted {
  color: var(--on-dark-muted);
}

.section-header .section-copy,
.editorial-panel .section-copy {
  color: var(--on-dark-muted);
}

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

.feature-card,
.panel,
.quote-card,
.ritual-card,
.entry-card,
.media-card,
.admin-card,
.sense-card,
.calendar-day,
.auth-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  min-height: 190px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.entry-card:hover,
.media-card:hover,
.ritual-list-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 91, 84, 0.42);
  box-shadow: var(--shadow);
}

.feature-card h3,
.panel h3,
.media-card h3,
.entry-card h3,
.ritual-list-card h3,
.admin-card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.05;
}

.feature-card p,
.media-card p,
.entry-card p,
.ritual-list-card p,
.admin-card p {
  margin: 14px 0 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.image-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.image-panel {
  min-height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: url("./assets/sensorium-ritual.png") center / cover no-repeat;
}

.image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 48, 44, 0), rgba(38, 48, 44, 0.52));
}

.editorial-panel {
  border-left: 1px solid var(--gold);
  padding: 28px 0 28px 34px;
  align-self: center;
}

.editorial-quote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  color: var(--on-dark);
}

.button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  color: var(--paper);
  background: var(--gold-dark);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #3f4a44;
}

.button.secondary {
  color: var(--charcoal);
  border-color: rgba(38, 48, 44, 0.24);
  background: rgba(255, 253, 248, 0.78);
}

.button.secondary:hover {
  background: var(--paper);
}

.button.ghost {
  color: inherit;
  border-color: transparent;
  background: transparent;
}

.button.small {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 13px;
}

.button.icon {
  width: 40px;
  min-width: 40px;
  padding: 0;
}

.icon svg {
  width: 18px;
  height: 18px;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.72fr);
  background: var(--ivory);
}

.auth-art {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(38, 48, 44, 0.3), rgba(38, 48, 44, 0.74)),
    url("./assets/sensorium-hero.png") center / cover no-repeat;
  color: var(--paper);
  display: flex;
  align-items: end;
  padding: clamp(28px, 5vw, 72px);
}

.auth-art h1 {
  margin: 0;
  max-width: 620px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.96;
}

.auth-side {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: clamp(22px, 5vw, 54px);
}

.auth-panel {
  width: min(100%, 560px);
  justify-self: center;
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow);
}

.auth-panel h2,
.page-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
}

.step-row {
  display: flex;
  gap: 8px;
  margin: 24px 0 28px;
}

.step-dot {
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: rgba(38, 48, 44, 0.16);
}

.step-dot.active {
  background: var(--gold);
}

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

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

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

label {
  color: var(--charcoal-soft);
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(38, 48, 44, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  color: var(--charcoal);
  padding: 12px 13px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.55;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(79, 91, 84, 0.68);
  box-shadow: 0 0 0 3px rgba(79, 91, 84, 0.14);
  background: var(--paper);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.checkbox-field input {
  width: 18px;
  margin-top: 3px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
  backdrop-filter: blur(16px);
}

.sidebar .brand-title {
  color: var(--charcoal);
}

.sidebar .brand-kicker {
  color: var(--ink-muted);
}

.nav-list,
.admin-tabs {
  display: grid;
  gap: 6px;
  align-content: start;
}

.nav-button,
.tab-button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 11px 12px;
  text-align: left;
}

.nav-button svg,
.tab-button svg {
  width: 18px;
  height: 18px;
}

.nav-button.active,
.tab-button.active {
  color: var(--charcoal);
  border-color: rgba(79, 91, 84, 0.32);
  background: rgba(79, 91, 84, 0.09);
}

.nav-button:hover,
.tab-button:hover {
  color: var(--charcoal);
  background: rgba(38, 48, 44, 0.04);
}

.admin-tabs .tab-button {
  color: var(--on-dark-muted);
}

.admin-tabs .tab-button.active {
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.admin-tabs .tab-button:hover {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.1);
}

.profile-mini {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.7);
}

.avatar,
.avatar-large {
  border: 1px solid rgba(79, 91, 84, 0.34);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(79, 91, 84, 0.22), rgba(255, 253, 248, 0.76)),
    var(--stone);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  font-family: var(--display);
}

.avatar {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.avatar-large {
  width: 92px;
  height: 92px;
  font-size: 42px;
}

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

.profile-mini strong,
.profile-mini span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-mini span {
  color: var(--ink-muted);
  font-size: 12px;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
  backdrop-filter: blur(16px);
}

.page {
  padding: clamp(24px, 4vw, 50px);
  animation: pageIn 260ms ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.daily-hero {
  position: relative;
  min-height: clamp(320px, 42vw, 520px);
  display: grid;
  align-items: end;
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(18, 28, 23, 0.78), rgba(18, 28, 23, 0.32) 52%, rgba(18, 28, 23, 0.1)),
    url("./assets/sensorium-forest-hero.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.daily-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 28, 23, 0), rgba(18, 28, 23, 0.42));
  pointer-events: none;
}

.daily-hero-content {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
  padding: clamp(24px, 5vw, 54px);
  color: var(--on-dark);
}

.daily-hero-content h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.96;
}

.daily-hero-content p {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--on-dark-muted);
  font-size: 16px;
  line-height: 1.7;
}

.daily-hero .hero-actions {
  margin-top: 22px;
}

.daily-hero .button.secondary {
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.daily-hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.page-hero {
  position: relative;
  min-height: clamp(250px, 30vw, 380px);
  display: grid;
  align-items: end;
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(18, 28, 23, 0.74), rgba(18, 28, 23, 0.32) 54%, rgba(18, 28, 23, 0.08)),
    var(--stone);
  box-shadow: var(--shadow-soft);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 28, 23, 0), rgba(18, 28, 23, 0.34));
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  padding: clamp(22px, 4vw, 42px);
  color: var(--on-dark);
}

.page-hero-content h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
}

.page-hero-content p {
  max-width: 540px;
  margin: 14px 0 0;
  color: var(--on-dark-muted);
  font-size: 15px;
  line-height: 1.7;
}

.journal-page-hero {
  background:
    linear-gradient(90deg, rgba(18, 28, 23, 0.74), rgba(18, 28, 23, 0.32) 54%, rgba(18, 28, 23, 0.08)),
    url("./assets/journal-hero.png") center / cover no-repeat;
}

.calendar-page-hero {
  background:
    linear-gradient(90deg, rgba(18, 28, 23, 0.74), rgba(18, 28, 23, 0.3) 54%, rgba(18, 28, 23, 0.08)),
    url("./assets/calendar-hero.png") center / cover no-repeat;
}

.rituals-page-hero {
  background:
    linear-gradient(90deg, rgba(18, 28, 23, 0.76), rgba(18, 28, 23, 0.34) 54%, rgba(18, 28, 23, 0.08)),
    url("./assets/rituals-hero.png") center / cover no-repeat;
}

.library-page-hero {
  background:
    linear-gradient(90deg, rgba(18, 28, 23, 0.76), rgba(18, 28, 23, 0.34) 54%, rgba(18, 28, 23, 0.08)),
    url("./assets/library-hero.png") center / cover no-repeat;
}

.date-line,
.muted {
  color: var(--ink-muted);
}

.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.quote-card {
  min-height: 390px;
  padding: clamp(24px, 5vw, 54px);
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(246, 243, 237, 0.82)),
    var(--paper);
}

.quote-card blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 6.5vw, 88px);
  line-height: 0.98;
}

.quote-card footer {
  margin-top: 26px;
  color: var(--ink-muted);
}

.ritual-card {
  overflow: hidden;
  background: var(--paper);
}

.ritual-card .ritual-image,
.media-image,
.entry-thumb {
  background: url("./assets/sensorium-ritual.png") center / cover no-repeat;
}

.ritual-image {
  min-height: 230px;
}

.ritual-card .content,
.media-card .content,
.entry-card .content,
.admin-card,
.panel {
  padding: 20px;
}

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

.panel {
  box-shadow: none;
}

.panel.no-pad {
  padding: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

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

.sense-card {
  min-height: 122px;
  padding: 14px;
  display: grid;
  gap: 12px;
  box-shadow: none;
}

.sense-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(79, 91, 84, 0.34);
  color: var(--gold-dark);
  border-radius: 50%;
}

.sense-icon svg {
  width: 19px;
  height: 19px;
}

.sense-card.complete {
  background: rgba(79, 91, 84, 0.1);
  border-color: rgba(79, 91, 84, 0.34);
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(38, 48, 44, 0.12);
}

.progress-fill {
  height: 100%;
  background: var(--gold);
}

.content-grid,
.archive-grid,
.library-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.entry-card,
.media-card,
.ritual-list-card {
  overflow: hidden;
  background: rgba(255, 253, 248, 0.86);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.entry-thumb,
.media-image {
  min-height: 150px;
}

.entry-card .content,
.media-card .content {
  display: grid;
  gap: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(79, 91, 84, 0.32);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--gold-dark);
  background: rgba(79, 91, 84, 0.08);
}

.filters {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) repeat(4, minmax(150px, 0.45fr));
  gap: 10px;
  margin-bottom: 18px;
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.36fr);
  gap: 18px;
  align-items: start;
}

.journal-form {
  display: grid;
  gap: 18px;
}

.journal-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.journal-section h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
}

.range-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--gold-dark);
  background: transparent;
  border: 0;
  box-shadow: none;
}

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

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 1;
  background: var(--cream);
}

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

.calendar-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 18px;
  align-items: start;
}

.calendar-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 8px;
}

.calendar-head div {
  color: var(--ink-muted);
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-day {
  position: relative;
  min-height: 96px;
  padding: 10px;
  text-align: left;
  box-shadow: none;
  background: rgba(255, 253, 248, 0.72);
  color: var(--charcoal);
}

.calendar-day.outside {
  opacity: 0.34;
}

.calendar-day.selected {
  border-color: rgba(79, 91, 84, 0.76);
  background: rgba(79, 91, 84, 0.1);
}

.calendar-day .indicator {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.ritual-layout,
.library-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

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

.ritual-list-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  background: rgba(255, 253, 248, 0.78);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--charcoal-soft);
  line-height: 1.55;
}

.steps li::before {
  content: counter(step);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(79, 91, 84, 0.38);
  border-radius: 50%;
  color: var(--gold-dark);
}

.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(38, 48, 44, 0.16), rgba(38, 48, 44, 0.62)),
    url("./assets/sensorium-hero.png") center / cover no-repeat;
  display: grid;
  place-items: center;
  color: var(--paper);
  overflow: hidden;
}

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

.admin-tabs {
  position: sticky;
  top: 96px;
}

.data-table {
  display: grid;
  gap: 10px;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 0.45fr) minmax(130px, 0.45fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.76);
}

.data-row.compact {
  grid-template-columns: minmax(160px, 1fr) auto;
}

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

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 46px;
  line-height: 1;
}

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

.spec-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.64);
}

.spec-item h4 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
}

.spec-item p,
.spec-item li {
  color: var(--ink-muted);
  line-height: 1.55;
}

.spec-item ul {
  margin: 0;
  padding-left: 18px;
}

.notice {
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  color: var(--charcoal-soft);
  background: rgba(79, 91, 84, 0.09);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid rgba(79, 91, 84, 0.42);
  border-radius: var(--radius);
  background: rgba(38, 48, 44, 0.94);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.mobile-nav {
  display: none;
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(38, 48, 44, 0.24);
  border-radius: var(--radius);
  color: var(--ink-muted);
  padding: 24px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .feature-grid,
  .content-grid,
  .archive-grid,
  .library-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .today-grid,
  .entry-layout,
  .calendar-wrap,
  .ritual-layout,
  .library-layout,
  .admin-layout,
  .image-band {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    position: static;
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tab-button {
    min-width: max-content;
  }
}

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

  .sidebar {
    display: none;
  }

  .main {
    padding-bottom: 82px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 30;
    inset: auto 0 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(16px);
  }

  .mobile-nav .nav-button {
    min-height: 54px;
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 6px;
    font-size: 11px;
    text-align: center;
  }

  .mobile-nav svg {
    width: 18px;
    height: 18px;
  }

  .topbar {
    position: static;
  }

  .page,
  .section {
    padding: 24px 16px;
  }

  .auth-screen {
    grid-template-columns: 1fr;
  }

  .auth-art {
    min-height: 38vh;
  }

  .auth-side {
    min-height: auto;
  }

  .landing-bar {
    color: var(--paper);
    padding: 16px;
  }

  .landing-actions .button.secondary {
    display: none;
  }

  .feature-grid,
  .content-grid,
  .content-grid.two,
  .archive-grid,
  .library-grid,
  .admin-grid,
  .sense-grid,
  .stat-grid,
  .spec-list {
    grid-template-columns: 1fr;
  }

  .section-header,
  .page-header,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .calendar-day {
    min-height: 70px;
    padding: 7px;
  }

  .data-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero {
    min-height: 90svh;
  }

  .hero-content {
    padding: 124px 18px 82px;
  }
}

@media (max-width: 520px) {
  .brand-title {
    font-size: 20px;
  }

  .hero-actions,
  .page-actions,
  .row-actions,
  .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .button.icon {
    width: 40px;
  }

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