:root {
  --bg: #f4efe7;
  --paper: #fffdf8;
  --soft: #f0e5d7;
  --rose: #b98087;
  --rose-deep: #7d5660;
  --ink: #1e1c1a;
  --muted: #726b62;
  --line: rgba(40, 34, 28, 0.12);
  --mist: #ede8df;
  --green: #687764;
  --gold: #b18a4a;
  --champagne: #d8c29a;
  --charcoal: #191715;
  --ivory: #fffaf0;
  --glass: rgba(255, 253, 248, 0.72);
  --shadow: 0 24px 70px rgba(34, 27, 21, 0.12);
  --shadow-soft: 0 14px 36px rgba(34, 27, 21, 0.08);
  --shadow-lift: 0 32px 90px rgba(34, 27, 21, 0.18);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98) 0%, rgba(244, 239, 231, 0.98) 46%, rgba(232, 228, 219, 0.96) 100%),
    radial-gradient(circle at 12% 4%, rgba(177, 138, 74, 0.13), transparent 32rem);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: var(--ivory);
  background: var(--charcoal);
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  animation: pageEnter 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 252, 246, 0.72);
  border-bottom: 1px solid rgba(40, 34, 28, 0.08);
  backdrop-filter: blur(24px) saturate(1.25);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 252, 246, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(41, 33, 24, 0.18);
}

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

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

.brand-text strong {
  color: var(--charcoal);
  font-size: 16px;
  font-weight: 850;
}

.brand-text span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.page {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 76px;
}

.public-content-status {
  width: min(1200px, calc(100% - 36px));
  margin: 18px auto 0;
}

.public-content-status__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(177, 138, 74, 0.26);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 244, 227, 0.95), rgba(255, 250, 240, 0.9));
  box-shadow: 0 16px 34px rgba(112, 77, 67, 0.08);
  color: #6e5530;
}

.public-content-status__inner strong {
  font-size: 14px;
}

.public-content-status__inner span {
  flex: 1 1 320px;
  line-height: 1.7;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 136px);
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background:
    linear-gradient(rgba(255, 253, 249, 0.84), rgba(255, 253, 249, 0.84)),
    url("https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?auto=format&fit=crop&w=1600&q=82") center/cover;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: #8c6a37;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lead {
  max-width: 680px;
  color: #5f574f;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.9;
}

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

.hero-side {
  display: grid;
  gap: 18px;
  align-content: center;
}

.hero-luxe {
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  min-height: min(760px, calc(100vh - 118px));
  align-items: center;
}

.hero-copy {
  position: relative;
  display: flex;
  min-height: 610px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 68px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(238, 227, 214, 0.72)),
    url("https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?auto=format&fit=crop&w=1500&q=80") center/cover;
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(12px);
}

.hero-copy::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(177, 138, 74, 0.16);
  content: "";
  pointer-events: none;
}

.hero-copy::after {
  position: absolute;
  top: 0;
  right: 10%;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(177, 138, 74, 0.26), transparent);
  content: "";
  pointer-events: none;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(360px, 100%);
  margin-top: 34px;
}

.hero-metrics div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.62);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-metrics strong {
  color: var(--charcoal);
  font-size: 24px;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.hero-carousel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  background: #eee;
  box-shadow: var(--shadow-lift);
  transform: translateZ(0);
}

.hero-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-carousel:hover img {
  transform: scale(1.055);
}

.hero-carousel[data-carousel-hospital] {
  cursor: pointer;
}

.carousel-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 17, 16, 0.08) 0%, rgba(18, 17, 16, 0.2) 44%, rgba(18, 17, 16, 0.74) 100%);
}

.carousel-content {
  position: absolute;
  right: 28px;
  bottom: 82px;
  left: 28px;
  color: white;
}

.carousel-content h2 {
  max-width: 560px;
  margin: 16px 0 10px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.carousel-content p {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.7;
}

.carousel-controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.carousel-arrow,
.carousel-dots button {
  border: 1px solid rgba(255, 255, 255, 0.56);
  color: #fffaf0;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  padding: 0;
}

.carousel-dots button.active {
  width: 28px;
  border-radius: 999px;
  background: white;
}

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

.preview-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(40, 34, 28, 0.1);
  border-radius: 10px;
  padding: 26px;
  color: inherit;
  text-align: left;
  background: rgba(255, 253, 248, 0.66);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
}

.preview-card:hover {
  border-color: rgba(177, 138, 74, 0.34);
  background: rgba(255, 253, 248, 0.86);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.preview-card span {
  color: #8c6a37;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-card h3 {
  margin: 14px 0 8px;
}

.preview-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.stat-card,
.card,
.panel,
.form-card,
.modal-card {
  border: 1px solid rgba(40, 34, 28, 0.1);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.stat-card {
  padding: 24px;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--rose-deep);
  font-size: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  color: var(--ink);
  background: white;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0.01em;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(34, 27, 21, 0.14);
}

.button.primary {
  color: #fff8ea;
  background: linear-gradient(135deg, #211d19, #8a6a37);
  box-shadow: 0 16px 34px rgba(34, 27, 21, 0.18);
}

.button.dark {
  color: #fff8ea;
  background: #1f1b18;
}

.button.white {
  color: var(--rose-deep);
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.94);
}

.button.ghost {
  border-color: rgba(40, 34, 28, 0.14);
  background: rgba(255, 253, 248, 0.72);
}

.button.danger {
  color: #9d3f45;
  border-color: #f0c8c8;
  background: #fff7f7;
}

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0 18px;
}

.section-head h2 {
  margin-bottom: 6px;
  font-size: clamp(24px, 3vw, 36px);
}

.client-hero h2,
.detail-hero-content h2 {
  overflow-wrap: anywhere;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
}

#recommendations-section {
  scroll-margin-top: 96px;
}

.client-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 30px;
  border: 1px solid rgba(40, 34, 28, 0.1);
  border-radius: 10px;
  padding: clamp(28px, 4.4vw, 52px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.93), rgba(231, 223, 211, 0.76)),
    url("https://images.unsplash.com/photo-1607006483224-85c2382a7eb1?auto=format&fit=crop&w=1400&q=80") center/cover;
  box-shadow: var(--shadow-lift);
}

.client-hero h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
}

.client-hero p {
  max-width: 880px;
  margin-bottom: 0;
  color: #5f5652;
  font-size: 17px;
  line-height: 1.8;
}

.recommendations-head {
  align-items: center;
}

.recommendations-head > div:first-child {
  min-width: 0;
}

.client-section-tabs {
  display: inline-flex;
  gap: 8px;
  border: 1px solid rgba(40, 34, 28, 0.12);
  border-radius: 999px;
  padding: 6px;
  background: rgba(255, 253, 248, 0.7);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.client-section-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #6a5c57;
  background: transparent;
  font-weight: 750;
}

.client-section-tabs button.active {
  color: #fff8ea;
  background: linear-gradient(135deg, #211d19, #8a6a37);
}

.recommendations-head p {
  margin-top: 12px;
}

.guide-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.guide-filter-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(40, 34, 28, 0.1);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
  color: #6a5c57;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 750;
}

.guide-filter-bar select {
  min-width: 140px;
  border: 0;
  outline: 0;
  color: var(--charcoal);
  background: transparent;
  font: inherit;
}

.guide-category-tabs {
  display: inline-flex;
  gap: 6px;
  border: 1px solid rgba(40, 34, 28, 0.1);
  border-radius: 999px;
  padding: 5px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--shadow-soft);
}

.guide-category-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #6a5c57;
  background: transparent;
  font-weight: 800;
}

.guide-category-tabs button.active {
  color: #fff8ea;
  background: linear-gradient(135deg, #211d19, #8a6a37);
}

.guide-category-note {
  display: grid;
  flex: 1 1 100%;
  gap: 4px;
  max-width: 760px;
  border: 1px solid rgba(177, 138, 74, 0.18);
  border-radius: 14px;
  padding: 13px 16px;
  color: #504945;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: var(--shadow-soft);
}

.guide-category-note strong {
  color: var(--charcoal);
  font-size: 15px;
}

.guide-category-note span {
  color: #70665d;
  line-height: 1.6;
}

.recommendation-search {
  position: relative;
  display: flex;
  width: min(420px, 100%);
  min-width: 320px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(40, 34, 28, 0.1);
  border-radius: 999px;
  padding: 7px 12px 7px 18px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.recommendation-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.recommendation-search input::placeholder {
  color: #a79a94;
}

.recommendation-search span {
  flex: 0 0 auto;
  color: #8c6a37;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.search-clear {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #8b716c;
  background: rgba(248, 232, 231, 0.92);
  font-size: 18px;
  line-height: 1;
}

.empty-search {
  border: 1px dashed rgba(177, 138, 74, 0.48);
  border-radius: 10px;
  padding: 34px;
  text-align: center;
  background: rgba(255, 253, 249, 0.78);
  box-shadow: 0 14px 34px rgba(112, 77, 67, 0.08);
}

.detail-empty-state {
  max-width: 720px;
  margin: 32px auto 0;
}

.detail-empty-actions {
  justify-content: center;
}

.empty-search h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.empty-search .button {
  margin: 14px auto 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

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

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

.card {
  padding: 22px;
}

.card.image-card {
  overflow: hidden;
  padding: 0;
}

.card.project-info-card {
  position: relative;
  display: flex;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(248, 244, 236, 0.9)),
    var(--panel);
}

.project-info-card::before {
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(177, 138, 74, 0.72), rgba(40, 34, 28, 0.1));
  content: "";
}

.project-info-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 24px;
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-card-top .meta {
  margin: 0;
}

.project-info-list {
  display: grid;
  gap: 8px;
  margin-top: auto;
  color: #685d55;
  font-size: 13px;
  line-height: 1.55;
}

.project-info-list span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-info-list strong {
  margin-right: 8px;
  color: var(--charcoal);
}

.guide-recommendation-card {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(248, 244, 236, 0.88)),
    var(--panel);
}

.guide-recommendation-card .card-body {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  gap: 12px;
}

.guide-recommendation-card .detail-list {
  margin-top: auto;
}

.guide-recommendation-card .card-media {
  aspect-ratio: 5 / 4;
}

.guide-card-placeholder,
.guide-hero-placeholder {
  display: grid;
  place-items: center;
  color: #8c6a37;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(238, 231, 218, 0.92)),
    repeating-linear-gradient(45deg, rgba(177, 138, 74, 0.08) 0 1px, transparent 1px 12px);
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

.guide-card-placeholder {
  aspect-ratio: 5 / 4;
  min-height: 180px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
}

.clickable-card,
.linked-card {
  cursor: pointer;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 280ms ease, border-color 280ms ease, background 280ms ease;
}

.clickable-card:hover,
.linked-card:hover {
  border-color: rgba(177, 138, 74, 0.34);
  background: rgba(255, 253, 248, 0.92);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.card-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background:
    linear-gradient(110deg, rgba(244, 238, 226, 0.96) 8%, rgba(255, 253, 248, 0.9) 18%, rgba(235, 225, 210, 0.92) 33%);
  background-size: 220% 100%;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 560ms ease;
}

.progressive-image {
  color: transparent;
  background:
    linear-gradient(110deg, rgba(244, 238, 226, 0.96) 8%, rgba(255, 253, 248, 0.9) 18%, rgba(235, 225, 210, 0.92) 33%);
  background-size: 220% 100%;
}

.clickable-card:hover .card-media,
.linked-card:hover .card-media {
  filter: saturate(1.02) contrast(1.05);
  transform: scale(1.035);
}

.card-body {
  padding: 20px;
}

.card h3 {
  margin-bottom: 8px;
  color: var(--charcoal);
  font-size: 20px;
  line-height: 1.25;
}

.card-line {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-bottom: 14px;
  color: #5f5652;
  line-height: 1.72;
}

.compact-meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.rating {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
}

.card-cta {
  margin-top: 16px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  color: #665f56;
  background: rgba(237, 232, 223, 0.82);
  font-size: 12px;
}

.pill.rose {
  color: #805d31;
  background: rgba(216, 194, 154, 0.24);
}

.pill.green {
  color: #4d7258;
  background: #edf4ed;
}

.muted {
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  color: #504945;
  font-size: 14px;
  line-height: 1.55;
}

.multiline {
  display: inline;
  white-space: pre-line;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.link-note {
  display: inline-flex;
  align-items: center;
  border: 1px dashed #e3c4c8;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--rose-deep);
  background: #fff7f7;
  font-size: 13px;
  line-height: 1.35;
}

.back-button {
  margin-bottom: 16px;
}

.detail-hero {
  position: relative;
  display: grid;
  min-height: 420px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(40, 34, 28, 0.1);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(16px);
}

.detail-hero img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.03);
}

.detail-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
}

.detail-hero-content h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}

.detail-hero-content p {
  color: #5f5652;
  line-height: 1.75;
}

.project-detail-hero {
  grid-template-columns: 1fr;
  min-height: auto;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(242, 237, 228, 0.9)),
    var(--panel);
}

.project-detail-hero .detail-hero-content {
  max-width: 920px;
  padding: clamp(34px, 6vw, 76px);
}

.project-detail-hero .detail-hero-content h2 {
  max-width: 11em;
}

.guide-detail-hero .guide-hero-placeholder {
  min-height: 420px;
  font-size: clamp(28px, 4vw, 54px);
}

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

.guide-highlight-list span {
  border: 1px solid rgba(177, 138, 74, 0.22);
  border-radius: 8px;
  padding: 12px 13px;
  color: #504945;
  background: rgba(255, 253, 248, 0.72);
  line-height: 1.55;
}

.guide-side-panel .info-block h3 {
  color: #6f695f;
}

.nearby-guide-block {
  display: grid;
  gap: 12px;
}

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

.nearby-guide-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(177, 138, 74, 0.18);
  border-radius: 8px;
  padding: 8px;
  color: inherit;
  background: rgba(255, 253, 248, 0.72);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(34, 27, 21, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nearby-guide-link:hover {
  transform: translateY(-2px);
  border-color: rgba(177, 138, 74, 0.34);
  box-shadow: 0 18px 38px rgba(34, 27, 21, 0.1);
}

.nearby-guide-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(221, 207, 184, 0.42);
}

.nearby-guide-thumb.placeholder {
  display: grid;
  place-items: center;
  color: rgba(80, 73, 69, 0.58);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.nearby-guide-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.nearby-guide-copy strong,
.nearby-guide-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-guide-copy strong {
  color: #312a26;
  font-size: 14px;
  line-height: 1.35;
}

.nearby-guide-copy small,
.nearby-guide-note {
  color: #7c7169;
  font-size: 12px;
  line-height: 1.6;
}

.nearby-guide-note {
  margin: 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 18px;
  margin: 18px 0 10px;
}

.info-panel {
  align-self: start;
}

.info-content {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.info-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.info-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-block h3 {
  margin-bottom: 8px;
  color: #8c6a37;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.info-block p {
  margin-bottom: 0;
  color: #504945;
  line-height: 1.75;
}

.article-body {
  display: grid;
  gap: 10px;
  color: #504945;
  line-height: 1.78;
}

.article-heading {
  margin: 4px 0 0;
  letter-spacing: 0;
  line-height: 1.34;
}

.article-heading-main {
  color: #211d19;
  font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 900;
}

.article-heading-section {
  border-left: 4px solid rgba(177, 138, 74, 0.58);
  padding-left: 12px;
  color: #6b4a24;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 900;
}

.article-heading-small {
  color: #4d633e;
  font-size: 17px;
  font-weight: 850;
}

.article-paragraph,
.article-callout,
.article-list-item p {
  margin: 0;
}

.article-callout {
  border: 1px solid rgba(140, 106, 55, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  color: #594c42;
  background: rgba(255, 248, 235, 0.78);
  font-weight: 760;
}

.article-list-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
}

.article-list-item > span {
  color: #a77a4d;
  font-weight: 900;
}

.article-color-rose {
  color: #b55d66;
  font-weight: 850;
}

.article-color-gold {
  color: #9a6b25;
  font-weight: 850;
}

.article-color-green {
  color: #4d633e;
  font-weight: 850;
}

.article-muted {
  color: #7e756f;
}

.article-size-large {
  font-size: 1.18em;
  font-weight: 900;
}

.article-size-small {
  font-size: 0.9em;
}

.article-strong,
.article-body strong {
  font-weight: 900;
  color: #211d19;
}

.article-highlight,
.article-body mark {
  border-radius: 6px;
  padding: 0 0.22em;
  color: #654b22;
  background: rgba(233, 207, 145, 0.42);
}

.gallery-block {
  display: grid;
  gap: 12px;
}

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

.gallery-thumb {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--mist);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background:
    linear-gradient(110deg, rgba(244, 238, 226, 0.96) 8%, rgba(255, 253, 248, 0.9) 18%, rgba(235, 225, 210, 0.92) 33%);
  transition: transform 0.18s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.03);
}

.price-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.price-category {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: #fff2f3;
  border-bottom: 1px solid rgba(216, 154, 162, 0.28);
}

.price-category strong {
  color: var(--ink);
  font-size: 15px;
}

.price-category span {
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 750;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(110px, 0.8fr);
  gap: 10px 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  color: #504945;
  text-align: left;
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row strong,
.price-row span,
.price-row em {
  min-width: 0;
  line-height: 1.55;
}

.price-row strong {
  color: var(--ink);
}

.price-row span {
  color: var(--rose-deep);
  font-weight: 750;
}

.price-row em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.price-row-button {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.price-row-button:hover {
  background: #fff7f7;
}

.price-image-frame {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}

.price-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
  background:
    linear-gradient(110deg, rgba(244, 238, 226, 0.96) 8%, rgba(255, 253, 248, 0.9) 18%, rgba(235, 225, 210, 0.92) 33%);
}

.hospital-price-gallery,
.customer-review-gallery {
  display: grid;
  gap: 14px;
}

.customer-review-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customer-review-frame {
  background: #fffdf8;
}

.gallery-modal-card {
  width: min(980px, calc(100vw - 28px));
}

.gallery-viewer {
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
}

.gallery-viewer img {
  display: block;
  width: 100%;
  max-height: min(68vh, 680px);
  border-radius: 8px;
  object-fit: contain;
  background: var(--mist);
}

.price-table-modal-card {
  width: min(1120px, calc(100vw - 28px));
}

.price-table-viewer {
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.price-table-viewer img {
  width: auto;
  min-width: 100%;
  max-width: none;
  max-height: none;
}

.intro-popup-modal {
  padding: 18px;
}

.intro-popup-card {
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  padding: 0;
  overflow: auto;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 28px 80px rgba(24, 20, 17, 0.32);
}

.intro-popup-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #f4efe7;
}

.intro-popup-close {
  position: sticky;
  top: 12px;
  left: calc(100% - 52px);
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  margin: 12px 12px -50px auto;
  place-items: center;
  border: 1px solid rgba(75, 57, 42, 0.16);
  border-radius: 999px;
  color: #3e332a;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 24px rgba(31, 24, 18, 0.18);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.intro-popup-close:hover {
  color: #fffaf4;
  background: #4c3b2c;
}

.brand-footer {
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  border-top: 1px solid rgba(40, 34, 28, 0.1);
  color: var(--charcoal);
  background:
    radial-gradient(circle at 76% 2%, rgba(177, 138, 74, 0.14), transparent 28rem),
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(242, 236, 226, 0.97) 52%, rgba(226, 222, 213, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 -22px 80px rgba(34, 27, 21, 0.08);
  backdrop-filter: blur(18px) saturate(1.08);
}

.brand-footer-inner {
  display: grid;
  width: min(1200px, calc(100% - 36px));
  gap: 24px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 78px) 0 clamp(46px, 6vw, 76px);
}

.brand-footer-copy {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.brand-footer-copy h2 {
  margin: 0;
  color: rgba(30, 28, 26, 0.58);
  font-family: "Avenir Next", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-footer-copy p:last-child {
  margin: 0;
  color: rgba(30, 28, 26, 0.82);
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 720;
  line-height: 1.7;
}

.brand-social-links {
  --social-icon-size: 64px;
  --social-icon-image-size: 61px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.brand-social-link {
  display: grid;
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--charcoal);
  background: transparent;
  text-decoration: none;
  box-shadow: none;
  transition: transform 220ms ease, filter 220ms ease;
}

button.brand-social-link {
  padding: 0;
}

.brand-social-link span {
  display: block;
  max-width: 46px;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
}

.brand-social-link img {
  display: block;
  width: var(--social-icon-image-size);
  height: var(--social-icon-image-size);
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(34, 27, 21, 0.1));
}

.brand-social-link:hover {
  transform: translateY(-4px);
  filter: saturate(1.03) contrast(1.02);
}

.brand-footer-rights {
  display: grid;
  gap: 6px;
  color: rgba(30, 28, 26, 0.58);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.brand-footer-rights p {
  margin: 0;
}

.wechat-qr-modal-card {
  width: min(620px, calc(100vw - 28px));
}

.wechat-qr-frame {
  display: grid;
  gap: 14px;
  padding: 0 20px 24px;
  text-align: center;
}

.wechat-qr-frame img {
  display: block;
  width: min(100%, 520px);
  max-height: min(72vh, 720px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.wechat-qr-frame p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.gallery-viewer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.form-card {
  padding: clamp(20px, 3vw, 34px);
}

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

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

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

label {
  color: #5b514d;
  font-size: 14px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}

input[type="file"] {
  padding: 10px 12px;
  color: var(--muted);
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(216, 154, 162, 0.16);
}

.multi-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.choice-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: #5b514d;
  background: rgba(255, 253, 249, 0.82);
  font-size: 13px;
  font-weight: 650;
}

.choice-pill input {
  width: auto;
  accent-color: var(--rose-deep);
}

.choice-pill:has(input:checked) {
  border-color: rgba(216, 154, 162, 0.7);
  color: var(--rose-deep);
  background: #fff2f3;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.article-format-help {
  border: 1px dashed rgba(177, 138, 74, 0.38);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 248, 235, 0.76);
  color: #6b5c50;
  font-size: 12px;
  line-height: 1.7;
}

.article-format-help strong,
.article-format-help span,
.article-format-help small {
  display: block;
}

.article-format-help strong {
  color: #7a5529;
  font-size: 13px;
}

.article-format-help small {
  color: var(--muted);
}

.image-url-list,
.image-manage-list {
  display: grid;
  gap: 10px;
}

.image-url-list span {
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 253, 249, 0.78);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.image-manage-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(148, 127, 106, 0.2);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 10px 24px rgba(57, 43, 38, 0.06);
}

.image-manage-item[draggable="true"] {
  cursor: grab;
}

.image-manage-item.dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.image-manage-item.cover-active {
  border-color: rgba(178, 145, 105, 0.72);
  background: rgba(255, 248, 235, 0.92);
}

.image-manage-item img {
  display: block;
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #f5eee9;
}

.image-remove-button {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(77, 53, 43, 0.16);
  border-radius: 999px;
  color: #7b4a42;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 8px 16px rgba(57, 43, 38, 0.12);
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
}

.image-remove-button:hover {
  color: #fff7f3;
  background: #9f534b;
}

.image-manage-meta {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.image-manage-meta > span:first-child {
  overflow-wrap: anywhere;
}

.image-manage-actions {
  display: grid;
  justify-items: end;
  min-width: 112px;
  padding-right: 28px;
}

.image-cover-button {
  justify-self: end;
  border: 1px solid rgba(178, 145, 105, 0.42);
  border-radius: 999px;
  padding: 7px 11px;
  color: #6a5038;
  background: rgba(255, 248, 235, 0.8);
  font-size: 12px;
  font-weight: 800;
}

.image-cover-button:disabled {
  color: #fffaf0;
  background: linear-gradient(135deg, #8a6a37, #c2a46f);
}

@media (max-width: 640px) {
  .image-manage-item {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .image-manage-item img {
    width: 84px;
    height: 64px;
  }

  .image-manage-actions {
    grid-column: 1 / -1;
    justify-items: stretch;
    min-width: 0;
    padding-right: 0;
  }

  .image-cover-button {
    justify-self: stretch;
  }
}

.notice {
  margin: 16px 0 0;
  border-radius: 18px;
  padding: 14px 16px;
  color: #4e7259;
  background: #edf6ef;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
}

.admin-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  color: #5f5652;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 10px 24px rgba(112, 77, 67, 0.08);
}

.admin-notice strong {
  line-height: 1.5;
}

.admin-notice span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.admin-notice.saving {
  border-color: #ead7a8;
  color: #7b6231;
  background: #fff9e7;
}

.admin-notice.success {
  border-color: #cfe5d2;
  color: #4d7258;
  background: #f2faf3;
}

.admin-notice.error {
  border-color: #f0c8c8;
  color: #9d3f45;
  background: #fff7f7;
}

.admin-diff-panel {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  border: 1px solid rgba(177, 138, 74, 0.2);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: var(--shadow-soft);
}

.admin-diff-panel.error {
  border-color: rgba(157, 63, 69, 0.28);
  background: #fff8f8;
}

.admin-diff-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-diff-head h3 {
  margin: 0;
  font-size: 18px;
}

.admin-diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.admin-diff-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.diff-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.diff-row strong {
  color: var(--ink);
}

.diff-row span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.diff-row em {
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  padding: 2px 7px;
  color: #6a4f2e;
  background: #fff5df;
  font-style: normal;
  text-overflow: ellipsis;
}

.sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: var(--shadow);
}

.tab-button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  color: #5c514c;
  background: transparent;
}

.tab-button.active {
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
}

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

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

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

.mini-stat span {
  color: var(--muted);
  font-size: 13px;
}

.mini-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--rose-deep);
  font-size: 28px;
}

.calendar-panel {
  overflow: hidden;
}

.calendar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.calendar-nav strong {
  min-width: 108px;
  color: var(--rose-deep);
  text-align: center;
}

.calendar-board {
  padding: 18px 20px 8px;
}

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

.calendar-weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.calendar-grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
}

.calendar-cell {
  position: relative;
  min-height: 82px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.72);
}

.calendar-cell:nth-child(7n) {
  border-right: 0;
}

.calendar-cell:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.calendar-cell.outside {
  background: rgba(245, 241, 237, 0.45);
}

.calendar-day {
  position: absolute;
  top: 9px;
  left: 9px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #5b514d;
  background: transparent;
}

.calendar-day.today {
  border-color: var(--rose);
  color: var(--rose-deep);
  background: rgba(248, 232, 231, 0.74);
}

.calendar-day.active {
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
}

.appointment-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  padding: 0 7px;
  color: #a63e48;
  background: #fff1f1;
  box-shadow: 0 8px 16px rgba(166, 62, 72, 0.12);
}

.appointment-dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d94d5c;
}

.appointment-dot em {
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.calendar-details {
  padding: 8px 20px 20px;
}

.calendar-details-head,
.calendar-appointment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calendar-details-head {
  margin-bottom: 14px;
}

.calendar-details-head h3 {
  margin: 10px 0 0;
}

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

.calendar-appointment {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.calendar-appointment p {
  margin: 5px 0 0;
  color: #5b514d;
  line-height: 1.5;
}

.calendar-appointment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.panel {
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.admin-list-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.58);
}

.resource-filter-form,
.resource-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.resource-filter-form input,
.resource-filter-form select,
.operation-log-tools input,
.operation-log-tools select {
  min-height: 38px;
  min-width: min(260px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
}

.resource-filter-form select {
  min-width: 132px;
}

.admin-list-error {
  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
  color: #9d3f45;
  background: #fff0f0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: #6a5c57;
  background: #fbf3ef;
  font-size: 12px;
  font-weight: 750;
}

td.actions {
  min-width: 220px;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.inline-select {
  min-width: 124px;
  border-radius: 999px;
  padding: 8px 10px;
}

.manager-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 246, 0.64);
}

.copy-box {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
}

.copy-box textarea {
  min-height: 190px;
}

.operation-log-tools {
  justify-content: flex-start;
}

.operation-log-table code {
  color: var(--rose-deep);
  font-size: 12px;
}

.operation-log-pages {
  justify-content: flex-end;
  padding: 14px 20px 18px;
}

.audit-source {
  margin: 0;
  white-space: pre-wrap;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
}

.operation-diff {
  color: var(--ink);
  line-height: 1.65;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(25, 23, 21, 0.52);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 24px;
}

.modal-card.gallery-modal-card {
  width: min(980px, calc(100vw - 28px));
}

.modal-card.price-table-modal-card {
  width: min(1120px, calc(100vw - 28px));
}

.modal-card.manager-form-modal {
  width: min(1040px, calc(100vw - 28px));
  padding: 0;
}

.manager-form-modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 22px 24px 16px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(10px);
}

.manager-form-modal .manager-form {
  border-bottom: 0;
  background: rgba(255, 249, 246, 0.44);
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

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

.empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.login-card {
  width: min(460px, 100%);
  margin: 64px auto;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: min(360px, calc(100% - 40px));
  border: 1px solid #dbe9dc;
  border-radius: 18px;
  padding: 14px 16px;
  color: #4d7258;
  background: #f2faf3;
  box-shadow: var(--shadow);
}

.mobile-dock {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(14px, env(safe-area-inset-left));
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid rgba(40, 34, 28, 0.12);
  border-radius: 24px;
  padding: 7px 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 42px rgba(57, 43, 38, 0.16);
  backdrop-filter: blur(22px) saturate(1.2);
}

@media (min-width: 641px) {
  .mobile-dock {
    display: none;
  }
}

.mobile-dock button {
  display: grid;
  min-height: 62px;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 17px;
  color: #766a65;
  background: transparent;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.mobile-dock button span {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  line-height: 0;
}

.mobile-dock button img {
  display: block;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(71, 52, 34, 0.16));
  transition: transform 180ms ease, filter 180ms ease;
}

.mobile-dock button strong {
  font-size: 11.5px;
  font-weight: 850;
}

.mobile-dock button.active {
  color: #5e4732;
  background: rgba(178, 145, 105, 0.16);
  box-shadow: inset 0 0 0 1px rgba(143, 105, 64, 0.18), 0 10px 24px rgba(86, 60, 35, 0.08);
}

.mobile-dock button.active img {
  transform: translateY(-1px) scale(1.05);
  filter: drop-shadow(0 9px 16px rgba(71, 52, 34, 0.2));
}

@media (max-width: 900px) {
  .hero,
  .home-preview,
  .client-hero,
  .detail-hero,
  .detail-layout,
  .grid.cols-2,
  .grid.cols-3,
  .admin-layout,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 16px;
  }

  .hero-copy,
  .hero-carousel {
    min-height: auto;
  }

  .hero-copy {
    padding: 34px;
  }

  .hero-carousel {
    aspect-ratio: 16 / 10;
  }

  .detail-hero img {
    min-height: 320px;
  }

  .guide-detail-hero .guide-hero-placeholder {
    min-height: 320px;
  }

  .calendar-cell {
    min-height: 68px;
  }

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

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 640px) {
  body {
    background: linear-gradient(180deg, #fffaf4 0%, #f5f0ea 52%, #efeee9 100%);
  }

  .brand-footer-inner {
    gap: 22px;
    width: calc(100% - 36px);
    padding: 36px 0 calc(118px + env(safe-area-inset-bottom));
  }

  .brand-footer-copy h2 {
    font-size: 15px;
    letter-spacing: 0.1em;
    line-height: 1.45;
  }

  .brand-social-links {
    --social-icon-size: 56px;
    --social-icon-image-size: 54px;
    gap: 12px;
  }

  .topbar {
    align-items: center;
    padding: 10px 14px;
  }

  .nav-actions {
    display: none;
  }

  .brand {
    gap: 10px;
    width: 100%;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .brand-text span {
    font-size: 11px;
  }

  .page {
    width: calc(100vw - 24px);
    max-width: 480px;
    overflow-x: hidden;
    padding: 18px 0 calc(96px + env(safe-area-inset-bottom));
  }

  h1 {
    max-width: 9.5em;
    font-size: 29px;
    line-height: 1.08;
    word-break: break-all;
  }

  .hero-main {
    padding: 26px;
    border-radius: 24px;
  }

  .hero-copy,
  .hero-carousel,
  .client-hero {
    width: 100%;
    max-width: calc(100vw - 24px);
    min-height: auto;
    border-radius: 16px;
  }

  .hero-copy {
    padding: 28px 24px;
    min-width: 0;
    background:
      linear-gradient(145deg, rgba(255, 253, 248, 0.97), rgba(238, 227, 214, 0.84)),
      url("https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?auto=format&fit=crop&w=900&q=78") center/cover;
  }

  .hero-carousel {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: calc(100vw - 72px);
    margin-top: 22px;
  }

  .hero-metrics div {
    padding: 10px 6px;
  }

  .hero-metrics strong {
    font-size: 20px;
  }

  .hero-metrics span {
    font-size: 11px;
  }

  .home-preview {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .preview-card {
    padding: 16px;
  }

  .home-hero-actions {
    display: none;
  }

  .client-hero {
    gap: 16px;
    margin-bottom: 18px;
    padding: 22px 18px;
  }

  .client-hero h2 {
    max-width: 100%;
    font-size: 31px;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .client-hero p,
  .lead {
    font-size: 15px;
    line-height: 1.72;
  }

  .recommendations-head {
    gap: 12px;
  }

  .client-section-tabs {
    display: none;
  }

  .card-body {
    padding: 16px;
  }

  .card h3 {
    font-size: 18px;
  }

  .card-media {
    aspect-ratio: 5 / 4;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .detail-hero-content {
    padding: 22px 18px;
  }

  .detail-hero-content h2 {
    max-width: 10em;
    font-size: 31px;
    word-break: break-all;
  }

  .panel-head,
  .info-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .article-body {
    gap: 12px;
    font-size: 15px;
    line-height: 1.82;
  }

  .article-heading-main {
    font-size: 25px;
    line-height: 1.28;
  }

  .article-heading-section {
    padding-left: 10px;
    border-left-width: 3px;
    font-size: 20px;
    line-height: 1.38;
  }

  .article-heading-small {
    font-size: 17px;
  }

  .article-callout {
    border-radius: 10px;
    padding: 11px 12px;
  }

  .article-size-large {
    font-size: 1.16em;
  }

  .calendar-board,
  .calendar-details {
    padding-right: 12px;
    padding-left: 12px;
  }

  .calendar-cell {
    min-height: 56px;
  }

  .calendar-day {
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .appointment-dot {
    right: 6px;
    bottom: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
  }

  .appointment-dot span {
    width: 7px;
    height: 7px;
  }

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

  .recommendation-search {
    width: 100%;
    min-width: 0;
  }

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

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

  .hospital-gallery,
  .price-row {
    grid-template-columns: 1fr;
  }

  .gallery-viewer {
    padding: 0 0 16px;
  }

  .toast {
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    width: calc(100% - 24px);
  }
}
