@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #14110f;
  --muted: #70665f;
  --line: #e6ded6;
  --paper: #fbf8f4;
  --surface: #ffffff;
  --sea: #14110f;
  --rose: #9b1f35;
  --gold: #b98a45;
  --mint: #f3eee8;
  --blush: #f8ecee;
  --cream: #fffaf4;
  --midnight: #14110f;
  --cornette: #b98a45;
  --forest: #2d261f;
  --champagne: #f3e5d2;
  --platinum: #fbf8f4;
  --heading-font: Jost, Inter, Helvetica, Arial, sans-serif;
  --body-font: Jost, Inter, Helvetica, Arial, sans-serif;
  --ui-font: Jost, Inter, Helvetica, Arial, sans-serif;
  --shadow: 0 18px 48px rgba(20, 17, 15, 0.13);
  --soft-shadow: 0 10px 28px rgba(20, 17, 15, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
  overflow-x: hidden;
}

h1,
h2,
h3,
.brand strong,
.public-hero-content h1 {
  font-family: var(--heading-font);
}

button,
input,
textarea,
select {
  font-family: var(--ui-font);
}

button {
  cursor: pointer;
}

.login-screen,
.master-screen,
.manager-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(20, 17, 15, 0.96), rgba(83, 44, 36, 0.88)),
    url("data:image/svg+xml,%3Csvg width='1100' height='700' viewBox='0 0 1100 700' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1100' height='700' fill='%23c8ad8d'/%3E%3Cpath d='M0 520C190 410 335 620 530 470S830 145 1100 260v440H0z' fill='%23fff1df' opacity='.88'/%3E%3Cpath d='M750 65c92 88 106 210 14 412M875 75c78 105 74 218-18 418M1000 65c90 96 102 216 12 430' stroke='%239d413c' stroke-width='16' fill='none' opacity='.35'/%3E%3Ccircle cx='140' cy='120' r='120' fill='%23bd8f3f' opacity='.82'/%3E%3C/svg%3E") center/cover;
}

.show-login {
  overflow: hidden;
}

.show-login .login-screen {
  display: grid;
}

.show-master {
  overflow: hidden;
}

.show-master .master-screen {
  display: grid;
}

.show-manager {
  overflow: hidden;
}

.show-manager .manager-screen {
  display: grid;
}

.login-card {
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 250, 242, 0.38);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.master-card,
.manager-card {
  width: min(980px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
}

.master-profile,
.manager-profile {
  display: none;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 250, 242, 0.38);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.is-master .master-login-card {
  display: none;
}

.is-master .master-profile {
  display: grid;
}

.is-manager .manager-login-card {
  display: none;
}

.is-manager .manager-profile {
  display: grid;
}

.master-recent,
.manager-recent {
  display: grid;
  gap: 10px;
}

.manager-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

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

.manager-recent-grid h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.login-brand {
  color: var(--ink);
  border-color: rgba(189, 143, 63, 0.22);
  background: rgba(255, 255, 255, 0.62);
}

.login-brand span {
  color: var(--muted);
}

.login-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.login-card input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.login-card input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(189, 143, 63, 0.14);
}

.login-error {
  min-height: 22px;
  color: var(--rose);
  font-weight: 760;
}

.close-login {
  width: max-content;
}

.admin-shell {
  display: none;
}

.is-admin .admin-shell {
  display: grid;
}

.is-admin .public-portal {
  display: none;
}

.is-master .public-portal,
.is-master .admin-shell,
.is-manager .public-portal,
.is-manager .admin-shell {
  display: none;
}

.public-portal {
  min-height: 100vh;
}

.public-login-actions {
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  align-items: stretch;
  gap: 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0;
  background: rgba(20, 17, 15, 0.22);
  backdrop-filter: blur(10px);
}

.public-hero {
  min-height: auto;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 0 28px 22px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(16, 13, 11, 0.92) 0%, rgba(16, 13, 11, 0.62) 46%, rgba(16, 13, 11, 0.18) 100%),
    url("welcome-poster-premium.png") center 42%/cover no-repeat;
}

.public-promo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0 -28px 8px;
  padding: 8px 14px;
  color: #fffaf4;
  background: rgba(20, 17, 15, 0.96);
  font-family: var(--ui-font);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.public-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.public-brand {
  min-width: 150px;
  color: #ffffff;
  border: 0;
  background: transparent;
  padding: 0;
}

.public-brand .brand-mark {
  width: 64px;
  height: 64px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.public-brand .brand-mark img {
  padding: 0;
}

.public-brand span {
  color: rgba(255,255,255,0.78);
}

.public-login-actions .ghost-button,
.collection-link {
  width: auto;
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #ffffff;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--ui-font);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.pay-link {
  color: var(--champagne);
}

.public-login-actions > :last-child {
  border-right: 0;
}

.public-login-actions .ghost-button:hover,
.collection-link:hover {
  color: var(--ink);
  background: #ffffff;
  transform: none;
}

.quick-contact-bar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 8px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 250, 244, 0.18);
}

.quick-contact-bar a,
.quick-contact-bar a:visited {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  color: #fffaf4;
  border-right: 1px solid rgba(255, 250, 244, 0.28);
  background: transparent;
  font-family: var(--ui-font);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

.quick-contact-bar a:last-child {
  border-right: 0;
}

.quick-contact-bar a:hover {
  color: var(--champagne);
  background: transparent;
}

.quick-contact-bar svg {
  width: 13px;
  height: 13px;
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.quick-contact-bar a:first-child svg {
  fill: currentColor;
  stroke: none;
}

.hero-welcome-poster {
  display: grid;
  grid-template-columns: minmax(min(100%, 420px), 1.05fr) minmax(min(100%, 360px), 0.95fr);
  align-items: stretch;
  overflow: hidden;
  margin-top: 4px;
  border: 1px solid rgba(255, 250, 244, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.hero-welcome-poster figure {
  margin: 0;
  min-height: clamp(300px, 38vw, 520px);
  overflow: hidden;
  background: #14110f;
}

.hero-welcome-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-welcome-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(20px, 4vw, 48px);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.98), rgba(243, 229, 210, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(185, 138, 69, 0.18), transparent 34%);
}

.hero-welcome-copy .feature-link {
  margin-top: 2px;
}

.hero-store-name {
  width: min(100%, fit-content);
  display: grid;
  gap: 2px;
  padding: 0 0 0 12px;
  border: 0;
  border-left: 4px solid var(--champagne);
  background: transparent;
  box-shadow: none;
}

.hero-store-name span {
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-store-name strong {
  color: var(--rose);
  font-family: var(--ui-font);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.public-hero-content {
  max-width: 760px;
  width: min(760px, 100%);
  display: grid;
  gap: 14px;
  padding: 0;
}

.public-hero-content h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.8vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-hero-content p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-album {
  display: none;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
}

.hero-album.active {
  display: grid;
  gap: 6px;
}

.admin-album-preview {
  margin-bottom: 14px;
  color: #fffaf2;
  background:
    linear-gradient(135deg, rgba(42, 23, 21, 0.94), rgba(214, 83, 109, 0.84));
}

.hero-album-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.hero-album-heading span {
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-album-heading strong {
  font-family: var(--heading-font);
  font-size: 0.98rem;
  font-weight: 500;
}

.hero-album-track {
  width: max-content;
  display: flex;
  gap: 12px;
  animation: albumScroll 150s linear infinite;
}

.hero-album:hover .hero-album-track {
  animation-play-state: paused;
}

.hero-album figure {
  width: 170px;
  height: 112px;
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fffaf4, #f3e5d2);
  box-shadow: 0 14px 34px rgba(20, 17, 15, 0.24);
}

.hero-album img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 4px;
}

.hero-album figcaption {
  display: none;
}

@keyframes albumScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.public-main {
  width: min(1220px, calc(100% - clamp(22px, 4vw, 56px)));
  margin: 18px auto 36px;
  position: relative;
  z-index: 2;
}

.public-footer {
  width: min(1220px, calc(100% - clamp(22px, 4vw, 56px)));
  display: grid;
  grid-template-columns: minmax(min(100%, 360px), 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
  gap: 18px;
  margin: 0 auto 28px;
  padding: 24px 0 6px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.footer-visual {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #14110f;
  box-shadow: var(--soft-shadow);
}

.footer-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.footer-content {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(190px, 0.6fr) minmax(220px, 1fr);
  align-items: start;
  gap: 20px;
}

.footer-brand {
  display: grid;
  gap: 2px;
}

.footer-brand strong {
  font-family: var(--ui-font);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, max-content));
  justify-content: start;
  gap: 8px 18px;
}

.footer-links a,
.footer-links a:visited {
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--rose);
}

.footer-stores {
  display: grid;
  gap: 8px;
}

.footer-stores p {
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.store-list {
  display: grid;
  gap: 6px;
}

.store-list a,
.store-list a:visited {
  color: var(--ink);
  display: grid;
  gap: 2px;
  line-height: 1.35;
  text-decoration: none;
}

.store-list a:hover span {
  color: var(--rose);
}

.store-list span {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.35;
}

.store-list small {
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 0.72rem;
  line-height: 1.35;
}

.footer-categories {
  display: grid;
  gap: 8px;
}

.footer-categories p,
.footer-stores p,
.footer-quality strong {
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.category-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px 14px;
}

.category-tags button {
  padding: 0;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--ui-font);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.category-tags button:hover {
  color: var(--rose);
  transform: none;
}

.footer-quality {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.footer-quality span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.gallery-showcase {
  display: none;
  margin-bottom: 18px;
}

.gallery-showcase.active {
  display: block;
}

.design-albums {
  display: none;
  margin-bottom: 14px;
}

.design-albums.active {
  display: grid;
  gap: 6px;
}

.albums-heading,
.album-viewer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.albums-heading {
  padding: 8px 12px;
}

.albums-heading h2 {
  margin: 3px 0 0;
  font-size: clamp(0.98rem, 1.55vw, 1.25rem);
}

.album-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.album-card {
  display: grid;
  gap: 4px;
  padding: 6px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 10px 24px rgba(20, 17, 15, 0.08);
  text-align: left;
}

.album-card figure,
.album-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fffaf4, #f3e5d2);
}

.album-card figure {
  aspect-ratio: 4 / 3;
}

.album-card img,
.album-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 4px;
}

.album-card h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 0.74rem;
  font-weight: 600;
}

.album-card span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 760;
}

.album-card.empty {
  cursor: default;
  opacity: 0.72;
}

.album-card-highlight {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 138, 69, 0.2), var(--soft-shadow);
}

.album-card.empty figure {
  display: grid;
  place-items: center;
}

.album-card.empty figure span {
  max-width: 76px;
  color: var(--rose);
  font-family: var(--ui-font);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.album-viewer {
  display: none;
  margin-bottom: 10px;
  padding: 8px;
}

.album-viewer.active {
  display: block;
}

.homepage-feature {
  display: grid;
  grid-template-columns: minmax(min(100%, 360px), 1.1fr) minmax(min(100%, 280px), 0.9fr);
  align-items: stretch;
  gap: 0;
  min-height: 360px;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
  box-shadow: var(--shadow);
}

.homepage-feature figure {
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  background: #14110f;
}

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

.homepage-feature-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(20px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(243, 229, 210, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(185, 138, 69, 0.2), transparent 34%);
}

.homepage-feature-copy h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 3rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.homepage-feature-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.feature-link {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #ffffff;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  font-family: var(--ui-font);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.feature-link:hover {
  background: var(--rose);
  border-color: var(--rose);
}

.payment-section {
  display: grid;
  grid-template-columns: minmax(min(100%, 260px), 0.85fr) minmax(min(100%, 280px), 1fr);
  align-items: center;
  gap: 18px;
  margin: 14px 0 18px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 17, 15, 0.96), rgba(58, 45, 40, 0.94)),
    radial-gradient(circle at 90% 10%, rgba(185, 138, 69, 0.28), transparent 34%);
  color: #fffaf4;
  box-shadow: var(--shadow);
}

.payment-section-end {
  width: min(1220px, calc(100% - clamp(22px, 4vw, 56px)));
  margin: 18px auto 36px;
}

.payment-copy {
  display: grid;
  gap: 12px;
}

.payment-copy .eyebrow {
  color: var(--champagne);
}

.payment-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.6rem, 3.5vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.payment-copy p:not(.eyebrow) {
  max-width: 520px;
  color: rgba(255, 250, 244, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
}

.payment-section .feature-link {
  color: var(--ink);
  border-color: #ffffff;
  background: #ffffff;
}

.payment-section .feature-link:hover {
  color: #ffffff;
  border-color: var(--rose);
  background: var(--rose);
}

.payment-qr-card {
  width: min(360px, 100%);
  justify-self: center;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 250, 244, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.payment-qr-card img {
  width: 100%;
  max-height: 620px;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.album-viewer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.album-viewer-heading h2 {
  margin-top: 4px;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 6px;
}

.album-grid figure {
  aspect-ratio: 4 / 5;
}

.gallery-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
}

.gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.gallery-heading h2 {
  font-size: clamp(1.05rem, 2vw, 1.6rem);
}

.gallery-stage {
  height: clamp(220px, 34vw, 390px);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #14110f;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 5px;
  background:
    radial-gradient(circle at 20% 20%, rgba(243, 229, 210, 0.58), transparent 34%),
    linear-gradient(135deg, #fffaf4, #f3e5d2);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
}

.gallery-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #dccdbc;
}

.gallery-dots span.active {
  width: 18px;
  background: var(--rose);
}

.empty-gallery {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
}

.gallery-manager {
  margin-top: 0;
  padding: 8px;
  border: 1px solid rgba(227, 216, 207, 0.96);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.94);
}

.admin-album-list,
.admin-album-folder-grid {
  display: grid;
  gap: 8px;
}

.admin-album-folder-grid {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  margin-bottom: 10px;
}

.admin-album-folder {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 9px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  text-align: left;
  cursor: pointer;
}

.admin-album-folder:hover,
.admin-album-folder.active {
  border-color: rgba(214, 83, 109, 0.45);
  background: #fff1f4;
}

.admin-album-folder span {
  font-family: var(--heading-font);
  font-size: 0.86rem;
  line-height: 1.12;
}

.admin-album-folder strong {
  color: var(--rose);
  font-family: var(--ui-font);
  font-size: 1rem;
  line-height: 1;
}

.admin-album-folder small {
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 0.66rem;
  font-weight: 700;
}

.admin-album-panel {
  display: none;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.admin-album-panel.active {
  display: grid;
}

.admin-album-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-album-title h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 0.95rem;
}

.admin-album-title span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
}

.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}

.admin-photo-card {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.admin-photo-card figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  max-height: 112px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7efe8;
}

.admin-photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.admin-photo-card label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-photo-card input,
.admin-photo-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 32px;
  padding: 6px 7px;
  background: #fff;
  color: var(--ink);
}

.current-album {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.current-album strong {
  color: var(--ink);
}

.admin-photo-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  align-items: end;
}

.admin-photo-actions .danger {
  grid-column: 1 / -1;
}

.gallery-upload-button {
  width: 100%;
}

.gallery-save-button {
  width: 100%;
}

.ghost-button.danger {
  color: var(--rose);
  border-color: rgba(155, 68, 73, 0.38);
}

.public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.public-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
}

.public-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.public-card input,
.public-card textarea,
.public-card select {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.public-card input,
.public-card select {
  height: 40px;
  padding: 0 11px;
}

.public-card textarea {
  min-height: 88px;
  padding: 10px 11px;
  resize: vertical;
}

.public-card input:focus,
.public-card textarea:focus,
.public-card select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(189,143,63,0.14);
}

.price-preview,
.note-text {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.price-preview {
  padding: 12px;
  border: 1px solid #eadcc9;
  border-radius: 8px;
  background: #fff9ef;
}

.price-preview strong {
  color: var(--rose);
}

.price-table-wrap table {
  min-width: 660px;
}

.measurement-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.measurement-figure {
  min-height: 360px;
  position: relative;
  border: 1px dashed #7e6863;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.75), rgba(248,243,236,0.75)),
    repeating-linear-gradient(45deg, rgba(189,143,63,0.12) 0 1px, transparent 1px 16px);
}

.figure-head {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f4d9d4;
  transform: translateX(-50%);
}

.figure-body {
  position: absolute;
  top: 82px;
  left: 50%;
  width: 84px;
  height: 210px;
  border: 3px solid #5c504d;
  border-radius: 42px 42px 26px 26px;
  transform: translateX(-50%);
}

.measure-line {
  position: absolute;
  left: 42px;
  right: 42px;
  height: 2px;
  background: var(--rose);
}

.measure-line::before,
.measure-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  transform: translateY(-50%);
}

.measure-line::before {
  left: 0;
}

.measure-line::after {
  right: 0;
}

.measure-line.shoulder { top: 105px; }
.measure-line.chest { top: 152px; }
.measure-line.waist { top: 205px; }
.measure-line.length {
  left: auto;
  right: 34px;
  top: 88px;
  width: 2px;
  height: 240px;
}

.measure-line.length::before,
.measure-line.length::after {
  left: 50%;
  right: auto;
}

.measure-line.length::before { top: 0; }
.measure-line.length::after { top: 100%; }

.measurements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.compact-measurements {
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff9ef;
}

.app-shell {
  min-height: 100vh;
  grid-template-columns: 244px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 14px;
  color: #fff7f0;
  background:
    linear-gradient(180deg, rgba(0, 43, 79, 0.98), rgba(0, 55, 100, 0.94)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 18px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(184, 148, 95, 0.28), 0 8px 22px rgba(27, 27, 27, 0.12);
}

.brand-mark::before {
  content: "MISS";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--rose);
  font-family: var(--heading-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 3px;
}

.brand p,
.brand span,
.eyebrow,
h1,
h2,
p {
  margin: 0;
}

.brand p {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0;
  font-family: var(--heading-font);
}

.brand span {
  color: rgba(255, 250, 244, 0.72);
  font-size: 0.74rem;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-button,
.ghost-button,
.primary-button,
.text-button,
.file-button {
  border: 0;
  border-radius: 8px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-button {
  justify-content: flex-start;
  padding: 9px 10px;
  color: #fff0e8;
  border: 1px solid transparent;
  background: transparent;
}

.nav-button:hover,
.nav-button.active {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.52);
  background: linear-gradient(135deg, #fffaf4, #f3e5d2);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.sidebar-panel {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.fabric-strip {
  height: 58px;
  margin-bottom: 12px;
  border-radius: 6px;
  background:
    linear-gradient(45deg, rgba(255,255,255,0.36) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.36) 75%),
    linear-gradient(45deg, rgba(255,255,255,0.36) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.36) 75%),
    linear-gradient(135deg, #f3e5d2, #fffaf4 52%, #e6ded6);
  background-position: 0 0, 12px 12px, 0 0;
  background-size: 24px 24px, 24px 24px, cover;
}

.panel-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.sidebar-panel p:last-child {
  color: #ffe6ec;
  font-size: 0.92rem;
  line-height: 1.45;
}

.main {
  min-width: 0;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(227, 216, 207, 0.9);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.82);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.eyebrow {
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.05;
  font-family: var(--heading-font);
  font-weight: 500;
}

h2 {
  font-size: 1.12rem;
  font-family: var(--heading-font);
  font-weight: 600;
}

.topline {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

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

.notification-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: var(--ink);
  border: 1px solid rgba(214, 83, 109, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, rgba(255, 162, 182, 0.22));
  font-weight: 850;
}

.notification-button strong {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: var(--rose);
  font-size: 0.76rem;
}

.notification-button.has-notifications {
  border-color: var(--rose);
  box-shadow: 0 8px 22px rgba(214, 83, 109, 0.2);
}

.notification-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(214, 83, 109, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255, 162, 182, 0.18));
  box-shadow: var(--soft-shadow);
}

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

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

.notification-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.notification-card {
  padding: 10px;
  border-left: 4px solid var(--rose);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.notification-card strong,
.notification-card span,
.notification-card p {
  display: block;
}

.notification-card strong {
  color: var(--ink);
}

.notification-card span {
  margin: 3px 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.notification-card p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.ghost-button,
.text-button,
.file-button {
  padding: 0 14px;
  color: var(--sea);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(54, 36, 28, 0.08);
}

.ghost-button:hover,
.text-button:hover,
.file-button:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.ghost-button.small {
  min-height: 34px;
  padding: 0 10px;
}

.file-button input {
  display: none;
}

.primary-button {
  width: 100%;
  padding: 0 16px;
  color: #fff;
  border: 1px solid #14110f;
  background: linear-gradient(135deg, #14110f, #3a2d28);
  box-shadow: 0 12px 28px rgba(20, 17, 15, 0.2);
}

.primary-button:hover {
  background: #9b1f35;
}

.text-button {
  min-height: 34px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.atelier-banner {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(227, 216, 207, 0.9);
  border-radius: 8px;
  color: #fffaf2;
  background:
    linear-gradient(90deg, rgba(0, 43, 79, 0.96), rgba(0, 55, 100, 0.84), rgba(0, 77, 132, 0.58)),
    url("data:image/svg+xml,%3Csvg width='1200' height='420' viewBox='0 0 1200 420' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1200' height='420' fill='%23c7ad91'/%3E%3Cpath d='M0 322C175 218 302 382 497 275C684 172 731 33 1200 126V420H0z' fill='%23f8efe5' opacity='.9'/%3E%3Cpath d='M114 86h210v282H114z' rx='26' fill='%23f4d9d4' opacity='.88'/%3E%3Cpath d='M150 125c38 42 52 95 18 171M226 118c-34 61-39 119-10 179M818 28c84 84 92 187 8 327M934 42c70 92 66 181-10 310M1048 34c83 91 90 194 8 332' stroke='%239d413c' stroke-width='14' fill='none' opacity='.42'/%3E%3Ccircle cx='1120' cy='78' r='92' fill='%23bd8f3f' opacity='.82'/%3E%3Cpath d='M432 82h192M432 124h250M432 166h145' stroke='%23211b1c' stroke-width='14' opacity='.2'/%3E%3C/svg%3E") center/cover;
  box-shadow: var(--shadow);
}

.atelier-banner h2 {
  max-width: 760px;
  margin: 6px 0 10px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.98;
}

.atelier-banner p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 250, 242, 0.82);
  line-height: 1.6;
}

.atelier-card {
  padding: 18px;
  border: 1px solid rgba(255, 250, 242, 0.32);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.atelier-card span {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.atelier-card strong {
  display: block;
  margin: 10px 0;
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 500;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,250,242,0.96));
  box-shadow: var(--soft-shadow);
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.metric .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  padding: 5px;
  color: var(--sea);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mint), #fff7ea);
}

.metric strong {
  display: block;
  font-size: 1.35rem;
  font-family: var(--heading-font);
  font-weight: 600;
}

.metric span {
  color: var(--muted);
  font-size: 0.78rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 12px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.chart-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.report-tools {
  margin-bottom: 14px;
  padding: 12px;
}

.report-tool-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.report-tool-grid label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.report-tool-grid select,
.report-tool-grid input[type="date"] {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  color: var(--ink);
  background: #fffdf9;
}

.report-import-button,
.report-tool-grid .primary-button {
  height: 34px;
  min-height: 34px;
}

.report-download-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(155, 31, 53, 0.25);
  border-radius: 8px;
  background: #fff6f7;
}

.report-download-panel[hidden] {
  display: none;
}

.report-download-panel strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.report-download-panel a,
.report-download-panel a:visited {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: #ffffff;
  border-radius: 8px;
  background: var(--rose);
  font-family: var(--ui-font);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.report-download-panel span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.compact-heading {
  margin-bottom: 8px;
}

.wide-chart {
  grid-column: span 4;
}

.donut-layout {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.donut-chart {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 999px;
  background:
    radial-gradient(circle, #fff 0 49%, transparent 50%),
    conic-gradient(var(--rose) calc(var(--p) * 1%), rgba(255, 162, 182, 0.24) 0);
}

.donut-chart span {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 900;
}

.donut-chart small {
  margin-top: 32px;
  position: absolute;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.donut-legend {
  display: grid;
  gap: 5px;
}

.donut-legend p {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 0.7rem;
}

.donut-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.donut-legend strong {
  color: var(--ink);
}

.payment-tiles {
  display: grid;
  gap: 8px;
}

.payment-tile {
  padding: 9px;
  border: 1px solid rgba(255, 162, 182, 0.52);
  border-left: 5px solid var(--tile);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(235,233,225,0.88));
}

.payment-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.payment-tile strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.05rem;
}

.timeline-chart {
  height: 126px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
}

.timeline-day {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.62rem;
}

.timeline-day i {
  width: 100%;
  max-width: 22px;
  display: block;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, var(--rose), var(--gold));
}

.timeline-day i em {
  width: 100%;
  height: 34%;
  display: block;
  border-radius: inherit;
  background: rgba(255,255,255,0.32);
}

.timeline-day strong {
  color: var(--ink);
  font-size: 0.7rem;
}

.pipeline-chart {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.pipeline-chart div {
  display: grid;
  gap: 6px;
}

.pipeline-chart span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pipeline-chart strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.pipeline-chart i {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 162, 182, 0.28);
}

.pipeline-chart b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--rose);
}

.pipeline-chart p {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
}

.work-panel,
.entry-form,
.records-area {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.contact-card {
  align-self: stretch;
  background:
    linear-gradient(145deg, #14110f, #3a2d28 58%, #7b2634);
  color: #fffaf2;
}

.contact-card .eyebrow,
.contact-card h2 {
  color: #fffaf2;
}

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

.contact-list p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.08);
}

.contact-list strong {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.contact-list span {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-card a,
.contact-card a:visited {
  color: #fffaf2;
  text-decoration-color: rgba(255, 255, 255, 0.72);
  text-underline-offset: 3px;
}

.work-panel {
  padding: 18px;
}

.section-heading,
.form-heading,
.records-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stack-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.stack-item {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdf9, #fff5e8);
}

.stack-item strong {
  font-size: 0.98rem;
}

.stack-item span,
.assistant-card,
.empty-state {
  color: var(--muted);
  line-height: 1.55;
}

.alert-item {
  border-left-color: var(--rose);
  background: linear-gradient(135deg, #fff7f4, #fff2df);
}

.alert-item strong {
  color: var(--rose);
}

.assistant-card {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #fff9ef;
  border: 1px solid #eadcc9;
}

.assistant-card strong {
  color: var(--ink);
}

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

.entry-form {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.entry-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.entry-form input,
.entry-form textarea,
.entry-form select,
.search-box input {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.entry-form input:focus,
.entry-form textarea:focus,
.entry-form select:focus,
.search-box input:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(189, 143, 63, 0.14);
}

.entry-form input,
.entry-form select,
.search-box input {
  height: 34px;
  padding: 0 9px;
}

.entry-form textarea {
  min-height: 58px;
  resize: vertical;
  padding: 8px 9px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.records-area {
  min-width: 0;
  padding: 12px;
}

.records-toolbar {
  margin-bottom: 8px;
}

.search-box {
  position: relative;
  width: min(380px, 100%);
}

.search-box .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-box input {
  padding-left: 34px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

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

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

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #fffaf2;
  background: linear-gradient(135deg, var(--sea), #2a2324);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  font-size: 0.92rem;
  background: rgba(255,255,255,0.78);
}

tbody tr:hover td {
  background: #fff8ee;
}

tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--sea);
  background: linear-gradient(135deg, var(--mint), #f7efe2);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.warn {
  color: #7b4c08;
  background: #f7e6bd;
}

.status-pill.bad {
  color: #14110f;
  background: var(--blush);
}

.reference-thumb {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.reference-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 120px;
}

.thumb-strip .reference-thumb {
  width: 42px;
  height: 42px;
}

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

.icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--sea);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 6px 16px rgba(54, 36, 28, 0.08);
}

.icon-button.delete {
  color: var(--rose);
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  flex: 0 0 auto;
}

.icon svg {
  width: 100%;
  height: 100%;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(460px, calc(100% - 36px));
  padding: 12px 14px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sea), #2b2425);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    overflow-x: auto;
  }

  .sidebar-panel {
    display: none;
  }

  .metric-grid,
  .dashboard-grid,
  .module-layout,
  .manager-forms,
  .manager-recent-grid,
  .atelier-banner,
  .public-grid,
  .measurement-layout {
    grid-template-columns: 1fr;
  }

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

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

  .wide-chart {
    grid-column: 1 / -1;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-stage {
    height: 300px;
  }

  .admin-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  }

  .atelier-banner {
    min-height: auto;
  }

  .public-main {
    margin-top: 18px;
  }

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

  .public-brand {
    min-width: 0;
  }

  .public-login-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    justify-content: stretch;
  }

  .public-login-actions .ghost-button,
  .collection-link {
    width: 100%;
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0.68rem;
    white-space: normal;
  }

  .quick-contact-bar {
    width: 100%;
    justify-content: center;
    row-gap: 7px;
  }

  .album-cards {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  .main,
  .sidebar {
    padding: 14px;
  }

  .topbar,
  .section-heading,
  .records-toolbar,
  .notification-heading,
  .album-viewer-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .two-col,
  .public-grid,
  .payment-section,
  .chart-grid,
  .hero-welcome-poster,
  .homepage-feature,
  .album-grid,
  .measurements-grid {
    grid-template-columns: 1fr;
  }

  .album-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .donut-layout,
  .pipeline-chart,
  .report-tool-grid {
    grid-template-columns: 1fr;
  }

  .donut-chart {
    margin: 0 auto;
  }

  .top-actions,
  .notification-actions,
  .row-actions {
    width: 100%;
  }

  .ghost-button,
  .primary-button,
  .text-button,
  .file-button {
    width: 100%;
    min-width: 0;
  }

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

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

  .public-hero {
    min-height: auto;
    padding: 0 14px 14px;
    gap: 12px;
    background:
      linear-gradient(180deg, rgba(20, 17, 15, 0.9), rgba(20, 17, 15, 0.58)),
      url("welcome-poster-premium.png") center top/cover no-repeat;
  }

  .public-promo-strip {
    min-height: 30px;
    margin: 0 -14px 12px;
    padding: 7px 10px;
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  .public-nav {
    align-items: center;
    grid-template-columns: 1fr;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .public-brand {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .public-brand .brand-mark {
    width: 50px;
    height: 50px;
  }

  .public-brand p {
    font-size: 0.86rem;
  }

  .public-brand span {
    font-size: 0.64rem;
  }

  .public-login-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    flex: 1 1 100%;
    max-width: none;
    justify-content: stretch;
    gap: 0;
    border-radius: 0;
  }

  .public-login-actions > :nth-child(1),
  .public-login-actions > :nth-child(2) {
    grid-column: span 2;
  }

  .public-login-actions > :nth-child(3) {
    grid-column: span 2;
  }

  .public-login-actions > :nth-child(4) {
    grid-column: span 2;
  }

  .public-login-actions > :nth-child(5) {
    grid-column: span 2;
  }

  .public-login-actions > :nth-child(6) {
    grid-column: span 2;
  }

  .public-login-actions .ghost-button,
  .collection-link {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0 4px;
    font-size: 0.48rem;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
  }

  .quick-contact-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 0;
    margin: 0 0 8px;
  }

  .quick-contact-bar a,
  .quick-contact-bar a:visited {
    min-height: 28px;
    justify-content: center;
    gap: 4px;
    padding: 0 4px;
    border-right: 1px solid rgba(255, 250, 244, 0.2);
    border-bottom: 1px solid rgba(255, 250, 244, 0.14);
    font-size: 0.58rem;
    letter-spacing: 0;
    white-space: normal;
  }

  .quick-contact-bar a:nth-child(3n),
  .quick-contact-bar a:last-child {
    border-right: 0;
  }

  .quick-contact-bar svg {
    width: 12px;
    height: 12px;
  }

  .hero-store-name {
    padding-left: 9px;
  }

  .hero-store-name span {
    font-size: 1rem;
  }

  .hero-store-name strong {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }

  .public-main {
    width: calc(100% - 22px);
    margin: 10px auto 28px;
  }

  .public-footer {
    width: calc(100% - 22px);
    grid-template-columns: 1fr;
    margin-bottom: 22px;
  }

  .footer-visual {
    width: 100%;
  }

  .footer-visual img {
    min-height: 220px;
    max-height: 300px;
  }

  .footer-content {
    width: 100%;
    padding: 12px;
    gap: 12px;
  }

  .footer-top {
    width: 100%;
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .footer-links a {
    padding: 9px 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.62rem;
    text-align: center;
  }

  .category-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 10px;
  }

  .category-tags button {
    font-size: 0.7rem;
  }

  .public-hero-content {
    padding: 0;
  }

  .hero-welcome-poster {
    margin-top: 2px;
  }

  .hero-welcome-poster figure {
    min-height: 240px;
  }

  .hero-welcome-copy {
    padding: 16px;
    gap: 12px;
  }

  .public-hero-content h1 {
    max-width: none;
    margin: 7px 0 10px;
    font-size: 1.45rem;
    line-height: 1.08;
  }

  .public-hero-content p:not(.eyebrow) {
    max-width: none;
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .hero-album figure {
    width: 142px;
    height: 98px;
  }

  .homepage-feature {
    min-height: 0;
    margin: 10px 0 14px;
  }

  .homepage-feature figure {
    min-height: 210px;
  }

  .homepage-feature-copy {
    padding: 16px;
  }

  .homepage-feature-copy h2 {
    font-size: 1.35rem;
  }

  .homepage-feature-copy p:not(.eyebrow) {
    font-size: 0.86rem;
  }

  .payment-section {
    padding: 16px;
  }

  .payment-section-end {
    width: calc(100% - 22px);
    margin: 12px auto 28px;
  }

  .payment-qr-card {
    width: min(310px, 100%);
  }

  .hero-album-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .public-card,
  .work-panel,
  .entry-form,
  .records-area,
  .albums-heading,
  .album-viewer,
  .gallery-card {
    padding: 12px;
    border-radius: 10px;
  }

  .gallery-manager {
    padding: 8px;
  }

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

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

  .admin-photo-card figure {
    max-height: 110px;
  }

  .album-card {
    width: auto;
    min-width: 0;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px;
  }

  .album-card figure {
    width: 62px;
    height: 70px;
    aspect-ratio: auto;
    max-height: none;
  }

  .album-card h3 {
    font-size: 0.74rem;
    line-height: 1.05;
  }

  .album-card span {
    font-size: 0.57rem;
    line-height: 1.15;
  }

  .album-grid figure {
    aspect-ratio: 1 / 1;
    max-height: 130px;
  }

  .login-card {
    padding: 18px;
  }

  .login-card h1,
  h1 {
    font-size: 1.8rem;
  }

  h2,
  .albums-heading h2,
  .album-viewer-heading h2,
  .gallery-heading h2 {
    font-size: 1.18rem;
    line-height: 1.1;
  }

  table {
    min-width: 680px;
  }

  th,
  td {
    padding: 10px;
  }

  .search-box {
    width: 100%;
  }

  .toast {
    left: 10px;
    right: 10px;
    bottom: 12px;
    max-width: none;
  }

  .atelier-banner {
    padding: 14px;
  }

  .atelier-banner h2 {
    font-size: 2rem;
  }

  .measurement-figure {
    min-height: 280px;
  }

  .contact-card {
    background: linear-gradient(145deg, #14110f, #3a2d28 58%, #7b2634);
  }

  .contact-list {
    gap: 8px;
  }

  .contact-list p {
    padding: 10px;
    border-color: rgba(255, 250, 242, 0.22);
    background: rgba(255, 250, 242, 0.08);
  }
}

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

  .gallery-stage {
    height: 260px;
  }

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

  .brand {
    align-items: center;
  }

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

  .public-login-actions .ghost-button,
  .collection-link {
    min-height: 32px;
    font-size: 0.44rem;
  }

  .quick-contact-bar a,
  .quick-contact-bar a:visited {
    min-height: 28px;
    padding: 0 3px;
    font-size: 0.52rem;
  }

  .quick-contact-bar svg {
    width: 12px;
    height: 12px;
  }

  .public-hero-content h1 {
    font-size: 1.32rem;
  }

  .hero-album figure {
    width: 136px;
    height: 94px;
  }
}

@media print {
  .sidebar,
  .top-actions,
  .entry-form,
  .records-toolbar,
  .row-actions {
    display: none;
  }

  .app-shell,
  .module-layout,
  .dashboard-grid,
  .metric-grid {
    display: block;
  }

  .main {
    padding: 0;
  }

  .work-panel,
  .records-area,
  .metric {
    box-shadow: none;
    margin-bottom: 14px;
  }
}

/* Device auto-fit layer: keeps the full template aligned on phones, tablets, laptops, and wide PCs. */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body,
.public-portal,
.login-screen,
.master-screen,
.manager-screen,
.app-shell,
.main,
.sidebar {
  width: 100%;
  max-width: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

.public-hero,
.public-main,
.public-footer,
.payment-section-end,
.app-shell,
.main,
.master-card,
.manager-card {
  margin-left: auto;
  margin-right: auto;
}

.public-hero,
.main,
.sidebar {
  padding-left: clamp(12px, 3vw, 28px);
  padding-right: clamp(12px, 3vw, 28px);
}

.public-main,
.public-footer,
.payment-section-end {
  width: min(1220px, calc(100% - clamp(24px, 5vw, 56px)));
}

.public-nav,
.topbar,
.section-heading,
.records-toolbar,
.notification-heading,
.album-viewer-heading,
.footer-top,
.form-heading,
.admin-album-title {
  min-width: 0;
}

.public-login-actions,
.quick-contact-bar,
.footer-links,
.category-tags,
.top-actions,
.records-toolbar,
.admin-photo-actions {
  min-width: 0;
}

.public-login-actions > *,
.quick-contact-bar > *,
.footer-links > *,
.category-tags > *,
.top-actions > *,
.records-toolbar > * {
  min-width: 0;
}

.brand,
.public-brand,
.hero-store-name,
.public-hero-content,
.homepage-feature-copy,
.footer-content,
.contact-list p,
.metric,
.work-panel,
.entry-form,
.records-area,
.public-card,
.album-card,
.admin-album-folder,
.admin-photo-card {
  min-width: 0;
}

.brand p,
.brand span,
.public-hero-content h1,
.public-hero-content p,
.homepage-feature-copy h2,
.homepage-feature-copy p,
.album-card h3,
.album-card span,
.admin-album-folder span,
.footer-brand strong,
.contact-list span,
td,
th {
  overflow-wrap: anywhere;
}

.table-wrap,
.records-area {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
}

.hero-welcome-poster,
.homepage-feature,
.public-grid,
.module-layout,
.manager-forms,
.manager-recent-grid,
.measurement-layout,
.dashboard-grid,
.metric-grid,
.chart-grid,
.report-tool-grid,
.album-grid,
.measurements-grid {
  max-width: 100%;
}

.hero-welcome-poster img,
.homepage-feature img,
.footer-visual img,
.album-card img,
.album-grid img,
.admin-photo-card img,
.payment-qr-card img {
  height: 100%;
}

@media (min-width: 1280px) {
  .public-hero {
    padding-left: max(28px, calc((100vw - 1280px) / 2 + 28px));
    padding-right: max(28px, calc((100vw - 1280px) / 2 + 28px));
  }
}

@media (max-width: 900px) {
  .public-promo-strip {
    margin-left: calc(clamp(12px, 3vw, 28px) * -1);
    margin-right: calc(clamp(12px, 3vw, 28px) * -1);
  }

  .public-nav {
    gap: 10px;
  }

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

  .public-login-actions .ghost-button,
  .collection-link {
    min-height: 34px;
    padding: 0 6px;
    font-size: 0.62rem;
  }

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

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

@media (max-width: 560px) {
  .public-main,
  .public-footer,
  .payment-section-end {
    width: calc(100% - 20px);
  }

  .public-hero {
    gap: 10px;
    padding-bottom: 14px;
  }

  .public-promo-strip {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 0.54rem;
    letter-spacing: 0.06em;
  }

  .public-brand {
    justify-content: center;
  }

  .public-login-actions,
  .quick-contact-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-contact-bar a:nth-child(3n) {
    border-right: 1px solid rgba(255, 250, 244, 0.2);
  }

  .quick-contact-bar a:nth-child(2n),
  .quick-contact-bar a:last-child {
    border-right: 0;
  }

  .public-login-actions .ghost-button,
  .collection-link,
  .quick-contact-bar a,
  .quick-contact-bar a:visited {
    font-size: 0.58rem;
    line-height: 1.1;
  }

  .hero-welcome-poster,
  .public-footer {
    border-radius: 8px;
  }

  .hero-welcome-poster figure,
  .footer-visual img {
    min-height: 190px;
  }

  .hero-welcome-copy,
  .footer-content,
  .public-card,
  .work-panel,
  .entry-form,
  .records-area,
  .albums-heading,
  .album-viewer,
  .gallery-card {
    padding: 10px;
  }

  .public-hero-content h1 {
    font-size: clamp(1.12rem, 7vw, 1.38rem);
  }

  .album-cards,
  .admin-album-folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-tool-grid,
  .metric-grid,
  .chart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .public-login-actions,
  .quick-contact-bar,
  .album-cards,
  .admin-album-folder-grid,
  .category-tags,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .quick-contact-bar a,
  .quick-contact-bar a:visited {
    border-right: 0;
  }
}
