/* =====================================================================
   COSMUSE v1.5.0 — "Petal" theme (pink · white, bold & clean)
   Loaded after styles.css + atelier.css, before mobile.css.
   The shop's accent colour from "ปรับแต่งหน้าร้าน" overrides --brand at runtime.
   ===================================================================== */
:root {
  --brand: #e8457c;
  --brand-dark: #c2335f;
  --brand-soft: #fde8ef;
  --brand-tint: #fff4f7;
  --ink: #1f1a1d;
  --muted: #7a6f74;
  --line: #f0e1e6;
  --paper: #ffffff;
  --cream: #fff7f9;
  --pink: var(--brand);
  --pink-dark: var(--brand-dark);
  --pink-light: var(--brand-soft);
  --green: #3f8f6b;
  --radius: 22px;
  --shadow: 0 16px 48px #e8457c14;
  --rose-shadow: 0 14px 40px #e8457c14;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans Thai", "DM Sans", sans-serif;
  font-size: 14.5px;
}
::selection {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
h1,
h2,
h3,
.brand,
.page-title,
.detail-heading,
.studio-heading h1,
.section-heading h2,
.hero h1,
.auth-card h1,
.auth-decoration strong,
.muse-invitation h2,
.summary-product h3,
.order-product h3 {
  font-family: "Noto Sans Thai", "DM Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.3px;
  font-style: normal;
}
.serif,
.hero-prelude,
.hero-script,
.footer-signature,
.hero-bottom,
.hero-caption {
  font-family: "DM Sans", "Noto Sans Thai", sans-serif;
  font-style: normal;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
input,
select,
textarea {
  border: 1.5px solid #ecdde3;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  outline: none;
}
label {
  color: #5a4f54;
  font-weight: 500;
}
.form-note,
.muted,
.small.muted {
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 14px;
  background: var(--ink);
  border: 1.5px solid transparent;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none;
  gap: 8px;
}
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -8px var(--brand);
}
.btn.primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}
.btn.light,
.btn.soft {
  background: #fff;
  color: var(--ink);
  border-color: #ecdde3;
  box-shadow: 0 2px 0 #f3e5ea;
}
.btn.light:hover,
.btn.soft:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-tint);
}
.btn.soft {
  background: var(--brand-soft);
  border-color: var(--brand-soft);
  color: var(--brand-dark);
}
.btn.small {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12.5px;
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.btn:hover {
  transform: translateY(-1px);
}
.text-btn {
  color: var(--brand-dark);
  border-bottom-color: transparent;
  text-decoration: underline;
  text-decoration-color: #f1bfd0;
  text-underline-offset: 4px;
  font-weight: 500;
}
.text-btn:hover {
  text-decoration-color: var(--brand);
}
.icon-btn {
  border: 1.5px solid #ecdde3;
  border-radius: 12px;
  background: #fff;
  color: #5a4f54;
}
.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-tint);
}
.icon-btn.danger:hover {
  background: #fff0f0;
  border-color: #e35d5d;
  color: #c43c3c;
}

/* ---------- Header ---------- */
.announcement {
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.4px;
  padding: 8px 16px;
  font-weight: 500;
}
.announcement span {
  color: #ffb3cb;
}
.announcement.custom {
  background: var(--brand);
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  letter-spacing: 0;
  font-size: 12.5px;
}
.announcement.custom .icon {
  width: 15px;
  height: 15px;
  color: #ffe1ea;
}
.site-header {
  height: 84px;
  background: #ffffffee;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px #e8457c10;
}
.brand {
  font-size: 24px;
  letter-spacing: -0.6px;
  color: var(--ink);
}
.brand > span {
  color: var(--brand);
}
.brand-sub {
  display: none;
}
.main-nav > a {
  color: #5a4f54;
  font-size: 14px;
  font-weight: 500;
}
.main-nav > a.active {
  color: var(--brand-dark);
  font-weight: 700;
}
.main-nav > a:before {
  display: none;
}
.nav-indicator {
  background: var(--brand);
  height: 3px;
  border-radius: 3px;
}
.nav-tools .btn {
  min-height: 42px;
  border-radius: 999px;
  padding: 9px 18px;
}
.nav-tools .icon-btn {
  border-radius: 999px;
}
.mode-bar {
  background: #fff8e6;
  color: #7a5a1c;
  border-bottom: 1px solid #f3e4bd;
  font-size: 11px;
}
.mobile-menu {
  background: #fff;
  border-color: var(--line);
}
.mobile-menu a:hover {
  background: var(--brand-tint);
}

/* ---------- Hero (storefront home) ---------- */
.hero {
  padding: 64px 0 28px;
  background: linear-gradient(180deg, var(--brand-tint), #fff 85%);
}
.hero-atmosphere,
.orbit,
.spark,
.atelier-seal,
.image-orbit,
.hero-star,
.hero-caption,
.hero-bottom,
.image-index,
.hero-note,
.hero-proof,
.hero-prelude,
.hero-script,
.atelier-ribbon,
.muse-underline:after,
.invitation-art,
.footer-signature {
  display: none !important;
}
.hero-grid {
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero .eyebrow {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 1.2px;
  font-weight: 700;
}
.atelier-dot {
  background: var(--brand);
  transform: none;
  border-radius: 50%;
  box-shadow: none;
  width: 8px;
  height: 8px;
}
.hero h1 {
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.22;
  letter-spacing: -1.4px;
  margin: 18px 0 16px;
  color: var(--ink);
}
.hero h1 .pink-text {
  color: var(--brand);
}
.hero-description {
  font-size: 16px;
  line-height: 1.8;
  color: #5a4f54;
  margin-bottom: 26px;
  max-width: 520px;
}
.hero-buttons {
  gap: 16px;
}
.hero-buttons > .btn {
  min-height: 54px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
}
.hero-buttons > .text-btn {
  font-size: 14px;
}
.hero-image-wrap {
  max-width: 600px;
  width: 100%;
  margin: 0;
}
.hero-image {
  aspect-ratio: 4 / 3.3;
  border-radius: 32px;
  border: 0;
  box-shadow: 0 30px 70px -20px #e8457c55;
}
.hero-image:after {
  background: linear-gradient(0deg, #1f1a1d1f, transparent 50%);
}
.search-strip {
  margin-top: 34px;
  border-radius: 24px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 20px 50px -24px #e8457c66;
}
.search-field {
  padding: 8px 18px;
}
.search-field > .icon {
  color: var(--brand);
}
.search-field label {
  color: var(--muted);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  white-space: normal;
  width: 100%;
  min-width: 0;
}
.search-field input,
.search-field select {
  font-size: 14px;
}
.search-strip > .btn {
  background: var(--brand);
  border-color: var(--brand);
  border-radius: 16px;
  min-height: 54px;
  padding: 0 26px;
}
.trust-row {
  color: #5a4f54;
  font-size: 12.5px;
  padding: 22px 0 10px;
  gap: 28px;
}
.trust-row .icon {
  color: var(--brand);
}

/* ---------- Catalog ---------- */
.catalog-section {
  padding: 54px 0 48px;
}
.section-heading .serif {
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}
.section-heading h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  margin-top: 8px;
}
.section-heading p {
  color: var(--muted);
  font-size: 14px;
}
.count-label {
  color: var(--brand-dark);
  font-weight: 600;
}
.catalog-toolbar {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.category {
  background: #fff;
  border: 1.5px solid #ecdde3;
  border-radius: 999px;
  color: #5a4f54;
  font-weight: 500;
}
.category.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -8px var(--brand);
}
.sort {
  border: 1.5px solid #ecdde3;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  width: 200px;
  background: #fff;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: -6px 0 18px;
}
.filter-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #ecdde3;
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  background: #fff;
  font-size: 12.5px;
  color: var(--muted);
}
.filter-select select {
  border: 0;
  padding: 6px 8px;
  min-height: 34px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}
.filter-select select:focus {
  box-shadow: none;
}
.filter-date {
  background: var(--brand-tint);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.filter-date label {
  color: #5a4f54;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 2px 0 #fbeef3;
}
.product-card:hover {
  box-shadow: 0 24px 50px -24px #e8457c55;
  border-color: #f6c9d8;
}
.product-media {
  border-radius: 18px;
}
.product-top .badge {
  border-radius: 999px;
  background: #ffffffee;
  color: var(--ink);
  border: 0;
  font-weight: 600;
}
.favorite.active {
  background: var(--brand);
}
.product-character {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 1px;
}
.product-title {
  font-size: 17px;
  font-weight: 700;
}
.product-subtitle {
  color: var(--muted);
}
.price-line {
  border-top: 1px solid var(--line);
}
.price-line strong {
  color: var(--ink);
  font-size: 20px;
}
.sizes {
  background: var(--brand-tint);
  color: #5a4f54;
  border-radius: 999px;
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #00000018;
  vertical-align: -1px;
}
.product-action {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
}
.muse-invitation {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 28px;
  padding: 34px 40px;
}
.muse-invitation .eyebrow {
  color: #ffd3e0;
}
.muse-invitation h2 {
  color: #fff;
  font-size: 28px;
}
.muse-invitation p {
  color: #ffe3ec;
  font-size: 14px;
}
.muse-invitation .btn.light {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
  border-radius: 999px;
}
.guide-band {
  background: var(--brand-tint);
  border-block: 1px solid var(--line);
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.step-icon {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 0;
  border-radius: 16px;
}
.step .num {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.step h3 {
  font-size: 15px;
}
.step p {
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  background: #2a1f25;
  color: #e8dde2;
  padding: 44px 0 26px;
}
.footer .brand,
.footer p,
.footer-links,
.footer-bottom {
  color: #e8dde2;
}
.footer .brand {
  color: #fff;
}
.footer .brand > span {
  color: #ff8fb4;
}
.footer-links a {
  color: #d9c9d1;
}
.footer-links a:hover {
  color: #ff8fb4;
}
.footer-bottom {
  border-top: 1px solid #ffffff14;
  color: #a9979f;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 6px;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff14;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.social .icon {
  width: 18px;
  height: 18px;
}
.social.line {
  background: #06c755;
}
.social.instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b 60%, #8134af);
}
.social.facebook {
  background: #1877f2;
}
.social:hover {
  transform: translateY(-1px);
}

/* ---------- Generic surfaces ---------- */
.page-title {
  color: var(--ink);
  font-size: 34px;
}
.eyebrow {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 1.2px;
  font-size: 11px;
}
.panel,
.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 2px 0 #fbeef3;
}
.panel.soft {
  background: var(--brand-tint);
  border-color: #fbd9e4;
}
.panel h2,
.panel h3,
.table-title h2 {
  color: var(--ink);
}
.callout {
  border-radius: 16px;
  background: var(--brand-tint);
  border: 1px solid #fbd9e4;
  color: #5a4f54;
}
.callout.warning {
  background: #fff8e6;
  border-color: #f3e4bd;
  color: #7a5a1c;
}
.callout.error {
  background: #fff0f0;
  border-color: #f6c8c8;
  color: #a33a3a;
}
.callout.success {
  background: #eefaf3;
  border-color: #cdeedb;
  color: #2d6f4f;
}
.badge {
  border-radius: 999px;
  padding: 5px 11px;
  font-weight: 600;
  font-size: 11.5px;
  gap: 6px;
}
.badge .dot {
  width: 7px;
  height: 7px;
}
.badge.green {
  background: #e4f6ec;
  color: #2d6f4f;
}
.badge.amber {
  background: #fff3d6;
  color: #8a5a06;
}
.badge.blue {
  background: #e4eefb;
  color: #2b5aa5;
}
.badge.purple {
  background: #efe6fb;
  color: #5e3ca3;
}
.badge.pink {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.badge.red {
  background: #ffe4e4;
  color: #b43232;
}
.badge.gray {
  background: #eeeaec;
  color: #6b6168;
}
.pill {
  background: var(--brand-tint);
  color: #5a4f54;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tabs {
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.tab {
  border-radius: 999px;
  border: 1.5px solid #ecdde3;
  background: #fff;
  color: #5a4f54;
  font-weight: 500;
  font-size: 12.5px;
  padding: 8px 15px;
}
.tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.tab.tab-alert:not(.active) {
  color: #b43232;
  border-color: #f6c8c8;
}
.breadcrumbs {
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--brand-dark);
}
.detail-main-image {
  border: 0;
  border-radius: 28px;
  box-shadow: 0 30px 60px -30px #e8457c66;
}
.detail-heading {
  font-size: 34px;
  color: var(--ink);
}
.detail-price {
  color: var(--brand);
  font-weight: 800;
  border-bottom-color: var(--line);
}
.detail-facts {
  background: var(--brand-tint);
  border: 1px solid #fbd9e4;
  border-radius: 18px;
}
.detail-facts strong {
  color: var(--ink);
}
.variant {
  border-radius: 12px;
  border: 1.5px solid #ecdde3;
  background: #fff;
  font-weight: 600;
}
.variant.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 8px 20px -10px var(--brand);
}
.availability-message {
  background: var(--brand-tint);
  border-radius: 14px;
}
.deposit-box {
  border-radius: 16px;
  background: #fff8e6;
  border: 1px solid #f3e4bd;
  color: #7a5a1c;
}
.detail-accordion details,
.faq-list details {
  border-color: var(--line);
}
summary {
  color: var(--ink);
  font-weight: 600;
}
.booking-summary {
  background: var(--brand-tint);
  border-top: 0;
  border: 1px solid #fbd9e4;
}
.summary-total strong {
  color: var(--brand);
}
.radio-card {
  border-radius: 16px;
  border: 1.5px solid #ecdde3;
}
.radio-card:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-heading .number {
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
}
.auth-wrap {
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 70px -30px #e8457c66;
  background: #fff;
}
.auth-decoration {
  background: var(--brand);
  color: #fff;
}
.auth-decoration:after {
  display: none;
}
.auth-decoration .eyebrow {
  color: #ffd3e0;
}
.auth-decoration strong {
  font-size: 38px;
  color: #fff;
  font-weight: 800;
}
.auth-decoration p {
  color: #ffe3ec;
}
.auth-star {
  color: #ffd3e0;
}
.empty {
  background: var(--brand-tint);
  border: 1px dashed #f6c9d8;
  border-radius: 24px;
}
.empty > .icon {
  color: var(--brand);
}
.order-card .order-head {
  color: var(--muted);
}
.order-price strong {
  color: var(--ink);
}
.timeline li:before {
  background: var(--brand);
  border-color: #fff;
}
.progress-step.done span {
  background: var(--green);
}
.progress-step.current span {
  background: var(--brand);
}
.progress-step.current {
  color: var(--brand-dark);
}
.modal {
  background: #fff;
  border: 0;
  border-radius: 26px;
  box-shadow: 0 40px 100px -20px #2a1f2566;
}
.modal-backdrop {
  background: #2a1f2566;
}
.modal-top {
  border-bottom-color: var(--line);
}
.toast {
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  border: 0;
}
.toast.error {
  background: #b43232;
}
.motion-toggle {
  border-color: var(--line);
  background: #ffffffee;
  color: var(--muted);
}
.motion-toggle[aria-pressed="true"] {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* ---------- Studio ---------- */
.studio-layout {
  background: #fff8fa;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
}
.shop-identity {
  border-bottom-color: var(--line);
}
.shop-logo {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 0;
  border-radius: 14px;
  font-weight: 800;
}
.sidebar-caption {
  color: var(--muted);
  letter-spacing: 1.5px;
  font-weight: 700;
}
.side-link {
  border-radius: 14px;
  color: #5a4f54;
  font-weight: 500;
  padding: 11px 13px;
}
.side-link:hover {
  background: var(--brand-tint);
}
.side-link.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 10px 22px -10px var(--brand);
}
.side-link.active .icon {
  color: #fff;
}
.menu-count {
  background: #fff;
  color: var(--brand-dark);
}
.sidebar-bottom {
  border-top-color: var(--line);
}
.sidebar-bottom strong {
  color: var(--brand-dark);
}
.studio-heading {
  border-bottom-color: var(--line);
}
.studio-heading h1 {
  color: var(--ink);
  font-size: 30px;
}
.studio-heading p {
  color: var(--muted);
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 2px 0 #fbeef3;
}
.stat:before {
  display: none;
}
.stat > span {
  color: var(--muted);
  font-weight: 600;
}
.stat > span .icon {
  color: var(--brand);
}
.stat strong {
  color: var(--ink);
  font-weight: 800;
}
.stat.good strong {
  color: #2d6f4f;
}
.stat.bad strong {
  color: #b43232;
}
.data-table th {
  background: var(--brand-tint);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.3px;
}
.data-table td {
  border-bottom-color: #f7edf1;
}
.data-table tbody tr:hover {
  background: #fff8fa;
}
.data-table .thumb {
  border-radius: 10px;
}
.calendar-day.today {
  background: var(--brand-tint);
  box-shadow: inset 0 3px var(--brand);
}
.calendar-event {
  border-left: 2px solid var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 6px;
}
.calendar-event.late {
  border-left-color: #c94f4f;
  background: #ffe4e4;
  color: #b43232;
}
.bar-group .bar {
  background: var(--brand);
  border-radius: 8px 8px 0 0;
}
.image-uploader,
.site-image {
  border-color: #f0cfdb;
  background: var(--brand-tint);
  border-radius: 18px;
}
.image-uploader:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.overdue-alert {
  background: #fff5f5;
  border-color: #f6c8c8;
}
.overdue-row {
  border-radius: 14px;
}
.issue-panel.is-late {
  border-color: #f6c8c8;
  box-shadow: 0 0 0 4px #fff0f0;
}
.incident {
  border-radius: 14px;
  background: #fff;
}
.incident.open {
  background: #fff8e6;
  border-color: #f3e4bd;
}
.sheet-link {
  border-radius: 16px;
}
.sheet-link .icon {
  color: var(--brand);
}
.sheet-link.active {
  background: var(--brand-soft);
  border-color: #f6c9d8;
}

/* ---------- v1.5 components ---------- */
/* Today board */
.today-panel {
  margin-bottom: 22px;
  background: linear-gradient(135deg, #fff, var(--brand-tint));
}
.today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.today-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px 8px;
  border-top: 4px solid var(--brand);
}
.today-group.amber {
  border-top-color: #f0b429;
}
.today-group.blue {
  border-top-color: #4f7cc5;
}
.today-group.purple {
  border-top-color: #8e63d6;
}
.today-group.red {
  border-top-color: #e04b4b;
}
.today-group.green {
  border-top-color: #3f8f6b;
}
.today-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 0 0 4px;
}
.today-group h3 .icon {
  width: 17px;
  height: 17px;
  color: var(--brand);
}
.tab-count.static {
  position: static;
  margin-left: auto;
  background: var(--ink);
  color: #fff;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  padding: 0 6px;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #f7edf1;
  color: inherit;
  text-decoration: none;
  line-height: 1.5;
  font-size: 13px;
}
.task-row > div {
  flex: 1;
  min-width: 0;
}
.task-row .thumb {
  width: 38px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--brand-tint);
  flex-shrink: 0;
}
.task-row > .icon {
  width: 14px;
  color: #c9b6bf;
  flex-shrink: 0;
}
.task-row:hover strong {
  color: var(--brand-dark);
}
/* Cost & profit */
.progress {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #f3e6eb;
  overflow: hidden;
  min-width: 90px;
  margin-bottom: 4px;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 4px;
}
.progress.green i {
  background: #3f8f6b;
}
.stat small .progress {
  display: inline-block;
  width: 70px;
  vertical-align: middle;
  margin: 0 0 0 6px;
  height: 6px;
}
.bar-chart.duo .bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 104px;
}
.bar-chart.duo .bar {
  width: 14px;
}
.bar-chart.duo .bar.spend {
  background: #e9d5dd;
}
.legend {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  vertical-align: -2px;
}
.legend.income {
  background: var(--brand);
}
.legend.spend {
  background: #e9d5dd;
}
.expense-list {
  display: grid;
  gap: 8px;
}
.expense-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  line-height: 1.5;
}
.expense-row > div {
  flex: 1;
  min-width: 0;
}
.expense-row b {
  white-space: nowrap;
}
.expense-row .icon-btn {
  width: 34px;
  height: 34px;
}
.cost-box {
  border: 1px dashed #f0cfdb;
  background: var(--brand-tint);
  border-radius: 16px;
  padding: 12px 14px;
}
.cost-box .form-grid {
  margin-top: 10px;
}
/* Renter history */
.star-pick {
  display: flex;
  gap: 4px;
  font-size: 30px;
  line-height: 1;
}
.star-pick label {
  cursor: pointer;
  color: #e6d7dd;
}
.star-pick input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.star-pick label:has(input:checked),
.star-pick label:has(~ label input:checked) {
  color: #f0b429;
}
.renter-panel .badge {
  font-size: 12px;
}
/* Public availability calendar (product page) */
.avail-cal {
  margin: 18px 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.avail-cal .table-title {
  margin-bottom: 10px;
}
.avail-cal h3 {
  font-size: 15px;
  margin: 0 6px;
}
.avail-cal .icon-btn {
  width: 34px;
  height: 34px;
}
.avail-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.avail-wd {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 4px 0;
}
.avail-day {
  height: 40px;
  min-height: 34px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  background: #e4f6ec;
  color: #2d6f4f;
  cursor: pointer;
  padding: 0;
}
.avail-day.busy {
  background: #ffe4e4;
  color: #b43232;
  cursor: not-allowed;
  text-decoration: line-through;
}
.avail-day.past,
.avail-day.unknown {
  background: #f5f1f3;
  color: #bfb3b9;
  cursor: default;
}
.avail-day.picked {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 14px -6px var(--brand);
}
.avail-day.free:hover {
  border-color: #3f8f6b;
}
.avail-cal .form-note .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  vertical-align: -1px;
  margin-right: 2px;
}
.avail-cal .dot.free {
  background: #bfe9d1;
}
.avail-cal .dot.busy {
  background: #ffc4c4;
}
.avail-cal .dot.past {
  background: #e9e2e6;
}
/* Storefront settings */
.accent-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.accent-pick input[type="color"] {
  width: 46px;
  height: 36px;
  padding: 2px;
  min-height: 0;
  border-radius: 10px;
}
.accent-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #00000022;
  cursor: pointer;
}
.accent-pick .check-label {
  margin-left: 6px;
}

/* ---------- Printable booking slip / receipt ---------- */
body.print-mode {
  background: #f3edf0;
}
body.print-mode .tab-bar,
body.print-mode .motion-toggle {
  display: none !important;
}
.print-sheet {
  max-width: 760px;
  margin: 24px auto 60px;
  background: #fff;
  border-radius: 18px;
  padding: 36px 40px;
  box-shadow: 0 20px 60px -30px #2a1f2566;
  color: #1f1a1d;
  font-size: 13.5px;
  line-height: 1.7;
}
.print-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.print-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.print-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.print-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
}
.print-brand strong {
  font-size: 20px;
}
.print-title {
  text-align: right;
}
.print-title h1 {
  font-size: 22px;
  margin: 0 0 2px;
  color: var(--brand);
}
.print-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 14px 0;
}
.print-cols h4 {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.print-cols p {
  margin: 0;
}
.print-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}
.print-table th,
.print-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eee3e8;
  text-align: left;
  vertical-align: top;
}
.print-table thead th {
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.print-table .num {
  text-align: right;
  white-space: nowrap;
}
.print-table tfoot th {
  font-size: 16px;
  border-bottom: 0;
  border-top: 2px solid #1f1a1d;
}
.print-foot {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px dashed #e4d4dc;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
@media print {
  @page {
    margin: 12mm;
  }
  body,
  body.print-mode {
    background: #fff !important;
    padding: 0 !important;
  }
  .no-print,
  #toasts,
  .motion-toggle,
  .tab-bar {
    display: none !important;
  }
  .print-sheet {
    box-shadow: none;
    margin: 0;
    padding: 0;
    max-width: none;
    border-radius: 0;
  }
}
@media (max-width: 650px) {
  .print-sheet {
    margin: 12px;
    padding: 20px 18px;
  }
  .print-head,
  .print-cols {
    grid-template-columns: 1fr;
    display: grid;
  }
  .print-title {
    text-align: left;
  }
}
/* grid children never force the page wider than the viewport */
.grid2 > *,
.grid3 > *,
.studio-main > * {
  min-width: 0;
}
.panel .btn.full {
  width: 100%;
  justify-content: center;
}
