:root {
  --color-scheme: #b98da4;
  --color-scheme-deep: #8f5f7b;
  --accent-soft: #f2e7ee;
  --accent-warm: #f6ece5;
  --accent-cool: #edf2f6;
  --bg: #fbf7f8;
  --bg-gradient:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), rgba(255, 243, 248, 0.72) 28%, rgba(251, 247, 248, 0) 52%),
    radial-gradient(circle at top right, rgba(255, 221, 235, 0.72), rgba(255, 221, 235, 0) 32%),
    radial-gradient(circle at bottom left, rgba(240, 232, 255, 0.7), rgba(240, 232, 255, 0) 30%),
    radial-gradient(circle at 60% 82%, rgba(255, 238, 214, 0.62), rgba(255, 238, 214, 0) 24%),
    linear-gradient(145deg, #fff8fb 0%, #f9f0f5 28%, #f4edf8 56%, #f9f0ea 100%);
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-soft: #fffafc;
  --line: rgba(132, 106, 122, 0.14);
  --text: #2d2230;
  --muted: #6f616d;
  --shadow: 0 24px 60px rgba(80, 52, 67, 0.08);
  --shadow-soft: 0 14px 36px rgba(80, 52, 67, 0.06);
  --radius-lg: 12px;
  --radius-md: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito', Arial, sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0) 28%),
    linear-gradient(190deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 32%),
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.44), rgba(255,255,255,0) 22%),
    radial-gradient(circle at 84% 14%, rgba(255,255,255,0.28), rgba(255,255,255,0) 20%);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.55) 1px, transparent 1px);
  background-size: 120px 120px;
  mix-blend-mode: soft-light;
  z-index: -1;
}

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

.site-shell {
  min-height: 100vh;
}

.topbar-public {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(132, 106, 122, 0.1);
}

.topbar-public-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(242, 231, 238, 0.95), rgba(255, 255, 255, 0.92));
  color: var(--color-scheme-deep);
  box-shadow: var(--shadow-soft);
  font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  font-size: 2rem;
  font-weight: 600;
}

.brand-title,
.section-title,
.hero-title,
.hero-panel-title,
.feature-heading,
.pillar-card h3 {
  font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
}

.brand-text-wrap {
  display: flex;
  align-items: center;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.45rem;
  color: var(--text);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-menu {
  position: relative;
}

.account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px 0 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(132,106,122,0.14);
  background: rgba(255,255,255,0.78);
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.account-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(242,231,238,0.95), rgba(255,255,255,0.92));
  color: var(--color-scheme-deep);
  font-size: 0.95rem;
}

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

.account-name {
  white-space: nowrap;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(132,106,122,0.12);
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-soft);
}

.account-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.account-dropdown a:hover {
  background: rgba(242,231,238,0.45);
}

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

.settings-form-tight-top {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(132, 106, 122, 0.12);
}

.settings-form select {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 14px;
  border: 1px solid rgba(132, 106, 122, 0.18);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-scheme-deep) 50%), linear-gradient(135deg, var(--color-scheme-deep) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.settings-form select:focus {
  outline: none;
  border-color: rgba(143, 95, 123, 0.45);
  box-shadow: 0 0 0 4px rgba(185, 141, 164, 0.12);
}

.top-nav-link,
.text-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.top-nav-link:hover,
.text-link:hover {
  color: var(--color-scheme-deep);
}

.page-content-public {
  padding: 34px 0 64px;
}

.content-container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-section,
.story-section,
.curated-band,
.contact-section {
  margin-bottom: 84px;
}

.section-spacing {
  margin-top: 82px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.feature-card,
.pillar-card,
.contact-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-copy::before,
.hero-panel::before,
.feature-card::before,
.pillar-card::before,
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 22%);
  opacity: 0.9;
}

.hero-copy {
  padding: 56px;
  border-radius: var(--radius-lg);
}

.eyebrow,
.section-kicker,
.hero-panel-kicker,
.feature-meta,
.hero-note-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-scheme-deep);
  margin-bottom: 18px;
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(2.45rem, 4.3vw, 4.25rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-lead,
.section-copy,
.feature-copy,
.hero-panel-copy,
.pillar-card p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}


.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(143, 95, 123, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-scheme-deep);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-soft:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.btn-soft.is-disabled,
.btn-soft[aria-disabled="true"] {
  opacity: 0.48;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.btn-primary-soft {
  background: linear-gradient(135deg, #bea0b1, #9c6b87);
  border-color: transparent;
  color: #fff;
}

.btn-primary-soft:hover {
  background: linear-gradient(135deg, #b493a6, #8f5f7b);
  color: #fff;
}

.hero-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.hero-note {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(132, 106, 122, 0.1);
}

.hero-note-label {
  display: block;
  margin-bottom: 10px;
}

.hero-note-value {
  display: block;
  color: var(--text);
  font-weight: 700;
  line-height: 1.6;
}

.hero-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 250, 252, 0.95), rgba(246, 236, 229, 0.88));
}

.hero-panel-inner {
  padding: 38px 34px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-panel-bookmark {
  position: absolute;
  top: 0;
  right: 38px;
  width: 22px;
  height: 74px;
  background: linear-gradient(180deg, rgba(185,141,164,0.9), rgba(143,95,123,0.9));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}

.hero-panel-title {
  margin: 0 0 16px;
  font-size: 2.15rem;
  line-height: 1.05;
  font-weight: 700;
}

.hero-panel-list {
  margin: 20px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.section-intro {
  display: grid;
  gap: 18px;
}

.split-intro {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}

.centered-intro {
  text-align: center;
  justify-items: center;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  gap: 24px;
}

.editorial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.feature-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 100%;
}

.feature-card-body {
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card-professional {
  background: linear-gradient(180deg, rgba(240, 235, 252, 0.96), rgba(255, 255, 255, 0.9));
}

.feature-card-warm {
  background: linear-gradient(180deg, rgba(246, 236, 229, 0.95), rgba(255, 255, 255, 0.88));
}

.feature-card-cool {
  background: linear-gradient(180deg, rgba(237, 242, 246, 0.95), rgba(255, 255, 255, 0.88));
}

.feature-heading {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 1.1;
}

.feature-copy {
  margin: 0 0 20px;
  flex: 1 1 auto;
}

.feature-accent-line {
  width: 72px;
  height: 2px;
  margin: 0 0 18px;
  background: linear-gradient(90deg, rgba(185,141,164,0.95), rgba(185,141,164,0));
}

.curated-band {
  position: relative;
  padding: 42px 34px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(132, 106, 122, 0.1);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.pillar-card {
  border-radius: var(--radius-md);
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.72);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  background: rgba(185, 141, 164, 0.14);
  color: var(--color-scheme-deep);
  font-size: 1.2rem;
}

.pillar-card h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.contact-card {
  border-radius: var(--radius-lg);
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

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

.mini-gallery-card {
  min-height: 180px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(132,106,122,0.12);
  box-shadow: var(--shadow-soft);
}

.mini-gallery-card-soft {
  background: linear-gradient(135deg, rgba(255,246,250,0.95), rgba(242,231,238,0.95)), url('https://picsum.photos/seed/studio-books/700/500') center/cover;
  background-blend-mode: screen;
}

.mini-gallery-card-warm {
  background: linear-gradient(135deg, rgba(255,247,238,0.9), rgba(246,236,229,0.92)), url('https://picsum.photos/seed/warm-desk/700/500') center/cover;
  background-blend-mode: screen;
}

.mini-gallery-card-cool {
  background: linear-gradient(135deg, rgba(245,248,252,0.92), rgba(237,242,246,0.92)), url('https://picsum.photos/seed/paper-notes/700/500') center/cover;
  background-blend-mode: screen;
}

.site-notifications {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.site-notification {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.site-notification.type-success {
  background: rgba(142, 214, 177, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #1f6a48;
}

.site-notification.type-error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: #9b1c1c;
}

.site-notification.type-info {
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #1d4f91;
}

.auth-shell {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(620px, 100%);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

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

.auth-field span {
  font-weight: 700;
  color: var(--text);
}

.auth-field input,
.auth-field select {
  min-height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(132,106,122,0.16);
  background: rgba(255,255,255,0.88);
  padding: 0 14px;
  font: inherit;
  color: var(--text);
}

.auth-field select {
  width: 100%;
  padding: 0 44px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-scheme-deep) 50%), linear-gradient(135deg, var(--color-scheme-deep) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  outline: none;
  border-color: rgba(143, 95, 123, 0.45);
  box-shadow: 0 0 0 4px rgba(185, 141, 164, 0.12);
}

.auth-field input[type="file"] {
  padding: 12px 14px;
  line-height: 1.4;
}

.auth-field input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(132,106,122,0.18);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-field input[type="file"]::file-selector-button:hover {
  background: rgba(242,231,238,0.42);
}

.auth-message {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.auth-message.is-success {
  background: rgba(142, 214, 177, 0.2);
  color: #1f6a48;
}

.auth-message.is-error {
  background: rgba(239, 68, 68, 0.14);
  color: #9b1c1c;
}

.auth-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(132,106,122,0.12);
  color: var(--muted);
  line-height: 1.7;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(250px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.about-copy-block {
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

.about-side-column {
  display: grid;
  height: 100%;
}

.about-photo-layout {
  display: grid;
  height: 100%;
}

.about-photo-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 15px;
  max-width: 290px;
  justify-self: center;
  height: 100%;
  display: flex;
}

.about-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
}

.dashboard-shell {
  display: grid;
  gap: 24px;
}

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

.settings-form {
  display: grid;
  gap: 16px;
}

.settings-form.settings-form-compact {
  gap: 10px;
}

.settings-form.settings-form-tight-top {
  margin-top: 10px;
  padding-top: 14px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(248,244,250,0.96), rgba(255,255,255,0.92));
  box-shadow: var(--shadow);
}

.dashboard-hero-meta {
  display: grid;
  gap: 14px;
}

.dashboard-meta-card,
.dashboard-panel {
  border-radius: var(--radius-md);
  border: 1px solid rgba(132,106,122,0.12);
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow-soft);
}

.dashboard-meta-card {
  padding: 18px 20px;
}

.dashboard-meta-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-scheme-deep);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.8fr));
  gap: 22px;
}

.dashboard-panel {
  padding: 24px;
}

.dashboard-panel-primary {
  background: linear-gradient(180deg, rgba(245,239,249,0.96), rgba(255,255,255,0.9));
}

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

.dashboard-panel-title {
  margin: 0;
  font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  font-size: 2rem;
}

.dashboard-panel-copy {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.75;
}

.dashboard-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(185,141,164,0.16);
  color: var(--color-scheme-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.dashboard-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.85;
}

.notes-featured-grid,
.notes-grid {
  display: grid;
  gap: 22px;
}

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

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

.note-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.note-card-featured {
  min-height: 100%;
}

.note-meta-row,
.note-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.note-meta-row {
  margin-bottom: 16px;
}

.note-title {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  font-size: 1.85rem;
  line-height: 1.08;
}

.note-summary {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.note-status,
.note-category,
.note-updated,
.note-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.note-status {
  background: rgba(185,141,164,0.14);
  color: var(--color-scheme-deep);
}

.note-category,
.note-updated,
.note-tag {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(132,106,122,0.12);
  color: var(--muted);
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mb-0 {
  margin-bottom: 0;
}

@media (max-width: 1080px) {
  .hero-grid,
  .split-intro,
  .editorial-grid,
  .pillars-grid,
  .contact-card,
  .mini-gallery,
  .notes-featured-grid,
  .notes-grid,
  .dashboard-hero,
  .dashboard-grid,
  .settings-grid,
  .about-hero-grid,
  .about-photo-layout {
    grid-template-columns: 1fr;
  }

  .feature-card-wide {
    grid-column: span 1;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .top-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(132, 106, 122, 0.12);
    box-shadow: var(--shadow-soft);
  }

  .top-nav.is-open {
    display: flex;
  }

  .hero-copy,
  .hero-panel-inner,
  .feature-card-body,
  .curated-band,
  .contact-card {
    padding: 28px;
  }

  .hero-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-public-inner {
    min-height: 76px;
  }

  .brand-subtitle {
    display: none;
  }

  .content-container {
    width: min(100%, calc(100% - 20px));
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .hero-copy,
  .hero-panel-inner,
  .feature-card-body,
  .curated-band,
  .contact-card {
    padding: 22px;
  }
}

.timesheet-dashboard {
  margin-top: 56px;
}

.timesheet-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.timesheet-sidebar,
.timesheet-panel,
.timesheet-stat-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.timesheet-sidebar,
.timesheet-panel {
  border-radius: var(--radius-md);
}

.timesheet-sidebar {
  position: sticky;
  top: 116px;
  padding: 26px;
}

.timesheet-sidebar-title,
.timesheet-panel-title,
.timesheet-stat-value {
  font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
}

.timesheet-sidebar-title {
  margin: 0 0 14px;
  font-size: 2rem;
}

.timesheet-sidebar-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.timesheet-sidebar-section + .timesheet-sidebar-section {
  margin-top: 24px;
}

.timesheet-sidebar-meta {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(132,106,122,0.12);
}

.timesheet-side-nav {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.timesheet-side-link {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.timesheet-side-link:hover,
.timesheet-side-link.is-active {
  background: rgba(242,231,238,0.55);
  color: var(--color-scheme-deep);
}

.timesheet-sidebar-label,
.timesheet-stat-label,
.timesheet-stat-note {
  display: block;
}

.timesheet-sidebar-label,
.timesheet-stat-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-scheme-deep);
}

.timesheet-sidebar-meta strong {
  display: block;
  margin-top: 8px;
}

.timesheet-main {
  display: grid;
  gap: 24px;
}

.timesheet-panel {
  padding: 28px;
}

.timesheet-panel-hero {
  min-height: 180px;
}

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

.timesheet-stat-card {
  border-radius: var(--radius-md);
  padding: 22px;
}

.timesheet-stat-value {
  display: block;
  margin: 10px 0 8px;
  font-size: 2.1rem;
  line-height: 1;
}

.timesheet-stat-note {
  color: var(--muted);
}

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

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

.timesheet-panel-title {
  margin: 0;
  font-size: 1.8rem;
}

.timesheet-empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(132,106,122,0.2);
  background: rgba(255,255,255,0.45);
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.timesheet-panel-wide {
  grid-column: 1 / -1;
}

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

  .timesheet-sidebar {
    position: static;
  }

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

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

.timesheet-week-card {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(132,106,122,0.12);
  background: rgba(255,255,255,0.62);
}

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

.timesheet-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.timesheet-toolbar-stack {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.timesheet-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timesheet-export-actions-far-right {
  margin-left: auto;
}

.timesheet-export-actions .btn-soft {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.92rem;
  background: rgba(255,255,255,0.56);
  border-color: rgba(132,106,122,0.12);
}

.timesheet-panel-header-stack {
  align-items: center;
}

.timesheet-toolbar-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 18px;
}

.timesheet-toolbar-inline .timesheet-filter-form {
  margin-right: auto;
}

.timesheet-panel-header-weekly {
  display: block;
}

.timesheet-panel-header-weekly .section-kicker {
  margin-bottom: 8px;
}

.timesheet-week-heading-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.timesheet-week-heading-row .timesheet-export-actions {
  margin-left: auto;
}

.timesheet-filter-form select,
.timesheet-filter-form input {
  min-height: 46px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(132,106,122,0.16);
  background: rgba(255,255,255,0.88);
  padding: 0 14px;
  font: inherit;
  color: var(--text);
}

@media (max-width: 640px) {
  .timesheet-stats-grid,
  .timesheet-content-grid,
  .timesheet-week-grid {
    grid-template-columns: 1fr;
  }

  .timesheet-modal-actions-split,
  .timesheet-modal-actions-right {
    flex-direction: column;
    align-items: stretch;
  }
}


.timesheet-actions {
  margin-top: 20px;
}

.timesheet-entry-list {
  display: grid;
  gap: 16px;
}

.timesheet-entry-card {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(132,106,122,0.12);
  background: rgba(255,255,255,0.62);
}

.timesheet-entry-edit-trigger {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(132,106,122,0.16);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.94);
  color: var(--color-scheme-deep);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.timesheet-entry-card:hover .timesheet-entry-edit-trigger,
.timesheet-entry-card.is-touch-active .timesheet-entry-edit-trigger,
.timesheet-entry-edit-trigger:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.timesheet-entry-top,
.timesheet-entry-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.timesheet-entry-hours {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  white-space: nowrap;
}

.timesheet-entry-top-inline {
  justify-content: flex-start;
  gap: 14px;
}

.timesheet-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

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

.timesheet-entry-side-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  text-align: right;
  color: var(--muted);
}


.timesheet-entry-status {
  font-weight: 800;
  color: var(--color-scheme-deep);
}

.timesheet-entry-side-meta span + span {
  margin-top: 2px;
}


.timesheet-entry-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.timesheet-entry-meta-inline {
  justify-content: flex-start;
  gap: 18px;
}

.timesheet-entry-notes {
  margin: 4px 0 0;
  color: var(--text);
  line-height: 1.65;
}

.timesheet-entry-notes p {
  margin: 0;
}

.timesheet-entry-notes p + p {
  margin-top: 8px;
}

.timesheet-note-label {
  color: var(--color-scheme-deep);
  font-weight: 400;
}

.timesheet-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(45, 34, 48, 0.32);
  backdrop-filter: blur(8px);
}

.timesheet-modal-card {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow);
}

.timesheet-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
}

.timesheet-import-help {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.timesheet-import-help .btn-soft {
  justify-self: start;
}

.timesheet-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.timesheet-modal-actions-split {
  justify-content: space-between;
  align-items: center;
}

.timesheet-modal-actions-right {
  display: flex;
  gap: 12px;
}

.btn-danger-soft {
  border-color: rgba(239,68,68,0.24);
  color: #9b1c1c;
  background: rgba(239,68,68,0.08);
}

.auth-field textarea {
  min-height: 120px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(132,106,122,0.16);
  background: rgba(255,255,255,0.88);
  padding: 14px;
  font: inherit;
  color: var(--text);
  resize: vertical;
}




