.thp-merger-app { --thp-recents-width:0px; grid-template-columns:var(--thp-rail-width) minmax(0,1fr); background:var(--thp-bg); }
.thp-merger-app .thp-rail { background:var(--thp-sidebar); }
.thp-merger-app .thp-rail__mark { text-decoration:none; }
.thp-merger-app .thp-rail__item b { font-size:9px; }
.thp-merger-main { grid-column:2; min-height:100vh; padding:8px 18px 70px; background:var(--thp-bg); overflow:visible; }

.thp-merger-header { min-height:78px; padding:13px 18px; display:flex; align-items:center; justify-content:space-between; gap:22px; border-radius:18px; background:var(--thp-panel); }
.thp-merger-header h1 { margin:3px 0 0; color:var(--thp-text); font-size:24px; line-height:1.35; font-weight:900; }
.thp-merger-header p { margin:3px 0 0; color:var(--thp-muted); font-size:11px; }
.thp-merger-back { display:inline-flex; align-items:center; gap:4px; color:var(--thp-purple)!important; font-size:10px; font-weight:800; text-decoration:none; }
.thp-merger-back svg { width:14px; height:14px; transform:rotate(180deg); }
.thp-merger-header__actions { display:flex; align-items:center; gap:10px; }
.thp-merger-private { min-height:34px; padding:0 12px; display:inline-flex; align-items:center; gap:6px; border-radius:999px; background:color-mix(in srgb,#13a36e 11%,var(--thp-panel)); color:#08794f; font-size:10px; font-weight:800; }
.thp-merger-private svg { width:15px; height:15px; }

.thp-merger-hero { min-height:170px; margin-top:14px; padding:27px 34px; overflow:hidden; position:relative; display:flex; align-items:center; justify-content:space-between; gap:25px; border-radius:21px; background:linear-gradient(115deg,#efe5ff 0%,#f8f7fb 52%,#ffe7f4 100%); }
.thp-merger-hero::after { content:""; position:absolute; width:230px; height:230px; left:-55px; bottom:-130px; border-radius:50%; background:rgba(255,255,255,.58); }
.thp-merger-hero > div { position:relative; z-index:1; }
.thp-merger-hero > div > span { display:inline-block; margin-bottom:7px; color:#6d25c9; font-size:10px; font-weight:900; }
.thp-merger-hero h2 { margin:0; color:#20202a; font-size:30px; line-height:1.45; font-weight:950; }
.thp-merger-hero p { margin:5px 0 0; color:#514e59; font-size:12px; }
.thp-merger-hero__icon { position:relative; z-index:1; width:88px; height:88px; flex:0 0 auto; display:grid; place-items:center; border-radius:25px; background:rgba(255,255,255,.84); color:#7d2ae8; box-shadow:0 16px 38px rgba(104,45,171,.14); transform:rotate(-4deg); }
.thp-merger-hero__icon svg { width:43px; height:43px; }

.thp-merge-workspace { margin-top:16px; display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:16px; align-items:start; }
.thp-merge-upload-card,.thp-merge-settings,.thp-merge-result { padding:20px; border:1px solid var(--thp-line); border-radius:18px; background:var(--thp-panel); }
.thp-merge-settings { position:sticky; top:16px; }
.admin-bar .thp-merge-settings { top:48px; }
.thp-merge-card-head > div > span { color:#6d25c9; font-size:9px; font-weight:900; }
.thp-merge-card-head h2 { margin:3px 0 0; color:var(--thp-text); font-size:17px; line-height:1.5; font-weight:900; }
.thp-merge-card-head p { margin:3px 0 0; color:var(--thp-muted); font-size:10px; }

.thp-merge-drop { min-height:205px; margin-top:18px; padding:25px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; border:2px dashed color-mix(in srgb,#7d2ae8 42%,var(--thp-line)); border-radius:16px; background:color-mix(in srgb,#7d2ae8 4%,var(--thp-panel)); text-align:center; cursor:pointer; transition:.18s ease; }
.thp-merge-drop:hover,.thp-merge-drop.is-dragging { border-color:#7d2ae8; background:color-mix(in srgb,#7d2ae8 9%,var(--thp-panel)); transform:translateY(-1px); }
.thp-merge-drop input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.thp-merge-drop > span { width:58px; height:58px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(135deg,#7d2ae8,#c34dd8); color:#fff; box-shadow:0 10px 24px rgba(125,42,232,.22); }
.thp-merge-drop > span svg { width:28px; height:28px; }
.thp-merge-drop strong { color:var(--thp-text); font-size:13px; font-weight:900; }
.thp-merge-drop small { color:var(--thp-muted); font-size:9px; }

.thp-merge-queue { margin-top:18px; }
.thp-merge-queue[hidden] { display:none!important; }
.thp-merge-queue > header { padding:0 2px 11px; display:flex; align-items:end; justify-content:space-between; gap:12px; }
.thp-merge-queue h3 { margin:0; color:var(--thp-text); font-size:14px; font-weight:900; }
.thp-merge-queue header p { margin:3px 0 0; color:var(--thp-muted); font-size:8px; line-height:1.7; }
.thp-merge-queue header button { min-height:34px; padding:0 11px; border:1px solid var(--thp-line); border-radius:9px; background:var(--thp-panel); color:#c52c43; cursor:pointer; font-size:8px; font-weight:850; }
.thp-merge-queue header button:disabled { opacity:.45; cursor:not-allowed; }
.thp-merge-queue ol { margin:0; padding:0; display:grid; gap:8px; list-style:none; }
.thp-merge-row { min-width:0; padding:10px; display:grid; grid-template-columns:20px 27px 42px minmax(0,1fr) auto; align-items:center; gap:9px; border:1px solid var(--thp-line); border-radius:13px; background:var(--thp-bg); cursor:grab; transition:border-color .16s ease,transform .16s ease,opacity .16s ease; }
.thp-merge-row:hover { border-color:color-mix(in srgb,#7d2ae8 35%,var(--thp-line)); }
.thp-merge-row.is-dragging { opacity:.42; cursor:grabbing; }
.thp-merge-row.is-drag-over { border-color:#7d2ae8; transform:translateY(2px); box-shadow:0 0 0 2px color-mix(in srgb,#7d2ae8 10%,transparent); }
.thp-merge-row__handle { color:var(--thp-muted); font-size:19px; line-height:1; text-align:center; }
.thp-merge-row > em { width:27px; height:27px; display:grid; place-items:center; border-radius:8px; background:color-mix(in srgb,#7d2ae8 10%,var(--thp-panel)); color:#6d25c9; font-size:9px; font-style:normal; font-weight:900; }
.thp-merge-row__icon { width:42px; height:42px; display:grid; place-items:center; border-radius:11px; background:#ffe2e6; color:#e73851; }
.thp-merge-row__icon svg { width:22px; height:22px; }
.thp-merge-row > div:not(.thp-merge-row__actions) { min-width:0; display:grid; gap:4px; }
.thp-merge-row b { overflow:hidden; color:var(--thp-text); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.thp-merge-row small { display:flex; flex-wrap:wrap; gap:8px; color:var(--thp-muted); font-size:8px; }
.thp-merge-row small i { font-style:normal; }
.thp-merge-row__actions { display:flex; gap:4px; }
.thp-merge-row__actions button { width:29px; height:29px; padding:0; border:1px solid var(--thp-line); border-radius:8px; background:var(--thp-panel); color:var(--thp-text); cursor:pointer; line-height:1; font-size:15px; }
.thp-merge-row__actions button:last-child { color:#c52c43; font-size:19px; }
.thp-merge-row__actions button:hover:not(:disabled) { border-color:#7d2ae8; color:#7d2ae8; }
.thp-merge-row__actions button:disabled { opacity:.3; cursor:not-allowed; }

.thp-merge-summary { margin-top:16px; display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.thp-merge-summary > div { min-width:0; padding:10px 8px; display:grid; gap:4px; border-radius:11px; background:var(--thp-bg); }
.thp-merge-summary span { color:var(--thp-muted); font-size:7px; }
.thp-merge-summary b { overflow:hidden; color:var(--thp-text); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.thp-merge-name { margin-top:15px; display:grid; gap:6px; }
.thp-merge-name span { color:var(--thp-text); font-size:9px; font-weight:850; }
.thp-merge-name input { width:100%; min-height:43px; padding:0 12px; border:1px solid var(--thp-line); border-radius:11px; outline:0; background:var(--thp-panel); color:var(--thp-text); font-size:10px; }
.thp-merge-name input:focus { border-color:#7d2ae8; box-shadow:0 0 0 3px color-mix(in srgb,#7d2ae8 12%,transparent); }
.thp-merge-submit { width:100%; min-height:49px; margin-top:16px; padding:0 15px; border:0; border-radius:12px; display:flex; align-items:center; justify-content:center; gap:8px; background:linear-gradient(135deg,#6d25c9,#9f3ee7); color:#fff; cursor:pointer; font-size:11px; font-weight:900; box-shadow:0 8px 20px rgba(125,42,232,.2); }
.thp-merge-submit:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; }
.thp-merge-submit svg { width:20px; height:20px; }
.thp-merge-progress { margin-top:13px; }
.thp-merge-progress[hidden] { display:none!important; }
.thp-merge-progress > span { height:7px; overflow:hidden; display:block; border-radius:999px; background:var(--thp-soft); }
.thp-merge-progress > span i { width:0; height:100%; display:block; border-radius:inherit; background:linear-gradient(90deg,#7d2ae8,#e34b9d); transition:width .2s ease; }
.thp-merge-progress p,.thp-merge-status { margin:6px 0 0; color:var(--thp-muted); text-align:center; font-size:8px; line-height:1.7; }
.thp-merge-status.is-error { color:#c9223d; }
.thp-merge-status.is-success { color:#08794f; }
.thp-merge-status.is-warning { color:#9a4c0d; }

.thp-merge-result { margin-top:16px; }
.thp-merge-result[hidden] { display:none!important; }
.thp-merge-result > header { display:flex; align-items:center; gap:11px; }
.thp-merge-result > header > span { width:44px; height:44px; flex:0 0 auto; display:grid; place-items:center; border-radius:50%; background:#dff6eb; color:#08794f; }
.thp-merge-result > header > span svg { width:23px; height:23px; }
.thp-merge-result h2 { margin:0; color:var(--thp-text); font-size:18px; font-weight:900; }
.thp-merge-result header p { margin:3px 0 0; color:var(--thp-muted); font-size:9px; }
.thp-merge-result__actions { margin-top:15px; display:flex; gap:8px; }
.thp-merge-result__actions button { min-height:43px; padding:0 16px; border:1px solid var(--thp-line); border-radius:11px; display:inline-flex; align-items:center; justify-content:center; gap:7px; background:var(--thp-panel); color:var(--thp-text); cursor:pointer; font-size:9px; font-weight:900; }
.thp-merge-result__actions button:first-child { border:0; background:linear-gradient(135deg,#6d25c9,#9f3ee7); color:#fff; }
.thp-merge-result__actions svg { width:18px; height:18px; }
.thp-merge-note { margin:12px 3px 0; color:var(--thp-muted); font-size:8px; line-height:1.9; }

.tesoroz-dark-theme .thp-merger-hero,.tesoroz-car-dark-theme .thp-merger-hero { background:linear-gradient(115deg,#302445 0%,#25262a 52%,#42243a 100%); }
.tesoroz-dark-theme .thp-merger-hero h2,.tesoroz-car-dark-theme .thp-merger-hero h2 { color:#fff; }
.tesoroz-dark-theme .thp-merger-hero p,.tesoroz-car-dark-theme .thp-merger-hero p { color:#d0cfd5; }
.tesoroz-dark-theme .thp-merger-hero__icon,.tesoroz-car-dark-theme .thp-merger-hero__icon { background:rgba(35,36,40,.82); color:#b981ff; }
.tesoroz-dark-theme .thp-merger-private,.tesoroz-car-dark-theme .thp-merger-private { color:#78e0b8; }
.tesoroz-dark-theme .thp-merge-row > em,.tesoroz-car-dark-theme .thp-merge-row > em { color:#c9a0ff; }

html body.tesoroz-merger-active .thp-merger-header p,
html body.tesoroz-merger-active .thp-merger-hero p,
html body.tesoroz-merger-active .thp-merge-card-head p,
html body.tesoroz-merger-active .thp-merge-drop small,
html body.tesoroz-merger-active .thp-merge-queue header p,
html body.tesoroz-merger-active .thp-merge-row small,
html body.tesoroz-merger-active .thp-merge-progress p,
html body.tesoroz-merger-active .thp-merge-status,
html body.tesoroz-merger-active .thp-merge-result header p,
html body.tesoroz-merger-active .thp-merge-note { color:#55515f!important; -webkit-text-fill-color:#55515f!important; opacity:1!important; }
html body.tesoroz-merger-active .thp-merger-private { color:#08794f!important; -webkit-text-fill-color:#08794f!important; opacity:1!important; }
html body.tesoroz-merger-active .thp-merge-status.is-error { color:#c9223d!important; -webkit-text-fill-color:#c9223d!important; }
html body.tesoroz-merger-active .thp-merge-status.is-success { color:#08794f!important; -webkit-text-fill-color:#08794f!important; }
html body.tesoroz-merger-active .thp-merge-status.is-warning { color:#9a4c0d!important; -webkit-text-fill-color:#9a4c0d!important; }
html.tesoroz-dark-theme body.tesoroz-merger-active .thp-merger-header p,
html.tesoroz-car-dark-theme body.tesoroz-merger-active .thp-merger-header p,
html.tesoroz-dark-theme body.tesoroz-merger-active .thp-merger-hero p,
html.tesoroz-car-dark-theme body.tesoroz-merger-active .thp-merger-hero p,
html.tesoroz-dark-theme body.tesoroz-merger-active .thp-merge-card-head p,
html.tesoroz-car-dark-theme body.tesoroz-merger-active .thp-merge-card-head p,
html.tesoroz-dark-theme body.tesoroz-merger-active .thp-merge-drop small,
html.tesoroz-car-dark-theme body.tesoroz-merger-active .thp-merge-drop small,
html.tesoroz-dark-theme body.tesoroz-merger-active .thp-merge-queue header p,
html.tesoroz-car-dark-theme body.tesoroz-merger-active .thp-merge-queue header p,
html.tesoroz-dark-theme body.tesoroz-merger-active .thp-merge-row small,
html.tesoroz-car-dark-theme body.tesoroz-merger-active .thp-merge-row small,
html.tesoroz-dark-theme body.tesoroz-merger-active .thp-merge-progress p,
html.tesoroz-car-dark-theme body.tesoroz-merger-active .thp-merge-progress p,
html.tesoroz-dark-theme body.tesoroz-merger-active .thp-merge-status,
html.tesoroz-car-dark-theme body.tesoroz-merger-active .thp-merge-status,
html.tesoroz-dark-theme body.tesoroz-merger-active .thp-merge-result header p,
html.tesoroz-car-dark-theme body.tesoroz-merger-active .thp-merge-result header p,
html.tesoroz-dark-theme body.tesoroz-merger-active .thp-merge-note,
html.tesoroz-car-dark-theme body.tesoroz-merger-active .thp-merge-note { color:#cbc8d2!important; -webkit-text-fill-color:#cbc8d2!important; }
html.tesoroz-dark-theme body.tesoroz-merger-active .thp-merger-private,
html.tesoroz-car-dark-theme body.tesoroz-merger-active .thp-merger-private,
html.tesoroz-dark-theme body.tesoroz-merger-active .thp-merge-status.is-success,
html.tesoroz-car-dark-theme body.tesoroz-merger-active .thp-merge-status.is-success { color:#78e0b8!important; -webkit-text-fill-color:#78e0b8!important; }
html.tesoroz-dark-theme body.tesoroz-merger-active .thp-merge-status.is-warning,
html.tesoroz-car-dark-theme body.tesoroz-merger-active .thp-merge-status.is-warning { color:#f5b46f!important; -webkit-text-fill-color:#f5b46f!important; }

@media (max-width:900px) {
  .thp-merge-workspace{grid-template-columns:1fr}.thp-merge-settings{position:static}
}
@media (max-width:700px) {
  .thp-merger-main{padding:8px 8px 90px}.thp-merger-app .thp-rail__profile{display:none}.thp-merger-header{min-height:68px;padding:11px 13px}.thp-merger-header h1{font-size:20px}.thp-merger-header p{display:none}.thp-merger-private{display:none}.thp-merger-hero{min-height:140px;padding:22px 18px}.thp-merger-hero h2{font-size:24px}.thp-merger-hero p{font-size:10px}.thp-merger-hero__icon{width:66px;height:66px;border-radius:19px}.thp-merger-hero__icon svg{width:32px;height:32px}.thp-merge-upload-card,.thp-merge-settings,.thp-merge-result{padding:15px}.thp-merge-row{grid-template-columns:18px 25px 38px minmax(0,1fr)}.thp-merge-row__actions{grid-column:2/-1;justify-content:flex-end}.thp-merge-result__actions{display:grid}
}
@media (max-width:420px) {
  .thp-merger-hero__icon{display:none}.thp-merge-drop{min-height:180px;padding:18px}.thp-merge-summary{grid-template-columns:1fr}.thp-merge-queue>header{align-items:start;flex-direction:column}.thp-merge-row{grid-template-columns:18px 25px minmax(0,1fr)}.thp-merge-row__icon{display:none}
}
