:root {
  color-scheme: light;
  --ink: #312c29;
  --muted: #746b65;
  --soft: #f4efea;
  --soft-2: #e8dfd7;
  --paper: rgba(255, 255, 255, 0.68);
  --paper-strong: rgba(255, 255, 255, 0.88);
  --line: rgba(255, 255, 255, 0.56);
  --shadow: 0 24px 70px rgba(64, 55, 49, 0.18);
  --accent: #8f9fbd;
  --accent-dark: #6e7fa2;
  --sage: #7f947d;
  --rose: #b58f86;
  --danger: #a35e58;
  --radius: 8px;
  --font: "Inter", "Segoe UI", "Noto Sans Thai", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(244, 239, 234, 0.42), rgba(244, 239, 234, 0.1) 52%, rgba(244, 239, 234, 0.2)),
    linear-gradient(0deg, rgba(49, 44, 41, 0.08), rgba(255, 255, 255, 0.08)),
    url("assets/studio-fixed-background.png") center center / cover fixed no-repeat,
    #ded4cc;
  color: var(--ink);
  font-family: var(--font);
}

body::before {
  display: none;
}

body::after {
  display: none;
}

body > main,
.admin-main,
.customer-main {
  height: calc(100svh - 76px);
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(244, 239, 234, 0.88);
  color: var(--ink);
  box-shadow: 0 14px 38px rgba(64, 55, 49, 0.1);
  backdrop-filter: blur(20px);
}

.site-header::before {
  display: none;
}

.admin-header {
  position: sticky;
  color: var(--ink);
  background: rgba(244, 239, 234, 0.82);
  box-shadow: 0 12px 35px rgba(64, 55, 49, 0.08);
  backdrop-filter: blur(18px);
}

.admin-header::before {
  display: none;
}

.page-header {
  background: rgba(244, 239, 234, 0.9);
}

.page-header::before {
  display: none;
}

.page-header .icon-button {
  border-color: rgba(83, 73, 66, 0.16);
  background: rgba(255, 255, 255, 0.42);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(83, 73, 66, 0.1);
  border-radius: 999px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.48);
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.desktop-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 16px;
  opacity: 0.78;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover {
  background: rgba(255, 255, 255, 0.62);
  opacity: 1;
}

.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  opacity: 1;
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 8px 20px rgba(64, 55, 49, 0.08);
}

.cart-trigger {
  justify-self: end;
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(83, 73, 66, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: currentColor;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cart-count {
  position: absolute;
  right: -6px;
  top: -5px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  padding: 120px clamp(18px, 6vw, 112px) 64px;
  overflow: hidden;
}

.hero img {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 38%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 30%),
    linear-gradient(90deg, rgba(49, 44, 41, 0.46), rgba(255, 255, 255, 0.04) 54%, rgba(49, 44, 41, 0.1));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(50, 42, 36, 0.24);
}

.eyebrow {
  margin: 0 0 10px;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.72;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: 0;
}

.hero p:not(.eyebrow),
.admin-hero p {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.65;
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(143, 159, 189, 0.4);
  border-radius: var(--radius);
  padding: 0 18px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(75, 67, 61, 0.08);
  backdrop-filter: blur(18px);
}

.button.primary {
  border-color: rgba(143, 159, 189, 0.12);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.button.soft {
  width: 100%;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.button.small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 13px;
}

.button.full {
  width: 100%;
}

.button.danger {
  border-color: rgba(163, 94, 88, 0.28);
  background: rgba(163, 94, 88, 0.12);
  color: var(--danger);
}

.login-glass {
  position: absolute;
  right: clamp(18px, 8vw, 180px);
  bottom: clamp(34px, 9vw, 110px);
  z-index: 2;
  width: min(310px, calc(100vw - 36px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.script-logo {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 0.8;
  margin-bottom: 20px;
}

.login-glass strong {
  display: block;
  font-size: 24px;
}

.login-glass small {
  display: block;
  margin-top: 8px;
  line-height: 1.5;
  opacity: 0.76;
}

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

.section {
  padding: 76px 0;
}

.admin-main {
  padding: 28px 0 80px;
}

.customer-page {
  background:
    linear-gradient(90deg, rgba(244, 239, 234, 0.42), rgba(244, 239, 234, 0.1) 52%, rgba(244, 239, 234, 0.2)),
    linear-gradient(0deg, rgba(49, 44, 41, 0.08), rgba(255, 255, 255, 0.08)),
    url("assets/studio-fixed-background.png") center center / cover fixed no-repeat,
    #ded4cc;
}

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

.page-title {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.44));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.page-title h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: 0;
}

.page-title p:not(.eyebrow) {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.mobile-nav {
  position: sticky;
  top: 76px;
  z-index: 29;
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(244, 239, 234, 0.86);
  box-shadow: 0 12px 32px rgba(64, 55, 49, 0.08);
  backdrop-filter: blur(18px);
}

.mobile-nav a {
  flex: 0 0 auto;
  border: 1px solid rgba(83, 73, 66, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.page-mobile-nav {
  top: 76px;
}

.collection-section {
  padding-top: 92px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 18px;
}

.section-heading h2,
.admin-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0;
}

.section-heading.compact h2 {
  font-size: 28px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.chip,
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.chip {
  min-height: 36px;
  border: 1px solid rgba(89, 77, 70, 0.12);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.34);
}

.chip.active {
  background: var(--ink);
  color: #fff;
}

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

.product-card,
.panel,
.cart-panel,
.stat-card,
.admin-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.product-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
}

.product-media {
  position: relative;
  display: grid;
  min-height: 250px;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(218, 207, 197, 0.62)),
    var(--swatch);
}

.product-media::before {
  position: absolute;
  inset: 34px 50px 28px;
  content: "";
  border-radius: 36% 36% 12% 12%;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0)),
    var(--swatch);
  box-shadow: inset 0 -22px 34px rgba(66, 58, 52, 0.08), 0 18px 45px rgba(66, 58, 52, 0.14);
}

.product-media::after {
  position: absolute;
  top: 42px;
  width: 58px;
  height: 28px;
  content: "";
  border: 2px solid rgba(91, 82, 76, 0.28);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
}

.product-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.product-title-row,
.stock-row,
.cart-line,
.order-top,
.customer-row,
.payment-row,
.admin-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-title-row h3 {
  margin: 0;
  font-size: 18px;
}

.price {
  white-space: nowrap;
  color: var(--accent-dark);
  font-weight: 900;
}

.product-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: auto;
}

.size-select,
select,
input,
textarea {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(83, 73, 66, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

input[type="color"] {
  min-height: 44px;
  padding: 4px;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.split-layout,
.checkout-layout,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 22px;
}

.inventory-list,
.orders-list,
.summary-items,
.cart-items,
.admin-product-list,
.customer-list,
.payment-ledger {
  display: grid;
  gap: 12px;
}

.stock-item,
.order-card,
.summary-item,
.cart-item,
.admin-product,
.customer-row,
.payment-row {
  border: 1px solid rgba(83, 73, 66, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.36);
  padding: 14px;
}

.stock-info strong,
.summary-item strong,
.cart-item strong,
.order-card strong,
.customer-row strong,
.payment-row strong,
.profile-box strong,
.admin-product strong {
  display: block;
}

.stock-info small,
.summary-item small,
.cart-item small,
.order-card small,
.customer-row small,
.payment-row small,
.profile-box small,
.admin-product small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.stock-controls,
.qty-controls {
  display: inline-grid;
  grid-template-columns: 34px 42px 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(83, 73, 66, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.stock-controls button,
.qty-controls button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
}

.stock-bar {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(83, 73, 66, 0.1);
}

.stock-bar span {
  display: block;
  height: 100%;
  width: var(--level);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--accent));
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(139, 154, 138, 0.16);
  color: #52614f;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.muted-pill {
  background: rgba(83, 73, 66, 0.1);
  color: var(--muted);
}

.customer-form,
.payment-form,
.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form h3 {
  margin: 0;
  font-size: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.payment-card {
  position: relative;
  min-height: 92px;
  border: 1px solid rgba(83, 73, 66, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.payment-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-card span {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.payment-card small {
  display: block;
  margin-top: 8px;
}

.payment-card.selected {
  border-color: rgba(143, 159, 189, 0.72);
  background: rgba(143, 159, 189, 0.16);
}

.order-summary {
  position: sticky;
  top: 94px;
}

.totals {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.totals dd {
  margin: 0;
  font-weight: 900;
}

.grand-total {
  border-top: 1px solid rgba(83, 73, 66, 0.12);
  padding-top: 12px;
  font-size: 20px;
}

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

.order-card {
  display: grid;
  gap: 12px;
}

.order-items {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.profile-box {
  display: grid;
  gap: 8px;
}

.profile-box span {
  color: var(--muted);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.cart-drawer.open {
  display: block;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(39, 34, 31, 0.36);
}

.cart-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: min(440px, calc(100% - 24px));
  grid-template-rows: auto 1fr auto;
  padding: 20px;
  background: rgba(249, 246, 242, 0.9);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.drawer-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
}

.cart-panel .icon-button {
  color: var(--ink);
  border-color: rgba(83, 73, 66, 0.16);
}

.cart-items {
  align-content: start;
  overflow: auto;
  padding: 18px 2px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.cart-item .text-button {
  justify-self: start;
  color: var(--rose);
  padding: 0;
}

.drawer-footer {
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(83, 73, 66, 0.12);
  padding-top: 16px;
}

.drawer-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
}

.empty-state {
  border: 1px dashed rgba(83, 73, 66, 0.2);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translate(-50%, 18px);
  min-width: min(420px, calc(100vw - 36px));
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 13px 18px;
  background: rgba(49, 44, 41, 0.84);
  color: #fff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.24s ease;
  backdrop-filter: blur(18px);
}

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

.admin-body {
  background:
    linear-gradient(90deg, rgba(244, 239, 234, 0.42), rgba(244, 239, 234, 0.1) 52%, rgba(244, 239, 234, 0.2)),
    linear-gradient(0deg, rgba(49, 44, 41, 0.08), rgba(255, 255, 255, 0.08)),
    url("assets/studio-fixed-background.png") center center / cover fixed no-repeat,
    #ded4cc;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 18px;
  padding: 28px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.46));
}

.admin-hero p {
  font-size: 16px;
  color: var(--muted);
}

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

.stat-card {
  padding: 18px;
}

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

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.admin-section {
  width: 100%;
}

.search-input {
  max-width: 220px;
}

.admin-product {
  align-items: flex-start;
}

.admin-product p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-product-actions {
  display: grid;
  gap: 8px;
  min-width: 120px;
}

.swatch {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(83, 73, 66, 0.16);
  border-radius: 999px;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.35);
}

.status-select {
  width: auto;
  min-width: 140px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  body > main,
  .admin-main,
  .customer-main {
    height: calc(100svh - 134px);
  }

  .admin-mobile-nav {
    top: 80px;
  }

  .product-grid,
  .orders-list,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout,
  .checkout-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .login-glass {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 38px;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 660px) {
  .site-header {
    padding: 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 134px);
    padding: 80px 18px 42px;
    align-items: end;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .section,
  .admin-main,
  .customer-main {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 50px 0;
  }

  .section-heading,
  .section-heading.compact {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar {
    justify-content: flex-start;
  }

  .product-grid,
  .orders-list,
  .payment-methods,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 390px;
  }

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

  .stock-row,
  .cart-line,
  .order-top,
  .customer-row,
  .payment-row,
  .admin-product {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-product-actions,
  .search-input {
    width: 100%;
    max-width: none;
  }
}

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

.link-admin-grid {
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
}

.link-admin-stack,
.admin-link-list {
  display: grid;
  gap: 14px;
}

.link-edit-row {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(83, 73, 66, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.36);
  padding: 14px;
}

.link-row-head,
.link-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-row-head strong,
.link-preview-card strong {
  display: block;
}

.link-row-head small,
.link-preview-card small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.link-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.link-preview-card {
  display: grid;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.26)),
    rgba(244, 239, 234, 0.34);
  text-align: center;
  box-shadow: 0 18px 48px rgba(64, 55, 49, 0.12);
}

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

.link-avatar,
.linktree-avatar {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(143, 159, 189, 0.44));
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  box-shadow: 0 16px 34px rgba(64, 55, 49, 0.14);
}

.link-preview-list,
.linktree-buttons {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.link-preview-list a,
.linktree-button {
  display: grid;
  gap: 4px;
  min-height: 58px;
  align-content: center;
  border: 1px solid rgba(83, 73, 66, 0.13);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(64, 55, 49, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.link-preview-list a:hover,
.linktree-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(64, 55, 49, 0.12);
}

.link-preview-list span,
.linktree-button span {
  font-weight: 900;
}

.link-preview-list small,
.linktree-button small {
  color: var(--muted);
  font-size: 12px;
}

.linktree-body {
  min-height: 100svh;
  height: auto;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(244, 239, 234, 0.72), rgba(244, 239, 234, 0.2) 52%, rgba(49, 44, 41, 0.1)),
    linear-gradient(0deg, rgba(49, 44, 41, 0.16), rgba(255, 255, 255, 0.18)),
    url("assets/studio-fixed-background.png") center center / cover fixed no-repeat,
    #ded4cc;
}

.linktree-page {
  display: grid;
  width: min(620px, calc(100% - 28px));
  min-height: 100svh;
  place-items: center;
  margin: 0 auto;
  padding: 44px 0;
}

.linktree-card {
  display: grid;
  width: 100%;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 24px;
  padding: clamp(24px, 6vw, 42px);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.32));
  box-shadow: 0 30px 80px rgba(64, 55, 49, 0.2);
  text-align: center;
  backdrop-filter: blur(22px);
}

.linktree-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 12vw, 82px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.linktree-card > strong {
  color: var(--accent-dark);
}

.linktree-card > p:not(.eyebrow) {
  max-width: 430px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.65;
}

.linktree-button {
  min-height: 68px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.linktree-button:first-child {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.linktree-button:first-child small {
  color: rgba(255, 255, 255, 0.76);
}

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

@media (max-width: 660px) {
  .link-row-head,
  .link-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .link-actions .button {
    width: 100%;
  }

  .page-actions .button {
    width: 100%;
  }
}

.link-preview-list a:has(.link-button-logo),
.linktree-button:has(.link-button-logo) {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  text-align: left;
  padding-left: 12px;
}

.link-button-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(83, 73, 66, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.link-button-logo img {
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.link-button-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.link-button-copy span,
.link-button-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linktree-button:first-child .link-button-logo {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 420px) {
  .link-preview-list a:has(.link-button-logo),
  .linktree-button:has(.link-button-logo) {
    grid-template-columns: 38px minmax(0, 1fr);
    padding-left: 10px;
  }

  .link-button-logo {
    width: 38px;
    height: 38px;
  }
}

.link-avatar.has-image,
.linktree-avatar.has-image {
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
}

.link-avatar.has-image img,
.linktree-avatar.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PRW glass dashboard refresh */
:root {
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.76);
  --glass-soft: rgba(255, 255, 255, 0.36);
  --glass-line: rgba(255, 255, 255, 0.72);
  --ink-deep: #2f2b28;
  --ink-soft: #625a55;
  --blue: #7d96bd;
  --blue-deep: #49617f;
  --green: #768c7a;
  --clay: #a76f69;
  --panel-shadow: 0 22px 70px rgba(49, 44, 41, 0.14);
  --panel-shadow-soft: 0 14px 42px rgba(49, 44, 41, 0.1);
}

body,
.admin-body,
.customer-page,
.linktree-body {
  background:
    linear-gradient(90deg, rgba(236, 230, 225, 0.7), rgba(236, 230, 225, 0.18) 46%, rgba(53, 49, 46, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(49, 44, 41, 0.06)),
    url("assets/studio-fixed-background.png") center center / cover fixed no-repeat,
    #c9beb8;
  color: var(--ink-deep);
}

.site-header {
  min-height: 72px;
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(235, 229, 224, 0.76);
  box-shadow: 0 14px 42px rgba(49, 44, 41, 0.12);
}

.brand {
  gap: 9px;
  color: var(--ink-deep);
}

.brand-mark {
  font-size: 34px;
  line-height: 1;
}

.desktop-nav {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 12px 36px rgba(49, 44, 41, 0.08);
}

.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.86);
}

.button,
.chip,
.icon-button,
.text-button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.chip:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button.primary,
.linktree-button:first-child {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 14px 34px rgba(73, 97, 127, 0.26);
}

.button.danger {
  border-color: rgba(167, 111, 105, 0.28);
  color: var(--clay);
  background: rgba(255, 255, 255, 0.55);
}

.panel,
.cart-panel,
.product-card,
.stat-card,
.admin-hero,
.page-title,
.link-preview-card,
.linktree-card,
.stock-item,
.order-card,
.summary-item,
.cart-item,
.admin-product,
.customer-row,
.payment-row,
.link-edit-row {
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.28)),
    rgba(238, 232, 226, 0.34);
  box-shadow: var(--panel-shadow-soft);
  backdrop-filter: blur(24px) saturate(118%);
}

.panel,
.page-title,
.admin-hero {
  box-shadow: var(--panel-shadow);
}

.page-title,
.admin-hero {
  position: relative;
  overflow: hidden;
}

.page-title::before,
.admin-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.12) 48%, rgba(125, 150, 189, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.page-title > *,
.admin-hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--blue-deep);
  letter-spacing: 0;
  opacity: 0.9;
}

.page-title h1,
.admin-hero h1,
.section-heading h2 {
  color: var(--ink-deep);
}

.page-title h1,
.admin-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.94;
}

.page-title p:not(.eyebrow),
.admin-hero p,
.section-heading p,
.product-meta,
.stock-info small,
.summary-item small,
.cart-item small,
.order-card small,
.customer-row small,
.payment-row small,
.profile-box small,
.admin-product small,
.link-preview-card small,
.linktree-button small {
  color: var(--ink-soft);
}

input,
select,
textarea,
.size-select,
.search-input {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

input:focus,
select:focus,
textarea:focus,
.search-input:focus {
  border-color: rgba(73, 97, 127, 0.46);
  box-shadow: 0 0 0 4px rgba(125, 150, 189, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.status-pill,
.product-badge,
.cart-count {
  background: rgba(73, 97, 127, 0.12);
  color: var(--blue-deep);
}

.status-pill.muted-pill {
  background: rgba(98, 90, 85, 0.12);
  color: var(--ink-soft);
}

.hero {
  align-items: center;
  padding-top: 92px;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(238, 232, 226, 0.74), rgba(238, 232, 226, 0.18) 48%, rgba(49, 44, 41, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
}

.hero-content {
  max-width: 680px;
  color: var(--ink-deep);
  text-shadow: none;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(66px, 11vw, 146px);
  line-height: 0.86;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.45;
}

.login-glass {
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18));
  color: var(--ink-deep);
  text-shadow: none;
}

.login-glass small {
  color: var(--ink-soft);
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  min-height: 410px;
  overflow: hidden;
}

.product-media {
  min-height: 230px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(205, 197, 188, 0.38)),
    var(--swatch);
}

.product-body,
.admin-product,
.stock-item,
.order-card,
.customer-row,
.payment-row,
.link-edit-row {
  background: rgba(255, 255, 255, 0.34);
}

.admin-body .toast,
.toast {
  border-radius: 8px;
}

.dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: 18px;
  margin-top: 18px;
}

.dashboard-wide-panel {
  grid-column: 1 / -1;
}

.dashboard-line-chart {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(rgba(73, 97, 127, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(73, 97, 127, 0.08) 1px, transparent 1px) 0 0 / 12.5% 100%,
    rgba(255, 255, 255, 0.36);
}

.dashboard-line-chart::before {
  position: absolute;
  inset: 15% 7% 16%;
  content: "";
  border-bottom: 3px solid rgba(73, 97, 127, 0.68);
  border-radius: 50%;
  transform: skewX(-22deg) rotate(-4deg);
  box-shadow: 0 -30px 0 -28px rgba(73, 97, 127, 0.44), 0 -66px 0 -64px rgba(118, 140, 122, 0.34);
}

.dashboard-line-chart span {
  position: absolute;
  left: var(--x);
  bottom: 18px;
  width: 10px;
  height: var(--h);
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--blue), rgba(73, 97, 127, 0.18));
  box-shadow: 0 10px 22px rgba(73, 97, 127, 0.16);
}

.compact-feed,
.compact-inventory {
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.compact-feed .order-card,
.compact-inventory .stock-item {
  box-shadow: none;
}

@media (min-width: 981px) {
  .admin-body {
    padding-left: 250px;
  }

  .admin-body .site-header.admin-header {
    position: fixed;
    inset: 24px auto 24px 24px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    align-items: stretch;
    width: 202px;
    min-height: 0;
    height: calc(100svh - 48px);
    padding: 22px 12px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 8px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.26));
    box-shadow: 0 24px 76px rgba(49, 44, 41, 0.16);
    backdrop-filter: blur(28px) saturate(118%);
  }

  .admin-header .brand {
    display: grid;
    justify-items: center;
    gap: 2px;
    width: 100%;
    padding: 2px 8px 20px;
    text-align: center;
  }

  .admin-header .brand-mark {
    font-size: 37px;
  }

  .admin-header .brand span:last-child {
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .admin-header .desktop-nav {
    display: grid;
    align-content: start;
    gap: 5px;
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .admin-header .desktop-nav a {
    justify-content: flex-start;
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13px;
  }

  .admin-header .desktop-nav a::before {
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border: 1px solid rgba(73, 97, 127, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    content: "";
  }

  .admin-header .desktop-nav a[aria-current="page"] {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.82);
    color: var(--blue-deep);
    box-shadow: 0 12px 28px rgba(49, 44, 41, 0.08);
  }

  .admin-header .desktop-nav a[aria-current="page"]::before {
    background: var(--blue);
    border-color: var(--blue);
  }

  .admin-header > .button {
    justify-self: stretch;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    text-align: center;
  }

  .admin-body .admin-mobile-nav {
    display: none !important;
  }

  .admin-body > main,
  .admin-body .admin-main {
    width: auto;
    max-width: none;
    height: 100svh;
    margin: 0;
    padding: 24px 32px 74px;
  }

  .admin-hero {
    min-height: 236px;
    margin-top: 0;
    padding: 32px;
  }

  .admin-hero p {
    max-width: 720px;
  }

  .stat-grid {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
  }

  .stat-card {
    min-height: 126px;
    padding: 20px;
  }

  .stat-card strong {
    font-size: clamp(28px, 3.5vw, 42px);
  }

  .admin-grid {
    grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
  }

  .orders-list.admin-orders:not(.compact-feed) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-list,
  .payment-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .admin-body {
    padding-left: 0;
  }

  .dashboard-workspace {
    grid-template-columns: 1fr;
  }

  .admin-body .site-header.admin-header {
    position: sticky;
    border-radius: 0;
  }

  .admin-body .admin-main {
    height: calc(100svh - 134px);
  }
}

@media (max-width: 660px) {
  .page-title,
  .admin-hero,
  .panel {
    padding: 18px;
  }

  .page-title h1,
  .admin-hero h1 {
    font-size: 42px;
  }

  .dashboard-line-chart {
    min-height: 210px;
  }

  .hero h1 {
    font-size: 58px;
  }
}

.linktree-card {
  max-width: 560px;
  border-radius: 8px;
}

.linktree-button {
  border-radius: 8px;
}

.link-avatar,
.linktree-avatar {
  border-radius: 8px;
}
/* PRW luxury studio SaaS dashboard */
:root {
  --lux-bg: #c3b8b5;
  --lux-studio: #dedbd7;
  --lux-paper: #f5f3f0;
  --lux-object: #c8c3bd;
  --lux-ink: #27313a;
  --lux-muted: #6f767a;
  --lux-blue: #5c7794;
  --lux-blue-dark: #2f4d67;
  --lux-gold: #d4b27e;
  --lux-glass: rgba(255, 255, 255, 0.46);
  --lux-glass-strong: rgba(255, 255, 255, 0.62);
  --lux-border: rgba(255, 255, 255, 0.68);
  --lux-shadow: 0 22px 70px rgba(62, 54, 50, 0.13);
  --lux-shadow-soft: 0 12px 34px rgba(62, 54, 50, 0.09);
}

.admin-body {
  background:
    linear-gradient(90deg, rgba(195, 184, 181, 0.56), rgba(245, 243, 240, 0.14) 45%, rgba(39, 49, 58, 0.12)),
    linear-gradient(180deg, rgba(245, 243, 240, 0.26), rgba(195, 184, 181, 0.1)),
    url("assets/studio-fixed-background.png") center center / cover fixed no-repeat,
    var(--lux-bg);
  color: var(--lux-ink);
}

.admin-body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 34%, rgba(255, 255, 255, 0.26), transparent 26%),
    linear-gradient(118deg, transparent 0 18%, rgba(255, 255, 255, 0.18) 18% 23%, transparent 23% 100%);
  mix-blend-mode: screen;
}

.admin-body .site-header.admin-header,
.studio-topbar,
.studio-hero,
.metric-glass-card,
.panel,
.rail-card,
.quotation-paper {
  border: 1px solid var(--lux-border);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28)),
    rgba(245, 243, 240, 0.24);
  box-shadow: var(--lux-shadow-soft);
  backdrop-filter: blur(20px) saturate(118%);
}

.admin-body .site-header.admin-header,
.studio-hero,
.quotation-stage,
.quotation-paper {
  box-shadow: var(--lux-shadow);
}

@media (min-width: 981px) {
  .admin-body {
    padding-left: 198px;
  }

  .admin-body .site-header.admin-header {
    inset: 22px auto 22px 22px;
    width: 170px;
    height: calc(100svh - 44px);
    padding: 20px 10px 12px;
  }

  .admin-header .brand {
    padding: 0 6px 22px;
  }

  .admin-header .brand-mark {
    font-size: 34px;
    font-family: Georgia, "Times New Roman", serif;
  }

  .admin-header .brand span:last-child {
    font-size: 11px;
  }

  .admin-header .desktop-nav a {
    min-height: 35px;
    padding: 0 10px;
    color: var(--lux-muted);
    font-size: 12px;
    font-weight: 750;
  }

  .admin-header .desktop-nav a::before {
    width: 7px;
    height: 7px;
    margin-right: 8px;
  }

  .admin-header .desktop-nav a:hover,
  .admin-header .desktop-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.64);
    color: var(--lux-blue-dark);
  }

  .admin-header > .button {
    min-height: 36px;
    font-size: 12px;
  }

  .admin-body .admin-main,
  .admin-body > main {
    height: 100svh;
    padding: 22px 28px 72px 0;
  }
}

.studio-dashboard {
  display: grid;
  align-content: start;
  gap: 16px;
}

.studio-topbar {
  display: grid;
  grid-template-columns: minmax(260px, 560px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 12px;
}

.studio-search {
  position: relative;
  display: block;
  color: var(--lux-muted);
}

.studio-search span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0;
}

.studio-search span::before {
  content: "⌕";
  font-size: 18px;
  color: rgba(47, 77, 103, 0.56);
}

.studio-search input {
  min-height: 40px;
  padding-left: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.studio-actions,
.quotation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.glass-icon-button,
.glass-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--lux-blue-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.glass-icon-button {
  width: 38px;
}

.glass-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.glass-toggle {
  gap: 8px;
  padding: 0 12px;
  color: var(--lux-muted);
  font-size: 12px;
  font-weight: 800;
}

.glass-toggle span {
  width: 22px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lux-blue), var(--lux-blue-dark));
  box-shadow: inset 10px 0 0 rgba(255, 255, 255, 0.82);
}

.studio-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 210px;
  padding: 30px;
  overflow: hidden;
}

.studio-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(108deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.1) 52%, rgba(92, 119, 148, 0.12)),
    radial-gradient(circle at 84% 22%, rgba(255, 255, 255, 0.38), transparent 22%);
  pointer-events: none;
}

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

.studio-kicker,
.studio-hero p,
.metric-glass-card span,
.metric-glass-card small,
.rail-card small,
.studio-table th,
.studio-table td,
.quotation-paper small,
.quotation-paper dt,
.quotation-paper dd,
.quote-table th,
.quote-table td {
  letter-spacing: 0;
}

.studio-kicker {
  margin: 0 0 10px;
  color: var(--lux-blue-dark);
  font-size: 12px;
  font-weight: 850;
}

.studio-hero h1 {
  margin: 0;
  color: var(--lux-ink);
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 800;
  line-height: 1.04;
}

.studio-hero p:not(.studio-kicker) {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--lux-muted);
  font-size: 14px;
  line-height: 1.7;
}

.studio-hero-meta {
  min-width: 180px;
  text-align: right;
}

.studio-hero-meta strong {
  display: block;
  color: var(--lux-paper);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800;
  text-shadow: 0 12px 32px rgba(47, 77, 103, 0.22);
}

.studio-hero-meta span {
  color: rgba(39, 49, 58, 0.66);
  font-size: 12px;
  font-weight: 800;
}

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

.metric-glass-card {
  min-height: 112px;
  padding: 16px;
}

.metric-glass-card span,
.metric-glass-card small {
  display: block;
  color: var(--lux-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.metric-glass-card strong {
  display: block;
  margin: 10px 0 6px;
  color: var(--lux-ink);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1;
}

.studio-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(260px, 0.58fr);
  gap: 14px;
  align-items: start;
}

.studio-right-rail {
  display: grid;
  gap: 12px;
  grid-row: span 3;
}

.rail-card {
  padding: 16px;
}

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

.rail-card p {
  margin: 0 0 10px;
}

.rail-card strong {
  color: var(--lux-ink);
  font-size: 14px;
}

.invoice-card span {
  margin: 10px 0 4px;
  color: var(--lux-blue-dark);
  font-size: 26px;
  font-weight: 850;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.calendar-strip span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--lux-muted);
  font-size: 12px;
  font-weight: 800;
}

.calendar-strip .active {
  background: var(--lux-blue);
  color: #fff;
}

.studio-donut-panel,
.studio-line-panel,
.studio-table-panel,
.quotation-stage {
  min-width: 0;
}

.studio-donut-wrap {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 220px;
}

.studio-donut {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--lux-blue-dark) 0 58%, var(--lux-gold) 58% 78%, #8b938d 78% 89%, #c8c3bd 89% 100%);
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.32), 0 18px 42px rgba(62, 54, 50, 0.12);
}

.studio-donut::after {
  position: absolute;
  inset: 34px;
  content: "";
  border-radius: 999px;
  background: rgba(245, 243, 240, 0.86);
  backdrop-filter: blur(16px);
}

.studio-donut span {
  position: relative;
  z-index: 1;
  display: grid;
  color: var(--lux-ink);
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.studio-donut small {
  color: var(--lux-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.studio-chart-legend {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.studio-chart-legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--lux-muted);
  font-size: 12px;
  font-weight: 750;
}

.studio-chart-legend span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--legend);
}

.studio-chart-legend strong {
  color: var(--lux-ink);
}

.studio-line-chart {
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.studio-line-chart svg {
  width: 100%;
  height: 220px;
  display: block;
}

.studio-line-chart .grid {
  fill: none;
  stroke: rgba(111, 118, 122, 0.14);
  stroke-width: 1;
}

.studio-line-chart .area {
  fill: rgba(92, 119, 148, 0.12);
}

.studio-line-chart .line {
  fill: none;
  stroke: var(--lux-blue-dark);
  stroke-width: 3;
  stroke-linecap: round;
}

.studio-table-panel {
  grid-column: 1 / 3;
}

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

.studio-table,
.quote-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--lux-ink);
}

.studio-table th,
.studio-table td,
.quote-table th,
.quote-table td {
  border-bottom: 1px solid rgba(111, 118, 122, 0.12);
  padding: 10px 8px;
  text-align: left;
  white-space: nowrap;
}

.studio-table th,
.quote-table th {
  color: var(--lux-muted);
  font-size: 11px;
  font-weight: 850;
}

.studio-table td,
.quote-table td {
  font-size: 12px;
  font-weight: 650;
}

.table-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(212, 178, 126, 0.18);
  color: #8b6d3e;
  font-size: 11px;
  font-weight: 850;
}

.table-pill.blue {
  background: rgba(92, 119, 148, 0.16);
  color: var(--lux-blue-dark);
}

.table-pill.gray {
  background: rgba(111, 118, 122, 0.12);
  color: var(--lux-muted);
}

.progress-line {
  display: block;
  width: 92px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(111, 118, 122, 0.14);
}

.progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lux-blue), var(--lux-blue-dark));
}

.quotation-stage {
  grid-column: 1 / -1;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18)),
    rgba(245, 243, 240, 0.18);
}

.quotation-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.quotation-toolbar h2 {
  margin: 0;
  font-size: 22px;
}

.quotation-paper {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.86);
  color: var(--lux-ink);
}

.quotation-paper header,
.quotation-info-grid,
.quote-contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.quotation-paper header {
  margin-bottom: 22px;
}

.quotation-paper h3 {
  margin: 0;
  font-size: 30px;
}

.quotation-paper header span {
  color: var(--lux-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.quotation-paper header strong {
  color: rgba(39, 49, 58, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 0.9;
  text-align: right;
}

.quote-info-card {
  border-radius: 8px;
  padding: 14px;
  background: rgba(92, 119, 148, 0.1);
}

.quote-info-card p {
  margin: 8px 0 0;
  color: var(--lux-muted);
  font-size: 12px;
  line-height: 1.55;
}

.quotation-info-grid dl {
  display: grid;
  gap: 8px;
  min-width: 190px;
  margin: 0;
}

.quotation-info-grid dl div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
}

.quotation-paper dt,
.quotation-paper dd,
.quote-contact small,
.quote-contact span {
  margin: 0;
  color: var(--lux-muted);
  font-size: 12px;
}

.quote-contact {
  margin: 18px 0;
  border-top: 1px solid rgba(111, 118, 122, 0.12);
  border-bottom: 1px solid rgba(111, 118, 122, 0.12);
  padding: 14px 0;
}

.quote-contact div {
  display: grid;
  gap: 3px;
}

.quote-contact strong {
  font-size: 13px;
}

.compact-feed {
  max-height: 330px;
}

.compact-feed .order-card {
  padding: 12px;
}

.compact-feed .order-items,
.compact-feed .status-select {
  display: none;
}

.compact-feed .order-top {
  align-items: flex-start;
}

@media (max-width: 1240px) {
  .studio-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .studio-dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  }

  .studio-right-rail {
    grid-column: 2;
    grid-row: span 3;
  }

  .studio-line-panel,
  .studio-table-panel {
    grid-column: 1;
  }
}

@media (max-width: 980px) {
  .studio-topbar,
  .studio-hero,
  .quotation-toolbar,
  .quotation-paper header,
  .quotation-info-grid,
  .quote-contact {
    grid-template-columns: 1fr;
  }

  .studio-topbar,
  .studio-hero,
  .quotation-toolbar {
    align-items: stretch;
  }

  .studio-actions,
  .quotation-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .studio-metrics,
  .studio-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .studio-right-rail,
  .studio-line-panel,
  .studio-table-panel {
    grid-column: auto;
  }

  .studio-hero-meta {
    text-align: left;
  }
}

@media (max-width: 660px) {
  .studio-topbar,
  .studio-hero,
  .metric-glass-card,
  .rail-card,
  .quotation-stage {
    padding: 14px;
  }

  .studio-actions .button,
  .quotation-actions .button {
    flex: 1 1 120px;
  }

  .studio-donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .quotation-paper {
    padding: 18px;
  }

  .quotation-info-grid dl div {
    grid-template-columns: 1fr;
  }
}
/* PRW login system styles */
.login-body {
  min-height: 100svh;
  height: auto;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(195, 184, 181, 0.68), rgba(245, 243, 240, 0.18) 48%, rgba(39, 49, 58, 0.14)),
    linear-gradient(180deg, rgba(245, 243, 240, 0.28), rgba(195, 184, 181, 0.1)),
    url("assets/studio-fixed-background.png") center center / cover fixed no-repeat,
    var(--lux-bg, #c3b8b5);
  color: var(--lux-ink, #27313a);
}

.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  width: min(1180px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 44px 0;
}

.login-copy {
  display: grid;
  gap: 42px;
}

.login-brand {
  display: inline-grid;
  width: fit-content;
  color: var(--lux-ink, #27313a);
  line-height: 0.9;
}

.login-brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7vw, 96px);
  font-weight: 400;
}

.login-brand strong {
  justify-self: end;
  font-size: 18px;
  font-weight: 900;
}

.login-copy h1 {
  margin: 0;
  color: var(--lux-ink, #27313a);
  font-size: clamp(48px, 6.8vw, 92px);
  line-height: 0.96;
  font-weight: 850;
}

.login-copy p:not(.studio-kicker) {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--lux-muted, #6f767a);
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.55;
}

.login-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 10px;
}

.login-stats span,
.login-panel,
.login-error {
  border: 1px solid var(--lux-border, rgba(255,255,255,0.68));
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.58), rgba(255,255,255,0.26));
  box-shadow: var(--lux-shadow-soft, 0 12px 34px rgba(62,54,50,0.09));
  backdrop-filter: blur(20px) saturate(118%);
}

.login-stats span {
  display: grid;
  gap: 4px;
  padding: 14px;
  color: var(--lux-muted, #6f767a);
  font-size: 12px;
  font-weight: 800;
}

.login-stats strong {
  color: var(--lux-blue-dark, #2f4d67);
  font-size: 24px;
  line-height: 1;
}

.login-panel {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 38px);
}

.login-panel-mark {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 8px;
  background: rgba(255,255,255,0.52);
  color: var(--lux-ink, #27313a);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.login-panel h2 {
  margin: 0;
  color: var(--lux-ink, #27313a);
  font-size: 34px;
  line-height: 1;
}

.login-panel > p:not(.studio-kicker),
.login-note {
  margin: 0;
  color: var(--lux-muted, #6f767a);
  font-size: 13px;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 13px;
  margin-top: 4px;
}

.login-form input {
  min-height: 46px;
  font-size: 14px;
}

.login-error {
  padding: 11px 12px;
  background: rgba(167, 111, 105, 0.12);
  color: #8f4b45;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 860px) {
  .login-page {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .login-copy {
    gap: 22px;
  }

  .login-stats {
    grid-template-columns: 1fr;
  }
}