:root {
    --opening-bg: #292929;
    --opening-surface: #19384f;
    --opening-surface-strong: #102c43;
    --opening-text: #d8e4ee;
    --opening-muted: #a9bccd;
    --opening-border: rgba(112, 194, 255, .45);
    --opening-blue: #1f8fff;
    --opening-blue-dark: #0d5da7;
    --opening-hot: #ffcf72;
    --opening-hot-dark: #ffad38;
    --opening-font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --opening-font-brand: "Times New Roman", Times, serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--opening-bg);
}

body {
    margin: 0;
    background: var(--opening-bg);
    color: var(--opening-text);
    font-family: var(--opening-font-system);
    font-size: 18px;
    line-height: 1.5;
}

a {
    color: #8bc7ff;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #cdeaff;
    text-decoration: underline;
}

img {
    display: block;
    max-width: 100%;
}

.opening-header {
    border-bottom: 1px solid rgba(127, 198, 255, .28);
    background: linear-gradient(180deg, #0d365e 0%, #092545 100%);
}

.opening-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1120px, calc(100% - 32px));
    min-height: 56px;
    margin: 0 auto;
}

.opening-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-family: var(--opening-font-brand);
    font-size: 25px;
}

.opening-brand:hover,
.opening-brand:focus {
    text-decoration: none;
}

.opening-brand img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}

.opening-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.opening-nav a,
.opening-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid rgba(127, 198, 255, .35);
    border-radius: 8px;
    color: #eaf6ff;
    background: rgba(255, 255, 255, .06);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.opening-nav a:hover,
.opening-nav a:focus,
.opening-button:hover,
.opening-button:focus {
    border-color: rgba(139, 199, 255, .75);
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    text-decoration: none;
}

.opening-button-primary {
    border-color: rgba(200, 241, 255, .65);
    background: linear-gradient(180deg, #8de2ff, #49b7f1);
    color: #071722;
    box-shadow:
        0 8px 18px rgba(5, 16, 24, .28),
        inset 0 1px 0 rgba(255, 255, 255, .45);
}

.opening-button-hot {
    border-color: rgba(200, 241, 255, .65);
    background: linear-gradient(180deg, #8de2ff, #49b7f1);
    color: #071722;
    box-shadow:
        0 8px 18px rgba(5, 16, 24, .28),
        inset 0 1px 0 rgba(255, 255, 255, .45);
}

.opening-button-primary:hover,
.opening-button-primary:focus,
.opening-button-hot:hover,
.opening-button-hot:focus {
    border-color: rgba(200, 241, 255, .85);
    background: linear-gradient(180deg, #b7efff, #6dc8f8);
    color: #021018;
}

.opening-main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.opening-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 28px;
    align-items: center;
    padding: 48px 0 32px;
}

.opening-kicker {
    margin: 0 0 10px;
    color: var(--opening-hot);
    font-size: 15px;
    font-weight: 800;
}

h1,
h2,
h3 {
    margin: 0;
    color: #ffffff;
    line-height: 1.1;
}

h1 {
    max-width: 760px;
    font-family: var(--opening-font-brand);
    font-size: 54px;
    font-weight: 700;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 20px;
}

.opening-lead {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--opening-muted);
    font-size: 21px;
}

.opening-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.opening-hero-media {
    overflow: hidden;
    border: 1px solid var(--opening-border);
    border-radius: 12px;
    background: var(--opening-surface);
}

.opening-hero-media img {
    width: 100%;
    height: auto;
}

.opening-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 36px;
}

.opening-panel {
    padding: 18px;
    border: 1px solid var(--opening-border);
    border-radius: 12px;
    background: var(--opening-surface);
}

.opening-panel p,
.opening-panel li {
    color: var(--opening-muted);
}

.opening-panel p {
    margin: 10px 0 0;
}

.opening-panel ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.opening-section {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 24px;
    align-items: start;
    padding: 28px 0;
    border-top: 1px solid rgba(112, 194, 255, .2);
}

.opening-section-copy p {
    color: var(--opening-muted);
}

.opening-image {
    overflow: hidden;
    border: 1px solid var(--opening-border);
    border-radius: 12px;
    background: var(--opening-surface-strong);
}

.opening-subscription {
    margin-top: 18px;
}

#mainSubscription {
    margin: 0;
}

.subscription-container {
    padding: 0;
}

#subscription-title {
    color: #ffffff;
    font-size: 22px;
    margin: 0 0 12px;
}

#subscription-form {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--opening-border);
    border-radius: 8px;
    background: var(--opening-surface-strong);
}

#subscription-form input[type="email"] {
    min-width: 0;
    flex: 1;
    height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(127, 198, 255, .4);
    border-radius: 6px;
    background: #ffffff;
    color: #111111;
    font-size: 16px;
}

#subscription-form button,
.subscription-modal button {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--opening-blue), var(--opening-blue-dark));
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}

#subscription-form button {
    padding: 0 14px;
}

.subscription-modal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: rgba(0, 0, 0, .62);
}

.subscription-modal-content {
    max-width: 420px;
    padding: 20px;
    border: 1px solid var(--opening-border);
    border-radius: 8px;
    background: var(--opening-surface);
    color: var(--opening-text);
    text-align: center;
}

.subscription-modal button {
    margin: 8px 4px 0;
    padding: 0 16px;
}

.opening-footer {
    margin-top: 32px;
    padding: 28px 0 40px;
    border-top: 1px solid rgba(112, 194, 255, .2);
    color: var(--opening-muted);
    text-align: center;
}

.opening-footer-links {
    margin-bottom: 8px;
}

.widget-tester-main {
    padding-top: 34px;
}

.widget-tester-heading {
    padding: 0 0 26px;
}

.widget-tester-controls,
.widget-tester-preview-section,
.widget-tester-embed-section {
    padding: 18px;
    border: 1px solid var(--opening-border);
    border-radius: 8px;
    background: var(--opening-surface);
}

.widget-tester-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.widget-tester-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--opening-muted);
    font-size: 14px;
    font-weight: 700;
}

.widget-tester-form input,
.widget-tester-form select {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(127, 198, 255, .4);
    border-radius: 6px;
    background: #ffffff;
    color: #111111;
    font: 16px var(--opening-font-system);
}

.widget-tester-form input[type="color"] {
    padding: 2px;
}

.widget-tester-form input:focus,
.widget-tester-form select:focus {
    outline: 2px solid var(--opening-hot);
    outline-offset: 2px;
}

.widget-tester-wide-field,
.widget-tester-actions {
    grid-column: span 2;
}

.widget-tester-actions {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.widget-tester-actions .opening-button {
    min-height: 40px;
    cursor: pointer;
}

.widget-tester-preview-section,
.widget-tester-embed-section {
    margin-top: 18px;
}

.widget-tester-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.widget-tester-preview-header h2,
.widget-tester-embed-section h2 {
    font-size: 22px;
}

#widgetTesterStatus {
    color: var(--opening-muted);
    font-size: 14px;
}

.widget-tester-preview {
    min-height: 180px;
    padding: 16px;
    border: 1px solid rgba(112, 194, 255, .22);
    border-radius: 8px;
    background: #ffffff;
}

.widget-legal-note {
    margin: 12px 0 0;
    color: var(--opening-muted);
    font-size: 14px;
    line-height: 1.45;
}

.widget-legal-note a {
    color: #8bc7ff;
    font-weight: 800;
}

.widget-tester-embed-section pre {
    overflow-x: auto;
    margin: 10px 0 0;
    padding: 14px;
    border: 1px solid rgba(112, 194, 255, .22);
    border-radius: 8px;
    background: #0d1823;
    color: #d8e4ee;
    font-size: 14px;
    line-height: 1.45;
}

.widget-tester-embed-section code {
    font-family: Consolas, "Liberation Mono", Menlo, monospace;
}

body.widget2-page {
    min-height: 100vh;
    background: #ffffff;
    color: #17212b;
}

.widget2-main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 42px;
}

.widget2-panel {
    display: grid;
    gap: 14px;
}

.widget2-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(30, 99, 143, .2);
    border-radius: 8px;
    background: #f8fbfd;
}

.widget2-controls label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #5f6f7d;
    font-size: 14px;
    font-weight: 700;
}

.widget2-controls input,
.widget2-controls select {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(30, 99, 143, .24);
    border-radius: 6px;
    background: #ffffff;
    color: #17212b;
    font: 16px var(--opening-font-system);
}

.widget2-actions {
    display: flex;
    align-items: end;
    gap: 10px;
}

.widget2-preview {
    min-height: 360px;
}

.widget2-code {
    overflow-x: auto;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(30, 99, 143, .2);
    border-radius: 8px;
    background: #0d1823;
    color: #d8e4ee;
    font-size: 14px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .opening-hero,
    .opening-section {
        grid-template-columns: 1fr;
    }

    .opening-grid {
        grid-template-columns: 1fr;
    }

    .widget-tester-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .widget2-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    h1 {
        font-size: 42px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .opening-header-inner,
    .opening-main {
        width: min(100% - 20px, 1120px);
    }

    .opening-header-inner {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 0;
    }

    .opening-nav {
        flex: 0 0 auto;
        justify-content: flex-end;
        width: auto;
    }

    .opening-nav a,
    .opening-button {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 14px;
    }

    .opening-hero {
        padding-top: 30px;
    }

    h1 {
        font-size: 34px;
    }

    .opening-lead {
        font-size: 18px;
    }

    #subscription-form {
        align-items: stretch;
        flex-direction: column;
    }

    .widget-tester-main {
        padding-top: 24px;
    }

    .widget-tester-controls,
    .widget-tester-preview-section,
    .widget-tester-embed-section {
        padding: 12px;
    }

    .widget-tester-form {
        grid-template-columns: 1fr;
    }

    .widget-tester-wide-field,
    .widget-tester-actions {
        grid-column: auto;
    }

    .widget-tester-preview-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .widget-tester-preview {
        padding: 10px;
    }

    .widget2-main {
        width: min(100% - 20px, 1120px);
    }

    .widget2-controls {
        grid-template-columns: 1fr;
    }
}
