:root {
    --twq-navy: #163b5c;
    --twq-blue: #1f67a5;
    --twq-blue-dark: #144a78;
    --twq-cyan: #1f9aae;
    --twq-gold: #d59b2d;
    --twq-pale: #f3f7fa;
    --twq-border: #d6dee5;
    --twq-text: #202830;
    --twq-muted: #607080;
    --twq-danger: #b42318;
    --twq-success: #147d49;
    --twq-radius: 16px;
    --twq-shadow: 0 18px 50px rgba(16, 49, 75, .11);
}

.twq-app,
.twq-view-wrap {
    color: var(--twq-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.twq-app {
    box-sizing: border-box;
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(12px, 2vw, 24px);
}

.twq-intro {
    margin-bottom: 28px;
}

.twq-hero-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 5vw, 52px);
    border-radius: 24px;
    background: linear-gradient(135deg, #0e3555 0%, #195e88 62%, #1f9aae 100%);
    box-shadow: var(--twq-shadow);
    color: #fff;
}
.twq-hero-card::after {
    position: absolute;
    right: -90px;
    top: -130px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    content: "";
}
.twq-hero-copy { position: relative; z-index: 1; max-width: 760px; }
.twq-hero-card .twq-eyebrow { color: #bcecf3; }
.twq-hero-card h2 { color: #fff; max-width: 760px; }
.twq-hero-card .twq-lead { color: #fff; }
.twq-lead { margin: 0; max-width: 720px; font-size: clamp(16px, 2vw, 19px); line-height: 1.8; }
.twq-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.twq-flow li { padding: 13px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(255,255,255,.1); }
.twq-flow b, .twq-flow span { display: block; }
.twq-flow b { font-size: 15px; color: #fff; }
.twq-flow span { margin-top: 2px; color: #d9edf6; font-size: 12px; }
.twq-hero-card .twq-notice { position: relative; z-index: 1; border-left-color: var(--twq-gold); border-radius: 12px; background: rgba(255,255,255,.95); color: var(--twq-text); }

.twq-intro h2 {
    margin: 3px 0 12px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.3;
    color: var(--twq-navy);
}
.twq-intro.twq-hero-card h2 { color: #fff; }

.twq-eyebrow {
    margin: 0;
    color: var(--twq-blue);
    font-weight: 800;
    letter-spacing: .04em;
}

.twq-notice {
    margin-top: 18px;
    padding: 16px 18px;
    border-left: 5px solid var(--twq-blue);
    background: #eef6fc;
}

.twq-notice p { margin: 4px 0 0; }

.twq-form,
.twq-order-panel {
    border: 1px solid var(--twq-border);
    border-radius: var(--twq-radius);
    background: #fff;
    box-shadow: var(--twq-shadow);
    overflow: hidden;
}

.twq-section {
    padding: clamp(22px, 4vw, 36px);
    border-bottom: 1px solid var(--twq-border);
}

.twq-section:last-of-type { border-bottom: 0; }

.twq-section h3 {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 20px;
    color: var(--twq-navy);
    font-size: clamp(19px, 2.5vw, 23px);
}

.twq-section h3 > span {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--twq-navy);
    color: #fff;
    font-size: 15px;
}

.twq-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}
.twq-section-heading h3 { margin: 0; }

.twq-grid {
    display: grid;
    gap: 18px;
}
.twq-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.twq-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.twq-field-wide { grid-column: 1 / -1; }

.twq-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
.twq-field > span { font-weight: 700; }
.twq-field em {
    margin-left: 5px;
    color: var(--twq-danger);
    font-size: 12px;
    font-style: normal;
}
.twq-field small,
.twq-help,
.twq-privacy {
    color: var(--twq-muted);
    font-size: 13px;
    line-height: 1.55;
}

.twq-field input,
.twq-field textarea,
.twq-field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #aab9c5;
    border-radius: 10px;
    background: #fff;
    color: var(--twq-text);
    font: inherit;
}
.twq-field textarea { min-height: 90px; resize: vertical; }
#twq-form [hidden],
.twq-view-wrap [hidden] { display: none !important; }
.twq-field input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 3px 0 0; flex: 0 0 auto; }
.twq-payment-check { display: flex; align-items: flex-start; gap: 8px; line-height: 1.6; margin: 10px 0; }
#twq-third-party-details > .twq-field { margin: 14px 0; }
.twq-field input:focus,
.twq-field textarea:focus,
.twq-field select:focus {
    border-color: var(--twq-blue);
    outline: 3px solid rgba(31, 103, 165, .13);
}

.twq-radio-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.twq-radio-cards label { cursor: pointer; }
.twq-radio-cards input { position: absolute; opacity: 0; pointer-events: none; }
.twq-radio-cards span {
    display: flex;
    min-height: 74px;
    flex-direction: column;
    justify-content: center;
    padding: 14px 16px;
    border: 2px solid var(--twq-border);
    border-radius: 12px;
    background: #fff;
    transition: .15s ease;
}
.twq-radio-cards strong { color: var(--twq-navy); font-size: 17px; }
.twq-radio-cards small { color: var(--twq-muted); }
.twq-radio-cards input:checked + span {
    border-color: var(--twq-blue);
    background: #eef7ff;
    box-shadow: inset 0 0 0 1px var(--twq-blue);
}
.twq-radio-cards input:focus-visible + span { outline: 3px solid rgba(31,154,174,.25); outline-offset: 2px; }

.twq-items { display: grid; gap: 16px; }
.twq-item {
    padding: 20px;
    border: 1px solid var(--twq-border);
    border-radius: 8px;
    background: var(--twq-pale);
}
.twq-item-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    color: var(--twq-navy);
}
.twq-remove-item {
    padding: 2px 7px;
    border: 0;
    background: transparent;
    color: var(--twq-danger);
    cursor: pointer;
    text-decoration: underline;
}
.twq-money-input {
    display: flex;
    align-items: stretch;
}
.twq-money-input > span {
    display: grid;
    min-width: 40px;
    place-items: center;
    border: 1px solid #aab9c5;
    border-right: 0;
    border-radius: 5px 0 0 5px;
    background: #e9eef2;
    font-weight: 700;
}
.twq-money-input input { border-radius: 0 5px 5px 0; }

.twq-button {
    display: inline-flex;
    box-sizing: border-box;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none !important;
    cursor: pointer;
}
.twq-button-primary { background: var(--twq-blue); color: #fff !important; }
.twq-button-primary:hover { background: var(--twq-blue-dark); }
.twq-button-secondary { border-color: var(--twq-blue); background: #fff; color: var(--twq-blue); }
.twq-button:disabled { cursor: not-allowed; opacity: .55; }
.twq-submit {
    display: flex;
    width: calc(100% - 56px);
    min-height: 58px;
    margin: 0 28px 8px;
    font-size: 18px;
}
.twq-privacy { margin: 0 28px 26px; text-align: center; }

.twq-order-final-warning {
    margin: 20px 0;
    padding: 16px 18px;
    border: 2px solid #e0a63a;
    border-radius: 12px;
    background: #fff8e8;
    color: #5f3d00;
}
.twq-order-final-warning strong { display: block; font-size: 17px; }
.twq-order-final-warning p { margin: 5px 0 0; line-height: 1.7; }

/* /web-estimate/ only: replace the legacy Lightning chrome without touching other pages. */
.twq-web-estimate-page .siteHeader,
.twq-web-estimate-page .page-header,
.twq-web-estimate-page .breadSection,
.twq-web-estimate-page .siteFooter,
.twq-web-estimate-page .vk-mobile-nav-menu-btn,
.twq-web-estimate-page .vk-mobile-nav { display: none !important; }
.twq-web-estimate-page .siteContent { padding: 0 !important; background: #f3f7fa; }
.twq-web-estimate-page .siteContent > .container,
.twq-web-estimate-page .siteContent .mainSection,
.twq-web-estimate-page .entry-body {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.twq-web-estimate-page .siteContent .sideSection { display: none !important; }
.twq-web-estimate-page .siteContent > .container > .row { display: block; margin: 0 !important; }
.twq-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 18px;
    padding: 14px 18px;
    border: 1px solid var(--twq-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(16,49,75,.08);
}
.twq-page-header .custom-logo-link { display: block; line-height: 0; }
.twq-page-header .custom-logo { width: auto; max-width: 220px; max-height: 54px; }
.twq-brand-wordmark { display: flex; flex-direction: column; color: var(--twq-navy); text-decoration: none !important; }
.twq-brand-wordmark strong { font-size: 25px; letter-spacing: .12em; }
.twq-brand-wordmark span { color: var(--twq-muted); font-size: 11px; letter-spacing: .04em; }
.twq-page-header nav { display: flex; flex-wrap: wrap; gap: 18px; }
.twq-page-header nav a { color: var(--twq-navy); font-weight: 700; text-decoration: none; }
.twq-feature-request-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 28px 0;
    padding: clamp(22px,4vw,34px);
    border: 1px solid #b9d7df;
    border-radius: var(--twq-radius);
    background: linear-gradient(135deg,#fff 0%,#edf8fa 100%);
    box-shadow: var(--twq-shadow);
}
.twq-feature-request-card h2 { margin: 4px 0 8px; color: var(--twq-navy); font-size: clamp(21px,3vw,27px); }
.twq-feature-request-card p { margin: 0; line-height: 1.7; }
.twq-feature-request-card .twq-button { flex: 0 0 auto; }
.twq-page-footer { display: grid; gap: 4px; margin-top: 28px; padding: 28px 18px; border-top: 1px solid var(--twq-border); color: var(--twq-muted); text-align: center; }
.twq-page-footer strong { color: var(--twq-navy); font-size: 18px; }
.twq-summary-empty { margin: 8px 0 0; color: var(--twq-muted); font-size: 12px; text-align: right; }

@media (max-width: 720px) {
    .twq-app { padding: 8px; }
    .twq-hero-card { border-radius: 16px; }
    .twq-flow { grid-template-columns: 1fr; }
    .twq-grid-2, .twq-grid-4, .twq-radio-cards { grid-template-columns: 1fr; }
    .twq-page-header { align-items: flex-start; flex-direction: column; gap: 12px; }
    .twq-page-header nav { gap: 14px; font-size: 14px; }
    .twq-feature-request-card { align-items: stretch; flex-direction: column; gap: 18px; }
    .twq-feature-request-card .twq-button { width: 100%; }
    .twq-section { padding: 22px 18px; }
    .twq-submit { width: calc(100% - 36px); margin-left: 18px; margin-right: 18px; }
    .twq-privacy { margin-left: 18px; margin-right: 18px; }
    .twq-section-heading { align-items: flex-start; flex-direction: column; }
    .twq-button { width: 100%; }
}

.twq-summary-section { background: var(--twq-pale); }
.twq-summary {
    max-width: 600px;
    margin-left: auto;
    border-top: 1px solid var(--twq-border);
}
.twq-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--twq-border);
}
.twq-summary-grand { margin-top: 7px; color: var(--twq-navy); font-size: 21px; }
.twq-summary-grand strong { font-size: 27px; }

.twq-agreement label,
.twq-agreement-inline {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.6;
}
.twq-agreement input,
.twq-agreement-inline input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; }
.twq-honeypot { position: absolute !important; left: -9999px !important; }

.twq-error,
.twq-static-error {
    margin: 18px 28px;
    padding: 14px 16px;
    border: 1px solid #f0b4ae;
    border-radius: 5px;
    background: #fff0ef;
    color: var(--twq-danger);
    font-weight: 700;
}
.twq-static-error { max-width: 900px; margin: 30px auto; }
.twq-success {
    padding: 48px 30px;
    border: 1px solid #a9d7bf;
    border-radius: 10px;
    background: #f0fbf5;
    text-align: center;
}
.twq-success-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    background: var(--twq-success);
    color: #fff;
    font-size: 30px;
}
.twq-quote-number { font-size: 18px; }

.twq-view-wrap { max-width: 1000px; margin: 0 auto; }
.twq-view-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}
.twq-status {
    padding: 7px 12px;
    border-radius: 999px;
    background: #e9eef2;
    font-size: 13px;
    font-weight: 800;
}
.twq-status-order_requested { background: #fff2cc; }
.twq-status-accepted { background: #dff4e8; color: #0d6037; }
.twq-status-declined,
.twq-status-invalid,
.twq-status-expired { background: #f4e1e1; color: #8c1f1f; }
.twq-success-message {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #a9d7bf;
    background: #f0fbf5;
    color: #0d6037;
}

.twq-quote-sheet {
    box-sizing: border-box;
    min-height: 277mm;
    padding: 16mm 15mm;
    border: 1px solid #ccd5dc;
    background: #fff;
    box-shadow: 0 8px 28px rgba(24, 55, 82, .09);
    color: #111;
}
.twq-quote-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}
.twq-quote-header h1 {
    margin: 0;
    border-bottom: 3px double #222;
    font-size: 30px;
    letter-spacing: .35em;
}
.twq-auto-label {
    display: inline-block;
    margin: 0 0 7px;
    padding: 3px 8px;
    border: 1px solid #333;
    font-size: 11px;
    font-weight: 800;
}
.twq-revision-label {
    display: inline-block;
    margin: 0 0 7px 6px;
    font-size: 12px;
    font-weight: 800;
}
.twq-print-only { display: none; }
.twq-quote-header dl { min-width: 260px; margin: 0; font-size: 12px; }
.twq-quote-header dl div { display: grid; grid-template-columns: 80px 1fr; border-bottom: 1px solid #999; }
.twq-quote-header dt,
.twq-quote-header dd { margin: 0; padding: 5px; }
.twq-quote-header dt { background: #f0f0f0; font-weight: 700; }

.twq-quote-parties {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin-top: 28px;
    align-items: start;
}
.twq-customer strong { border-bottom: 1px solid #111; font-size: 20px; }
.twq-vendor { position: relative; display: flex; justify-content: space-between; gap: 10px; min-height: 105px; font-size: 12px; line-height: 1.7; }
.twq-vendor-text { position: relative; z-index: 2; min-width: 0; }
.twq-address-line { display: inline-block; white-space: nowrap; }
.twq-address-tail { white-space: nowrap; }
.twq-vendor strong { font-size: 17px; }
.twq-seals { display: flex; align-items: flex-start; justify-content: flex-end; gap: 3mm; width: 42mm; min-width: 42mm; min-height: 23mm; margin-top: 2px; }
.twq-square-seal-img, .twq-round-seal-img { display: block; flex: 0 0 auto; opacity: 1; }
/*
 * The bundled masters include transparent margins. These canvas sizes make the
 * visible red bounds (alpha >= 16) print at exactly 18 mm and 13.5 mm.
 */
.twq-square-seal-img { width: 23.5862mm; height: 22.8mm; }
.twq-round-seal-img { width: 15.1165mm; height: 15.6596mm; margin-top: 6.3mm; }
.twq-css-seal { position: static; display: flex; flex: 0 0 auto; align-items: center; justify-content: center; box-sizing: border-box; color: #b40000; border: 3px double #b40000; font-family: serif; font-weight: 800; line-height: 1.05; text-align: center; opacity: .82; transform: rotate(-2deg); }
.twq-css-square { width: 21mm; height: 21mm; font-size: 17px; letter-spacing: .08em; }
.twq-css-round { width: 16mm; height: 16mm; margin-top: 7mm; border-radius: 50%; font-size: 18px; }
.twq-rounding-row td { font-size: 10px; color: #555; }
.twq-inclusive-note { margin-top: 8px; }
.twq-quote-total-box {
    display: flex;
    max-width: 580px;
    justify-content: space-between;
    align-items: baseline;
    margin: 28px 0 22px;
    padding: 10px 14px;
    border-bottom: 3px double #111;
    font-weight: 700;
}
.twq-quote-total-box strong { font-size: 25px; }

.twq-quote-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}
.twq-quote-table th,
.twq-quote-table td { padding: 7px 6px; border: 1px solid #777; vertical-align: top; }
.twq-quote-table thead th { background: #e9edf0; text-align: center; }
.twq-quote-table th:nth-child(1) { width: 38px; }
.twq-quote-table th:nth-child(3) { width: 55px; }
.twq-quote-table th:nth-child(4),
.twq-quote-table th:nth-child(5) { width: 100px; }
.twq-quote-table td:nth-child(1),
.twq-quote-table td:nth-child(3),
.twq-quote-table td:nth-child(4),
.twq-quote-table td:nth-child(5) { text-align: right; }
.twq-quote-table small { overflow-wrap: anywhere; color: #444; font-size: 9px; }
.twq-quote-table tfoot th { background: #e9edf0; text-align: right; font-size: 14px; }
.twq-quote-terms { margin-top: 22px; font-size: 10px; line-height: 1.65; }
.twq-quote-terms h2 { margin: 0 0 6px; font-size: 13px; }

.twq-order-panel { margin-top: 24px; padding: 28px; }
.twq-order-panel h2 { margin-top: 0; color: var(--twq-navy); }
.twq-order-form .twq-agreement-inline { margin: 20px 0; }

@media screen and (max-width: 760px) {
    .twq-grid-2,
    .twq-grid-4,
    .twq-radio-cards,
    .twq-quote-parties { grid-template-columns: 1fr; }
    .twq-section { padding: 22px 18px; }
    .twq-section-heading { align-items: flex-start; flex-direction: column; }
    .twq-submit { width: calc(100% - 36px); margin: 0 18px 8px; }
    .twq-privacy { margin: 0 18px 22px; }
    .twq-quote-sheet { min-height: 0; padding: 18px 14px; overflow-x: auto; }
    .twq-quote-header { flex-direction: column; }
    .twq-quote-header dl { width: 100%; min-width: 0; }
    .twq-quote-table { min-width: 680px; }
}

@page { size: A4 portrait; margin: 7mm; }
@media print {
    body { background: #fff !important; }
    body * { visibility: hidden; }
    .twq-quote-sheet,
    .twq-quote-sheet * { visibility: visible; }
    .twq-quote-sheet {
        position: static;
        width: 100%;
        min-width: 0;
        min-height: auto;
        overflow: visible;
        margin: 0;
        padding: 4mm 6mm;
        border: 0;
        box-shadow: none;
    }
    .twq-no-print { display: none !important; }
    .twq-screen-only { display: none !important; }
    .twq-print-only { display: block !important; }

    /* Remove theme siblings from layout while retaining the sheet's ancestor path. */
    body:has(.twq-quote-sheet) *:not(.twq-quote-sheet):not(.twq-quote-sheet *):not(:has(.twq-quote-sheet)) {
        display: none !important;
    }
    body:has(.twq-quote-sheet),
    body *:has(.twq-quote-sheet) {
        display: block !important;
        position: static !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: visible !important;
        transform: none !important;
    }
    /* Keep a short quote on one A4 page without reducing the body text. */
    .twq-quote-header { gap: 12px; }
    .twq-quote-header h1 { font-size: 28px; }
    .twq-auto-label { margin-bottom: 4px; padding: 2px 7px; }
    .twq-quote-header dl { min-width: 245px; font-size: 11px; }
    .twq-quote-header dt,
    .twq-quote-header dd { padding: 3px 5px; }
    .twq-quote-parties { gap: 20px; margin-top: 16px; }
    .twq-vendor { min-height: 92px; line-height: 1.5; }
    .twq-quote-total-box { margin: 16px 0 12px; padding: 7px 12px; }
    .twq-quote-total-box strong { font-size: 23px; }

    .twq-quote-table { min-width: 0; font-size: 11px; }
    .twq-quote-table th,
    .twq-quote-table td { padding: 5px; }
    .twq-quote-table thead { display: table-header-group; }
    .twq-quote-table tfoot { display: table-row-group; }
    .twq-quote-table tr,
    .twq-quote-table tfoot { break-inside: avoid-page; page-break-inside: avoid; }
    .twq-quote-header,
    .twq-quote-parties,
    .twq-quote-total-box { break-inside: avoid; }
    .twq-quote-terms { margin-top: 10px; line-height: 1.45; orphans: 3; widows: 3; }
    .twq-quote-terms h2 { margin-bottom: 3px; break-after: avoid-page; page-break-after: avoid; }
    .twq-inclusive-note { margin-top: 6px; }
    .twq-revision-summary p,
    .twq-revision-summary ul { margin: 3px 0; }
    .twq-revision-summary ul { padding-left: 18px; }
    .twq-revision-summary li { margin: 1px 0; }
    .twq-revision-label { margin-bottom: 4px; font-size: 11px; }
    .twq-trade-conditions dl { margin: 0; }
    .twq-trade-conditions dl div { display: grid; grid-template-columns: 28mm 1fr; gap: 3mm; }
    .twq-trade-conditions dt { font-weight: 700; }
    .twq-trade-conditions dd { margin: 0; }
    .twq-quote-table td:nth-child(2),
    .twq-customer { overflow-wrap: anywhere; }
    .twq-vendor-text { overflow-wrap: normal; }
}

.twq-import-assumptions {
    padding: 10px 12px;
    border: 1px solid #b7c5d1;
    background: #f6f9fb;
}
.twq-import-summary[hidden],
.twq-import-costs[hidden] { display: none !important; }

.twq-fixed-assumption {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f7fafc;
}
.twq-fixed-assumption strong {
    font-size: 1.1rem;
}

.twq-document-actions,
.twq-document-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.twq-document-actions .is-current {
    background: #eaf4fb;
    box-shadow: inset 0 0 0 1px var(--twq-blue);
}
.twq-delivery-address {
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px solid #aaa;
    font-size: 11px;
    line-height: 1.6;
}
.twq-invoice-payment {
    padding: 12px;
    border: 1px solid #b7c5d1;
    background: #f8fafb;
}
.twq-invoice-payment > div + div {
    margin-top: 8px;
}
.twq-document-invoice .twq-quote-header h1,
.twq-document-delivery .twq-quote-header h1 {
    letter-spacing: .45em;
}

@media screen and (max-width: 760px) {
    .twq-view-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

.twq-purpose-message{margin:0 0 18px;padding:14px 16px;border-left:4px solid #646970;background:#f6f7f7;color:#2c3338;border-radius:3px;line-height:1.7}.twq-purpose-message strong{font-size:1.02em}

/* v0.10.0: 長形3号封筒印刷 */
.twq-envelope-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px auto;max-width:900px}.twq-envelope-actions span{font-size:12px;color:#555}
.twq-envelope-n3{position:relative;width:120mm;height:235mm;margin:20px auto;background:#fff;color:#111;box-sizing:border-box;border:1px solid #ddd;font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;overflow:hidden}
.twq-envelope-postal{position:absolute;top:18mm;left:14mm;font-size:13pt;letter-spacing:.12em}
.twq-envelope-address{position:absolute;top:36mm;right:18mm;writing-mode:vertical-rl;text-orientation:mixed;font-size:13pt;line-height:1.8;height:120mm;white-space:pre-wrap}
.twq-envelope-org{position:absolute;top:45mm;left:54mm;writing-mode:vertical-rl;text-orientation:mixed;font-size:14pt;line-height:1.8;height:120mm}
.twq-envelope-name{position:absolute;top:55mm;left:34mm;writing-mode:vertical-rl;text-orientation:mixed;font-size:20pt;line-height:1.8;height:125mm;font-weight:600}
.twq-envelope-sender{position:absolute;left:8mm;bottom:12mm;font-size:8.5pt;line-height:1.55;max-width:48mm}
@media print{
  .twq-envelope-n3,.twq-envelope-n3 *{visibility:visible!important}
  .twq-envelope-n3{position:absolute;left:0;top:0;margin:0;border:0;width:120mm;height:235mm}
}
.twq-app [hidden]{display:none!important}
.twq-file-picker{display:inline-flex;align-items:center;cursor:pointer}.twq-file-picker input{position:absolute;inline-size:1px;block-size:1px;opacity:0}.twq-file-picker span{display:inline-block;padding:10px 16px;border:1px solid #2271b1;border-radius:5px;color:#2271b1;background:#fff;font-weight:600}.twq-attachment-list{margin-top:12px}.twq-attachment-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 12px;border:1px solid #dcdcde;border-radius:4px;background:#fff}.twq-attachment-row+.twq-attachment-row{margin-top:7px}.twq-attachment-row button{border:0;background:transparent;color:#b32d2e;text-decoration:underline;cursor:pointer}.twq-pricing-mode{margin-bottom:16px}
