:root {
      --font: 'Inter', system-ui, -apple-system, sans-serif;
      --bg: #ffffff;
      --surface: #f7f7f8;
      --surface-2: #f0f0f2;
      --border: rgba(0, 0, 0, 0.09);
      --border-hover: rgba(0, 0, 0, 0.16);
      --text: #111;
      --text-2: #444;
      --text-m: #767676;
      --text-f: #aaa;
      --accent: #111;
      --accent-t: #fff;
      --ig: #e1306c;
      --wa: #25d366;
      --success: #16a34a;
      --warn: #b45309;
      --error: #dc2626;
      --radius: 12px;
      --radius-sm: 8px;
      --radius-xs: 6px;
      --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
      --shadow-md: 0 4px 16px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .04);
      --shadow-xl: 0 20px 60px rgba(0, 0, 0, .18), 0 4px 16px rgba(0, 0, 0, .10);
      --tr: 160ms cubic-bezier(.16, 1, .3, 1);
      --max-w: 960px;
      --px: clamp(16px, 4vw, 32px);
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0
    }

    html {
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
      -webkit-text-size-adjust: none
    }

    body {
      min-height: 100dvh;
      font-family: var(--font);
      font-size: 15px;
      line-height: 1.6;
      color: var(--text);
      background: var(--bg)
    }

    button {
      cursor: pointer;
      font: inherit;
      border: none;
      background: none
    }

    input,
    select,
    textarea {
      font: inherit;
      color: inherit
    }

    img {
      display: block;
      max-width: 100%
    }

    :focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
      border-radius: 4px
    }

    /* ---- Header ---- */
    .hdr {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255, 255, 255, .92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border)
    }

    .hdr-in {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 0 var(--px);
      height: 56px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px
    }

    .logo-wrap {
      display: flex;
      align-items: center;
      gap: 9px
    }

    .logo-wrap img {
      max-height: 24px;
      width: auto
    }

    .hdr-right {
      display: flex;
      align-items: center;
      gap: 10px
    }

    .channel-badge {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 4px 12px;
      border-radius: 99px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .02em
    }

    .channel-badge.ig {
      background: rgba(225, 48, 108, .1);
      color: var(--ig)
    }

    .channel-badge.wa {
      background: rgba(37, 211, 102, .1);
      color: #15803d
    }

    .btn-ghost {
      padding: 6px 12px;
      border-radius: var(--radius-xs);
      font-size: 13px;
      font-weight: 600;
      color: var(--text-m);
      border: 1px solid var(--border-hover);
      transition: all var(--tr)
    }

    .btn-ghost:hover {
      color: var(--text);
      border-color: rgba(0, 0, 0, .3)
    }

    /* ---- Screens ---- */
    .screen {
      display: none
    }

    .screen.active {
      display: block
    }

    /* ---- Login ---- */
    .login-wrap {
      min-height: calc(100dvh - 56px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px var(--px)
    }

    .login-card {
      width: 100%;
      max-width: 400px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 36px 32px;
      box-shadow: var(--shadow-md)
    }

    .login-title {
      font-size: 22px;
      font-weight: 800;
      letter-spacing: -.03em;
      margin-bottom: 6px
    }

    .login-sub {
      font-size: 14px;
      color: var(--text-m);
      margin-bottom: 28px
    }

    .field {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 16px
    }

    .field label {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-2)
    }

    .inp {
      padding: 11px 13px;
      border: 1.5px solid var(--border-hover);
      border-radius: var(--radius-sm);
      font-size: 15px;
      outline: none;
      transition: border-color var(--tr)
    }

    .inp:focus {
      border-color: rgba(0, 0, 0, .4)
    }

    .btn-primary {
      width: 100%;
      padding: 13px;
      background: var(--accent);
      color: var(--accent-t);
      border-radius: var(--radius);
      font-size: 15px;
      font-weight: 700;
      transition: all var(--tr);
      margin-top: 4px
    }

    .btn-primary:hover {
      background: #333
    }

    .btn-primary:disabled {
      background: var(--surface-2);
      color: var(--text-f);
      cursor: not-allowed
    }

    .err-msg {
      font-size: 13px;
      color: var(--error);
      padding: 10px 14px;
      background: #fef2f2;
      border-radius: 8px;
      border: 1px solid #fecaca;
      margin-top: 12px;
      display: none
    }

    /* ---- Channel selector ---- */
    .channel-wrap {
      min-height: calc(100dvh - 56px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px var(--px)
    }

    .channel-card {
      width: 100%;
      max-width: 420px
    }

    .channel-title {
      font-size: 22px;
      font-weight: 800;
      letter-spacing: -.03em;
      margin-bottom: 8px
    }

    .channel-sub {
      font-size: 14px;
      color: var(--text-m);
      margin-bottom: 28px
    }

    .channel-btns {
      display: flex;
      flex-direction: column;
      gap: 12px
    }

    .channel-btn {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 18px 20px;
      border-radius: var(--radius);
      border: 2px solid var(--border-hover);
      background: var(--bg);
      text-align: left;
      transition: all var(--tr)
    }

    .channel-btn:hover {
      border-color: rgba(0, 0, 0, .4);
      box-shadow: var(--shadow-sm)
    }

    .channel-btn.ig:hover {
      border-color: var(--ig)
    }

    .channel-btn.wa:hover {
      border-color: var(--wa)
    }

    .ch-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center
    }

    .ch-icon.ig {
      background: rgba(225, 48, 108, .1);
      color: var(--ig)
    }

    .ch-icon.wa {
      background: rgba(37, 211, 102, .1);
      color: #15803d
    }

    .ch-name {
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 2px
    }

    .ch-desc {
      font-size: 13px;
      color: var(--text-m)
    }

    /* ---- Admin panel ---- */
    .panel {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 32px var(--px) 80px
    }

    /* Tabs */
    .tabs {
      display: flex;
      gap: 4px;
      margin-bottom: 32px;
      border-bottom: 1px solid var(--border);
      padding-bottom: 0
    }

    .tab-btn {
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 600;
      color: var(--text-m);
      border-radius: var(--radius-sm) var(--radius-sm) 0 0;
      border: 1px solid transparent;
      border-bottom: none;
      margin-bottom: -1px;
      transition: all var(--tr)
    }

    .tab-btn.active {
      background: var(--bg);
      color: var(--text);
      border-color: var(--border)
    }

    .tab-btn:hover:not(.active) {
      color: var(--text-2)
    }

    .tab-pane {
      display: none
    }

    .tab-pane.active {
      display: block
    }

    /* Section header */
    .sec-hd {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      gap: 12px;
      flex-wrap: wrap
    }

    .sec-title {
      font-size: 18px;
      font-weight: 800;
      letter-spacing: -.02em
    }

    .sec-sub {
      font-size: 13px;
      color: var(--text-m);
      margin-top: 2px
    }

    /* Generate link card */
    .gen-card {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 24px;
      margin-bottom: 0
    }

    .gen-title {
      font-size: 15px;
      font-weight: 700;
      margin-bottom: 16px
    }

    .gen-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: flex-start
    }

    .gen-field {
      display: flex;
      flex-direction: column;
      gap: 5px;
      flex: 1;
      min-width: 120px
    }

    .gen-field label {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-m);
      letter-spacing: .04em;
      text-transform: uppercase;
      white-space: nowrap
    }

    .gen-field small {
      font-size: 11px;
      color: var(--text-f);
      margin-top: 2px
    }

    .gen-btn {
      padding: 11px 20px;
      background: var(--accent);
      color: #fff;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
      transition: all var(--tr);
      flex-shrink: 0;
      align-self: flex-end
    }

    .gen-btn:hover {
      background: #333
    }

    .gen-btn:disabled {
      background: var(--surface-2);
      color: var(--text-f);
      cursor: not-allowed
    }

    .gen-calc {
      margin-top: 14px;
      padding: 12px 16px;
      background: var(--surface);
      border-radius: var(--radius-sm);
      font-size: 13px;
      color: var(--text-2);
      display: flex;
      gap: 20px;
      flex-wrap: wrap
    }

    .gen-calc span {
      font-weight: 700;
      color: var(--text)
    }

    .gen-result {
      margin-top: 16px;
      padding: 16px 18px;
      border: 1px solid #bbf7d0;
      border-radius: var(--radius-sm);
      background: #f0fdf4;
      display: none
    }

    .gen-result-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      flex-wrap: wrap;
      gap: 8px
    }

    .gen-result-head p {
      font-size: 13px;
      color: #15803d;
      font-weight: 700
    }

    .gen-order-id {
      font-size: 12px;
      font-family: monospace;
      background: #dcfce7;
      color: #166534;
      padding: 3px 10px;
      border-radius: 99px;
      font-weight: 700;
      letter-spacing: .04em
    }

    .gen-url {
      display: flex;
      align-items: center;
      gap: 8px;
      border: 1px solid #86efac;
      border-radius: 6px;
      background: #fff;
      overflow: hidden
    }

    .gen-url span {
      flex: 1;
      padding: 10px 12px;
      font-size: 14px;
      font-family: monospace;
      color: #15803d;
      word-break: break-all
    }

    .gen-url button {
      flex-shrink: 0;
      padding: 0 12px;
      height: 40px;
      background: #dcfce7;
      border-left: 1px solid #86efac;
      font-size: 12px;
      font-weight: 700;
      color: #15803d;
      transition: all var(--tr)
    }

    .gen-url button:hover {
      background: #bbf7d0
    }

    .gen-err {
      margin-top: 12px;
      padding: 10px 14px;
      border: 1px solid #fecaca;
      border-radius: var(--radius-sm);
      background: #fef2f2;
      font-size: 13px;
      color: var(--error);
      display: none
    }

    /* ---- Links history list ---- */
    .links-section-hd {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 28px 0 12px;
      gap: 12px
    }

    .links-section-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-2)
    }

    .links-list {
      display: flex;
      flex-direction: column;
      gap: 8px
    }

    .link-row {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 12px 14px;
      background: var(--bg);
      cursor: pointer;
      transition: box-shadow var(--tr), border-color var(--tr);
    }

    .link-row:hover {
      box-shadow: var(--shadow-sm);
      border-color: rgba(0, 0, 0, .18)
    }

    .link-row-url {
      flex: 1;
      font-size: 13px;
      font-family: monospace;
      color: var(--text-m);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0
    }

    .link-row-meta {
      font-size: 11px;
      color: var(--text-f);
      flex-shrink: 0;
      white-space: nowrap
    }

    .link-row-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0
    }

    /* ================================================================
       ORDERS — Card-style row list
    ================================================================ */
    .orders-list {
      display: flex;
      flex-direction: column;
      gap: 10px
    }

    .order-card {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--bg);
      padding: 16px 18px;
      transition: box-shadow var(--tr), border-color var(--tr);
      cursor: pointer;
    }

    .order-card:hover {
      box-shadow: var(--shadow-sm);
      border-color: rgba(0, 0, 0, .18)
    }

    .order-top {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 12px
    }

    .order-oid {
      font-family: monospace;
      font-size: 12px;
      font-weight: 700;
      color: var(--text);
      background: var(--surface);
      padding: 3px 9px;
      border-radius: 6px;
      letter-spacing: .04em;
      flex-shrink: 0
    }

    .order-link-chip {
      font-family: monospace;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-m);
      background: var(--surface-2);
      border: 1px solid var(--border-hover);
      padding: 2px 8px;
      border-radius: 6px;
      letter-spacing: .03em;
      flex-shrink: 0
    }

    .order-date {
      font-size: 11px;
      color: var(--text-f);
      margin-left: auto;
      white-space: nowrap
    }

    .order-fields {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 10px 16px;
      margin-bottom: 14px
    }

    .order-field {
      display: flex;
      flex-direction: column;
      gap: 2px
    }

    .order-field-lbl {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--text-f)
    }

    .order-field-val {
      font-size: 13px;
      font-weight: 500;
      color: var(--text)
    }

    .order-field-val.mono {
      font-family: monospace;
      font-size: 12px
    }

    .order-field-val.muted {
      color: var(--text-m)
    }

    .order-foot {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      padding-top: 12px;
      border-top: 1px solid var(--border)
    }

    .order-proof {
      width: 36px;
      height: 36px;
      object-fit: cover;
      border-radius: 6px;
      border: 1px solid var(--border);
      cursor: pointer;
      flex-shrink: 0;
      transition: opacity var(--tr)
    }

    .order-proof:hover {
      opacity: .75
    }

    /* Status badges */
    .badge {
      display: inline-flex;
      align-items: center;
      padding: 3px 9px;
      border-radius: 99px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .03em;
      white-space: nowrap
    }

    .badge-not-filled {
      background: #f3f4f6;
      color: #6b7280
    }

    .badge-pending {
      background: #fef3c7;
      color: #92400e
    }

    .badge-confirmed {
      background: #dcfce7;
      color: #166534
    }

    .badge-issue {
      background: #fee2e2;
      color: #991b1b
    }

    .badge-orders {
      background: #eff6ff;
      color: #1d4ed8
    }

    /* Action buttons */
    .order-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-left: auto;
      flex-wrap: wrap
    }

    .act-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 5px 13px;
      border-radius: 99px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .02em;
      border: 1.5px solid;
      white-space: nowrap;
      transition: all var(--tr);
      flex-shrink: 0;
      line-height: 1
    }

    .act-confirm {
      border-color: rgba(22, 163, 74, .35);
      color: #15803d;
      background: transparent
    }

    .act-confirm:hover {
      background: #f0fdf4;
      border-color: #16a34a
    }

    .act-issue {
      border-color: rgba(180, 83, 9, .3);
      color: var(--warn);
      background: transparent
    }

    .act-issue:hover {
      background: #fffbeb;
      border-color: #b45309
    }

    .act-copy {
      border-color: rgba(0, 0, 0, .14);
      color: var(--text-m);
      background: transparent
    }

    .act-copy:hover {
      background: var(--surface);
      border-color: rgba(0, 0, 0, .28);
      color: var(--text)
    }

    .act-del {
      width: 30px;
      height: 30px;
      min-width: 30px;
      padding: 0;
      border-radius: 50%;
      border: 1.5px solid rgba(0, 0, 0, .13);
      color: var(--text-f);
      background: transparent;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all var(--tr)
    }

    .act-del:hover {
      border-color: rgba(220, 38, 38, .45);
      color: var(--error);
      background: #fef2f2
    }

    /* Toast */
    .toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(12px);
      background: #111;
      color: #fff;
      font-size: 13px;
      font-weight: 600;
      padding: 9px 18px;
      border-radius: 99px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, .22);
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s, transform .2s;
      z-index: 9999;
      white-space: nowrap
    }

    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0)
    }

    /* Settings */
    .settings-grid {
      display: flex;
      flex-direction: column;
      gap: 20px;
      max-width: 560px
    }

    .settings-card {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 24px
    }

    .settings-title {
      font-size: 15px;
      font-weight: 700;
      margin-bottom: 16px
    }

    .fields {
      display: flex;
      flex-direction: column;
      gap: 14px
    }

    .field-row {
      display: flex;
      flex-direction: column;
      gap: 5px
    }

    .field-row label {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-2)
    }

    .field-row small {
      font-size: 12px;
      color: var(--text-m)
    }

    .save-btn {
      padding: 10px 24px;
      background: var(--accent);
      color: #fff;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 700;
      transition: all var(--tr);
      margin-top: 8px
    }

    .save-btn:hover {
      background: #333
    }

    .save-ok {
      font-size: 13px;
      color: var(--success);
      display: none;
      margin-top: 8px
    }

    /* QR dropzone */
    .qr-dropzone {
      position: relative;
      overflow: hidden;
      border: 2px dashed var(--border-hover);
      border-radius: var(--radius-sm);
      padding: 20px 16px;
      text-align: center;
      cursor: pointer;
      transition: all var(--tr);
      background: var(--surface);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 160px;
    }

    .qr-dropzone:hover,
    .qr-dropzone.drag-over {
      border-color: rgba(0, 0, 0, .35);
      background: var(--surface-2);
    }

    .qr-dropzone svg {
      color: var(--text-f);
    }

    .qr-dropzone p {
      font-size: 13px;
      color: var(--text-m);
    }

    .qr-dropzone span {
      font-size: 12px;
      color: var(--text-f);
    }

    .qr-preview-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      background: #fff;
      z-index: 1;
    }

    .qr-overlay {
      position: absolute;
      inset: 0;
      background: rgba(220, 38, 38, 0.85);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 700;
      opacity: 0;
      transition: opacity var(--tr);
      z-index: 2;
      backdrop-filter: blur(2px);
    }

    .qr-dropzone:hover .qr-overlay {
      opacity: 1;
    }

    /* Lightbox */
    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 999;
      background: rgba(0, 0, 0, .85);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px
    }

    .lightbox img {
      max-width: 100%;
      max-height: 90dvh;
      border-radius: 12px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, .6)
    }

    .lightbox-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .15);
      color: #fff;
      font-size: 20px;
      display: flex;
      align-items: center;
      justify-content: center
    }

    .lightbox-close:hover {
      background: rgba(255, 255, 255, .25)
    }

    /* Empty / loading */
    .empty {
      text-align: center;
      padding: 60px 20px;
      color: var(--text-m)
    }

    .empty p {
      font-size: 14px;
      margin-top: 8px
    }

    .loading-state {
      text-align: center;
      padding: 40px;
      color: var(--text-f);
      font-size: 14px
    }

    /* ================================================================
       ORDER DETAIL OVERLAY
    ================================================================ */
    .od-backdrop {
      position: fixed;
      inset: 0;
      z-index: 200;
      background: rgba(0, 0, 0, .55);
      opacity: 0;
      pointer-events: none;
      transition: opacity 220ms ease;
      backdrop-filter: blur(2px);
    }

    .od-backdrop.open {
      opacity: 1;
      pointer-events: all
    }

    .od-drawer {
      position: fixed;
      inset: 0;
      z-index: 201;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      pointer-events: none;
    }

    @media(min-width:600px) {
      .od-drawer {
        align-items: center
      }
    }

    .od-panel {
      width: 100%;
      max-width: 560px;
      max-height: 92dvh;
      background: var(--bg);
      border-radius: 20px 20px 0 0;
      box-shadow: var(--shadow-xl);
      display: flex;
      flex-direction: column;
      transform: translateY(32px);
      opacity: 0;
      transition: transform 280ms cubic-bezier(.16, 1, .3, 1), opacity 220ms ease;
      pointer-events: none;
      overflow: hidden;
    }

    @media(min-width:600px) {
      .od-panel {
        border-radius: 20px;
        transform: translateY(16px) scale(.97)
      }
    }

    .od-backdrop.open~.od-drawer .od-panel {
      transform: translateY(0);
      opacity: 1;
      pointer-events: all;
    }

    @media(min-width:600px) {
      .od-backdrop.open~.od-drawer .od-panel {
        transform: translateY(0) scale(1)
      }
    }

    /* Drag handle */
    .od-handle {
      flex-shrink: 0;
      display: flex;
      justify-content: center;
      padding: 12px 0 4px
    }

    .od-handle-bar {
      width: 36px;
      height: 4px;
      border-radius: 99px;
      background: var(--border-hover)
    }

    @media(min-width:600px) {
      .od-handle {
        display: none
      }
    }

    /* Header */
    .od-header {
      flex-shrink: 0;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      padding: 16px 20px 14px;
      border-bottom: 1px solid var(--border);
    }

    .od-header-left {
      display: flex;
      flex-direction: column;
      gap: 6px
    }

    .od-oid {
      font-family: monospace;
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      background: var(--surface);
      padding: 3px 10px;
      border-radius: 6px;
      letter-spacing: .04em;
      display: inline-block
    }

    .od-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap
    }

    .od-date {
      font-size: 12px;
      color: var(--text-m)
    }

    .od-channel {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .04em;
      text-transform: uppercase;
      padding: 2px 8px;
      border-radius: 99px
    }

    .od-channel.ig {
      background: rgba(225, 48, 108, .1);
      color: var(--ig)
    }

    .od-channel.wa {
      background: rgba(37, 211, 102, .1);
      color: #15803d
    }

    .od-close {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 1px solid var(--border-hover);
      color: var(--text-m);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all var(--tr)
    }

    .od-close:hover {
      background: var(--surface-2);
      color: var(--text);
      border-color: rgba(0, 0, 0, .3)
    }

    /* Scrollable body */
    .od-body {
      flex: 1;
      overflow-y: auto;
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 16px
    }

    .od-body::-webkit-scrollbar {
      width: 4px
    }

    .od-body::-webkit-scrollbar-track {
      background: transparent
    }

    .od-body::-webkit-scrollbar-thumb {
      background: var(--border-hover);
      border-radius: 99px
    }

    /* Section label */
    .od-sec-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--text-m);
      margin-bottom: 10px
    }

    /* Boot card */
    .od-boot-card {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      margin-bottom: 10px
    }

    .od-boot-card:last-child {
      margin-bottom: 0
    }

    .od-boot-hd {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      background: var(--surface);
      border-bottom: 1px solid var(--border)
    }

    .od-boot-num {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--text);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0
    }

    .od-boot-label {
      font-size: 13px;
      font-weight: 700;
      color: var(--text)
    }

    .od-boot-body {
      padding: 14px;
      display: flex;
      gap: 14px;
      align-items: flex-start
    }

    .od-boot-img-wrap {
      width: 80px;
      height: 80px;
      flex-shrink: 0;
      border-radius: var(--radius-sm);
      overflow: hidden;
      border: 1px solid var(--border);
      background: var(--surface);
      cursor: pointer;
      transition: opacity var(--tr)
    }

    .od-boot-img-wrap:hover {
      opacity: .8
    }

    .od-boot-img-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover
    }

    .od-boot-img-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-f)
    }

    .od-boot-details {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 8px
    }

    .od-kv {
      display: flex;
      flex-direction: column;
      gap: 1px
    }

    .od-kv-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--text-f)
    }

    .od-kv-val {
      font-size: 13px;
      font-weight: 600;
      color: var(--text)
    }

    .od-kv-val.muted {
      color: var(--text-m);
      font-weight: 400
    }

    /* Info card (payment, customer) */
    .od-info-card {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 14px
    }

    .od-info-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px
    }

    /* Footer actions */
    .od-footer {
      flex-shrink: 0;
      padding: 14px 20px;
      border-top: 1px solid var(--border);
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .od-action-confirm {
      flex: 1;
      padding: 10px 16px;
      background: #f0fdf4;
      color: #15803d;
      border: 1.5px solid rgba(22, 163, 74, .35);
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 700;
      transition: all var(--tr)
    }

    .od-action-confirm:hover {
      background: #dcfce7;
      border-color: #16a34a
    }

    .od-action-issue {
      flex: 1;
      padding: 10px 16px;
      background: #fffbeb;
      color: var(--warn);
      border: 1.5px solid rgba(180, 83, 9, .3);
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 700;
      transition: all var(--tr)
    }

    .od-action-issue:hover {
      background: #fef3c7;
      border-color: #b45309
    }

    .od-footer-placeholder {
      font-size: 13px;
      color: var(--text-f);
      padding: 10px 0
    }

    /* Link detail — URL copy row inside od-panel */
    .od-url-row {
      display: flex;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--border-hover);
      border-radius: var(--radius-sm);
      background: var(--surface);
      overflow: hidden
    }

    .od-url-row span {
      flex: 1;
      padding: 10px 12px;
      font-size: 13px;
      font-family: monospace;
      color: var(--text-m);
      word-break: break-all
    }

    .od-url-copy {
      flex-shrink: 0;
      padding: 0 12px;
      height: 38px;
      background: var(--surface-2);
      border-left: 1px solid var(--border-hover);
      font-size: 12px;
      font-weight: 700;
      color: var(--text-m);
      transition: all var(--tr)
    }

    .od-url-copy:hover {
      background: var(--border);
      color: var(--text)
    }