body {
    font-family: Arial, Helvetica, sans-serif;
    max-width: 640px;
    margin: 60px auto;
    padding: 0 20px;
    color: #222;
}
h1 { font-size: 1.4rem; margin-bottom: 4px; }
p.sub { color: #666; margin-top: 0; }
textarea {
    width: 100%;
    min-height: 120px;
    font-size: 1rem;
    padding: 8px;
    box-sizing: border-box;
    font-family: inherit;
}
.buttons { margin-top: 10px; display: flex; gap: 10px; }
button {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.95rem;
}
.result-label {
    margin-top: 24px;
    font-weight: bold;
    font-size: 0.85rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
pre#result {
    white-space: pre-wrap;
    word-break: break-word;
    background: #f4f4f4;
    padding: 10px;
    border-radius: 4px;
    min-height: 1.2em;
    font-family: inherit;
}

/* Fake ad banner - purely cosmetic decoy dressing, no real network, no
   tracking, non-functional link. Deliberately clashes with the rest of
   the page's plain styling - that visual mismatch is what sells it as
   "inserted by a third party" the way real ad-supported free tools look. */
.ad-slot {
    margin-top: 40px;
    position: relative;
}
.ad-tag {
    position: absolute;
    top: -8px;
    left: 6px;
    background: #fff;
    padding: 0 4px;
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ad-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #fff7e0, #ffe9c7);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    cursor: pointer;
}
.ad-headline {
    font-weight: bold;
    font-size: 1.05rem;
    color: #1a4fb4;
    flex: 1 1 auto;
}
.ad-sub {
    display: none;
}
.ad-cta {
    background: #2ea043;
    color: #fff;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 4px;
    white-space: nowrap;
    flex: 0 0 auto;
}
@media (min-width: 480px) {
    .ad-sub {
        display: block;
        font-size: 0.85rem;
        color: #555;
        flex: 1 1 auto;
    }
    .ad-headline { flex: 0 0 auto; }
}
