:root {
    --primary: #007aff;
    --primary-dark: #075bc2;
    --navy: #17324d;
    --navy-deep: #0b2137;
    --text: #53697d;
    --muted: #7890a4;
    --surface: #ffffff;
    --surface-soft: #f3f8fc;
    --surface-blue: #eaf5fc;
    --line: rgba(23, 50, 77, 0.1);
    --shadow: 0 28px 70px rgba(30, 73, 105, 0.16);
    --shadow-soft: 0 14px 38px rgba(30, 73, 105, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    min-width: 320px;
    font-family:
        "Manrope",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--navy);
    background: var(--surface-soft);
    line-height: 1.5;
}

button,
input {
    font: inherit;
}
button {
    -webkit-tap-highlight-color: transparent;
}
.material-symbols-rounded {
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}

.container {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(23, 50, 77, 0.06);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.site-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 14px;
}
.tool-label {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.language-menu {
    position: relative;
    flex: 0 0 auto;
}
.language-button {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background 160ms ease;
}
.language-button:hover {
    border-color: rgba(0, 122, 255, 0.3);
    background: var(--surface-soft);
}
.language-button .material-symbols-rounded {
    font-size: 19px;
}
.language-arrow {
    transition: transform 160ms ease;
}
.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1000;
    min-width: 165px;
    display: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}
.language-menu.open .language-dropdown {
    display: grid;
}
.language-menu.open .language-arrow {
    transform: rotate(180deg);
}
.language-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.language-dropdown a:hover,
.language-dropdown a.active {
    background: var(--surface-blue);
    color: var(--primary);
}

.workspace {
    position: relative;
    min-height: calc(100vh - 76px);
    padding: 64px 0 72px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 90% 8%,
            rgba(152, 193, 217, 0.24),
            transparent 28%
        ),
        linear-gradient(180deg, #fff 0%, #f3f8fc 74%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.glow-one {
    width: 360px;
    height: 360px;
    right: -160px;
    top: 180px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 122, 255, 0.12);
    overflow: hidden;
}
.glow-one img {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    opacity: 0.2;
}
.glow-two {
    width: 120px;
    height: 120px;
    left: 5%;
    bottom: 7%;
    background: rgba(0, 122, 255, 0.06);
}

.builder-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 36px;
}
.builder {
    min-width: 0;
}
.intro {
    max-width: 680px;
    margin-bottom: 34px;
}
.eyebrow,
.step {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    margin: 8px 0 10px;
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}
.intro p {
    margin-bottom: 0;
    color: var(--text);
    font-size: 17px;
}
.items-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.items-heading h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.025em;
}
.items-heading span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.routine-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.routine-card {
    min-width: 0;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 30px rgba(30, 73, 105, 0.055);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        opacity 160ms ease;
}
.routine-card.selected {
    border-color: rgba(0, 122, 255, 0.36);
    background: #fff;
    box-shadow: 0 12px 34px rgba(30, 73, 105, 0.1);
}
.routine-card:not(.selected) .frequency {
    opacity: 0.45;
}
.card-top,
.select-area {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    text-align: left;
}
.select-area {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}
.item-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--surface-blue);
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
}
.item-copy {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}
.item-copy h3,
.item-copy strong {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.item-copy p,
.item-copy small {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.check {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1.5px solid rgba(83, 105, 125, 0.25);
    border-radius: 8px;
    color: transparent;
    font-size: 14px;
    font-weight: 800;
    transition:
        background 160ms ease,
        border-color 160ms ease;
}
.selected .check {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}
.required .check {
    border-color: rgba(83, 105, 125, 0.16);
    background: #eef2f6;
    color: #a6b4c0;
}

.frequency {
    margin: 16px 0 0;
    padding: 0;
    border: 0;
    transition: opacity 160ms ease;
}
.frequency legend {
    float: left;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.segments {
    float: right;
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: var(--surface-soft);
}
.segments label {
    cursor: pointer;
}
.segments input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.segments span {
    min-width: 38px;
    display: grid;
    place-items: center;
    padding: 5px 9px;
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    transition:
        background 140ms ease,
        color 140ms ease,
        box-shadow 140ms ease;
}
.segments input:checked + span {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 3px 10px rgba(30, 73, 105, 0.11);
}
.segments input:focus-visible + span,
.select-area:focus-visible,
.generate-button:focus-visible,
.secondary-button:focus-visible,
.close-button:focus-visible {
    outline: 3px solid rgba(0, 122, 255, 0.28);
    outline-offset: 3px;
}
.frequency::after {
    content: "";
    display: table;
    clear: both;
}

.summary-card {
    position: sticky;
    top: 28px;
    margin-top: 164px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(145deg, #0b2137, #173c5f);
    color: #fff;
    box-shadow: var(--shadow);
}
.summary-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 14px;
    background: rgba(143, 200, 255, 0.16);
    color: #8fc8ff;
    font-weight: 800;
}
.summary-card .step {
    color: #8fc8ff;
}
.summary-card h2 {
    margin: 5px 0 22px;
    font-size: 27px;
    letter-spacing: -0.045em;
}
.summary-card ul {
    display: grid;
    gap: 11px;
    min-height: 116px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}
.summary-card li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}
.summary-card li strong {
    color: #fff;
    font-weight: 700;
}
.generate-button,
.secondary-button {
    min-height: 52px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}
.generate-button {
    background: #fff;
    color: var(--navy-deep);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}
.generate-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}
.generate-button span {
    font-size: 20px;
}
.privacy-note {
    margin: 13px 0 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 11px;
    text-align: center;
}

.modal[hidden] {
    display: none;
}
.modal {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 33, 55, 0.58);
    backdrop-filter: blur(8px);
}
.qr-card {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 36px;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 34px 90px rgba(11, 33, 55, 0.3);
    text-align: center;
    animation: rise 220ms ease-out;
}
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
}
.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}
.success-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 15px;
    background: var(--surface-blue);
    color: var(--primary);
    font-weight: 800;
}
.qr-card h2 {
    margin: 6px 0 7px;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.045em;
}
.qr-card > p {
    margin-bottom: 22px;
    color: var(--text);
    font-size: 15px;
}
.qr-frame {
    width: 244px;
    height: 244px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}
#qr-code img,
#qr-code svg {
    display: block;
    width: 214px;
    height: 214px;
}
.qr-summary {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}
.routine-qr {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.routine-qr__text {
    margin-bottom: 14px;
}

.routine-qr__text strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 14px;
}

.routine-qr__text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

#routine-qr-code {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    border-radius: 16px;
}

#routine-qr-code img,
#routine-qr-code svg {
    display: block;
    width: 100%;
    height: 100%;
}
.download-prompt {
    margin: 0 0 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.download-prompt p {
    margin: 0 0 13px;
    color: var(--text);
    font-size: 14px;
}
.download-prompt strong {
    color: var(--navy);
}
.modal-store-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.modal-store-badges a {
    display: block;
    border-radius: 7px;
    transition: transform 160ms ease;
}
.modal-store-badges a:hover {
    transform: translateY(-2px);
}
.modal-store-badges a:focus-visible {
    outline: 3px solid rgba(0, 122, 255, 0.28);
    outline-offset: 3px;
}
.modal-store-badges img {
    display: block;
    width: auto;
    height: 42px;
}
.secondary-button {
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--navy);
    box-shadow: none;
}
body.modal-open {
    overflow: hidden;
}
.routine-seo-content {
    padding: 44px 0;
}

.routine-seo-content + .routine-seo-content {
    padding-top: 8px;
}

.routine-seo-content .container {
    max-width: 1080px;
}

.routine-seo-content .container {
    width: min(calc(100% - 40px), 1080px);
    margin-inline: auto;
}

/* Keep long-form intro text readable instead of stretching full width */
.routine-seo-content > .container > p,
.routine-seo-content > .container > .routine-steps {
    max-width: 820px;
}

.routine-seo-content h2 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.routine-seo-content p,
.routine-steps {
    color: var(--text);
    line-height: 1.7;
}

.routine-seo-content > .container > p {
    margin-bottom: 12px;
}

.routine-seo-content > .container > p:last-child {
    margin-bottom: 0;
}

.routine-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 22px;
}

.routine-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 48px;
    margin-top: 22px;
}

.routine-content-grid > div {
    min-width: 0;
}

.routine-content-grid h3 {
    margin: 0 0 5px;
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.routine-content-grid p {
    margin: 0;
    color: var(--text);
    line-height: 1.65;
}

.routine-disclaimer {
    max-width: 820px;
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    width: min(900px, calc(100% - 32px));
    padding: 20px;
    background: #fff;
    border: 1px solid rgba(61, 90, 128, 0.18);
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.14);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        visibility 180ms ease;
}
.cookie-banner.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cookie-banner__text {
    flex: 1;
}
.cookie-banner__text strong {
    display: block;
    margin-bottom: 6px;
    color: #293b52;
    font-size: 1rem;
    font-weight: 700;
}
.cookie-banner__text p {
    margin: 0;
    color: #526579;
    line-height: 1.5;
}
.cookie-banner__text a {
    color: #3d5a80;
    font-weight: 700;
    text-decoration: none;
}
.cookie-banner__text a:hover {
    text-decoration: underline;
}
.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-button {
    border: 0;
    border-radius: 12px;
    padding: 11px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.cookie-button-primary {
    background: #3d5a80;
    color: #fff;
}
.cookie-button-secondary {
    background: #eef2f6;
    color: #3d5a80;
}

@media (max-width: 940px) {
    .builder-layout {
        grid-template-columns: 1fr;
    }
    .summary-card {
        position: relative;
        top: 0;
        margin-top: 0;
    }
    .summary-card ul {
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 660px) {
    .container {
        width: min(calc(100% - 28px), 1180px);
    }
    .nav {
        min-height: 68px;
    }
    .site-logo {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
    .tool-label {
        display: none;
    }
    .workspace {
        min-height: calc(100vh - 68px);
        padding: 38px 0 40px;
    }
    h1 {
        font-size: 42px;
    }
    .intro p {
        font-size: 16px;
    }
    .items-heading span {
        display: none;
    }
    .routine-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .routine-card {
        width: 100%;
        min-width: 0;
    }

    .select-area {
        gap: 10px;
    }

    .item-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .item-copy {
        min-width: 0;
        overflow: hidden;
    }

    .item-copy strong,
    .item-copy h3 {
        font-size: 14px;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .item-copy small,
    .item-copy p {
        font-size: 11px;
        line-height: 1.35;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .check {
        width: 22px;
        height: 22px;
    }

    /* Frequency controls: stack instead of float */
    .frequency {
        margin-top: 14px;
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .frequency legend {
        float: none;
        margin: 0;
    }

    .segments {
        float: none;
        width: 100%;
        display: flex;
    }

    .segments label {
        flex: 1;
        min-width: 0;
    }

    .segments span {
        min-width: 0;
        width: 100%;
        padding: 7px 4px;
    }
    .summary-card {
        padding: 25px;
        border-radius: 24px;
    }
    .summary-card ul {
        grid-template-columns: 1fr;
    }
    .qr-card {
        padding: 32px 22px 24px;
        border-radius: 26px;
    }
    .qr-frame {
        width: 226px;
        height: 226px;
    }
    #qr-code img,
    #qr-code svg {
        width: 198px;
        height: 198px;
    }
    .modal-store-badges img {
        height: 38px;
    }
    .routine-qr {
        margin-top: 18px;
        padding-top: 18px;
    }

    #routine-qr-code {
        width: 170px;
        height: 170px;
    }

    .routine-qr__text strong {
        font-size: 15px;
    }

    .routine-qr__text span {
        display: block;
        max-width: 220px;
        margin: 0 auto;
        line-height: 1.4;
    }
    .routine-seo-content {
        padding: 30px 0;
    }

    .routine-seo-content + .routine-seo-content {
        padding-top: 0;
    }

    .routine-seo-content .container {
        width: min(calc(100% - 28px), 1080px);
    }

    .routine-seo-content h2 {
        margin-bottom: 12px;
        font-size: 23px;
        line-height: 1.2;
    }

    .routine-seo-content p,
    .routine-steps {
        font-size: 15px;
        line-height: 1.7;
    }

    .routine-steps {
        gap: 10px;
        padding-left: 20px;
    }

    .routine-content-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 18px;
    }
    .routine-disclaimer {
        width: calc(100% - 28px);
        margin: 16px auto 0;
        font-size: 11px;
        line-height: 1.55;
        text-align: left;
    }
    .cookie-banner {
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 18px;
    }
    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .cookie-banner__actions {
        width: 100%;
    }
    .cookie-button {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Printable routine MVP */
.share-button:focus-visible {
    outline: 3px solid rgba(143, 200, 255, 0.3);
    outline-offset: 3px;
}

.share-button {
    min-height: 48px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    transition:
        transform 160ms ease,
        background 160ms ease;
}
.share-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}
.share-button .material-symbols-rounded {
    font-size: 19px;
}

.app-cta {
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.app-cta p {
    margin: 0 0 13px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}
.app-cta strong {
    color: #fff;
}
.summary-store-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.summary-store-badges a {
    display: block;
    border-radius: 7px;
    transition: transform 160ms ease;
}
.summary-store-badges a:hover {
    transform: translateY(-2px);
}
.summary-store-badges img {
    display: block;
    width: auto;
    height: 34px;
}

/* Printable PDF personalization */
.pdf-details {
    margin: 0 0 30px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 30px rgba(30, 73, 105, 0.055);
}
.pdf-details-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.pdf-details-heading h2 {
    margin: 4px 0 0;
    font-size: 18px;
    letter-spacing: -0.025em;
}
.optional-note {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--surface-blue);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}
.pdf-details-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 1fr;
    gap: 12px;
}
.pdf-field {
    min-width: 0;
}
.pdf-field > span {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}
.pdf-field input {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid rgba(23, 50, 77, 0.12);
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--navy);
    font-size: 14px;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}
.pdf-field input::placeholder {
    color: #9aabba;
}
.pdf-field input:focus {
    border-color: rgba(0, 122, 255, 0.48);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

@media (max-width: 660px) {
    .pdf-details {
        padding: 18px;
    }
    .pdf-details-grid {
        grid-template-columns: 1fr;
    }
}

/* v6 metadata + intro refinements */
.intro-copy {
    white-space: nowrap;
}

.field-help {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 860px) {
    .intro-copy {
        white-space: normal;
    }
}

/* v9 copy-link feedback */
.share-button.copied {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.26);
}

.share-button.copied .share-button-icon {
    font-variation-settings:
        "FILL" 0,
        "wght" 600,
        "GRAD" 0,
        "opsz" 24;
}
