:root {
  color-scheme: light;
  --charcoal: #111315;
  --charcoal-2: #181b1f;
  --charcoal-3: #22262b;
  --ink: #17191c;
  --muted: #6b716c;
  --paper: #f8f7f3;
  --paper-2: #ffffff;
  --line: #deded7;
  --dark-line: rgba(255, 255, 255, 0.08);
  --sage: #6f8b7a;
  --sage-dark: #526f5e;
  --coral: #c96b5b;
  --warning: #d77864;
  --shadow: 0 22px 60px rgba(17, 19, 21, 0.12);
  --font-body: "SUIT Variable", "SUIT", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Paperlogy", "SUIT Variable", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

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

.workspace-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 3vw, 32px);
  background: rgba(248, 247, 243, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-mark,
.desktop-mode-toggle,
.view-switcher button,
.primary-action,
.secondary-action,
.small-action,
.panel-actions a,
.panel-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.brand-mark {
  min-width: 210px;
}

.brand-symbol {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
}

.brand-mark strong,
.admin-logo span:last-child {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
}

.brand-mark small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.view-switcher {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
}

.view-switcher button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
}

.view-switcher button.is-active {
  background: var(--charcoal);
  color: var(--paper);
}

.desktop-mode-toggle {
  display: none;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--ink);
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
}

.ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
}

.view-surface {
  display: none;
}

.view-surface.is-active {
  display: block;
}

.public-view {
  width: min(1420px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.portfolio-intro {
  display: grid;
  gap: 8px;
  margin: 40px 0 26px;
}

.portfolio-intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.04;
}

.portfolio-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.public-logo {
  font-family: var(--font-display);
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
}

.public-nav nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.public-nav nav a {
  text-decoration: none;
}

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

.icon-actions button,
.icon-actions a,
.admin-tools button,
.icon-only {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
}

.public-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  min-height: 430px;
  margin-top: 8px;
}

.hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ddd;
}

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

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-title-row h2,
.panel-heading h2,
.selected-panel h2,
.selected-panel h3,
.price-card h2,
.event-card h2,
.admin-topbar h1,
.admin-panel h2,
.style-detail-content h2 {
  font-family: var(--font-display);
  margin: 6px 0 0;
  line-height: 1.08;
}

.hero-copy h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.hero-copy p:not(.eyebrow) {
  max-width: 580px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.panel-actions a,
.panel-actions button {
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 900;
}

.primary-action,
.panel-actions a {
  border: 1px solid var(--sage-dark);
  background: var(--sage);
  color: white;
}

.secondary-action,
.panel-actions button {
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
}

.portfolio-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
  margin-top: 28px;
}

.filter-panel,
.selected-panel,
.price-card,
.event-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
}

.filter-panel,
.selected-panel {
  position: sticky;
  top: 86px;
  padding: 18px;
}

.filter-group {
  margin-top: 20px;
}

.filter-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-options button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

.filter-options button .ph {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.filter-options button.is-active {
  border-color: var(--sage);
  background: rgba(111, 139, 122, 0.14);
  color: var(--sage-dark);
}

.section-title-row,
.panel-title,
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-title-row {
  margin-bottom: 14px;
}

.section-title-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.masonry-grid {
  column-count: 4;
  column-gap: 12px;
}

.style-card {
  position: relative;
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e9e7e0;
  cursor: pointer;
}

.style-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.style-card.tall img {
  height: auto;
}

.style-card.short img {
  height: auto;
}

.style-overlay {
  display: none;
}

.style-card[hidden] {
  display: none;
}

.style-card.is-selected {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.style-card:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.style-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.style-overlay span,
.tag-row span,
.progress-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 5px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.style-overlay span {
  font-family: var(--font-display);
}

.style-overlay-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.selected-panel img {
  width: 100%;
  height: 220px;
  margin-top: 16px;
  border-radius: 8px;
  object-fit: cover;
}

.selected-panel h3 {
  margin: 16px 0 8px;
}

.selected-panel p {
  margin: 0;
  color: var(--muted);
}

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

.tag-row span {
  border-color: var(--line);
  background: #f3f5ef;
  color: var(--sage-dark);
}

.panel-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.public-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.price-card,
.event-card {
  padding: 22px;
}

.price-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.price-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.price-card dl div.is-empty {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.price-card dt,
.price-card dd {
  margin: 0;
}

.price-card dd {
  display: grid;
  justify-items: end;
  text-align: right;
  font-weight: 900;
}

.price-card dd small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.event-card p {
  max-width: 560px;
  color: var(--muted);
  white-space: pre-line;
}

.event-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid var(--sage);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--sage-dark);
  text-decoration: none;
  font-weight: 900;
}

.admin-view {
  min-height: calc(100vh - 66px);
  background: var(--charcoal);
  color: #f4f5f3;
}

.admin-view.is-active {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  padding: 18px 12px;
  border-right: 1px solid var(--dark-line);
  background: #101214;
}

.admin-logo {
  display: block;
  margin: 0 4px 14px;
  border-bottom: 1px solid var(--dark-line);
  color: #f4f5f3;
  padding: 0 4px 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.admin-logo .brand-symbol {
  border-color: var(--dark-line);
  background: var(--sage);
}

.admin-sidebar nav {
  display: grid;
  gap: 2px;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  border-radius: 7px;
  padding: 8px 9px;
  color: #9da39f;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.admin-sidebar nav a.is-active,
.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.admin-main {
  min-width: 0;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.admin-topbar {
  margin-bottom: 18px;
}

.admin-topbar h1 {
  font-size: clamp(28px, 3vw, 42px);
}

.admin-tools {
  display: flex;
  gap: 8px;
}

.admin-tools button,
.icon-only {
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, 0.04);
  color: white;
}

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

.kpi-grid article,
.admin-panel {
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: var(--charcoal-2);
}

.kpi-grid article {
  padding: 18px;
}

.kpi-grid span,
.close-summary span,
.template-list small,
.message-template-field span,
.message-template-status,
.content-field span,
.draft-card textarea,
.event-editor p {
  color: #9da39f;
}

.kpi-grid strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

.kpi-grid small {
  display: block;
  margin-top: 10px;
  color: #858c88;
}

.kpi-grid .warning strong {
  color: var(--warning);
}

.profit-panel {
  margin-top: 12px;
}

.period-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(111, 139, 122, 0.42);
  border-radius: 8px;
  background: rgba(111, 139, 122, 0.16);
  color: #cbe1d2;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

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

.profit-metric-grid article {
  min-height: 116px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.profit-metric-grid span,
.profit-metric-grid small {
  color: #9da39f;
}

.profit-metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1;
}

.profit-metric-grid small {
  display: block;
  margin-top: 10px;
  font-size: 12px;
}

.profit-metric-grid .warning strong {
  color: var(--warning);
}

.profit-chart {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.profit-bar-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: center;
}

.profit-bar-row > span,
.profit-bar-row > strong {
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
}

.profit-bar-row > span {
  color: #cbd0cc;
}

.profit-bar-row > strong {
  color: white;
  text-align: right;
}

.profit-bar-track {
  height: 16px;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.profit-bar-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
  transition: width 180ms ease;
}

#bar-variable,
#bar-fixed {
  background: #8f7669;
}

#bar-operating {
  background: #d6a35d;
}

#bar-operating.is-loss {
  background: var(--warning);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}

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

.admin-panel {
  padding: 18px;
  scroll-margin-top: 92px;
}

.side-stack {
  display: grid;
  gap: 12px;
}

.panel-title {
  margin-bottom: 14px;
}

.daily-panel .panel-title,
.monthly-cost-panel .panel-title {
  align-items: flex-start;
}

.daily-panel .panel-title > div:first-child,
.monthly-cost-panel .panel-title > div:first-child {
  flex: 0 0 auto;
}

.daily-panel .panel-title h2,
.monthly-cost-panel .panel-title h2 {
  white-space: nowrap;
}

.panel-title.compact {
  margin-bottom: 10px;
}

.close-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 8px;
}

.close-date-field {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #aeb5b1;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.close-date-field input {
  min-width: 132px;
  border: 0;
  background: transparent;
  color: white;
  font: inherit;
  outline: none;
}

.close-date-field input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.72;
}

.save-status {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #aeb5b1;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.save-status.is-saved {
  border-color: rgba(111, 139, 122, 0.46);
  background: rgba(111, 139, 122, 0.18);
  color: #cbe1d2;
}

.save-status.is-dirty {
  border-color: rgba(215, 120, 100, 0.5);
  background: rgba(215, 120, 100, 0.14);
  color: #ffd1c8;
}

.small-action {
  min-height: 36px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 900;
}

.small-action:disabled,
.copy-draft-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.close-table {
  display: grid;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 120px minmax(100px, 140px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 48px;
  border-bottom: 1px solid var(--dark-line);
}

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

.table-row span,
.table-row input {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--dark-line);
  background: transparent;
  color: white;
  padding: 10px 12px;
}

.table-row input:last-child,
.table-note-hint {
  border-right: 0;
}

.table-row input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  outline: none;
}

.table-row input:focus {
  background: rgba(111, 139, 122, 0.16);
}

.table-row span:first-child {
  white-space: nowrap;
}

.monthly-cost-panel {
  margin-top: 12px;
}

.monthly-cost-table .table-row {
  grid-template-columns: 150px minmax(100px, 140px) minmax(0, 1fr);
}

.table-note-hint {
  color: #8e9691;
  font-size: 12px;
  font-weight: 800;
}

.other-expense-detail {
  margin-top: 10px;
}

.other-expense-detail label {
  display: grid;
  gap: 8px;
}

.other-expense-detail span {
  color: #d77864;
  font-size: 13px;
  font-weight: 900;
}

.other-expense-detail textarea {
  width: 100%;
  min-height: 108px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  line-height: 1.5;
  outline: none;
  padding: 12px;
  resize: vertical;
}

.other-expense-detail textarea:focus {
  border-color: rgba(111, 139, 122, 0.58);
  background: rgba(111, 139, 122, 0.14);
}

.table-head {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.04);
  color: #aeb5b1;
  font-size: 12px;
  font-weight: 900;
}

.expense span:first-child {
  color: var(--warning);
}

.close-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.close-summary div {
  min-height: 78px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.close-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.progress-pill {
  border-color: rgba(111, 139, 122, 0.4);
  background: rgba(111, 139, 122, 0.18);
  color: #cbe1d2;
}

.checklist-actions {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#checklist .panel-title {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.checklist-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checklist-heading h2 {
  white-space: nowrap;
}

.checklist-heading .progress-pill {
  flex: 0 0 auto;
  min-height: 34px;
}

.checklist-actions .small-action {
  width: 100%;
}

.admin-checklist {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.checklist-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 38px;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
}

.checklist-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--sage);
}

.checklist-row input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d7dbd8;
  outline: none;
  padding: 7px 8px;
  font-weight: 800;
}

.checklist-row input[type="text"]:focus {
  background: rgba(111, 139, 122, 0.16);
}

.checklist-row.is-complete input[type="text"] {
  color: #858c88;
  text-decoration: line-through;
}

.checklist-remove {
  display: inline-flex;
  width: 38px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffd1c8;
}

.checklist-row:only-child .checklist-remove {
  opacity: 0.48;
}

.reservation-panel {
  grid-column: 1 / -1;
}

.reservation-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.reservation-date-filter {
  display: grid;
  min-width: min(100%, 240px);
  gap: 6px;
}

.reservation-date-filter span {
  color: #9da39f;
  font-size: 12px;
  font-weight: 900;
}

.reservation-date-filter input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  outline: none;
  padding: 8px 10px;
  font: inherit;
  font-weight: 900;
}

.reservation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.reservation-summary div {
  min-height: 74px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
}

.reservation-summary span {
  color: #9da39f;
  font-size: 12px;
  font-weight: 800;
}

.reservation-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

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

.reservation-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
}

.reservation-card[data-reservation-source="phone"] {
  border-color: rgba(215, 120, 100, 0.42);
}

.reservation-card[data-reservation-source="naver"] {
  border-color: rgba(111, 139, 122, 0.48);
}

.reservation-card[data-reservation-status="done"] {
  opacity: 0.82;
}

.reservation-card[data-reservation-status="canceled"],
.reservation-card[data-reservation-status="no-show"] {
  opacity: 0.62;
}

.reservation-field-grid {
  display: grid;
  grid-template-columns: minmax(132px, 0.72fr) minmax(108px, 0.52fr) minmax(132px, 0.64fr) minmax(116px, 0.58fr);
  gap: 10px;
  align-items: start;
}

.reservation-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.reservation-field span {
  color: #9da39f;
  font-size: 11px;
  font-weight: 900;
}

.reservation-field input,
.reservation-field select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  outline: none;
  padding: 8px 9px;
  font: inherit;
  font-weight: 800;
}

.reservation-field-service {
  grid-column: span 2;
}

.reservation-field select option {
  background: var(--charcoal-2);
  color: white;
}

.reservation-field input:focus,
.reservation-field select:focus {
  border-color: rgba(111, 139, 122, 0.62);
  background: rgba(111, 139, 122, 0.14);
}

.reservation-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.reservation-call,
.reservation-remove {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
  padding: 8px 10px;
  font-weight: 900;
  text-decoration: none;
}

.reservation-call {
  color: #cbe1d2;
}

.reservation-call[hidden] {
  display: none;
}

.reservation-remove {
  color: #f3bbb8;
}

.customer-panel {
  grid-column: 1 / -1;
}

.customer-search {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.customer-search span {
  color: #9da39f;
  font-size: 12px;
  font-weight: 900;
}

.customer-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  outline: none;
  padding: 9px 10px;
  font: inherit;
  font-weight: 850;
}

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

.customer-card {
  display: grid;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.customer-card:hover,
.customer-card.is-expanded {
  border-color: rgba(111, 139, 122, 0.66);
  background: rgba(111, 139, 122, 0.14);
}

.customer-card-summary {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr) 32px;
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  color: white;
  padding: 11px;
  text-align: left;
}

.customer-card-summary:focus-visible {
  outline: 2px solid rgba(111, 139, 122, 0.72);
  outline-offset: -2px;
}

.customer-card-summary strong {
  font-size: 17px;
}

.customer-card-summary span,
.customer-card-summary small {
  min-width: 0;
  overflow: hidden;
  color: #9da39f;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-card-summary i {
  justify-self: end;
  color: #9da39f;
  transition: transform 160ms ease;
}

.customer-card.is-expanded .customer-card-summary i {
  transform: rotate(180deg);
}

.customer-card-detail {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--dark-line);
  padding: 0 11px 11px;
}

.customer-card-detail[hidden] {
  display: none;
}

.customer-history {
  display: grid;
  gap: 8px;
}

.customer-history-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 9px;
}

.customer-history-item span,
.customer-history-item small,
.customer-empty {
  color: #9da39f;
  font-weight: 850;
}

.customer-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(111, 139, 122, 0.36);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.template-list,
.message-template-list {
  display: grid;
  gap: 8px;
}

.template-list button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  padding: 10px;
  text-align: left;
}

.template-list strong {
  display: block;
  font-weight: 900;
}

.message-template-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1.45fr) 44px 44px;
  gap: 8px;
  align-items: stretch;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
}

.message-template-field {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  min-width: 0;
}

.message-template-field span,
.content-field span {
  font-size: 12px;
  font-weight: 900;
}

.message-template-field input,
.message-template-field textarea,
.content-field input,
.content-field select,
.content-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  outline: none;
  padding: 9px 10px;
}

.message-template-field input,
.message-template-field textarea {
  height: 100%;
  min-height: 76px;
}

.message-template-field textarea,
.content-field textarea {
  min-height: 78px;
  resize: vertical;
}

.message-template-field input:focus,
.message-template-field textarea:focus,
.content-field input:focus,
.content-field select:focus,
.content-field textarea:focus {
  border-color: rgba(111, 139, 122, 0.62);
  background: rgba(111, 139, 122, 0.14);
}

.content-field select option {
  background: var(--charcoal-2);
  color: white;
}

.message-template-copy,
.message-template-remove {
  display: inline-flex;
  width: 100%;
  min-height: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
}

.message-template-copy {
  color: #cbe1d2;
}

.message-template-remove {
  color: #ffd1c8;
}

.message-template-row:only-child .message-template-remove {
  opacity: 0.48;
}

.inventory-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.inventory-summary div {
  min-height: 74px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
}

.inventory-summary span {
  color: #9da39f;
  font-size: 12px;
  font-weight: 800;
}

.inventory-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.inventory-panel {
  grid-column: 1 / -1;
}

.inventory-edit-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
}

.inventory-edit-body {
  display: grid;
}

.inventory-edit-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 1fr)
    minmax(70px, 82px)
    minmax(70px, 82px)
    minmax(54px, 64px)
    minmax(120px, 0.7fr)
    minmax(124px, 0.7fr)
    minmax(74px, 82px)
    42px;
  min-height: 48px;
  border-bottom: 1px solid var(--dark-line);
}

.inventory-edit-body .inventory-edit-row:last-child {
  border-bottom: 0;
}

.inventory-edit-head {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.04);
  color: #aeb5b1;
  font-size: 12px;
  font-weight: 900;
}

.inventory-edit-head span,
.inventory-field,
.inventory-link-cell,
.inventory-status-cell {
  min-width: 0;
  border-right: 1px solid var(--dark-line);
}

.inventory-edit-head span {
  display: flex;
  align-items: center;
  padding: 9px 10px;
}

.inventory-field span {
  display: none;
}

.inventory-field input {
  width: 100%;
  height: 100%;
  min-height: 48px;
  border: 0;
  background: rgba(255, 255, 255, 0.02);
  color: white;
  outline: none;
  padding: 9px 10px;
}

.inventory-field input:focus {
  background: rgba(111, 139, 122, 0.16);
}

.inventory-status-cell {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 8px 10px;
}

.inventory-status-cell em {
  color: #cbe1d2;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.inventory-edit-row.low .inventory-status-cell em {
  color: var(--warning);
}

.inventory-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 255, 255, 0.02);
  color: #aeb5b1;
}

.inventory-link-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
}

.inventory-link-anchor,
.inventory-link-add {
  display: inline-flex;
  min-width: 0;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #cbe1d2;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.inventory-link-anchor {
  flex: 1;
}

.inventory-link-anchor[hidden] {
  display: none;
}

.inventory-link-add.has-link {
  width: 32px;
  padding: 0;
  color: #aeb5b1;
}

.inventory-link-add.has-link span {
  display: none;
}

.inventory-link-anchor:hover,
.inventory-link-anchor:focus-visible,
.inventory-link-add:hover,
.inventory-link-add:focus-visible {
  color: white;
  background: rgba(111, 139, 122, 0.18);
  outline: none;
}

.inventory-remove:hover,
.inventory-remove:focus-visible {
  color: white;
  background: rgba(215, 120, 100, 0.16);
  outline: none;
}

.stock-bar {
  display: block;
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.stock-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
}

.low .stock-bar span {
  background: var(--warning);
}

.portfolio-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  border: 1px dashed rgba(111, 139, 122, 0.45);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
}

.portfolio-management-panel {
  grid-column: 1 / -1;
}

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

.portfolio-edit-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px 42px;
  gap: 10px;
  align-items: stretch;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
}

.portfolio-preview {
  display: grid;
  min-height: 72px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #9da39f;
  font-size: 12px;
  font-weight: 900;
}

.portfolio-preview img {
  width: 100%;
  height: 100%;
  min-height: 72px;
  object-fit: cover;
}

.portfolio-row-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  padding: 10px 12px;
  text-align: left;
}

.portfolio-row-summary:hover,
.portfolio-row-summary:focus-visible {
  border-color: rgba(111, 139, 122, 0.62);
  background: rgba(111, 139, 122, 0.14);
  outline: none;
}

.portfolio-summary-text {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.portfolio-summary-text strong,
.portfolio-summary-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-summary-text strong {
  font-size: 15px;
  font-weight: 900;
}

.portfolio-summary-text small {
  color: #9da39f;
  font-size: 12px;
  font-weight: 800;
}

.portfolio-summary-action {
  margin-left: auto;
  color: #cbe1d2;
  font-size: 12px;
  font-weight: 900;
}

.portfolio-row-summary .ph {
  color: #aeb5b1;
  transition: transform 160ms ease;
}

.portfolio-edit-row.is-expanded .portfolio-row-summary .ph {
  transform: rotate(180deg);
}

.portfolio-field-grid {
  display: grid;
  grid-column: 2 / -1;
  grid-template-columns: minmax(140px, 1fr) minmax(90px, 0.44fr) minmax(120px, 0.7fr) minmax(96px, 0.45fr);
  gap: 8px;
  min-width: 0;
}

.portfolio-edit-row:not(.is-expanded) .portfolio-field-grid {
  display: none;
}

.portfolio-edit-row.is-expanded .portfolio-preview,
.portfolio-edit-row.is-expanded .portfolio-preview img {
  min-height: 116px;
}

.portfolio-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.portfolio-field-image,
.portfolio-field-tags,
.portfolio-field-description,
.portfolio-choice-group {
  grid-column: 1 / -1;
}

.portfolio-field span,
.portfolio-choice-group legend,
.portfolio-visible-cell span {
  color: #9da39f;
  font-size: 11px;
  font-weight: 900;
}

.portfolio-field input,
.portfolio-field textarea,
.portfolio-field select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  outline: none;
  padding: 8px;
}

.portfolio-field textarea {
  min-height: 62px;
  resize: vertical;
}

.portfolio-field input:focus,
.portfolio-field textarea:focus,
.portfolio-field select:focus {
  border-color: rgba(111, 139, 122, 0.62);
  background: rgba(111, 139, 122, 0.14);
}

.portfolio-image-value {
  overflow: hidden;
  color: #9da39f;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-image-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8dedb;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.portfolio-image-button:hover,
.portfolio-image-button:focus-visible {
  border-color: rgba(111, 139, 122, 0.62);
  background: rgba(111, 139, 122, 0.16);
  color: white;
  outline: none;
}

.portfolio-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  border: 0;
  padding: 0;
}

.portfolio-choice-group legend {
  width: 100%;
  margin-bottom: 1px;
}

.portfolio-choice-group label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8dedb;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.portfolio-choice-group input,
.portfolio-visible-cell input {
  width: 16px;
  height: 16px;
  accent-color: var(--sage);
}

.portfolio-visible-cell,
.portfolio-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portfolio-visible-cell {
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
}

.portfolio-remove {
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffd1c8;
}

.portfolio-remove:hover,
.portfolio-remove:focus-visible {
  background: rgba(215, 120, 100, 0.16);
  color: white;
  outline: none;
}

.portfolio-edit-row:only-child .portfolio-remove {
  opacity: 0.48;
}

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

.mini-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.draft-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
}

.content-image-panel {
  display: grid;
  align-content: start;
  gap: 8px;
}

.content-image-preview {
  position: relative;
  display: grid;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.content-image-preview img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.content-image-preview img[hidden],
.content-image-empty[hidden] {
  display: none !important;
}

.content-image-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 190px;
  color: #9da39f;
  text-align: center;
  font-weight: 900;
}

.content-image-empty i {
  font-size: 28px;
}

.content-image-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.content-image-button {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
  padding: 8px 10px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.content-image-button.danger {
  color: #f3bbb8;
}

.content-image-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.draft-card textarea {
  width: 100%;
  min-height: 220px;
}

.draft-card textarea[data-content-draft-field="brief"] {
  min-height: 82px;
}

.draft-card textarea[data-content-draft-field="tags"] {
  min-height: 76px;
}

.content-draft-editor {
  display: grid;
  gap: 10px;
}

.content-field-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.68fr) minmax(0, 1fr);
  gap: 10px;
}

.copy-draft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(111, 139, 122, 0.6);
  border-radius: 8px;
  background: rgba(111, 139, 122, 0.22);
  color: white;
  padding: 8px 12px;
  font-weight: 900;
}

.wide-panel {
  margin-top: 12px;
}

.price-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 12px;
  align-items: start;
}

.price-edit-table {
  display: grid;
  align-content: start;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
}

.price-edit-body {
  display: grid;
  align-content: start;
}

.price-edit-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(104px, 0.64fr) minmax(160px, 1fr) 68px 42px;
  min-height: 48px;
  border-bottom: 1px solid var(--dark-line);
}

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

.price-edit-head {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.04);
  color: #aeb5b1;
  font-size: 12px;
  font-weight: 900;
}

.price-edit-head span,
.price-field,
.price-visible-cell {
  min-width: 0;
  border-right: 1px solid var(--dark-line);
}

.price-edit-head span {
  display: flex;
  align-items: center;
  padding: 9px 10px;
}

.price-field span {
  display: none;
}

.price-field input,
.event-field input,
.event-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  outline: none;
  padding: 9px 10px;
}

.price-field input {
  height: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
}

.price-field input:focus,
.event-field input:focus,
.event-field textarea:focus {
  border-color: rgba(111, 139, 122, 0.62);
  background: rgba(111, 139, 122, 0.14);
}

.price-visible-cell,
.price-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.price-visible-cell {
  gap: 6px;
  color: #aeb5b1;
}

.price-visible-cell span {
  display: none;
}

.price-visible-cell input {
  width: 18px;
  height: 18px;
  accent-color: var(--sage);
}

.price-remove {
  border: 0;
  background: rgba(255, 255, 255, 0.02);
  color: #ffd1c8;
}

.price-remove:hover,
.price-remove:focus-visible {
  background: rgba(215, 120, 100, 0.16);
  color: white;
  outline: none;
}

.price-edit-row:only-child .price-remove {
  opacity: 0.48;
}

.event-editor {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid rgba(201, 107, 91, 0.36);
  border-radius: 8px;
  background: rgba(201, 107, 91, 0.1);
  padding: 14px;
}

.event-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.event-field span,
.event-toggle span {
  color: #ffd1c8;
  font-size: 12px;
  font-weight: 900;
}

.event-field textarea {
  min-height: 96px;
  resize: vertical;
}

.event-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border-color: rgba(201, 107, 91, 0.35);
  border-radius: 8px;
  background: rgba(201, 107, 91, 0.16);
  padding: 9px 10px;
}

.event-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--coral);
}

.mobile-admin-tabs {
  display: none;
}

.public-mobile-tabs {
  display: none;
}

.admin-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-auth-modal.is-open {
  display: flex;
}

.admin-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 21, 0.54);
}

.admin-auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 0 28px 80px rgba(17, 19, 21, 0.28);
  color: var(--ink);
  padding: 22px;
}

.admin-auth-card h2 {
  margin: 6px 0 18px;
  font-family: var(--font-display);
  line-height: 1.1;
}

.admin-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
  color: var(--ink);
}

.admin-auth-field {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.admin-auth-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

.admin-auth-field input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(111, 139, 122, 0.16);
}

.admin-auth-error {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--warning);
  font-size: 13px;
  font-weight: 850;
}

.admin-auth-submit {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--sage-dark);
  border-radius: 8px;
  background: var(--sage);
  color: white;
  font-weight: 900;
}

body.has-open-auth {
  overflow: hidden;
}

.style-detail-sheet {
  display: none;
}

.naver-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  font-weight: 900;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1180px) {
  .portfolio-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .selected-panel {
    grid-column: 1 / -1;
    position: static;
  }

  .masonry-grid {
    column-count: 3;
  }
}

@media (max-width: 940px) {
  .workspace-bar {
    position: static;
    flex-wrap: wrap;
  }

  .brand-mark {
    min-width: auto;
  }

  .public-hero,
  .portfolio-layout,
  .public-info-grid,
  .admin-view.is-active,
  .admin-grid,
  .lower-grid,
  .profit-metric-grid,
  .price-admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-panel {
    position: static;
  }

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

  .filter-group {
    margin-top: 14px;
  }

  .masonry-grid {
    column-count: 2;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-main {
    width: min(100% - 28px, 1180px);
    padding-bottom: calc(196px + env(safe-area-inset-bottom));
  }

  .admin-panel {
    scroll-margin-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .mobile-admin-tabs {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 8px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    background: rgba(24, 27, 31, 0.94);
    padding: 5px;
    backdrop-filter: blur(16px);
  }

  .mobile-admin-tabs a {
    display: grid;
    gap: 3px;
    justify-items: center;
    border-radius: 6px;
    color: #9da39f;
    padding: 6px 4px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
  }

  .mobile-admin-tabs a.is-active {
    background: rgba(111, 139, 122, 0.22);
    color: white;
  }
}

@media (max-width: 640px) {
  body[data-active-view="public"] {
    background: #fbfaf7;
  }

  body.has-open-sheet {
    overflow: hidden;
  }

  body[data-active-view="public"] .workspace-bar {
    display: none;
  }

  .workspace-bar {
    gap: 10px;
    padding: 12px;
  }

  .brand-mark small {
    display: none;
  }

  .desktop-mode-toggle {
    display: inline-flex;
  }

  body[data-active-view="public"]:not(.is-desktop-preview) .workspace-desktop-toggle {
    display: none;
  }

  .view-switcher {
    width: 100%;
  }

  .view-switcher button {
    flex: 1;
    min-width: 0;
  }

  .public-view {
    width: 100%;
    padding: 20px 20px 94px;
  }

  .public-nav {
    min-height: 36px;
    margin-bottom: 50px;
  }

  .public-logo {
    font-size: 22px;
    font-weight: 750;
  }

  .public-nav nav {
    display: none;
  }

  .icon-actions {
    gap: 18px;
  }

  .icon-actions button,
  .icon-actions a {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }

  .icon-actions .ph {
    width: 31px;
    height: 31px;
    font-size: 31px;
  }

  .portfolio-intro {
    margin: 0 0 28px;
  }

  .portfolio-intro h1 {
    font-size: 36px;
    letter-spacing: 0;
    font-weight: 800;
  }

  .portfolio-intro p {
    color: #8b8984;
    font-size: 17px;
    font-weight: 450;
  }

  .portfolio-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 0;
  }

  .filter-panel {
    order: 1;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }

  .filter-panel .panel-heading,
  .filter-group h3,
  .section-title-row,
  .selected-panel {
    display: none;
  }

  .filter-group {
    margin: 0;
  }

  .filter-group + .filter-group {
    margin-top: 10px;
  }

  .filter-group[data-filter-group="mood"] [data-filter="all"] {
    display: none;
  }

  .filter-options {
    flex-wrap: wrap;
    gap: 10px 8px;
    overflow: visible;
    padding: 0;
  }

  .filter-options button {
    flex: 0 0 auto;
    min-height: 44px;
    border-color: #dedbd4;
    border-radius: 6px;
    background: #fffdfa;
    color: #3e3e3a;
    padding: 9px 12px;
    box-shadow: 0 1px 0 rgba(17, 19, 21, 0.03);
    font-size: 14px;
    font-weight: 650;
  }

  .filter-options button.is-active {
    border-color: var(--sage);
    background: var(--sage);
    color: white;
  }

  .portfolio-main {
    order: 2;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .masonry-grid {
    width: 100%;
    column-gap: 10px;
  }

  .style-card {
    margin-bottom: 10px;
    border: 0;
    border-radius: 6px;
  }

  .style-card img,
  .style-card.tall img,
  .style-card.short img {
    height: auto;
  }

  .style-card.is-selected {
    outline: 0;
  }

  .style-card:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 2px;
  }

  .style-overlay {
    display: flex;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .style-overlay span {
    min-height: 28px;
    border: 0;
    border-radius: 4px;
    background: rgba(45, 48, 45, 0.74);
    color: white;
    padding: 4px 7px;
    font-size: 13px;
  }

  .style-overlay-icon {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: white;
  }

  .style-overlay-icon .ph {
    width: 21px;
    height: 21px;
    font-size: 21px;
  }

  .public-info-grid {
    margin-top: 14px;
  }

  .daily-panel .panel-title,
  .monthly-cost-panel .panel-title,
  .profit-panel .panel-title,
  #reservations .panel-title,
  #customers .panel-title,
  #inventory .panel-title,
  #admin-portfolio .panel-title,
  #messages .panel-title,
  #content-studio .panel-title,
  #admin-prices .panel-title,
  .close-actions {
    align-items: flex-start;
  }

  .daily-panel .panel-title,
  .monthly-cost-panel .panel-title,
  .profit-panel .panel-title,
  #reservations .panel-title,
  #customers .panel-title,
  #inventory .panel-title,
  #admin-portfolio .panel-title,
  #messages .panel-title,
  #content-studio .panel-title,
  #admin-prices .panel-title {
    flex-direction: column;
  }

  #reservations .panel-title > div:first-child,
  #customers .panel-title > div:first-child,
  #inventory .panel-title > div:first-child,
  #admin-portfolio .panel-title > div:first-child,
  #messages .panel-title > div:first-child,
  #content-studio .panel-title > div:first-child,
  #admin-prices .panel-title > div:first-child {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  #reservations .panel-title h2,
  #customers .panel-title h2,
  #inventory .panel-title h2,
  #admin-portfolio .panel-title h2,
  #messages .panel-title h2,
  #content-studio .panel-title h2,
  #admin-prices .panel-title h2 {
    white-space: nowrap;
    text-align: left;
  }

  .close-actions {
    width: 100%;
    justify-content: flex-start;
  }

  #reservations .close-actions,
  #inventory .close-actions,
  #admin-portfolio .close-actions,
  #messages .close-actions,
  #content-studio .close-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #reservations .close-actions .save-status,
  #reservations .close-actions .small-action,
  #inventory .close-actions .save-status,
  #inventory .close-actions .small-action,
  #admin-portfolio .close-actions .save-status,
  #admin-portfolio .close-actions .small-action,
  #messages .close-actions .save-status,
  #messages .close-actions .small-action,
  #content-studio .close-actions .save-status,
  #content-studio .close-actions .small-action {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
  }

  .public-mobile-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid #e4e1db;
    background: rgba(255, 255, 252, 0.96);
    padding: 11px 12px calc(11px + env(safe-area-inset-bottom));
    backdrop-filter: blur(16px);
  }

  .public-mobile-tabs a,
  .public-mobile-tabs button {
    display: grid;
    gap: 5px;
    justify-items: center;
    border: 0;
    background: transparent;
    color: #222321;
    text-decoration: none;
    font-size: 13px;
    font-weight: 550;
    padding: 0;
  }

  .public-mobile-tabs a.is-active {
    color: var(--sage-dark);
  }

  .public-mobile-tabs .ph {
    width: 27px;
    height: 27px;
    font-size: 27px;
  }

  .style-detail-sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    pointer-events: none;
    visibility: hidden;
  }

  .style-detail-sheet.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  .style-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 19, 21, 0);
    transition: background 180ms ease;
  }

  .style-detail-sheet.is-open .style-detail-backdrop {
    background: rgba(17, 19, 21, 0.48);
  }

  .style-detail-card {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-height: min(86vh, 720px);
    overflow: auto;
    border: 1px solid #e2ded6;
    border-radius: 8px;
    background: #fffdfa;
    box-shadow: 0 24px 70px rgba(17, 19, 21, 0.26);
    transform: translateY(calc(100% + 18px));
    transition: transform 210ms ease;
  }

  .style-detail-sheet.is-open .style-detail-card {
    transform: translateY(0);
  }

  .style-detail-card > img {
    width: 100%;
    max-height: 48vh;
    object-fit: contain;
    background: #eeeae3;
  }

  .style-detail-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: #20211f;
  }

  .style-detail-content {
    padding: 18px;
  }

  .style-detail-content h2 {
    margin: 6px 0 8px;
    font-size: 25px;
    line-height: 1.18;
  }

  .style-detail-content p:not(.eyebrow) {
    margin: 0;
    color: #76736d;
    font-size: 15px;
    line-height: 1.58;
  }

  .style-detail-reserve {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    border: 1px solid var(--sage-dark);
    border-radius: 8px;
    background: var(--sage);
    color: white;
    text-decoration: none;
    font-weight: 750;
  }

  body.is-desktop-preview {
    min-width: 1280px;
    overflow-x: auto;
  }

  body.is-desktop-preview[data-active-view="public"] .workspace-bar {
    display: flex;
  }

  body.is-desktop-preview .workspace-bar {
    position: sticky;
    flex-wrap: nowrap;
    gap: 18px;
    padding: 14px clamp(16px, 3vw, 32px);
  }

  body.is-desktop-preview .brand-mark {
    min-width: 210px;
  }

  body.is-desktop-preview .brand-mark small {
    display: block;
  }

  body.is-desktop-preview .workspace-desktop-toggle {
    display: inline-flex;
  }

  body.is-desktop-preview .view-switcher {
    width: auto;
  }

  body.is-desktop-preview .view-switcher button {
    flex: initial;
  }

  body.is-desktop-preview .public-view {
    width: min(1420px, calc(100% - 32px));
    padding: 22px 0 72px;
  }

  body.is-desktop-preview .public-nav {
    min-height: 62px;
    margin-bottom: 0;
  }

  body.is-desktop-preview .public-logo {
    font-size: 22px;
    font-weight: 900;
  }

  body.is-desktop-preview .public-nav nav {
    display: flex;
  }

  body.is-desktop-preview .icon-actions {
    gap: 8px;
  }

  body.is-desktop-preview .icon-actions button,
  body.is-desktop-preview .icon-actions a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-2);
    padding: 0;
  }

  body.is-desktop-preview .icon-actions .ph {
    width: 18px;
    height: 18px;
    font-size: 18px;
  }

  body.is-desktop-preview .portfolio-intro {
    margin: 40px 0 26px;
  }

  body.is-desktop-preview .portfolio-intro h1 {
    font-size: clamp(38px, 4.2vw, 56px);
    font-weight: 800;
  }

  body.is-desktop-preview .portfolio-intro p {
    color: var(--muted);
    font-size: 18px;
    font-weight: 400;
  }

  body.is-desktop-preview .portfolio-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 310px;
    gap: 18px;
    align-items: start;
    margin-top: 28px;
  }

  body.is-desktop-preview .filter-panel,
  body.is-desktop-preview .selected-panel {
    position: sticky;
    top: 86px;
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-2);
    padding: 18px;
  }

  body.is-desktop-preview .filter-panel .panel-heading,
  body.is-desktop-preview .filter-group h3,
  body.is-desktop-preview .section-title-row {
    display: block;
  }

  body.is-desktop-preview .filter-group h3 {
    display: flex;
  }

  body.is-desktop-preview .filter-group {
    margin-top: 20px;
  }

  body.is-desktop-preview .filter-group[data-filter-group="mood"] [data-filter="all"] {
    display: inline-flex;
  }

  body.is-desktop-preview .filter-options {
    gap: 8px;
  }

  body.is-desktop-preview .filter-options button {
    min-height: 34px;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 800;
  }

  body.is-desktop-preview .portfolio-main {
    order: initial;
  }

  body.is-desktop-preview .masonry-grid {
    column-count: 3;
    column-gap: 12px;
  }

  body.is-desktop-preview .style-card {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  body.is-desktop-preview .style-overlay {
    display: none;
  }

  body.is-desktop-preview .public-info-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 28px;
  }

  body.is-desktop-preview .public-mobile-tabs,
  body.is-desktop-preview .mobile-admin-tabs,
  body.is-desktop-preview .public-desktop-toggle {
    display: none;
  }

  body.is-desktop-preview .admin-view.is-active {
    display: grid;
    min-width: 1280px;
    grid-template-columns: 220px minmax(0, 1fr);
  }

  body.is-desktop-preview .admin-sidebar {
    position: sticky;
    top: 66px;
    display: block;
    height: calc(100vh - 66px);
  }

  body.is-desktop-preview .admin-main {
    width: min(1180px, calc(100% - 36px));
    padding-bottom: 80px;
  }

  .kpi-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .kpi-grid article {
    flex: 0 0 210px;
  }

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

  .profit-metric-grid article {
    min-height: 104px;
    padding: 12px;
  }

  .profit-metric-grid strong {
    font-size: 22px;
  }

  .profit-bar-row {
    grid-template-columns: 64px minmax(0, 1fr) 76px;
    gap: 8px;
  }

  .profit-bar-row > span,
  .profit-bar-row > strong {
    font-size: 12px;
  }

  .table-row {
    grid-template-columns: 92px minmax(82px, 1fr);
    min-height: 42px;
  }

  .monthly-cost-table .table-row {
    grid-template-columns: 112px minmax(82px, 1fr);
  }

  .table-head {
    min-height: 34px;
  }

  .table-row input:last-child,
  .table-head span:last-child {
    display: none;
  }

  .table-row span,
  .table-row input {
    padding: 8px 9px;
  }

  .table-row .table-note-hint {
    display: none;
  }

  .inventory-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .reservation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .inventory-summary div {
    min-height: 66px;
    padding: 9px;
  }

  .reservation-summary div {
    min-height: 66px;
    padding: 9px;
  }

  .inventory-summary strong {
    font-size: 19px;
  }

  .reservation-summary strong {
    font-size: 19px;
  }

  .reservation-date-filter {
    min-width: 100%;
  }

  .customer-card-summary {
    grid-template-columns: minmax(0, 1fr) 30px;
  }

  .customer-card-summary span,
  .customer-card-summary small {
    grid-column: 1 / -1;
  }

  .customer-card-summary i {
    grid-column: 2;
    grid-row: 1;
  }

  .reservation-card {
    gap: 10px;
    padding: 10px;
  }

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

  .reservation-field-customer,
  .reservation-field-phone,
  .reservation-field-service {
    grid-column: 1 / -1;
  }

  .reservation-card-actions {
    justify-content: stretch;
  }

  .reservation-call,
  .reservation-remove {
    flex: 1;
  }

  .inventory-edit-table {
    gap: 8px;
    overflow: visible;
    border: 0;
  }

  .price-edit-table {
    gap: 8px;
    overflow: visible;
    border: 0;
  }

  .inventory-edit-head {
    display: none;
  }

  .price-edit-head {
    display: none;
  }

  .inventory-edit-body {
    gap: 8px;
  }

  .price-edit-body {
    gap: 8px;
  }

  .inventory-edit-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
  }

  .price-edit-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
  }

  .inventory-field,
  .inventory-link-cell,
  .inventory-status-cell,
  .price-field,
  .price-visible-cell {
    border-right: 0;
  }

  .inventory-field-name,
  .inventory-field-memo,
  .inventory-link-cell,
  .inventory-status-cell,
  .price-field-name,
  .price-field-note {
    grid-column: 1 / -1;
  }

  .inventory-field,
  .price-field {
    display: grid;
    gap: 5px;
  }

  .inventory-field span,
  .price-field span {
    display: block;
    color: #9da39f;
    font-size: 11px;
    font-weight: 900;
  }

  .inventory-field input,
  .price-field input {
    min-height: 40px;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    padding: 8px;
  }

  .inventory-status-cell {
    padding: 0;
  }

  .price-visible-cell {
    justify-content: flex-start;
    min-height: 40px;
  }

  .price-visible-cell span {
    display: inline;
    color: #9da39f;
    font-size: 12px;
    font-weight: 900;
  }

  .inventory-remove {
    width: 42px;
    height: 40px;
    justify-self: end;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
  }

  .inventory-link-cell {
    grid-column: 1 / -1;
    padding: 0;
  }

  .inventory-link-anchor,
  .inventory-link-add {
    height: 40px;
  }

  .price-remove {
    width: 42px;
    height: 40px;
    justify-self: end;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
  }

  .portfolio-edit-row {
    grid-template-columns: 54px minmax(0, 1fr) 54px 40px;
    gap: 6px;
    padding: 10px;
  }

  .portfolio-preview {
    min-height: 54px;
  }

  .portfolio-preview img {
    min-height: 54px;
  }

  .portfolio-row-summary {
    min-height: 54px;
    gap: 6px;
    padding: 8px;
  }

  .portfolio-summary-action {
    display: none;
  }

  .portfolio-field-grid {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .portfolio-choice-group label {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }

  .portfolio-visible-cell {
    flex-direction: row;
    justify-content: center;
    min-height: 54px;
    padding: 6px;
  }

  .portfolio-visible-cell span {
    display: none;
  }

  .portfolio-remove {
    width: 40px;
    min-height: 54px;
    justify-self: end;
  }

  .portfolio-edit-row.is-expanded .portfolio-preview,
  .portfolio-edit-row.is-expanded .portfolio-preview img {
    min-height: 96px;
  }

  .other-expense-detail textarea {
    height: 52px;
    min-height: 52px;
  }

  .mini-photo-grid {
    grid-template-columns: 1fr;
  }

  .message-template-row {
    grid-template-columns: 1fr 44px 44px;
  }

  .message-template-field-title,
  .message-template-field-body {
    grid-column: 1 / -1;
  }

  .message-template-copy,
  .message-template-remove {
    width: 44px;
    min-height: 40px;
  }

  .message-template-copy {
    grid-column: 2;
  }

  .message-template-remove {
    grid-column: 3;
  }

  .close-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .close-summary div {
    padding: 10px;
  }

  .close-summary strong {
    font-size: 20px;
  }

  .draft-card {
    grid-template-columns: 1fr;
  }

  .content-image-preview,
  .content-image-preview img,
  .content-image-empty {
    height: 170px;
    min-height: 170px;
  }

  .content-field-grid {
    grid-template-columns: 1fr;
  }

  body.is-desktop-preview .filter-panel,
  body.is-desktop-preview .portfolio-main,
  body.is-desktop-preview .selected-panel {
    order: initial;
  }

  body.is-desktop-preview .selected-panel {
    grid-column: auto;
  }

  body.is-desktop-preview .admin-view.is-active {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  body.is-desktop-preview .admin-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  }

  body.is-desktop-preview .lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-desktop-preview .price-admin-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  body.is-desktop-preview .daily-panel .panel-title,
  body.is-desktop-preview .monthly-cost-panel .panel-title,
  body.is-desktop-preview .profit-panel .panel-title {
    flex-direction: row;
  }

  body.is-desktop-preview .close-actions {
    width: auto;
    justify-content: flex-end;
  }

  body.is-desktop-preview .kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
  }

  body.is-desktop-preview .kpi-grid article {
    flex: initial;
  }

  body.is-desktop-preview .profit-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.is-desktop-preview .profit-metric-grid article {
    min-height: 116px;
    padding: 14px;
  }

  body.is-desktop-preview .profit-metric-grid strong {
    font-size: clamp(24px, 2.4vw, 32px);
  }

  body.is-desktop-preview .profit-bar-row {
    grid-template-columns: 82px minmax(0, 1fr) 96px;
    gap: 10px;
  }

  body.is-desktop-preview .profit-bar-row > span,
  body.is-desktop-preview .profit-bar-row > strong {
    font-size: 13px;
  }

  body.is-desktop-preview .table-row {
    grid-template-columns: 120px minmax(100px, 140px) minmax(0, 1fr);
    min-height: 48px;
  }

  body.is-desktop-preview .monthly-cost-table .table-row {
    grid-template-columns: 150px minmax(100px, 140px) minmax(0, 1fr);
  }

  body.is-desktop-preview .table-row input:last-child,
  body.is-desktop-preview .table-head span:last-child {
    display: flex;
  }

  body.is-desktop-preview .table-row .table-note-hint {
    display: flex;
  }

  body.is-desktop-preview .inventory-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body.is-desktop-preview .reservation-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  body.is-desktop-preview .inventory-summary div {
    min-height: 74px;
    padding: 10px;
  }

  body.is-desktop-preview .inventory-summary strong {
    font-size: 22px;
  }

  body.is-desktop-preview .reservation-date-filter {
    min-width: min(100%, 240px);
  }

  body.is-desktop-preview .reservation-field-grid {
    grid-template-columns: minmax(132px, 0.72fr) minmax(108px, 0.52fr) minmax(132px, 0.64fr) minmax(116px, 0.58fr);
  }

  body.is-desktop-preview .reservation-field-customer,
  body.is-desktop-preview .reservation-field-phone {
    grid-column: auto;
  }

  body.is-desktop-preview .reservation-field-service {
    grid-column: span 2;
  }

  body.is-desktop-preview .reservation-card-actions {
    justify-content: flex-end;
  }

  body.is-desktop-preview .reservation-call,
  body.is-desktop-preview .reservation-remove {
    flex: 0 0 auto;
  }

  body.is-desktop-preview .inventory-edit-table {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--dark-line);
  }

  body.is-desktop-preview .price-edit-table {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--dark-line);
  }

  body.is-desktop-preview .inventory-edit-head {
    display: grid;
  }

  body.is-desktop-preview .price-edit-head {
    display: grid;
  }

  body.is-desktop-preview .inventory-edit-body {
    gap: 0;
  }

  body.is-desktop-preview .price-edit-body {
    gap: 0;
  }

  body.is-desktop-preview .inventory-edit-row {
    grid-template-columns:
      minmax(150px, 1fr)
      minmax(70px, 82px)
      minmax(70px, 82px)
      minmax(54px, 64px)
      minmax(120px, 0.7fr)
      minmax(124px, 0.7fr)
      minmax(74px, 82px)
      42px;
    min-height: 48px;
    gap: 0;
    border: 0;
    border-bottom: 1px solid var(--dark-line);
    border-radius: 0;
    background: transparent;
    padding: 0;
  }

  body.is-desktop-preview .price-edit-row {
    grid-template-columns: minmax(120px, 0.85fr) minmax(104px, 0.64fr) minmax(160px, 1fr) 68px 42px;
    min-height: 48px;
    gap: 0;
    border: 0;
    border-bottom: 1px solid var(--dark-line);
    border-radius: 0;
    background: transparent;
    padding: 0;
  }

  body.is-desktop-preview .inventory-edit-body .inventory-edit-row:last-child {
    border-bottom: 0;
  }

  body.is-desktop-preview .price-edit-body .price-edit-row:last-child {
    border-bottom: 0;
  }

  body.is-desktop-preview .inventory-field,
  body.is-desktop-preview .inventory-link-cell,
  body.is-desktop-preview .inventory-status-cell,
  body.is-desktop-preview .price-field,
  body.is-desktop-preview .price-visible-cell {
    border-right: 1px solid var(--dark-line);
  }

  body.is-desktop-preview .inventory-field-name,
  body.is-desktop-preview .inventory-field-memo,
  body.is-desktop-preview .inventory-link-cell,
  body.is-desktop-preview .inventory-status-cell {
    grid-column: auto;
  }

  body.is-desktop-preview .price-field-name,
  body.is-desktop-preview .price-field-note {
    grid-column: auto;
  }

  body.is-desktop-preview .inventory-field span,
  body.is-desktop-preview .price-field span {
    display: none;
  }

  body.is-desktop-preview .inventory-field input,
  body.is-desktop-preview .price-field input {
    min-height: 48px;
    border: 0;
    border-radius: 0;
    padding: 9px 10px;
  }

  body.is-desktop-preview .inventory-status-cell {
    padding: 8px 10px;
  }

  body.is-desktop-preview .price-visible-cell {
    justify-content: center;
    min-height: auto;
  }

  body.is-desktop-preview .price-visible-cell span {
    display: none;
  }

  body.is-desktop-preview .inventory-remove {
    width: auto;
    height: auto;
    justify-self: stretch;
    border: 0;
    border-radius: 0;
  }

  body.is-desktop-preview .inventory-link-cell {
    padding: 7px 8px;
  }

  body.is-desktop-preview .price-remove {
    width: auto;
    height: auto;
    justify-self: stretch;
    border: 0;
    border-radius: 0;
  }

  body.is-desktop-preview .table-row span,
  body.is-desktop-preview .table-row input {
    padding: 10px 12px;
  }

  body.is-desktop-preview .close-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body.is-desktop-preview .close-summary div {
    padding: 12px;
  }

  body.is-desktop-preview .close-summary strong {
    font-size: 24px;
  }

  body.is-desktop-preview .portfolio-edit-row {
    grid-template-columns: 72px minmax(0, 1fr) 72px 42px;
    gap: 10px;
  }

  body.is-desktop-preview .portfolio-preview {
    min-height: 72px;
  }

  body.is-desktop-preview .portfolio-preview img {
    min-height: 72px;
  }

  body.is-desktop-preview .portfolio-field-grid {
    grid-column: 2 / -1;
    grid-template-columns: minmax(140px, 1fr) minmax(90px, 0.44fr) minmax(120px, 0.7fr) minmax(96px, 0.45fr);
  }

  body.is-desktop-preview .portfolio-visible-cell {
    flex-direction: column;
    justify-content: center;
  }

  body.is-desktop-preview .portfolio-visible-cell span {
    display: inline;
  }

  body.is-desktop-preview .portfolio-remove {
    width: auto;
    height: auto;
    justify-self: stretch;
  }

  body.is-desktop-preview .portfolio-edit-row.is-expanded .portfolio-preview,
  body.is-desktop-preview .portfolio-edit-row.is-expanded .portfolio-preview img {
    min-height: 116px;
  }

  body.is-desktop-preview .mini-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.is-desktop-preview .message-template-row {
    grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1.45fr) 44px 44px;
  }

  body.is-desktop-preview .message-template-field-title,
  body.is-desktop-preview .message-template-field-body {
    grid-column: auto;
  }

  body.is-desktop-preview .message-template-copy,
  body.is-desktop-preview .message-template-remove {
    grid-column: auto;
    width: 100%;
    min-height: 100%;
  }

  body.is-desktop-preview .draft-card {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  body.is-desktop-preview .content-image-preview,
  body.is-desktop-preview .content-image-preview img,
  body.is-desktop-preview .content-image-empty {
    height: 180px;
    min-height: 180px;
  }

  body.is-desktop-preview .content-field-grid {
    grid-template-columns: minmax(130px, 0.68fr) minmax(0, 1fr);
  }
}
