:root {
    --blue: #001489;
    --red: #dd1717;
    --ink: #1b1b1b;
    --muted: #4d4d4d;
    --line: #d5d8e0;
    --paper: #ffffff;
    --page: #e7ebf3;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    font-family: "Segoe UI", Tahoma, sans-serif;
    line-height: 1.55;
    background-color: var(--page);
}

body.bg-tile {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
        url("../images/background.png");
    background-repeat: repeat, repeat;
    background-attachment: fixed, fixed;
}

body.bg-cover {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.74)),
        url("../images/background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

a { color: var(--red); }
a:hover { text-decoration: none; }

.titlebar {
    padding: 1rem 0;
    background: transparent;
    color: var(--blue);
}

.titlebar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0.9rem 1.6rem;
    background: #fff;
    color: var(--blue);
    box-shadow: 0 8px 24px rgba(0, 20, 60, 0.08);
}

.brand {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    line-height: 0;
}

.tagline {
    margin: 0.55rem auto 0;
    max-width: 38rem;
    color: var(--blue);
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.logo-link img {
    display: block;
    height: 64px;
    width: auto;
    max-width: 100%;
}

.titlebar.wide-logo .titlebar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1.25rem;
    align-items: end;
}

.titlebar.wide-logo .brand { display: contents; }

.titlebar.wide-logo .logo-link {
    display: block;
    grid-column: 1 / -1;
}

.titlebar.wide-logo .logo-link img {
    height: auto;
    max-height: 64px;
    margin-left: auto;
    margin-right: auto;
}

.titlebar.wide-logo .tagline,
.titlebar.wide-logo .today {
    margin-top: 0.55rem;
}

.titlebar.wide-logo .tagline {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
}

.today {
    margin: 0;
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 1rem;
    font-weight: 600;
    text-align: right;
}

.admin-body .titlebar { text-align: center; }
.admin-body .titlebar-inner { flex-wrap: wrap; justify-content: center; }
.admin-body .logo-link {
    width: 100%;
    justify-content: center;
}
.admin-body .today {
    flex: 1 0 100%;
    width: 100%;
    text-align: center;
}
.admin-body .titlebar.wide-logo .today {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
}

.menu {
    background: var(--blue);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
    margin: 0 auto;
    padding: 0.35rem 1rem;
    width: min(1100px, 100%);
    list-style: none;
}

.menu a {
    display: inline-block;
    padding: 0.55rem 0.85rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.menu a:hover,
.menu a.active {
    background: var(--red);
    color: #fff;
}

.logout { margin: 0; }
.menu .logout button {
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: transparent;
    border: 0;
    padding: 0.55rem 0.85rem;
    cursor: pointer;
}
.menu .logout button:hover { background: var(--red); color: #fff; }

main {
    flex: 1;
    width: min(1100px, calc(100% - 2rem));
    margin: 1.5rem auto 2rem;
}

.panel {
    background: var(--paper);
    padding: 1.5rem 1.6rem 1.8rem;
    box-shadow: 0 8px 24px rgba(0, 20, 60, 0.08);
}

h1, h2 { line-height: 1.25; color: var(--blue); }
h1 { margin-top: 0; }

.page-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 0 1rem;
}

.certificates { margin-top: 1.5rem; }
.certificate-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1.4rem 2rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
.certificate-logos li {
    display: flex;
    width: 150px;
    text-align: center;
}
.certificate-logos a,
.certificate-logos li:not(:has(a)) {
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
}
.certificate-logos a {
    width: 100%;
    color: inherit;
    text-decoration: none;
}
.certificate-logos a:hover,
.certificate-logos a:focus-visible { color: var(--red); }
.certificate-logos img {
    display: block;
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
}
.certificate-logos span {
    display: block;
    margin-top: 0.45rem;
    font-weight: 700;
    line-height: 1.3;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.product {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    padding: 0.9rem;
    background: #fff;
}

.product img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    margin-bottom: 0.7rem;
    background: #f3f4f7;
}

.product h2 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.product p { margin: 0 0 0.7rem; }
.product-pdfs,
.application-pdfs { margin: 0 0 0.7rem; padding-left: 0; list-style: none; }
.product-pdfs li,
.application-pdfs li { margin: 0.15rem 0; }
.pdf-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; }

.more-details {
    display: inline-block;
    margin-top: auto;
    align-self: center;
    background: var(--blue);
    color: #fff;
    border: 0;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
}
.more-details:hover,
.more-details:focus-visible {
    background: var(--red);
    color: #fff;
}

.details {
    width: min(640px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border: 0;
    padding: 1.3rem 1.4rem 1.5rem;
    color: var(--ink);
}
.details::backdrop {
    background: rgba(0, 20, 60, 0.45);
}
.details-close {
    float: right;
    background: var(--blue);
    color: #fff;
    border: 0;
    padding: 0.35rem 0.7rem;
    font-weight: 700;
    cursor: pointer;
}
.details-close:hover,
.details-close:focus-visible {
    background: var(--red);
}
.details > h2 { margin: 0 2.5rem 0.9rem 0; }
.details-picture {
    display: grid;
    place-items: center;
    height: 220px;
    margin: 0 0 1rem;
    background: #f3f4f7;
    color: var(--muted);
    border: 1px solid var(--line);
    clear: both;
}
.details-picture[hidden] { display: none; }
.details-picture img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}
#product-details {
    width: min(760px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
}
#product-details .details-picture {
    height: auto;
}
#product-details .details-picture img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(45vh, 420px);
    object-fit: contain;
}
.details-copy { margin: 0 0 0.8rem; }
.details-copy[hidden] { display: none; }
.details-copy h1 { font-size: 1.8rem; margin: 0.6rem 0 0.35rem; }
.details-copy h2 { font-size: 1.4rem; margin: 0.55rem 0 0.3rem; }
.details-copy h3 { font-size: 1.15rem; margin: 0.45rem 0 0.25rem; color: var(--blue); }
.details-copy p { margin: 0.35rem 0; }
.details-copy ul,
.details-copy ol { margin: 0.35rem 0 0.6rem; padding-left: 1.3rem; }
.wysiwyg-field { display: grid; gap: 0.3rem; }
.wysiwyg-field > p { margin: 0; font-weight: 400; }
.details-pdfs { margin: 0; padding-left: 0; list-style: none; }
.details-pdfs[hidden] { display: none; }
.product-pdfs li,
.application-pdfs li,
.details-pdfs li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}
.product-pdfs li::before,
.application-pdfs li::before,
.details-pdfs li::before,
.pdf-row a::before {
    content: "";
    flex: 0 0 1.15rem;
    width: 1.15rem;
    height: 1.4rem;
    margin-top: 0.12rem;
    background: url("../images/pdf64x64.png") center / contain no-repeat;
}
.pdf-row a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.pdf-row a::before { margin-top: 0; }

.button,
button,
.menu .logout button {
    font-family: inherit;
}

.button,
button[type="submit"] {
    display: inline-block;
    background: var(--red);
    color: #fff;
    border: 0;
    padding: 0.6rem 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary,
button.secondary {
    background: var(--blue);
}

.what3words { margin: 0.85rem 0 0; }
.what3words a {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}
.what3words a:hover,
.what3words a:focus-visible { color: var(--red); }
.what3words img {
    display: block;
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
}
.what3words a > span { display: grid; line-height: 1.25; }
.what3words .w3w-address { color: #e11f26; }

form.stack { display: grid; gap: 0.8rem; max-width: 640px; }
.contact-split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.8fr);
    gap: 1.6rem 2rem;
    align-items: start;
    margin-top: 1.2rem;
}
.contact-form form.stack { max-width: none; }
.contact-details {
    background: #f3f5f9;
    border: 1px solid var(--line);
    padding: 1.1rem 1.15rem 1.25rem;
}
.contact-details h2 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.contact-details p { margin: 0.35rem 0; }
.contact-details .button { margin-top: 0.7rem; }
.recaptcha-placeholder { width: 304px; max-width: 100%; height: auto; }
.grecaptcha-badge { visibility: hidden; }
.recaptcha-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 36rem;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--muted);
}
.recaptcha-brand img { width: 40px; height: 40px; flex: 0 0 auto; }
.recaptcha-brand p { margin: 0; }
.recaptcha-brand a { color: var(--blue); }
label { display: grid; gap: 0.3rem; font-weight: 600; }
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="file"],
textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #b7bdcc;
    font: inherit;
    font-weight: 400;
}
textarea { min-height: 180px; resize: vertical; }

.notice {
    padding: 0.75rem 0.9rem;
    margin: 0 0 1rem;
    background: #e8f6ee;
    border-left: 4px solid #1d7a3a;
}
.notice.error {
    background: #fdecec;
    border-left-color: var(--red);
}
.notice ul { margin: 0; padding-left: 1.1rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.editor-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1rem; }
.editor-tabs a {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.editor-tabs a:hover,
.editor-tabs a.active { background: var(--red); color: #fff; }

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.4rem 0 0;
    align-items: flex-end;
}
.settings-tabs a {
    display: inline-block;
    min-width: 8.5rem;
    padding: 0.7rem 1.3rem 0.75rem;
    background: #5b6b7c;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 0.55rem 0.55rem 0 0;
}
.settings-tabs a:hover { color: #fff; text-decoration: none; }
.settings-tabs a.active {
    background: #8ea4c0;
    position: relative;
    z-index: 1;
}
.settings-tabs a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.55rem;
    height: 0.55rem;
    background: #8ea4c0;
}
.settings-sheet {
    background: #8ea4c0;
    color: #fff;
    padding: 1.3rem 1.25rem 1.4rem;
    border-radius: 0.55rem;
}
.settings-sheet.sheet-settings { border-top-left-radius: 0; }
.settings-sheet form.stack { max-width: none; }
.settings-sheet label,
.settings-sheet p { color: #fff; }
.settings-sheet input,
.settings-sheet textarea {
    background: #fff;
    color: var(--ink);
}
.settings-sheet .wysiwyg-area,
.settings-sheet .wysiwyg-area p,
.settings-sheet .wysiwyg-area li {
    color: var(--ink);
}
.wysiwyg { position: relative; }
.wysiwyg-bar { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.45rem; }
.wysiwyg-bar button {
    background: var(--blue);
    color: #fff;
    border: 0;
    padding: 0.35rem 0.65rem;
    font-weight: 700;
    cursor: pointer;
}
.wysiwyg-bar button:hover,
.wysiwyg-bar button:focus-visible { background: var(--red); color: #fff; }
.wysiwyg-bar .wysiwyg-colour {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--blue);
    color: #fff;
    padding: 0.2rem 0.45rem 0.2rem 0.65rem;
    font-weight: 700;
}
.wysiwyg-bar .wysiwyg-colour input[type="color"] {
    width: 1.7rem;
    height: 1.35rem;
    padding: 0;
    border: 1px solid #fff;
    background: #fff;
    cursor: pointer;
}
.wysiwyg-bar button.colour-black { background: #000; }
.wysiwyg-bar button.colour-blue { background: #001489; }
.wysiwyg-bar button.colour-red { background: #dd1717; }
.wysiwyg-bar button.colour-black:hover,
.wysiwyg-bar button.colour-black:focus-visible { background: #222; }
.wysiwyg-bar button.colour-blue:hover,
.wysiwyg-bar button.colour-blue:focus-visible { background: #001eaa; }
.wysiwyg-bar button.colour-red:hover,
.wysiwyg-bar button.colour-red:focus-visible { background: #c41212; }
.wysiwyg-area h1 { font-size: 1.8rem; margin: 0.6rem 0 0.35rem; }
.wysiwyg-area h2 { font-size: 1.4rem; margin: 0.55rem 0 0.3rem; }
.wysiwyg-area h3 { font-size: 1.15rem; margin: 0.45rem 0 0.25rem; color: var(--blue); }
.wysiwyg-area {
    min-height: 220px;
    padding: 0.7rem 0.75rem;
    border: 1px solid #b7bdcc;
    background: #fff;
}
.wysiwyg-area:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.wysiwyg-source {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
table.list { width: 100%; border-collapse: collapse; }
table.list th,
table.list td { text-align: left; padding: 0.65rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.audit-range { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: end; margin: 0 0 1rem; }
.audit-range label { margin: 0; }
.audit-wrap { overflow-x: auto; }
.audit-values { white-space: pre-wrap; word-break: break-word; max-width: 26rem; max-height: 14rem; overflow: auto; }
.pager { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-top: 1rem; }
.pager a,
.pager span { display: inline-block; padding: 0.35rem 0.65rem; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; }
.pager a:hover,
.pager span.current { background: var(--red); }
.pager span.gap { background: transparent; color: var(--ink); }
.check { font-weight: 400; }

.hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-footer {
    background: var(--blue);
    color: #fff;
    margin-top: auto;
}
.footer-inner {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.1rem 0 1.4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
}
.footer-name { font-weight: 700; margin-bottom: 0.2rem; }
.footer-copy p { margin: 0.2rem 0; }
.footer-copy a { color: #fff; }
.footer-copy h1,
.footer-copy h2,
.footer-copy h3 { color: #fff; margin: 0.35rem 0; line-height: 1.25; }
.site-footer p { margin: 0.2rem 0; }
.footer-aside { justify-self: end; text-align: right; }
.sister { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.sister a { color: #fff; }
.social { display: flex; justify-content: flex-end; gap: 0.7rem; margin-top: 0.9rem; }
.social-icon { display: inline-flex; color: #fff; }
.social-icon svg { width: 26px; height: 26px; fill: currentColor; }
a.social-icon { text-decoration: none; }
a.social-icon:hover,
a.social-icon:focus-visible { color: #fff; }

.social-row {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
}
.social-row label { display: block; margin: 0; }
.trash {
    display: inline-flex;
    background: transparent;
    border: 0;
    color: var(--blue);
    padding: 0.3rem;
    cursor: pointer;
}
.trash:hover,
.trash:focus-visible { color: var(--red); }
.trash svg { width: 22px; height: 22px; fill: currentColor; }
.edit-icon {
    display: inline-flex;
    color: var(--blue);
    padding: 0.3rem;
    text-decoration: none;
}
.edit-icon:hover,
.edit-icon:focus-visible { color: var(--red); }
.edit-icon svg { width: 22px; height: 22px; fill: currentColor; }
.certificate-thumb {
    display: block;
    max-width: 72px;
    max-height: 72px;
    width: auto;
    height: auto;
}
.certificate-link { max-width: 16rem; overflow-wrap: anywhere; }
.certificate-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
}
.certificate-actions form { margin: 0; }
button.move { padding: 0.35rem 0.55rem; font-size: 0.85rem; }
button.move:disabled { opacity: 0.45; cursor: default; }
table.list td.actions-cell:has(.certificate-actions) { white-space: normal; }
.row-actions { display: flex; justify-content: flex-end; gap: 0.15rem; }
table.list td.actions-cell,
table.list th.actions-cell { text-align: right; width: 1%; white-space: nowrap; vertical-align: middle; }
.password-rules { margin: 0; padding-left: 1.2rem; font-weight: 400; }
@media (max-width: 700px) {
    .social-row { grid-template-columns: 1fr auto; }
    .social-row label { grid-column: 1 / -1; }
}

.cookie {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    background: var(--blue);
    color: #fff;
}
.cookie p { margin: 0; max-width: 70ch; }
.cookie a { color: #fff; }

.admin-body { background: var(--page); }
.warnings { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.warning {
    margin: 0;
    padding: 0.7rem 0.85rem;
    background: #fff6e8;
    border-left: 4px solid #b26a00;
}

.confirm {
    width: min(440px, calc(100% - 2rem));
    border: 0;
    padding: 1.3rem 1.4rem 1.2rem;
    color: var(--ink);
}
.confirm::backdrop { background: rgba(0, 20, 60, 0.45); }
.confirm h2 { margin: 0 0 0.6rem; }
.confirm p { margin: 0 0 1rem; }

.copy h1 { font-size: 1.8rem; margin: 0.6rem 0 0.35rem; }
.copy h2 { font-size: 1.4rem; margin: 0.55rem 0 0.3rem; }
.copy h3 { font-size: 1.15rem; margin: 0.45rem 0 0.25rem; color: var(--blue); }
.copy ul,
.copy ol { margin: 0.35rem 0 0.6rem; padding-left: 1.3rem; }

.app-carousel {
    overflow-x: auto;
    margin: 1.2rem 0 0.2rem;
}
.app-track {
    display: flex;
    width: max-content;
}
.app-carousel.is-running {
    overflow: hidden;
}
.app-carousel.is-running .app-track {
    animation: app-scroll var(--app-duration, 40s) linear infinite;
}
.app-carousel:hover .app-track,
.app-carousel:focus-within .app-track,
.app-carousel.is-paused .app-track {
    animation-play-state: paused;
}
.app-set {
    display: flex;
    gap: 1rem;
    padding-right: 1rem;
}
.app-slide {
    position: relative;
    flex: 0 0 auto;
    border: 0;
    padding: 0;
    background: #f3f4f7;
    cursor: zoom-in;
}
.app-slide img {
    display: block;
    height: 220px;
    width: auto;
    max-width: 420px;
    object-fit: cover;
}
.app-tip {
    position: absolute;
    left: 50%;
    bottom: 0.55rem;
    transform: translateX(-50%);
    width: max-content;
    max-width: min(280px, calc(100% - 0.8rem));
    padding: 0.3rem 0.55rem;
    background: rgba(0, 20, 60, 0.9);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.3;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}
.app-slide:hover .app-tip,
.app-slide:focus-visible .app-tip {
    opacity: 1;
}
@keyframes app-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.application-view {
    width: min(960px, calc(100% - 2rem));
}
.application-view .details-picture {
    height: auto;
    min-height: 0;
    background: transparent;
    border: 0;
}
.application-view .details-picture img {
    max-width: 100%;
    max-height: min(70vh, 720px);
    width: auto;
    height: auto;
}
.application-caption {
    margin: 0.2rem 0 0;
    font-weight: 700;
    text-align: center;
}
.application-caption[hidden] { display: none; }
.app-admin-images { display: grid; gap: 0.8rem; }
.app-admin-image {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.8rem 1rem;
    align-items: center;
    border: 1px solid var(--line);
    padding: 0.7rem;
    background: #fff;
}
.app-admin-image img {
    display: block;
    width: 160px;
    height: 110px;
    object-fit: cover;
    background: #f3f4f7;
}
.app-admin-image p { margin: 0.7rem 0 0; }

@media (prefers-reduced-motion: reduce) {
    .app-carousel.is-running { overflow-x: auto; }
    .app-carousel .app-track { animation: none; }
    .app-set[aria-hidden="true"] { display: none; }
}

@media (max-width: 700px) {
    .titlebar-inner { align-items: flex-start; flex-direction: column; }
    .logo-link { max-width: 100%; }
    .logo-link img { height: auto; max-height: 64px; max-width: 100%; }
    .today { text-align: left; }
    .cookie { align-items: stretch; }
    .footer-grid,
    .contact-split { grid-template-columns: 1fr; }
    .footer-aside, .social { justify-self: start; text-align: left; justify-content: flex-start; }
    .app-admin-image { grid-template-columns: 1fr; }
    .app-slide img { height: 160px; }
}

.dialog-shade {
    position: fixed;
    inset: 0;
    background: rgba(0, 20, 60, 0.45);
    z-index: 20;
}
dialog.confirm[open] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 21;
    max-height: calc(100% - 2rem);
    overflow: auto;
}
.authenticator-qr {
    width: 236px;
    height: 236px;
    margin: 0 0 1rem;
    padding: 8px;
    background: #fff;
    border: 1px solid #d5dbe3;
}
.authenticator-qr img,
.authenticator-qr canvas,
.authenticator-qr table { display: block; }
.secret-key {
    font-family: Consolas, "Courier New", monospace;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
}
.recovery-codes {
    columns: 2;
    max-width: 28rem;
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    font-family: Consolas, "Courier New", monospace;
}
.row-actions:has(.button) {
    flex-wrap: wrap;
    gap: 0.35rem;
}
.row-actions .button {
    margin: 0;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
}
table.list td.actions-cell:has(.button) { white-space: normal; }
dialog.confirm form {
    display: block;
    width: 100%;
    margin: 0 0 0.9rem;
}
dialog.confirm form.stack { display: grid; }
dialog.confirm .actions { margin: 0; }
dialog.confirm.send-qr { width: min(28rem, calc(100vw - 2rem)); }
