/**
 * styles-photography.css
 * 摄影师后台 + 公开预约界面 + 移动端适配
 */

/* Photography loading overlay */
.photography-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.72), rgba(255, 247, 238, 0.84)),
    rgba(255, 252, 247, 0.72);
  backdrop-filter: blur(10px);
}

body.photography-loading {
  overflow: hidden;
}

.photography-loading-card {
  width: min(100%, 280px);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 22px;
  text-align: center;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  box-shadow:
    0 20px 36px rgba(39, 34, 27, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.photography-loading-card strong {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.2;
}

.photography-loading-card span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.photography-loading-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(35, 129, 90, 0.14);
  border-top-color: var(--green);
  animation: photography-loading-spin 0.9s linear infinite;
}

@keyframes photography-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Photographer / Public Booking / Lookup */
.photographer-view,
.public-booking-view,
.booking-lookup-view {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.photographer-head,
.public-booking-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.photographer-head > div:first-child,
.public-booking-head {
  position: relative;
  min-height: 68px;
  padding-left: 82px;
}

.public-booking-head {
  grid-template-columns: 1fr;
}

.photographer-head h1,
.public-booking-head h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.photographer-head p,
.public-booking-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.photographer-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.photographer-desktop-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
  margin: 0 0 12px;
}

.photographer-mobile-shell {
  display: none;
}

.photographer-mobile-content {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  overflow: visible;
  display: grid;
  gap: 12px;
}

.photographer-mobile-hero,
.photographer-mobile-today,
.photographer-mobile-schedule,
.photographer-mobile-profile {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 12px;
  align-self: start;
}

.photographer-mobile-schedule {
  display: grid;
  min-height: 0;
}

.photographer-mobile-actions {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 4px;
  overflow: visible;
}

.photographer-mobile-actions > button {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 0 2px 8px rgba(39, 34, 27, 0.08);
}

.photographer-mobile-actions > .ghost-button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.photographer-mobile-action-button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  white-space: normal;
}

.photographer-mobile-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(35, 129, 90, 0.26);
  box-shadow: 0 14px 28px rgba(39, 34, 27, 0.1);
}

.photographer-mobile-action-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #bf9556;
}

.photographer-mobile-action-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photographer-mobile-action-label {
  display: block;
  max-width: 100%;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.18;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.photographer-mobile-profile-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(39, 34, 27, 0.08);
}

.photographer-mobile-profile-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
  align-content: start;
}

.photographer-mobile-profile-actions > button {
  width: 100%;
  min-width: 90px;
}

.photographer-mobile-profile-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.photographer-mobile-profile-main strong {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.2;
}

.photographer-mobile-profile-main span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.photographer-mobile-top,
.photographer-mobile-bottom {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.photographer-mobile-panel-card,
.photographer-mobile-today-summary,
.photographer-mobile-today-list-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(39, 34, 27, 0.08);
  overflow: visible;
}

.photographer-mobile-section-heading {
  display: grid;
  gap: 4px;
}

.photographer-mobile-section-heading strong {
  font-size: 1.1rem;
  color: var(--ink);
}

.photographer-mobile-toolbar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.photographer-mobile-toolbar .field {
  min-width: 0;
}

.photographer-mobile-toolbar select {
  width: 100%;
  min-width: 0;
}

.photographer-mobile-calendar {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.photographer-mobile-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-content: start;
  overflow: visible;
}

.photographer-mobile-weekday {
  min-width: 0;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.photographer-mobile-day-button {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 900;
  box-shadow: none;
  overflow: visible;
}

.photographer-mobile-day-button.is-closed {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.photographer-mobile-day-label {
  display: grid;
  gap: 2px;
  justify-items: center;
  line-height: 1;
  min-width: 0;
}

.photographer-mobile-day-label strong {
  font-size: 0.98rem;
  line-height: 1;
}

.photographer-mobile-day-count {
  color: var(--muted);
  max-width: 100%;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photographer-mobile-day-button.is-empty {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

.photographer-mobile-day-button.is-selected {
  border-color: rgba(35, 129, 90, 0.55);
  background: linear-gradient(180deg, rgba(237, 247, 240, 0.98), rgba(227, 243, 233, 0.98));
  color: var(--green-dark);
  box-shadow: 0 10px 20px rgba(35, 129, 90, 0.12);
}

.photographer-mobile-day-title {
  font-weight: 900;
  margin-bottom: 10px;
}

.photographer-mobile-day-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.photographer-mobile-day-title-row .photographer-mobile-day-title {
  margin: 0;
}

.photographer-mobile-today-heading {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.photographer-mobile-day-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.photographer-mobile-today-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.photographer-mobile-today-stat {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.photographer-mobile-today-stat.is-activity {
  color: var(--green-dark);
  background: #eef7f1;
  border-color: rgba(35, 129, 90, 0.18);
}

.photographer-mobile-today-stat.is-pending {
  color: #b86f14;
  background: #fff8ea;
  border-color: rgba(201, 138, 28, 0.22);
}

.qr-image-preview-wrap {
  display: grid;
  place-items: center;
  max-height: min(64vh, 680px);
  overflow: auto;
  padding: 10px;
  background: #fbf7ef;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qr-image-preview {
  display: block;
  width: min(100%, 360px);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(39, 34, 27, 0.12);
  -webkit-touch-callout: default;
  user-select: auto;
}

.photographer-mobile-orders {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 10px;
  overflow: visible;
}

.photographer-mobile-today-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  align-items: start;
  padding: 14px;
}

.photographer-mobile-today-summary-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.photographer-mobile-today-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(35, 129, 90, 0.18);
}

.photographer-mobile-today-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photographer-mobile-today-summary-main strong {
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 2px;
  align-items: baseline;
  font-size: 1rem;
  line-height: 1.12;
  color: var(--ink);
}

.photographer-mobile-today-date {
  font-size: 0.94rem;
  font-weight: 800;
  white-space: nowrap;
}

.photographer-mobile-today-summary-main span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.photographer-mobile-today-stats {
  grid-column: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: start;
  min-width: 0;
}

.photographer-mobile-today-stat {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(224, 209, 190, 0.86);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.photographer-mobile-today-stat.is-activity {
  color: var(--green-dark);
  background: rgba(235, 247, 240, 0.9);
  border-color: rgba(35, 129, 90, 0.16);
}

.photographer-mobile-today-stat.is-pending {
  color: #b86f14;
  background: rgba(255, 248, 234, 0.96);
  border-color: rgba(201, 138, 28, 0.2);
}

.photographer-mobile-today-stat.is-conflict {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.photographer-mobile-today-orders {
  gap: 12px;
}

.photographer-mobile-timeline {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 28px;
  align-content: start;
  justify-items: stretch;
  overflow: hidden;
}

.photographer-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.photographer-timeline-item::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 26px;
  bottom: -34px;
  width: 1px;
  background: rgba(224, 209, 190, 0.72);
}

.photographer-timeline-item:last-child::before {
  display: none;
}

.photographer-timeline-time {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 1rem;
}

.photographer-timeline-time strong {
  font-size: 1rem;
  font-weight: 700;
}

.photographer-timeline-dot {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  display: block;
  justify-self: center;
  border-radius: 999px;
  background: #fff;
  border: 3px solid rgba(224, 209, 190, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.photographer-timeline-item.is-live .photographer-timeline-dot {
  border-color: var(--green);
}

.photographer-timeline-item.is-pending .photographer-timeline-dot {
  border-color: #e5a13b;
}

.photographer-timeline-card {
  position: relative;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-height: 160px;
  padding: 22px;
  align-content: start;
  align-items: stretch;
  justify-content: stretch;
  justify-items: stretch;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(224, 209, 190, 0.95);
  border-radius: 14px;
  text-align: left;
  white-space: normal;
  box-shadow: none;
}

.photographer-timeline-item.is-live .photographer-timeline-card {
  background: rgba(238, 248, 243, 0.82);
  border-color: var(--green);
}

.photographer-timeline-item.is-pending .photographer-timeline-card {
  background: rgba(255, 250, 241, 0.88);
  border-color: rgba(229, 161, 59, 0.55);
}

.photographer-timeline-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  justify-items: start;
  width: 100%;
}

.photographer-timeline-card-head strong,
.photographer-timeline-card-head span:not(.photographer-timeline-arrow) {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.15;
}

.photographer-timeline-arrow {
  color: var(--muted);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.photographer-timeline-details {
  display: grid;
  gap: 8px;
}

.photographer-timeline-detail {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.photographer-timeline-detail-icon {
  color: rgba(39, 34, 27, 0.48);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.photographer-timeline-detail-icon svg,
.photographer-timeline-empty-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photographer-timeline-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 900;
}

.photographer-timeline-progress {
  height: 8px;
  overflow: hidden;
  background: rgba(35, 129, 90, 0.1);
  border: 1px solid rgba(35, 129, 90, 0.12);
  border-radius: 999px;
}

.photographer-timeline-progress span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}

.photographer-timeline-confirm {
  position: absolute;
  right: 20px;
  bottom: 20px;
  min-width: 76px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--green-dark);
  border: 1px solid var(--green);
  border-radius: 8px;
  font-weight: 900;
}

.photographer-timeline-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(224, 209, 190, 0.84);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(39, 34, 27, 0.08);
}

.photographer-timeline-empty-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: rgba(235, 247, 240, 0.9);
  border-radius: 999px;
}

.photographer-timeline-empty strong,
.photographer-timeline-empty span {
  display: block;
}

.photographer-timeline-empty strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.photographer-timeline-empty span {
  color: var(--muted);
  margin-top: 4px;
  font-weight: 700;
}

.photographer-mobile-nav {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.photographer-mobile-nav::before {
  display: none;
  content: none;
}

.photographer-mobile-nav .tab-button.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  border-radius: calc(var(--radius) - 2px);
}

.photographer-weekday-toggle {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

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

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

.photographer-day-dialog-list {
  display: grid;
  gap: 10px;
}

.photographer-pending-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.photographer-pending-row .primary-button {
  min-height: 0;
  height: 100%;
  padding: 0 14px;
}

.weekday-toggle-button {
  min-height: 40px;
  display: grid;
  justify-items: start;
  gap: 2px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  white-space: normal;
}

.weekday-toggle-button strong {
  font-size: 0.92rem;
}

.weekday-toggle-button span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.weekday-toggle-button.is-open {
  border-color: rgba(35, 129, 90, 0.3);
  background: #f2faf5;
}

.weekday-toggle-button.is-closed {
  opacity: 0.85;
}

.photographer-sidebar {
  display: grid;
  gap: 18px;
}

.qr-canvas {
  display: block;
  width: min(100%, 220px);
  aspect-ratio: 1;
  height: auto;
  margin: 0 auto 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photographer-stats {
  display: grid;
  gap: 10px;
}

.photographer-stat-item {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photographer-stat-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.photographer-stat-item strong {
  font-size: 1.22rem;
}

.photographer-calendar-panel,
.lookup-panel {
  min-width: 0;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(39, 34, 27, 0.08);
}

.photographer-day-orders-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.photographer-day-orders-title {
  font-weight: 900;
}

.photographer-day-orders-list {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding-right: 2px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.calendar-toolbar h2 {
  margin: 0;
  text-align: center;
}

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

.photographer-weekday {
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 900;
}

.photographer-day {
  min-width: 0;
  min-height: 168px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.photographer-day.is-closed {
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  cursor: not-allowed;
}

.photographer-day.is-closed .mini-button {
  opacity: 0.55;
  cursor: not-allowed;
}

.photographer-day.is-outside-month {
  background: rgba(255, 255, 255, 0.52);
}

.photographer-day.is-selected {
  border-color: rgba(35, 129, 90, 0.85);
  box-shadow: inset 0 0 0 1px rgba(35, 129, 90, 0.18), 0 0 0 2px rgba(35, 129, 90, 0.18);
  background: linear-gradient(180deg, rgba(247, 252, 249, 0.98), rgba(239, 248, 243, 0.98));
}

.photographer-day-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.photographer-day-count {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  min-height: 22px;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}

.photographer-day-head strong {
  font-size: 1rem;
}

.photographer-day-booking {
  padding: 2px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-dark);
  background: #eef7f1;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photographer-day-booking.is-more {
  color: var(--muted);
  background: transparent;
  padding: 0 6px;
}

.booking-card-button {
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  text-align: left;
  white-space: normal;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.booking-card-button.is-live {
  border-color: rgba(35, 129, 90, 0.28);
  box-shadow: 0 12px 24px rgba(35, 129, 90, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.88);
}

.booking-card-button:active {
  transform: scale(0.98);
}

.booking-card-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  white-space: normal;
}

.booking-delete-button {
  align-self: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
}

.booking-card-button.is-confirmed {
  background: linear-gradient(135deg, rgba(242, 250, 245, 0.85), rgba(238, 247, 241, 0.85));
  border-color: rgba(35, 129, 90, 0.15);
}

.booking-card-button.is-pending {
  background: linear-gradient(135deg, rgba(255, 248, 230, 0.85), rgba(255, 242, 219, 0.85));
  border-color: rgba(201, 138, 28, 0.15);
}

.booking-card-button.is-cancelled {
  color: var(--muted);
  background: rgba(246, 241, 235, 0.7);
  border-color: transparent;
  opacity: 0.75;
  box-shadow: none;
}

.booking-card-button strong {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.3;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.booking-card-button.is-cancelled strong {
  color: var(--muted);
}

.booking-card-button span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.booking-card-main > span:not(.status-tag-row) {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.booking-card-main > span:not(.status-tag-row)::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green);
  opacity: 0.6;
}

.status-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.status-tag {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}

.status-tag.is-booking-confirmed,
.status-tag.is-payment-paid_full,
.status-tag.is-delivery-final_delivered {
  color: var(--green-dark);
  background: rgba(35, 129, 90, 0.08);
  border: 1px solid rgba(35, 129, 90, 0.12);
}

.status-tag.is-booking-live {
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
}

.status-tag.is-booking-pending,
.status-tag.is-payment-deposit_paid,
.status-tag.is-delivery-draft_delivered,
.status-tag.is-delivery-raw_delivered {
  color: #7a5310;
  background: rgba(201, 138, 28, 0.08);
  border: 1px solid rgba(201, 138, 28, 0.15);
}

.status-tag.is-booking-cancelled,
.status-tag.is-payment-refunded,
.status-tag.is-delivery-revising {
  color: var(--red);
  background: rgba(184, 77, 70, 0.08);
  border: 1px solid rgba(184, 77, 70, 0.12);
}

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

.public-calendar-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(39, 34, 27, 0.08);
}

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

.public-day-slot-wrap {
  display: grid;
  gap: 12px;
}

.public-day-slot-empty {
  margin: 0;
  min-height: 0;
}

.public-day-slot-title {
  margin: 0;
  font-size: 1rem;
}

.public-busy-list {
  display: grid;
  gap: 8px;
}

.public-busy-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff2ef;
  border: 1px solid rgba(184, 77, 70, 0.24);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--red);
}

.public-busy-icon {
  font-size: 1.1rem;
}

.public-booking-calendar {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.public-month-section {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(39, 34, 27, 0.08);
}

.public-month-section h2 {
  margin: 0 0 12px;
}

.public-booking-side {
  display: grid;
  gap: 18px;
}

.auth-mode-toggle {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  --tab-left: 4px;
  --tab-width: 0px;
}

.auth-mode-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  left: var(--tab-left, 4px);
  width: var(--tab-width, 0);
  height: calc(100% - 8px);
  background: var(--green);
  border-radius: calc(var(--radius) - 2px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 0;
  pointer-events: none;
}

.auth-forgot-link {
  margin: 0;
  padding: 6px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 150ms;
}
.auth-forgot-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.reset-password-success-view {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
}
.reset-success-card {
  text-align: center;
  max-width: 360px;
  padding: 40px 24px;
}
.reset-success-card h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}
.reset-success-card p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}
.reset-success-card .primary-button {
  width: 100%;
}

.checkbox-field {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.checkbox-field input {
  width: auto;
}

.wide-modal {
  width: min(760px, calc(100% - 28px));
}

.service-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-type-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--green-dark);
  background: #eef7f1;
  border: 1px solid rgba(35, 129, 90, 0.22);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 4px;
}

.service-type-chip-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  margin-left: 2px;
  border: none;
  border-radius: 50%;
  background: rgba(184, 77, 70, 0.12);
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.service-type-chip-delete:hover {
  background: rgba(184, 77, 70, 0.25);
}

.lookup-card {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lookup-card h2 {
  margin: 0;
}

.lookup-details {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.lookup-details dt {
  color: var(--muted);
  font-weight: 900;
}

.lookup-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .photographer-head,
  .photographer-shell,
  .public-booking-layout {
    grid-template-columns: 1fr;
  }

  .photographer-sidebar {
    order: 2;
  }
}

@media (max-width: 760px) {
  .photographer-view,
  .public-booking-view,
  .booking-lookup-view {
    width: min(100% - 20px, 720px);
    padding-top: 16px;
  }

  .public-booking-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .public-booking-side {
    order: -1;
    gap: 14px;
  }

  .photographer-head,
  .public-booking-head {
    grid-template-columns: 1fr;
  }

  .photographer-calendar-grid {
    gap: 5px;
  }

  .photographer-day {
    min-height: 132px;
    padding: 6px;
  }

  .photographer-day-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .photographer-view:not(.is-hidden) {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .photographer-view:not(.is-hidden) .photographer-head,
  .photographer-view:not(.is-hidden) .photographer-shell {
    display: none;
  }

  .photographer-view:not(.is-hidden) .photographer-mobile-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
      linear-gradient(180deg, rgba(248, 242, 233, 0.98), rgba(242, 235, 225, 0.98));
  }

  .photographer-view:not(.is-hidden) .photographer-mobile-content {
    flex: 1 0 auto;
    padding: 12px 12px calc(104px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  .photographer-view:not(.is-hidden) .photographer-mobile-today,
  .photographer-view:not(.is-hidden) .photographer-mobile-schedule,
  .photographer-view:not(.is-hidden) .photographer-mobile-profile {
    height: auto;
    display: grid;
    gap: 12px;
    min-height: 0;
    align-self: start;
  }

  .photographer-view:not(.is-hidden) .photographer-mobile-hero,
  .photographer-view:not(.is-hidden) .photographer-mobile-top,
  .photographer-view:not(.is-hidden) .photographer-mobile-bottom,
  .photographer-view:not(.is-hidden) .photographer-mobile-profile,
  .photographer-view:not(.is-hidden) .photographer-mobile-today {
    padding: 0;
    min-height: 0;
    overflow: visible;
  }

  .photographer-view:not(.is-hidden) .photographer-mobile-panel-card {
    padding: 12px;
    overflow: visible;
  }

  .photographer-view:not(.is-hidden) .photographer-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 48;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(248, 242, 233, 0.16), rgba(248, 242, 233, 0.96) 20%);
    box-shadow: 0 -12px 28px rgba(25, 55, 41, 0.08);
  }

  body[data-app-mode="photographerDashboard"] .photographer-view {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body[data-app-mode="photographerDashboard"] .photographer-head,
  body[data-app-mode="photographerDashboard"] .photographer-shell {
    display: none;
  }

  body[data-app-mode="photographerDashboard"] .photographer-mobile-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
      linear-gradient(180deg, rgba(248, 242, 233, 0.98), rgba(242, 235, 225, 0.98));
  }

  body[data-app-mode="photographerDashboard"] .photographer-mobile-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    padding: 12px 12px calc(104px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  body[data-app-mode="photographerDashboard"] .photographer-mobile-today,
  body[data-app-mode="photographerDashboard"] .photographer-mobile-schedule,
  body[data-app-mode="photographerDashboard"] .photographer-mobile-profile {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    align-self: start;
  }

  body[data-app-mode="photographerDashboard"] .photographer-mobile-today {
    flex: 1 1 auto;
    align-self: stretch;
  }

  body[data-app-mode="photographerDashboard"] .photographer-mobile-hero,
  body[data-app-mode="photographerDashboard"] .photographer-mobile-top,
  body[data-app-mode="photographerDashboard"] .photographer-mobile-bottom,
  body[data-app-mode="photographerDashboard"] .photographer-mobile-profile,
  body[data-app-mode="photographerDashboard"] .photographer-mobile-today {
    padding: 0;
    min-height: 0;
    overflow: visible;
  }

  body[data-app-mode="photographerDashboard"] .photographer-mobile-panel-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
    overflow: visible;
  }

  body[data-app-mode="photographerDashboard"] .photographer-mobile-today .photographer-mobile-panel-card {
    flex: 1 1 auto;
  }

  body[data-app-mode="photographerDashboard"] .photographer-mobile-day-title-row {
    flex: 0 0 auto;
  }

  body[data-app-mode="photographerDashboard"] .photographer-mobile-today-stats {
    flex: 0 0 auto;
  }

  body[data-app-mode="photographerDashboard"] .photographer-mobile-orders {
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
  }

  body[data-app-mode="photographerDashboard"] .photographer-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 48;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(248, 242, 233, 0.16), rgba(248, 242, 233, 0.96) 20%);
    box-shadow: 0 -12px 28px rgba(25, 55, 41, 0.08);
  }
}

@media (max-width: 460px) {
  .photographer-mobile-actions > button {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 999px;
  }

  .photographer-mobile-action-icon {
    width: 28px;
    height: 28px;
  }

  .photographer-mobile-action-icon svg {
    width: 19px;
    height: 19px;
  }

  .photographer-mobile-action-label {
    font-size: 0.7rem;
  }

  .photographer-mobile-panel-card,
  .photographer-mobile-today-summary,
  .photographer-mobile-today-list-card {
    padding: 12px;
    border-radius: var(--radius);
  }

  .photographer-view:not(.is-hidden) .photographer-mobile-panel-card,
  body[data-app-mode="photographerDashboard"] .photographer-mobile-panel-card {
    padding: 12px;
    border-radius: var(--radius);
  }

  .photographer-mobile-calendar {
    padding: 0;
    border-radius: 0;
  }

  .photographer-mobile-calendar-grid {
    gap: 5px;
  }

  .photographer-mobile-day-button {
    border-radius: 10px;
    height: auto;
    min-height: 40px;
  }

  .photographer-mobile-day-label strong {
    font-size: 0.92rem;
  }

  .photographer-mobile-day-count {
    font-size: 0.58rem;
  }

  .photographer-mobile-today-summary {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .photographer-mobile-today-stats {
    grid-column: auto;
    justify-content: start;
  }

  .photographer-mobile-today-summary-main strong {
    font-size: 0.96rem;
  }

  .photographer-mobile-today-date {
    font-size: 0.88rem;
  }

  .photographer-mobile-today-stat {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.74rem;
  }

  .photographer-timeline-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  .photographer-timeline-time {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
  }

  .photographer-timeline-item::before {
    left: 14px;
  }

  .photographer-timeline-card {
    min-height: 148px;
    padding: 18px;
  }

  .photographer-timeline-card-head {
    gap: 10px;
  }

  .photographer-timeline-card-head strong,
  .photographer-timeline-card-head span:not(.photographer-timeline-arrow) {
    font-size: 1.02rem;
  }

  .photographer-timeline-progress-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .planner-tabs {
    display: flex;
    width: 100%;
    gap: 4px;
    padding: 3px;
  }

  .tab-button {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tab-button.active {
    color: #fff;
    background: var(--green);
    border-radius: calc(var(--radius) - 2px);
  }

  .planner-actions,
  .button-row,
  .inline-fields {
    grid-template-columns: 1fr;
  }

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

  .calendar-month-title {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .calendar-month-count {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .calendar-grid {
    gap: 3px;
  }

  .calendar-day {
    min-height: 66px;
    padding: 4px 2px;
  }

  .calendar-day-toggle {
    min-height: 22px;
    font-size: 0.86rem;
  }

  .calendar-day-status {
    font-size: 0.58rem;
  }

  .calendar-day-ranges {
    min-height: 20px;
    font-size: 0.56rem;
  }

  .calendar-toolbar {
    grid-template-columns: 1fr;
  }

  .photographer-calendar-panel {
    padding: 10px;
  }

  .photographer-calendar-grid {
    grid-template-columns: 1fr;
  }

  .photographer-weekday {
    display: none;
  }

  .photographer-day.is-outside-month {
    display: none;
  }

  .lookup-details {
    grid-template-columns: 1fr;
  }
}

