/* [project]/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --canvas: #020617;
  --ink: #f1f5f9;
  --ink-strong: #f8fafc;
  --muted: #94a3b8;
  --faint: #64748b;
  --line: #ffffff1a;
  --paper: #0f172a;
  --card: #1e293b;
  --well: #162033;
  --action: #f8fafc;
  --action-ink: #0f172a;
  --action-hover: #e2e8f0;
  --accent: var(--action);
  --accent-ink: var(--action-ink);
  --danger: #ef4444;
  --danger-ink: #fecaca;
  --ok: #4ade80;
  --ok-ink: #bbf7d0;
  --gold: #f5c542;
  --shadow: none;
  --tab: 4.6rem;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  font-family: Segoe UI, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  background: var(--canvas);
  color: var(--ink);
  min-height: 100dvh;
}

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

input, textarea {
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

input:focus, textarea:focus, select:focus, input:focus-visible, textarea:focus-visible, select:focus-visible {
  box-shadow: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

a, button {
  touch-action: manipulation;
}

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

.app {
  flex-direction: column;
  min-height: 100dvh;
  display: flex;
}

.column {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.topbar {
  z-index: 20;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #f6f3eeeb;
  border-bottom: 1px solid #0000;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
  position: sticky;
  top: 0;
}

.brand {
  letter-spacing: -.03em;
  font-weight: 700;
}

.who {
  color: var(--muted);
  text-align: right;
  max-width: 55%;
  font-size: .92rem;
}

.main {
  padding: 8px 16px calc(var(--tab) + var(--safe-bottom) + 16px);
  flex: 1;
}

.desk-only, .sidemenu, .tabbar {
  display: none;
}

.tabbar-unused {
  z-index: 30;
  padding: 6px 8px calc(6px + var(--safe-bottom));
  color: #f5f0e8;
  background: #1c1917;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  display: grid;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.tabbar a {
  color: #d6d3d1;
  border-radius: 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  min-height: 48px;
  font-size: .72rem;
  display: flex;
}

.tabbar a.active {
  color: #fff;
  background: #292524;
}

.tab-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.page-title {
  letter-spacing: 0;
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.lede {
  color: var(--muted);
  margin: -4px 0 14px;
}

.stats, .cards, .stack {
  gap: 10px;
  display: grid;
}

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

.card, .stat, .panel {
  background: var(--card);
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 14px 16px;
}

.stat b {
  letter-spacing: -.03em;
  font-size: 1.35rem;
  display: block;
}

.stat span, .muted {
  color: var(--muted);
  font-size: .86rem;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 650;
}

.card-meta {
  color: var(--muted);
  gap: 3px;
  margin-top: 6px;
  font-size: .9rem;
  display: grid;
}

.card {
  text-align: left;
  width: 100%;
}

.card:active {
  transform: scale(.99);
}

.order-inbox-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  display: flex;
}

.order-inbox-head .page-title {
  letter-spacing: -.03em;
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.order-bell {
  color: #e2e8f0;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
}

.order-search {
  position: relative;
}

.order-search .material-icons {
  color: #94a3b8;
  pointer-events: none;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
}

.order-search .search {
  background: #1e293b;
  border-radius: 12px;
  min-height: 48px;
  padding-left: 40px;
}

.order-filters {
  scrollbar-width: none;
  gap: 8px;
  margin: 14px 0 8px;
  display: flex;
  overflow-x: auto;
}

.order-filters::-webkit-scrollbar {
  display: none;
}

.order-filters button {
  color: #e2e8f0;
  white-space: nowrap;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 600;
}

.order-filters button.on {
  color: #0f172a;
  background: #f8fafc;
  border-color: #f8fafc;
}

.order-day {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 14px 0 8px;
  font-size: .72rem;
  font-weight: 700;
}

.order-rows {
  gap: 10px;
  display: grid;
}

.order-row {
  color: #f8fafc;
  background: #1e293b;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  gap: 4px;
  padding: 14px 16px;
  display: grid;
}

.order-row-top, .order-row-bot {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.order-row-top b {
  font-size: 1.05rem;
}

.order-row-top span, .order-row-who {
  color: #94a3b8;
}

.order-row-bot b {
  font-size: 1rem;
}

.order-row-bot b span {
  color: #cbd5e1;
  margin-left: 8px;
  font-weight: 500;
}

.order-pill {
  white-space: nowrap;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: .78rem;
  font-weight: 700;
}

.order-pill.new {
  color: #0f172a;
  background: #f8fafc;
}

.order-pill.wait {
  color: #fde68a;
  background: #92400e;
}

.order-pill.confirmed {
  color: #fff;
  background: #1d4ed8;
}

.order-pill.packing {
  color: #e2e8f0;
  background: #334155;
}

.chips, .seg {
  scrollbar-width: none;
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 4px;
  display: flex;
  overflow-x: auto;
}

.chips::-webkit-scrollbar {
  display: none;
}

.seg::-webkit-scrollbar {
  display: none;
}

.chip, .seg button, .btn, .btn-ghost, .btn-danger {
  text-align: center;
  color: #e2e8f0;
  white-space: nowrap;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  line-height: 1;
  display: inline-flex;
}

.chip.active, .seg button.active, .btn {
  background: var(--action);
  color: var(--action-ink);
  border-color: var(--action);
}

.btn:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
}

.btn-ghost {
  color: #e2e8f0;
  background: none;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-block {
  width: 100%;
}

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

.search:focus, .field:focus, select.field:focus, textarea.field:focus, .admin-nav-search input:focus {
  border-color: #f8fafcd9;
  outline: none;
}

.eph-search:focus-within, .pdesk-search:focus-within, .select-popup-search:focus-within {
  border-color: #f8fafcd9;
}

.search, .field, select.field, textarea.field {
  color: #e2e8f0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 4px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 16px;
}

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

label.lbl, .lbl {
  color: var(--muted);
  gap: 6px;
  font-size: .86rem;
  display: grid;
}

.form {
  gap: 12px;
  display: grid;
}

.banner {
  color: #fecaca;
  background: #ef444429;
  border-radius: 4px;
  margin-bottom: 12px;
  padding: 12px 14px;
}

.banner.ok {
  color: #bbf7d0;
  background: #22c55e29;
}

.admin-header:has(.notice) .admin-header-bar {
  visibility: hidden;
}

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

.admin-header-notice:not(:empty) {
  z-index: 5;
  display: flex;
  position: absolute;
  inset: 0;
}

.admin-header-notice .notices {
  flex: 1;
  width: 100%;
  min-width: 0;
  display: flex;
}

.notice {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: env(safe-area-inset-top, 0px) 16px 0 .5rem;
  box-sizing: border-box;
  flex: 1;
  align-items: center;
  gap: 8px;
  display: flex;
}

.notice.ok {
  color: #052e16;
  background: #22c55e;
}

.notice.error {
  color: #fff;
  background: #ef4444;
}

.notice.warning {
  color: #1c1403;
  background: #f5c542;
}

.notice > .material-icons {
  color: inherit;
  flex: none;
  font-size: 22px;
}

.notice b {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 0 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
}

.notice-action, .notice-close {
  color: inherit;
  background: none;
  border: 0;
  flex: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  line-height: 1;
  display: inline-flex;
}

.notice-action {
  white-space: nowrap;
  height: 32px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.notice-close {
  width: 44px;
  height: 44px;
}

.notice-close .material-icons {
  color: inherit;
  font-size: 20px;
}

body:not(:has(.admin-header)) .notices {
  z-index: 1600;
  width: auto;
  margin: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.table-wrap {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  display: block;
  overflow: auto;
}

table {
  border-collapse: collapse;
  background: var(--card);
  width: 100%;
}

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

th {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}

tr.clickable {
  cursor: pointer;
}

.sheet-root {
  z-index: 40;
  position: fixed;
  inset: 0;
}

.sheet-backdrop {
  background: #1c191773;
  border: 0;
  position: absolute;
  inset: 0;
}

.sheet {
  background: var(--paper);
  max-height: min(92dvh, 100%);
  padding: 8px 16px calc(16px + var(--safe-bottom));
  box-shadow: var(--shadow);
  border-radius: 22px 22px 0 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: auto;
}

.sheet header {
  background: var(--paper);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0 12px;
  display: flex;
  position: sticky;
  top: 0;
}

.sheet h2 {
  margin: 0;
  font-size: 1.15rem;
}

.kv {
  gap: 8px;
  display: grid;
}

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

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

.kv dd {
  text-align: right;
  margin: 0;
}

.step {
  grid-template-columns: 16px 1fr;
  gap: 10px;
  display: grid;
}

.dot {
  background: var(--line);
  border-radius: 99px;
  width: 12px;
  height: 12px;
  margin-top: 4px;
}

.dot.on {
  background: var(--accent);
}

.sticky-action {
  padding-top: 8px;
  position: sticky;
  bottom: 0;
}

.login-page {
  background: var(--canvas);
  flex-direction: column;
  min-height: 100dvh;
  display: flex;
}

.login-left-col {
  color: #1e293b;
  background: #f8fafc;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  display: none;
}

.login-left-content {
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 700px;
  display: flex;
}

.login-brand {
  color: #1e293b;
  margin: 0;
  font-size: 2rem;
}

.login-tagline {
  color: #64748b;
  margin: .25rem 0 0;
  font-weight: 400;
}

.info-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 16px #00000014;
}

.info-title {
  color: #1e293b;
}

.info-text {
  color: #64748b;
  margin: .4rem 0 0;
  line-height: 1.6;
}

.login-right-col {
  background: var(--canvas);
  flex: 1;
  min-height: 100dvh;
  padding: 0;
  display: flex;
}

.login-card-dark {
  width: 100%;
  min-height: 100dvh;
  box-shadow: none;
  padding: calc(32px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px));
  background: none;
  border: 0;
  border-radius: 0;
  flex-direction: column;
  flex: 1;
  gap: 22px;
  display: flex;
}

.login-brand-row {
  color: #f1f5f9;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  display: flex;
}

.login-mark {
  background: var(--action);
  width: 36px;
  height: 36px;
  color: var(--action-ink);
  letter-spacing: -.04em;
  border-radius: 9px;
  place-items: center;
  font-weight: 700;
  display: grid;
}

.login-staff {
  color: #cbd5e1;
  background: #94a3b829;
  border-radius: 6px;
  align-items: center;
  height: 22px;
  margin-left: auto;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
}

.login-title {
  color: #f8fafc;
  letter-spacing: -.02em;
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
}

.login-subtitle {
  color: #94a3b8;
  margin: 6px 0 0;
  font-size: .92rem;
  line-height: 1.45;
}

.login-card-dark .lbl {
  color: #94a3b8;
  font-size: .75rem;
  font-weight: 600;
}

.login-password {
  position: relative;
}

.login-input {
  color: #f8fafc;
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}

.login-password .login-input {
  padding-right: 48px;
}

.login-input:focus {
  border-color: #f8fafcd9;
  outline: none;
}

.login-reveal {
  color: #94a3b8;
  background: none;
  border: 0;
  border-radius: 8px;
  place-items: center;
  width: 44px;
  height: 44px;
  display: grid;
  position: absolute;
  bottom: 4px;
  right: 4px;
}

.login-submit {
  border-radius: 10px;
  min-height: 52px;
  font-size: .95rem;
  font-weight: 600;
}

.login-foot {
  text-align: center;
  color: #94a3b8;
  margin: auto 0 0;
  font-size: .75rem;
  line-height: 1.5;
}

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

@media (min-width: 800px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards.dense {
    grid-template-columns: 1fr 1fr;
  }

  .cards.switch {
    display: none;
  }

  .login-page {
    flex-direction: row;
  }

  .login-left-col {
    flex: 0 0 66.67%;
    max-width: 66.67%;
    display: flex;
  }

  .login-right-col {
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }

  .sheet {
    border-radius: 22px;
    width: min(680px, 100vw - 48px);
    max-height: 86dvh;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
  }
}

.mlib {
  display: none;
}

.media-head, .media-tools, .media-bulk {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.media-tools .search {
  flex: 1;
  min-width: 0;
}

.media-browser {
  gap: 16px;
  display: grid;
}

.media-folders {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  display: flex;
}

.media-folders-head {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 6px 8px;
  font-size: .75rem;
}

.media-folders button {
  color: #e2e8f0;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 4px;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 8px;
  display: flex;
}

.media-folders button.active, .media-folders button:hover {
  background: #f8fafc1a;
}

.media-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  display: grid;
}

.media-card {
  background: var(--card);
  border: 1px solid #334155;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.media-card.selected {
  outline: 2px solid var(--action);
}

.media-card img {
  object-fit: cover;
  background: #e7e5e4;
  width: 100%;
  height: 140px;
  display: block;
}

.media-open, .media-check {
  background: none;
  border: 0;
  padding: 0;
}

.media-open {
  width: 100%;
  display: block;
}

.media-check {
  background: #fff;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  position: absolute;
  top: 8px;
  left: 8px;
}

.media-name {
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 8px 10px 10px;
  font-size: .78rem;
  overflow: hidden;
}

.hero-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 10px;
  display: grid;
}

.hero-row img {
  object-fit: cover;
  background: #e7e5e4;
  border-radius: 10px;
  width: 112px;
  height: 72px;
}

.hero-frame {
  background: #0f2a44;
  border-radius: 18px;
  overflow: hidden;
}

.hero-frame-mobile {
  max-width: 280px;
  margin: 0 auto;
}

.hero-stage {
  aspect-ratio: 16 / 6;
  color: #fff;
  text-align: left;
  border: 0;
  width: 100%;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
}

.hero-frame-mobile .hero-stage {
  aspect-ratio: 4 / 5;
}

.hero-stage img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-overlay, .hero-empty {
  position: absolute;
  inset: 0;
}

.hero-empty {
  color: #fff;
  place-items: center;
  display: grid;
}

.hero-focal {
  pointer-events: none;
  border: 2px solid #fff;
  border-radius: 99px;
  width: 14px;
  height: 14px;
  position: absolute;
  transform: translate(-50%, -50%);
}

@media (min-width: 900px) {
  .media-browser {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }

  .media-folders {
    max-height: calc(100dvh - 120px);
    position: sticky;
    top: 12px;
    overflow: auto;
  }
}

@media (max-width: 767px) {
  .media-desk {
    display: none;
  }

  .mlib {
    padding: 8px 16px calc(28px + env(safe-area-inset-bottom));
    color: #f1f5f9;
    background: #020617;
    flex-direction: column;
    gap: 14px;
    min-height: calc(100dvh - 52px);
    margin: -.75rem -.75rem 0;
    display: flex;
  }

  .mlib-title {
    align-items: center;
    gap: 8px;
    min-height: 40px;
    display: flex;
  }

  .mlib-title b {
    letter-spacing: -.03em;
    text-align: left;
    flex: 1;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
  }

  .mlib-title > button {
    color: #f1f5f9;
    background: none;
    border: 0;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
  }

  .mlib-search {
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .mlib-find {
    color: #94a3b8;
    background: #162033;
    border: 1px solid #0000;
    border-radius: 14px;
    flex: 1;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 46px;
    padding: 0 12px;
    display: flex;
  }

  .mlib-find:focus-within {
    border-color: #f8fafcd9;
  }

  .mlib-find input {
    width: auto;
    min-width: 0;
    height: 100%;
    min-height: 0;
    box-shadow: none;
    color: #f1f5f9;
    background: none;
    border: 0;
    border-radius: 0;
    outline: none;
    flex: 1;
    margin: 0;
    padding: 0;
  }

  .mlib-upload {
    background: var(--action);
    height: 46px;
    color: var(--action-ink);
    border-radius: 14px;
    flex: none;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    font-weight: 700;
    display: inline-flex;
  }

  .mlib-upload.wide {
    background: var(--action);
    width: 100%;
    color: var(--action-ink);
  }

  .mlib-newfolder {
    background: var(--well);
    width: 46px;
    height: 46px;
    color: var(--gold);
    border: 0;
    border-radius: 14px;
    flex: none;
    place-items: center;
    padding: 0;
    display: grid;
  }

  .mlib-crumb {
    color: #94a3b8;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    margin-top: -6px;
    font-size: 14px;
    display: flex;
  }

  .mlib-crumb button {
    color: #94a3b8;
    background: none;
    border: 0;
    padding: 0;
    font-weight: 500;
  }

  .mlib-crumb b {
    color: #e2e8f0;
    font-weight: 600;
  }

  .mlib-crumb .material-icons {
    font-size: 16px;
  }

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

  .mlib-section span {
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
  }

  .mlib-section button {
    color: #e2e8f0;
    background: none;
    border: 0;
    align-items: center;
    gap: 2px;
    padding: 0;
    font-weight: 600;
    display: inline-flex;
  }

  .mlib-section .material-icons {
    font-size: 18px;
  }

  .mlib-folders {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    display: grid;
  }

  .mlib-folder {
    background: var(--card);
    color: #f1f5f9;
    border: 1px solid #ffffff14;
    border-radius: 16px;
    flex-direction: column;
    gap: 10px;
    min-height: 118px;
    padding: 12px;
    display: flex;
    position: relative;
  }

  .mlib-folder-top {
    justify-content: space-between;
    align-items: flex-start;
    display: flex;
  }

  .mlib-folder-icon {
    background: var(--paper);
    color: #94a3b8;
    border-radius: 10px;
    place-items: center;
    width: 36px;
    height: 36px;
    display: grid;
  }

  .mlib-folder-icon .material-icons {
    font-size: 20px;
  }

  .mlib-folder-hit {
    color: inherit;
    text-align: left;
    background: none;
    border: 0;
    padding: 0;
  }

  .mlib-folder-hit em {
    color: #94a3b8;
    margin-bottom: 4px;
    font-size: 12px;
    font-style: normal;
    display: block;
  }

  .mlib-folder b, .mlib-photo > b, .mlib-row b {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    display: block;
  }

  .mlib-folder small, .mlib-photo > small, .mlib-row small {
    color: #94a3b8;
    margin-top: 4px;
    font-size: 12px;
    display: block;
  }

  .mlib-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
    display: grid;
  }

  .mlib-photo {
    color: #f1f5f9;
    background: var(--card);
    border: 1px solid #ffffff14;
    border-radius: 16px;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    display: flex;
    position: relative;
    overflow: hidden;
  }

  .mlib-photo.menu-open, .mlib-folder.menu-open {
    z-index: 6;
  }

  .mlib-shot {
    background: #0f172a;
    border-radius: 0;
    position: relative;
    overflow: hidden;
  }

  .mlib-shot-hit {
    background: none;
    border: 0;
    padding: 0;
    display: block;
  }

  .mlib-shot img, .mlib-photo img {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    display: block;
  }

  .mlib-photo > b {
    padding: 10px 10px 0;
  }

  .mlib-photo > small {
    margin-top: 2px;
    padding: 0 10px 12px;
  }

  .mlib-kebab {
    color: #e2e8f0;
    background: #0f172a73;
    border: 0;
    border-radius: 8px;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    display: grid;
  }

  .mlib-shot .mlib-kebab, .mlib-check {
    position: absolute;
    top: 8px;
    right: 8px;
  }

  .mlib-check {
    color: #fff;
    background: #0f172a8c;
    border-radius: 50%;
  }

  .mlib-photo.on .mlib-shot {
    box-shadow: inset 0 0 0 3px var(--action);
  }

  .mlib-photo > b {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .mlib-menu {
    z-index: 7;
    background: #1e293b;
    border: 1px solid #ffffff1a;
    border-radius: 12px;
    min-width: 148px;
    padding: 6px;
    display: grid;
    position: absolute;
    top: 40px;
    left: auto;
    right: 8px;
    box-shadow: 0 12px 32px #00000073;
  }

  .mlib-folder .mlib-menu {
    top: 44px;
    right: 12px;
  }

  .mlib-menu button, .mlib-menu a {
    color: #f1f5f9;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 8px;
    align-items: center;
    min-height: 40px;
    padding: 0 10px;
    text-decoration: none;
    display: flex;
  }

  .mlib-menu .mlib-danger {
    color: #fca5a5;
  }

  .mlib-bar {
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .mlib-bar > span {
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
  }

  .mlib-bar-tools {
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .mlib-views {
    background: #162033;
    border-radius: 12px;
    padding: 3px;
    display: flex;
  }

  .mlib-views button {
    color: #94a3b8;
    background: none;
    border: 0;
    border-radius: 9px;
    width: 34px;
    height: 34px;
    padding: 0;
  }

  .mlib-views button.on {
    color: #f8fafc;
    background: #334155;
  }

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

  .mlib-row {
    background: var(--card);
    color: #f1f5f9;
    text-align: left;
    border: 1px solid #ffffff14;
    border-radius: 14px;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 8px;
    text-decoration: none;
    display: flex;
  }

  .mlib-row img {
    object-fit: cover;
    border-radius: 10px;
    flex: none;
    width: 52px;
    height: 52px;
  }

  .mlib-row span {
    flex: 1;
    min-width: 0;
  }

  .mlib-row b {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .mlib-row.on {
    box-shadow: inset 0 0 0 2px var(--action);
  }

  .mlib-sentinel {
    height: 1px;
  }

  .mlib-foot {
    color: #94a3b8;
    text-align: center;
    margin: 4px 0 0;
    font-size: 13px;
  }

  .mlib-more {
    color: #f1f5f9;
    background: #162033;
    border: 1px solid #ffffff1a;
    border-radius: 12px;
    height: 44px;
    font-weight: 700;
  }

  .mlib-empty {
    text-align: center;
    color: #94a3b8;
    border: 1px dashed #94a3b873;
    border-radius: 16px;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 36px 18px 28px;
    display: flex;
  }

  .mlib-empty b {
    color: #f8fafc;
    font-size: 16px;
  }

  .mlib-empty p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  .mlib-empty-upload {
    color: #f8fafc;
    background: #1e293b;
    border-radius: 12px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    height: 42px;
    margin-top: 12px;
    padding: 0 16px;
    font-weight: 700;
    display: inline-flex;
  }

  .mlib-sort {
    position: relative;
  }

  .mlib-sort-btn, .mlib-chips button {
    color: #f1f5f9;
    white-space: nowrap;
    background: #162033;
    border: 1px solid #ffffff1f;
    border-radius: 999px;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    font-weight: 650;
    display: inline-flex;
  }

  .mlib-sort-menu {
    z-index: 5;
    background: #0f172a;
    border: 1px solid #ffffff1a;
    border-radius: 12px;
    min-width: 160px;
    padding: 6px;
    display: grid;
    position: absolute;
    top: 40px;
    left: 0;
  }

  .mlib-sort-menu button {
    color: #f1f5f9;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 8px;
    min-height: 40px;
  }

  .mlib-chips {
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 8px;
    display: flex;
    overflow-x: auto;
  }

  .mlib-chips::-webkit-scrollbar {
    display: none;
  }

  .mlib-chips button {
    flex: none;
  }

  .mlib-chips button em {
    color: #94a3b8;
    font-style: normal;
    font-weight: 600;
  }

  .mlib-chips button.on {
    color: #0f172a;
    background: #f1f5f9;
    border-color: #f1f5f9;
  }

  .mlib-chips button.on em {
    color: #475569;
  }

  .mlib-dock {
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    background: var(--canvas);
    gap: 8px;
    display: flex;
    position: sticky;
    bottom: 0;
  }

  .mlib-dock .btn, .mlib-dock .btn-ghost {
    flex: 1;
  }

  .mlib-dim {
    z-index: 39;
    background: #0206178c;
    border: 0;
    position: fixed;
    inset: 0;
  }

  .mlib-sheet {
    z-index: 40;
    max-height: 78dvh;
    padding: 16px 16px calc(12px + env(safe-area-inset-bottom));
    background: #0f172a;
    border-radius: 18px 18px 0 0;
    flex-direction: column;
    gap: 10px;
    display: flex;
    position: fixed;
    inset: auto 0 0;
    box-shadow: 0 -24px 48px #00000073;
  }

  .mlib-sheet header, .mlib-sheet footer {
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .mlib-sheet header b, .mlib-sheet p {
    margin: 0;
  }

  .mlib-sheet header b {
    flex: 1;
    font-size: 18px;
  }

  .mlib-sheet header button {
    color: #f1f5f9;
    background: none;
    border: 0;
  }

  .mlib-sheet p {
    color: #94a3b8;
  }

  .mlib-tree {
    flex: 1;
    align-content: start;
    gap: 6px;
    display: grid;
    overflow: auto;
  }

  .mlib-tree > button {
    color: #f1f5f9;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 12px;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 12px;
    display: flex;
  }

  .mlib-tree > button.on {
    background: #2563eb47;
  }

  .mlib-tree b, .mlib-tree small {
    display: block;
  }

  .mlib-tree small {
    color: #94a3b8;
  }

  .mlib-tree .material-icons:last-child {
    margin-left: auto;
  }

  .mlib-new-link {
    color: var(--ink-strong);
    background: none;
    border: 0;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-weight: 700;
    display: flex;
  }

  .mlib-dialog-dim {
    z-index: 50;
    background: #0206178c;
    border: 0;
    position: fixed;
    inset: 0;
  }

  .mlib-dialog {
    z-index: 51;
    background: #1e293b;
    border: 1px solid #ffffff14;
    border-radius: 16px;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    display: flex;
    position: fixed;
    top: 42%;
    left: 16px;
    right: 16px;
    box-shadow: 0 24px 48px #00000080;
  }

  .mlib-dialog header {
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .mlib-dialog header b {
    flex: 1;
    font-size: 18px;
  }

  .mlib-dialog header button {
    color: #e2e8f0;
    background: none;
    border: 0;
    padding: 0;
  }

  .mlib-dialog > p {
    color: #94a3b8;
    margin: 0 0 6px;
    font-size: 14px;
  }

  .mlib-dialog label {
    color: #cbd5e1;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    display: grid;
  }

  .mlib-namebox {
    background: #0f172a;
    border: 1px solid #ffffff47;
    border-radius: 12px;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 12px;
    display: flex;
  }

  .mlib-namebox:focus-within {
    border-color: #f8fafcb3;
  }

  .mlib-namebox input {
    width: auto;
    min-width: 0;
    height: 100%;
    min-height: 0;
    box-shadow: none;
    color: #f8fafc;
    appearance: none;
    background: none;
    border: 0;
    border-radius: 0;
    outline: none;
    flex: 1;
    margin: 0;
    padding: 0;
  }

  .mlib-namebox input:focus {
    box-shadow: none;
    border: 0;
    outline: none;
  }

  .mlib-namebox em {
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
  }

  .mlib-dialog footer {
    gap: 8px;
    margin-top: 8px;
    display: flex;
  }

  .mlib-cancel, .mlib-create {
    border-radius: 12px;
    flex: 1;
    height: 46px;
    font-weight: 700;
  }

  .mlib-cancel {
    color: #f8fafc;
    background: #1e293b;
    border: 1px solid #ffffff24;
  }

  .mlib-create {
    color: #0f172a;
    background: #f8fafc;
    border: 0;
  }

  .mlib-create:disabled {
    opacity: .45;
  }

  .mlib-sheet footer .btn, .mlib-sheet footer .btn-ghost {
    flex: 1;
  }
}

.ui-dim, .confirm-dim {
  z-index: 1500;
  background: #0206178c;
  border: 0;
  position: fixed;
  inset: 0;
}

.ui-dialog, .confirm-dialog {
  z-index: 1501;
  color: #f8fafc;
  background: #1e293b;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  position: fixed;
  top: 42%;
  left: 16px;
  right: 16px;
  box-shadow: 0 24px 48px #00000080;
}

.ui-dialog header {
  align-items: center;
  gap: 8px;
  display: flex;
}

.ui-dialog h2, .confirm-dialog h2 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.ui-dialog header button {
  color: #e2e8f0;
  background: none;
  border: 0;
  border-radius: 10px;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
}

.ui-dialog > p, .ui-dialog form > p, .confirm-dialog p {
  color: #94a3b8;
  margin: 0 0 6px;
  font-size: 14px;
}

.ui-dialog footer, .confirm-dialog footer {
  gap: 8px;
  margin-top: 8px;
  display: flex;
}

.ui-dialog-btn, .confirm-cancel, .confirm-go {
  height: 46px;
  font: inherit;
  border-radius: 12px;
  flex: 1;
  font-weight: 700;
}

.ui-dialog-btn.cancel, .confirm-cancel {
  color: #f8fafc;
  background: #1e293b;
  border: 1px solid #ffffff24;
}

.ui-dialog-btn.primary, .confirm-go {
  background: var(--action);
  color: var(--action-ink);
  border: 0;
}

.ui-dialog-btn.danger, .confirm-go.danger {
  background: var(--danger);
  color: #fff;
  border: 0;
}

.ui-dialog-btn:disabled {
  opacity: .45;
}

.ui-field {
  color: #cbd5e1;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  display: grid;
}

.ui-field-box {
  background: #0f172a;
  border: 1px solid #ffffff47;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 12px;
  display: flex;
}

.ui-field-box:focus-within {
  border-color: #f8fafcb3;
}

.ui-field-box input {
  width: auto;
  min-width: 0;
  height: 100%;
  min-height: 0;
  box-shadow: none;
  color: #f8fafc;
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  outline: none;
  flex: 1;
  margin: 0;
  padding: 0;
}

.ui-field-box input:focus {
  box-shadow: none;
  border: 0;
  outline: none;
}

.ui-field-box em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.ui-search {
  color: #94a3b8;
  box-sizing: border-box;
  background: #162033;
  border: 1px solid #0000;
  border-radius: 14px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  display: flex;
}

.ui-search:focus-within {
  border-color: #f8fafcd9;
}

.ui-search input {
  width: auto;
  min-width: 0;
  height: 100%;
  min-height: 0;
  box-shadow: none;
  color: #f1f5f9;
  background: none;
  border: 0;
  border-radius: 0;
  outline: none;
  flex: 1;
  margin: 0;
  padding: 0;
}

.ui-search input:focus {
  box-shadow: none;
  border: 0;
  outline: none;
}

.mlib-search .ui-search {
  flex: 1;
}

.mlib-search .ui-search, .ui-search.eph-search, .ui-search.pdesk-search, .ui-search.select-popup-search {
  width: auto;
}

.ui-menu-pop {
  z-index: 1200;
  background: #1e293b;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  min-width: 148px;
  padding: 6px;
  display: grid;
  position: fixed;
  box-shadow: 0 12px 32px #00000073;
}

.ui-menu-pop button, .ui-menu-pop a {
  color: #f1f5f9;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  text-decoration: none;
  display: flex;
}

.ui-menu-pop .danger {
  color: var(--danger-ink);
}

.ui-sheet-dim {
  z-index: 1390;
  background: #0206178c;
  border: 0;
  position: fixed;
  inset: 0;
}

.ui-sheet {
  z-index: 1400;
  max-height: 78dvh;
  padding: 16px 16px calc(12px + env(safe-area-inset-bottom));
  color: #f8fafc;
  background: #0f172a;
  border-radius: 18px 18px 0 0;
  flex-direction: column;
  gap: 10px;
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 -24px 48px #00000073;
}

.ui-sheet header, .ui-sheet footer {
  align-items: center;
  gap: 8px;
  display: flex;
}

.ui-sheet h2 {
  flex: 1;
  margin: 0;
  font-size: 18px;
}

.ui-sheet p {
  color: #94a3b8;
  margin: 0;
}

.ui-sheet header button {
  color: #f1f5f9;
  background: none;
  border: 0;
}

.ui-sheet footer .btn, .ui-sheet footer .btn-ghost {
  flex: 1;
}

.editor-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
  display: flex;
}

.editor-head .page-title {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.editor-head-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: none;
}

.editor-head-actions .btn, .editor-head-actions .btn-ghost {
  min-height: 40px;
  padding: 0 16px;
}

.editor-tabs {
  scrollbar-width: none;
  border-bottom: 1px solid #334155;
  margin: 0 -4px 16px;
  display: flex;
  overflow-x: auto;
}

.editor-tabs::-webkit-scrollbar {
  display: none;
}

.editor-tabs button {
  color: #94a3b8;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  border-radius: 0;
  flex: 1 0 auto;
  min-height: 44px;
  padding: 0 14px;
  font-weight: 600;
}

.editor-tabs button.active {
  color: var(--ink-strong);
  border-bottom-color: var(--action);
  background: none;
}

.editor-tabs button:focus {
  outline: none;
}

.variant-cards {
  display: none;
}

.variant-card {
  background: #1e293b;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.variant-card-head {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.variant-card-head .check {
  min-height: 0;
}

.variant-card-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  display: grid;
}

.variant-card .lbl {
  color: #cbd5e1;
  font-size: .75rem;
  font-weight: 600;
}

.variant-card .field {
  color: #f8fafc;
  background: #0f172a;
  min-height: 48px;
  font-size: 1.05rem;
}

.editor-actions {
  z-index: 5;
  padding: 12px 0 calc(8px + env(safe-area-inset-bottom));
  background: #0f172a;
  gap: 8px;
  margin-top: 16px;
  display: flex;
  position: sticky;
  bottom: 0;
}

.editor-actions .btn, .editor-actions .btn-ghost {
  flex: 1;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.editor-inline {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.editor-inline .search {
  flex: 1;
  min-width: 140px;
}

.image-toolbar {
  gap: 8px;
  display: grid;
}

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

.image-toolbar-actions .btn, .image-toolbar-actions .btn-ghost {
  flex: 1;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

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

.image-card {
  background: #1e293b;
  border: 2px solid #0000;
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}

.image-card.thumb {
  border-color: var(--action);
}

.image-card.over {
  border-color: var(--ink);
}

.image-card.dragging {
  opacity: .45;
}

.image-frame {
  aspect-ratio: 1;
  background: #111827;
  position: relative;
}

.image-frame img {
  object-fit: cover;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: block;
}

.thumb-badge {
  background: var(--action);
  color: var(--action-ink);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .65rem;
  font-weight: 700;
  position: absolute;
  top: 6px;
  right: 6px;
}

.image-tools {
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px;
  display: flex;
}

.drag-handle, .icon-btn {
  color: #94a3b8;
  background: none;
  border: 0;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  display: inline-flex;
}

.drag-handle {
  touch-action: none;
  cursor: grab;
}

.icon-btn.on {
  color: #fbbf24;
}

.icon-btn.danger {
  color: #fca5a5;
}

.image-card .field {
  border: 0;
  border-top: 1px solid #334155;
  border-radius: 0;
  min-height: 36px;
}

@media (min-width: 800px) {
  .image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

.html-editor {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
}

.html-toolbar {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  display: flex;
}

.html-tool {
  color: #cbd5e1;
  background: none;
  border: 0;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  display: inline-flex;
}

.html-tool .material-icons {
  font-size: 20px;
}

.html-tool:hover, .html-tool.on {
  color: var(--ink-strong);
  background: #f8fafc1a;
}

.html-surface, .html-source {
  color: #f8fafc;
  outline: none;
  min-height: 220px;
  padding: 12px;
  font-size: .95rem;
  line-height: 1.55;
}

.html-surface :where(p, div, span, li, h1, h2, h3, b, strong, em, i, u) {
  color: inherit;
}

.html-surface:empty:before {
  content: attr(data-placeholder);
  color: #64748b;
}

.html-surface div, .html-surface p {
  margin: 0 0 .65em;
}

.html-surface ul, .html-surface ol {
  margin: 0 0 .65em;
  padding-left: 1.25rem;
}

.html-surface a, .html-surface a * {
  color: var(--ink-strong);
  text-decoration: underline;
}

.html-source {
  resize: vertical;
  background: none;
  border: 0;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
}

.editor-grid {
  gap: 14px;
  display: grid;
}

.editor-span {
  grid-column: 1 / -1;
}

.field-short {
  min-height: 76px;
}

.check {
  align-items: center;
  gap: 8px;
  min-height: 40px;
  display: flex;
}

a.product-tile {
  color: inherit;
}

@media (min-width: 800px) {
  .editor {
    max-width: 1080px;
  }

  .editor-head {
    align-items: center;
    margin-bottom: 8px;
  }

  .editor-head .page-title {
    font-size: 1.35rem;
  }

  .editor-tabs {
    margin-bottom: 18px;
  }

  .editor-grid {
    background: #1e293b;
    border: 1px solid #ffffff14;
    border-radius: 12px;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    padding: 22px;
  }

  .editor-grid .lbl {
    color: #e2e8f0;
    letter-spacing: .01em;
    font-size: .82rem;
    font-weight: 600;
  }

  .editor-grid .field, .editor-grid select.field, .editor-grid textarea.field {
    background: #0f172a;
    border-color: #475569;
    border-radius: 8px;
    min-height: 44px;
  }

  .editor-grid .field:focus, .editor-grid select.field:focus, .editor-grid textarea.field:focus {
    border-color: #f8fafcd9;
    outline: none;
  }

  .editor-grid textarea.field.field-short {
    min-height: 104px;
  }

  .editor-grid .editor-check {
    align-self: end;
    min-height: 44px;
    padding: 0 2px 2px;
  }

  .editor-grid .html-editor {
    background: #0f172a;
    border-color: #475569;
  }
}

.plist-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 14px;
  display: flex;
}

.plist-head .page-title {
  letter-spacing: -.03em;
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
}

.plist-head .muted {
  margin: 4px 0 0;
}

.plist-tools {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  display: flex;
}

.plist-tools button, .plist-tools label {
  color: #e2e8f0;
  cursor: pointer;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  font-weight: 650;
  display: inline-flex;
}

.plist-tools .material-icons {
  color: var(--ink-strong);
  font-size: 18px;
}

.plist-tools button:disabled {
  opacity: .55;
}

.plist-new {
  color: #0f172a;
  background: #f8fafc;
  border-radius: 8px;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-weight: 700;
  display: inline-flex;
}

.plist-scroll {
  background: #1e293b;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  overflow-x: auto;
}

.plist-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 860px;
}

.plist-table th {
  text-align: left;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 12px 10px 6px;
  font-size: .72rem;
  font-weight: 700;
}

.plist-filters th {
  text-transform: none;
  letter-spacing: 0;
  padding-top: 0;
  padding-bottom: 12px;
  font-weight: 500;
}

.plist-filters input, .plist-filters select {
  color: #e2e8f0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
}

.plist-table td {
  vertical-align: middle;
  border-top: 1px solid #ffffff0f;
  padding: 12px 10px;
}

.plist-table td b {
  display: block;
}

.plist-table td small, .plist-product small {
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 500;
  display: block;
}

.plist-product {
  text-align: left;
  width: 100%;
  color: inherit;
  background: none;
  border: 0;
  align-items: center;
  gap: 8px;
  padding: 0;
  display: flex;
}

.plist-product img, .plist-initials {
  object-fit: cover;
  background: #0f172a;
  border-radius: 8px;
  flex: none;
  width: 36px;
  height: 36px;
}

.plist-initials {
  color: #cbd5e1;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
  display: grid;
}

.plist-product b {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 280px;
  font-size: .92rem;
  overflow: hidden;
}

.plist-status, .plist-stock {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .75rem;
  font-weight: 700;
  display: inline-flex;
}

.plist-status.status-active, .plist-stock.in {
  color: #4ade80;
  background: #16a34a2e;
}

.plist-status.status-draft {
  color: #e2e8f0;
  background: #334155cc;
}

.plist-status.status-archived, .plist-stock.low {
  color: #fbbf24;
  background: #b4530933;
}

.plist-stock.out {
  color: #fca5a5;
  background: #b91c1c33;
}

.plist-view {
  color: #cbd5e1;
  background: none;
  border: 0;
  border-radius: 8px;
  width: 32px;
  height: 32px;
}

.plist-detail td {
  background: #172033;
  padding: 14px;
}

.plist-toolbar {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  display: flex;
}

.plist-tool, .plist-confirm {
  color: #e2e8f0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  font-weight: 600;
  display: inline-flex;
}

.plist-tool .material-icons {
  font-size: 18px;
}

.plist-tool.danger, .plist-confirm.danger {
  color: #fca5a5;
  border-color: #f8717173;
}

.plist-confirm button {
  color: #0f172a;
  background: #f8fafc;
  border: 0;
  border-radius: 6px;
  min-height: 28px;
  padding: 0 8px;
  font-weight: 700;
}

.plist-cards {
  gap: 10px;
  display: grid;
}

.plist-cards section {
  background: #0f172a;
  border: 1px solid #ffffff0f;
  border-radius: 12px;
  padding: 14px;
}

.plist-cards h2 {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 10px;
  font-size: .72rem;
}

.plist-cards p {
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0;
  display: flex;
}

.plist-cards a {
  color: var(--ink-strong);
  font-weight: 600;
}

.plist-price-line b {
  font-size: 1.15rem;
}

.plist-price-line s {
  color: #94a3b8;
}

.plist-off {
  color: #fca5a5;
  background: #b91c1c33;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
}

.plist-chips {
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  display: flex;
}

.plist-chips span {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .78rem;
  font-weight: 700;
}

.plist-chips .in {
  color: #4ade80;
  background: #16a34a2e;
}

.plist-chips .low {
  color: #fbbf24;
  background: #b4530933;
}

.plist-chips .out {
  color: #fca5a5;
  background: #b91c1c33;
}

.plist-level {
  text-align: center;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  display: block;
}

.plist-level.in {
  color: #4ade80;
  background: #16a34a2e;
}

.plist-level.low {
  color: #fbbf24;
  background: #b4530933;
}

.plist-level.out {
  color: #fca5a5;
  background: #b91c1c33;
}

.plist-pager {
  color: #94a3b8;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  display: flex;
}

.plist-pager button {
  color: #e2e8f0;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
}

.plist-pager button .material-icons {
  font-size: 20px;
}

.plist-pager button.on {
  color: #0f172a;
  background: #f8fafc;
  border-color: #f8fafc;
}

.plist-pager button:disabled {
  opacity: .4;
}

.plist-pager span {
  font-size: .78rem;
}

.plist-phone {
  display: none;
}

.plist-card {
  background: #1e293b;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  overflow: hidden;
}

.plist-card > button {
  text-align: left;
  width: 100%;
  color: inherit;
  background: none;
  border: 0;
  gap: 12px;
  padding: 12px;
  display: flex;
}

.plist-card img, .plist-card .plist-initials {
  object-fit: cover;
  border-radius: 10px;
  flex: none;
  width: 56px;
  height: 56px;
}

.plist-card-copy {
  flex: 1;
  gap: 3px;
  min-width: 0;
  display: grid;
}

.plist-card-top, .plist-card-bot {
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  display: flex;
}

.plist-card-copy b {
  font-size: .95rem;
  line-height: 1.3;
}

.plist-card-copy small {
  color: #94a3b8;
}

.plist-card-more {
  padding: 0 12px 12px;
}

.plist-phone-filters {
  scrollbar-width: none;
  gap: 8px;
  display: flex;
  overflow-x: auto;
}

.plist-phone-filters select {
  color: #e2e8f0;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  min-height: 36px;
  padding: 0 8px;
}

.mcard-chips {
  scrollbar-width: none;
  gap: 8px;
  display: flex;
  overflow-x: auto;
}

.mcard-chips::-webkit-scrollbar {
  display: none;
}

.mcard-chips button {
  color: #e2e8f0;
  white-space: nowrap;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  min-height: 36px;
  padding: 0 12px;
  font-weight: 700;
}

.mcard-chips button span {
  color: #94a3b8;
  margin-left: 6px;
}

.mcard-chips button.on {
  color: #0f172a;
  background: #f8fafc;
  border-color: #f8fafc;
}

.mcard-chips button.on span {
  color: #475569;
}

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

.mcard {
  background: #1e293b;
  border: 1px solid #ffffff0f;
  border-radius: 16px;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
}

.mcard-open {
  text-align: left;
  width: 100%;
  color: inherit;
  background: none;
  border: 0;
  flex-direction: column;
  flex: 1;
  padding: 0;
  display: flex;
}

.mview {
  display: none;
}

.mview-bar {
  align-items: center;
  gap: 8px;
  display: flex;
}

.mview-bar b {
  text-align: center;
  flex: 1;
  font-size: 1.05rem;
}

.mview-bar button {
  color: #f8fafc;
  background: none;
  border: 0;
  border-radius: 10px;
  width: 40px;
  height: 40px;
}

.mview-stage {
  position: relative;
}

.mview-frame {
  scroll-snap-type: x mandatory;
  aspect-ratio: 1;
  scrollbar-width: none;
  background: #e8eef6;
  border-radius: 18px;
  display: flex;
  overflow-x: auto;
}

.mview-frame img, .mview-frame .mview-empty {
  scroll-snap-align: start;
  object-fit: cover;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.mview-empty {
  color: #334155;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  display: grid;
}

.mview-count {
  color: #f8fafc;
  background: #0f172ab8;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .75rem;
  font-weight: 700;
  position: absolute;
  bottom: 12px;
  right: 12px;
}

.mview h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.mview-pills {
  gap: 6px;
  display: flex;
}

.mview-dock {
  display: none;
}

.mcard-photo {
  aspect-ratio: 1;
  background: #e8eef6;
  flex: none;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.mcard-photo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.mcard-photo .plist-initials {
  color: #334155;
  border-radius: 0;
  width: 100%;
  height: 100%;
  font-size: 1.2rem;
  position: absolute;
  inset: 0;
}

.mcard-badge {
  color: #16a34a;
  background: #16a34a29;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .72rem;
  font-weight: 700;
  position: absolute;
  top: 8px;
  left: 8px;
}

.mcard-badge.status-draft {
  color: #475569;
  background: #33415529;
}

.mcard-badge.status-archived {
  color: #b45309;
  background: #b4530929;
}

.mcard-body {
  align-content: start;
  gap: 4px;
  padding: 10px 10px 0;
  display: grid;
}

.mcard-body > b {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 2.5em;
  font-size: .92rem;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
}

.mcard-price {
  white-space: nowrap;
  align-items: baseline;
  gap: 6px;
  height: 1.25em;
  margin: 0;
  display: flex;
  overflow: hidden;
}

.mcard-price s {
  color: #94a3b8;
  font-size: .78rem;
}

.mcard-stock {
  height: 1.2em;
  font-size: .78rem;
  font-weight: 650;
  display: block;
}

.mcard-stock.in {
  color: #4ade80;
}

.mcard-stock.low {
  color: #fbbf24;
}

.mcard-stock.out {
  color: #fca5a5;
}

.mcard-actions {
  gap: 6px;
  margin-top: auto;
  padding: 8px 10px 10px;
  display: flex;
}

.mcard-actions a, .mcard-actions button {
  color: #e2e8f0;
  background: #0f172a;
  border: 0;
  border-radius: 10px;
  min-height: 34px;
  font-weight: 700;
}

.mcard-actions a {
  flex: 1;
  place-items: center;
  display: grid;
}

.mcard-actions button {
  width: 40px;
}

.mcard-menu {
  z-index: 2;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  min-width: 148px;
  display: grid;
  position: absolute;
  bottom: 52px;
  right: 8px;
  overflow: hidden;
}

.mcard-menu button {
  text-align: left;
  color: #e2e8f0;
  background: none;
  border: 0;
  min-height: 40px;
  padding: 0 12px;
}

@media (max-width: 767px) {
  .plist > .catalog-search, .plist-head .muted {
    display: none;
  }

  .plist-head {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 12px;
    display: grid;
  }

  .plist-new {
    grid-area: 1 / 2;
  }

  .plist-tools {
    grid-area: 2 / 1 / auto / -1;
    justify-content: flex-start;
    margin: 0;
  }

  .plist-scroll {
    display: none;
  }

  .plist-phone {
    gap: 12px;
    padding-bottom: 76px;
    display: grid;
  }

  .plist-pager {
    z-index: 25;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #0f172a;
    border-top: 1px solid #ffffff14;
    margin: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .mview {
    z-index: 1100;
    padding: calc(8px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom));
    background: #0f172a;
    align-content: start;
    gap: 12px;
    display: grid;
    position: fixed;
    inset: 0;
    overflow: auto;
  }

  .mview-dock {
    z-index: 1101;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #0f172a;
    gap: 8px;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
}

.pdesk, .pdesk-toolbar {
  display: none;
}

.pdesk-chips, .pdesk-filters, .pdesk-foot, .pdesk-foot div, .pdesk-panel-top, .pdesk-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.pdesk-panel-top {
  flex-shrink: 0;
}

.pdesk-chips {
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pdesk-chips button {
  color: #e2e8f0;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font-weight: 650;
}

.pdesk-chips button span {
  color: #94a3b8;
  margin-left: 6px;
}

.pdesk-chips button.on {
  color: #0f172a;
  background: #f8fafc;
  border-color: #f8fafc;
}

.pdesk-chips button.on span {
  color: #475569;
}

.pdesk-toolbar {
  margin-bottom: 12px;
}

.pdesk-filters {
  align-items: stretch;
  margin-bottom: 0;
}

.pdesk-filter-menus {
  gap: 8px;
  margin-left: auto;
  display: flex;
}

.pdesk-search {
  color: #94a3b8;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  flex: 0 420px;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  display: flex;
}

.pdesk-search .material-icons {
  font-size: 18px;
}

.pdesk-search input {
  color: #e2e8f0;
  background: none;
  border: 0;
  outline: none;
  flex: 1;
  min-width: 0;
  min-height: 38px;
  padding: 0;
}

.pdesk-search input::placeholder {
  color: #64748b;
}

.pdesk-search:focus-within {
  border-color: #f8fafcd9;
}

.pdesk-menu {
  flex: 0 0 132px;
  min-width: 0;
  position: relative;
}

.pdesk-menu > button {
  color: #e2e8f0;
  width: 100%;
  min-height: 40px;
  font: inherit;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  font-weight: 600;
  display: flex;
}

.pdesk-menu > button span:first-child {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.pdesk-menu > button .material-icons {
  color: #94a3b8;
  font-size: 20px;
}

.pdesk-menu.open {
  z-index: 5;
}

.pdesk-menu.open > button, .pdesk-menu > button:hover {
  border-color: #475569;
}

.pdesk-menu ul {
  z-index: 30;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  list-style: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  overflow: auto;
  box-shadow: 0 16px 40px #00000073;
}

.pdesk-menu li button {
  text-align: left;
  color: #e2e8f0;
  width: 100%;
  font: inherit;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  display: block;
}

.pdesk-menu li button.on, .pdesk-menu li button:hover {
  background: #f8fafc1a;
}

.pdesk-table-wrap {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  overflow: auto;
}

.pdesk-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 860px;
}

.pdesk-table th {
  text-align: left;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 12px 10px;
  font-size: .72rem;
}

.pdesk-table td {
  vertical-align: middle;
  border-top: 1px solid #ffffff0f;
  padding: 10px;
}

.pdesk-table tr {
  cursor: pointer;
}

.pdesk-table tr.on {
  box-shadow: inset 3px 0 0 var(--action);
  background: #f8fafc14;
}

.pdesk-table input {
  width: 16px;
  height: 16px;
  accent-color: var(--action);
}

.pdesk-name {
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 340px;
  display: flex;
}

.pdesk-name img, .pdesk-name > span:first-child, .pdesk-hero img, .pdesk-hero > span {
  object-fit: cover;
  background: #0f172a;
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: .72rem;
  font-weight: 700;
  display: grid;
}

.pdesk-hero img, .pdesk-hero > span {
  border: 1px solid #334155;
  border-radius: 12px;
  width: 64px;
  height: 64px;
  font-size: 1rem;
}

.pdesk-name b, .pdesk-hero b {
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
  overflow: hidden;
}

.pdesk-name small {
  color: #94a3b8;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .75rem;
  display: block;
  overflow: hidden;
}

.pdesk-name > span:last-child {
  min-width: 0;
  overflow: hidden;
}

.pdesk-meter {
  align-items: center;
  gap: 8px;
  display: flex;
}

.pdesk-meter > i, .pdesk-variants p > i {
  background: #334155;
  border-radius: 99px;
  width: 72px;
  height: 4px;
  display: block;
}

.pdesk-meter > i > i, .pdesk-variants p > i > i {
  background: #cbd5e1;
  border-radius: 99px;
  height: 100%;
  display: block;
}

.pdesk-meter > i > i.low, .pdesk-variants p > i > i.low {
  background: #fbbf24;
}

.pdesk-meter b.low {
  color: #fbbf24;
}

.pdesk-meter > i > i.out, .pdesk-variants p > i > i.out {
  background: #f87171;
}

.pdesk-meter b.out {
  color: #fca5a5;
}

.pdesk-foot {
  color: #94a3b8;
  justify-content: space-between;
  margin-top: 12px;
}

.pdesk-foot button, .pdesk-panel-top button {
  color: #e2e8f0;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  min-width: 32px;
  min-height: 32px;
  padding: 0 10px;
}

.pdesk-foot button.on {
  color: #0f172a;
  background: #f8fafc;
  border-color: #f8fafc;
}

.pdesk-foot button:disabled, .pdesk-panel-top button:disabled {
  opacity: .4;
}

.pdesk-panel {
  background: #1e293b;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-height: 0;
  padding: 14px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.pdesk-panel.on {
  border-color: var(--action);
}

.pdesk-card {
  flex-direction: column;
  flex: 1;
  gap: 14px;
  min-height: 0;
  display: flex;
  overflow: auto;
}

.pdesk-low {
  background: #78350f40;
  border: 1px solid #b4530973;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  display: flex;
}

.pdesk-low em {
  color: #fff;
  background: #b45309;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: .72rem;
  font-style: normal;
  font-weight: 750;
}

.pdesk-low span {
  color: #fde68a;
  flex: 1;
  min-width: 0;
  font-size: .82rem;
}

.pdesk-low a {
  color: #fde68a;
  white-space: nowrap;
  font-weight: 700;
}

.pdesk-where, .pdesk-sku {
  color: #cbd5e1;
  margin: 0;
  font-size: .9rem;
}

.pdesk-sku {
  color: #94a3b8;
  font-size: .82rem;
}

.pdesk-dock {
  flex-shrink: 0;
  gap: 8px;
  margin-top: auto;
  display: flex;
}

.pdesk-edit:disabled {
  color: #94a3b8;
  background: #334155;
}

.pdesk-more {
  position: relative;
}

.pdesk-more > button {
  color: #e2e8f0;
  min-width: 92px;
  min-height: 44px;
  font: inherit;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 0 12px;
  font-weight: 700;
  display: inline-flex;
}

.pdesk-more > button:disabled {
  color: #94a3b8;
  background: #334155;
}

.pdesk-more > button .material-icons {
  font-size: 18px;
}

.pdesk-more-menu {
  z-index: 6;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  min-width: 168px;
  padding: 6px;
  display: grid;
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  box-shadow: 0 16px 40px #00000073;
}

.pdesk-more-menu button {
  color: #e2e8f0;
  text-align: left;
  min-height: 36px;
  font: inherit;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
}

.pdesk-more-menu button:hover {
  background: #f8fafc1a;
}

.pdesk-more-menu button.danger {
  color: #fca5a5;
}

.pdesk-card.is-empty {
  text-align: center;
  color: #94a3b8;
  place-content: center;
  place-items: center;
  gap: 8px;
}

.pdesk-empty-icon {
  border: 1px solid #334155;
  border-radius: 16px;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  display: grid;
}

.pdesk-empty-icon .material-icons {
  color: #64748b;
  font-size: 28px;
}

.pdesk-card.is-empty b {
  color: #e2e8f0;
  font-size: 1rem;
}

.pdesk-card.is-empty p {
  max-width: 240px;
  margin: 0;
  line-height: 1.45;
}

.pdesk-open-slot {
  width: 108px;
}

.pdesk-panel-top b {
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: auto;
}

.pdesk-panel-top > button:last-child {
  margin-left: auto;
}

.pdesk-panel.on .pdesk-panel-top > button:last-child {
  margin-left: 0;
}

.pdesk-dock .pdesk-edit {
  font: inherit;
  border: 0;
  flex: 1;
}

.pdesk-panel-top a {
  color: var(--ink-strong);
  white-space: nowrap;
  font-weight: 650;
}

.pdesk-hero {
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.pdesk-hero > div {
  min-width: 0;
}

.pdesk-hero b {
  white-space: normal;
}

.pdesk-hero span {
  gap: 6px;
  margin-top: 6px;
  display: flex;
}

.pdesk-type {
  color: #e2e8f0;
  background: #334155;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .75rem;
  font-style: normal;
  font-weight: 700;
}

.pdesk-stats {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  display: grid;
}

.pdesk-stats section, .pdesk-meta, .pdesk-variants {
  background: #0f172a;
  border-radius: 12px;
  padding: 12px;
}

.pdesk-stats small, .pdesk-variants > div b, .pdesk-meta > b {
  color: #94a3b8;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .72rem;
  display: block;
}

.pdesk-stats b {
  margin: 4px 0;
  font-size: 1.05rem;
  display: block;
}

.pdesk-stats span {
  color: #94a3b8;
  font-size: .8rem;
}

.pdesk-variants > div {
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  display: flex;
}

.pdesk-variants a {
  color: var(--ink-strong);
  font-weight: 650;
}

.pdesk-variants p, .pdesk-meta p {
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  display: flex;
}

.pdesk-variants p > i {
  flex: 1;
}

.pdesk-variants em {
  border-radius: 999px;
  padding: 1px 6px;
  font-size: .72rem;
  font-style: normal;
  font-weight: 700;
}

.pdesk-variants em.low {
  background: #b4530940;
}

.pdesk-variants em.out {
  background: #b91c1c40;
}

.pdesk-meta p {
  justify-content: space-between;
}

.pdesk-edit {
  color: #0f172a;
  background: #f8fafc;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  font-weight: 750;
  display: flex;
}

.pdesk-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
  display: grid;
}

.pdesk-actions button {
  color: #e2e8f0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  min-height: 40px;
  font-weight: 650;
}

.pdesk-actions .danger {
  color: #fff;
  background: #7f1d1d;
  border-color: #7f1d1d;
}

@media (min-width: 1100px) {
  .plist-scroll, .plist > .plist-pager, .plist > .catalog-search {
    display: none;
  }

  .admin-content:has(.plist) {
    box-sizing: border-box;
    flex-direction: column;
    height: calc(100dvh - 44px);
    display: flex;
    overflow: hidden;
  }

  .plist {
    flex-direction: column;
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
  }

  .pdesk-toolbar {
    flex-shrink: 0;
    display: block;
  }

  .pdesk {
    flex: 1;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: stretch;
    gap: 16px;
    min-height: 0;
    display: grid;
    overflow: hidden;
  }

  .pdesk > div:first-child {
    flex-direction: column;
    min-width: 0;
    height: 100%;
    min-height: 0;
    display: flex;
  }

  .pdesk-table-wrap {
    flex: 1;
    min-height: 0;
  }
}

@media (min-width: 900px) {
  .plist-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.catalog-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  display: flex;
}

.catalog-head .page-title {
  margin: 0;
}

.catalog-head .muted {
  margin: 2px 0 0;
}

.btn-compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: .84rem;
}

.catalog-search {
  margin-bottom: 14px;
  position: relative;
}

.catalog-search .material-icons {
  color: #94a3b8;
  pointer-events: none;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
}

.catalog-search .search {
  background: #1e293b;
  min-height: 44px;
  padding-left: 40px;
}

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

.product-tile {
  text-align: left;
  min-width: 0;
  color: inherit;
  background: #1e293b;
  border: 1px solid #ffffff0f;
  border-radius: 12px;
  flex-direction: column;
  padding: 0;
  display: flex;
  overflow: hidden;
}

.product-photo-wrap {
  background: #111827;
  display: block;
  position: relative;
}

.product-tile img, .product-photo {
  aspect-ratio: 1;
  object-fit: cover;
  background: #111827;
  width: 100%;
  display: block;
}

.product-photo {
  color: #64748b;
  place-items: center;
  display: grid;
}

.product-photo .material-icons {
  font-size: 36px;
}

.product-photo-wrap .status-pill {
  position: absolute;
  top: 8px;
  left: 8px;
}

.product-body {
  flex-direction: column;
  gap: 3px;
  min-height: 92px;
  padding: 10px 10px 12px;
  display: flex;
}

.product-name {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.5em;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
}

.product-meta {
  color: #94a3b8;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .72rem;
  overflow: hidden;
}

.product-price {
  margin-top: auto;
  font-size: .86rem;
  font-weight: 650;
}

.status-pill {
  color: #e2e8f0;
  white-space: nowrap;
  background: #0f172ac7;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .68rem;
  font-weight: 600;
}

.status-active {
  color: #ecfdf5;
  background: #15803deb;
}

.status-draft {
  color: #e2e8f0;
  background: #334155eb;
}

.status-archived {
  color: #ffedd5;
  background: #92400eeb;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.material-icons {
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  -webkit-font-smoothing: antialiased;
  direction: ltr;
  font-family: Material Icons;
  font-size: 22px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  display: inline-block;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.route-busy {
  z-index: 1200;
  pointer-events: none;
  position: fixed;
  inset: 0;
}

body:has(.admin-layout) .route-busy {
  z-index: 40;
  top: calc(44px + env(safe-area-inset-top, 0px));
  bottom: 0;
  left: 0;
  right: 0;
}

:is(body:has(.admin-layout) .route-veil, body:has(.admin-layout) .route-bar) {
  display: none;
}

.page-loading {
  min-height: calc(100dvh - 44px - env(safe-area-inset-top, 0px));
  place-items: center;
  display: grid;
}

.page-pending {
  display: none;
}

.route-bar {
  background: #f8fafc2e;
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}

.route-bar span {
  background: var(--action);
  width: 36%;
  height: 100%;
  animation: .85s ease-in-out infinite route-bar;
  position: absolute;
  top: 0;
  left: 0;
}

.route-veil {
  background: #0f172a61;
  place-items: center;
  display: grid;
  position: absolute;
  inset: 0;
}

.route-spinner {
  border: 3px solid #e2e8f033;
  border-top-color: var(--action);
  background: #0f172ae0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: .7s linear infinite route-spin;
  box-shadow: 0 8px 28px #00000059;
}

@keyframes route-bar {
  0% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(340%);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .route-bar span {
    width: 100%;
    animation: none;
  }

  .route-spinner {
    animation: none;
  }
}

.admin-layout {
  background: var(--canvas);
  min-height: 100dvh;
  color: var(--ink);
}

.admin-header {
  z-index: 1000;
  background: var(--paper);
  padding-top: env(safe-area-inset-top, 0);
  border-bottom: 1px solid #ffffff0f;
  position: sticky;
  top: 0;
}

.admin-header-bar {
  align-items: center;
  gap: .25rem;
  min-height: 44px;
  padding: 0 .5rem;
  display: flex;
}

.admin-sidebar-toggle, .admin-sidebar-close-btn, .admin-logout-btn {
  appearance: none;
  color: #e2e8f0;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  font: inherit;
  background: none;
  border: 0;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  padding: .35rem .65rem;
  text-decoration: none;
  display: inline-flex;
}

.admin-sidebar-toggle:hover, .admin-logout-btn:hover, .admin-sidebar-close-btn:hover {
  background: #ffffff14;
}

.admin-header-title {
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  margin-left: .25rem;
  font-size: 1rem;
  font-weight: 600;
  overflow: hidden;
}

.admin-header-actions {
  align-items: center;
  gap: .25rem;
  margin-left: auto;
  display: flex;
}

.admin-logout-label {
  font-size: .875rem;
  font-weight: 500;
}

.admin-shell {
  min-height: calc(100dvh - 44px - env(safe-area-inset-top, 0px));
  min-width: 0;
  display: flex;
}

.admin-sidebar {
  z-index: 1002;
  left: 0;
  top: calc(44px + env(safe-area-inset-top, 0));
  width: min(280px, 88vw);
  height: calc(100dvh - 44px - env(safe-area-inset-top, 0));
  scrollbar-width: none;
  background: #1e293b;
  transition: transform .2s;
  position: fixed;
  overflow: auto;
  transform: translateX(-105%);
}

.sidebar-open .admin-sidebar {
  transform: translateX(0);
  box-shadow: 4px 0 24px #00000073;
}

.admin-sidebar-close {
  justify-content: flex-end;
  padding: .5rem;
  display: flex;
}

.admin-nav-search {
  padding: 0 .75rem .75rem;
}

.admin-nav-search input {
  color: #e2e8f0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 4px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
}

.admin-nav-empty {
  color: #94a3b8;
  margin: 0;
  padding: .5rem 1rem 1rem;
  font-size: .8125rem;
}

.nav-group-btn, .nav-link {
  color: #e2e8f0;
  text-align: left;
  width: 100%;
  min-height: 40px;
  font: inherit;
  background: none;
  border: 0;
  border-radius: .4rem;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  display: flex;
}

.nav-group-btn {
  font-weight: 600;
}

.nav-chevron {
  margin-left: auto;
}

.nav-link {
  padding-left: 36px;
  font-size: .92rem;
}

.nav-link .material-icons {
  color: #94a3b8;
  font-size: 18px;
}

.nav-link.active, .nav-link:hover, .nav-group-btn:hover {
  background: #ffffff14;
}

.nav-link.active {
  color: #fff;
}

.nav-link.active .material-icons {
  color: var(--ink-strong);
}

.admin-sidebar-overlay {
  display: none;
}

.sidebar-open .admin-sidebar-overlay {
  inset: 0;
  top: calc(44px + env(safe-area-inset-top, 0));
  z-index: 1001;
  background: #0000008c;
  border: 0;
  display: block;
  position: fixed;
}

.admin-body {
  flex: 1;
  min-width: 0;
}

.admin-content {
  padding: .75rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
  max-width: 100%;
}

:is(.admin-content:has(.cats), .admin-content:has(.attrs)) {
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.cards.switch {
  display: grid;
}

@media (min-width: 768px) {
  body:has(.admin-layout) .route-busy {
    left: 250px;
  }

  .admin-sidebar-toggle, .admin-sidebar-close, .admin-sidebar-overlay {
    display: none !important;
  }

  .admin-sidebar {
    width: 250px;
    height: calc(100dvh - 44px);
    box-shadow: none;
    flex: 0 0 250px;
    position: sticky;
    top: 44px;
    transform: none;
  }

  .admin-content {
    padding: 1.5rem;
  }

  .cards.switch {
    display: none;
  }
}

@media (max-width: 767px) {
  .admin-logout-label, .table-wrap {
    display: none;
  }

  .variant-cards {
    gap: 10px;
    display: grid;
  }

  .editor {
    padding-bottom: 88px;
  }

  .editor-actions {
    z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #1e293b;
    border-top: 1px solid #ffffff14;
    margin: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -8px 24px #00000073;
  }
}

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

.order-page.has-dock {
  padding-bottom: 248px;
}

.order-dock {
  z-index: 30;
  max-height: calc(100dvh - 52px);
  padding: 10px .75rem calc(10px + env(safe-area-inset-bottom));
  background: #1e293b;
  border-top: 1px solid #ffffff14;
  gap: 8px;
  display: grid;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 -8px 24px #00000073;
}

.order-dock .flow {
  max-height: min(52dvh, 420px);
  padding-right: 2px;
  overflow: auto;
}

.order-dock .task {
  background: #0f172a;
}

@media (min-width: 768px) {
  .editor-head-actions {
    display: flex;
  }

  .editor-actions {
    display: none;
  }

  .editor-tabs {
    justify-content: flex-start;
  }

  .editor-tabs button {
    flex: none;
    padding: 0 18px;
  }

  .order-page.has-dock {
    padding-bottom: 0;
  }

  .order-stack {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: start;
  }

  .order-stack > :not(.order-dock) {
    grid-column: 1;
  }

  .order-dock {
    max-height: calc(100dvh - 80px);
    box-shadow: none;
    border: 1px solid #ffffff14;
    border-radius: 12px;
    grid-area: 1 / 2 / span 8;
    align-self: start;
    padding: 12px;
    position: sticky;
    inset: 12px auto auto;
    overflow: auto;
  }
}

.order-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.order-head .page-title {
  margin: 2px 0;
}

.order-head .muted, .order-summary .muted {
  margin: 0;
}

.order-status {
  color: #e2e8f0;
  background: #334155;
  border-radius: 999px;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  font-size: .78rem;
  font-weight: 700;
  display: inline-flex;
}

.order-status-1 {
  color: #fde68a;
  background: #f59e0b2e;
}

.order-status-2, .order-status-3 {
  color: #bfdbfe;
  background: #3b82f62e;
}

.order-status-4 {
  color: #bae6fd;
  background: #0ea5e92e;
}

.order-status-5 {
  color: #bbf7d0;
  background: #22c55e2e;
}

.order-status-6 {
  color: #fecaca;
  background: #ef44442e;
}

.order-total {
  letter-spacing: -.03em;
  font-size: 1.45rem;
  font-weight: 700;
}

.task-grid {
  gap: 8px;
  display: grid;
}

.task {
  color: #f8fafc;
  text-align: left;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  display: flex;
}

.task .material-icons {
  color: var(--ink);
  font-size: 20px;
}

.task b {
  font-size: .95rem;
  font-weight: 600;
}

.task-grid .task:first-child:not(.danger) {
  background: var(--action);
  border-color: var(--action);
  color: var(--action-ink);
}

.task-grid .task:first-child:not(.danger) .material-icons, .task-grid .task:first-child:not(.danger) b {
  color: var(--action-ink);
}

.task.on {
  border-color: var(--action);
  background: #f8fafc1a;
}

.task-grid .task:first-child.on:not(.danger) {
  background: var(--action-hover);
  border-color: var(--action);
}

.task.danger .material-icons, .task.danger b {
  color: #fecaca;
}

.task.danger.on {
  background: #ef444429;
  border-color: #ef4444;
}

.task:disabled {
  opacity: .45;
}

.order-split {
  gap: 10px;
  display: grid;
}

.order-section-head, .order-inline {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.order-person, .order-address {
  gap: 4px;
  margin-top: 8px;
  display: grid;
}

.order-person a, .order-links a {
  color: var(--ink-strong);
}

.order-links {
  gap: 12px;
  display: flex;
}

.order-note-quote {
  color: #cbd5e1;
  margin: 10px 0 0;
}

.order-lines {
  gap: 12px;
  margin-top: 10px;
  display: grid;
}

.order-line {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  display: grid;
}

.order-line img, .order-line-photo {
  object-fit: cover;
  color: #94a3b8;
  background: #0f172a;
  border-radius: 8px;
  place-items: center;
  width: 48px;
  height: 48px;
  display: grid;
}

.order-line-photo .material-icons {
  font-size: 22px;
}

.order-line-name {
  font-weight: 600;
}

.order-totals {
  border-top: 1px solid #334155;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  display: grid;
}

.order-totals div {
  color: #cbd5e1;
  justify-content: space-between;
  gap: 12px;
  display: flex;
}

.order-totals .grand {
  color: #fff;
  font-weight: 700;
}

.order-action {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  display: grid;
}

.order-action .btn, .order-action .btn-danger {
  white-space: nowrap;
}

textarea.field.order-note {
  min-height: 72px;
}

.flow {
  gap: 10px;
  padding-top: 4px;
  display: grid;
}

.flow .muted {
  margin: 0;
}

.from-to {
  align-items: center;
  gap: 8px;
  display: flex;
}

.order-amount {
  background: #0f172a;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  display: flex;
}

.warn {
  color: #fecaca;
  background: #ef444424;
  border-radius: 8px;
  gap: 8px;
  padding: 10px 12px;
  display: flex;
}

.warn .material-icons {
  font-size: 20px;
}

.choices {
  gap: 8px;
  display: grid;
}

.choice {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  display: flex;
}

.choice.on {
  border-color: var(--action);
}

.choice input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.courier-pick {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  display: grid;
}

.courier-pick button {
  color: #e2e8f0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  min-height: 44px;
}

.courier-pick button.on {
  background: var(--action);
  border-color: var(--action);
  color: var(--action-ink);
}

.order-ship-form {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  display: grid;
}

.order-span {
  grid-column: 1 / -1;
}

@media (min-width: 800px) {
  .order-split {
    grid-template-columns: 1fr 1fr;
  }

  .order-page {
    max-width: 980px;
  }
}

.editor-phone {
  display: none;
}

@media (max-width: 767px) {
  .editor-wide {
    display: none;
  }

  .editor-phone {
    z-index: 1100;
    background: var(--canvas);
    height: 100dvh;
    color: var(--ink);
    padding-top: env(safe-area-inset-top, 0);
    flex-direction: column;
    display: flex;
    position: fixed;
    inset: 0;
    overflow: hidden;
  }
}

.eph-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.eph-scroll > .eph-card {
  margin: 12px;
}

.editor-phone .banner, .eph-wait {
  margin: 8px 12px;
}

.eph-bar {
  z-index: 2;
  background: var(--canvas);
  border-bottom: 1px solid #ffffff0f;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 12px;
  display: flex;
  position: relative;
}

.eph-bar b {
  text-align: center;
  flex: 1;
  font-size: 1rem;
}

.eph-bar a, .eph-bar > button, .eph-bar > label {
  color: #e2e8f0;
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  min-height: 40px;
  text-decoration: none;
  display: inline-flex;
}

.eph-menu {
  z-index: 5;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  min-width: 180px;
  padding: 6px;
  position: absolute;
  top: 48px;
  right: 8px;
}

.eph-menu a {
  color: #e2e8f0;
  padding: 10px 12px;
  text-decoration: none;
  display: block;
}

.eph-tabs {
  background: none;
  border-bottom: 1px solid #ffffff1a;
  flex-shrink: 0;
  gap: 0;
  margin: 0 16px;
  padding: 0;
  display: flex;
  overflow: visible;
}

.eph-tabs button {
  color: #94a3b8;
  background: none;
  border: 0;
  border-radius: 0;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  position: relative;
}

.eph-tabs button.on {
  color: #f1f5f9;
  background: none;
}

.eph-tabs button.on:after {
  content: "";
  background: #f1f5f9;
  border-radius: 2px;
  height: 2px;
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
}

.eph-tabs em {
  color: #94a3b8;
  background: #ffffff1a;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
}

.eph-stack {
  gap: 12px;
  padding: 0 12px 12px;
  display: grid;
}

.eph-card {
  background: #111827;
  border: 1px solid #ffffff0f;
  border-radius: 16px;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.eph-card h2 {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0;
  font-size: .72rem;
}

.eph-card label, .eph-var-edit label, .eph-alt {
  color: #94a3b8;
  gap: 6px;
  font-size: .85rem;
  display: grid;
}

.eph-card input, .eph-card textarea, .eph-card select, .eph-var-edit input, .eph-tile input, .eph-alt textarea, .eph-search input {
  color: #f8fafc;
  width: 100%;
  min-height: 42px;
  font: inherit;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 8px 12px;
}

.eph-card select {
  appearance: none;
  background-image: linear-gradient(45deg, #0000 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, #0000 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.eph-card textarea, .eph-alt textarea {
  resize: vertical;
  min-height: 84px;
}

.eph-card small, .eph-alt small {
  color: #64748b;
  justify-self: end;
}

.eph-status, .eph-switch {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.eph-status > div {
  background: #0f172a;
  border-radius: 999px;
  padding: 3px;
  display: flex;
}

.eph-status button {
  color: #94a3b8;
  background: none;
  border: 0;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 14px;
}

.eph-status button.on {
  background: var(--action);
  color: var(--action-ink);
}

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

.tag-field > .lbl {
  margin: 0;
}

.tag-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px;
  display: flex;
}

.tag-box button {
  color: #f1f5f9;
  background: #ffffff1a;
  border: 0;
  border-radius: 8px;
  align-items: center;
  gap: 2px;
  height: 32px;
  min-height: 32px;
  padding: 0 6px 0 10px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
}

.tag-box button .material-icons {
  color: #94a3b8;
  font-size: 16px;
}

.tag-box input {
  color: #f1f5f9;
  background: none;
  border: 0;
  border-radius: 0;
  flex: 120px;
  width: auto;
  min-width: 120px;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 6px;
  font-size: 15px;
}

.eph-switch button[role="switch"] {
  background: #334155;
  border: 0;
  border-radius: 999px;
  width: 46px;
  height: 28px;
  position: relative;
}

.eph-switch button[role="switch"]:after {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  position: absolute;
  top: 3px;
  left: 3px;
}

.eph-desc p {
  color: #e2e8f0;
  margin: 0;
  line-height: 1.45;
}

.eph-preview {
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.eph-vis button {
  color: #f1f5f9;
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 10px;
  min-height: 48px;
  font-weight: 600;
}

.eph-vis {
  gap: 8px;
  display: flex;
}

.eph-vis button {
  flex: 1;
}

.eph-vis .danger, .eph-photo-actions .danger {
  color: #fecaca;
  background: #7f1d1d;
  border-color: #7f1d1d;
}

.eph-var-tools, .eph-img-tools {
  align-items: center;
  gap: 8px;
  display: flex;
}

.eph-search {
  background: #111827;
  border: 1px solid #334155;
  border-radius: 12px;
  flex: 1;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  display: flex;
}

.eph-search input {
  background: none;
  border: 0;
  min-height: 40px;
}

.eph-search .material-icons {
  color: #94a3b8;
  font-size: 20px;
}

.eph-chips {
  gap: 8px;
  padding: 0 12px;
  display: flex;
  overflow: auto;
}

.eph-stack .eph-chips, .eph-stack .eph-var-tools, .eph-stack .eph-img-tools {
  padding: 0;
}

.eph-chips button, .eph-img-tools > button, .eph-add {
  color: #e2e8f0;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 999px;
  flex: none;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
}

.eph-chips button.on, .eph-img-tools > button.on {
  background: var(--action);
  border-color: var(--action);
  color: var(--action-ink);
}

.eph-var {
  background: #111827;
  border: 1px solid #ffffff0f;
  border-radius: 14px;
  overflow: hidden;
}

.eph-var-row {
  width: 100%;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  display: grid;
}

.eph-var-row b, .eph-var-row small {
  display: block;
}

.eph-var-row small {
  color: #94a3b8;
}

.eph-var-side {
  text-align: right;
}

.eph-var-side em {
  color: #fbbf24;
  margin-right: 6px;
  font-size: .75rem;
  font-style: normal;
  display: inline-block;
}

.eph-var-edit {
  gap: 10px;
  padding: 0 12px 12px;
  display: grid;
}

.eph-step {
  align-items: center;
  gap: 8px;
  display: flex;
}

.eph-step button {
  color: #fff;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  width: 36px;
  height: 36px;
}

.eph-step .done {
  background: #1e293b;
  width: auto;
  margin-left: auto;
  padding: 0 12px;
}

.eph-summary {
  color: #94a3b8;
  margin: 0;
}

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

.eph-tile {
  background: #111827;
  border-radius: 14px;
  gap: 6px;
  padding: 8px;
  display: grid;
}

.eph-tile-hit {
  background: #0f172a;
  border: 0;
  border-radius: 10px;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
}

.eph-tile img, .eph-photo-frame img, .eph-lib-grid img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  display: block;
}

.eph-crop {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.eph-tile .eph-crop img {
  aspect-ratio: auto;
  object-fit: fill;
  width: auto;
  max-width: none;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
}

.eph-tile-hit em {
  z-index: 1;
  color: #fff;
  background: #0f172acc;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: .75rem;
  font-style: normal;
  position: absolute;
  top: 8px;
  left: 8px;
}

.eph-tile-hit i {
  color: var(--ink-strong);
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.eph-tile-tools {
  justify-content: space-between;
  display: flex;
}

.eph-tile-tools button {
  color: #cbd5e1;
  background: none;
  border: 0;
  min-width: 32px;
  min-height: 32px;
}

.eph-tile.upload {
  text-align: center;
  place-items: center;
  min-height: 140px;
}

.eph-tile.failed {
  outline: 1px solid #b91c1c;
}

.eph-tile.upload button {
  color: #fff;
  background: #7f1d1d;
  border: 0;
  border-radius: 8px;
  min-height: 32px;
}

.eph-drop {
  color: #94a3b8;
  border: 1px dashed #334155;
  border-radius: 14px;
  place-items: center;
  min-height: 64px;
  display: grid;
}

.eph-dock {
  z-index: 2;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0));
  background: #0f172a;
  border-top: 1px solid #ffffff14;
  flex-shrink: 0;
  gap: 8px;
  display: flex;
  position: static;
}

.eph-dock .btn, .eph-dock .btn-ghost {
  flex: 1;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  display: inline-flex;
}

.eph-photo {
  gap: 12px;
  padding: 12px;
  display: grid;
}

.eph-photo-frame {
  background: #111827;
  border-radius: 16px;
  overflow: hidden;
}

.eph-photo-actions {
  gap: 8px;
  display: grid;
}

.eph-photo-actions button, .eph-photo-actions label {
  color: #e2e8f0;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  display: inline-flex;
}

.eph-sheet {
  z-index: 1200;
  background: var(--canvas);
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0));
  flex-direction: column;
  gap: 10px;
  display: flex;
  position: fixed;
  inset: 0;
}

.eph-lib-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px;
  display: grid;
  overflow: auto;
}

.eph-lib-grid button {
  background: #111827;
  border: 2px solid #0000;
  border-radius: 12px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.eph-lib-grid button.on {
  border-color: var(--action);
}

.eph-lib-grid i {
  background: var(--action);
  width: 22px;
  height: 22px;
  color: var(--action-ink);
  border-radius: 50%;
  place-items: center;
  font-size: .75rem;
  font-style: normal;
  display: grid;
  position: absolute;
  top: 6px;
  right: 6px;
}

.eph-lib-foot {
  z-index: 1201;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0));
  background: #0f172a;
  border-top: 1px solid #ffffff14;
  align-items: center;
  gap: 8px;
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.eph-lib-foot div {
  flex: 1;
  display: grid;
}

.eph-lib-foot small {
  color: #94a3b8;
}

.eph-lib-foot > button {
  color: #e2e8f0;
  background: none;
  border: 1px solid #334155;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 12px;
}

.editor-phone {
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
}

.eph-bar {
  background: var(--canvas);
  border-bottom: 0;
  min-height: 52px;
  padding: 0 8px;
}

.eph-bar b {
  text-align: left;
  font-size: 17px;
  font-weight: 700;
}

.eph-scroll {
  padding: 14px 16px 20px;
}

.eph-stack {
  gap: 12px;
  padding: 0;
}

.eph-card {
  background: #0f172a;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  gap: 10px;
  padding: 14px;
}

.eph-card h2, .eph-card .lbl, .eph-lock .lbl, .eph-status .lbl, .eph-alt .lbl {
  letter-spacing: 0;
  text-transform: none;
  color: #94a3b8;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
}

.eph-card h2 {
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
  font-size: 11px;
}

.eph-card input, .eph-card textarea, .eph-card select, .eph-var-edit input, .eph-alt textarea {
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  min-height: 48px;
  font-size: 15px;
}

.eph-card textarea, .eph-alt textarea {
  min-height: 0;
  padding: 12px 14px;
  font-size: 14.5px;
  line-height: 1.45;
}

.eph-status {
  display: block;
}

.eph-status > div {
  background: none;
  gap: 8px;
  padding: 0;
  display: flex;
}

.eph-status button {
  color: #94a3b8;
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 10px;
  flex: 1;
  height: 48px;
  font-weight: 600;
}

.eph-status button.on {
  color: #f1f5f9;
  background: #ffffff1a;
  border-color: #f1f5f9;
}

.eph-lock div {
  color: #94a3b8;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  display: flex;
}

.select-menu {
  gap: 6px;
  min-width: 0;
  display: grid;
  position: relative;
}

.select-menu > .lbl {
  margin: 0;
}

.select-menu > button {
  color: #e2e8f0;
  text-align: left;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  display: flex;
}

.select-menu > button > span:first-child {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.select-menu > button .material-icons {
  color: #94a3b8;
  flex: none;
  font-size: 20px;
}

.select-menu-list {
  z-index: 1300;
  background: #0f172a;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  display: flex;
  position: fixed;
  overflow: hidden;
  box-shadow: 0 16px 40px #00000080;
}

.select-menu-list > input {
  color: #f1f5f9;
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  font-size: 15px;
}

.select-menu ul {
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}

.select-menu li.empty {
  color: #94a3b8;
  padding: 12px;
  font-size: 14px;
}

.select-menu li button {
  color: #f1f5f9;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  display: flex;
}

.select-menu li button.on {
  background: #ffffff1a;
}

.select-menu li button .material-icons {
  color: #f1f5f9;
  font-size: 18px;
}

.select-popup {
  z-index: 1400;
  background: #020617b8;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  display: flex;
  position: fixed;
  inset: 0;
}

.select-popup > div {
  background: #0f172a;
  border: 1px solid #ffffff1a;
  border-radius: 16px;
  flex-direction: column;
  gap: 10px;
  width: min(100%, 420px);
  max-height: min(78dvh, 640px);
  padding: 8px 8px 12px;
  display: flex;
  box-shadow: 0 24px 60px #00000080;
}

.select-popup header {
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 4px 8px 0;
  display: flex;
}

.select-popup header b {
  font-size: 17px;
}

.select-popup header button {
  color: #f1f5f9;
  background: none;
  border: 0;
  border-radius: 10px;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  display: grid;
}

.select-popup .select-popup-search {
  color: #94a3b8;
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin: 0 8px;
  padding: 0 12px;
  display: flex;
}

.select-popup .select-popup-search .material-icons {
  flex: none;
  font-size: 20px;
  line-height: 20px;
}

.select-popup .select-popup-search input {
  color: #f1f5f9;
  width: auto;
  min-width: 0;
  height: 42px;
  min-height: 0;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  flex: 1;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 42px;
}

.select-popup .select-popup-search input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.select-popup ul {
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 0 8px 4px;
  display: grid;
  overflow: auto;
}

.select-popup li.empty {
  grid-column: 1 / -1;
}

.select-popup li button {
  text-align: center;
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 8px 28px;
  position: relative;
}

.select-popup li button.on {
  color: #0f172a;
  background: #f1f5f9;
  border-color: #f1f5f9;
}

.select-popup li button .material-icons {
  color: #0f172a;
  position: absolute;
  right: 8px;
}

.select-menu.compact {
  flex: 0 0 148px;
}

.select-menu.compact > button {
  border-radius: 10px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
}

.plist-filters .select-menu > button {
  height: 34px;
  min-height: 34px;
  padding: 0 8px;
  font-size: 14px;
}

.eph-lock .material-icons {
  font-size: 16px;
}

.eph-card .tag-box {
  background: #162033;
  border-color: #ffffff1a;
  min-height: 48px;
}

.eph-card .tag-field > .lbl {
  color: #94a3b8;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.eph-card .tag-box input {
  background: none;
  border: 0;
  height: 32px;
  min-height: 32px;
}

.eph-switch button[role="switch"] {
  background: #ffffff1a;
  width: 44px;
  height: 26px;
}

.eph-switch button[role="switch"]:after {
  background: #94a3b8;
  width: 20px;
  height: 20px;
  top: 3px;
  left: 3px;
}

.eph-switch button[role="switch"].on {
  background: #f1f5f9;
}

.eph-switch button[role="switch"].on:after {
  background: #0f172a;
  left: 21px;
}

.eph-preview {
  color: #94a3b8;
}

.eph-desc > .eph-link {
  width: auto;
  height: auto;
  min-height: 0;
  box-shadow: none;
  color: #f1f5f9;
  background: none;
  border: 0;
  border-radius: 0;
  align-items: center;
  margin-top: 8px;
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  display: inline-flex;
}

.eph-vis button {
  border-radius: 10px;
  height: 48px;
  font-weight: 600;
}

.eph-vis button:first-child {
  background: #162033;
}

.eph-dock {
  background: var(--canvas);
  padding: 12px 16px calc(18px + env(safe-area-inset-bottom, 0));
  gap: 8px;
}

.eph-dock .btn-ghost {
  color: #f1f5f9;
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 10px;
  flex: 0 0 110px;
  height: 48px;
}

.eph-dock .btn {
  color: #0f172a;
  background: #f1f5f9;
  border: 0;
  border-radius: 10px;
  height: 48px;
  font-weight: 600;
}

.eph-var-tools {
  gap: 8px;
}

.eph-search {
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  height: 44px;
  padding: 0 12px;
}

.eph-search input {
  height: 42px;
  min-height: 0;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.eph-add-size {
  color: #0f172a;
  background: #f1f5f9;
  border: 0;
  border-radius: 10px;
  width: auto;
  height: 44px;
  padding: 0 14px;
  font-weight: 600;
}

.eph-size-sheet {
  z-index: 1200;
  background: #020617b8;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  display: flex;
  position: fixed;
  inset: 0;
}

.eph-size-sheet > div {
  background: #0f172a;
  border: 1px solid #ffffff1a;
  border-radius: 16px;
  gap: 12px;
  width: min(100%, 420px);
  max-height: min(78dvh, 640px);
  padding: 16px;
  display: grid;
  overflow: auto;
  box-shadow: 0 24px 60px #00000080;
}

.eph-size-sheet header {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.eph-size-sheet header button {
  color: #f1f5f9;
  background: none;
  border: 0;
  border-radius: 10px;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  display: grid;
}

.eph-size-sheet .select-menu.popup > button {
  background: #162033;
  border-color: #ffffff1a;
  border-radius: 10px;
  height: 48px;
  font-weight: 600;
}

.eph-size-sheet .select-menu.popup > button i.material-icons {
  color: #e2e8f0;
  background: #ffffff14;
  border-radius: 8px;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  font-size: 16px;
  font-style: normal;
  display: grid;
}

.eph-size-sheet h2 {
  margin: 0;
  font-size: 17px;
}

.eph-size-sheet label {
  color: #94a3b8;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  display: grid;
}

.eph-size-sheet input {
  color: #f1f5f9;
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  height: 48px;
  padding: 0 14px;
  font-size: 15px;
}

.eph-size-sheet .eph-var-money input {
  width: auto;
  height: 100%;
  min-height: 0;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
}

.eph-size-sheet .muted {
  margin: 0;
}

.eph-size-error {
  color: #fca5a5;
  margin: 0;
  font-size: 13px;
}

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

.eph-size-actions button:first-child {
  color: #f1f5f9;
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 10px;
  flex: 0 0 110px;
  height: 48px;
}

.eph-size-actions button:last-child {
  color: #0f172a;
  background: #f1f5f9;
  border-radius: 10px;
  flex: 1;
  height: 48px;
  font-weight: 600;
}

.eph-chips {
  align-items: center;
  padding: 0;
}

.eph-chips button {
  background: #0f172a;
  border-radius: 8px;
  height: 32px;
  min-height: 32px;
  font-weight: 500;
}

.eph-chips button.on {
  color: #f1f5f9;
  background: #ffffff1a;
  border-color: #f1f5f9;
}

.eph-bulk {
  white-space: nowrap;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}

.eph-var-list {
  background: #0f172a;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  overflow: hidden;
}

.eph-var-row {
  width: 100%;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid #ffffff1a;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  display: flex;
}

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

.eph-var-row b {
  font-size: 15px;
}

.eph-var-side {
  text-align: right;
  display: grid;
}

.eph-var-side em {
  color: #fbbf24;
  background: #fbbf2424;
  border-radius: 6px;
  align-items: center;
  height: 18px;
  margin-right: 6px;
  padding: 0 6px;
  font-size: 10.5px;
  display: inline-flex;
}

.eph-chev {
  color: #94a3b8;
  font-size: 18px;
}

.eph-var-edit {
  background: #162033;
  border-bottom: 1px solid #ffffff1a;
  border-left: 3px solid #f1f5f9;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.eph-var-edit-top, .eph-var-money, .eph-step {
  align-items: flex-end;
  gap: 10px;
  display: flex;
}

.eph-var-edit-top {
  justify-content: space-between;
  align-items: center;
}

.eph-var-edit-top b, .eph-var-edit-top small {
  display: block;
}

.eph-var-options {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  display: grid;
}

.eph-var-edit .select-menu.popup > button {
  background: #162033;
  border-color: #ffffff1a;
  border-radius: 10px;
  height: 48px;
  font-weight: 600;
}

.eph-var-edit .select-menu.popup > button i.material-icons {
  color: #e2e8f0;
  background: #ffffff14;
  border-radius: 8px;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  font-size: 16px;
  font-style: normal;
  display: grid;
}

.eph-var-money label, .eph-step label {
  color: #94a3b8;
  flex: 1;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  display: grid;
}

.eph-var-money span, .eph-step span {
  background: #0f172a;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  display: flex;
}

.eph-var-money input {
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
  text-align: left;
  appearance: textfield;
  background: none;
  border: 0;
  border-radius: 0;
  flex: 1;
  width: auto;
  min-width: 0;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.eph-var-money input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.eph-var-money input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.eph-var-money i {
  color: #94a3b8;
  flex: none;
  font-style: normal;
  font-weight: 600;
}

.eph-step span {
  justify-content: space-between;
  padding: 0 4px;
}

.eph-step span b {
  text-align: center;
  font-variant-numeric: tabular-nums;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}

.eph-step button {
  color: #f1f5f9;
  background: none;
  border: 0;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  font-size: 20px;
}

.eph-step .done {
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 10px;
  flex: 0 0 110px;
  width: 110px;
  height: 44px;
  margin-left: 0;
  font-size: 15px;
  font-weight: 600;
}

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

.eph-add, .eph-img-tools > button {
  border-radius: 10px;
  flex: 1;
  justify-content: center;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
}

.eph-add {
  color: #0f172a;
  background: #f1f5f9;
  border: 0;
}

.eph-img-tools > button {
  background: #162033;
  border: 1px solid #ffffff1a;
}

.eph-img-meta {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.eph-img-meta button {
  color: #f1f5f9;
  background: none;
  border: 0;
  min-height: 36px;
  padding: 0 4px;
  font-weight: 600;
}

.eph-img-meta button.on {
  color: var(--ink-strong);
}

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

.eph-tile {
  aspect-ratio: 1;
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.eph-tile-hit, .eph-tile img {
  height: 100%;
}

.eph-tile img, .eph-tile-hit {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}

.eph-tile img {
  pointer-events: none;
}

.eph-tile-hit em.cover {
  color: #0f172a;
  background: #f1f5f9;
  border-radius: 6px;
}

.eph-tile-tools {
  pointer-events: none;
  background: none;
  display: block;
  position: absolute;
  inset: 0;
}

.eph-tile-tools button {
  pointer-events: auto;
  color: #f1f5f9;
  background: #020617c7;
  border: 0;
  border-radius: 8px;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  line-height: 1;
  display: grid;
  position: absolute;
  bottom: 8px;
}

.eph-tile-tools button .material-icons {
  text-align: center;
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
  display: block;
}

.eph-tile-tools .star {
  color: #fbbf24;
  left: 8px;
}

.eph-tile-tools button:first-child:not(.star) {
  left: 8px;
}

.eph-tile-tools .alt {
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: auto;
  height: 32px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  left: 44px;
}

.eph-tile-tools .alt i {
  background: #fbbf24;
  border-radius: 50%;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin: 0;
  display: block;
}

.eph-tile-tools .drag {
  touch-action: none;
  cursor: grab;
  width: 32px;
  height: 32px;
  inset: 8px 8px auto auto;
}

.eph-tile-tools .drag svg {
  fill: currentColor;
  display: block;
}

.eph-grid.picking .eph-tile-tools {
  display: none;
}

.eph-tile.picked {
  box-shadow: inset 0 0 0 3px var(--action);
}

.eph-tile-hit i.pick {
  z-index: 2;
  color: #fff;
  background: #020617b8;
  border-radius: 50%;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 22px;
  line-height: 28px;
  display: grid;
  inset: 8px 8px auto auto;
}

.eph-tile-hit i.pick.on {
  background: var(--action);
  color: var(--action-ink);
}

.eph-tile.dragging {
  z-index: 3;
  transform: scale(1.03);
  box-shadow: 0 16px 36px #0000008c;
}

.eph-dock .btn:disabled {
  opacity: .45;
}

.eph-tile.dragging .drag {
  cursor: grabbing;
}

.eph-tile-tools .danger {
  color: #f87171;
  left: auto;
  right: 8px;
}

.eph-tile.upload {
  display: grid;
}

.eph-photo-stage {
  position: relative;
}

.eph-photo-frame {
  aspect-ratio: 1;
  touch-action: none;
  cursor: grab;
  width: 100%;
  height: auto;
  position: relative;
}

.eph-photo-frame:active {
  cursor: grabbing;
}

.eph-photo-frame img.eph-photo-img {
  aspect-ratio: auto;
  object-fit: fill;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  width: auto;
  max-width: none;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
}

.eph-photo-frame:before, .eph-photo-frame:after {
  content: "";
  pointer-events: none;
  z-index: 1;
  background: #ffffff73;
  position: absolute;
}

.eph-photo-frame:before {
  width: 1px;
  top: 16%;
  bottom: 16%;
  left: 50%;
}

.eph-photo-frame:after {
  height: 1px;
  top: 50%;
  left: 16%;
  right: 16%;
}

.eph-photo-mark {
  z-index: 1;
  pointer-events: none;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px #00000073;
}

.eph-photo-pan {
  z-index: 1;
  color: #f8fafc;
  pointer-events: none;
  background: #020617b8;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.eph-photo-nav {
  z-index: 2;
  color: #fff;
  background: #0f172ad1;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 4px 16px #00000059;
}

.eph-photo-nav.prev {
  left: 8px;
}

.eph-photo-nav.next {
  right: 8px;
}

.eph-photo-nav:disabled {
  opacity: .35;
}

.eph-photo-nav .material-icons {
  font-size: 28px;
}

.eph-zoom {
  align-items: center;
  gap: 8px;
  display: flex;
}

.eph-zoom > span {
  color: #e2e8f0;
  flex: none;
  font-size: 13px;
  font-weight: 700;
}

.eph-zoom button {
  color: #f1f5f9;
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  flex: none;
  width: 44px;
  height: 44px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.eph-zoom button.fit {
  width: auto;
  padding: 0 12px;
  font-size: 14px;
}

.eph-zoom button:disabled {
  opacity: .4;
}

.eph-zoom input[type="range"] {
  accent-color: #e2e8f0;
  flex: 1;
  min-width: 0;
  height: 28px;
}

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

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

.eph-alt-meta {
  color: #94a3b8;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  display: flex;
}

.eph-sheet {
  background: #0f172a;
  border-radius: 20px 20px 0 0;
  top: 96px;
  box-shadow: 0 0 0 100vh #020617b8;
}

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

@media (max-width: 767px) {
  .mview {
    background: var(--canvas);
    padding: 8px 16px calc(96px + env(safe-area-inset-bottom));
    gap: 14px;
  }

  .mview-bar b {
    text-align: left;
    font-size: 17px;
  }

  .mview-frame {
    aspect-ratio: auto;
    border-radius: 16px;
    height: 290px;
  }

  .mview h2 {
    font-size: 19px;
    font-weight: 700;
  }

  .mview-count {
    border-radius: 6px;
    font-size: 12px;
  }

  .mview .pdesk-stats {
    gap: 10px;
    display: flex;
  }

  .mview .pdesk-stats section {
    background: #0f172a;
    border: 1px solid #ffffff1a;
    border-radius: 12px;
    flex: 1;
    padding: 12px 14px;
  }

  .mview .pdesk-stats b {
    font-size: 19px;
  }

  .mview-dock {
    background: var(--canvas);
    padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
    align-items: stretch;
  }

  .mview-dock .pdesk-edit {
    background: var(--action);
    height: 48px;
    min-height: 48px;
    color: var(--action-ink);
    border-radius: 10px;
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    display: flex;
  }

  .mview-dock .pdesk-more {
    flex: 0 0 110px;
  }

  .mview-dock .pdesk-more > button {
    background: var(--well);
    border: 1px solid var(--line);
    width: 100%;
    height: 48px;
    min-height: 48px;
    color: var(--ink);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
  }

  .btn, .btn-ghost, .btn-danger {
    border-radius: 10px;
    min-height: 48px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
  }

  .btn, .btn:hover {
    background: var(--action);
    color: var(--action-ink);
    border-color: #0000;
  }

  .btn-ghost, .btn-ghost:hover {
    background: var(--well);
    color: var(--ink);
    border: 1px solid var(--line);
  }

  .btn-danger, .btn-danger:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
  }

  .login-submit {
    min-height: 52px;
  }

  .select-menu > button {
    color: #f1f5f9;
    background: #162033;
    border-color: #ffffff1a;
    height: 48px;
  }

  .select-menu.compact > button {
    height: 40px;
  }
}

.cats {
  width: min(100%, 420px);
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
  gap: 12px;
  margin: 0 auto;
  display: grid;
}

.cats > * {
  min-width: 0;
  max-width: 100%;
}

.cats .btn, .cats .btn-ghost, .cats .btn-danger, .ui-sheet.cat-picker .btn, .ui-sheet.cat-picker .btn-ghost, .ui-sheet.cat-sheet .btn, .ui-sheet.cat-sheet .btn-ghost {
  text-align: center;
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  height: 44px;
  min-height: 0;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
}

.cats-head b {
  letter-spacing: -.02em;
  font-size: 22px;
  line-height: 28px;
  display: block;
}

.cats-head small, .cats-bar small, .cat-tile small, .cat-subs small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.cats-detail {
  gap: 0;
}

.cats-detail .cats-bar {
  top: calc(44px + env(safe-area-inset-top, 0px));
  z-index: 20;
  background: var(--canvas);
  min-height: 52px;
  margin: -16px -16px 12px;
  padding: 0 8px 0 4px;
  position: sticky;
}

.cats-detail .cat-crumb {
  height: 30px;
  margin: 0;
  padding: 0 0 0 8px;
}

.cats-detail .cat-add {
  margin-top: 8px;
}

.cats-detail .cat-section {
  margin: 14px 0 8px;
}

.cats-bar {
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  display: flex;
}

.cats-bar > button {
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 10px;
  flex: none;
  padding: 0;
}

.cats-bar > div {
  flex: 1;
  min-width: 0;
}

.cats-bar b, .cats-bar small {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.cats-bar b {
  font-size: 16px;
  line-height: 1.2;
}

.cats .cat-edit-btn, .cats .cat-edit-btn:hover {
  color: #f1f5f9;
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 10px;
  flex: none;
  width: auto;
  max-width: none;
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  overflow: visible;
}

.cats .cat-add, .cats .cat-add:hover {
  color: #0f172a;
  background: #f8fafc;
  border-color: #0000;
  border-radius: 10px;
  height: 44px;
  min-height: 44px;
}

.cat-badge {
  color: #cbd5e1;
  background: #94a3b829;
  border-radius: 6px;
  flex: none;
  justify-content: center;
  align-self: center;
  align-items: center;
  height: 22px;
  margin: 0 8px 0 0;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}

.cat-badge.on {
  color: #4ade80;
  background: #4ade8024;
}

.cats-tools {
  align-items: center;
  gap: 8px;
  display: flex;
}

.cats-tools .ui-search {
  border-color: #ffffff1a;
  border-radius: 8px;
  flex: 1;
  height: 40px;
}

.cats .cat-new {
  border-radius: 10px;
  flex: none;
  height: 40px;
}

.cats .cat-add {
  width: 100%;
}

.cat-section, .cat-hint, .cat-empty, .cat-lock, .cat-label {
  color: var(--muted);
  margin: 0;
}

.cat-section {
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.cat-label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.cat-hint {
  text-align: center;
  padding: 4px 8px 8px;
  font-size: 12px;
}

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

.cat-tile {
  background: #0f172a;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  flex-direction: column;
  min-width: 0;
  display: flex;
  overflow: hidden;
}

.cat-tile.fresh {
  border-color: #1e90ff;
  box-shadow: 0 0 0 2px #1e90ff;
}

.cat-shot {
  color: #334155;
  background: linear-gradient(160deg, #eef1f6, #d9dfea);
  border: 0;
  place-items: center;
  height: 110px;
  padding: 0;
  display: grid;
  position: relative;
}

.cat-shot img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.cat-shot svg {
  width: 52%;
  height: 52%;
}

.cat-shot .material-icons {
  font-size: 42px;
}

.cat-shot em {
  color: #fbbf24;
  background: #fbbf242e;
  border-radius: 6px;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  display: inline-flex;
  position: absolute;
  top: 8px;
  left: 8px;
}

.cat-tile-body {
  gap: 2px;
  padding: 9px 10px 10px;
  display: grid;
}

.cat-tile-body > b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
}

.cat-tile-actions {
  gap: 6px;
  margin-top: 8px;
  display: flex;
}

.cat-tile-actions > button, .cats .cat-more {
  height: 30px;
  min-height: 0;
  color: var(--ink);
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
}

.cat-tile-actions > button {
  flex: 1;
}

.cats .ui-menu-btn.cat-more {
  place-items: center;
  width: 34px;
  padding: 0;
  display: grid;
}

.cats .cat-more .material-icons {
  font-size: 18px;
}

.cat-grid {
  align-items: stretch;
}

.cat-add-tile {
  height: auto;
  min-height: 196px;
  color: var(--ink);
  background: none;
  border: 1.5px dashed #ffffff2e;
  border-radius: 12px;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  align-items: center;
  gap: 4px;
  display: flex;
}

.cat-add-tile span {
  font-size: 24px;
  line-height: 1;
}

.cat-add-tile b {
  font-size: 13px;
}

.cat-crumb {
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  display: flex;
}

.cat-crumb button {
  color: var(--muted);
  background: none;
  border: 0;
  flex: none;
  padding: 0;
  font-weight: 500;
}

.cat-crumb b {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
}

.cat-toast {
  background: #0f172a;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  display: flex;
}

.cat-toast .material-icons {
  color: #4ade80;
}

.cat-toast b {
  flex: 1;
  font-size: 14px;
}

.cat-toast button {
  color: var(--ink-strong);
  background: none;
  border: 0;
  font-weight: 700;
}

.cat-edit {
  gap: 12px;
  display: grid;
}

.cat-edit section, .cat-active {
  background: #0f172a;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.cat-edit h2 {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  font-weight: 700;
}

.cat-subhead {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.cat-subhead span {
  color: var(--muted);
  font-size: 12px;
}

.cat-slug, .cat-inside {
  min-height: 44px;
  color: var(--muted);
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 12px;
  display: flex;
}

.cat-slug b, .cat-inside b {
  color: var(--ink);
  font-weight: 600;
}

.cat-slug em, .cat-inside button {
  color: var(--ink);
  background: none;
  border: 0;
  margin-left: auto;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.cat-subs {
  display: grid;
}

.cat-subs > div {
  border-top: 1px solid #ffffff1a;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  display: flex;
}

.cat-subs > div:first-child {
  border-top: 0;
}

.cat-subs .material-icons {
  color: var(--muted);
  font-size: 18px;
}

.cat-thumb {
  color: #334155;
  background: #e6eaf0;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
  overflow: hidden;
}

.cat-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.cat-thumb svg {
  width: 70%;
  height: 70%;
}

.cat-subs > div > button {
  min-width: 0;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  flex: 1;
  padding: 0;
  display: grid;
}

.cat-subs b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
}

.cat-subs small {
  font-size: 11.5px;
}

.cats .cat-kebab, .cats .cat-kebab:hover {
  width: 28px;
  height: 28px;
  min-height: 0;
  color: var(--muted);
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  line-height: 1;
  display: inline-flex;
}

.cat-sub-add {
  text-align: center;
  color: #f1f5f9;
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 42px;
  margin-top: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  display: flex;
}

.cat-field {
  width: 100%;
  min-height: 44px;
  color: var(--ink);
  text-align: left;
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  display: flex;
}

.cat-field b {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
}

.cat-field .material-icons {
  color: var(--muted);
}

.cat-pick-field {
  gap: 6px;
  display: grid;
}

.cat-pick-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.cat-active {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.cat-active p, .cat-edit p {
  color: var(--muted);
  margin: 0;
  font-size: 12.5px;
}

.cat-active button[role="switch"] {
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 13px;
  width: 44px;
  height: 26px;
  position: relative;
}

.cat-active button[role="switch"]:after {
  content: "";
  background: #94a3b8;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 2px;
  left: 2px;
}

.cat-active button[role="switch"].on {
  background: #4ade80;
  border-color: #4ade80;
}

.cat-active button[role="switch"].on:after {
  background: #052e16;
  left: 20px;
}

.cats .cat-delete, .cats .cat-delete:hover {
  color: #f87171;
  background: #f8717124;
  border-color: #0000;
  width: 100%;
  height: 46px;
}

.cat-save {
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: #0f172a;
  border-top: 1px solid #ffffff1a;
  gap: 8px;
  margin: 0 -.75rem;
  display: flex;
  position: sticky;
  bottom: 0;
}

.cat-save .btn-ghost {
  flex: none;
  width: 110px;
  height: 48px;
}

.cat-save .btn {
  flex: 1;
  height: 48px;
}

.cat-parents, .cat-choices {
  gap: 8px;
  display: grid;
}

.cat-parents button, .cat-choices button {
  min-height: 52px;
  color: var(--ink);
  text-align: left;
  background: #162033;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 8px;
  padding: 8px 12px;
  display: grid;
}

.cat-parents button.on, .cat-choices button.on, .cat-pick-list button.on {
  border-color: #1e90ff;
  box-shadow: 0 0 0 1px #1e90ff;
}

.cat-parents small, .cat-choices small, .cat-pick-list small {
  color: var(--muted);
  grid-column: 1;
  font-weight: 500;
}

.cat-parents .material-icons, .cat-choices .material-icons, .cat-pick-list .material-icons {
  color: #1e90ff;
  grid-row: 1 / span 2;
}

.ui-sheet.cat-picker, .ui-sheet.cat-sheet {
  gap: 12px;
}

.ui-sheet.cat-sheet footer .btn-ghost, .ui-sheet.cat-picker footer .btn-ghost {
  flex: 1;
}

.ui-sheet.cat-sheet footer .btn, .ui-sheet.cat-picker footer .btn, .ui-dialog.cat-create footer .ui-dialog-btn.primary {
  flex: 2;
}

.cat-pick-list {
  gap: 6px;
  max-height: 46dvh;
  display: grid;
  overflow: auto;
}

.cat-pick-list p {
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 700;
}

.cat-pick-list button {
  min-height: 44px;
  color: var(--ink);
  text-align: left;
  background: none;
  border: 1px solid #0000;
  border-radius: 12px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 8px;
  padding: 8px 12px;
  display: grid;
}

.attrs {
  width: min(100%, 420px);
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
  gap: 12px;
  margin: 0 auto;
  display: grid;
}

.attrs > * {
  min-width: 0;
  max-width: 100%;
}

.attrs .btn, .attrs .btn-ghost, .attrs .btn-danger {
  text-align: center;
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  height: 44px;
  min-height: 0;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
}

.attrs-head b {
  letter-spacing: -.02em;
  font-size: 22px;
  line-height: 28px;
  display: block;
}

.attrs-head small, .attrs-bar small, .attr-card small {
  color: var(--muted);
  font-size: 12.5px;
}

.attrs-detail {
  min-height: calc(100dvh - 44px - 32px - env(safe-area-inset-top, 0px));
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.attrs-detail .attrs-bar {
  top: calc(44px + env(safe-area-inset-top, 0px));
  z-index: 20;
  background: var(--canvas);
  min-height: 52px;
  margin: -16px -16px 0;
  padding: 0 8px 0 4px;
  position: sticky;
}

.attrs-bar {
  align-items: center;
  gap: 2px;
  min-height: 52px;
  display: flex;
}

.attrs-bar > button {
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 10px;
  flex: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.attrs-bar > button .material-icons {
  font-size: 22px;
}

.attrs-bar > div {
  flex: 1;
  min-width: 0;
}

.attrs-bar b, .attrs-bar small {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.attrs-bar b {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.attrs-tools {
  align-items: center;
  gap: 8px;
  display: flex;
}

.attrs-tools .ui-search {
  background: #162033;
  border-color: #ffffff14;
  border-radius: 12px;
  flex: 1;
  height: 44px;
}

.attrs .attr-new, .attrs .attr-new:hover {
  color: #0f172a;
  background: #f8fafc;
  border-color: #0000;
  border-radius: 12px;
  flex: none;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 700;
}

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

.attr-card {
  background: #1e293b;
  border: 1px solid #ffffff0f;
  border-radius: 16px;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.attr-card header {
  align-items: flex-start;
  gap: 8px;
  display: flex;
}

.attr-card header > div {
  flex: 1;
  min-width: 0;
}

.attr-card header b {
  font-size: 16px;
  line-height: 1.25;
  display: block;
}

.attrs .attr-more, .attrs .attr-more:hover {
  width: 28px;
  height: 28px;
  min-height: 0;
  color: var(--muted);
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.attr-chips, .attr-pills {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.attr-chip, .attr-pills > span {
  height: 28px;
  color: var(--ink);
  background: #0f172a;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
}

.attr-chip.more {
  color: #cbd5e1;
}

.attr-chip i, .attr-pills i {
  border: 1px solid #ffffff47;
  border-radius: 50%;
  flex: none;
  width: 10px;
  height: 10px;
}

.attr-values i {
  border: 1px solid #ffffff47;
  border-radius: 50%;
  flex: none;
  width: 16px;
  height: 16px;
}

.attr-open {
  width: 100%;
  height: 40px;
  color: var(--ink);
  background: #0f172a;
  border: 1px solid #ffffff0f;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  display: flex;
}

.attr-hint, .attr-empty, .attr-note, .attr-tip {
  color: var(--muted);
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
}

.attr-hint, .attr-empty {
  text-align: center;
}

.attr-form {
  flex-direction: column;
  flex: 1;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.attr-form section {
  background: #1e293b;
  border: 1px solid #ffffff0f;
  border-radius: 16px;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.attr-form .ui-field {
  color: #cbd5e1;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.attr-form .ui-field-box {
  background: #0f172a;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  height: 44px;
}

.attr-label {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
}

.attr-form h2 {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.attr-subhead {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.attr-subhead span {
  color: var(--muted);
  font-size: 13px;
}

.attr-step, .attr-add {
  background: none;
  border: 0;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 0;
  display: flex;
}

.attr-step b, .attr-step button, .attr-add input, .attr-add button {
  height: 44px;
  color: var(--ink);
  background: #0f172a;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
}

.attr-step b {
  flex: 1;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  display: flex;
}

.attr-step button, .attr-add button {
  flex: none;
  justify-content: center;
  align-items: center;
  width: 44px;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}

.attr-add button {
  width: auto;
  min-width: 64px;
  padding: 0 14px;
  font-size: 14px;
}

.attr-add input, .attr-values input {
  min-width: 0;
  font: inherit;
  flex: 1;
}

.attr-add input {
  padding: 0 12px;
}

.attr-values {
  display: grid;
}

.attr-values > div {
  border-top: 1px solid #ffffff14;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  display: flex;
}

.attr-values em {
  width: 24px;
  color: var(--muted);
  text-align: right;
  flex: none;
  font-size: 13px;
  font-style: normal;
}

.attr-values input {
  background: none;
  border: 0;
  height: 40px;
  font-size: 15px;
  font-weight: 600;
}

.attr-values .material-icons {
  color: var(--muted);
  flex: none;
  font-size: 18px;
}

.attr-values > div > button, .attr-pills button {
  width: 28px;
  height: 28px;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 8px;
  flex: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.attr-pills button .material-icons, .attr-values > div > button .material-icons {
  font-size: 16px;
}

.attrs .attr-delete, .attrs .attr-delete:hover {
  color: #f87171;
  background: #3b1d24;
  border: 0;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 48px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: flex;
}

.attr-save {
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: #020617;
  gap: 8px;
  margin: auto -16px 0;
  display: flex;
  position: sticky;
  bottom: 0;
}

.attr-save .btn-ghost {
  color: #f1f5f9;
  background: #1e293b;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  flex: none;
  width: 112px;
  height: 48px;
}

.attr-save .btn {
  border-radius: 12px;
  flex: 1;
  height: 48px;
}

.ui-dialog-badge {
  color: #302f29;
  background: #fbbf24;
  border-radius: 7px;
  flex: none;
  justify-content: center;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}

.ui-dialog.attr-dialog header button {
  display: none;
}

.ui-dialog.attr-dialog p {
  color: #94a3b8;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.ui-dialog.attr-dialog .ui-dialog-btn {
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  height: 48px;
  line-height: 1;
  display: inline-flex;
}

.ui-dialog.attr-dialog .ui-dialog-btn.cancel {
  color: #f8fafc;
  background: #0f172a;
  border-color: #0000;
}

.ui-dialog.attr-dialog .ui-dialog-btn.danger {
  color: #1a0505;
  background: #f87171;
}

.ui-dialog.attr-blocked footer .ui-dialog-btn {
  flex: 1;
}

/*# sourceMappingURL=app_globals_0yg4wg8plh8sv.css.map*/