:root {
    --bg-primary: #526174;
    --bg-panel: #63738A;
    --bg-card: #74859C;
    --bg-input: #8798AE;
    --border-color: #B6C4D4;
    --primary: #2563EB;
    --primary-hover: #60A5FA;
    --text-primary: #F8FAFC;
    --text-secondary: #E2E8F0;
    --text-muted: #E7EEF7;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --focus: rgba(147, 197, 253, .52);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "Segoe UI Variable", "Segoe UI", sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 18% 0%, rgba(37, 99, 235, .16), transparent 34%),
        linear-gradient(135deg, #47586D 0%, var(--bg-primary) 50%, #5C6B7D 100%);
}

a { color: #93C5FD; }
a:hover { color: #BFDBFE; }

.container {
    width: min(1500px, calc(100% - 48px));
    margin: 24px auto;
}

.etp-shell {
    width: min(1500px, calc(100% - 48px));
    margin: 24px auto;
}

.etp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 82px;
    padding: 16px 18px;
    background: rgba(99, 115, 138, .96);
    border: 1px solid rgba(232, 239, 248, .42);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(30, 41, 59, .22);
    backdrop-filter: blur(14px);
}

.etp-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
    color: var(--text-primary);
    text-decoration: none;
}

.etp-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.etp-brand-title {
    display: block;
    font-size: 23px;
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: .01em;
}

.etp-brand-subtitle {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.etp-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.etp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(82, 97, 116, .62);
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
}

.etp-lang a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
}

.etp-lang a:hover { color: var(--text-primary); }

.etp-nav {
    margin: 18px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
    border: 1px solid rgba(232, 239, 248, .32);
    border-radius: 16px;
    background: rgba(82, 97, 116, .82);
}

.main-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.etp-nav-item {
    position: relative;
    display: inline-flex;
}

.topbar.etp-nav {
    display: block;
}

.topbar.etp-nav .main-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.etp-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.etp-nav-dropdown {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    z-index: 40;
    display: grid;
    gap: 8px;
    min-width: 180px;
    padding: 10px;
    border: 1px solid rgba(232, 239, 248, .5);
    border-radius: 14px;
    background: rgba(99, 115, 138, .98);
    box-shadow: 0 18px 42px rgba(30, 41, 59, .25);
    transform: translate(-50%, -6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

.etp-nav-dropdown::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -6px;
    width: 11px;
    height: 11px;
    transform: translateX(-50%) rotate(45deg);
    background: rgba(99, 115, 138, .98);
    border-left: 1px solid rgba(232, 239, 248, .5);
    border-top: 1px solid rgba(232, 239, 248, .5);
}

.etp-nav-item:hover .etp-nav-dropdown,
.etp-nav-item:focus-within .etp-nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.etp-nav .etp-nav-dropdown a {
    min-height: 42px;
    width: 100%;
    justify-content: flex-start;
    background: rgba(116, 133, 156, .9);
    border-color: rgba(232, 239, 248, .28);
}

.etp-nav-text {
    position: relative;
    display: inline-grid;
    gap: 0;
    line-height: 1.05;
}

.etp-nav-label {
    display: block;
}

.etp-nav-sub {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    z-index: 20;
    transform: translate(-50%, -4px);
    min-width: 84px;
    padding: 7px 10px;
    border: 1px solid rgba(209, 218, 230, .34);
    border-radius: 10px;
    background: rgba(99, 115, 138, .98);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    letter-spacing: .04em;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 12px 26px rgba(30, 41, 59, .22);
    transition: opacity .16s ease, transform .16s ease;
}

.etp-nav-sub::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    width: 9px;
    height: 9px;
    transform: translateX(-50%) rotate(45deg);
    background: rgba(99, 115, 138, .98);
    border-left: 1px solid rgba(209, 218, 230, .34);
    border-top: 1px solid rgba(209, 218, 230, .34);
}

.etp-nav a:hover .etp-nav-sub,
.etp-nav a:focus-visible .etp-nav-sub {
    opacity: 1;
    transform: translate(-50%, 0);
}

.etp-nav a:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, .45);
    background: rgba(37, 99, 235, .22);
    color: var(--text-primary);
}

.etp-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #1D4ED8);
    border-color: rgba(147, 197, 253, .35);
}

.etp-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.etp-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: 24px;
    padding: 28px;
    border: 1px solid rgba(174, 187, 208, .22);
    border-radius: 18px;
    background: rgba(70, 86, 109, .96);
    box-shadow: 0 22px 70px rgba(4, 10, 22, .32);
}

.etp-main h1 {
    margin: 0;
    font-size: clamp(34px, 3vw, 43px);
    line-height: 1.05;
    letter-spacing: 0;
    font-weight: 900;
    color: #FFFFFF;
}

.etp-lead {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.65;
}

.etp-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0;
}

.etp-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 14px;
    border: 1px solid rgba(174, 187, 208, .2);
    border-radius: 14px;
    background: rgba(91, 109, 132, .86);
    box-shadow: 0 10px 28px rgba(4, 10, 22, .16);
}

.etp-step-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #334155;
    color: var(--text-secondary);
    font-weight: 800;
}

.etp-step.active {
    border-color: rgba(59, 130, 246, .75);
    background: rgba(37, 99, 235, .22);
}

.etp-step.active .etp-step-number {
    background: var(--primary);
    color: #fff;
}

.etp-step strong { display: block; font-size: 14px; }
.etp-step span { color: var(--text-muted); font-size: 12px; }

.etp-info-card,
.etp-form-card,
.etp-side-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: 0 14px 38px rgba(4, 10, 22, .22);
}

.etp-info-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border-color: rgba(59, 130, 246, .42);
    background: rgba(37, 99, 235, .2);
    color: var(--text-secondary);
    line-height: 1.55;
}

.etp-alert-card {
    border-color: rgba(245, 158, 11, .42);
    background: rgba(245, 158, 11, .14);
    color: #fff7ed;
}

.etp-form-card {
    margin-top: 14px;
    padding: 16px;
}

.etp-form-card label {
    display: block;
    margin: 12px 0 6px;
    color: var(--text-secondary);
    font-weight: 750;
    font-size: 14px;
}

.etp-form-card label:first-child { margin-top: 0; }

.etp-input,
.etp-form-card input[type="email"] {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(192, 203, 219, .34);
    border-radius: 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.etp-form-card input::placeholder { color: var(--text-muted); }

.etp-form-card input:focus,
.etp-upload-zone:focus-within {
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 4px var(--focus);
    background: #7890AA;
}

.etp-upload-zone {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 82px;
    padding: 10px 12px;
    border: 1px dashed rgba(147, 197, 253, .64);
    border-radius: 16px;
    background: rgba(107, 126, 150, .78);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.etp-upload-zone:hover {
    transform: translateY(-1px);
    border-color: var(--primary-hover);
    background: rgba(37, 99, 235, .28);
}

.etp-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.etp-upload-content {
    display: grid;
    gap: 3px;
    justify-items: center;
    pointer-events: none;
}

.etp-upload-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(37, 99, 235, .18);
    color: #BFDBFE;
}

.etp-upload-title {
    font-size: 14px;
    font-weight: 800;
}

.etp-upload-subtitle,
.etp-file-meta {
    color: var(--text-muted);
    font-size: 11px;
}

.etp-file-meta {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 185, 129, .35);
    border-radius: 12px;
    background: rgba(16, 185, 129, .1);
    color: #CFFAE6;
}

.etp-check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0;
    color: var(--text-secondary);
    line-height: 1.45;
}

.etp-check-row input {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--primary);
    flex: 0 0 auto;
}

.etp-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
    transition: background .2s ease, transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.etp-primary-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(96, 165, 250, .34);
}

.etp-primary-button:disabled {
    opacity: .72;
    cursor: wait;
    transform: none;
}

button,
a.button,
.small-button,
.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
    transition: background .2s ease, transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

button:hover,
a.button:hover,
.small-button:hover,
.download-button:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(96, 165, 250, .34);
}

button:disabled {
    opacity: .72;
    cursor: wait;
    transform: none;
}

form,
.note,
.summary,
.successBox,
.download-box,
.review-panel,
.review-card,
.detected-panel div {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: 0 14px 38px rgba(4, 10, 22, .22);
}

form,
.note,
.summary,
.successBox,
.download-box,
.review-panel,
.review-card {
    padding: 20px;
}

form { margin-top: 20px; }

label {
    display: block;
    margin: 16px 0 8px;
    color: var(--text-secondary);
    font-weight: 750;
    font-size: 14px;
}

input[type="file"],
input[type="email"],
input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea,
.etp-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(192, 203, 219, .34);
    border-radius: 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input::placeholder,
textarea::placeholder { color: var(--text-muted); }

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 4px var(--focus);
    background: #4B6380;
}

.precheck-note,
.warn {
    display: block;
    margin: 20px 0;
    padding: 18px;
    border: 1px solid rgba(245, 158, 11, .45);
    border-radius: 16px;
    background: rgba(120, 70, 12, .35);
    color: #FEF3C7;
    line-height: 1.55;
    box-shadow: 0 14px 38px rgba(4, 10, 22, .16);
}

.ok {
    display: block;
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid rgba(16, 185, 129, .42);
    border-radius: 14px;
    background: rgba(16, 185, 129, .16);
    color: #CFFAE6;
    font-weight: 800;
}

.error,
.bad {
    display: block;
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid rgba(248, 113, 113, .48);
    border-radius: 14px;
    background: rgba(127, 29, 29, .34);
    color: #FEE2E2;
    font-weight: 800;
}

.steps,
.etp-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0;
}

.step,
.etp-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 14px;
    border: 1px solid rgba(174, 187, 208, .2);
    border-radius: 14px;
    background: rgba(52, 70, 95, .86);
    color: var(--text-secondary);
    box-shadow: 0 10px 28px rgba(4, 10, 22, .16);
}

.step.active,
.etp-step.active {
    border-color: rgba(59, 130, 246, .75);
    background: rgba(37, 99, 235, .14);
    color: #fff;
}

.check-row,
.etp-check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0;
    color: var(--text-secondary);
    line-height: 1.45;
}

.check-row input,
.etp-check-row input {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--primary);
    flex: 0 0 auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 18px 0;
    color: var(--text-secondary);
}

th {
    padding: 13px 14px;
    text-align: left;
    background: rgba(22, 32, 50, .92);
    color: #fff;
    border-top: 1px solid rgba(192, 203, 219, .24);
    border-bottom: 1px solid rgba(192, 203, 219, .24);
}

td {
    padding: 13px 14px;
    background: rgba(52, 70, 95, .62);
    border-bottom: 1px solid rgba(192, 203, 219, .16);
    vertical-align: middle;
}

tr:hover td { background: rgba(67, 88, 114, .72); }

.badge,
.badge-ok,
.badge-off,
.instant,
.review,
.dtc-group {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.instant,
.badge-ok {
    border: 1px solid rgba(16, 185, 129, .45);
    background: rgba(16, 185, 129, .16);
    color: #BBF7D0;
}

.review {
    border: 1px solid rgba(245, 158, 11, .45);
    background: rgba(245, 158, 11, .16);
    color: #FEF3C7;
}

.badge-off {
    border: 1px solid rgba(248, 113, 113, .48);
    background: rgba(127, 29, 29, .34);
    color: #FECACA;
}

.panel,
.instructions {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: 0 14px 38px rgba(4, 10, 22, .22);
    padding: 18px;
}

.debug,
.debug-box {
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 14px;
    background: rgba(2, 6, 23, .45);
    color: #D1FAE5;
    padding: 14px;
    white-space: pre-wrap;
    overflow: auto;
}

.dtc-table tr.deleted td {
    opacity: .7;
    background: rgba(127, 29, 29, .22);
}

.dtc-table tr.active-row td {
    background: rgba(16, 185, 129, .1);
}

.review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 24px;
    align-items: start;
}

.rating-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 14px;
}

.rating-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(192, 203, 219, .26);
    border-radius: 10px;
    background: rgba(107, 126, 150, .72);
    font-weight: 700;
}

.stars {
    color: #FDE68A;
    font-weight: 900;
    letter-spacing: 1px;
}

.search {
    font-size: 16px;
}

.sid {
    color: #BFDBFE;
    cursor: pointer;
    font-weight: 900;
    text-decoration: underline;
}

.top-actions { margin: 15px 0; }

.dtc-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin: 14px 0;
}

.dtc-toolbar input {
    min-width: 260px;
    flex: 1;
}

.dtc-toolbar select {
    min-width: 150px;
}

.dtc-table {
    margin-top: 14px;
    font-size: 14px;
}

.dtc-table th,
.dtc-table td {
    white-space: nowrap;
}

.small-muted,
.muted {
    color: var(--text-muted);
    font-size: 12px;
}

.dtc-desc {
    white-space: normal !important;
    min-width: 260px;
    max-width: 460px;
    line-height: 1.35;
}

.dtc-group {
    margin: 3px 4px 0 0;
}

.table-wrap {
    overflow: auto;
    max-height: 65vh;
    border: 1px solid rgba(192, 203, 219, .18);
    border-radius: 16px;
    background: rgba(22, 32, 50, .28);
}

.param-table {
    border-collapse: separate;
    border-spacing: 0 16px;
    margin: 30px 0;
    table-layout: fixed;
}

.param-table th {
    padding: 14px 18px;
}

.param-table td {
    padding: 20px 18px;
}

.param-table td:first-child {
    border-left: 1px solid rgba(192, 203, 219, .18);
    border-radius: 7px 0 0 7px;
}

.param-table td:last-child {
    border-right: 1px solid rgba(192, 203, 219, .18);
    border-radius: 0 7px 7px 0;
}

.param-name {
    width: 24%;
    color: #FFFFFF;
    font-weight: 800;
    line-height: 1.35;
}

.param-original {
    min-width: 170px;
    background: rgba(43, 58, 79, .86) !important;
    color: var(--text-secondary);
    font-family: Consolas, "SFMono-Regular", monospace;
    letter-spacing: .5px;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.param-changed-cell {
    background: rgba(52, 70, 95, .62) !important;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.param-changed-cell.changed {
    background: rgba(16, 185, 129, .26) !important;
    border-top-color: rgba(16, 185, 129, .62) !important;
    border-bottom-color: rgba(16, 185, 129, .62) !important;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .24);
}

.change-value {
    display: block;
    width: 100%;
    min-height: 22px;
    padding: 13px 15px;
    border-radius: 9px;
    background: rgba(22, 32, 50, .55);
    color: var(--text-muted);
    font-family: Consolas, "SFMono-Regular", monospace;
    letter-spacing: .5px;
    overflow-wrap: anywhere;
    line-height: 1.5;
    transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.change-value.changed {
    background: rgba(16, 185, 129, .34);
    border: 1px solid rgba(16, 185, 129, .7);
    color: #D1FAE5;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .2);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.panel h3 { margin-top: 0; }

.kv {
    width: 100%;
}

.kv td {
    text-align: left;
    vertical-align: top;
}

.kv td:first-child {
    font-weight: 800;
    color: var(--text-primary);
    width: 42%;
}

.successBox {
    text-align: center;
}

.check {
    font-size: 56px;
    color: #BBF7D0;
    margin-bottom: 10px;
}

.instructions {
    text-align: left;
    margin-top: 25px;
    line-height: 1.55;
}

.instructions h2 { margin-top: 0; }

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(2, 6, 23, .72);
    backdrop-filter: blur(6px);
}

.modal-box {
    width: min(620px, 92vw);
    margin: 8vh auto;
    padding: 24px;
    max-height: 80vh;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: 0 20px 70px rgba(4, 10, 22, .35);
}

.close {
    float: right;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    color: var(--text-secondary);
}

.etp-side {
    display: grid;
    align-content: start;
    gap: 16px;
}

.etp-promo {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 48%, #7C3AED 100%);
    color: #fff;
    box-shadow: 0 16px 42px rgba(4, 10, 22, .24);
}

.etp-promo-wide {
    width: min(430px, 100%);
    float: right;
    margin: 0 0 22px 24px;
}

.etp-promo::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: -80px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
}

.etp-promo-title {
    position: relative;
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
}

.etp-promo p {
    position: relative;
    margin: 0 0 12px;
    color: rgba(255,255,255,.88);
    line-height: 1.55;
}

.etp-code-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.etp-code-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, .45);
    border: 1px solid rgba(255,255,255,.18);
    font-weight: 900;
    letter-spacing: .08em;
}

.etp-copy-button {
    min-height: 36px;
    padding: 7px 11px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(255,255,255,.12);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.etp-side-card {
    padding: 16px;
}

.etp-side-card h2 {
    margin: 0 0 12px;
    font-size: 17px;
    color: #FFFFFF;
}

.etp-stat-grid {
    display: grid;
    gap: 10px;
}

.etp-stat {
    padding: 12px;
    border-radius: 12px;
    background: rgba(67, 88, 114, .72);
    border: 1px solid rgba(192, 203, 219, .26);
}

.etp-stat strong { display: block; }
.etp-stat span { color: var(--text-muted); font-size: 13px; }

.etp-mini-reviews {
    display: grid;
    gap: 10px;
}

.etp-mini-review {
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, .2);
    border-radius: 12px;
    background: rgba(51, 65, 85, .72);
}

.etp-mini-review strong {
    display: block;
    color: var(--text-primary);
}

.etp-mini-review span {
    display: block;
    margin-top: 3px;
    color: #38BDF8;
    font-size: 13px;
    letter-spacing: .08em;
}

.etp-mini-review p,
.etp-muted-text {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.etp-side-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: #F8FAFC;
    font-weight: 800;
    text-decoration: none;
}

.etp-side-link:hover {
    color: #38BDF8;
}

#loadingOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, .78);
    backdrop-filter: blur(8px);
}

.loaderBox {
    width: min(420px, 92vw);
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 18px;
    background: var(--bg-panel);
    text-align: center;
    box-shadow: 0 20px 70px rgba(0,0,0,.35);
}

.loaderBox h2 { margin: 12px 0 6px; }
.loaderBox p { margin: 0; color: var(--text-muted); }

.spinner {
    width: 46px;
    height: 46px;
    margin: 0 auto;
    border: 5px solid rgba(148, 163, 184, .35);
    border-top-color: var(--primary-hover);
    border-radius: 50%;
    animation: etp-spin 1s linear infinite;
}

@keyframes etp-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
    .etp-shell { width: min(100% - 28px, 780px); margin: 14px auto; }
    .etp-header { align-items: flex-start; flex-direction: column; }
    .etp-header-actions { width: 100%; justify-content: space-between; }
    .etp-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .etp-panel { grid-template-columns: 1fr; padding: 20px; }
    .etp-stepper { grid-template-columns: 1fr; }
    .etp-promo-wide {
        float: none;
        width: 100%;
        margin: 0 0 20px;
    }
}

@media (max-width: 560px) {
    .etp-shell { width: calc(100% - 20px); }
    .etp-nav { grid-template-columns: 1fr; }
    .etp-panel { padding: 16px; border-radius: 16px; }
    .etp-brand { min-width: 0; }
    .etp-brand-title { font-size: 20px; }
    .etp-header-actions { gap: 8px; }
    .etp-pill { width: 100%; justify-content: center; }
}

/* Visual comfort override v4: same design system, lighter working surface. */
body {
    background:
        radial-gradient(circle at 18% 0%, rgba(37, 99, 235, .16), transparent 34%),
        linear-gradient(135deg, #4A5C72 0%, #526174 52%, #607084 100%);
}

.etp-header,
.etp-panel,
.container > .summary,
.container > form,
.successBox,
.instructions {
    background: rgba(99, 115, 138, .96);
    border-color: rgba(232, 239, 248, .42);
    box-shadow: 0 18px 52px rgba(30, 41, 59, .22);
}

.etp-step,
.etp-info-card,
.etp-form-card,
.etp-side-card,
.note,
.precheck-note,
.availability-card,
.dtc-card,
.param-card,
table,
.table-wrap {
    background: rgba(116, 133, 156, .94);
    border-color: rgba(232, 239, 248, .38);
    box-shadow: 0 12px 30px rgba(30, 41, 59, .18);
}

input,
select,
textarea,
.etp-upload-zone {
    background: rgba(135, 152, 174, .95);
    border-color: rgba(232, 239, 248, .46);
    color: #FFFFFF;
}

input:focus,
select:focus,
textarea:focus {
    background: rgba(150, 166, 187, .98);
    border-color: #BFDBFE;
    box-shadow: 0 0 0 4px rgba(147, 197, 253, .34);
}

.etp-nav,
.topbar.etp-nav {
    background: rgba(82, 97, 116, .82);
    border-color: rgba(232, 239, 248, .32);
}

.etp-nav-dropdown {
    background: rgba(99, 115, 138, .98);
}
