.shop-studio {
  --shop-line: #e4dfd8;
  --shop-field: #f9f8f6;
  --shop-subtle: #625b54;
  display: grid;
  gap: clamp(16px, 2vw, 26px);
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(4px, 1vw, 14px) 0 clamp(24px, 4vw, 48px);
  color: var(--store-ink);
}
.shop-studio [hidden] { display: none !important; }
.shop-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.08;
}
.shop-heading p { margin: 7px 0 0; color: var(--shop-subtle); font-size: .94rem; line-height: 1.45; }
.shop-overview {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(260px, 1fr);
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
}
.shop-box {
  min-width: 0;
  border: 1px solid var(--shop-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 4px 14px rgb(52 40 30 / 4%);
}
.shop-box-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 16px; }
.shop-box-head h2 { margin: 0; font-size: 1.05rem; line-height: 1.25; letter-spacing: -.025em; }
.shop-publication, .shop-domain-summary { display: grid; gap: 14px; padding: clamp(15px, 2vw, 23px); }
.shop-login-preview { display: grid; align-content: start; gap: 10px; min-width: 0; margin: 0; }
.shop-login-preview h3 { margin: 0; color: var(--shop-subtle); font-size: .82rem; font-weight: 700; }
.shop-access-preview {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid color-mix(in srgb, var(--preview-brand) 18%, #e9e8e4);
  border-radius: 12px;
  background: color-mix(in srgb, var(--preview-brand) 4%, white);
  overflow-wrap: anywhere;
}
.shop-access-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  line-height: 1.2;
}
.shop-access-brand strong { min-width: 0; }
.shop-access-logo, .shop-upload-logo {
  display: grid;
  flex: none;
  place-items: center;
  overflow: hidden;
  font-weight: 750;
}
.shop-access-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--preview-brand);
  color: var(--preview-ink);
  font-size: .7rem;
}
.shop-access-logo:has(img:not([hidden])) { background: #fff; }
.shop-access-logo img, .shop-upload-logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.shop-access-preview p {
  margin: 0;
  color: var(--shop-subtle);
  font-size: .8rem;
  line-height: 1.43;
}
.shop-access-example {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 4px;
  color: var(--shop-subtle);
}
.shop-access-example span {
  padding: 7px 18px;
  border-radius: 7px;
  background: var(--preview-brand);
  color: var(--preview-ink);
  font-size: .74rem;
  font-weight: 700;
}
.shop-access-example small {
  padding-bottom: 2px;
  border-bottom: 2px solid var(--preview-accent);
}
.shop-address-icon, .shop-catalog-icon {
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 9px;
}
.shop-publication, .shop-domain-summary { align-content: start; }
.shop-address-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 65px;
  padding: 9px;
  border: 1px solid var(--shop-line);
  border-radius: 11px;
  background: var(--shop-field);
}
.shop-address-card div { min-width: 0; overflow-wrap: anywhere; }
.shop-address-card small { display: block; color: var(--shop-subtle); font-size: .73rem; }
.shop-address-card strong { display: block; margin-top: 3px; font-size: clamp(.85rem, 1.2vw, .99rem); font-weight: 700; }
.shop-address-icon, .shop-catalog-icon { width: 37px; height: 37px; background: #f3ece6; color: #8c352d; }
.shop-publication p { margin: 0; color: var(--shop-subtle); font-size: .83rem; line-height: 1.45; }
.shop-publication-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 17px; }
.shop-publication-controls .button { min-height: 44px; }
.shop-publication-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-publication-actions .button { min-height: 40px; padding-inline: 13px; }
.shop-domain-summary { grid-template-rows: auto 1fr auto; }
.shop-domain-summary > .button { justify-self: start; min-height: 42px; }
.shop-domain-overview { display: flex; align-items: flex-start; gap: 11px; min-width: 0; padding-block: 4px; }
.shop-domain-overview > div { min-width: 0; overflow-wrap: anywhere; }
.shop-domain-overview strong { display: block; margin-bottom: 4px; font-size: .9rem; }
.shop-domain-summary p { margin: 0; color: var(--shop-subtle); font-size: .85rem; line-height: 1.5; }
.shop-text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #8e261e;
  font-size: .83rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.shop-text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.shop-editor-head { padding: 18px clamp(14px, 2.2vw, 26px) 11px; }
.shop-editor-head h2 { font-size: 1.18rem; }
.shop-draft-status { color: var(--shop-subtle); font-size: .8rem; }
.shop-editor-alert { margin: 0 clamp(14px, 2.2vw, 26px) 12px; }
.shop-editor-alert p { margin: 0 0 8px; }
.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  padding-inline: clamp(10px, 2vw, 22px);
  border-bottom: 1px solid var(--shop-line);
}
.shop-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--shop-subtle);
  font-size: .86rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.shop-tabs button:hover { background: var(--shop-field); color: var(--store-ink); }
.shop-tabs button[aria-selected="true"] { border-bottom-color: #9b2b23; background: #fcf5f3; color: #8e261e; }
.shop-panel { padding: clamp(14px, 2.2vw, 26px); }
.shop-brand-layout, .shop-brand-form, .shop-address-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(15px, 2.4vw, 28px);
}
.shop-brand-layout { grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); }
.shop-brand-column { display: grid; align-content: start; gap: 16px; min-width: 0; }
.shop-editor .field, .shop-logo-field { gap: 7px; font-size: .88rem; }
.shop-editor .field input:not([type="color"], [type="checkbox"], [type="file"]), .shop-editor .field textarea {
  min-height: 45px;
  padding: 9px 12px;
  border: 1px solid #d6cfc5;
  border-radius: 10px;
  background: var(--shop-field);
  font-size: .9rem;
}
.shop-editor .field :is(input, textarea):is(:focus, :focus-visible) { background: #fff; }
.shop-editor .field small, .shop-field-note { color: var(--shop-subtle); font-size: .78rem; line-height: 1.35; }
.shop-input { display: block; min-width: 0; }
.shop-input-icon { position: relative; }
.shop-input-icon svg { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); color: var(--shop-subtle); }
.shop-editor .shop-input-icon input { padding-inline-start: 39px !important; }
.shop-textarea { display: grid; border: 1px solid #d6cfc5; border-radius: 10px; background: var(--shop-field); }
.shop-editor .shop-textarea textarea { min-height: 98px; padding-bottom: 4px; border: 0; background: transparent; resize: vertical; }
.shop-textarea:focus-within { outline: 2px solid var(--store-focus); outline-offset: 2px; background: #fff; }
.shop-editor .shop-textarea textarea:focus-visible { outline: 0; }
.shop-character-count { justify-self: end; padding: 3px 10px 7px; color: var(--shop-subtle); font-size: .75rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.shop-field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 650; }
.shop-field-heading button { padding-block: 0; }
.shop-logo-field { position: relative; display: grid; min-width: 0; }
.shop-logo-picker {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 8px 11px;
  border: 1px dashed #bdb1a5;
  border-radius: 10px;
  background: var(--shop-field);
  cursor: pointer;
}
.shop-logo-picker:hover { border-color: #9b2b23; background: #fcf5f3; }
.shop-logo-field:has(input:focus-visible) .shop-logo-picker,
.shop-color-control:has(input:focus-visible) { outline: 2px solid var(--store-focus); outline-offset: 2px; }
.shop-logo-field:has(input[aria-invalid="true"]) .shop-logo-picker { border-color: #a72122; }
.shop-upload-logo { width: 44px; height: 44px; border: 1px solid var(--shop-line); border-radius: 9px; background: #fff; color: #39322b; }
.shop-logo-copy { display: grid; flex: 1; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.shop-logo-copy small { color: var(--shop-subtle); font-size: .76rem; }
.shop-logo-picker-icon { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border: 1px solid var(--shop-line); border-radius: 8px; background: #fff; color: #8e261e; }
.shop-field-error { margin: 0; color: #9b2b23; font-size: .8rem; }
.shop-colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shop-color-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 6px 8px;
  border: 1px solid #d6cfc5;
  border-radius: 10px;
  background: var(--shop-field);
  cursor: pointer;
}
.shop-color-control:hover { border-color: #998e81; background: #fff; }
.shop-color-swatch { width: 28px; height: 28px; flex: none; border: 1px solid rgb(0 0 0 / 20%); border-radius: 6px; }
.shop-color-value { color: #3e3934; font-family: ui-monospace, monospace; font-size: .79rem; font-weight: 500; }
.shop-color-control input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.shop-slug { display: flex; flex-wrap: wrap; align-items: stretch; min-width: 0; border: 1px solid #d6cfc5; border-radius: 10px; background: var(--shop-field); }
.shop-editor .shop-slug input { flex: 1 1 120px; min-width: 0; border: 0 !important; }
.shop-slug > span { display: grid; align-items: center; max-width: 100%; min-height: 35px; padding: 5px 9px; border-inline-start: 1px solid var(--shop-line); color: var(--shop-subtle); font-size: .73rem; overflow-wrap: anywhere; }
.shop-domain-settings { gap: 16px; }
.shop-domain-settings :is(h3, h4, p) { margin: 0; }
.shop-domain-settings > h3 { font-size: 1rem; }
.shop-domain-settings p, .shop-domain-checked { color: var(--shop-subtle); font-size: .84rem; line-height: 1.5; }
.shop-domain-settings details > summary { width: fit-content; cursor: pointer; color: #8e261e; font-size: .87rem; font-weight: 700; }
.shop-domain-settings details[open] > summary { margin-bottom: 10px; }
.shop-domain-form { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 11px; max-width: 670px; }
.shop-domain-form .field { flex: 1 1 260px; }
.shop-domain-form .button { min-height: 45px; margin-top: 26px; }
.shop-domain-state { padding: 15px; border: 1px solid var(--shop-line); border-radius: 12px; background: var(--shop-field); }
.shop-domain-state h3 { margin-bottom: 4px; font-size: 1.1rem; overflow-wrap: anywhere; }
.shop-domain-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0 0;
}
.shop-domain-steps div, .shop-dns-record { padding: 10px 12px; border: 1px solid var(--shop-line); border-radius: 9px; background: #fff; }
.shop-domain-steps dt, .shop-dns-record h4 small { color: var(--shop-subtle); font-size: .75rem; font-weight: 500; }
.shop-domain-steps dd { display: flex; align-items: center; gap: 5px; margin: 3px 0 0; font-size: .84rem; font-weight: 700; }
.shop-domain-steps dd svg { flex: none; }
.shop-domain-checked { align-self: center; }
.shop-records-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.shop-dns-record { display: grid; gap: 8px; background: var(--shop-field); min-width: 0; }
.shop-dns-record h4 { display: flex; align-items: baseline; gap: 8px; font-size: .9rem; }
.shop-record-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 7px; }
.shop-record-field .field input { min-height: 39px; background: #fff; font-family: ui-monospace, monospace; }
.shop-record-field .button { min-height: 39px; }
.shop-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.shop-catalog li { display: flex; align-items: flex-start; min-width: 0; gap: 10px; padding: 12px; border: 1px solid var(--shop-line); border-radius: 10px; }
.shop-catalog strong { font-size: .88rem; }
.shop-catalog p { margin: 4px 0 0; color: var(--shop-subtle); font-size: .82rem; line-height: 1.4; }
.shop-empty { margin: 0; color: var(--shop-subtle); }
.shop-editor-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px clamp(14px, 2.2vw, 26px);
  border-top: 1px solid var(--shop-line);
  border-radius: 0 0 17px 17px;
  background: #fcfbf9;
}
.shop-editor-actions .button { min-height: 42px; }

@media (max-width: 980px) {
  .shop-overview { grid-template-columns: minmax(0, 1.55fr) minmax(210px, 1fr); }
  .shop-brand-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .shop-overview, .shop-brand-form, .shop-address-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-heading h1 { font-size: 1.95rem; }
  .shop-records-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .shop-studio { gap: 13px; }
  .shop-box { border-radius: 13px; }
  .shop-tabs { display: grid; grid-template-columns: .83fr 1fr 1.35fr .9fr; gap: 0; padding-inline: 5px; }
  .shop-tabs button { justify-content: center; gap: 3px; padding: 8px 3px; font-size: .76rem; min-height: 39px; text-align: center; }
  .shop-tabs svg { display: none; }
  .shop-catalog { grid-template-columns: 1fr; }
  .shop-editor-actions .button { flex: 1 1 auto; }
  .shop-domain-form .button { width: 100%; margin-top: 0; }
  .shop-domain-steps { grid-template-columns: minmax(0, 1fr); }
}
