/* HMD Frontend Styles */

.hmd-btn--debug {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.35em 0.9em;
    font-size: 0.8rem;
    font-family: monospace;
    background: #fff3cd;
    color: #856404;
    border: 1px dashed #ffc107;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.85;
}

.hmd-btn--debug:hover {
    opacity: 1;
    background: #fff0b3;
}

.hmd-wrapper {
    width: min( 100%, 640px );
    max-width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;

    margin: 0 auto;
    color: #111;
    font-family: inherit;

    transition: min-height 0.25s ease;
    box-sizing: border-box;
}

.hmd-step--form {
    position: relative;
    width: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba( 17, 17, 17, 0.08 );
    box-sizing: border-box;
    overflow: visible;
}

.hmd-step--downloads {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba( 17, 17, 17, 0.08 );
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

.hmd-step--downloads h2 {
    flex: 0 0 auto;
    margin: 0 0 0.9rem;
    color: #111;
}

.hmd-step.is-hidden,
.hmd-step[hidden] {
    display: none !important;
}

.hmd-contact-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Form fields */
.hmd-contact-form .hmd-field {
    margin-bottom: 1rem;
    min-width: 0;
}

.hmd-contact-form .hmd-field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
}

.hmd-contact-form .hmd-field-row .hmd-field {
    margin-bottom: 0.75rem;
}

.hmd-contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    color: #111;
}


.hmd-contact-form .hmd-field[data-field],
.hmd-contact-form .hmd-field--submit,
.hmd-contact-form > .hmd-error {
    transform-origin: top center;
    opacity: 0;
    transform: translateY(-10px) scaleY(0.86);
    animation: hmd-card-open-down 560ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
    will-change: transform, opacity;
}

.hmd-contact-form .hmd-field[data-field="company"] { animation-delay: 0.02s; }
.hmd-contact-form .hmd-field[data-field="address"] { animation-delay: 0.08s; }
.hmd-contact-form .hmd-field[data-field="first_name"] { animation-delay: 0.14s; }
.hmd-contact-form .hmd-field[data-field="last_name"] { animation-delay: 0.2s; }
.hmd-contact-form .hmd-field[data-field="position"] { animation-delay: 0.26s; }
.hmd-contact-form .hmd-field[data-field="email"] { animation-delay: 0.32s; }
.hmd-contact-form .hmd-field[data-field="phone"] { animation-delay: 0.38s; }
.hmd-contact-form .hmd-field--submit { animation-delay: 0.44s; }
.hmd-contact-form > .hmd-error { animation-delay: 0.5s; }

@keyframes hmd-card-open-down {
    0% {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.86);
    }
    68% {
        opacity: 1;
        transform: translateY(0) scaleY(1.015);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

.hmd-contact-form input[type="text"],
.hmd-contact-form input[type="email"],
.hmd-contact-form input[type="tel"],
.hmd-contact-form select {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    color: #111;
    font: inherit;
}

.hmd-field-note {
    margin-left: 0.25rem;
    color: #666;
}

.hmd-address-picker {
    position: relative;
}

.hmd-picker {
    position: relative;
}

/* Keep address suggestions above following form fields */
.hmd-contact-form .hmd-field[data-field="address"],
.hmd-contact-form .hmd-field[data-field="country"],
.hmd-contact-form .hmd-field[data-field="phone"] {
    position: relative;
    z-index: 20;
}

.hmd-contact-form .hmd-field[data-field="address"]:focus-within,
.hmd-contact-form .hmd-field[data-field="country"]:focus-within,
.hmd-contact-form .hmd-field[data-field="phone"]:focus-within {
    z-index: 40;
}

.hmd-address-suggestions,
.hmd-picker-suggestions {
    position: absolute;
    top: calc( 100% + 4px );
    left: 0;
    right: 0;
    max-height: 170px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba( 15, 23, 42, 0.12 );
    z-index: 50;
}

.hmd-contact-form .hmd-field[data-field="country"] .hmd-picker-suggestions {
    top: auto;
    bottom: calc( 100% + 4px );
}

.hmd-address-suggestions.is-hidden,
.hmd-picker-suggestions.is-hidden {
    display: none;
}

.hmd-address-suggestion,
.hmd-picker-suggestion {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
    color: #1f2937;
    text-align: left;
    cursor: pointer;
    padding: 0.45rem 0.62rem;
    font-size: 0.82rem;
    line-height: 1.35;
}

.hmd-address-suggestion:last-child,
.hmd-picker-suggestion:last-child {
    border-bottom: 0;
}

.hmd-address-suggestion--static,
.hmd-picker-suggestion--static {
    cursor: default;
    color: #6b7280;
    background: #fff;
}

.hmd-address-suggestion--static:hover,
.hmd-address-suggestion--static:focus,
.hmd-picker-suggestion--static:hover,
.hmd-picker-suggestion--static:focus {
    background: #fff;
}

.hmd-address-suggestion:hover,
.hmd-address-suggestion:focus,
.hmd-picker-suggestion:hover,
.hmd-picker-suggestion:focus {
    background: #fff5f5;
    outline: none;
}

.hmd-phone-input-group {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.hmd-phone-prefix-wrap {
    position: relative;
    flex: 0 0 112px;
}

.hmd-phone-prefix-label,
.hmd-country-label {
    padding-right: 2rem;
}

.hmd-picker::after {
    content: '\25BE';
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.72rem;
    pointer-events: none;
}

.hmd-native-select {
    display: none !important;
}

/* Honeypot */
.hmd-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Custom form error */
.hmd-error {
    padding: 0.62rem 0.75rem;
    margin-top: 0.55rem;
    margin-bottom: 0;
    background: #ffeaea;
    border: 1px solid #e53e3e;
    border-radius: 4px;
    color: #c53030;
    font-size: 0.84rem;
}
.hmd-error.is-hidden { display: none; }

/* Field errors */
.hmd-field-error {
    margin-top: 0.22rem;
    font-size: 0.78rem;
    color: #c53030;
    min-height: 1em;
}

.hmd-field.is-invalid input[type="text"],
.hmd-field.is-invalid input[type="email"],
.hmd-field.is-invalid input[type="tel"],
.hmd-field.is-invalid select,
.hmd-field.is-invalid .iti input[type="tel"] {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.18) !important;
}

/* intl-tel-input full width */
.hmd-field .iti { width: 100%; }
.hmd-field .iti input { width: 100%; }

@media (max-width: 560px) {
    .hmd-wrapper {
        padding: 1rem 0.9rem;
    }

    .hmd-phone-input-group {
        flex-direction: column;
    }

    .hmd-phone-prefix-wrap {
        flex: 1 1 auto;
    }
}

@media (max-width: 760px) {
    .hmd-contact-form .hmd-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hmd-contact-form .hmd-field-row .hmd-field {
        margin-bottom: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hmd-contact-form .hmd-field[data-field],
    .hmd-contact-form .hmd-field--submit,
    .hmd-contact-form > .hmd-error,
    .hmd-step--downloads .hmd-material-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Buttons */
.hmd-btn {
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
}

.hmd-btn-wrap {
    flex-shrink: 0;
    padding-right: 15px;
}

.hmd-btn--submit {
    margin: 0 !important;
    max-width: 100%;
}

.hmd-btn--submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hmd-field--submit {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.2rem;
    padding-right: 1.4rem;
    box-sizing: border-box;
}

.hmd-wrapper .et_pb_button_0,
.hmd-wrapper .et_pb_button_0:hover {
    color: #ffffff !important;
    border-width: 2px !important;
    border-color: rgba(255, 255, 255, 0);
    border-radius: 8px;
    letter-spacing: 0;
    font-size: 14px;
    font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif !important;
}

.hmd-wrapper .et_pb_button_0 {
    background-color: #ff3333;
    transition: background-color 300ms ease 0ms;
}

.hmd-wrapper .et_pb_button_0_wrapper .et_pb_button_0,
.hmd-wrapper .et_pb_button_0_wrapper .et_pb_button_0:hover {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* Download list */
.hmd-materials-list {
    flex: 1 1 auto;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.hmd-material-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid #eee;
}

.hmd-material-item:last-child {
    border-bottom: none;
}

.hmd-material-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: #ff0000;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

/* Uploaded icon image */
.hmd-material-icon-img {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: block;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
}

/* Extension-specific colors */
.hmd-material-icon[data-ext="PDF"]                          { background-color: #c53030; }
.hmd-material-icon[data-ext="ZIP"],
.hmd-material-icon[data-ext="RAR"],
.hmd-material-icon[data-ext="7Z"]                          { background-color: #718096; }
.hmd-material-icon[data-ext="DOC"],
.hmd-material-icon[data-ext="DOCX"]                        { background-color: #2b6cb0; }
.hmd-material-icon[data-ext="XLS"],
.hmd-material-icon[data-ext="XLSX"]                        { background-color: #276749; }
.hmd-material-icon[data-ext="PPT"],
.hmd-material-icon[data-ext="PPTX"]                        { background-color: #c05621; }
.hmd-material-icon[data-ext="DWG"],
.hmd-material-icon[data-ext="DXF"]                         { background-color: #6b46c1; }

.hmd-material-info {
    flex: 1;
    min-width: 0;
}

.hmd-material-title {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hmd-material-meta {
    display: block;
    font-size: 0.78rem;
    color: #666666;
    margin-top: 0.15rem;
}

.hmd-no-materials {
    flex: 0 0 auto;
    color: #666666;
    font-style: italic;
}

/* Download-step intro animation */
.hmd-step--downloads .hmd-material-item {
    transform-origin: top center;
    opacity: 0;
    transform: translateY(-10px) scaleY(0.9);
    animation: hmd-card-open-down 520ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
    will-change: transform, opacity;
}

.hmd-step--downloads .hmd-material-item { animation-delay: 0.1s; }
.hmd-step--downloads .hmd-material-item:nth-child(1) { animation-delay: 0.1s; }
.hmd-step--downloads .hmd-material-item:nth-child(2) { animation-delay: 0.16s; }
.hmd-step--downloads .hmd-material-item:nth-child(3) { animation-delay: 0.22s; }
.hmd-step--downloads .hmd-material-item:nth-child(4) { animation-delay: 0.28s; }
.hmd-step--downloads .hmd-material-item:nth-child(5) { animation-delay: 0.34s; }
.hmd-step--downloads .hmd-material-item:nth-child(6) { animation-delay: 0.4s; }
.hmd-step--downloads .hmd-material-item:nth-child(7) { animation-delay: 0.46s; }
.hmd-step--downloads .hmd-material-item:nth-child(8) { animation-delay: 0.52s; }
.hmd-step--downloads .hmd-material-item:nth-child(9) { animation-delay: 0.58s; }
.hmd-step--downloads .hmd-material-item:nth-child(10) { animation-delay: 0.64s; }

/* View button — picks up Divi theme styling via et_pb_button classes; only spacing here. */
.hmd-btn--view {
    margin-right: 0.4rem;
    cursor: pointer;
}

.hmd-wrapper .hmd-btn--view:focus,
.hmd-wrapper .hmd-btn--view:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Viewer dialog */
.hmd-viewer {
    position: fixed !important;
    inset: 0;
    z-index: 2147483646;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.hmd-viewer.is-hidden {
    display: none;
}

.hmd-viewer__backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    background: rgba( 17, 17, 17, 0.72 );
}

.hmd-viewer__dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    width: min( 1440px, calc( 100vw - 4rem ) );
    max-width: calc( 100vw - 4rem );
    height: min( 88vh, 940px, 56.25vw );
    min-height: 520px;
    max-height: calc( 100vh - 4rem );
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.35 );
    overflow: hidden;
    transform: translate( -50%, -50% );
    animation: hmdViewerIn 180ms ease-out;
}

@keyframes hmdViewerIn {
    from { opacity: 0; transform: translate( -50%, calc( -50% + 10px ) ) scale( 0.98 ); }
    to   { opacity: 1; transform: translate( -50%, -50% ) scale( 1 ); }
}

.hmd-viewer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.hmd-viewer__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hmd-viewer__close-x {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    color: #666;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.hmd-viewer__close-x:hover,
.hmd-viewer__close-x:focus {
    background: #ececec;
    color: #111;
    outline: none;
}

.hmd-viewer__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 1.1rem;
    border-bottom: 1px solid #e6e6e6;
    background: #f4f4f4;
}

.hmd-viewer__toolbar[hidden] {
    display: none;
}

.hmd-viewer__toolbar-group {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hmd-viewer__tool {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: #fff;
    color: #202020;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.hmd-viewer__print-icon {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.hmd-viewer__tool:hover,
.hmd-viewer__tool:focus {
    border-color: #a8a8a8;
    background: #ededed;
    outline: none;
}

.hmd-viewer__tool:disabled {
    color: #9a9a9a;
    background: #f7f7f7;
    border-color: #dddddd;
    cursor: default;
}

.hmd-viewer__page-input-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #404040;
    font-size: 0.9rem;
    white-space: nowrap;
}

.hmd-viewer__page-input {
    width: 4.25rem;
    height: 34px;
    padding: 0 0.45rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-size: 0.9rem;
    text-align: center;
}

.hmd-viewer__page-input:focus {
    border-color: #707070;
    outline: none;
    box-shadow: 0 0 0 2px rgba( 0, 0, 0, 0.08 );
}

.hmd-viewer__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    background: #222;
    overflow: hidden;
}

.hmd-viewer__sidebar {
    flex: 0 0 150px;
    width: 150px;
    padding: 0.85rem 0.65rem;
    background: #2b2b2b;
    border-right: 1px solid rgba( 255, 255, 255, 0.08 );
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hmd-viewer__sidebar::-webkit-scrollbar {
    display: none;
}

.hmd-viewer__sidebar[hidden] {
    display: none;
}

.hmd-viewer__page-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.hmd-viewer__page-link {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f1f1f1;
    cursor: pointer;
    text-align: left;
}

.hmd-viewer__page-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 0.72;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #fff;
    color: #202020;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.22 );
    overflow: hidden;
    pointer-events: none;
}

.hmd-viewer__page-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 180deg, #f8f8f8 0%, #eeeeee 100% );
    opacity: 1;
    transition: opacity 180ms ease;
}

.hmd-viewer__page-placeholder span {
    width: 24px;
    height: 24px;
    border: 3px solid #dddddd;
    border-top-color: #ff3333;
    border-radius: 50%;
    animation: hmdViewerSpin 800ms linear infinite;
}

.hmd-viewer__page-thumb.is-loaded .hmd-viewer__page-placeholder {
    opacity: 0;
    pointer-events: none;
}

.hmd-viewer__page-preview {
    width: 76%;
    height: 78%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6%;
    padding: 10%;
    border-radius: 3px;
    background: linear-gradient( 180deg, #ffffff 0%, #f6f7f9 100% );
    box-shadow: inset 0 0 0 1px #eceff3;
    box-sizing: border-box;
}

.hmd-viewer__page-preview span {
    display: block;
    height: 5%;
    border-radius: 999px;
    background: #d5dbe3;
}

.hmd-viewer__page-preview span:nth-child(1) {
    width: 56%;
    height: 12%;
    margin-bottom: 6%;
    background: #c7ced8;
}

.hmd-viewer__page-preview span:nth-child(3) {
    width: 86%;
}

.hmd-viewer__page-preview span:nth-child(4) {
    width: 72%;
}

.hmd-viewer__page-preview span:nth-child(5) {
    width: 64%;
}

.hmd-viewer__page-label {
    display: block;
    margin-top: 0.35rem;
    color: #d7d7d7;
    font-size: 0.75rem;
    text-align: center;
}

.hmd-viewer__page-link:hover .hmd-viewer__page-thumb,
.hmd-viewer__page-link:focus .hmd-viewer__page-thumb,
.hmd-viewer__page-link.is-current .hmd-viewer__page-thumb {
    border-color: #0f75bc;
}

.hmd-viewer__page-link:focus {
    outline: none;
}

.hmd-viewer__content {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.hmd-viewer__pdf-pages {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: #222;
    scrollbar-width: none;
    -ms-overflow-style: none;
    opacity: 1;
    transition: opacity 220ms ease;
}

.hmd-viewer.is-loading-pdf .hmd-viewer__pdf-pages {
    opacity: 0;
}

.hmd-viewer__pdf-pages::-webkit-scrollbar {
    display: none;
}

.hmd-viewer__pdf-page {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: #fff;
    overflow: hidden;
}

.hmd-viewer__pdf-page::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 22px;
    background: #fff;
    pointer-events: none;
}

.hmd-viewer__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    pointer-events: none;
}

.hmd-viewer__loader {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba( 255, 255, 255, 0.88 );
    color: #202020;
    font-size: 0.9rem;
    font-weight: 600;
}

.hmd-viewer.is-loading-pdf .hmd-viewer__loader {
    display: flex;
}

.hmd-viewer__loader-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #dddddd;
    border-top-color: #ff3333;
    border-radius: 50%;
    animation: hmdViewerSpin 800ms linear infinite;
}

@keyframes hmdViewerSpin {
    to { transform: rotate( 360deg ); }
}

.hmd-viewer__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.hmd-viewer__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.8rem 1.1rem;
    border-top: 1px solid #eee;
    background: #fafafa;
}

body.hmd-viewer-open {
    overflow: hidden;
}

@media ( max-width: 640px ) {
    .hmd-viewer {
        padding: 0;
    }
    .hmd-viewer__dialog {
        top: 0;
        left: 0;
        transform: none;
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        min-height: 0;
        max-height: 100%;
        border-radius: 0;
    }
    .hmd-viewer__toolbar {
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.55rem;
    }
    .hmd-viewer__sidebar {
        flex: 0 0 94px;
        width: 94px;
        padding: 0.55rem 0.45rem;
    }
    .hmd-viewer__page-label {
        font-size: 0.68rem;
    }
    .hmd-viewer__tool {
        min-width: 32px;
        padding: 0 0.55rem;
    }
    .hmd-viewer__page-input {
        width: 3.6rem;
    }
}
