@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --font-primary: Roboto, Helvetica, Arial, sans-serif;
    --text: #37352f;
    --text-light: #667085;
    --background: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f5f8fc;
    --surface-pink: #fff3f7;
    --surface-green: #eef6f2;
    --surface-border: #d7e0ea;
    --shadow: rgba(15, 23, 42, 0.08) 0 10px 24px -14px;
    --pink: #ff3867;
    --pink-dark: #e12f5d;
    --green: #699769;
    --green-dark: #2a514c;
    --cool-surface: #eef3f8;
    --cool-surface-strong: #e6edf5;
    --cool-panel: #f8fbff;
    --cool-border: #c8d4e1;
    --cool-border-strong: #b9c8d8;
    --cool-hover: #e3ebf5;
    --cool-muted: #7a8699;
    --cool-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    --container: 1240px;
    --radius: 8px;
    --radius-lg: 18px;
    --navbar-height: 67px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

[hidden] {
    display: none !important;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    box-shadow: var(--shadow);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1rem;
    min-height: var(--navbar-height);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-image {
    display: block;
    width: 74px;
    height: 42px;
    object-fit: contain;
}

.brand-image-footer {
    width: 50px;
    height: 36px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
}

.site-nav a,
.footer-links a,
.footer-social a {
    color: var(--text);
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active,
.footer-links a:hover,
.footer-social a:hover {
    text-decoration: underline;
}

.nav-lang {
    display: inline-flex;
    align-items: center;
}

.header-locale-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--cool-muted);
}

.header-locale-switcher summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    list-style: none;
    line-height: 1;
    vertical-align: middle;
    border-radius: 999px;
    color: var(--cool-muted);
    transition: background-color 0.2s, color 0.2s;
}

.header-locale-switcher summary::-webkit-details-marker {
    display: none;
}

.header-locale-switcher summary:hover,
.header-locale-switcher[open] summary {
    background: #f3f6fa;
    color: var(--text);
}

.header-locale-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
}

.header-locale-icon svg {
    width: 100%;
    height: 100%;
}

.header-locale-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    min-width: 64px;
    display: grid;
    gap: 0.2rem;
    padding: 0.4rem;
    border: 1px solid var(--cool-border);
    border-radius: 12px;
    background: #fbfcff;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

.header-locale-panel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    color: var(--cool-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.header-locale-panel a:hover,
.header-locale-panel a[aria-current="page"] {
    background: #f3f6fa;
    color: var(--text);
}

.header-auth {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-account {
    position: relative;
}

.header-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ff3867;
    transition: color 0.2s, filter 0.2s, transform 0.05s;
}

.header-account-button:hover {
    color: #d93f6e;
}

.header-account-button:active {
    transform: translateY(1px);
}

.header-account-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    transform: translateY(2px);
}

.header-account-icon svg {
    width: 100%;
    height: 100%;
}

.header-account-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    width: 340px;
    max-width: min(340px, calc(100vw - 2rem));
    display: grid;
    gap: 0.6rem;
    padding: 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--cool-border);
    background: #fbfcff;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

.header-account-email {
    margin: 0;
    color: #2d2a24;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-account-copy {
    margin: 0;
    color: var(--cool-muted);
    font-size: 0.93rem;
}

.header-account-copy strong {
    color: #2d2a24;
    font-weight: 700;
}

.header-account-actions {
    display: flex;
    gap: 0.55rem;
    padding-top: 0.15rem;
}

.header-account-actions .header-auth-link {
    flex: 1 1 auto;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.88rem;
}

.header-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--cool-border);
    font-size: 0.93rem;
    font-weight: 500;
    transition: background-color 0.2s, border-color 0.2s, filter 0.2s, transform 0.05s;
}

.header-auth-link:hover {
    filter: brightness(1.02);
}

.header-auth-link:active {
    transform: translateY(1px);
}

.header-auth-link-secondary {
    background: var(--cool-panel);
    color: var(--text);
}

.header-auth-link-primary {
    background: #fff0f4;
    border-color: #e3b7c5;
    color: #8b1e3f;
}

.contact-link,
.button,
.ghost-button,
.mt-chip,
.mt-ghost-action,
.mt-swap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--cool-border);
    background: var(--cool-panel);
    color: var(--text);
    transition: background-color 0.2s, border-color 0.2s, filter 0.2s, transform 0.05s;
}

.contact-link:hover,
.button:hover,
.ghost-button:hover,
.mt-chip:hover,
.mt-ghost-action:hover,
.mt-swap:hover {
    filter: brightness(1.02);
}

.button:active,
.ghost-button:active,
.mt-chip:active,
.mt-ghost-action:active,
.mt-swap:active {
    transform: translateY(1px);
}

.button-primary {
    border-color: #d93f6e;
    background: #ff3867;
    color: #fff;
}

.main-content {
    padding: 2.25rem 0 4rem;
}

.portal-hero,
.tool-page {
    padding: 0.5rem 0 2rem;
}

.portal-shell,
.translator-shell,
.tool-layout {
    display: grid;
    gap: 2rem;
    min-width: 0;
}

.eyebrow {
    margin: 0 0 0.65rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

.hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 320px;
    gap: 32px;
    align-items: center;
    padding: 2rem 0 1rem;
}

.portal-copy h1,
.tool-intro h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.18;
}

.hero-support,
.tool-note,
.mt-bottom-note {
    margin: 1rem 0 0;
    color: var(--text-light);
}

.hero-support {
    max-width: 41rem;
    font-size: 1.02rem;
}

.infra-note {
    margin: 0.7rem 0 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.hero-visual {
    display: grid;
    place-items: center;
    min-height: 290px;
    background: #f6f1f1;
    border-radius: var(--radius-lg);
}

.hero-visual img {
    width: 84%;
    max-width: 250px;
    height: auto;
}

.workflow-list {
    display: grid;
    border-top: 1px solid var(--surface-border);
}

.workflow-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--surface-border);
}

.workflow-row:hover .workflow-main h2 {
    text-decoration: underline;
}

.workflow-index {
    color: var(--green);
    font-size: 0.95rem;
    font-weight: 500;
}

.workflow-main h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
}

.workflow-main p {
    margin: 0.35rem 0 0;
    color: var(--text-light);
}

.workflow-meta {
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 500;
}

.client-strip {
    padding-top: 1.1rem;
    padding-right: 0.35rem;
}

.site-tool-layout > .client-strip,
.ask-laura-layout > .client-strip {
    grid-column: 2;
}

.client-strip-heading {
    margin: 0 0 0.9rem;
    color: var(--cool-muted);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem 2rem;
    justify-content: space-between;
    padding: 0.2rem 0 0;
}

.client-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.client-logos img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 42px;
    height: auto;
    opacity: 1;
    filter: none;
}

.client-logo-gdp {
    width: 118px;
}

.client-logo-houthoff {
    width: 92px;
}

.client-logo-innovam {
    width: 112px;
}

.client-logo-kyocera {
    width: 94px;
}

.client-logo-learnforce {
    width: 110px;
}

.client-logo-learning-pool {
    width: 82px;
}

.client-logo-purple-media {
    width: 102px;
}

.client-logo-schuttelaar {
    width: 104px;
}

.tool-layout {
    grid-template-columns: 1fr;
}

.tool-intro {
    max-width: 42rem;
    min-width: 0;
}

.site-tool-page,
.ask-laura-page {
    padding-top: 0;
}

.site-tool-layout,
.ask-laura-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.site-tool-intro,
.ask-laura-intro {
    position: sticky;
    top: calc(var(--navbar-height) + 18px);
    min-width: 0;
}

.tool-form {
    max-width: 900px;
    display: grid;
    gap: 1rem;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
}

.tool-form label {
    display: grid;
    gap: 0.45rem;
}

.tool-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tool-form-span-2 {
    grid-column: 1 / -1;
}

.tool-form label span,
.document-dropzone small,
.document-list-head,
.panel-meta {
    color: var(--text-light);
    font-size: 0.92rem;
}

.tool-form input,
.tool-form select,
.tool-form textarea,
.translation-editor,
.mt-select select {
    width: 100%;
    min-height: 42px;
    padding: 12px 14px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    outline: none;
}

.tool-form select,
.mt-select select {
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.2;
}

.tool-form input:focus,
.tool-form select:focus,
.tool-form textarea:focus,
.translation-editor:focus,
.mt-select select:focus {
    border-color: #6d8fbd;
    box-shadow: 0 0 0 3px rgba(109, 143, 189, 0.16);
}

.tool-form input.is-invalid,
.tool-form select.is-invalid,
.tool-form textarea.is-invalid {
    border-color: #d94b73;
    box-shadow: 0 0 0 3px rgba(217, 75, 115, 0.12);
}

.tool-form textarea {
    resize: vertical;
    min-height: 160px;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-form-card,
.ask-laura-form {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0.9rem;
    padding: 1rem 1.1rem;
    background: var(--cool-surface-strong);
    border: 1px solid var(--cool-border);
    box-shadow: var(--cool-shadow);
}

.site-form-card label,
.ask-laura-form label {
    gap: 0.3rem;
}

.site-form-card label span,
.ask-laura-form label span {
    color: #425466;
    font-size: 0.82rem;
    font-weight: 500;
}

.site-form-card input,
.site-form-card select,
.site-form-card textarea,
.ask-laura-form input,
.ask-laura-form textarea {
    padding: 9px 11px;
    border-color: var(--cool-border-strong);
    background: #fbfdff;
}

.site-form-card input:-webkit-autofill,
.site-form-card select:-webkit-autofill,
.site-form-card textarea:-webkit-autofill,
.ask-laura-form input:-webkit-autofill,
.ask-laura-form textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px #fbfdff inset;
    box-shadow: 0 0 0 1000px #fbfdff inset;
    caret-color: var(--text);
}

.site-form-card textarea,
.ask-laura-form textarea {
    min-height: 92px;
}

.site-form-card .button,
.ask-laura-form .button {
    min-height: 40px;
}

.quote-upload-field {
    display: grid;
    gap: 0.3rem;
}

.quote-upload-field > span {
    color: #425466;
    font-size: 0.82rem;
    font-weight: 500;
}

.quote-upload-picker {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem;
    border: 1px dashed var(--cool-border-strong);
    border-radius: 10px;
    background: #fbfdff;
    cursor: pointer;
}

.quote-upload-picker.is-dragover {
    border-color: #86a7c8;
    background: #f3f8fe;
}

.quote-upload-picker.is-invalid {
    border-color: #d94b73;
    box-shadow: 0 0 0 3px rgba(217, 75, 115, 0.12);
}

.quote-upload-picker input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.quote-upload-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--cool-border);
    border-radius: 8px;
    background: var(--cool-panel);
    color: #37352f;
    font-size: 0.9rem;
    font-weight: 500;
}

.quote-upload-meta {
    color: var(--cool-muted);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.quote-file-subtle-list {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.35rem;
}

.quote-file-inline {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.quote-file-inline-name {
    color: #52657d;
    font-size: 0.84rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.quote-file-remove {
    border: 0;
    background: transparent;
    color: #5f7190;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    white-space: nowrap;
}

.quote-file-remove:hover,
.quote-file-remove:focus-visible {
    color: #284566;
    outline: none;
}

select[data-choice-picker] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

body.use-native-selects select[data-choice-picker] {
    position: static;
    width: 100%;
    height: auto;
    opacity: 1;
    pointer-events: auto;
}

body.use-native-selects .choice-picker {
    display: none;
}

.choice-picker {
    position: relative;
}

.choice-picker-trigger {
    width: 100%;
    min-height: 42px;
    padding: 9px 34px 9px 11px;
    border: 1px solid var(--cool-border-strong);
    border-radius: 8px;
    background: #fbfdff;
    color: #37352f;
    font: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.choice-picker-trigger::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--cool-muted);
    border-bottom: 1.5px solid var(--cool-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.choice-picker-trigger:hover,
.choice-picker-trigger:focus-visible {
    border-color: #6d8fbd;
    box-shadow: 0 0 0 3px rgba(109, 143, 189, 0.16);
    outline: none;
}

.choice-picker.is-invalid .choice-picker-trigger {
    border-color: #d94b73;
    box-shadow: 0 0 0 3px rgba(217, 75, 115, 0.12);
}

.choice-picker-label {
    display: block;
}

.choice-picker-panel {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    z-index: 12;
    width: 100%;
    padding: 0.35rem;
    border: 1px solid var(--cool-border);
    border-radius: 10px;
    background: #fbfdff;
    box-shadow: var(--cool-shadow);
}

.choice-picker-option {
    display: block;
    width: 100%;
    padding: 0.52rem 0.65rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #37352f;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.choice-picker-option:hover,
.choice-picker-option:focus-visible,
.choice-picker-option.is-selected {
    background: var(--cool-hover);
    outline: none;
}

.quote-progress {
    display: grid;
    gap: 0.45rem;
}

.quote-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: #d8e2ee;
    overflow: hidden;
}

.quote-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: #699769;
    transition: width 0.18s ease;
}

.quote-progress-copy {
    margin: 0;
    color: var(--cool-muted);
    font-size: 0.88rem;
}

.quote-inline-message {
    padding: 0.55rem 0.7rem;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fbfdff;
    color: #5f7190;
    font-size: 0.88rem;
    line-height: 1.35;
    white-space: pre-line;
}

.quote-inline-message.is-success {
    border-color: #d8e6d8;
    color: var(--green-dark);
}

.quote-inline-message.is-error {
    border-color: #ffd5df;
    color: #8b1e3f;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.auth-card {
    align-content: start;
}

.auth-card-single {
    max-width: 700px;
}

.auth-card-compact {
    margin-bottom: 1rem;
}

.auth-panel {
    max-width: 700px;
    gap: 1rem 1.1rem;
    padding: 1.2rem 1.3rem;
}

.auth-inline-form {
    display: grid;
    grid-column: 1 / -1;
    gap: 1.1rem;
    width: 100%;
}

.auth-panel-meta {
    max-width: 700px;
}

.auth-panel-footer {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5ebf2;
}

.auth-title {
    margin: 0;
    color: #2d2a24;
    font-size: 1.1rem;
    font-weight: 700;
    grid-column: 1 / -1;
}

.auth-copy {
    margin: 0;
    color: #2d2a24;
    grid-column: 1 / -1;
}

.auth-inline-message {
    grid-column: 1 / -1;
    padding: 0.55rem 0.7rem;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fbfdff;
    color: #5f7190;
    font-size: 0.88rem;
    line-height: 1.35;
}

.auth-inline-message.is-success {
    border-color: #d8e6d8;
    color: var(--green-dark);
}

.auth-inline-message.is-error {
    border-color: #ffd5df;
    color: #8b1e3f;
}

.auth-link {
    color: #8b1e3f;
    font-weight: 500;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.auth-footnote {
    margin: 0;
    color: var(--cool-muted);
    font-size: 0.9rem;
}

.auth-remember-field {
    display: inline-flex !important;
    align-items: center;
    gap: 0.7rem;
    color: #425466;
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-remember-field input {
    width: 1rem;
    height: 1rem;
    min-height: 1rem;
    margin: 0;
    padding: 0;
}

.auth-remember-field span {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.ask-laura-date-field {
    position: relative;
}

.ask-laura-schedule {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: start;
}

.ask-laura-date-slot {
    min-width: 0;
}

.ask-laura-time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.custom-date-picker {
    position: relative;
}

.custom-date-picker input {
    padding-right: 88px;
}

.custom-date-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--cool-border-strong);
    border-radius: 6px;
    background: var(--cool-panel);
    color: #425466;
    font-size: 0.8rem;
    cursor: pointer;
}

.custom-date-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 25;
    width: 280px;
    padding: 0.8rem;
    border: 1px solid var(--cool-border);
    border-radius: 10px;
    background: #fbfdff;
    box-shadow: var(--cool-shadow);
}

.custom-date-header,
.custom-date-weekdays,
.custom-date-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    align-items: center;
}

.custom-date-header {
    grid-template-columns: 34px 1fr 34px;
    margin-bottom: 0.55rem;
}

.custom-date-header strong {
    text-align: center;
    font-size: 0.92rem;
    color: #37352f;
}

.custom-date-nav {
    min-height: 34px;
    border: 1px solid var(--cool-border);
    border-radius: 8px;
    background: var(--cool-panel);
    color: #37352f;
    cursor: pointer;
}

.custom-date-weekdays {
    margin-bottom: 0.35rem;
}

.custom-date-weekdays span {
    text-align: center;
    color: var(--cool-muted);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
}

.custom-date-day {
    min-height: 34px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    background: #fff;
    color: #37352f;
    cursor: pointer;
}

.custom-date-day.is-muted {
    color: #97a3b6;
    background: #f3f7fb;
}

.custom-date-day.is-selected {
    border-color: #86a7c8;
    background: #dbe8f6;
    color: #1f3b57;
}

.custom-date-day.is-today {
    border-color: #699769;
}

.site-tool-intro .eyebrow,
.ask-laura-intro .eyebrow {
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
}

.site-tool-intro h1,
.ask-laura-intro h1 {
    font-size: 2.4rem;
    line-height: 1.05;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
    word-break: normal;
}

.site-tool-intro .tool-note,
.ask-laura-intro .tool-note {
    margin-top: 0.5rem;
    color: var(--cool-muted);
    font-size: 0.95rem;
}

.mt-surface {
    display: grid;
    gap: 1.2rem;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    align-self: start;
    min-width: 0;
    background: var(--cool-surface-strong);
    border: 1px solid var(--cool-border);
    border-radius: 18px;
    box-shadow: var(--cool-shadow);
}

.mt-mode-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content)) minmax(0, 1fr);
    gap: 0.9rem;
    align-items: stretch;
    min-width: 0;
}

.mt-mode-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--cool-border);
    border-radius: 12px;
    background: var(--cool-panel);
    color: var(--text);
    cursor: pointer;
    min-width: 0;
    min-height: 96px;
    align-self: stretch;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.mt-mode-tab img {
    width: 28px;
    height: 38px;
    object-fit: contain;
    flex: 0 0 auto;
}

.mt-mode-tab.is-active {
    background: #fbfdff;
    border-color: #6d8fbd;
    box-shadow: 0 0 0 3px rgba(109, 143, 189, 0.16);
}

.mt-mode-copy {
    display: grid;
    gap: 0.1rem;
    text-align: left;
}

.mt-mode-copy strong {
    font-size: 1rem;
    font-weight: 500;
}

.mt-mode-copy small {
    color: var(--text-light);
}

.mt-capacity {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-self: end;
    min-width: 0;
    flex-wrap: wrap;
}

.mt-status-item {
    display: grid;
    gap: 0.08rem;
    min-width: 82px;
}

.mt-capacity-label,
.mt-capacity-value,
.capacity-track {
    font-size: 0.64rem;
}

.capacity-track {
    width: 54px;
    height: 2px;
    border-radius: 999px;
    background: #d8e2ee;
    overflow: hidden;
}

.capacity-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #6d8fbd;
}

.capacity-fill-stable {
    background: #6d8fbd;
}

.mt-capacity-value strong {
    color: #4f729f;
    font-weight: 600;
}

.mt-panels {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    min-width: 0;
}

.mt-swap {
    position: absolute;
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    z-index: 2;
    min-height: 27px;
    min-width: 27px;
    padding: 0;
    border-radius: 7px;
    background: #fbfdff;
    color: var(--pink);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
}

.mt-swap span {
    position: relative;
    top: -1px;
}

.mt-swap:hover {
    transform: translateX(-50%);
}

.mt-panel {
    min-height: 500px;
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    background: var(--cool-panel);
    border: 1px solid var(--cool-border);
    border-radius: 14px;
}

.mt-panel-head {
    display: grid;
    grid-template-columns: minmax(180px, 220px) auto;
    align-items: start;
    justify-content: flex-start;
    gap: 0.85rem;
    padding: 0.8rem 0.8rem 0.65rem;
}

.mt-select {
    position: relative;
    display: block;
    min-width: 0;
    width: 100%;
}

.mt-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--cool-muted);
    border-bottom: 1.5px solid var(--cool-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.mt-select select[data-language-picker] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.mt-select select {
    min-width: 180px;
    min-height: 40px;
    border: 1px solid var(--cool-border);
    background: #fbfdff;
    padding: 9px 34px 9px 13px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #2f2b24;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 1px 2px rgba(55, 53, 47, 0.04);
}

.mt-picker {
    position: relative;
    min-width: 0;
}

.mt-picker-trigger {
    width: 100%;
    min-width: 180px;
    min-height: 40px;
    border: 1px solid var(--cool-border);
    background: #fbfdff;
    padding: 9px 34px 9px 13px;
    border-radius: 12px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #2f2b24;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 1px 2px rgba(55, 53, 47, 0.04);
    cursor: pointer;
}

.mt-picker-trigger-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mt-picker-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    z-index: 12;
    width: min(560px, calc(100vw - 3rem));
    max-height: 380px;
    padding: 0.8rem;
    overflow: auto;
    border: 1px solid var(--cool-border);
    border-radius: 14px;
    background: #fbfdff;
    box-shadow: var(--cool-shadow);
}

.mt-panel-target .mt-picker-panel {
    left: auto;
    right: 0;
}

.mt-picker-search-wrap {
    position: sticky;
    top: -0.8rem;
    z-index: 1;
    margin: -0.8rem -0.8rem 0.75rem;
    padding: 0.8rem;
    background: linear-gradient(to bottom, #fbfdff 75%, rgba(251, 253, 255, 0.92));
}

.mt-picker-auto {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0.75rem;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--cool-border);
    border-radius: 12px;
    background: #fbfdff;
    color: var(--text);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, filter 0.2s, transform 0.05s;
}

.mt-picker-auto:hover,
.mt-picker-auto:focus-visible,
.mt-picker-auto.is-selected {
    border-color: var(--cool-border-strong);
    background: var(--cool-hover);
    filter: brightness(1.02);
    outline: none;
}

.mt-picker-auto:active {
    transform: translateY(1px);
}

.mt-picker-search {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--cool-border);
    background: #ffffff;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    font: inherit;
    color: #2f2b24;
}

.mt-picker-section {
    display: grid;
    gap: 0.55rem;
}

.mt-picker-section + .mt-picker-section {
    margin-top: 1rem;
}

.mt-picker-section-title {
    color: var(--cool-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mt-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
}

.mt-picker-option {
    display: grid;
    gap: 0.05rem;
    width: 100%;
    padding: 0.42rem 0.55rem;
    border: 1px solid #d7e0ea;
    border-radius: 9px;
    background: #ffffff;
    color: #2f2b24;
    font: inherit;
    font-size: 0.84rem;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
}

.mt-picker-option small {
    color: var(--cool-muted);
    font-size: 0.67rem;
    line-height: 1.1;
}

.mt-picker-option:hover,
.mt-picker-option:focus-visible,
.mt-picker-option.is-selected {
    border-color: var(--cool-border-strong);
    background: var(--cool-hover);
    outline: none;
}

.mt-picker-empty {
    padding: 0.35rem 0.15rem 0;
    color: var(--cool-muted);
    font-size: 0.86rem;
}

.mt-toggle-stack {
    display: grid;
    gap: 0.35rem;
    margin-left: 0;
    min-width: 0;
    max-width: 100%;
    justify-items: start;
    align-content: start;
    padding-top: 0.1rem;
}

.mt-switch-row {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    max-width: 100%;
}

.mt-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    color: #425466;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: normal;
    cursor: pointer;
}

.mt-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mt-switch input:disabled + .mt-switch-track {
    opacity: 0.55;
}

.mt-switch input:disabled ~ .mt-switch-label {
    opacity: 0.55;
}

.mt-switch-track {
    position: relative;
    width: 30px;
    height: 18px;
    flex: 0 0 auto;
    border: 1px solid var(--cool-border-strong);
    border-radius: 999px;
    background: #dbe5f0;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.mt-switch-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(55, 53, 47, 0.14);
    transition: transform 0.18s ease;
}

.mt-switch input:checked + .mt-switch-track {
    background: #ffccd9;
    border-color: #d93f6e;
}

.mt-switch input:checked + .mt-switch-track::after {
    transform: translateX(12px);
}

.mt-switch-label {
    line-height: 1.1;
    white-space: normal;
}

.mt-help-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8a8173;
    font-size: 0.54rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: super;
    transform: translateY(-5px);
    opacity: 0.82;
    text-decoration: none;
    cursor: help;
    appearance: none;
}

.mt-help-tip:focus-visible {
    outline: 2px solid rgba(217, 63, 110, 0.28);
    outline-offset: 2px;
    border-radius: 999px;
}

.mt-help-tip-overlay {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 2147483647;
    box-sizing: border-box;
    width: min(280px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--cool-border);
    border-radius: 10px;
    background: #fbfdff;
    box-shadow: var(--cool-shadow);
    color: #425466;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: pre-line;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 4px, 0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
}

.mt-help-tip-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.mt-ghost-action {
    min-height: 36px;
    padding: 8px 12px;
    color: var(--text);
}

.mt-chip-group {
    display: flex;
    gap: 0.5rem;
}

.mt-chip {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #fbfdff;
}

.mt-chip[disabled],
.mt-ghost-action[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
}

.mt-chip.is-active {
    border-color: #d93f6e;
    background: #f9d8e2;
}

.mt-panel-body {
    padding: 0 0.8rem 0.8rem;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
}

.mt-text-stage {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
}

.mt-panel-target .mt-panel-body {
    position: relative;
}

.translation-editor,
.translation-result {
    height: 100%;
    min-height: 360px;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: #fbfdff;
    border: 1px solid var(--cool-border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.translation-editor {
    resize: none;
    padding-bottom: 3rem;
}

.translation-result {
    white-space: pre-wrap;
    color: var(--text);
    resize: none;
    overflow: auto;
}

.mt-result-actions {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

.mt-copy-button {
    display: inline-grid;
    place-items: center;
    align-items: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cool-muted);
    cursor: pointer;
    pointer-events: auto;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.mt-copy-button svg {
    width: 1.05rem;
    height: 1.05rem;
}

.mt-copy-button:hover,
.mt-copy-button:focus-visible {
    color: #4f729f;
    outline: none;
}

.translation-editor:focus,
.translation-editor:focus-visible,
.translation-result:focus,
.translation-result:focus-visible {
    border-color: #6d8fbd;
    box-shadow: 0 0 0 3px rgba(109, 143, 189, 0.16);
    outline: none;
}

.mt-copy-button[disabled] {
    opacity: 0.42;
    cursor: not-allowed;
}

.mt-document-result {
    display: grid;
    align-content: start;
    gap: 1rem;
    min-height: 360px;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: #fbfdff;
    border: 1px solid var(--cool-border);
}

.mt-document-summary {
    display: grid;
    gap: 0.3rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #dce5ef;
}

.mt-document-summary strong {
    color: #2f2b24;
    font-size: 1rem;
    font-weight: 600;
}

.mt-document-summary p {
    margin: 0;
    color: var(--cool-muted);
    font-size: 0.9rem;
}

[data-mt-mode="documents"] .mt-panel-head {
    gap: 1rem;
    padding: 0.95rem 0.95rem 0.8rem;
}

[data-mt-mode="documents"] .mt-panel-target .mt-panel-head {
    align-items: center;
}

[data-mt-mode="documents"] .mt-panel-target .mt-toggle-stack {
    padding-top: 0;
}

[data-mt-mode="documents"] .mt-panel-body {
    padding: 0 0.95rem 0.95rem;
}

[data-mt-mode="documents"] .document-upload-shell {
    gap: 0.9rem;
}

[data-mt-mode="documents"] .document-dropzone {
    min-height: 154px;
    padding: 1.55rem 1.5rem;
}

[data-mt-mode="documents"] .document-upload-notes {
    gap: 0.28rem;
    padding: 0 0.2rem;
}

[data-mt-mode="documents"] .document-list-wrap {
    margin-top: 1rem;
}

[data-mt-mode="documents"] .document-list-head {
    margin-bottom: 0.6rem;
}

[data-mt-mode="documents"] .mt-document-result {
    gap: 1.15rem;
    padding: 1.15rem 1.2rem;
}

[data-mt-mode="documents"] .mt-document-summary {
    gap: 0.45rem;
    padding-bottom: 1rem;
}

.mt-char-count {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    margin: 0;
    color: var(--cool-muted);
    font-size: 0.76rem;
    line-height: 1;
    pointer-events: none;
}

.translation-meta {
    margin: 0.9rem 0 0;
    color: var(--text-light);
    font-size: 0.92rem;
}

.download-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--cool-border);
    border-radius: 12px;
    background: var(--cool-panel);
}

.download-item span {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.download-item strong {
    flex: 0 0 auto;
    color: var(--pink-dark);
}

.mt-document-stage[hidden] {
    display: none;
}

.document-dropzone {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    min-height: 138px;
    place-items: center;
    text-align: center;
    border: 1px dashed var(--cool-border-strong);
    border-radius: 12px;
    background: #fbfdff;
    overflow: hidden;
    cursor: pointer;
    padding: 1.3rem 1.4rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.document-dropzone.is-dragover {
    border-color: #86a7c8;
    background: #eaf2fb;
    box-shadow: 0 16px 34px rgba(85, 120, 162, 0.14);
    transform: translateY(-1px);
}

.document-dropzone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.document-dropzone-copy {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    width: min(100%, 31rem);
    margin: 0 auto;
}

.document-dropzone-copy strong {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.35;
    text-wrap: balance;
}

.document-dropzone-copy small {
    display: block;
    max-width: 40ch;
    margin: 0;
    color: var(--cool-muted);
    font-size: 0.82rem;
    line-height: 1.55;
    text-wrap: pretty;
}

.document-dropzone-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 12px 16px;
    border: 1px solid #d93f6e;
    border-radius: 8px;
    background: #ff3867;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

body.use-native-selects .mt-select::after {
    display: none;
}

body.use-native-selects .mt-select select[data-language-picker] {
    position: static;
    width: 100%;
    height: auto;
    opacity: 1;
    pointer-events: auto;
}

body.use-native-selects .mt-picker {
    display: none;
}

.document-upload-shell {
    display: grid;
    gap: 0.65rem;
}

.document-upload-notes {
    display: grid;
    gap: 0.18rem;
    padding: 0 0.15rem;
}

.document-upload-notes p {
    margin: 0;
    color: var(--cool-muted);
    font-size: 0.78rem;
}

.document-note-strong {
    color: #37352f;
    font-weight: 600;
}

.document-progress {
    display: grid;
    gap: 0.35rem;
}

.document-progress-bar {
    height: 6px;
    border-radius: 999px;
    background: #d8e2ee;
    overflow: hidden;
}

.document-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: #6d8fbd;
    transition: width 0.2s ease;
}

.document-progress-copy {
    margin: 0;
    color: var(--cool-muted);
    font-size: 0.84rem;
}

.document-list-wrap {
    margin-top: 0.7rem;
}

.document-list-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.file-list {
    display: grid;
    gap: 0.7rem;
}

.file-item,
.file-empty {
    padding: 11px 14px;
    border-radius: 10px;
    background: var(--surface-alt);
    border: 1px solid var(--surface-border);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.file-name {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.file-meta-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-width: 0;
    gap: 0.75rem;
}

.file-size {
    color: var(--text-light);
    font-size: 0.86rem;
}

.file-remove {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--cool-border);
    border-radius: 8px;
    background: #fbfdff;
    color: #506072;
    cursor: pointer;
}

.mt-surface[data-mt-mode='documents'] [data-text-stage] {
    display: none;
}

.mt-surface[data-mt-mode='documents'] [data-document-stage] {
    display: block;
}

.mt-surface[data-mt-mode='documents'] [data-target-editor] {
    display: none;
}

.mt-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mt-bottom-note {
    margin: 0;
    font-size: 0.82rem;
}

.mt-feedback {
    margin: 0.2rem 0 0;
    color: var(--text-light);
    font-size: 0.84rem;
}

.mt-feedback[data-tone='success'] {
    color: var(--green-dark);
}

.mt-feedback[data-tone='error'] {
    color: #8b1e3f;
}

.action-stack {
    display: flex;
    gap: 0.75rem;
}

.client-strip-mt {
    padding-top: 1.1rem;
}

.site-footer {
    padding: 1.35rem 0 2.6rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.2rem 2.2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--surface-border);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.6rem;
    line-height: 1.5;
    font-size: 0.92rem;
}

.footer-social {
    justify-self: end;
}

@media (max-width: 1080px) {
    .mt-mode-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mt-capacity {
        grid-column: 1 / -1;
        justify-self: start;
        flex-wrap: wrap;
    }
}

@media (max-width: 980px) {
    .header-inner,
    .footer-inner,
    .hero-stage,
    .workflow-row,
    .mt-panels,
    .mt-bottom-row {
        grid-template-columns: 1fr;
    }

    .site-nav,
    .footer-links {
        justify-content: flex-start;
    }

    .footer-social {
        justify-self: start;
    }

    .mt-swap {
        position: static;
        transform: none;
        justify-self: center;
        margin: -2px 0;
    }

    .mt-swap:hover {
        transform: none;
    }

    .site-tool-layout,
    .ask-laura-layout {
        grid-template-columns: 1fr;
    }

    .site-tool-intro,
    .ask-laura-intro {
        position: static;
    }
}

@media (max-width: 720px) {
    .header-inner {
        padding: 1rem 0;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 0.9rem 1rem;
        justify-content: flex-start;
    }

    .portal-copy h1,
    .tool-intro h1 {
        font-size: 2.35rem;
    }

    .workflow-row,
    .mt-mode-row,
    .mt-capacity {
        grid-template-columns: 1fr;
    }

    .mt-chip-group,
    .action-stack {
        flex-wrap: wrap;
    }

    .tool-form,
    .mt-surface {
        padding: 1rem;
    }

    .tool-form-grid {
        grid-template-columns: 1fr;
    }

    .ask-laura-form {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .ask-laura-schedule {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .ask-laura-time-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .site-form-card,
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .quote-upload-picker {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .quote-upload-trigger {
        width: 100%;
    }

    .quote-upload-meta {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .mt-panel-head {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .mt-picker-panel {
        width: min(100%, calc(100vw - 2.25rem));
    }

    .mt-picker-grid {
        grid-template-columns: 1fr;
    }

    .mt-toggle-stack {
        margin-left: 0;
    }

    .tool-form-span-2 {
        grid-column: auto;
    }

    .custom-date-panel {
        width: 100%;
    }

    .mt-panel {
        min-height: auto;
    }

    .mt-mode-tab {
        width: 100%;
        justify-content: flex-start;
    }

    .mt-panel-head {
        padding: 0.75rem 0.75rem 0.55rem;
    }

    .mt-select,
    .mt-picker-trigger {
        min-width: 0;
    }

    .mt-panel-body {
        padding: 0 0.75rem 0.75rem;
    }

    .mt-select,
    .mt-select select {
        width: 100%;
    }

    .translation-editor,
    .translation-result,
    .mt-document-result {
        min-height: 250px;
        padding: 0.9rem;
    }

    .document-dropzone {
        min-height: 120px;
        padding: 0.85rem;
    }

    .document-dropzone-copy strong {
        font-size: 0.92rem;
    }

    .document-dropzone-copy small,
    .document-upload-notes p,
    .document-progress-copy,
    .mt-feedback,
    .mt-bottom-note {
        font-size: 0.78rem;
    }

    .document-list-head,
    .file-item,
    .file-meta-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .file-remove {
        min-height: 32px;
    }

    .mt-bottom-row {
        align-items: stretch;
    }

    .contact-link,
    .header-auth,
    .button,
    .ghost-button {
        width: 100%;
    }

    .header-account {
        width: 100%;
    }

    .header-account-button {
        width: 28px;
    }

    .header-account-panel {
        left: 0;
        right: auto;
        width: min(340px, calc(100vw - 2rem));
        max-width: min(340px, calc(100vw - 2rem));
    }
}
