:root {
  --ink: #201d19;
  --ink-soft: #5e5850;
  --ink-faint: #847a6d;
  --paper: rgba(255, 250, 243, 0.78);
  --paper-strong: rgba(255, 249, 241, 0.92);
  --paper-muted: rgba(245, 237, 227, 0.78);
  --line: rgba(61, 49, 34, 0.11);
  --line-strong: rgba(61, 49, 34, 0.2);
  --accent: #c7653d;
  --accent-deep: #8f3f22;
  --sage: #6b7c5a;
  --sage-deep: #4d5c42;
  --gold: #b88b43;
  --cream: #fff8ef;
  --shadow-soft: 0 20px 48px rgba(62, 42, 22, 0.1);
  --shadow-frame: 0 36px 90px rgba(47, 31, 16, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --control-radius: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", "Trebuchet MS", Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(222, 178, 116, 0.34), transparent 30%),
    radial-gradient(circle at top right, rgba(124, 146, 111, 0.16), transparent 25%),
    linear-gradient(160deg, #efe4d5 0%, #f6efe4 46%, #e8ddcf 100%);
  position: relative;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

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

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.5;
  pointer-events: none;
}

.ambient-a {
  width: 18rem;
  height: 18rem;
  top: 2rem;
  right: -5rem;
  background: rgba(191, 145, 78, 0.22);
}

.ambient-b {
  width: 22rem;
  height: 22rem;
  bottom: 8rem;
  left: -6rem;
  background: rgba(106, 129, 94, 0.2);
}

.ambient-c {
  width: 13rem;
  height: 13rem;
  top: 22rem;
  left: 26%;
  background: rgba(199, 101, 61, 0.14);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100vw - 1.5rem));
  margin: 0.75rem auto 1rem;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) + 4px);
  padding: 1.15rem 1.2rem 1.35rem;
  color: var(--cream);
  background:
    radial-gradient(circle at 78% 18%, rgba(213, 156, 106, 0.28), transparent 20%),
    radial-gradient(circle at 22% 100%, rgba(107, 124, 90, 0.24), transparent 28%),
    linear-gradient(142deg, rgba(36, 28, 18, 0.98) 0%, rgba(70, 50, 30, 0.95) 45%, rgba(102, 66, 36, 0.92) 100%);
  box-shadow: var(--shadow-frame);
}

.hero-stage-member {
  padding-bottom: 1rem;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 240, 220, 0.04), transparent 28%),
    linear-gradient(180deg, transparent, rgba(18, 11, 6, 0.18));
  pointer-events: none;
}

.masthead,
.welcome-band {
  position: relative;
  z-index: 1;
}

.masthead {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
}

.brand-lockup {
  max-width: 44rem;
}

.brand-mark {
  border: none;
  background: none;
  color: inherit;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  padding: 0;
  text-align: left;
}

.brand-copy {
  margin: 0.55rem 0 0;
  max-width: 38rem;
  color: rgba(255, 239, 222, 0.8);
  line-height: 1.55;
}

.session-strip {
  min-width: 20rem;
  display: flex;
  justify-content: flex-end;
}

.session-card {
  width: min(24rem, 100%);
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 248, 238, 0.09);
  border: 1px solid rgba(255, 243, 226, 0.16);
  backdrop-filter: blur(14px);
}

.session-card p {
  margin: 0;
}

.session-copy {
  color: rgba(255, 239, 222, 0.7);
}

.welcome-band {
  margin-top: 1.4rem;
}

.welcome-band-member {
  margin-top: 0.9rem;
}

.inventory-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.2rem;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  gap: 1rem;
  align-content: end;
  max-width: 40rem;
}

.hero-copy > * {
  opacity: 0;
  animation: rise-in 720ms ease forwards;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 90ms;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 170ms;
}

.member-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem 1.1rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border-radius: 24px;
  background: rgba(255, 248, 238, 0.08);
  border: 1px solid rgba(255, 243, 226, 0.14);
  backdrop-filter: blur(14px);
}

.member-band-copy {
  min-width: 0;
}

.member-band-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1;
}

.member-band-summary {
  margin: 0.28rem 0 0;
  max-width: 46rem;
  color: rgba(255, 239, 223, 0.8);
  line-height: 1.55;
}

.member-band-summary strong {
  color: var(--cream);
}

.member-band-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.member-band-pills {
  display: flex;
  grid-column: 1 / -1;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.member-band-pills .pill {
  background: rgba(255, 248, 236, 0.1);
  border-color: rgba(255, 243, 226, 0.14);
  color: var(--cream);
}

.hero-title {
  margin: 0;
  max-width: 11ch;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.7rem, 5.8vw, 5.4rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.hero-body {
  margin: 0;
  max-width: 38rem;
  color: rgba(255, 239, 223, 0.83);
  font-size: 1.02rem;
  line-height: 1.68;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.75rem;
}

.hero-stat {
  min-height: 6.4rem;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 248, 238, 0.14), rgba(255, 248, 238, 0.06));
  border: 1px solid rgba(255, 242, 224, 0.14);
  backdrop-filter: blur(12px);
  opacity: 0;
  animation: rise-in 780ms ease forwards;
}

.hero-stat:nth-child(1) {
  animation-delay: 120ms;
}

.hero-stat:nth-child(2) {
  animation-delay: 180ms;
}

.hero-stat:nth-child(3) {
  animation-delay: 240ms;
}

.hero-stat:nth-child(4) {
  animation-delay: 300ms;
}

.hero-stat strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--cream);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.85rem);
  line-height: 1;
}

.hero-stat p {
  margin: 0;
  color: rgba(255, 239, 223, 0.72);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-media {
  position: relative;
  min-height: 25rem;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(15, 10, 6, 0.28);
  opacity: 0;
  animation: media-settle 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms forwards;
}

.hero-media-photo {
  background: #2b2117;
}

.hero-media-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 11, 7, 0.08), rgba(18, 11, 7, 0.88));
  pointer-events: none;
}

.hero-media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 1.3rem 1.35rem;
}

.hero-media-caption h3,
.hero-schematic h3,
.support-block h3,
.notice-panel h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
}

.hero-media-caption h3 {
  font-size: 2rem;
  color: var(--cream);
}

.hero-media-caption p {
  margin: 0.28rem 0 0.8rem;
  color: rgba(255, 238, 220, 0.82);
}

.hero-media-caption .pill,
.hero-media-caption .status-pill {
  background: rgba(255, 251, 245, 0.12);
  border-color: rgba(255, 243, 226, 0.16);
  color: var(--cream);
}

.hero-media-schematic {
  background:
    radial-gradient(circle at 24% 28%, rgba(214, 157, 98, 0.38), transparent 20%),
    radial-gradient(circle at 78% 22%, rgba(122, 145, 108, 0.24), transparent 24%),
    linear-gradient(160deg, rgba(55, 39, 23, 0.9) 0%, rgba(85, 58, 32, 0.94) 100%);
}

.hero-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 244, 228, 0.12);
  animation: orbit-float 12s ease-in-out infinite;
}

.hero-orbit-a {
  inset: 1.5rem auto auto 2rem;
  width: 11rem;
  height: 11rem;
}

.hero-orbit-b {
  inset: auto 1.5rem 2rem auto;
  width: 15rem;
  height: 15rem;
  animation-delay: 1.2s;
}

.hero-schematic {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 1rem;
  height: 100%;
  padding: 1.4rem;
}

.hero-schematic h3 {
  max-width: 11ch;
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.96;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.12);
  border: 1px solid rgba(255, 243, 226, 0.14);
  color: var(--cream);
  font-size: 0.84rem;
}

.hero-route-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.hero-route {
  display: grid;
  gap: 0.18rem;
  padding-top: 0.72rem;
  border-top: 1px solid rgba(255, 243, 226, 0.12);
}

.hero-route strong {
  color: var(--cream);
  font-weight: 700;
}

.hero-route span {
  color: rgba(255, 237, 220, 0.74);
  font-size: 0.92rem;
}

.workspace {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr) 22rem;
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.nav-panel,
.surface,
.notice-panel {
  background: var(--paper);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.nav-panel {
  position: sticky;
  top: 1rem;
  padding: 1.05rem;
  border-radius: var(--radius-xl);
}

.notice-panel {
  position: sticky;
  top: 1rem;
  padding: 1.1rem;
  border-radius: var(--radius-xl);
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.notice-panel h2,
.notice-panel p {
  margin-top: 0;
}

.surface {
  min-height: 38rem;
  padding: 1.2rem;
  border-radius: var(--radius-xl);
}

.content-stage {
  display: grid;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--sage-deep);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-stage .eyebrow {
  color: rgba(255, 240, 222, 0.7);
}

.view-title,
.card-title,
.panel-card h3,
.auth-card h2,
.notice-panel h2,
.metric-card strong,
.nav-button strong {
  font-family: "Fraunces", Georgia, serif;
}

.view-title {
  margin: 0;
  font-size: clamp(1.95rem, 3vw, 2.75rem);
  line-height: 1;
}

.view-subtitle,
.muted,
.helper-copy,
.empty-state p,
.notice-copy,
.form-hint {
  color: var(--ink-soft);
}

.stack,
.form-grid,
.two-column,
.three-column,
.card-grid,
.request-grid,
.loan-grid,
.circle-grid,
.detail-grid,
.gallery,
.meta-list,
.inline-actions,
.notification-list,
.auth-switch,
.tile-list,
.inventory-grid,
.story-steps,
.utility-list {
  display: grid;
  gap: 0.9rem;
}

.stack,
.form-grid,
.metric-grid,
.circle-grid,
.request-grid,
.loan-grid,
.card-grid,
.inventory-grid,
.detail-grid,
.notification-list,
.story-steps,
.utility-list {
  align-content: start;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

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

.card-grid,
.inventory-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: start;
}

.request-grid,
.loan-grid,
.circle-grid,
.detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  grid-auto-rows: max-content;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

.metric-card,
.panel-card,
.item-card,
.auth-card,
.empty-state,
.info-card,
.notification-card,
.support-block,
.featured-shelf {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.metric-card,
.panel-card,
.auth-card,
.notification-card,
.support-block,
.featured-shelf {
  padding: 1.05rem;
}

.item-card:not(.inventory-card) {
  padding: 1.05rem;
}

.panel-card > .panel-card {
  background: rgba(255, 250, 244, 0.68);
  border-color: rgba(61, 49, 34, 0.08);
  box-shadow: none;
}

.panel-card .panel-card h3 {
  font-size: 1.16rem;
}

.panel-card,
.item-card,
.notification-card,
.featured-shelf {
  box-shadow: 0 14px 28px rgba(72, 51, 28, 0.05);
  align-self: start;
  align-content: start;
}

.card-title,
.panel-card h3,
.auth-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.38rem;
  line-height: 1.05;
}

.metric-card p {
  margin: 0;
  font-size: 0.9rem;
}

.metric-card strong {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 1.5rem;
}

.view-header,
.split-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.pill-row,
.meta-row,
.session-actions,
.button-row,
.inline-row,
.notification-head,
.member-row,
.inventory-card-footer {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}

.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  border: 1px solid rgba(104, 83, 56, 0.16);
  background: rgba(255, 250, 244, 0.92);
  font-size: 0.8rem;
}

.status-pill.active,
.status-pill.approved,
.status-pill.returned,
.status-pill.public,
.status-pill.community,
.status-pill.inner,
.status-pill.owner {
  background: rgba(107, 124, 90, 0.12);
  color: var(--sage-deep);
}

.status-pill.pending,
.status-pill.overdue {
  background: rgba(184, 139, 67, 0.16);
  color: #795815;
}

.status-pill.declined,
.status-pill.cancelled,
.status-pill.disputed,
.status-pill.removed {
  background: rgba(199, 101, 61, 0.14);
  color: var(--accent-deep);
}

.button,
.secondary-button,
.ghost-button,
.warn-button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.02rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease, background 180ms ease;
}

.button:hover,
.secondary-button:hover,
.ghost-button:hover,
.warn-button:hover,
.nav-button:hover,
.inventory-card:hover,
.featured-shelf:hover {
  transform: translateY(-1px);
}

.button {
  color: #fff9f3;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 10px 24px rgba(143, 63, 34, 0.24);
}

.secondary-button {
  color: #f7fbf3;
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  box-shadow: 0 10px 24px rgba(77, 92, 66, 0.2);
}

.ghost-button {
  color: var(--ink);
  background: rgba(255, 251, 245, 0.82);
  border-color: rgba(91, 67, 38, 0.16);
}

.warn-button {
  color: var(--accent-deep);
  background: rgba(199, 101, 61, 0.1);
  border-color: rgba(199, 101, 61, 0.22);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.nav-list {
  display: grid;
  gap: 0.38rem;
}

.nav-button {
  width: 100%;
  padding: 0.9rem 0.95rem;
  border-radius: 20px;
  border: 1px solid transparent;
  text-align: left;
  color: var(--ink);
  background: transparent;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-button strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1.05rem;
}

.nav-button small {
  display: block;
  color: var(--ink-soft);
}

.nav-button.active {
  background: rgba(255, 250, 244, 0.92);
  border-color: rgba(199, 101, 61, 0.18);
  box-shadow: inset 3px 0 0 var(--accent);
  transform: translateX(3px);
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

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

input,
textarea,
select {
  width: 100%;
  min-height: 3.9rem;
  padding: 0.84rem 1rem;
  border-radius: var(--control-radius);
  border: 1px solid rgba(94, 71, 45, 0.18);
  background: rgba(255, 252, 247, 0.96);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--accent);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(199, 101, 61, 0.34);
  box-shadow:
    0 0 0 3px rgba(199, 101, 61, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 3rem;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(32, 29, 25, 0.92) 50%),
    linear-gradient(135deg, rgba(32, 29, 25, 0.92) 50%, transparent 50%);
  background-position:
    calc(100% - 1.3rem) calc(50% - 0.16rem),
    calc(100% - 0.92rem) calc(50% - 0.16rem);
  background-size: 0.48rem 0.48rem;
  background-repeat: no-repeat;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

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

.message-banner {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(184, 139, 67, 0.14);
  border: 1px solid rgba(184, 139, 67, 0.18);
}

.hero-stage .message-banner {
  background: rgba(255, 248, 238, 0.1);
  border-color: rgba(255, 244, 226, 0.14);
  color: var(--cream);
}

.message-banner.error {
  background: rgba(199, 101, 61, 0.12);
  border-color: rgba(199, 101, 61, 0.24);
}

.notice-panel .split-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.9rem;
}

.notice-panel .button-row {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.inventory-card {
  padding: 0 0 1rem;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.inventory-card:hover {
  box-shadow: 0 20px 36px rgba(72, 51, 28, 0.12);
  border-color: rgba(199, 101, 61, 0.18);
}

.inventory-card-media {
  aspect-ratio: 1.15;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(66, 48, 28, 0.9), rgba(115, 73, 40, 0.82));
}

.inventory-card-media img,
.featured-shelf-media img,
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inventory-card-media img,
.featured-shelf-media img {
  transition: transform 520ms ease, filter 280ms ease;
}

.inventory-card:hover .inventory-card-media img,
.featured-shelf:hover .featured-shelf-media img {
  transform: scale(1.04);
  filter: saturate(1.06);
}

.inventory-card-placeholder,
.featured-shelf-placeholder {
  display: grid;
  place-items: center;
  gap: 0.3rem;
  height: 100%;
  padding: 1.35rem;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(212, 155, 95, 0.28), transparent 24%),
    linear-gradient(150deg, rgba(61, 45, 27, 0.96), rgba(112, 72, 38, 0.9));
  color: var(--cream);
}

.inventory-card-placeholder span,
.featured-shelf-placeholder span {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
}

.inventory-card .pill-row,
.inventory-card > div:not(.inventory-card-media),
.inventory-card > p {
  padding-inline: 1rem;
}

.inventory-card-footer {
  justify-content: space-between;
  padding-inline: 1rem;
}

.featured-shelf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 42%);
  gap: 1rem;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 250, 244, 0.97), rgba(243, 235, 223, 0.88));
}

.featured-shelf-copy {
  align-content: center;
}

.featured-shelf-media {
  min-height: 20rem;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(80, 60, 36, 0.12);
}

.browse-view .view-header {
  margin-bottom: 0.1rem;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
}

.photo-strip img {
  height: 170px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.empty-state {
  padding: 2rem 1.2rem;
  text-align: center;
}

.inline-empty {
  padding: 1.2rem;
  text-align: left;
}

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

.notice-metric {
  display: grid;
  gap: 0.3rem;
  align-content: start;
  padding: 0.9rem;
  border-radius: 18px;
  background: var(--paper-muted);
  border: 1px solid var(--line);
}

.notice-metric:last-child {
  grid-column: 1 / -1;
}

.notice-metric strong {
  display: block;
  margin-bottom: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
}

.notice-metric span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  text-align: left;
  max-width: none;
}

.notification-list {
  margin-top: 0.2rem;
}

.notice-panel .empty-state {
  padding: 1.1rem 1.2rem;
  background: rgba(255, 251, 245, 0.72);
}

.notification-card.unread {
  border-color: rgba(199, 101, 61, 0.26);
  box-shadow: 0 14px 28px rgba(199, 101, 61, 0.08);
}

.notification-head {
  justify-content: space-between;
  align-items: flex-start;
}

.story-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.story-step:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.story-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgba(199, 101, 61, 0.1);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.story-step strong {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--ink);
}

.circle-pricing-card {
  background: rgba(255, 251, 245, 0.72);
}

.circle-pricing-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: auto;
  min-width: 0;
  font-weight: 600;
}

.checkbox-row input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
}

.checkbox-row span {
  line-height: 1.3;
}

.circles-layout {
  align-items: start;
}

.circles-sidebar,
.circle-detail-panel,
.circle-form-panel,
.circle-list-panel {
  align-content: start;
}

.circle-grid-compact {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

.circle-list-head {
  display: grid;
  gap: 0.45rem;
}

.circle-list-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.circle-list-head h3,
.circle-list-head .helper-copy {
  margin: 0;
}

.circle-list-head .helper-copy {
  max-width: 32rem;
}

.circle-count-pill {
  padding: 0.42rem 0.78rem;
  background: rgba(245, 237, 227, 0.82);
}

.circle-card {
  min-height: 0;
  gap: 0.8rem;
  padding: 1rem 1.05rem;
  background: rgba(255, 251, 245, 0.8);
}

.circle-card p,
.circle-card .muted,
.circle-card .card-title {
  margin: 0;
}

.circle-card-meta {
  gap: 0.45rem;
}

.circle-card-copy {
  gap: 0.55rem;
}

.circle-card-heading {
  display: grid;
  gap: 0.22rem;
}

.circle-card-copy > p {
  max-width: 40ch;
}

.circle-card-actions {
  padding-top: 0.15rem;
}

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

.circle-section:first-of-type {
  padding-top: 0;
  border-top: none;
}

.member-list,
.invite-list {
  gap: 0.7rem;
}

.member-card {
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.74);
}

.member-copy {
  flex: 1;
  min-width: 0;
}

.member-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.invite-card {
  gap: 0.45rem;
}

.invite-link {
  padding: 0.78rem 0.84rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper-muted);
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
  word-break: break-all;
}

.compact-empty {
  padding: 1.15rem 1rem;
  text-align: left;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.auth-card,
.auth-support {
  align-self: start;
}

.auth-switch {
  grid-template-columns: repeat(2, 1fr);
}

.auth-switch button {
  padding: 0.84rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(94, 71, 45, 0.14);
  background: rgba(255, 252, 247, 0.9);
}

.auth-switch button.active {
  background: rgba(199, 101, 61, 0.12);
  border-color: rgba(199, 101, 61, 0.24);
}

.support-block {
  background: linear-gradient(145deg, rgba(255, 249, 241, 0.96), rgba(243, 235, 223, 0.88));
}

.support-block h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 0.98;
}

.utility-list > div {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.utility-list > div:first-child {
  padding-top: 0;
  border-top: none;
}

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  display: grid;
  gap: 0.6rem;
}

.toast {
  min-width: 220px;
  max-width: 320px;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  color: #fff7ed;
  background: rgba(53, 43, 30, 0.92);
  box-shadow: var(--shadow-soft);
}

.toast.error {
  background: rgba(126, 41, 17, 0.94);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes media-settle {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }

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

@keyframes orbit-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@media (max-width: 1200px) {
  .workspace {
    grid-template-columns: 14rem minmax(0, 1fr);
  }

  .notice-panel {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
  }
}

@media (max-width: 920px) {
  .app-shell {
    width: min(100vw - 1rem, 100%);
    margin: 0.5rem auto 1rem;
  }

  .workspace,
  .inventory-band,
  .featured-shelf,
  .auth-layout,
  .circles-layout,
  .two-column,
  .three-column,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    padding: 1rem;
  }

  .masthead {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
  }

  .brand-lockup {
    max-width: none;
  }

  .session-strip {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .session-card,
  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .session-card {
    padding: 0.95rem 1rem;
  }

  .member-band {
    grid-template-columns: 1fr;
  }

  .member-band-actions {
    justify-content: flex-start;
  }

  .nav-panel,
  .surface,
  .notice-panel {
    padding: 1rem;
  }

  .nav-panel,
  .notice-panel {
    position: static;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-button.active {
    transform: none;
  }

  .hero-title {
    max-width: 12ch;
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .hero-media {
    min-height: 21rem;
  }

  .featured-shelf-media {
    min-height: 16rem;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100vw - 0.5rem, 100%);
  }

  .brand-mark {
    font-size: clamp(2.2rem, 13vw, 3.6rem);
  }

  .hero-stage,
  .panel-card,
  .item-card:not(.inventory-card),
  .auth-card,
  .notification-card,
  .support-block,
  .featured-shelf,
  .notice-panel,
  .nav-panel,
  .surface,
  .session-card {
    border-radius: 22px;
  }

  .surface,
  .notice-panel,
  .nav-panel {
    padding: 0.9rem;
  }

  .view-header,
  .split-header,
  .notification-head {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-switch,
  .form-grid,
  .card-grid,
  .inventory-grid,
  .request-grid,
  .loan-grid,
  .circle-grid,
  .detail-grid,
  .photo-strip {
    grid-template-columns: 1fr;
  }

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

  .hero-title {
    max-width: none;
    font-size: clamp(2rem, 12vw, 3.15rem);
    line-height: 0.96;
  }

  .brand-copy {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .member-band-title {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }

  .member-band-summary {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .session-card {
    gap: 0.75rem;
  }

  .session-card .eyebrow {
    margin-bottom: 0.45rem;
  }

  .view-title {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }

  .hero-body {
    font-size: 0.96rem;
    line-height: 1.56;
  }

  .hero-media {
    min-height: 16rem;
    border-radius: 22px;
  }

  .hero-media-caption,
  .hero-schematic {
    padding: 1rem;
  }

  .hero-media-caption h3 {
    font-size: 1.6rem;
  }

  .inventory-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .inventory-card-footer .button {
    width: 100%;
  }

  .button,
  .secondary-button,
  .ghost-button,
  .warn-button {
    width: auto;
    justify-content: center;
  }

  .button-row > *,
  .member-band-actions > *,
  .member-actions > *,
  .notice-panel .button-row > *,
  form .button,
  form .secondary-button,
  form .ghost-button,
  form .warn-button,
  .auth-switch button {
    width: 100%;
  }

  .session-actions,
  .member-band-actions,
  .button-row,
  .member-actions,
  .circle-pricing-head {
    flex-direction: column;
    align-items: stretch;
  }

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

  .session-actions .warn-button {
    grid-column: 1 / -1;
  }

  .member-card,
  .notice-metric {
    flex-direction: column;
    align-items: flex-start;
  }

  .notice-metric span {
    text-align: left;
    max-width: none;
  }

  .toast-stack {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .toast {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .hero-stat-grid {
    grid-template-columns: 1fr;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  .session-actions {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 14rem;
  }
}
