/* Load the actual Inter face instead of relying on a local system fallback. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --azai-yellow: #ffcc00;
  --azai-black: #0d0d0d;
  --azai-white: #ffffff;
  --azai-gray-50: #f9f9f9;
  --azai-gray-100: #f3f3f3;
  --azai-gray-200: #e8e8e8;
  --azai-gray-400: #9e9e9e;
  --azai-gray-600: #5c5c5c;
  --azai-radius: 16px;
  --azai-shadow: 0 8px 40px rgba(0, 0, 0, .18);
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, .08);
  --ink: var(--azai-black);
  --muted: #737373;
  --paper: var(--azai-gray-50);
  --panel: var(--azai-white);
  --line: var(--azai-gray-200);
  --soft: var(--azai-gray-100);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--azai-white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  background: var(--azai-gray-100);
  border-radius: 4px;
  padding: 2px 5px;
}

.shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: flex;
  gap: 11px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.logo-brand {
  gap: 12px;
}

.brand-mark {
  align-items: center;
  background: var(--azai-black);
  border-radius: 14px 14px 14px 4px;
  color: var(--azai-white);
  display: grid;
  height: 38px;
  place-items: center;
  width: 38px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

.brand-logo-wrap {
  align-items: center;
  background: var(--azai-black);
  border-radius: 10px;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 8px 12px;
  width: 150px;
}

.brand-logo-wrap img {
  display: block;
  height: auto;
  max-height: 28px;
  max-width: 126px;
  object-fit: contain;
  width: 100%;
}

.session-label {
  color: var(--azai-gray-600);
  font-size: 13px;
  font-weight: 700;
  padding: 0 4px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--azai-gray-600);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 6px;
  justify-content: center;
  padding: 26px clamp(18px, 4vw, 64px);
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
  text-decoration-color: var(--azai-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-heart .icon {
  color: var(--azai-yellow);
  fill: currentColor;
  height: 14px;
  width: 14px;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav form {
  margin: 0;
}

.nav a,
.button,
button {
  align-items: center;
  background: var(--azai-white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--azai-black);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.nav a:hover,
.button:hover,
button:hover {
  background: var(--azai-gray-50);
  border-color: #d4d4d4;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.button.primary,
button.primary {
  background: var(--azai-black);
  border-color: var(--azai-black);
  color: var(--azai-white);
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}

.button.primary:hover,
button.primary:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: var(--azai-white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.button.accent {
  background: var(--azai-yellow);
  border-color: var(--azai-yellow);
  color: var(--azai-black);
}

.button.accent:hover {
  background: #ffd633;
  border-color: #ffd633;
  color: var(--azai-black);
}

.button.danger,
button.danger {
  border-color: #fecaca;
  color: #dc2626;
}

.button.danger:hover,
button.danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.icon {
  height: 18px;
  width: 18px;
}

.hero {
  align-items: center;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: clamp(76px, 10vw, 134px) clamp(18px, 4vw, 64px) 48px;
  position: relative;
  text-align: center;
}

.hero canvas {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.hero > div {
  position: relative;
  z-index: 1;
}

.hero > div:first-child:before {
  background: var(--azai-gray-50);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--azai-black);
  content: "Showroom";
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 22px;
  padding: 8px 12px;
}

.hero > div:first-child:before {
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: .98;
  margin: 0 0 22px;
  max-width: 980px;
}

.hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.hero-panel {
  background: var(--azai-white);
  border: 1px solid var(--line);
  border-radius: var(--azai-radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
  color: var(--azai-black);
  min-height: 280px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.hero-panel:before {
  background: radial-gradient(circle, rgba(255, 204, 0, .5) 0 2px, transparent 3px);
  background-size: 46px 46px;
  content: "";
  inset: 0;
  position: absolute;
}

.hero-panel:after {
  background: var(--azai-yellow);
  border-radius: 999px;
  content: "";
  height: 6px;
  left: 28px;
  position: absolute;
  right: 28px;
  top: 28px;
}

.hero-panel > * {
  position: relative;
  top: 38px;
}

.hero-panel strong {
  display: block;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
}

.hero-panel span {
  color: var(--muted);
  display: block;
  font-size: 16px;
  line-height: 1.6;
}

.toolbar {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px clamp(18px, 4vw, 64px) 28px;
}

.search {
  align-items: center;
  background: var(--azai-white);
  border: 1px solid var(--line);
  border-radius: var(--azai-radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 10px;
  padding: 0 14px;
}

.search input {
  border: 0;
  color: var(--ink);
  flex: 1;
  font: inherit;
  min-height: 52px;
  outline: none;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  padding: 0 clamp(18px, 4vw, 64px) 72px;
}

.card {
  background: var(--azai-white);
  border: 1px solid var(--line);
  border-radius: var(--azai-radius);
  box-shadow: var(--shadow-soft);
  display: grid;
  min-height: 100%;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.product-card {
  grid-template-rows: 200px minmax(0, 1fr);
}

.product-card .thumb {
  aspect-ratio: auto;
  height: 200px;
}

.favorite-toggle {
  background: rgba(255, 255, 255, .92);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  color: var(--azai-gray-600);
  height: 40px;
  min-height: 40px;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  z-index: 3;
}

.favorite-toggle:hover {
  background: var(--azai-white);
  border-color: #d4d4d4;
  color: var(--azai-black);
}

.favorite-toggle .icon {
  height: 18px;
  width: 18px;
}

.product-card.is-favorite .favorite-toggle {
  background: var(--azai-yellow);
  border-color: var(--azai-yellow);
  color: var(--azai-black);
}

.product-card.is-favorite .favorite-toggle .icon {
  fill: currentColor;
}

.product-card.is-favorite .favorite-toggle:hover {
  background: #ffd633;
  border-color: #ffd633;
  color: var(--azai-black);
}

.card:hover {
  border-color: #d4d4d4;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .1);
  transform: translateY(-4px);
}

.thumb {
  align-items: end;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, var(--azai-white), var(--azai-gray-50)),
    var(--azai-white);
  border-bottom: 1px solid var(--line);
  color: var(--azai-black);
  display: flex;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  padding: 22px;
  position: relative;
}

.thumb:before {
  background: var(--azai-yellow);
  content: "";
  height: 6px;
  inset: auto 22px 22px auto;
  position: absolute;
  width: 42px;
  border-radius: 999px;
}

.thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  position: relative;
  width: 100%;
}

.product-card .thumb img {
  inset: 0;
  height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.card-body {
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  padding: 20px;
}

.card-body h2,
.card-body p {
  margin: 0;
}

.card-body .button {
  align-self: end;
  width: 100%;
}

.meta {
  align-items: center;
  color: var(--azai-gray-600);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px;
}

.pill {
  background: var(--azai-gray-100);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--azai-gray-600);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 5px 9px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  background: var(--azai-white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--azai-gray-600);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 9px;
}

.card-chip-list {
  align-self: end;
}

.detail-chip-list {
  margin-top: 14px;
}

.detail-aside .chip {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .82);
}

.card h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
}

.card p,
.section p {
  color: var(--muted);
  line-height: 1.62;
  margin: 0;
}

.detail {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  padding: clamp(28px, 5vw, 64px);
}

.detail-aside {
  align-self: start;
  background: var(--azai-black);
  border-radius: var(--azai-radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
  color: var(--azai-white);
  padding: 28px;
  position: sticky;
  top: 92px;
}

.product-logo {
  align-items: center;
  background: var(--azai-white);
  border-radius: 14px;
  display: flex;
  margin-bottom: 18px;
  max-width: 220px;
  min-height: 72px;
  padding: 14px;
  width: fit-content;
}

.product-logo img {
  display: block;
  max-height: 76px;
  max-width: 100%;
  object-fit: contain;
}

.detail-aside .pill {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  color: var(--azai-white);
  width: fit-content;
}

.detail-aside h1 {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin: 18px 0;
}

.detail-aside p {
  color: rgba(255, 255, 255, .68);
  line-height: 1.65;
}

.detail-contact {
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
}

.detail-contact .hint {
  color: rgba(255, 255, 255, .6);
}

.contact-stack {
  display: grid;
  gap: 4px;
}

.contact-stack strong {
  color: inherit;
}

.detail-main {
  display: grid;
  gap: 16px;
}

.product-video {
  display: grid;
  gap: 14px;
}

.product-video h2 {
  margin: 0;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--azai-black);
  border: 0;
  border-radius: 14px;
  display: block;
  overflow: hidden;
  width: 100%;
}

iframe.video-frame,
.video-frame iframe {
  height: 100%;
  width: 100%;
}

.product-gallery {
  display: grid;
  gap: 14px;
}

.gallery-head {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.gallery-head h2 {
  margin: 0;
}

.gallery-stage {
  background: var(--azai-gray-50);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.gallery-slide {
  aspect-ratio: 16 / 9;
  display: none;
  object-fit: contain;
  width: 100%;
}

.gallery-slide.is-active {
  display: block;
}

.gallery-arrow {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(13, 13, 13, .1);
  box-shadow: var(--shadow-soft);
  height: 42px;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  z-index: 2;
}

.gallery-arrow:hover {
  background: var(--azai-white);
  color: var(--azai-black);
  transform: translateY(-50%) scale(1.02);
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.gallery-thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.gallery-thumb {
  background: var(--azai-white);
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding: 0;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  background: var(--azai-white);
  border-color: var(--azai-yellow);
  color: var(--azai-black);
  transform: translateY(-1px);
}

.gallery-thumb img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.section {
  background: var(--azai-white);
  border: 1px solid var(--line);
  border-radius: var(--azai-radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.section h2,
.section h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 12px;
}

.list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.list li {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 20px 1fr;
  line-height: 1.48;
  list-style: none;
}

.list li:before {
  background: var(--azai-yellow);
  border-radius: 99px;
  content: "";
  height: 7px;
  margin-top: 8px;
  width: 7px;
}

.admin {
  padding: clamp(24px, 5vw, 64px);
}

.admin-header {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.admin-header h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin: 8px 0 0;
}

.table {
  background: var(--azai-white);
  border: 1px solid var(--line);
  border-radius: var(--azai-radius);
  box-shadow: var(--shadow-soft);
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 800px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--azai-gray-50);
  color: var(--azai-gray-600);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--azai-gray-600);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  background: var(--azai-white);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 12px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--azai-yellow);
  box-shadow: 0 0 0 4px rgba(255, 204, 0, .18);
}

input[type="file"].file-input {
  background: var(--azai-gray-50);
  cursor: pointer;
  padding: 10px;
}

input[type="file"].file-input::file-selector-button {
  background: var(--azai-black);
  border: 0;
  border-radius: 999px;
  color: var(--azai-white);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  margin-right: 12px;
  padding: 9px 14px;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.rich-editor {
  display: grid;
  gap: 8px;
}

.rich-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rich-toolbar button {
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  height: 34px;
  min-height: 34px;
  padding: 0;
  width: 36px;
}

.rich-toolbar button:hover {
  background: var(--azai-black);
  border-color: var(--azai-black);
  color: var(--azai-white);
}

.rich-editor textarea {
  min-height: 180px;
}

.rich-content {
  color: var(--muted);
  display: grid;
  gap: 12px;
  line-height: 1.68;
}

.rich-content p,
.rich-content ul {
  margin: 0;
}

.rich-content h3,
.rich-content h4 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 6px 0 0;
}

.rich-content ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.rich-content li::marker {
  color: var(--azai-yellow);
}

.rich-content strong {
  color: var(--ink);
}

.rich-content a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--azai-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.gallery-manager {
  display: grid;
  gap: 10px;
}

.gallery-order-list {
  display: grid;
  gap: 10px;
}

.gallery-order-item {
  align-items: center;
  background: var(--azai-gray-50);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  padding: 10px;
}

.gallery-order-item img {
  aspect-ratio: 16 / 10;
  background: var(--azai-white);
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  width: 78px;
}

.gallery-order-item strong,
.gallery-order-item span {
  display: block;
}

.gallery-order-item span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-order-actions {
  display: flex;
  gap: 6px;
}

.gallery-order-actions button {
  height: 34px;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.gallery-order-actions button:first-child .icon {
  transform: rotate(90deg);
}

.gallery-order-actions button:last-child .icon {
  transform: rotate(90deg);
}

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.notice {
  background: #fff8d6;
  border: 1px solid rgba(255, 204, 0, .6);
  border-radius: 10px;
  color: #5f4a00;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.notice.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.notice.preview-notice {
  background: #eef4ff;
  border-color: #c9d9fb;
  color: #1e3a8a;
  margin: 18px clamp(18px, 4vw, 56px) 0;
}

.notice.preview-notice a {
  color: inherit;
  font-weight: 700;
  margin-left: 6px;
}

.video-status {
  border-radius: 10px;
  display: block;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 8px;
  padding: 10px 12px;
}

.video-status-info {
  background: #eef4ff;
  color: #1e3a8a;
}

.video-status-ok {
  background: #e8f8ee;
  color: #16753c;
}

.video-status-error {
  background: #fef2f2;
  color: #991b1b;
}

.help-center .help-search {
  margin-bottom: 22px;
  max-width: 560px;
}

.help-category {
  margin-bottom: 18px;
  scroll-margin-top: 24px;
}

.help-category-head {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.help-category-head h2 {
  font-size: 20px;
  margin: 0;
}

.help-category-head p {
  margin: 2px 0 0;
}

.help-icon {
  align-items: center;
  background: var(--azai-gray-100);
  border-radius: 12px;
  color: var(--azai-black);
  display: inline-flex;
  flex: none;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.help-articles {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.help-item {
  background: var(--azai-gray-50);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}

.help-item:hover {
  border-color: var(--azai-yellow);
  transform: translateY(-1px);
}

.help-article-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
}

.help-article-layout .help-articles {
  grid-template-columns: 1fr;
}

.help-breadcrumb a {
  color: inherit;
}

.help-body code,
.api-tokens-page code,
.rich-content code {
  background: var(--azai-gray-100);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  padding: 2px 6px;
  word-break: break-all;
}

.token-reveal {
  background: #e8f8ee;
  border-color: #c7efd6;
  color: #16753c;
}

.api-token-form {
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 16px;
  padding-top: 16px;
}

.share-panel {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  scroll-margin-top: 24px;
}

.share-panel-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.share-panel-head p {
  margin: 0;
  max-width: 760px;
}

.share-form {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, .8fr) auto;
}

.share-url {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  min-width: 320px;
}

.share-url input {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  min-width: 0;
}

.share-url button {
  flex: none;
}

.share-inactive td {
  color: var(--muted);
}

.share-new td {
  background: #fffbe6;
}

.detail-commercial .detail-aside h1 {
  margin-top: 4px;
}

.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  min-height: 100vh;
}

.login-brand-panel {
  background: linear-gradient(135deg, #080808 0%, #111 62%, #191919 100%);
  color: var(--azai-white);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  position: relative;
}

.login-logo {
  align-self: start;
  background: transparent;
  position: relative;
  width: 168px;
  z-index: 1;
}

.login-logo img {
  display: block;
  height: auto;
  width: 100%;
}

.login-brand-copy {
  align-self: center;
  max-width: 560px;
  position: relative;
  transform: translateY(-4vh);
  z-index: 1;
}

.login-kicker {
  border: 1px solid rgba(255, 204, 0, .42);
  border-radius: 999px;
  color: var(--azai-yellow);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 22px;
  padding: 6px 11px;
}

.login-brand-copy h1 {
  font-size: clamp(54px, 8vw, 92px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: .92;
  margin: 0 0 22px;
}

.login-brand-copy p {
  color: rgba(255, 255, 255, .74);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
  margin: 0;
  max-width: 520px;
}

.login-form-panel {
  align-items: center;
  background: var(--azai-white);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(28px, 6vw, 72px);
}

.login-card {
  display: grid;
  gap: 17px;
  max-width: 430px;
  width: 100%;
}

.login-card h2 {
  font-size: 44px;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 2px;
}

.login-card p {
  margin: 0;
}

.login-card input {
  background: #f7f7f7;
  border-color: #dedede;
  min-height: 52px;
}

.login-card input:focus {
  background: var(--azai-white);
  border-color: var(--azai-black);
  box-shadow: 0 0 0 4px rgba(255, 204, 0, .2);
}

.login-submit {
  min-height: 52px;
  width: 100%;
}

.login-card small {
  color: var(--azai-gray-400);
  display: block;
  font-size: 12px;
  line-height: 1.4;
  padding-top: 4px;
  text-align: center;
}

.user-cell {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 180px;
}

.user-avatar {
  align-items: center;
  background: var(--azai-black);
  border-radius: 999px;
  color: var(--azai-yellow);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.badge {
  background: var(--azai-gray-50);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--azai-gray-700);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
}

.badge.role-admin {
  background: #111;
  border-color: #111;
  color: #fff;
}

.badge.role-editor {
  background: #fff7cc;
  border-color: rgba(255, 204, 0, .55);
  color: #5f4a00;
}

.badge.role-portafolio,
.badge.mode-comercial {
  background: #e8f0ff;
  border-color: #c9d9fb;
  color: #1d4ed8;
}

.badge.mode-completo {
  background: #fff1e6;
  border-color: #fed7aa;
  color: #9a3412;
}

.badge.status-active {
  background: #e8f8ee;
  border-color: #c7efd6;
  color: #16753c;
}

.badge.status-inactive {
  background: #f4f4f4;
  color: var(--azai-gray-600);
}

.icon-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.icon-actions form {
  margin: 0;
}

.icon-button {
  align-items: center;
  background: var(--azai-white);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  width: 38px;
}

.icon-button:hover {
  border-color: rgba(13, 13, 13, .24);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.icon-button.danger {
  color: #dc2626;
}

.user-form {
  max-width: 1100px;
}

.access-panel {
  display: grid;
  gap: 14px;
}

.access-panel h2 {
  font-size: 22px;
  margin: 0 0 4px;
}

.checkbox-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-card {
  align-items: flex-start;
  background: var(--azai-white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(13, 13, 13, .05);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.check-card:hover {
  border-color: rgba(13, 13, 13, .2);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.check-card input {
  accent-color: var(--azai-yellow);
  flex: 0 0 auto;
  margin-top: 3px;
  width: auto;
}

.check-card span {
  display: grid;
  gap: 4px;
}

.check-card strong {
  color: var(--ink);
  font-size: 14px;
}

.check-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--azai-radius);
  color: var(--muted);
  padding: 36px;
  text-align: center;
}

.product-editor {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.7fr);
}

.editor-aside {
  align-self: start;
  position: sticky;
  top: 92px;
}

.editor-aside .section {
  gap: 14px;
}

.cover-preview {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.cover-preview .thumb {
  aspect-ratio: 16 / 7;
  font-size: 36px;
}

.cover-preview img {
  aspect-ratio: 16 / 7;
  display: block;
  object-fit: cover;
  width: 100%;
}

.editor-main {
  display: grid;
  gap: 16px;
}

.editor-main-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.editor-main-head h2 {
  font-size: 22px;
  margin: 0;
}

.editor-main-head p {
  color: var(--muted);
  margin: 2px 0 0;
}

.info-block {
  background: var(--azai-white);
  border: 1px solid var(--line);
  border-radius: var(--azai-radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.info-block-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 20px;
}

.info-block-head h3 {
  font-size: 17px;
  line-height: 1.2;
  margin: 0;
}

.info-block-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 3px 0 0;
}

.info-block-summary {
  display: grid;
}

.summary-row {
  align-items: start;
  border-bottom: 1px solid var(--azai-gray-100);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(140px, .34fr) minmax(0, 1fr);
  padding: 12px 20px;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row span {
  color: var(--azai-gray-600);
  font-size: 12px;
  font-weight: 700;
}

.summary-row strong {
  color: var(--azai-black);
  font-size: 13px;
  font-weight: 500;
}

.switch-row {
  align-items: center;
  background: var(--azai-gray-50);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 12px 14px;
}

.switch-row span {
  display: grid;
  gap: 2px;
}

.switch-row strong {
  color: var(--azai-black);
  font-size: 13px;
  line-height: 1.25;
}

.switch-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.switch-row input {
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.switch-row i {
  background: #d4d4d4;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 28px;
  padding: 3px;
  transition: background .16s ease;
  width: 52px;
}

.switch-row i:before {
  background: var(--azai-white);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  content: "";
  display: block;
  height: 22px;
  transition: transform .16s ease;
  width: 22px;
}

.switch-row input:checked + i {
  background: var(--azai-yellow);
}

.switch-row input:checked + i:before {
  transform: translateX(24px);
}

.info-block-form {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
}

.info-block .info-block-form {
  display: none;
}

.info-block.is-editing .info-block-summary {
  display: none;
}

.info-block.is-editing .info-block-form {
  display: grid;
}

.yaml-editor {
  background: #1f1f1f;
  border-color: #2f2f2f;
  color: #ffb86c;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.55;
  min-height: 62vh;
  tab-size: 2;
}

.yaml-editor:focus {
  border-color: var(--azai-yellow);
  box-shadow: 0 0 0 4px rgba(255, 204, 0, .16);
}

.yaml-help {
  background: var(--azai-white);
  border: 1px solid var(--line);
  border-radius: var(--azai-radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
  padding: 16px 18px;
}

.yaml-help summary {
  color: var(--azai-black);
  cursor: pointer;
  font-weight: 800;
}

.yaml-help p {
  color: var(--muted);
  margin: 10px 0 12px;
}

.yaml-help pre {
  background: #1f1f1f;
  border-radius: 12px;
  color: #f8d783;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.55;
  max-height: 420px;
  overflow: auto;
  padding: 16px;
  white-space: pre;
}

@media (max-width: 860px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-brand-panel,
  .login-form-panel {
    min-height: auto;
  }

  .login-brand-panel {
    gap: 52px;
    padding: 28px 24px 40px;
  }

  .login-brand-copy h1 {
    font-size: clamp(42px, 16vw, 64px);
  }

  .login-brand-copy {
    transform: none;
  }

  .login-form-panel {
    padding: 38px 24px 52px;
  }

  .hero,
  .detail,
  .toolbar,
  .form-grid,
  .checkbox-grid,
  .product-editor,
  .summary-row {
    grid-template-columns: 1fr;
  }

  .detail-aside,
  .editor-aside {
    position: static;
  }

  .topbar,
  .admin-header,
  .share-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .share-form,
  .help-article-layout {
    grid-template-columns: 1fr;
  }
}
