
.ogl-wrap,
.ogl-wrap * {
    box-sizing: border-box;
}

.ogl-wrap {
    --ogl-primary: #0f6fff;
    --ogl-primary-dark: #0a47b8;
    --ogl-bg: #f5f8ff;
    --ogl-card: #ffffff;
    --ogl-text: #162033;
    --ogl-muted: #667085;
    --ogl-border: #dbe5f4;
    max-width: 980px;
    margin: 24px auto;
    padding: 22px;
    border: 1px solid var(--ogl-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(15,111,255,.10), transparent 30%),
        var(--ogl-bg);
    color: var(--ogl-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-shadow: 0 12px 34px rgba(15, 42, 90, .08);
    position: relative;
}

.ogl-header h2 {
    margin: 5px 0 6px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
}

.ogl-header p {
    margin: 0 0 20px;
    color: var(--ogl-muted);
    font-size: 16px;
}

.ogl-kicker {
    color: var(--ogl-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.ogl-editor {
    background: var(--ogl-card);
    border: 1px solid var(--ogl-border);
    border-radius: 18px;
    padding: 16px;
}

.ogl-editor label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
}

.ogl-input {
    display: block;
    width: 100%;
    resize: vertical;
    border: 1px solid #cbd7e8;
    border-radius: 14px;
    padding: 14px 15px;
    font: inherit;
    font-size: 17px;
    line-height: 1.5;
    background: #fff;
    color: var(--ogl-text);
    outline: none;
}

.ogl-input:focus {
    border-color: var(--ogl-primary);
    box-shadow: 0 0 0 3px rgba(15,111,255,.12);
}

.ogl-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    color: var(--ogl-muted);
    font-size: 13px;
}

.ogl-clear {
    border: 0;
    background: transparent;
    color: var(--ogl-primary-dark);
    font-weight: 700;
    cursor: pointer;
}

.ogl-featured {
    margin-top: 18px;
    padding: 20px;
    border: 2px solid rgba(15,111,255,.45);
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #edf5ff 100%);
    box-shadow: 0 10px 30px rgba(15,111,255,.12);
}

.ogl-featured-top,
.ogl-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.ogl-featured h3 {
    margin: 5px 0 3px;
    font-size: 23px;
}

.ogl-featured p {
    margin: 0;
    color: var(--ogl-muted);
}

.ogl-badge {
    display: inline-block;
    background: #eaf2ff;
    color: var(--ogl-primary-dark);
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 900;
}

.ogl-output {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin-top: 14px;
    min-height: 52px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    font-size: 22px;
    line-height: 1.6;
}

.ogl-output-featured {
    background: #ffffff;
    border-style: solid;
    border-color: #d7e6ff;
    font-size: clamp(23px, 4vw, 32px);
}

.ogl-featured small {
    display: block;
    margin-top: 9px;
    color: var(--ogl-muted);
    line-height: 1.4;
}

.ogl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.ogl-card {
    background: var(--ogl-card);
    border: 1px solid var(--ogl-border);
    border-radius: 18px;
    padding: 16px;
}

.ogl-style-name,
.ogl-style-desc {
    display: block;
}

.ogl-style-name {
    font-weight: 850;
    font-size: 16px;
}

.ogl-style-desc {
    margin-top: 2px;
    color: var(--ogl-muted);
    font-size: 12px;
}

.ogl-copy {
    flex: 0 0 auto;
    border: 0;
    border-radius: 11px;
    padding: 10px 14px;
    background: var(--ogl-primary);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.ogl-copy:hover {
    transform: translateY(-1px);
}

.ogl-copy:active {
    transform: translateY(0);
    opacity: .85;
}

.ogl-tip {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--ogl-border);
    line-height: 1.5;
}

.ogl-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translate(-50%, 20px);
    z-index: 999999;
    padding: 11px 16px;
    border-radius: 999px;
    background: #101828;
    color: #fff;
    font-weight: 750;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.ogl-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 700px) {
    .ogl-wrap {
        margin: 14px auto;
        padding: 14px;
        border-radius: 18px;
    }

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

    .ogl-featured-top {
        align-items: center;
    }

    .ogl-output {
        font-size: 20px;
    }

    .ogl-copy {
        padding: 9px 12px;
    }
}
