@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&display=swap");
:root {
  font-family: "DM Sans", Arial, sans-serif;
  color: #171717;
  background: #f8f8f8;
  font-synthesis: none;
  --muted: #777;
  --line: #e9e9e9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #dedede;
  border-radius: 7px;
  background: white;
  color: #202020;
  padding: 11px 12px;
  transition: border-color 0.15s;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #333;
  outline: 2px solid #1111;
  outline-offset: 1px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 550;
  font-size: 13px;
}
label small,
.hint {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.6;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-weight: 550;
  font-size: 32px;
  letter-spacing: -1.3px;
  line-height: 1.25;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.7px;
  color: #777;
}
.mark {
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 650;
  background: #111;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  letter-spacing: -2px;
  padding-right: 3px;
}
.brand-small {
  margin-left: 8px;
  color: #888;
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 500;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.8px;
  margin: 30px 24px 38px;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 254px;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.site-switch {
  margin: 0 18px 32px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.site-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #eee;
  border-radius: 6px;
  font-weight: 650;
}
.site-switch > span:last-child {
  flex: 1;
}
.site-switch small {
  font-size: 9px;
  letter-spacing: 1px;
  color: #888;
  display: block;
}
.site-switch select {
  padding: 2px 0;
  border: 0;
  font-size: 13px;
  font-weight: 600;
}
.nav-label {
  padding: 0 30px;
  color: #aaa;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.4px;
  margin-bottom: 10px;
}
nav {
  padding: 0 14px;
}
nav > button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 13px 15px;
  color: #717171;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  margin: 3px 0;
}
nav > button > span {
  width: 18px;
  text-align: center;
  font-size: 16px;
}
nav > button > b {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  border: 1px solid #ddd;
  padding: 1px 5px;
  border-radius: 4px;
}
nav > button.active {
  background: #f0f0f0;
  color: #111;
}
nav > button:hover {
  background: #f7f7f7;
  color: #111;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 22px 20px;
}
.sidebar-bottom > a {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #777;
  margin-bottom: 25px;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f1f1;
  font-weight: 600;
}
.account > div {
  min-width: 0;
  flex: 1;
}
.account strong {
  font-size: 11px;
  display: block;
}
.account small {
  font-size: 10px;
  display: block;
  max-width: 134px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
  color: #888;
}
.account button {
  border: 0;
  background: none;
  font-size: 19px;
  color: #777;
}
.main-shell {
  margin-left: 254px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 72px;
  padding: 0 38px;
  background: #ffffffb0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.topbar strong {
  font-weight: 500;
}
.slash {
  color: #ccc;
  margin: 0 14px;
}
.connected {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #888;
  font-size: 11px;
}
.connected i {
  height: 5px;
  width: 5px;
  background: #333;
  border-radius: 50%;
}
main {
  max-width: 1450px;
  margin: auto;
  padding: 42px 42px 80px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.page-head p {
  color: #888;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
}
.button {
  border: 1px solid #dedede;
  background: white;
  color: #222;
  padding: 10px 15px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 550;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  white-space: nowrap;
}
.button:hover {
  background: #f5f5f5;
}
.button.primary {
  background: #161616;
  color: white;
  border-color: #161616;
  box-shadow: 0 1px 2px #0002;
}
.button.primary:hover {
  background: #333;
}
.button.danger {
  background: #952e2e;
  color: white;
  border-color: #952e2e;
}
.wide {
  width: 100%;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  padding: 22px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.stat > span {
  font-size: 12px;
  color: #888;
}
.stat strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -1px;
}
.stat small {
  font-size: 10px;
  color: #999;
  margin-left: 10px;
  font-weight: 400;
  letter-spacing: 0;
}
.panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  overflow: hidden;
}
.toolbar {
  padding: 18px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.filter-tabs {
  display: flex;
  gap: 4px;
}
.filter-tabs button {
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: #888;
  font-size: 12px;
  border-radius: 5px;
}
.filter-tabs button.active {
  background: #f1f1f1;
  color: #111;
  font-weight: 600;
}
.search {
  max-width: 270px;
  position: relative;
}
.search input {
  font-size: 12px;
  background: #fafafa;
  padding: 9px 12px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  padding: 14px 24px;
  background: #fafafa;
  color: #939393;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
td {
  padding: 18px 24px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
}
tbody tr:hover {
  background: #fcfcfc;
}
.product-name {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}
.thumb {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  background: #eee;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: #999;
  flex-shrink: 0;
}
.product-name strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 5px;
}
.product-name small {
  display: block;
  font-size: 10px;
  color: #aaa;
  max-width: 245px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  border: 1px solid #dedede;
  padding: 4px 8px;
  border-radius: 20px;
  background: #fff;
  white-space: nowrap;
}
.pill:before {
  content: "";
  width: 4px;
  height: 4px;
  background: #333;
  border-radius: 50%;
}
.pill.draft {
  color: #999;
  background: #fafafa;
}
.pill.draft:before {
  background: #bbb;
}
.price-cell small {
  display: block;
  text-decoration: line-through;
  color: #aaa;
  margin-bottom: 4px;
  font-size: 10px;
}
.icon-button {
  border: 0;
  background: none;
  width: 30px;
  height: 30px;
  font-size: 17px;
  color: #999;
}
.icon-button:hover {
  background: #eee;
  color: #111;
  border-radius: 5px;
}
.table-foot {
  padding: 16px 24px;
  color: #999;
  font-size: 11px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.empty {
  padding: 75px 20px;
  text-align: center;
  color: #888;
}
.empty h2 {
  color: #222;
  margin: 15px 0 10px;
}
.empty p {
  margin-bottom: 20px;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 25px;
}
.form-main {
  display: grid;
  gap: 22px;
}
.form-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-section {
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.form-section h2 {
  font-size: 15px;
  margin-bottom: 5px;
}
.form-section > p {
  font-size: 12px;
  color: #999;
  margin-bottom: 22px;
  line-height: 1.6;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fields .full {
  grid-column: 1/-1;
}
.fields + .fields {
  margin-top: 20px;
}
.form-section > label {
  margin-top: 20px;
}
.product-preview img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
  margin-bottom: 18px;
}
.product-preview h3 {
  font-size: 17px;
  line-height: 1.5;
}
.product-preview p {
  color: #888;
  font-size: 12px;
  margin: 9px 0 18px;
}
.product-preview strong {
  font-size: 20px;
  font-weight: 500;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.editor-back {
  display: inline-flex;
  margin-bottom: 22px;
  font-size: 12px;
  color: #888;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
}
.image-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.image-row img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 5px;
  background: #eee;
}
.image-row input {
  flex: 1;
  min-width: 0;
  font-size: 12px;
}
.upload-area {
  margin-top: 16px;
  border: 1px dashed #d6d6d6;
  border-radius: 7px;
  padding: 24px;
  text-align: center;
}
.upload-area p {
  margin: 12px 0 0;
  font-size: 11px;
  color: #999;
  line-height: 1.7;
}
.upload-area input {
  display: none;
}
.upload-button {
  cursor: pointer;
  display: inline-flex;
}
.field-note {
  color: #999;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 12px;
}
.section-divider {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.link-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 28px 28px 28px;
  gap: 8px;
  align-items: end;
  margin-bottom: 14px;
}
.link-row input {
  font-size: 12px;
}
.link-row label {
  font-size: 11px;
}
.link-row .icon-button {
  height: 39px;
}
.stack {
  display: grid;
  gap: 24px;
}
.copy-row {
  padding: 22px 25px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 35px;
  border-bottom: 1px solid var(--line);
}
.copy-row:last-child {
  border-bottom: 0;
}
.copy-row > div > span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  display: block;
  margin-bottom: 7px;
}
.copy-row p {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.copy-row textarea {
  min-height: 60px;
  font-size: 13px;
}
.copy-search {
  margin-bottom: 22px;
  max-width: 450px;
}
.toggle-row {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.toggle-row input {
  appearance: none;
  width: 38px;
  height: 22px;
  padding: 0;
  border-radius: 20px;
  background: #ddd;
  position: relative;
  cursor: pointer;
  border: 0;
  flex-shrink: 0;
}
.toggle-row input:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 3px;
  left: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-row input:checked {
  background: #111;
}
.toggle-row input:checked:after {
  transform: translateX(16px);
}
.popup-preview {
  background: #e9e9e9;
  padding: 25px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
}
.popup-card {
  background: #fff;
  border-radius: 8px;
  max-width: 260px;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 12px 24px #0001;
}
.popup-card img {
  width: 100%;
  display: block;
}
.popup-card .placeholder {
  aspect-ratio: 1.2;
  display: grid;
  place-items: center;
  color: #aaa;
  background: #fafafa;
  padding: 25px;
  text-align: center;
}
.popup-card button {
  position: absolute;
  right: 8px;
  top: 8px;
  background: white;
  border: 0;
  border-radius: 50%;
  width: 24px;
  height: 24px;
}
.popup-card .preview-cta {
  margin: 12px;
  background: #111;
  color: white;
  border-radius: 4px;
  font-size: 11px;
  padding: 10px;
  text-align: center;
}
.save-bar {
  position: sticky;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid #e2e2e2;
  background: #ffffffef;
  backdrop-filter: blur(16px);
  border-radius: 9px;
  margin-top: 24px;
  box-shadow: 0 8px 25px #0001;
  z-index: 3;
  font-size: 12px;
  color: #888;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.media-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.media-item img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  background: #eee;
}
.media-item > div {
  padding: 14px;
}
.media-item p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #888;
  margin-bottom: 12px;
}
.media-item .button {
  width: 100%;
}
.login-view {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 650;
  margin-bottom: 40px;
}
.login-card {
  width: min(100%, 410px);
  padding: 35px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.login-card h1 {
  font-size: 30px;
  margin: 15px 0 9px;
}
.login-card > .muted {
  font-size: 13px;
  margin-bottom: 28px;
}
.login-card > label {
  margin: 18px 0;
}
.login-card > .button {
  margin-top: 10px;
}
.login-bottom {
  font-size: 11px;
  color: #aaa;
  margin: 30px 0;
}
.error {
  color: #a12a2a;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 15px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 28px;
  background: #191919;
  color: white;
  padding: 16px 22px;
  border-radius: 8px;
  box-shadow: 0 8px 30px #0002;
  z-index: 100;
  font-size: 13px;
  max-width: 450px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  max-width: 440px;
  width: calc(100% - 40px);
}
dialog::backdrop {
  background: #0005;
  backdrop-filter: blur(3px);
}
dialog p {
  margin: 15px 0 25px;
  font-size: 14px;
  line-height: 1.6;
  color: #777;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  main {
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 215px;
  }
  .main-shell {
    margin-left: 215px;
  }
  main {
    padding: 30px 24px;
  }
  .form-layout {
    grid-template-columns: 1fr 250px;
  }
  .topbar {
    padding: 0 24px;
  }
  .connected {
    display: none;
  }
  td,
  th {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 70px;
  }
  .wordmark {
    margin: 24px 16px 28px;
  }
  .wordmark > span:last-child,
  .site-switch,
  .nav-label,
  .sidebar-bottom,
  .sidebar nav button > b {
    display: none;
  }
  .sidebar nav {
    padding: 0 8px;
  }
  .sidebar nav button {
    font-size: 0;
    padding: 14px 16px;
  }
  .sidebar nav button > span {
    font-size: 20px;
  }
  .main-shell {
    margin-left: 70px;
  }
  .topbar {
    height: 60px;
    font-size: 10px;
  }
  .slash {
    margin: 0 8px;
  }
  main {
    padding: 24px 18px;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .page-head p {
    font-size: 12px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat small {
    display: none;
  }
  .form-layout {
    grid-template-columns: 1fr;
  }
  .form-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .form-section {
    padding: 20px;
  }
  .copy-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .link-row {
    grid-template-columns: 1fr 1fr 24px 24px 24px;
    gap: 5px;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .search {
    max-width: none;
  }
}
@media (max-width: 520px) {
  .fields {
    grid-template-columns: 1fr;
  }
  .form-side {
    grid-template-columns: 1fr;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat {
    padding: 12px 10px;
  }
  .stat > span {
    font-size: 10px;
  }
  .stat strong {
    font-size: 21px;
  }
  .link-row {
    grid-template-columns: 1fr repeat(3, 24px);
  }
  .link-row label:first-child {
    grid-column: 1/-1;
  }
  .button {
    padding: 9px 12px;
  }
  .topbar {
    padding: 0 18px;
  }
  .save-bar {
    gap: 10px;
    font-size: 11px;
  }
}
.mobile-signout {
  display: none;
}
@media (max-width: 800px) {
  .mobile-signout {
    display: block;
  }
  .topbar > div {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}
.clerk-login {
  width: min(100%, 420px);
  text-align: center;
}
.clerk-login h1 {
  margin: 16px 0 12px;
  font-size: 30px;
}
.clerk-login > .muted {
  margin-bottom: 20px;
}
.auth-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 24px 0;
  font-size: 13px;
}
.auth-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.clerk-login #auth-loading {
  margin: 35px 0;
  color: #888;
}
.clerk-login #switch-account {
  margin-top: 18px;
}
.clerk-login #clerk-auth {
  text-align: left;
}
#clerk-user-button {
  margin-left: auto;
  margin-right: 18px;
  min-width: 28px;
}
.clerk-login .cl-rootBox {
  width: 100%;
}
