.gm-adcheck {
    --gm-adcheck-accent: #21416b;
    --gm-adcheck-bg: #f5f6f8;
    --gm-adcheck-card: #ffffff;
    --gm-adcheck-text: #18202a;
    --gm-adcheck-muted: #667085;
    --gm-adcheck-border: #e2e6ea;
    --gm-adcheck-good: #16845b;
    --gm-adcheck-warning: #b66b12;
    color: var(--gm-adcheck-text);
    font-family: inherit;
    width: 100%;
}

.gm-adcheck *,
.gm-adcheck *::before,
.gm-adcheck *::after {
    box-sizing: border-box;
}

.gm-adcheck__header {
    max-width: 760px;
    margin: 0 0 32px;
}

.gm-adcheck__eyebrow,
.gm-adcheck__result-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--gm-adcheck-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gm-adcheck__header h2 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.04;
}

.gm-adcheck__header p {
    margin: 0;
    color: var(--gm-adcheck-muted);
    font-size: 18px;
    line-height: 1.6;
}

.gm-adcheck__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
}

.gm-adcheck__panel {
    background: var(--gm-adcheck-card);
    border: 1px solid var(--gm-adcheck-border);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(20, 32, 46, 0.06);
}

.gm-adcheck__panel--upload {
    padding: 24px;
}

.gm-adcheck__panel--result {
    min-height: 560px;
    padding: 28px;
}

.gm-adcheck__form {
    display: grid;
    gap: 20px;
}

.gm-adcheck__dropzone {
    min-height: 300px;
    padding: 32px 24px;
    border: 2px dashed #cfd5dc;
    border-radius: 16px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.gm-adcheck__dropzone:hover,
.gm-adcheck__dropzone:focus-visible,
.gm-adcheck__dropzone.is-dragging {
    outline: none;
    border-color: var(--gm-adcheck-accent);
    background: color-mix(in srgb, var(--gm-adcheck-accent) 5%, white);
}

.gm-adcheck__dropzone.is-dragging {
    transform: scale(1.01);
}

.gm-adcheck__dropzone-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gm-adcheck-accent);
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.gm-adcheck__dropzone strong {
    margin-bottom: 6px;
    font-size: 18px;
}

.gm-adcheck__dropzone span {
    color: var(--gm-adcheck-muted);
}

.gm-adcheck__dropzone small {
    margin-top: 12px;
    color: #8a94a3;
}

.gm-adcheck__preview-stage {
    min-height: 300px;
    padding: 22px;
    border-radius: 16px;
    background: #eef1f4;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.gm-adcheck__preview-stage img {
    display: block;
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    box-shadow: 0 8px 28px rgba(18, 29, 40, .16);
}

.gm-adcheck__file-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
}

.gm-adcheck__file-meta > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.gm-adcheck__filename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gm-adcheck__dimensions {
    color: var(--gm-adcheck-muted);
    font-size: 13px;
}

.gm-adcheck__remove {
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--gm-adcheck-accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.gm-adcheck__field {
    display: grid;
    gap: 8px;
}

.gm-adcheck__field > span {
    font-weight: 700;
}

.gm-adcheck__field em {
    margin-left: 4px;
    color: var(--gm-adcheck-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.gm-adcheck__field textarea {
    width: 100%;
    padding: 13px 14px;
    resize: vertical;
    border: 1px solid #ccd2d9;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    font: inherit;
    line-height: 1.5;
}

.gm-adcheck__field textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--gm-adcheck-accent) 22%, transparent);
    outline-offset: 1px;
    border-color: var(--gm-adcheck-accent);
}

.gm-adcheck__local-checks {
    padding: 16px;
    border-radius: 12px;
    background: var(--gm-adcheck-bg);
}

.gm-adcheck__local-checks-title {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gm-adcheck__local-checks-list {
    display: grid;
    gap: 8px;
}

.gm-adcheck__local-check {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 9px;
    font-size: 14px;
}

.gm-adcheck__local-check strong {
    font-size: 13px;
}

.gm-adcheck__check-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gm-adcheck-warning);
}

.gm-adcheck__local-check.is-ok .gm-adcheck__check-dot {
    background: var(--gm-adcheck-good);
}

.gm-adcheck__error {
    padding: 13px 15px;
    border: 1px solid #f3c7c7;
    border-radius: 10px;
    background: #fff5f5;
    color: #9a2727;
    font-size: 14px;
}

.gm-adcheck__submit {
    width: 100%;
    min-height: 52px;
    padding: 13px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--gm-adcheck-accent);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease;
}

.gm-adcheck__submit:hover:not(:disabled) {
    transform: translateY(-1px);
}

.gm-adcheck__submit:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.gm-adcheck__empty {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gm-adcheck__loading {
    display: none;
    min-height: 500px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gm-adcheck.is-analyzing .gm-adcheck__loading:not([hidden]) {
    display: flex;
}

.gm-adcheck__loading[hidden] {
    display: none !important;
}

.gm-adcheck__empty-score {
    width: 110px;
    height: 110px;
    margin-bottom: 22px;
    border: 10px solid #edf0f3;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #a7afb9;
    font-size: 40px;
    font-weight: 800;
}

.gm-adcheck__empty h3,
.gm-adcheck__loading strong {
    margin: 0 0 8px;
    font-size: 23px;
}

.gm-adcheck__empty p,
.gm-adcheck__loading span:not(.gm-adcheck__spinner) {
    max-width: 440px;
    margin: 0;
    color: var(--gm-adcheck-muted);
    line-height: 1.6;
}

.gm-adcheck__spinner {
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border: 5px solid #e6eaee;
    border-top-color: var(--gm-adcheck-accent);
    border-radius: 50%;
    animation: gm-adcheck-spin .8s linear infinite;
}

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

.gm-adcheck__results {
    display: grid;
    gap: 26px;
}

.gm-adcheck__result-top {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 24px;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gm-adcheck-border);
}

.gm-adcheck__score {
    --score: 0;
    width: 120px;
    height: 120px;
    padding: 10px;
    border-radius: 50%;
    background: conic-gradient(var(--gm-adcheck-accent) calc(var(--score) * 1%), #edf0f3 0);
}

.gm-adcheck__score-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding-top: 31px;
}

.gm-adcheck__score-inner strong {
    font-size: 34px;
    line-height: 1;
}

.gm-adcheck__score-inner span {
    margin-left: 2px;
    color: var(--gm-adcheck-muted);
    font-size: 13px;
}

.gm-adcheck__result-summary h3 {
    margin: 0 0 8px;
    font-size: 25px;
    line-height: 1.15;
}

.gm-adcheck__result-summary p {
    margin: 0;
    color: var(--gm-adcheck-muted);
    line-height: 1.6;
}

.gm-adcheck__criteria {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.gm-adcheck__criterion {
    min-width: 0;
}

.gm-adcheck__criterion-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.gm-adcheck__criterion-heading span {
    flex: 0 0 auto;
    color: var(--gm-adcheck-accent);
    font-size: 13px;
    font-weight: 800;
}

.gm-adcheck__bar {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0f3;
}

.gm-adcheck__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--gm-adcheck-accent);
}

.gm-adcheck__criterion p {
    margin: 8px 0 0;
    color: var(--gm-adcheck-muted);
    font-size: 13px;
    line-height: 1.45;
}

.gm-adcheck__section {
    padding: 20px;
    border-radius: 14px;
    background: var(--gm-adcheck-bg);
}

.gm-adcheck__section h4 {
    margin: 0 0 12px;
    font-size: 17px;
}

.gm-adcheck__section ul,
.gm-adcheck__section ol {
    margin: 0;
    padding-left: 22px;
}

.gm-adcheck__section li {
    margin: 7px 0;
    line-height: 1.5;
}

.gm-adcheck__suggestions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gm-adcheck__suggestions > div {
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--gm-adcheck-accent) 22%, white);
    border-radius: 12px;
    background: color-mix(in srgb, var(--gm-adcheck-accent) 5%, white);
}

.gm-adcheck__suggestions span,
.gm-adcheck__suggestions strong {
    display: block;
}

.gm-adcheck__suggestions span {
    margin-bottom: 5px;
    color: var(--gm-adcheck-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gm-adcheck__suggestions strong {
    font-size: 17px;
    line-height: 1.35;
}

.gm-adcheck__share {
    display: grid;
    gap: 13px;
    padding: 20px;
    border: 1px solid color-mix(in srgb, var(--gm-adcheck-accent) 24%, white);
    border-radius: 14px;
    background: color-mix(in srgb, var(--gm-adcheck-accent) 6%, white);
}

.gm-adcheck__share > div:first-child {
    display: grid;
    gap: 3px;
}

.gm-adcheck__share > div:first-child span {
    color: var(--gm-adcheck-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.gm-adcheck__share-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
}

.gm-adcheck__share-controls input,
.gm-adcheck__share-controls button,
.gm-adcheck__share-controls a {
    min-height: 42px;
    border: 1px solid #cbd2da;
    border-radius: 8px;
    font: inherit;
}

.gm-adcheck__share-controls input {
    min-width: 0;
    padding: 9px 11px;
    background: #fff;
    color: var(--gm-adcheck-text);
}

.gm-adcheck__share-controls button,
.gm-adcheck__share-controls a {
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}

.gm-adcheck__share-controls button {
    background: var(--gm-adcheck-accent);
    color: #fff;
}

.gm-adcheck__share-controls a {
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--gm-adcheck-accent);
}

.gm-adcheck-report-page {
    margin: 0;
    background: #f3f5f7;
}

.gm-adcheck-report {
    max-width: 1040px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.gm-adcheck-report__header {
    margin-bottom: 28px;
}

.gm-adcheck-report__header h1 {
    margin: 0 0 8px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
}

.gm-adcheck-report__header p {
    margin: 0;
    color: var(--gm-adcheck-muted);
}

.gm-adcheck-report__creative {
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid var(--gm-adcheck-border);
    border-radius: 20px;
    background: #e9edf1;
    text-align: center;
}

.gm-adcheck-report__creative img {
    display: block;
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    margin: 0 auto;
    box-shadow: 0 10px 32px rgba(18, 29, 40, .16);
}

.gm-adcheck-report__context {
    margin-bottom: 24px;
    padding: 22px 24px;
    border: 1px solid var(--gm-adcheck-border);
    border-radius: 14px;
    background: #fff;
}

.gm-adcheck-report__context h2 {
    margin: 0 0 8px;
    font-size: 17px;
}

.gm-adcheck-report__context p {
    margin: 0;
    color: var(--gm-adcheck-muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .gm-adcheck__grid {
        grid-template-columns: 1fr;
    }

    .gm-adcheck__panel--result {
        min-height: 0;
    }

    .gm-adcheck__empty,
    .gm-adcheck__loading {
        min-height: 380px;
    }
}

@media (max-width: 600px) {
    .gm-adcheck__panel--upload,
    .gm-adcheck__panel--result {
        padding: 18px;
        border-radius: 15px;
    }

    .gm-adcheck__dropzone,
    .gm-adcheck__preview-stage {
        min-height: 240px;
    }

    .gm-adcheck__result-top {
        grid-template-columns: 1fr;
    }

    .gm-adcheck__criteria,
    .gm-adcheck__suggestions {
        grid-template-columns: 1fr;
    }

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

    .gm-adcheck__share-controls input {
        grid-column: 1 / -1;
    }

    .gm-adcheck-report {
        padding: 32px 14px 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gm-adcheck__spinner {
        animation-duration: 1.8s;
    }

    .gm-adcheck__dropzone,
    .gm-adcheck__submit {
        transition: none;
    }
}
