:root {
  --pl-bg: #f4f5f7;
  --pl-surface: #ffffff;
  --pl-soft: #f1f2f5;
  --pl-sunken: #eceef1;
  --pl-border: #e7e9ee;
  --pl-ink: #0f1115;
  --pl-ink-2: #3d4350;
  --pl-muted: #5b616e;
  --pl-action: #1e1e1e;
  --pl-action-hover: #333333;
  --pl-brand: #e5502e;
  --pl-link: #1e4fc2;
  --pl-ok: #17744a;
  --pl-ok-soft: #eef6f1;
  --pl-danger: #c6372b;
  --pl-danger-soft: #fdf1f0;
  --pl-warn-bg: #fff8e6;
  --pl-warn-border: #f5e2b3;
  --pl-hero: #0f1115;
  --safe-top: calc(env(safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px));
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--pl-bg);
  color: var(--pl-ink);
  font-family: Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea {
  font-family: inherit;
}

.pl-shell {
  min-height: 100dvh;
  background: var(--pl-bg);
  color: var(--pl-ink);
  display: flex;
  flex-direction: column;
}

/* Boot & error states */
.pl-boot {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}
.pl-boot-text {
  font-size: 14px;
  color: var(--pl-muted);
}
.pl-error-card {
  max-width: 380px;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.pl-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid var(--pl-border);
  border-top-color: var(--pl-action);
  animation: pl-spin 0.75s linear infinite;
}
.pl-spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}
@keyframes pl-spin {
  to { transform: rotate(360deg); }
}

/* Header */
.pl-header {
  padding: calc(10px + var(--safe-top)) 16px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pl-header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pl-brand-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.pl-logo {
  display: block;
  height: 14px;
  width: auto;
  flex: none;
}
.pl-app-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--pl-muted);
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.pl-desk-nav {
  display: none;
}
.pl-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.pl-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pl-ink-2);
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pl-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pl-ok);
}

/* Main content */
.pl-content {
  width: 100%;
  padding: 8px 14px calc(92px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.pl-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pl-col-main, .pl-col-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Cards */
.pl-card {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(15, 17, 21, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pl-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pl-card-head-sm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pl-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--pl-muted);
  margin-bottom: 2px;
}
.pl-card-title {
  margin: 0;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pl-ink);
}
.pl-section-title {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--pl-ink);
}
.pl-muted-sm {
  font-size: 13px;
  line-height: 18px;
  color: var(--pl-muted);
}
.pl-badge-ok {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--pl-ok);
  background: var(--pl-ok-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pl-badge-soft {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--pl-ink-2);
  background: var(--pl-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pl-badge-danger {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--pl-danger);
  background: var(--pl-danger-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Buttons */
.pl-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pl-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pl-btn-primary {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--pl-action);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.pl-btn-primary:hover:not(:disabled) {
  background: var(--pl-action-hover);
}
.pl-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pl-btn-soft {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--pl-soft);
  color: var(--pl-ink);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.pl-btn-soft:hover:not(:disabled) {
  background: #e6e8ee;
}
.pl-btn-soft:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pl-btn-danger-soft {
  background: var(--pl-danger-soft);
  color: var(--pl-danger);
}
.pl-btn-compact {
  min-height: 38px;
  padding: 7px 13px;
  font-size: 13px;
}
.pl-link-btn {
  border: 0;
  background: transparent;
  color: var(--pl-link);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
}

/* Portrait upload & result */
.pl-upload-hero {
  width: 100%;
  border: 1.5px dashed #cfd4de;
  background: #fafbfc;
  border-radius: 16px;
  padding: 36px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pl-upload-hero:hover {
  border-color: var(--pl-action);
  background: #f6f7f9;
}
.pl-upload-ico-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pl-ink);
}
.pl-upload-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--pl-ink);
}
.pl-result-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 480px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pl-sunken);
  position: relative;
}
.pl-result-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.pl-processing-box {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 360px;
  border-radius: 14px;
  background: var(--pl-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}
.pl-result-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--pl-muted);
}
.pl-result-meta strong {
  color: var(--pl-ink);
  font-weight: 600;
}

/* Spot edit */
.pl-spot-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.pl-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--pl-border);
  background: #fafbfc;
  color: var(--pl-ink);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 15px;
  outline: none;
}
.pl-input:focus-visible {
  outline: 2px solid var(--pl-action);
  outline-offset: 1px;
}

/* Reference compact grid: 3 cols phone / 4 cols desktop */
.pl-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pl-ref-card {
  position: relative;
  border: 1.5px solid var(--pl-border);
  background: var(--pl-surface);
  border-radius: 12px;
  padding: 5px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pl-ref-card.is-selected {
  border-color: var(--pl-action);
  background: #fafbfc;
}
.pl-ref-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pl-sunken);
}
.pl-ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.pl-ref-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pl-action);
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
}
.pl-ref-card.is-selected .pl-ref-check {
  display: flex;
}
.pl-ref-del {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 17, 21, 0.72);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.pl-ref-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--pl-ink);
  line-height: 1.25;
  padding: 0 2px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Prompt strip */
.pl-prompt-strip {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pl-prompt-strip-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pl-strip-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--pl-ink);
}

/* Batch screen: 4 cols phone / 6 cols desktop */
.pl-dropzone {
  width: 100%;
  border: 1.5px dashed #cfd4de;
  background: #fafbfc;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}
.pl-drop-ico {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pl-ink);
}
.pl-drop-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pl-drop-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--pl-ink);
}
.pl-drop-sub {
  font-size: 12px;
  color: var(--pl-muted);
}
.pl-batch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.pl-batch-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pl-batch-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  overflow: hidden;
  background: var(--pl-sunken);
}
.pl-batch-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.pl-batch-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 17, 21, 0.72);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.pl-batch-state {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}
.pl-batch-state.is-done { background: var(--pl-ok); }
.pl-batch-state.is-fail { background: var(--pl-danger); }
.pl-batch-state.is-run { background: var(--pl-action); }
.pl-batch-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--pl-ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--pl-soft);
  overflow: hidden;
}
.pl-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--pl-action);
  transition: width 0.25s ease;
}
.pl-summary-box {
  background: var(--pl-soft);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pl-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--pl-muted);
}
.pl-summary-line strong {
  color: var(--pl-ink);
  font-weight: 600;
  text-align: right;
}
.pl-recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pl-recent-row {
  background: #fafbfc;
  border-radius: 14px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pl-recent-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.pl-recent-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--pl-ink);
}

/* Prompts screen */
.pl-tpl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pl-tpl-item {
  width: 100%;
  border: 1.5px solid var(--pl-border);
  background: var(--pl-surface);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.pl-tpl-item.is-selected {
  border-color: var(--pl-action);
  background: #fafbfc;
}
.pl-tpl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pl-tpl-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--pl-ink);
}
.pl-tpl-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--pl-muted);
  background: var(--pl-soft);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.pl-tpl-badge.is-active {
  color: var(--pl-ok);
  background: var(--pl-ok-soft);
}
.pl-tpl-preview {
  font-size: 13px;
  color: var(--pl-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pl-textarea {
  width: 100%;
  border: 1px solid var(--pl-border);
  background: #fafbfc;
  color: var(--pl-ink);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 220px;
  outline: none;
}
.pl-textarea:focus-visible {
  outline: 2px solid var(--pl-action);
  outline-offset: 1px;
}
.pl-editor-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--pl-muted);
}

/* Owner Spend & Access */
.pl-owner-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  font-size: 13px;
  line-height: 18px;
  color: var(--pl-ink-2);
}
.pl-hero-card {
  background: var(--pl-hero);
  color: #ffffff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pl-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pl-hero-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #b4b9c3;
}
.pl-hero-pill {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #262a33;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pl-hero-amount {
  font-size: 32px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pl-hero-of {
  font-size: 16px;
  font-weight: 500;
  color: #b4b9c3;
}
.pl-hero-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #262a33;
  overflow: hidden;
}
.pl-hero-fill {
  height: 100%;
  border-radius: 999px;
  background: #ffffff;
}
.pl-hero-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  color: #b4b9c3;
}
.pl-list-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pl-access-row {
  background: #fafbfc;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pl-row-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--pl-ink);
}
.pl-row-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--pl-ink);
  white-space: nowrap;
}
.pl-pending-card {
  background: var(--pl-warn-bg);
  border: 1px dashed var(--pl-warn-border);
}

/* Floating mobile pill tabbar */
.pl-tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + var(--safe-bottom));
  height: 62px;
  background: #ffffff;
  border: 1px solid var(--pl-border);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(15, 17, 21, 0.14);
  display: grid;
  padding: 4px;
  z-index: 30;
}
.pl-tabbar.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pl-tabbar.cols-4 { grid-template-columns: repeat(4, 1fr); }
.pl-tab-item {
  border: 0;
  background: transparent;
  color: var(--pl-muted);
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}
.pl-tab-item.is-active {
  background: var(--pl-soft);
  color: var(--pl-ink);
  font-weight: 600;
}
.pl-tab-ico {
  position: relative;
  display: inline-flex;
}
.pl-tab-dot {
  position: absolute;
  top: -5px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pl-brand);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Toast & Modal */
.pl-toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + var(--safe-bottom));
  transform: translateX(-50%) translateY(16px);
  background: #0f1115;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(15, 17, 21, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 60;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.pl-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pl-modal-root {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 21, 0.45);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
.pl-modal-root[hidden] {
  display: none;
}
.pl-modal {
  width: 100%;
  max-width: 440px;
  background: var(--pl-surface);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 16px 40px rgba(15, 17, 21, 0.24);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Desktop layout (>= 900px) */
@media (min-width: 900px) {
  .pl-header {
    background: var(--pl-surface);
    border-bottom: 1px solid var(--pl-border);
    height: 74px;
    padding: 0 32px;
  }
  .pl-header-inner {
    max-width: 1280px;
    margin: 0 auto;
  }
  .pl-app-tag {
    background: var(--pl-soft);
    border-color: transparent;
  }
  .pl-desk-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--pl-soft);
    padding: 4px;
    border-radius: 999px;
  }
  .pl-desk-tab {
    border: 0;
    background: transparent;
    color: var(--pl-ink-2);
    font-size: 14px;
    font-weight: 500;
    padding: 9px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }
  .pl-desk-tab.is-active {
    background: var(--pl-action);
    color: #ffffff;
    font-weight: 600;
  }
  .pl-nav-count {
    font-size: 12px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(15, 17, 21, 0.08);
  }
  .pl-desk-tab.is-active .pl-nav-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
  }
  .pl-tabbar {
    display: none;
  }
  .pl-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 32px 48px;
    gap: 16px;
  }
  .pl-card {
    padding: 20px;
    border-radius: 20px;
    gap: 16px;
  }
  .pl-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 20px;
    align-items: start;
  }
  .pl-grid-portrait {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  }
  .pl-grid-prompts {
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  }
  .pl-col-main, .pl-col-side {
    gap: 16px;
  }
  .pl-ref-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .pl-batch-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }
  .pl-toast {
    bottom: 24px;
  }
  .pl-modal-root {
    align-items: center;
  }
}
