:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #242420;
  background: #f5f4ef;
  font-synthesis: none;
  --red: #be3025;
  --ink: #242420;
  --muted: #73766e;
  --line: #dedfd7;
  --paper: #fffefa;
  --green: #2d7159;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  color: var(--ink);
  padding: 11px 16px;
  font-weight: 600;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:hover:not(:disabled) {
  border-color: #a6a89e;
  background: #f2f1e9;
}
button.primary,
.primary {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
button.primary:hover:not(:disabled) {
  background: #a5281e;
  border-color: #a5281e;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #cd9c38;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 650;
  letter-spacing: -1.6px;
  margin-bottom: 10px;
}
h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
}
h3 {
  font-size: 18px;
  font-weight: 650;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.muted,
small {
  color: var(--muted);
}
.app {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #20251f;
  color: #e9ede4;
  padding: 40px 20px 25px;
  display: flex;
  flex-direction: column;
}
.wordmark {
  font:
    48px Georgia,
    serif;
  letter-spacing: -3px;
  padding: 0 16px;
}
.wordmark span {
  display: block;
  font: 9px system-ui;
  letter-spacing: 1.7px;
  color: #abb5a7;
  margin-top: 12px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
  margin-top: 55px;
}
.sidebar nav button {
  text-align: left;
  background: transparent;
  border-color: transparent;
  color: #c4cdbf;
  font-size: 13px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
}
.sidebar nav button[aria-current] {
  background: #384234;
  color: white;
  border-color: #485441;
}
.sidebar nav button:hover {
  background: #30382c;
}
.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 15px;
  font-size: 12px;
  padding: 20px 14px 0;
}
.sidebar-foot button {
  background: transparent;
  color: #c4cdbf;
  border-color: #45503e;
}
.sidebar-foot small {
  color: #93a08c;
  font-size: 11px;
}
.topbar {
  padding: 23px 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 15px;
}
#connection {
  color: var(--green);
}
.workspace {
  padding: 40px;
  max-width: 1540px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.page-head p:last-child {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
  line-height: 1.6;
}
.page-head > .primary {
  white-space: nowrap;
}
.status:empty {
  display: none;
}
.status {
  padding: 12px 16px;
  background: #ecefe6;
  border-radius: 8px;
  font-size: 13px;
}
.status.error,
#editor-status.error,
#login-status.error {
  color: #9d241b;
  background: #fff1ed;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 26px 0;
}
.stat {
  background: var(--paper);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stat strong {
  display: block;
  font-size: 38px;
  font-weight: 550;
  letter-spacing: -1px;
  margin: 14px 0 5px;
}
.stat small {
  font-size: 11px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
}
.panel p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.panel .link-field {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.link-field input {
  min-width: 0;
  flex: 1;
  font-size: 12px;
  background: #f5f4ef;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.row:last-child {
  border-bottom: 0;
}
.row strong {
  font-size: 13px;
}
.row small {
  font-size: 11px;
}
.badge {
  display: inline-flex;
  border-radius: 5px;
  padding: 4px 7px;
  background: #eef0e9;
  color: #596352;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.badge.active {
  background: #e8f1e8;
  color: #2c6848;
}
.badge.inactive,
.badge.archived {
  background: #f0e6df;
  color: #80523c;
}
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filters input {
  flex: 1;
  min-width: 220px;
}
.filters select {
  max-width: 220px;
}
input,
textarea,
select {
  border: 1px solid #d6d8cf;
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  padding: 11px 12px;
  width: 100%;
  font-size: 13px;
}
textarea {
  min-height: 96px;
  resize: vertical;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}
label small {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: #f0f0e9;
  padding: 13px 18px;
  font-weight: 600;
}
td {
  padding: 14px 18px;
  border-top: 1px solid #e9e9e1;
  vertical-align: middle;
}
td button {
  font-size: 11px;
  padding: 8px 12px;
}
td small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.product-cell {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 235px;
}
.product-cell img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 7px;
  background: #e9e9df;
}
.product-cell strong {
  font-weight: 650;
  line-height: 1.45;
}
.product-info { flex: 1; min-width: 0; }
.product-cell .product-photo {
  position: relative; flex: 0 0 58px; width: 58px; height: 58px;
  padding: 0; border: 0; border-radius: 8px; background: #e9e9df;
}
.product-photo img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.product-cell .product-photo.is-empty{flex-basis:40px;width:40px;height:40px;border:1px solid var(--line);background:transparent;color:#6f7868}
.product-photo-empty-icon{display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%}.product-photo-empty-icon svg{width:22px;height:22px}.product-photo-empty-icon>span{position:absolute;right:1px;top:-2px;font-size:16px;line-height:1;background:var(--paper);border-radius:50%}
.product-table .product-price{display:inline-flex;align-items:center;gap:9px;justify-content:flex-end;padding:9px 0 9px 9px;background:none;border:0;font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}.product-price>span{color:var(--muted);font-size:12px}.product-price:hover:not(:disabled){background:none;color:var(--red)}.product-table .price{text-align:right}.product-table th:nth-child(4){text-align:right}.product-table .product-category{color:var(--muted);line-height:1.5}.product-table .product-name{font-size:13px;overflow-wrap:anywhere}
.photo-pencil {
  position: absolute; bottom: -3px; right: -3px; width: 23px; height: 23px;
  display: grid; place-items: center; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 7px; font-size: 16px; line-height: 1;
  box-shadow: 0 2px 5px #20251f16;
}
.product-cell .product-name {
  background: transparent; border: 0; padding: 3px 0; text-align: left;
  font-size: 12px; font-weight: 650; line-height: 1.45;
}
.product-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-cell .product-more {
  flex: 0 0 36px; width: 36px; height: 44px; padding: 0;
  border-color: transparent; background: transparent; font-size: 23px; line-height: 1;
}
.product-more[aria-expanded="true"] { background: #ecefe6; }
.product-menu {
  position: fixed; z-index: 30; width: 255px; max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px); overflow-y: auto; padding: 7px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 45px #20251f30;
}
.product-menu-name {
  padding: 10px 11px; font-size: 12px; color: var(--muted); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-menu button {
  display: block; width: 100%; text-align: left; background: transparent;
  border: 0; border-radius: 6px; padding: 13px 11px; font-size: 13px; min-height: 44px;
}
.product-menu button:focus-visible { outline-offset: -2px; background: #ecefe6; }
.product-menu .danger-action { color: #a5281e; }
.menu-separator { height: 1px; margin: 5px 4px; background: var(--line); }
dialog.confirmation { max-width: 440px; }
.confirmation-content { padding: 28px 28px 12px; }
.confirmation-content h2 { font-size: 24px; margin-bottom: 12px; }
.confirmation-name { font-size: 14px; font-weight: 650; margin-bottom: 10px; }
.confirmation-name:empty { display: none; }
#confirmation-detail { font-size: 13px; color: var(--muted); line-height: 1.65; }
.confirmation-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px 24px; flex-wrap: wrap; }
.confirmation-actions button { font-size: 12px; }
.photo-preview-button { padding: 0; overflow: hidden; border: 0; position: relative; }
.photo-preview-button img { display: block; }
.photo-preview-button span {
  position: absolute; inset: auto 0 0; padding: 9px; background: #172018ba;
  color: white; font-size: 12px; text-align: center;
}
dialog.photo-dialog { max-width: 480px; }
.photo-dialog .editor-head h2 { font-size: 23px; }
.photo-dialog .field-section { display: none; }
.photo-dialog .photo-editor { grid-template-columns: 1fr; }
.photo-dialog .photo-preview-button { width: 100%; }
.photo-dialog .photo-editor img { width: 100%; height: 220px; object-fit: cover; }
.photo-position { margin-top: 18px; font-size: 12px; }
.photo-position summary { cursor: pointer; color: var(--muted); padding: 8px 0; }
.photo-position .field-grid { margin-top: 12px; }
.price {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.empty {
  padding: 60px 25px;
  text-align: center;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.campaign-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}
.campaign-card img {
  height: 145px;
  width: 100%;
  object-fit: cover;
}
.campaign-card > div {
  padding: 20px;
}
.campaign-card h3 {
  margin: 14px 0 10px;
}
.campaign-card p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.campaign-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.brand-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.brand-group button {
  font-size: 12px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field-grid > .wide {
  grid-column: 1/-1;
}
.field-section {
  margin: 28px 0 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 15px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check input {
  width: auto;
}
.weekdays {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.weekdays label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  padding: 10px 8px;
  background: #f1f1e9;
  border-radius: 6px;
}
.weekdays input {
  width: auto;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  max-width: 770px;
  width: calc(100% - 32px);
  padding: 0;
  background: var(--paper);
  color: inherit;
  max-height: 92vh;
  box-shadow: 0 25px 120px #17201850;
}
dialog::backdrop {
  background: #10170e80;
  backdrop-filter: blur(3px);
}
.editor-head {
  padding: 25px 30px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.editor-head h2 {
  margin: 0;
}
.editor-head .eyebrow {
  margin-bottom: 7px;
}
.editor-head button {
  border: 0;
  font-size: 26px;
  padding: 0 8px;
}
.editor-fields {
  padding: 24px 30px;
}
.editor-footer {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  padding: 18px 30px;
  border-top: 1px solid var(--line);
}
.editor-footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
#editor-status {
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 10px;
}
#editor-status:empty {
  display: none;
}
.photo-editor {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: start;
}
.photo-editor img {
  width: 180px;
  height: 125px;
  object-fit: cover;
  border-radius: 8px;
}
.photo-editor label {
  margin-bottom: 14px;
}
.photo-editor input[type="file"] {
  font-size: 11px;
}
.photo-editor button {
  font-size: 11px;
}
.help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.ai-form {
  max-width: 800px;
}
.ai-form label {
  margin: 22px 0;
}
.ai-form textarea {
  min-height: 180px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-brand {
  padding: 12vh 10%;
  background: #20251f;
  color: #eee9d9;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-brand .eyebrow {
  color: #c2c9b0;
}
.login-brand h1 {
  font:
    clamp(60px, 8vw, 120px) Georgia,
    serif;
  letter-spacing: -5px;
  margin-bottom: 50px;
}
.login-brand p {
  font:
    26px/1.5 Georgia,
    serif;
  color: #b8c0ad;
}
.login-brand a {
  margin-top: 40px;
  font-size: 13px;
}
.login-card {
  max-width: 460px;
  align-self: center;
  justify-self: center;
  width: 100%;
  padding: 35px;
}
.login-card h2 {
  font-size: 31px;
  line-height: 1.25;
}
.login-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.login-card label {
  margin: 24px 0;
}
.login-card .primary {
  width: 100%;
  margin-top: 6px;
}
.session-recovery { max-width: 460px; }
.session-recovery .login-card { padding: 28px; }
.session-recovery .login-card h2 { font-size: 26px; }
#continue-editing { width: 100%; margin-top: 8px; font-size: 12px; }
#login-status {
  font-size: 12px;
}
.boot {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .workspace {
    padding: 28px;
  }
  .topbar {
    padding: 20px 28px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding: 32px 12px;
  }
  .wordmark {
    font-size: 42px;
  }
}
@media (max-width: 700px) {
  .app {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 20px;
  }
  .wordmark {
    font-size: 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
  }
  .wordmark span {
    margin: 0;
    font-size: 8px;
  }
  .sidebar nav {
    margin-top: 24px;
    display: flex;
    overflow: auto;
    gap: 5px;
    padding-bottom: 5px;
  }
  .sidebar nav button {
    flex-shrink: 0;
    padding: 11px;
    font-size: 11px;
  }
  .sidebar nav button span {
    display: none;
  }
  .sidebar-foot {
    display: flex;
    gap: 20px;
    padding: 12px 0 0;
    align-items: center;
  }
  .sidebar-foot small {
    display: none;
  }
  .sidebar-foot button {
    border: 0;
    padding: 0;
    font-size: 12px;
  }
  .workspace {
    padding: 24px 18px;
  }
  .topbar {
    padding: 17px 18px;
    font-size: 10px;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head > .primary {
    font-size: 11px;
    padding: 10px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .stat strong {
    font-size: 32px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .photo-editor {
    grid-template-columns: 1fr;
  }
  .photo-editor img {
    width: 100%;
    height: 180px;
  }
  .editor-head,
  .editor-fields,
  .editor-footer {
    padding: 20px;
  }
  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters input {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .filters select {
    min-width: 0;
    max-width: 100%;
    font-size: 12px;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 35px;
  }
  .login-brand h1 {
    font-size: 56px;
    margin-bottom: 12px;
  }
  .login-brand p {
    display: none;
  }
  .login-brand a {
    margin-top: 5px;
  }
  .login-card {
    padding: 30px;
  }
  .panel .link-field {
    flex-direction: column;
  }
}

/* API credentials: concise list, permissions on demand. */
.api-connection{display:flex;justify-content:space-between;align-items:start;gap:24px;margin-bottom:26px}
.api-endpoint{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.api-endpoint code{font-size:13px;overflow-wrap:anywhere}
.api-connection details{min-width:180px;font-size:13px}
.api-connection summary,.api-key-editor summary{cursor:pointer;padding:10px 0;font-weight:650}
.api-list-head{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.api-list-head h2{margin:0;margin-right:auto;font-size:19px}
.api-list-head .check{font-size:12px}
.api-key-row{display:flex;justify-content:space-between;gap:24px;padding:24px;background:var(--surface,#fffefa);border:1px solid var(--border,#deded8);border-radius:14px;margin-bottom:12px}
.api-key-row h3{margin:0 0 8px;font-size:17px}.api-key-row p{margin:8px 0;line-height:1.5;font-size:13px}.api-key-row code{font-size:12px}.api-key-row small{font-size:11px;color:#73776e}.api-key-fields{color:#5c6459;max-width:640px}
.api-key-actions{display:flex;gap:8px;align-items:start;flex-shrink:0}.danger-text{color:#a83226}
.api-key-editor{max-width:600px}.api-key-editor .editor-fields{max-height:65vh;overflow:auto}
.api-permissions{border:0;margin:22px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.api-permissions legend{font-size:14px;font-weight:700;margin-bottom:16px}.api-permissions label{font-size:13px;display:flex;gap:9px;align-items:center}.api-permissions input{width:17px;height:17px;margin:0;flex-shrink:0}.api-base{grid-column:1/-1;color:#777}
.api-token{display:flex;gap:8px;margin-top:8px}.api-token input{min-width:0;font-family:monospace}.api-token button{flex-shrink:0}
.api-example{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f3ed;padding:14px;font-size:12px}
@media(max-width:700px){.api-connection,.api-key-row{flex-direction:column}.api-key-actions{width:100%}.api-permissions{grid-template-columns:1fr}.api-base{grid-column:auto}.api-key-editor .editor-fields{max-height:58vh}.api-token{flex-direction:column}.api-key-row{padding:18px}.api-list-head{gap:12px}}

.profile-scope{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:32px;padding:18px 22px;border:1px solid var(--line,#ddded3);border-radius:12px;background:#fffefa}
.profile-scope>div{display:grid;gap:3px}.profile-label{font-size:10px;letter-spacing:.12em;color:#687060;font-weight:700}.profile-scope strong{font-size:18px}.profile-scope small{font-size:12px;color:#73766c}.profile-scope label{font-size:12px;display:grid;gap:5px;max-width:45%;min-width:220px}.profile-scope select{width:100%;min-width:0}
.profile-publishing{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.profile-publishing p{margin:8px 0}.profile-publishing small,.profile-card>small{color:#74786d}.profile-publishing button{flex-shrink:0}.profile-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.profile-card{min-width:0}.profile-card h3{overflow-wrap:anywhere}.profile-card .row{gap:14px;align-items:start}.profile-card .badge{white-space:nowrap}.profile-card p{overflow-wrap:anywhere}.profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.profile-actions button:last-child{margin-left:auto;min-width:44px}.profile-archive{display:flex;align-items:center;gap:10px;margin:24px 0;font-size:14px}.profile-archive input,.profile-toggle input,.profile-days input{width:18px;min-height:18px;accent-color:#c32d20}.profile-toggle{display:flex!important;align-items:center;gap:10px}.profile-days{border:0;padding:0;display:flex;gap:12px;flex-wrap:wrap}.profile-days legend{margin-bottom:10px;font-size:13px}.profile-days label{display:flex;align-items:center;gap:5px;font-size:13px}.profile-dialog{width:min(600px,calc(100vw - 24px));max-height:90dvh;padding:24px;border:1px solid #dcded3;border-radius:16px;overflow:auto}.profile-dialog .form-grid{margin-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:18px}.profile-dialog .form-grid>.wide{grid-column:1/-1}.profile-dialog textarea{min-height:76px}.profile-dialog .status{margin:12px 0}.profile-dialog .editor-foot{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}.profile-dialog .editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-dialog h2{margin:0;font-size:24px}
@media(max-width:900px){.profile-list{grid-template-columns:1fr}.profile-publishing{align-items:start;flex-direction:column}}
@media(max-width:600px){.profile-scope{flex-direction:column;align-items:stretch;padding:15px;gap:15px;margin-bottom:24px}.profile-scope label{min-width:0;max-width:100%}.profile-dialog{padding:18px}.profile-actions button{font-size:13px}.profile-card{padding:20px}.profile-days{gap:10px}.profile-publishing{padding:20px}}
@media(max-width:600px){.page-head{flex-direction:column;align-items:flex-start;gap:16px}.page-head>div{width:100%}.page-head #create-button{align-self:stretch}}
@media(max-width:700px){
  .product-table,.product-table tbody{display:block;width:100%}
  .product-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .product-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:15px 12px;border-top:1px solid var(--line)}
  .product-table tbody tr:first-child{border-top:0}.product-table td{padding:0;border:0;min-width:0}
  .product-table .product-main-cell{grid-column:1;grid-row:1}.product-table .price{grid-column:2;grid-row:1;align-self:center}
  .product-table .product-category{grid-column:1;grid-row:2;font-size:11px}.product-table .product-state{grid-column:2;grid-row:2;text-align:right}.product-table .product-position{display:none}
  .product-cell{min-width:0;gap:8px}.product-cell .product-photo{flex-basis:38px;width:38px;height:38px}.product-cell .product-photo.is-empty{flex-basis:32px;width:32px;height:32px}.product-cell .product-more{flex-basis:26px;width:26px;min-height:42px;font-size:22px}.product-table .product-name{font-size:12px;line-height:1.5}.product-table .product-price{padding:9px 0;font-size:12px;gap:5px}.product-price>span{display:none}.product-cell small{font-size:10px;line-height:1.4}.product-photo .photo-pencil{width:17px;height:17px;font-size:12px}
}
