:root {
  --al-bg: #f3f0ea;
  --al-surface: #fffdf9;
  --al-surface-strong: #ffffff;
  --al-surface-muted: #ece8e0;
  --al-line: #ddd7cd;
  --al-line-strong: #c8c0b4;
  --al-text: #25231f;
  --al-text-secondary: #6f6a62;
  --al-text-muted: #999187;
  --al-brand: #e33a16;
  --al-brand-strong: #c92f10;
  --al-brand-soft: rgba(227, 58, 22, .09);
  --al-success: #23855b;
  --al-success-soft: rgba(35, 133, 91, .1);
  --al-warning: #b97817;
  --al-warning-soft: rgba(185, 120, 23, .11);
  --al-danger: #c43f35;
  --al-danger-soft: rgba(196, 63, 53, .1);
  --al-radius-lg: 18px;
  --al-radius-md: 12px;
  --al-radius-sm: 8px;
  --al-shadow: 0 24px 70px rgba(35, 31, 25, .22), 0 2px 8px rgba(35, 31, 25, .08);
}

#al-panel {
  position: fixed;
  top: 72px;
  right: 18px;
  width: 404px;
  height: 640px;
  min-width: 340px;
  min-height: 420px;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(201, 193, 181, .9);
  border-radius: var(--al-radius-lg);
  background: var(--al-bg);
  color: var(--al-text);
  box-shadow: var(--al-shadow);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
}
#al-panel * { box-sizing: border-box; margin: 0; padding: 0; }
#al-panel button,
#al-panel input,
#al-panel select,
#al-panel textarea { font: inherit; }

.al-resize-handle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  z-index: 20;
  cursor: nwse-resize;
  opacity: .45;
  background: linear-gradient(135deg, transparent 54%, var(--al-line-strong) 55%, var(--al-line-strong) 60%, transparent 61%, transparent 70%, var(--al-line-strong) 71%, var(--al-line-strong) 76%, transparent 77%);
}

.al-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px 12px 10px 15px;
  flex: 0 0 auto;
  cursor: move;
  user-select: none;
  border-bottom: 1px solid var(--al-line);
  background: rgba(255, 253, 249, .96);
  backdrop-filter: blur(16px);
}
.al-hd-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.al-hd-logo::before {
  content: "V";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px 4px 9px 4px;
  background: var(--al-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  transform: rotate(-3deg);
}
.al-hd-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--al-text-secondary);
  background: var(--al-surface-muted);
  font-size: 9px;
  font-weight: 750;
}
.al-hd-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--al-text-muted);
}
.al-hd-status.live { color: var(--al-success); background: var(--al-success-soft); }
.al-hd-status.live::before { background: var(--al-success); box-shadow: 0 0 0 3px rgba(35, 133, 91, .1); }
.al-hd-status.off { color: var(--al-danger); background: var(--al-danger-soft); }
.al-hd-status.off::before { background: var(--al-danger); }
.al-hd-sep { flex: 1; }
.al-hd button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--al-text-secondary);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.al-hd button:hover { border-color: var(--al-line); background: var(--al-surface-muted); color: var(--al-text); }

.al-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex: 0 0 auto;
  padding: 5px;
  border-bottom: 1px solid var(--al-line);
  background: var(--al-surface);
}
.al-tab {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--al-text-muted);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.al-tab:hover { color: var(--al-text); }
.al-tab.active { background: var(--al-brand-soft); color: var(--al-brand); box-shadow: inset 0 0 0 1px rgba(227, 58, 22, .12); }

.al-batch-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--al-line);
  background: var(--al-surface-strong);
}
.al-batch-bar label { color: var(--al-text-secondary) !important; font-size: 10px !important; font-weight: 700 !important; }
.al-batch-bar .al-count { margin-left: auto; color: var(--al-brand); font-size: 10px; font-weight: 800; }
.al-cb { width: 16px; height: 16px; accent-color: var(--al-brand); cursor: pointer; }

.al-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--al-line-strong) transparent;
}
.al-body::-webkit-scrollbar { width: 6px; }
.al-body::-webkit-scrollbar-track { background: transparent; }
.al-body::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--al-line-strong); }
.al-view { display: none; }
.al-view.active { display: block; }
.al-list { list-style: none; padding: 8px; }

.al-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 9px;
  margin-bottom: 6px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--al-radius-md);
  background: var(--al-surface-strong);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.al-item:hover { transform: translateY(-1px); border-color: var(--al-line); box-shadow: 0 8px 24px rgba(35, 31, 25, .08); }
.al-item.selected { border-color: rgba(227, 58, 22, .34); background: linear-gradient(90deg, var(--al-brand-soft), var(--al-surface-strong) 36%); }
.al-item.processing { border-color: rgba(185, 120, 23, .38); background: linear-gradient(90deg, var(--al-warning-soft), var(--al-surface-strong) 42%); }
.al-item.done { opacity: .68; }
.al-item-cb { align-self: start; margin-top: 4px; }
.al-item-img,
.al-image-placeholder {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--al-line);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #ece8e0);
  object-fit: contain;
  object-position: center;
  padding: 4px;
}
.al-image-placeholder::before { content: "□"; color: var(--al-text-muted); font-size: 19px; }
.al-image-loading { opacity: .45; background: linear-gradient(100deg, #ece8e0 25%, #faf8f4 45%, #ece8e0 65%); background-size: 200% 100%; animation: al-shimmer 1.2s linear infinite; }
.al-image-ready { opacity: 1; animation: al-image-in .18s ease both; }
.al-image-error { position: relative; color: transparent; background: var(--al-danger-soft); }
.al-image-error::after { content: "Bild fehlt"; color: var(--al-danger); font-size: 7px; font-weight: 800; }
@keyframes al-shimmer { to { background-position: -200% 0; } }
@keyframes al-image-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
.al-item-info { min-width: 0; }
.al-item-title { overflow: hidden; color: var(--al-text); font-size: 11px; font-weight: 750; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.al-item-meta { margin-top: 4px; overflow: hidden; color: var(--al-text-muted); font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.al-item-price { align-self: start; padding-top: 2px; color: var(--al-text); font-size: 10px; font-weight: 800; }
.al-item-status {
  position: absolute;
  right: 8px;
  bottom: 7px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}
.al-item-status.pending { color: var(--al-warning); background: var(--al-warning-soft); }
.al-item-status.running { color: var(--al-success); background: var(--al-success-soft); animation: al-pulse 1.4s ease-in-out infinite; }
.al-item-status.done { color: var(--al-success); background: var(--al-success-soft); }
.al-item-status.error { color: var(--al-danger); background: var(--al-danger-soft); }
@keyframes al-pulse { 50% { opacity: .55; } }

.al-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 46px 22px;
  color: var(--al-text-muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}
.al-empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 5px; border-radius: 50%; background: var(--al-success-soft); color: var(--al-success); font-size: 20px; }

.al-detail { padding: 12px; }
.al-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 10px;
  border: 0;
  background: transparent;
  color: var(--al-brand);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.al-detail-photos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.al-detail-photo {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--al-line);
  border-radius: 9px;
  background: linear-gradient(145deg, #fff, #ece8e0);
  object-fit: contain;
  object-position: center;
  padding: 4px;
}
.al-field { margin-bottom: 10px; }
.al-field-label,
.al-setting-label {
  margin-bottom: 5px;
  color: var(--al-text-secondary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.al-field input,
.al-field textarea,
.al-select,
.al-input,
.al-cat-input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--al-line);
  border-radius: 9px;
  outline: 0;
  background: var(--al-surface-strong);
  color: var(--al-text);
  font-size: 11px;
}
.al-field textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.al-field input:focus,
.al-field textarea:focus,
.al-select:focus,
.al-input:focus,
.al-cat-input:focus { border-color: var(--al-brand); box-shadow: 0 0 0 3px var(--al-brand-soft); }
.al-field-readonly { opacity: .65; }
.al-meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.al-detail-section-label { margin: 16px 0 8px; padding-top: 12px; border-top: 1px solid var(--al-line); color: var(--al-text-muted); font-size: 8px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }

.al-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.al-btn:hover:not(:disabled) { transform: translateY(-1px); }
.al-btn:disabled { opacity: .4; cursor: not-allowed; }
.al-btn-primary { color: #fff; background: var(--al-text); }
.al-btn-primary:hover { background: #11110f; }
.al-btn-fill { color: #fff; background: var(--al-brand); box-shadow: 0 8px 20px rgba(227, 58, 22, .16); }
.al-btn-fill:hover { background: var(--al-brand-strong); }
.al-btn-ghost { border-color: var(--al-line); background: var(--al-surface-strong); color: var(--al-text); }
.al-btn-ghost:hover { border-color: var(--al-line-strong); }
.al-btn-danger { color: #fff; background: var(--al-danger); }
.al-btn-sm { min-height: 32px; padding: 6px 9px; }
.al-btn-full { width: 100%; }
.al-btn-action { justify-content: flex-start; margin-bottom: 6px; }
.al-btn-icon { width: 20px; color: var(--al-brand); text-align: center; }

.al-footer { flex: 0 0 auto; padding: 10px; border-top: 1px solid var(--al-line); background: rgba(255, 253, 249, .96); backdrop-filter: blur(14px); }
.al-footer-row { display: flex; align-items: center; gap: 7px; }
.al-footer-row + .al-footer-row { margin-top: 7px; }

.al-settings { padding: 14px; }
.al-setting { margin-bottom: 13px; }

.al-progress { margin-bottom: 10px; }
.al-progress-bar { height: 7px; overflow: hidden; border-radius: 999px; background: var(--al-surface-muted); }
.al-progress-fill { height: 100%; border-radius: inherit; background: var(--al-brand); transition: width .3s ease; }
.al-progress-text { display: flex; justify-content: space-between; margin-top: 5px; color: var(--al-text-muted); font-size: 9px; }
.al-countdown { padding: 10px; color: var(--al-brand); font-size: 22px; font-weight: 850; text-align: center; font-variant-numeric: tabular-nums; }
.al-countdown-label { color: var(--al-text-muted); font-size: 9px; font-weight: 650; }

.al-cat-wrap { position: relative; }
.al-cat-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--al-line);
  border-radius: 10px;
  background: var(--al-surface-strong);
  box-shadow: 0 14px 36px rgba(35, 31, 25, .16);
}
.al-cat-dropdown.open { display: block; }
.al-cat-item { padding: 8px 10px; border-bottom: 1px solid var(--al-line); cursor: pointer; }
.al-cat-item:hover,
.al-cat-item.active { background: var(--al-brand-soft); }
.al-cat-item-name { color: var(--al-text); font-size: 10px; font-weight: 750; }
.al-cat-item-path { margin-top: 2px; color: var(--al-text-muted); font-size: 8px; }
.al-cat-selected { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 7px 9px; border: 1px solid rgba(227, 58, 22, .25); border-radius: 8px; background: var(--al-brand-soft); color: var(--al-brand); font-size: 9px; font-weight: 750; }
.al-cat-clear { margin-left: auto; border: 0; background: transparent; color: var(--al-text-muted); cursor: pointer; }
.al-cat-breadcrumb { color: var(--al-text-muted); font-size: 8px; }
.al-cat-group { border-bottom: 1px solid var(--al-line); }
.al-cat-group-hd { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--al-surface); color: var(--al-text); font-size: 10px; font-weight: 800; cursor: pointer; }
.al-cat-group-hd:hover { background: var(--al-brand-soft); }
.al-cat-arrow { color: var(--al-text-muted); font-size: 8px; transition: transform .15s ease; }
.al-cat-group-hd.expanded .al-cat-arrow { transform: rotate(90deg); }
.al-cat-group-children { display: none; padding-left: 9px; }
.al-cat-group-children.open { display: block; }
.al-cat-leaf { padding: 7px 10px; color: var(--al-text-secondary); font-size: 9px; cursor: pointer; }
.al-cat-leaf:hover { color: var(--al-brand); background: var(--al-brand-soft); }

.al-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483647;
  max-width: 340px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #25231f;
  color: #fff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .22);
  font: 700 11px/1.4 Inter, ui-sans-serif, system-ui, sans-serif;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}
.al-toast.show { opacity: 1; transform: translateY(0); }
.al-toast.success { background: var(--al-success); }
.al-toast.error { background: var(--al-danger); }
.al-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147483000;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 17px 7px 17px 7px;
  background: var(--al-brand);
  color: #fff;
  box-shadow: 0 16px 36px rgba(227, 58, 22, .28);
  font: 900 13px Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.al-fab:hover { background: var(--al-brand-strong); transform: translateY(-2px); }
.al-spinner { width: 14px; height: 14px; display: inline-block; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: al-spin .65s linear infinite; }
@keyframes al-spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  #al-panel { top: 10px; right: 10px; width: calc(100vw - 20px); height: min(700px, calc(100vh - 20px)); min-width: 0; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  #al-panel *, .al-toast, .al-fab { animation: none !important; transition: none !important; }
}

/* Vendoo Assistant 1.3 visual system */
#al-panel{top:14px;right:14px;width:min(640px,calc(100vw - 28px));height:min(820px,calc(100vh - 28px));min-width:360px;min-height:480px;border-radius:18px;background:#f7f3ec;box-shadow:0 28px 90px rgba(32,27,22,.24),0 2px 12px rgba(32,27,22,.09)}
.al-hd{min-height:64px;padding:10px 13px;background:rgba(255,253,249,.97);cursor:default}.al-hd-logo::before{display:none}.al-hd-logo{font-size:15px;white-space:nowrap}.al-hd-brand-mark{position:relative;width:34px;height:34px;flex:0 0 auto}.al-hd-brand-mark i{position:absolute;left:5px;top:5px;width:8px;height:25px;border-radius:5px;background:var(--al-brand);transform:rotate(-30deg)}.al-hd-brand-mark b{position:absolute;left:18px;top:4px;width:14px;height:16px;border-radius:4px 7px 7px 5px;background:var(--al-brand);transform:rotate(14deg)}.al-hd-brand-mark b::after{content:"";position:absolute;width:4px;height:4px;right:3px;top:3px;border-radius:50%;background:#fff}.al-hd-brand-mark em{position:absolute;right:0;bottom:0;width:14px;height:14px;display:grid;place-items:center;border-radius:50%;background:#2d2c29;color:#fff;font-size:8px;font-style:normal}.al-hd-status{margin-left:auto}.al-hd-sep{flex:0}.al-tabs{grid-template-columns:repeat(3,minmax(0,1fr));padding:6px 10px;background:#fffdf9}.al-tab{min-height:34px}.al-batch-bar{padding-inline:14px}.al-list{padding:10px}.al-item{grid-template-columns:auto 62px minmax(0,1fr) auto;min-height:82px;padding:8px;border:1px solid transparent;border-radius:12px;background:#fffdf9;margin-bottom:7px}.al-item:hover{border-color:var(--al-line);box-shadow:0 7px 20px rgba(35,31,25,.06)}.al-item.selected{border-color:rgba(227,58,22,.35);background:var(--al-brand-soft)}.al-item-img{width:62px;height:62px;border-radius:9px;padding:4px;object-fit:contain}.al-item-title{font-size:11px}.al-item-meta{white-space:normal}.al-item-price{font-size:11px}.al-footer{padding:10px 12px}.al-btn{min-height:40px;border-radius:9px}.al-btn-fill{background:var(--al-brand)}.al-btn-primary{background:#2a2926}.al-detail{padding:12px 14px 18px}.al-detail-back{margin-bottom:12px}.al-detail-hero{display:grid;grid-template-columns:minmax(250px,1.15fr) minmax(190px,.85fr);gap:16px;padding:12px;border:1px solid var(--al-line);border-radius:14px;background:#fffdf9}.al-detail-main-photo{width:100%;height:300px;object-fit:contain;object-position:center;padding:10px;border-radius:11px;background:linear-gradient(145deg,#fff,#eee9e1)}.al-detail-summary{min-width:0;padding:8px 4px}.al-detail-ready{display:inline-flex;padding:4px 8px;border-radius:999px;background:var(--al-success-soft);color:var(--al-success);font-size:8px;font-weight:800}.al-detail-summary h2{margin:12px 0 5px;font-size:21px;line-height:1.12;letter-spacing:-.04em}.al-detail-summary>strong{display:block;margin-bottom:14px;font-size:18px}.al-detail-summary dl{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px 7px;font-size:9px}.al-detail-summary dt{color:var(--al-text-muted)}.al-detail-summary dd{margin:0;font-weight:650;overflow-wrap:anywhere}.al-detail-photos{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:8px 0 14px}.al-detail-photo{aspect-ratio:1;height:auto}.al-publish-flow{padding:13px;border:1px solid var(--al-line);border-radius:14px;background:#fffdf9}.al-publish-flow>h3{margin:0 0 11px;font-size:13px}.al-flow-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}.al-flow-grid ol{display:grid;gap:8px;list-style:none}.al-flow-grid li{display:grid;grid-template-columns:24px minmax(0,1fr) 18px;align-items:center;gap:8px}.al-flow-grid li>b{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#e9e4dc;color:var(--al-text-muted);font-size:8px}.al-flow-grid li.done>b{background:var(--al-success);color:#fff}.al-flow-grid li.active>b{background:var(--al-brand);color:#fff}.al-flow-grid li span{display:grid;gap:1px}.al-flow-grid li strong{font-size:9px}.al-flow-grid li small{color:var(--al-text-muted);font-size:7px}.al-flow-grid li em{font-style:normal;color:var(--al-text-muted)}.al-flow-grid li.done em{color:var(--al-success)}.al-autofill-card{padding:11px;border:1px solid var(--al-line);border-radius:10px;background:var(--al-surface)}.al-autofill-card>span{font-size:9px;font-weight:800}.al-autofill-card>p{margin:4px 0 8px;color:var(--al-text-muted);font-size:7px;line-height:1.45}.al-autofill-card ul{display:grid;grid-template-columns:1fr 1fr;gap:5px;list-style:none;color:var(--al-success);font-size:8px}.al-autofill-card>div{margin-top:10px;padding:8px;border-radius:8px;background:var(--al-success-soft);color:var(--al-success)}.al-autofill-card>div strong,.al-autofill-card>div small{display:block}.al-autofill-card>div strong{font-size:8px}.al-autofill-card>div small{margin-top:2px;font-size:7px}.al-edit-details{margin-top:12px;border:1px solid var(--al-line);border-radius:12px;background:#fffdf9;overflow:hidden}.al-edit-details summary{padding:12px 13px;cursor:pointer;font-size:10px;font-weight:800}.al-edit-details[open] summary{border-bottom:1px solid var(--al-line)}.al-edit-details>.al-field,.al-edit-details>.al-meta-row{margin:10px 12px}.al-detail-section-label{margin-top:14px}.al-fab{width:52px;height:52px;border:0;border-radius:16px;background:#fffdf9;box-shadow:0 14px 38px rgba(35,31,25,.22);position:fixed;right:18px;bottom:18px;z-index:2147483000;color:var(--al-brand);cursor:pointer}.al-fab-mark{font-size:18px;font-weight:900}.al-fab b{position:absolute;right:5px;bottom:5px;width:16px;height:16px;display:grid;place-items:center;border-radius:50%;background:#2d2c29;color:#fff;font-size:8px}
@media(max-width:760px){#al-panel{inset:8px;width:auto;height:auto;min-width:0;min-height:0}.al-detail-hero{grid-template-columns:1fr}.al-detail-main-photo{height:250px}.al-flow-grid{grid-template-columns:1fr}.al-detail-photos{grid-template-columns:repeat(5,minmax(0,1fr))}.al-hd-logo{font-size:13px}}


/* Slice 08 – compact, action-first extension redesign */
#al-panel{top:18px;right:18px;width:min(438px,calc(100vw - 36px));height:min(720px,calc(100vh - 36px));min-width:340px;min-height:480px;border-radius:20px;background:#f4f0e9;box-shadow:0 28px 90px rgba(35,31,25,.22),0 3px 12px rgba(35,31,25,.09)}
.al-hd{min-height:64px;padding:11px 13px 11px 16px}.al-hd-brand-mark{position:relative;width:31px;height:31px;display:block;flex:0 0 auto}.al-hd-brand-mark i{position:absolute;left:4px;top:4px;width:9px;height:24px;border-radius:8px;background:var(--al-brand);transform:rotate(-31deg)}.al-hd-brand-mark b{position:absolute;right:3px;top:4px;width:12px;height:12px;border-radius:3px 6px 6px 6px;background:var(--al-brand);transform:rotate(18deg)}.al-hd-brand-mark em{position:absolute;right:0;bottom:0;width:13px;height:13px;display:grid;place-items:center;border-radius:50%;background:#2c2a27;color:#fff;font:800 8px/1 sans-serif}.al-hd-logo{font-size:14px}.al-hd-logo::before{display:none}.al-tabs{padding:6px 9px;gap:5px}.al-tab{min-height:35px}.al-batch-bar{min-height:40px;padding:7px 13px}.al-body{background:linear-gradient(180deg,rgba(255,253,249,.7),rgba(244,240,233,.5))}.al-queue-overview{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin:10px 10px 4px;padding:13px 14px;border:1px solid var(--al-line);border-radius:14px;background:var(--al-surface-strong);box-shadow:0 8px 22px rgba(35,31,25,.045)}.al-queue-overview>div:first-child{display:grid;gap:2px}.al-queue-overview span{color:var(--al-brand);font-size:8px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.al-queue-overview strong{font-size:13px;letter-spacing:-.02em}.al-queue-overview small{color:var(--al-text-muted);font-size:8px;line-height:1.4}.al-queue-number{min-width:54px;padding:8px 9px;border-radius:11px;background:var(--al-brand-soft);text-align:center}.al-queue-number b{display:block;color:var(--al-brand);font-size:18px;line-height:1}.al-queue-number span{display:block;margin-top:4px;color:var(--al-text-muted);font-size:7px}.al-list{padding:7px 10px 12px}.al-item{grid-template-columns:20px 68px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:8px 10px;min-height:108px;padding:10px;margin-bottom:8px;border-color:var(--al-line);border-radius:14px;cursor:default}.al-item:hover{transform:none;border-color:var(--al-line-strong);box-shadow:0 10px 28px rgba(35,31,25,.07)}.al-item-select{grid-row:1;align-self:start;padding-top:3px}.al-item-img,.al-image-placeholder{grid-row:1;width:68px;height:76px;border-radius:11px;padding:5px}.al-item-info{grid-row:1}.al-item-topline{display:flex;align-items:center;gap:6px;margin-bottom:5px}.al-item-topline>span:last-child{color:var(--al-text-muted);font-size:7px;font-weight:750}.al-item-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:11px;line-height:1.32}.al-item-meta{white-space:normal;font-size:8px}.al-item-sku{margin-top:5px;color:var(--al-text-muted);font:700 7px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace}.al-item-side{grid-row:1;display:grid;justify-items:end;align-self:stretch;align-content:space-between}.al-item-side strong{font-size:10px;white-space:nowrap}.al-item-open{width:27px;height:27px;border:1px solid var(--al-line);border-radius:8px;background:var(--al-surface);color:var(--al-text-secondary);font-size:18px;cursor:pointer}.al-item-actions{grid-column:2/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.al-quick-fill,.al-quick-detail{min-height:32px;border-radius:8px;font:800 9px/1 sans-serif;cursor:pointer}.al-quick-fill{border:0;background:var(--al-brand);color:#fff}.al-quick-fill:hover{background:var(--al-brand-strong)}.al-quick-detail{padding:0 12px;border:1px solid var(--al-line);background:var(--al-surface);color:var(--al-text)}.al-item-status{position:static!important;display:inline-flex!important;padding:3px 6px!important;border-radius:999px!important;font-size:7px!important}.al-item-status.ready{color:var(--al-success);background:var(--al-success-soft)}.al-footer{position:relative;padding:10px 11px}.al-footer-row{position:relative}.al-footer-empty{width:100%;display:grid;justify-items:center;gap:2px;padding:2px;color:var(--al-text-secondary)}.al-footer-empty span{font-size:10px;font-weight:800}.al-footer-empty small{font-size:8px}.al-footer-note{flex:1;min-width:0;display:grid;gap:1px}.al-footer-note strong{font-size:9px}.al-footer-note span{color:var(--al-text-muted);font-size:7px}.al-footer-menu{position:absolute;right:0;bottom:46px;z-index:30;min-width:190px;padding:5px;border:1px solid var(--al-line);border-radius:10px;background:var(--al-surface-strong);box-shadow:0 16px 38px rgba(35,31,25,.17)}.al-footer-menu button{width:100%;padding:9px;border:0;border-radius:7px;background:transparent;color:var(--al-text);font-size:9px;text-align:left;cursor:pointer}.al-footer-menu button:hover{background:var(--al-brand-soft);color:var(--al-brand)}.al-detail{padding:12px}.al-detail-hero{grid-template-columns:148px minmax(0,1fr);gap:12px;padding:10px;border:1px solid var(--al-line);border-radius:14px;background:var(--al-surface-strong)}.al-detail-main-photo{height:178px}.al-detail-summary h2{font-size:14px}.al-publish-flow{margin-top:11px;padding:12px;border:1px solid var(--al-line);border-radius:14px;background:var(--al-surface-strong)}.al-flow-grid{grid-template-columns:1fr!important}.al-autofill-card{margin-top:8px}.al-safe-actions{display:grid;gap:7px;padding:10px;border:1px solid rgba(35,133,91,.18);border-radius:12px;background:var(--al-success-soft)}.al-safe-actions p{color:var(--al-text-secondary);font-size:8px;line-height:1.45}.al-final-actions{margin:9px 0;padding:9px 10px;border:1px solid var(--al-line);border-radius:11px;background:var(--al-surface-strong)}.al-final-actions summary{color:var(--al-text-secondary);font-size:9px;font-weight:800;cursor:pointer}.al-final-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.al-setting-hint{display:block;margin-top:5px;color:var(--al-text-muted);font-size:8px;line-height:1.4}.al-empty{display:grid;justify-items:center;gap:4px;padding:44px 20px!important}.al-empty strong{font-size:12px}.al-empty small{color:var(--al-text-muted);font-size:9px}
@media(max-width:560px){#al-panel{top:8px;right:8px;left:8px;width:auto;height:calc(100vh - 16px);min-width:0;border-radius:16px}.al-detail-hero{grid-template-columns:1fr}.al-detail-main-photo{height:210px}.al-meta-row,.al-final-grid{grid-template-columns:1fr}.al-footer-row{flex-wrap:wrap}.al-footer-note{flex-basis:100%}}

/* Slice 09 compact density / hard-edge refinement */
:root {
  --al-radius-lg: 5px !important;
  --al-radius-md: 5px !important;
  --al-radius-sm: 3px !important;
}
#al-panel{border-radius:5px!important;background:#f4f0e9!important;box-shadow:0 18px 44px rgba(35,31,25,.18)!important}
#al-panel .al-hd,
#al-panel .al-tabs,
#al-panel .al-batch-bar,
#al-panel .al-footer{background:#fffdf9!important}
#al-panel .al-hd{min-height:54px!important;padding:8px 10px 8px 12px!important}
#al-panel .al-hd button,
#al-panel .al-item-open,
#al-panel .al-tab,
#al-panel .al-btn,
#al-panel .al-select,
#al-panel .al-input,
#al-panel input,
#al-panel select,
#al-panel textarea{border-radius:5px!important}
#al-panel .al-hd-status,
#al-panel .al-item-status,
#al-panel .al-detail-ready,
#al-panel .al-queue-number,
#al-panel .al-autofill-card>div,
#al-panel .al-flow-grid li>b,
#al-panel .al-footer-menu,
#al-panel .al-footer-menu button,
#al-panel .al-tab,
#al-panel .al-queue-overview span,
#al-panel .al-batch-bar label{border-radius:0!important}
#al-panel .al-hd-status{padding:4px 7px!important;font-size:9px!important}
#al-panel .al-tabs{padding:0!important;gap:0!important;border-bottom:1px solid var(--al-line)!important}
#al-panel .al-tab{min-height:31px!important;border-right:1px solid var(--al-line)!important;background:#fffdf9!important;font-size:10px!important}
#al-panel .al-tab:last-child{border-right:0!important}
#al-panel .al-tab.active{background:#f7ebe6!important;color:var(--al-brand)!important;box-shadow:inset 0 -2px 0 var(--al-brand)!important}
#al-panel .al-batch-bar{min-height:34px!important;padding:6px 10px!important}
#al-panel .al-list{padding:6px 8px 10px!important}
#al-panel .al-queue-overview{margin:8px!important;padding:10px!important;border-radius:5px!important;box-shadow:none!important}
#al-panel .al-queue-number{min-width:44px!important;padding:6px!important;background:#f7ebe6!important}
#al-panel .al-item{grid-template-columns:18px 56px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:6px 8px!important;min-height:0!important;padding:7px!important;margin-bottom:6px!important;border-radius:5px!important;box-shadow:none!important}
#al-panel .al-item-img,#al-panel .al-image-placeholder{width:56px!important;height:64px!important;border-radius:5px!important;padding:3px!important}
#al-panel .al-item-topline{margin-bottom:3px!important}
#al-panel .al-item-title{font-size:11px!important;line-height:1.25!important}
#al-panel .al-item-meta,#al-panel .al-item-sku{font-size:8px!important}
#al-panel .al-item-side strong{font-size:10px!important}
#al-panel .al-item-open{width:24px!important;height:24px!important;font-size:15px!important}
#al-panel .al-item-actions{grid-column:2/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
#al-panel .al-quick-fill,
#al-panel .al-quick-detail{min-height:26px!important;padding:0 6px!important;border-radius:5px!important;font-size:9px!important}
#al-panel .al-quick-fill-all{background:#fffdf9!important;color:var(--al-text)!important;border:1px solid var(--al-line)!important}
#al-panel .al-quick-fill-all:hover{border-color:var(--al-brand)!important;color:var(--al-brand)!important}
#al-panel .al-item-status{padding:2px 5px!important;font-size:7px!important}
#al-panel .al-btn{min-height:30px!important;padding:0 8px!important;font-size:10px!important;font-weight:800!important;box-shadow:none!important}
#al-panel .al-footer{padding:8px 10px!important}
#al-panel .al-footer-row{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
#al-panel .al-footer-row .al-btn{flex:1 1 calc(33.333% - 4px);min-width:96px}
#al-panel .al-footer-note{flex:1 0 100%!important;margin-bottom:2px!important}
#al-panel .al-footer-empty{justify-items:start!important;text-align:left!important;padding:0!important}
#al-panel .al-detail{padding:10px!important}
#al-panel .al-detail-back{margin-bottom:8px!important}
#al-panel .al-detail-hero,#al-panel .al-publish-flow,#al-panel .al-safe-actions,#al-panel .al-final-actions,#al-panel .al-edit-details{border-radius:5px!important}
#al-panel .al-detail-hero{grid-template-columns:132px minmax(0,1fr)!important;gap:10px!important;padding:8px!important}
#al-panel .al-detail-main-photo{height:160px!important;border-radius:5px!important;padding:8px!important}
#al-panel .al-detail-summary h2{font-size:14px!important}
#al-panel .al-detail-summary>strong{font-size:15px!important;margin-bottom:10px!important}
#al-panel .al-detail-photos{gap:5px!important}
#al-panel .al-detail-photo{border-radius:5px!important}
#al-panel .al-publish-flow{padding:10px!important}
#al-panel .al-flow-grid li strong{font-size:9px!important}
#al-panel .al-flow-grid li small{font-size:7px!important}
#al-panel .al-autofill-card{border-radius:5px!important;padding:8px!important}
#al-panel .al-edit-details summary,
#al-panel .al-final-actions summary{font-size:10px!important;padding:9px 10px!important}
#al-panel .al-field input,#al-panel .al-field textarea,#al-panel .al-field select{border-radius:5px!important}
#al-panel .al-fab{border-radius:5px!important}
@media(max-width:560px){#al-panel{border-radius:5px!important;top:8px!important;left:8px!important;right:8px!important;width:auto!important;height:calc(100vh - 16px)!important}#al-panel .al-detail-hero{grid-template-columns:1fr!important}#al-panel .al-footer-row .al-btn{flex:1 1 calc(50% - 4px)} }
.al-hd-brand-logo{width:31px;height:31px;display:block;object-fit:contain;flex:0 0 auto}
.al-fab img{width:34px;height:34px;display:block;object-fit:contain;margin:auto}
