.photo-guide-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 0 auto 16px;
    padding: 9px 14px;
    border: 1px solid #1769aa;
    border-radius: 6px;
    background: #fff;
    color: #0b4a86;
    font: inherit;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
    cursor: pointer;
}

.photo-guide-trigger:hover {
    background: #eef7ff;
}

.photo-guide-trigger .site-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.photo-guide-trigger:focus-visible,
.photo-guide-close:focus-visible,
.photo-guide-line:focus-visible,
.photo-guide-dismiss:focus-visible {
    outline: 3px solid #f5a623;
    outline-offset: 3px;
}

.photo-guide-dialog {
    width: min(720px, calc(100vw - 32px));
    max-width: 720px;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #18293a;
    overflow: visible;
}

.photo-guide-dialog::backdrop {
    background: rgba(7, 22, 38, 0.72);
}

.photo-guide-dialog[open] {
    animation: photo-guide-enter 160ms ease-out;
}

.photo-guide-shell {
    max-height: calc(100dvh - 32px);
    padding: 24px;
    border: 1px solid #d6e2ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(4, 34, 64, 0.22);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.photo-guide-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #d9e4ed;
}

.photo-guide-kicker {
    margin: 0 0 4px;
    color: #137c55;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
}

.photo-guide-header h2 {
    margin: 0;
    color: #083f72;
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: 0;
}

.photo-guide-close {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid #b9c9d7;
    border-radius: 50%;
    background: #f7fafc;
    color: #17334d;
    font: 700 28px/1 Arial, sans-serif;
    cursor: pointer;
}

.photo-guide-close:hover {
    background: #eaf2f8;
}

.photo-guide-lead {
    margin: 16px 0 4px;
    color: #41586c;
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
}

.photo-guide-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.photo-guide-steps li {
    display: grid;
    grid-template-columns: 28px 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 104px;
    padding: 18px 0;
    border-bottom: 1px solid #e1e9f0;
}

.photo-guide-steps li > div {
    min-width: 0;
    text-align: left;
}

.photo-guide-step-number {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0b4f8e;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.photo-guide-step-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.photo-guide-step-icon .site-icon {
    width: 24px;
    height: 24px;
}

.photo-guide-step-icon--indoor {
    background: #e6f3ff;
    color: #0b67a8;
}

.photo-guide-step-icon--outdoor {
    background: #e8f7ef;
    color: #137c55;
}

.photo-guide-step-icon--route {
    background: #fff0dd;
    color: #b45b00;
}

.photo-guide-steps h3 {
    margin: 0 0 5px;
    color: #123d63;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: 0;
}

.photo-guide-steps p {
    margin: 0;
    color: #4c6072;
    font-size: 15px;
    line-height: 1.7;
}

.photo-guide-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    padding: 13px 14px;
    border-left: 4px solid #16845a;
    background: #eef8f3;
    color: #244b3c;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
    text-align: left;
}

.photo-guide-note .site-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 2px;
}

.photo-guide-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.photo-guide-line,
.photo-guide-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 11px 16px;
    border-radius: 6px;
    font: inherit;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.photo-guide-line {
    border: 1px solid #087b45;
    background: #087b45;
    color: #fff;
}

.photo-guide-line:hover {
    background: #06693a;
    color: #fff;
}

.photo-guide-line .site-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}

.photo-guide-dismiss {
    border: 1px solid #b8c8d5;
    background: #fff;
    color: #28455d;
}

.photo-guide-dismiss:hover {
    background: #f1f5f8;
}

body.photo-guide-open {
    overflow: hidden;
}

@keyframes photo-guide-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .photo-guide-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
    }

    .photo-guide-shell {
        max-height: calc(100dvh - 20px);
        padding: 18px 16px;
    }

    .photo-guide-header h2 {
        font-size: 21px;
    }

    .photo-guide-lead {
        font-size: 15px;
    }

    .photo-guide-steps li {
        grid-template-columns: 26px 42px minmax(0, 1fr);
        gap: 9px;
        min-height: 98px;
        padding: 15px 0;
    }

    .photo-guide-step-number {
        width: 26px;
        height: 26px;
    }

    .photo-guide-step-icon {
        width: 42px;
        height: 42px;
    }

    .photo-guide-step-icon .site-icon {
        width: 21px;
        height: 21px;
    }

    .photo-guide-steps h3 {
        font-size: 16px;
    }

    .photo-guide-steps p {
        font-size: 14px;
        line-height: 1.6;
    }

    .photo-guide-actions {
        grid-template-columns: 1fr;
    }

    .photo-guide-dismiss {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .photo-guide-dialog[open] {
        animation: none;
    }
}
