/* Padre (Terminal) share-profit modal — values measured from trade.padre.gg's DOM. */
.pd-root {
  --pd-line: #2a2a2e; --pd-glass: rgba(34, 34, 37, .55); --pd-green: #86efac; --pd-green2: #5ddf6c;
  --pd-ink: #0f0f12; --pd-text: #f5f5f5; --pd-muted: #a1a1aa; --pd-panel: #18181b; --pd-hover: #27272b;
  font-family: Geist, sans-serif; color: var(--pd-text); font-size: 12px;
}
.pd-overlay { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; animation: pd-fade .2s ease both; }
.pd-overlay.closing { animation: pd-fade-out .18s ease both; }
@keyframes pd-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pd-fade-out { from { opacity: 1 } to { opacity: 0 } }
.pd-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pd-wrap { position: relative; padding: 16px; border-radius: 12px; }
.pd-zoom { width: 645px; display: flex; flex-direction: column; gap: 8px; transition: opacity .15s; }

.pd-preview-box { width: 645px; height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.pd-preview { position: relative; display: flex; overflow: hidden; border: .625px solid var(--pd-line); border-radius: 4px; background: var(--pd-ink) center / cover no-repeat; }
.pd-preview img.ov, .pd-preview video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.pd-preview.picking { border: 1.25px dashed var(--pd-green2); cursor: crosshair; }
.pd-preview .pd-novideo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.pd-novideo .a { font-size: 12px; font-weight: 500; color: var(--pd-muted); }
.pd-novideo .b { font-size: 10.5px; font-weight: 500; color: var(--pd-muted); }
.pd-novideo button { margin-top: 10px; }

.pd-row1 { display: flex; align-items: center; gap: 8px; height: 28px; }
.pd-grow { flex: 1 0 0%; }
.pd-group { display: flex; align-items: center; gap: 2px; padding: 2px 1px; border: .625px solid var(--pd-line); border-radius: 14px; background: var(--pd-glass); backdrop-filter: blur(12px); }
.pd-group.tight { gap: 1px; }
.pd-item { display: flex; align-items: center; justify-content: center; height: 24px; padding: 0 6px; border-radius: 12px; color: var(--pd-muted); white-space: nowrap; cursor: pointer; border: 0; background: transparent; transition: color .15s, background-color .15s; }
.pd-item:hover { color: var(--pd-text); }
.pd-item.on { background: var(--pd-green); color: var(--pd-ink); }
.pd-item.big { padding: 0 8px; }
.pd-item .lbl { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; line-height: 12px; }
.pd-item .r { font-size: 11px; font-weight: 500; line-height: 11px; }
.pd-item svg { display: block; width: 12px; height: 12px; }
.pd-item .fillc { fill: currentColor; }
.pd-item .strokec { stroke: currentColor; }

.pd-btn { position: relative; display: flex; align-items: center; justify-content: center; height: 28px; padding: 6px 16px; border: .625px solid var(--pd-line); border-radius: 14px; background: var(--pd-glass); backdrop-filter: blur(12px); color: var(--pd-text); font-size: 12px; font-weight: 500; line-height: 21px; cursor: pointer; transition: background-color .15s, border-color .15s; white-space: nowrap; }
.pd-btn:hover { background: rgba(48, 48, 52, .7); }
.pd-btn.sq { width: 28px; padding: 6px 0; }
.pd-btn.sol { padding: 6px 14px; }
.pd-btn.on { background: var(--pd-green); color: var(--pd-ink); border-color: var(--pd-green); }
.pd-btn[disabled] { opacity: .5; cursor: default; }
.pd-btn .ic { display: flex; margin: 0 6px 0 -4px; }
.pd-btn .ic16 { display: flex; margin: 0 8px 0 -4px; }
.pd-btn svg { display: block; }
.pd-btn .muted { color: var(--pd-muted); fill: var(--pd-muted); stroke: var(--pd-muted); }
.pd-tip { position: absolute; bottom: calc(100% + 8px); right: -10px; background: #232327; border: .625px solid var(--pd-line); border-radius: 6px; padding: 4px 6px; font-size: 11px; font-weight: 500; line-height: 13px; color: var(--pd-text); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.pd-btn:hover .pd-tip { opacity: 1; }

.pd-row2 { display: flex; align-items: center; gap: 8px; height: 70px; }
.pd-upload { display: flex; flex-direction: column; flex-shrink: 0; align-items: center; justify-content: center; gap: 4px; width: 116px; min-width: 116px; height: 70px; border: .625px dashed var(--pd-line); border-radius: 4px; background: var(--pd-glass); backdrop-filter: blur(12px); color: var(--pd-muted); cursor: pointer; transition: color .15s, border-color .15s; }
.pd-upload:hover { color: var(--pd-text); border-color: var(--pd-green); }
.pd-upload.disabled { cursor: default; opacity: .6; }
.pd-upload.disabled:hover { color: var(--pd-muted); border-color: var(--pd-line); }
.pd-upload.drop { border-color: var(--pd-green); color: var(--pd-text); }
.pd-upload span { font-size: 11px; font-weight: 500; line-height: 11px; }
.pd-upload svg { fill: currentColor; }
.pd-thumbs-wrap { position: relative; display: flex; flex: 1 0 0%; align-items: center; overflow: hidden; }
.pd-thumbs { display: flex; align-items: center; gap: 8px; overflow-x: scroll; overflow-y: hidden; scrollbar-width: none; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb { position: relative; display: flex; overflow: hidden; width: 104px; min-width: 104px; height: 70px; border-radius: 4px; border: .625px solid var(--pd-line); cursor: pointer; }
.pd-thumb.on { border-color: var(--pd-green2); }
.pd-thumb img, .pd-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb .del { position: absolute; top: 4px; right: 4px; display: none; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(15, 15, 18, .85); color: #e73a44; font-size: 13px; align-items: center; justify-content: center; padding: 0; }
.pd-thumb:hover .del { display: flex; }

.pd-row3 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pd-row3 > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.pd-pro { display: flex; gap: 8px; height: 116px; }
.pd-timeline { flex: 1; display: flex; flex-direction: column; justify-content: space-between; border: .625px solid var(--pd-line); border-radius: 4px; background: var(--pd-glass); padding: 8px 10px; }
.pd-timeline .hint { font-size: 10.5px; color: #71717a; }
.pd-timeline .bar { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--pd-muted); font-variant-numeric: tabular-nums; }
.pd-timeline .bar button { border: 0; background: none; color: var(--pd-muted); padding: 0; display: flex; font-size: 14px; }
.pd-timeline input[type=range] { flex: 1; accent-color: var(--pd-green); height: 3px; }
.pd-audio { width: 128px; border: .625px solid var(--pd-line); border-radius: 4px; background: var(--pd-glass); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.pd-audio .hd { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 500; color: var(--pd-muted); }
.pd-audio .hd label { cursor: pointer; color: var(--pd-muted); font-size: 14px; display: flex; }
.pd-audio .hd input { display: none; }
.pd-audio .sub { font-size: 10px; color: #71717a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pd-toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%) translateY(-6px); z-index: 1500; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 12px; border-radius: 6px; background: #18181b; border: .625px solid #2a2a2e; color: var(--pd-text); font-size: 12px; font-weight: 500; font-family: Geist, sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); opacity: 0; transition: opacity .18s, transform .18s; pointer-events: none; }
.pd-toast.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.pd-toast .ok { color: var(--pd-green2); font-size: 15px; display: flex; }
.pd-toast .err { color: #e73a44; font-size: 15px; display: flex; }
.pd-toast .x { border: 0; background: none; color: var(--pd-muted); padding: 0; display: flex; font-size: 14px; cursor: pointer; }

/* ---------- Settings (Customize) ---------- */
.pd-set-overlay { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; animation: pd-fade .18s ease both; }
.pd-set { position: relative; display: flex; width: 776px; height: 720px; max-height: calc(100vh - 32px); background: var(--pd-panel); border: .625px solid var(--pd-line); border-radius: 16px; overflow: hidden; }
.pd-nav { width: 257px; flex-shrink: 0; border-right: .625px solid var(--pd-line); padding: 12px 8px 8px; overflow-y: auto; scrollbar-width: none; }
.pd-search { display: flex; align-items: center; gap: 8px; height: 32px; margin: 0 0 12px; padding: 0 10px; border-radius: 16px; border: .625px solid var(--pd-line); background: #1f1f23; color: #71717a; font-size: 12px; font-weight: 500; }
.pd-search i { font-size: 14px; color: var(--pd-muted); }
.pd-nav-sec { font-size: 11px; font-weight: 500; color: var(--pd-muted); padding: 0 0 0 8px; margin: 12px 0 6px; }
.pd-nav-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 6px; border: .625px solid transparent; background: transparent; font-size: 12px; font-weight: 500; color: var(--pd-text); text-align: left; cursor: default; }
.pd-nav-item.on { background: var(--pd-hover); }
.pd-nav-item i { font-size: 14px; color: var(--pd-muted); }
.pd-nav-item.on i { color: var(--pd-green); }
.pd-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pd-pane-head { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 16px; border-bottom: .625px solid var(--pd-line); font-size: 12px; font-weight: 500; }
.pd-pane-head button { border: 0; background: none; color: var(--pd-text); display: flex; padding: 4px; border-radius: 6px; font-size: 18px; }
.pd-pane-head button:hover { background: var(--pd-hover); }
.pd-tabs { display: flex; gap: 4px; padding: 12px 12px 8px; }
.pd-tab { height: 28px; padding: 0 12px; border-radius: 14px; border: 0; background: transparent; color: var(--pd-muted); font-size: 12px; font-weight: 500; }
.pd-tab.on { background: var(--pd-hover); color: var(--pd-text); }
.pd-scroll { flex: 1; overflow-y: auto; padding: 0 16px 16px; scrollbar-width: thin; scrollbar-color: #2a2a2e transparent; }
.pd-sec { padding: 10px 0 12px; border-bottom: .625px solid var(--pd-line); }
.pd-sec:last-child { border-bottom: 0; }
.pd-sec-title { font-size: 12px; font-weight: 500; color: var(--pd-muted); margin: 4px 0 8px; }
.pd-sec .big { width: 100%; display: block; border: .625px solid var(--pd-line); border-radius: 6px; aspect-ratio: 3 / 2; height: auto; background: #0f0f12; }
.pd-sec .half { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pd-sec .half figure { margin: 0; }
.pd-sec .half canvas { width: 100%; display: block; border: .625px solid var(--pd-line); border-radius: 6px; aspect-ratio: 3 / 2; height: auto; }
.pd-sec .half figcaption { font-size: 12px; font-weight: 500; color: var(--pd-muted); margin-top: 4px; }
.pd-li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 12px; font-weight: 500; }
.pd-li.tight { padding: 4px 0; }
.pd-li.split { padding: 14px 0 10px; }
.pd-li.disabled { color: var(--pd-muted); }
.pd-tiles { display: flex; gap: 8px; }
.pd-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--pd-muted); font-size: 12px; font-weight: 500; }
.pd-tile canvas { width: 104px; height: 41px; display: block; border-radius: 6px; border: .625px solid var(--pd-line); }
.pd-tile.on { color: #fafafa; }
.pd-tile.on canvas { border-color: var(--pd-green); }
.pd-swatch { display: flex; align-items: center; gap: 10px; }
.pd-swatch .c { position: relative; width: 16px; height: 16px; border-radius: 3px; overflow: hidden; }
.pd-swatch .c input { position: absolute; inset: -4px; width: 24px; height: 24px; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.pd-swatch button { border: 0; background: none; color: var(--pd-muted); padding: 0; display: flex; font-size: 14px; }
.pd-swatch button:hover { color: var(--pd-text); }
.pd-switch { position: relative; width: 32px; height: 20px; border-radius: 7px; border: 0; background: var(--pd-hover); padding: 0; flex-shrink: 0; transition: background-color .15s; }
.pd-switch b { position: absolute; top: 4px; left: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--pd-muted); transition: transform .15s, background-color .15s; }
.pd-switch.on { background: #285c42; }
.pd-switch.on b { transform: translateX(12px); background: var(--pd-green2); }
.pd-switch[disabled] { opacity: .5; }
.pd-slider { width: 80px; accent-color: var(--pd-green); height: 2px; }
.pd-empty { padding: 40px 0; text-align: center; color: var(--pd-muted); font-size: 12px; }

/* Small screens */
@media (max-width: 699px) {
  .pd-overlay { align-items: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .pd-wrap { padding: 12px; margin: auto 0; width: 100%; }
  .pd-zoom { width: 100%; }
  .pd-preview-box { width: 100%; }
  .pd-row1 { flex-wrap: wrap; height: auto; row-gap: 8px; }
  .pd-row1 .pd-grow { display: none; }
  .pd-row1 > .pd-btn { margin-left: auto; }
  .pd-row2 { height: 60px; }
  .pd-upload { width: 90px; min-width: 90px; height: 60px; }
  .pd-thumb { width: 90px; min-width: 90px; height: 60px; }
  .pd-item { height: 28px; padding: 0 8px; }
  .pd-btn { height: 32px; }
  .pd-btn.sq { width: 32px; }
  .pd-set { width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: none; border-radius: 12px; }
  .pd-nav { display: none; }
  .pd-tiles { gap: 6px; }
  .pd-tile canvas { width: 88px; height: 35px; }
  .pd-slider { width: 110px; }
}
