:root{--paper:#f8f7f2;--ink:#18302b;--muted:#606e66;--orange:#f16b3d;--mint:#e4eee2;--line:#d9dfd5;--white:#fff;--radius:18px;font-family:Inter,"Helvetica Neue",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-underline-offset:4px}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a,button,input,select{outline-offset:4px}[hidden]{display:none!important}.wrap{max-width:1160px;margin:0 auto;padding-left:32px;padding-right:32px}.notice{background:var(--ink);color:white;text-align:center;padding:10px 20px;font-size:12px;line-height:1.5}.header{display:flex;align-items:center;justify-content:space-between;min-height:116px;gap:24px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font-weight:850;font-size:21px;line-height:.95;text-decoration:none;letter-spacing:-.8px}.brand-icon{background:var(--orange);color:var(--ink);width:43px;height:43px;display:grid;place-items:center;border-radius:11px;font-size:36px}.brand-break{display:block}.orange{color:var(--orange)}nav{display:flex;gap:30px;align-items:center;font-size:13px;font-weight:650}nav a{text-decoration:none}.nav-account{border:1px solid var(--line);padding:13px 16px;border-radius:8px}.nav-account span{margin-left:13px}.hero{display:grid;grid-template-columns:1.4fr 1fr;gap:45px;align-items:center;padding:78px 0 80px}.eyebrow{text-transform:uppercase;font-size:11px;font-weight:750;letter-spacing:1.7px;margin:0 0 23px;line-height:1.6}.dot{display:inline-block;background:var(--orange);width:7px;height:7px;border-radius:50%;margin-right:7px}h1{font-size:clamp(40px,5.3vw,67px);letter-spacing:-3.1px;line-height:1.05;margin:0 0 26px;font-weight:800}h1 .hero-last{color:#667e62}h2{font-size:29px;letter-spacing:-1px;line-height:1.14;margin:0 0 20px}h3{font-size:16px;margin:27px 0 15px}.intro{font-size:17px;line-height:1.65;max-width:420px;color:var(--muted)}.hero-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:25px}.hero-tags span{font-size:10px;font-weight:650;border:1px solid var(--line);border-radius:30px;padding:8px 10px}.paper-art{position:relative;height:360px;margin:0 15px}.paper-back{position:absolute;background:#dce7d7;width:230px;height:285px;top:18px;left:35px;transform:rotate(-12deg);border-radius:5px}.paper-front{position:absolute;background:#fff;width:230px;height:285px;top:22px;left:70px;transform:rotate(8deg);padding:35px 25px;box-shadow:3px 14px 35px #18302b12;border:1px solid #e8e8df}.paper-label{font-size:14px;font-weight:850;letter-spacing:-.2px;line-height:1.4}.paper-lines{height:66px;width:150px;margin-top:22px;background:repeating-linear-gradient(transparent 0 12px,#e5e8e0 12px 14px)}.paper-stamp{position:absolute;width:83px;height:83px;background:var(--orange);border-radius:50%;bottom:20px;right:-27px;display:grid;place-content:center;text-align:center;font-size:14px;font-weight:850;transform:rotate(-18deg)}.art-note{position:absolute;left:24px;bottom:0;font-size:15px;font-style:italic;transform:rotate(-8deg);line-height:1.35}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:25px}.section-heading .eyebrow{margin-bottom:10px}.section-heading h2{margin:0;font-size:32px}.step-label{font-size:11px;font-weight:650;color:var(--muted);padding-bottom:5px}.order-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:54px}.card{padding:30px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white)}.dropzone{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:11px;min-height:205px;border:1.5px dashed #b8c5b4;border-radius:12px;background:#f8faf5;text-align:center;padding:23px;cursor:pointer;margin-bottom:24px}.dropzone.dragover{background:var(--mint);border-color:var(--ink)}.dropzone strong{font-size:14px;overflow-wrap:anywhere}.dropzone span:not(.upload-icon){font-size:10px;color:var(--muted)}.dropzone small{font-size:10px;color:var(--muted)}.dropzone input{max-width:100%;font-size:11px;margin:5px 0 0;border:0;padding:4px}.upload-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:10px;background:var(--mint);font-size:26px}label{display:block;font-size:12px;font-weight:650;line-height:1.5}input,select{width:100%;min-width:0;border:1px solid var(--line);border-radius:7px;padding:13px;background:#fff;color:var(--ink);margin:7px 0 16px;font-size:13px;line-height:1.3}input::placeholder{color:#8c958e}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.address-pair{grid-template-columns:1fr 1.8fr}.button{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:47px;border:0;border-radius:8px;text-decoration:none;font-size:12px;font-weight:750;padding:15px 19px}.primary{background:var(--orange);color:#172c26}.primary:hover{background:#df5c30}.secondary{background:var(--mint);color:var(--ink)}.wide{width:100%;justify-content:space-between}.micro{font-size:10px;line-height:1.7;color:var(--muted)}.card .micro:last-child{margin-bottom:0}.how{padding:32px 0}.how-number{font-size:34px;letter-spacing:-1.5px;line-height:1.13;font-weight:750;margin-bottom:36px}.how ol{list-style:none;margin:0;padding:0}.how li{display:flex;gap:17px;margin:0 0 26px}.how li>span{width:28px;height:28px;border-radius:50%;background:var(--mint);display:grid;place-items:center;flex-shrink:0;font-size:10px;font-weight:750}.how strong{font-size:13px}.how p{font-size:12px;color:var(--muted);line-height:1.7;margin:7px 0 0;max-width:240px}.how .aside-note{border-top:1px solid var(--line);padding-top:23px;margin-top:32px;font-size:10px;max-width:290px}.preparing{text-align:center;padding:70px 25px}.spinner{display:inline-block;width:35px;height:35px;border:3px solid var(--mint);border-top-color:var(--orange);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.review-heading{display:flex;justify-content:space-between;gap:20px;align-items:start}.text-button{background:none;border:0;color:var(--ink);text-decoration:underline;text-underline-offset:4px;font-size:12px;padding:9px 0}.review-heading .eyebrow{margin-bottom:10px}#review>p{font-size:14px;line-height:1.7;max-width:650px}#pdf-preview{display:block;width:100%;height:600px;border:1px solid var(--line);margin:20px 0 28px;border-radius:8px}.checkout-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px}.checkbox{display:flex;gap:10px;align-items:flex-start;font-size:12px;margin-bottom:22px}.checkbox input{width:18px;height:18px;flex-shrink:0;margin:0;accent-color:var(--ink)}.price-box{padding:23px;background:var(--paper);border-radius:12px}.price-box>span,.price-box>small{display:block;font-size:11px;color:var(--muted)}.price-box>strong{display:block;font-size:39px;letter-spacing:-1.5px;margin:12px 0}.price-box button{margin-top:22px}.mcp-teaser{display:grid;grid-template-columns:1.2fr 1fr;gap:80px;align-items:center;margin:85px 0 80px;border-top:1px solid var(--line);padding-top:65px}.mcp-teaser h2{font-size:36px}.mcp-teaser p:not(.eyebrow){font-size:13px;color:var(--muted);line-height:1.8;max-width:340px}.mcp-teaser .eyebrow{margin-bottom:16px}.terminal{background:#19372d;padding:28px;border-radius:14px;color:#fff;box-shadow:0 8px 20px #18302b10;font-family:ui-monospace,monospace}.terminal .terminal-dots{font-size:10px;color:#668371;letter-spacing:3px}.terminal p:not(.eyebrow){color:#e1e8df;font-size:12px}.terminal-muted{color:#9bb09e;font-size:10px}.terminal-green{color:#b9dfa0}.terminal small{font-size:9px;color:#a6b8ab;line-height:1.6;display:block}footer{display:flex;align-items:center;gap:25px;border-top:1px solid var(--line);min-height:105px;font-size:10px;color:var(--muted);margin-top:80px!important}.footer-name{font-weight:750;text-decoration:none;color:var(--ink)}.footer-links{display:flex;gap:15px;margin-left:auto;flex-wrap:wrap}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:17px 22px;border-radius:12px;max-width:calc(100% - 32px);width:max-content;box-shadow:0 5px 30px #0003;z-index:10;font-size:14px;line-height:1.5}.page-heading{padding:65px 0 35px}.page-heading h1{font-size:52px}.narrow{max-width:570px}.account-heading{display:flex;align-items:center;justify-content:space-between}.account-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:25px}.balance{font-size:56px;letter-spacing:-2px;font-weight:750}.balance-card{background:var(--mint)}.balance-card p:not(.eyebrow){font-size:13px;line-height:1.7}.balance-card form{margin-top:36px}.account-grid .card>p{font-size:13px;line-height:1.7}.account-grid h2{font-size:24px}.section-space{margin-top:25px}table{border-collapse:collapse;width:100%;font-size:12px;line-height:1.6}th,td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:1px}.amount{text-align:right;white-space:nowrap}.table-scroll{overflow-x:auto}.token-list{padding:0;list-style:none;margin:25px 0 0}.token-row{border-top:1px solid var(--line);padding:16px 0;display:flex;gap:15px;align-items:center;justify-content:space-between;font-size:12px}.token-row small{display:block;font-size:10px;color:var(--muted);line-height:1.6;margin-top:5px}.secret-box{background:var(--paper);padding:18px;border-radius:8px;margin-top:20px;font-size:11px}.secret-box input{font-family:monospace}code{font-size:11px;overflow-wrap:anywhere}.plain-list{padding-left:20px;font-size:14px;line-height:1.9}.plain-list li{padding:7px 0}.status-pill{display:inline-block;background:var(--mint);padding:12px 15px;border-radius:8px;font-size:12px;font-weight:650;margin-bottom:25px}#login-result{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.order-section{scroll-margin-top:20px}.card p{line-height:1.7}@media(max-width:800px){.wrap{padding-left:22px;padding-right:22px}.hero{gap:10px;padding:55px 0}.paper-art{transform:scale(.8);transform-origin:left center;margin:0 -30px 0 0}h1{font-size:47px;letter-spacing:-2px}.hero-tags{max-width:320px}.intro{font-size:15px}.order-grid{gap:30px;grid-template-columns:1.6fr 1fr}.card{padding:22px}.mcp-teaser{gap:35px}.account-grid{grid-template-columns:1fr 1.2fr}.checkout-grid{gap:20px}nav{gap:15px}}@media(max-width:600px){.header{min-height:90px;gap:15px}.brand{font-size:17px}.brand-icon{width:34px;height:34px;font-size:28px}.nav-account{padding:10px;font-size:11px}nav{gap:10px}nav>a:first-child{display:none}.hero{grid-template-columns:1fr;padding:40px 0}.hero h1{font-size:47px;letter-spacing:-2.5px}.hero .eyebrow{font-size:9px}.paper-art{display:none}.hero-tags{max-width:none}.section-heading{align-items:start;gap:15px}.section-heading h2{font-size:25px}.step-label{font-size:9px;max-width:80px;line-height:1.7}.section-heading .eyebrow{font-size:9px}.order-grid,.account-grid,.checkout-grid,.mcp-teaser{grid-template-columns:1fr}.how{padding:0 5px}.how-number{display:none}.how ol{margin-top:6px}.how p{max-width:none}.how .aside-note{max-width:none}.mcp-teaser{margin:45px 0;padding-top:40px;gap:25px}.mcp-teaser h2{font-size:32px}.mcp-teaser p:not(.eyebrow){max-width:none}footer{flex-wrap:wrap;gap:13px;padding-top:25px;padding-bottom:25px;margin-top:45px!important}.footer-links{margin-left:0;width:100%;gap:18px}.page-heading{padding:40px 0 25px}.page-heading h1{font-size:39px;letter-spacing:-1.8px}.account-heading{align-items:start;gap:12px}.account-heading h1{font-size:34px}.account-heading p{font-size:12px}.balance{font-size:49px}#pdf-preview{height:420px}.field-pair{gap:12px}.review-heading h2{font-size:27px}.table-scroll table{min-width:360px}.notice{font-size:10px}.dropzone{padding:18px 10px}.dropzone strong{font-size:12px}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}
.legal-copy{max-width:850px;margin-bottom:45px}.legal-copy h2{font-size:22px;margin-top:35px}.legal-copy p,.legal-copy blockquote{font-size:14px;line-height:1.8}.legal-copy .legal-draft{background:var(--mint);border-left:3px solid var(--orange);padding:16px;border-radius:5px;font-size:12px}.legal-copy blockquote{margin:20px 0;padding:18px;background:var(--paper);border-radius:8px}
:root{--button-ink:#172c26;--surface-soft:#f8faf5;--focus:#9c360f}html{color-scheme:light}html[data-theme=dark]{color-scheme:dark;--paper:#12231e;--ink:#eef5ed;--muted:#bdcbbf;--line:#42574b;--white:#1d332a;--mint:#294536;--orange:#ff946b;--surface-soft:#20382d;--focus:#ffb598}html[data-theme=dark] .hero-last{color:#b3d7a7}html[data-theme=dark] .paper-front{background:#f7f6f0;color:#18302b}html[data-theme=dark] .paper-back{background:#36523c}html[data-theme=dark] .primary{color:var(--button-ink)}html[data-theme=dark] .notice{background:#0a1711;color:#eef5ed}.skip-link{position:absolute;top:-100px;left:16px;z-index:100;padding:15px;background:var(--ink);color:var(--white)}.skip-link:focus{top:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:focus-visible{outline:3px solid var(--focus);outline-offset:4px}.preferences{display:flex;justify-content:flex-end;align-items:center;gap:15px;padding-top:12px}.preferences nav{font-size:13px}.preferences a{min-height:44px;display:inline-flex;align-items:center}.preferences [aria-current=true]{font-weight:800;text-decoration:underline}.preferences select{max-width:130px;margin:0;min-height:44px}.preferences label{font-size:13px}.card{background:var(--white)}input,select,textarea{background:var(--white);color:var(--ink);border-color:var(--line)}textarea{width:100%;border:1px solid var(--line);padding:12px;border-radius:7px;margin:7px 0 16px;font:inherit}.dropzone{background:var(--surface-soft)}.dropzone input{font-size:13px}.micro,.aside-note,.how .aside-note{font-size:13px!important}.how p,.how strong{font-size:14px}.eyebrow{font-size:12px}.button,.text-button{font-size:14px;min-height:44px}.hero-tags span{font-size:12px}.brand-icon{color:var(--button-ink)}footer{flex-wrap:wrap;padding-top:25px;padding-bottom:25px;font-size:13px}.footer-links{width:100%;margin-left:0;flex-wrap:wrap;row-gap:5px}.footer-links a{display:inline-flex;align-items:center;min-height:44px}.withdraw-link{font-weight:750;text-decoration-thickness:2px}.admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.legal-copy{overflow-wrap:anywhere}.legal-copy *{max-width:100%}.legal-copy table{display:block;overflow-x:auto}.legal-copy a{text-decoration:underline}.legal-copy h1{font-size:27px;letter-spacing:-1px}.legal-copy p{font-size:16px}.legal-copy p:first-child{margin-top:0}.legal-copy h2{font-size:24px}.legal-copy h3{font-size:20px}.legal-copy h4{font-size:18px}.card dl{line-height:1.7}.card dt{font-weight:700}.card dd{margin:0 0 16px;overflow-wrap:anywhere}summary{cursor:pointer;min-height:44px;padding:14px 0}#main-content:focus,#review-heading:focus,#delivery-heading:focus{outline:0}#delivery-form .address-fields{max-width:600px}.table-scroll{outline-offset:3px}@media(max-width:600px){.preferences{flex-wrap:wrap;gap:10px}.preferences nav>a:first-child{display:inline-flex}.preferences nav{gap:16px}.preferences select{max-width:110px}.admin-grid{grid-template-columns:1fr}.step-label{max-width:100px}.header nav>a:first-child{display:none}.header{gap:10px}.nav-account{font-size:12px;padding:10px}.legal-copy h1{font-size:26px}.micro{font-size:13px}h1{overflow-wrap:normal}.brand{flex-shrink:0}}

.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.hero-endpoint{font-size:.9rem;margin-top:16px;overflow-wrap:anywhere}.hero-endpoint span{font-weight:700}.mcp-teaser{margin-bottom:56px}.header nav .nav-mcp{display:inline-flex}.hero-endpoint code{user-select:all}
/* Keep the official CCM19 controls and behavior; inherit the site's chosen palette. */
html[data-theme] .ccm-root .ccm-modal-inner,html[data-theme] .ccm-root .ccm-modal--header,html[data-theme] .ccm-root .ccm-modal--body,html[data-theme] .ccm-root .ccm-modal--footer{background:var(--white)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme] .ccm-root .ccm--h1,html[data-theme] .ccm-root .ccm--p,html[data-theme] .ccm-root .ccm-control-panel--purpose{color:var(--ink)!important;background-color:transparent!important}
html[data-theme] .ccm-root a{color:var(--ink)!important}
html[data-theme] .ccm-root button{min-height:44px;min-width:44px;color:var(--ink)!important;background-color:var(--white)!important;border-color:var(--ink)!important}
html[data-theme] .ccm-root button.ccm--button-primary{color:var(--white)!important;background-color:var(--ink)!important}
html[data-theme] .ccm-root select{color:var(--ink)!important;background-color:var(--white)!important;border:1px solid var(--line)!important;min-height:44px}
html[data-theme] .ccm-root :focus-visible{outline:3px solid var(--focus)!important;outline-offset:3px!important}
html[data-theme] .ccm-root .ccm-link-container a,html[data-theme] .ccm-root .ccm-powered-by a{display:inline-flex!important;align-items:center;min-width:44px;min-height:44px;padding:8px;box-sizing:border-box}
html[data-theme] .ccm-root label,html[data-theme] .ccm-root label span{color:var(--ink)!important}
.dropzone:focus-within{outline:3px solid var(--focus);outline-offset:4px}

.theme-icon-switcher{display:inline-flex;gap:4px}.theme-icon-switcher button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--white)}.theme-icon-switcher button[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}

.header nav{flex-wrap:wrap;justify-content:flex-end}.faq details{margin-bottom:12px}.faq summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}.table-scroll{overflow-x:auto;max-width:100%}.table-scroll table{width:100%;border-collapse:collapse}.table-scroll th,.table-scroll td{padding:12px 10px;text-align:left;border-bottom:1px solid var(--line)}.table-scroll caption{text-align:left;margin:16px 0}.table-scroll td{white-space:nowrap}@media(max-width:600px){.header nav{max-width:60%;gap:8px;font-size:13px}}

/* REST documentation and wrapping navigation remain usable on small screens. */
pre{max-width:100%;overflow-x:auto;padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:10px;line-height:1.6} .header nav{flex-wrap:wrap;justify-content:flex-end;min-width:0}

.page-heading h1{overflow-wrap:anywhere;hyphens:auto}

/* Private estate workspace. */
.estate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.estate-list{padding-left:22px;line-height:1.8;overflow-wrap:anywhere}.estate-list small{display:block;color:var(--muted)}.estate-filters{display:flex;flex-wrap:wrap;gap:8px}.estate-filters a{display:inline-flex;align-items:center;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:8px}.estate-filters [aria-current=page]{background:var(--mint)}.estate-contact{margin:14px 0}.estate-contact summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}.estate-contact summary small{display:block;color:var(--muted);margin-top:4px}.estate-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.estate-prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.estate-dispatch{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}.estate-confirm{margin:20px 0}.estate-teaser{margin-bottom:32px}.estate-teaser h2{font-size:28px}.estate-contact fieldset{min-width:0;border:1px solid var(--line);border-radius:8px;padding:14px}.estate-contact legend{padding:0 6px}.estate-contact input,.estate-contact textarea{max-width:100%}.estate-contact button{max-width:100%;white-space:normal}.estate-grid>*{min-width:0}@media(max-width:700px){.estate-grid,.estate-fields{grid-template-columns:1fr}.estate-contact summary{display:block}.estate-contact summary>span{display:block;margin:6px 0}}

.estate-filters>a:first-child{display:inline-flex}

.estate-company>h3{margin-top:0;font-size:1.2rem}.estate-company>h3 small{font-size:.8rem;color:var(--muted);font-weight:400}.estate-company-contracts{margin-top:1rem;padding-inline-start:1rem;border-inline-start:2px solid var(--line)}.estate-company-contracts>h4{margin:.5rem 0;font-size:.9rem;color:var(--muted)}.estate-company-contracts>.estate-contact{margin:.75rem 0 0;padding:1rem}.estate-contract-info{padding-top:1rem}.estate-contract-info>h5{font-size:.9rem;margin:0 0 1rem}.estate-company-contracts,.estate-contract-info{min-width:0}@media(max-width:600px){.estate-company-contracts{padding-inline-start:.5rem}.estate-company-contracts>.estate-contact{padding:.75rem}}

.estate-reply-address{display:block;overflow-wrap:anywhere;white-space:normal;font-size:.8rem;margin:.35rem 0}

#estate-form-error{text-align:start;background:var(--mint);color:var(--ink);border:1px solid var(--line);border-radius:.5rem;font-size:.9rem;padding:1rem}

.estate-company .estate-contact>summary strong{overflow-wrap:anywhere}@media(max-width:600px){.estate-company.card{padding:14px}}

html[data-print-mode="correspondence"] .hero,html[data-print-mode="correspondence"] .estate-teaser,html[data-print-mode="correspondence"] .mcp-teaser{display:none}
#letter-recipient[hidden]{display:none}

.section-heading h1{margin:0;font-size:clamp(1.5rem,3vw,2rem)}

/* Focused case workspace: reading first, editing on demand. */
.estate-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:12px}.estate-tabs a{padding:12px 16px;min-height:44px;border-radius:8px;text-decoration:none;color:var(--ink)}.estate-tabs a[aria-current=page]{background:var(--mint);font-weight:700}.estate-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:24px 0 16px}.estate-toolbar h2{margin:0}.estate-readonly{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:8px 16px;margin:18px 0}.estate-readonly dt{color:var(--muted)}.estate-readonly dd{margin:0;overflow-wrap:anywhere}.estate-compact{font-size:.875rem;margin:12px 0}.estate-edit,.estate-letter-preview,.estate-delivery{margin:16px 0}.estate-edit>summary,.estate-add-contract>summary,.estate-delivery>summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer}.estate-edit[open]>summary{margin-bottom:18px}.button.small{font-size:.875rem;padding:8px 12px}.estate-contact summary{cursor:pointer}.htmx-request{opacity:.7}.htmx-request button[type=submit]{pointer-events:none}.estate-tabs a:focus-visible,summary:focus-visible{outline:3px solid var(--ink);outline-offset:4px}@media(max-width:600px){.estate-tabs a{padding:10px}.estate-readonly{grid-template-columns:1fr}.estate-readonly dd{margin-bottom:10px}}
.estate-filter-form{display:flex;gap:12px;align-items:end;max-width:540px}.estate-filter-form label{flex:1}.estate-filter-form button{margin-bottom:16px}.estate-templates>summary{cursor:pointer;font-weight:600}.estate-templates>.estate-company{box-shadow:none;border:0;border-top:1px solid var(--line);padding:16px 0;margin:16px 0}.estate-add-contract{margin:.5rem 0}.estate-company{padding:20px}
.telegram-print .hero,.telegram-print .estate-teaser,.telegram-print .mcp-teaser,.telegram-print #faq,.telegram-print .how{display:none}.telegram-print #print-heading{margin-top:0}
.estate-contact summary .estate-inbox-badge{display:inline-flex;align-items:center;gap:5px;margin-top:6px;padding:3px 8px;border-radius:12px;background:var(--mint);font-size:.8rem;color:var(--ink)}.estate-inbox-badge.has-unread{font-weight:750}.estate-inbox-badge.has-unread>span{animation:estate-inbox-bounce .7s ease-in-out 3}.estate-reply-item{padding:12px 0;border-bottom:1px solid var(--line)}.estate-reply-item h5{margin:0 0 6px;font-size:.95rem;overflow-wrap:anywhere}.estate-reply-new{font-size:.75rem;padding:3px 7px;border:1px solid var(--line);border-radius:8px}.estate-contract-replies form{margin-top:16px}@keyframes estate-inbox-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}@media(prefers-reduced-motion:reduce){.estate-inbox-badge.has-unread>span{animation:none}}
.estate-evidence-group{border:1px solid var(--line);border-radius:12px;padding:0 16px}.estate-evidence-group>summary{cursor:pointer}.estate-evidence-contract{border-inline-start:2px solid var(--line);padding-inline-start:14px;margin:16px 0}.estate-evidence-contract h4{font-size:.95rem;margin:0}.estate-evidence-files{margin:8px 0 18px}.estate-evidence-files li{padding:5px 0}.estate-toolbar .hero-actions{margin-top:0}
.estate-dialog{width:min(620px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;border:1px solid var(--line);border-radius:var(--radius);padding:24px;background:var(--white);color:var(--ink);box-shadow:0 24px 80px #0005}.estate-dialog::backdrop{background:#10251ecc}.estate-dialog-header{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:16px}.estate-dialog-header h2{margin:0;font-size:1.5rem}.estate-dialog-close{min-width:44px;flex-shrink:0;padding:6px 12px;font-size:1.3rem}.htmx-indicator{display:none}.htmx-request .htmx-indicator{display:block}@media(max-width:450px){.estate-dialog{padding:16px}.estate-dialog-header h2{font-size:1.25rem}}
/* One chronological conversation per contract. */
.estate-conversation{margin:0 0 24px;border-bottom:1px solid var(--line);padding-bottom:20px}.estate-conversation-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.estate-conversation-header h5{font-size:1.05rem;margin:0}.estate-conversation-stream{list-style:none;margin:14px 0;padding:12px;display:flex;flex-direction:column;gap:14px;max-height:62vh;overflow:auto;overscroll-behavior:contain;background:var(--surface-soft);border-radius:12px;border:1px solid var(--line)}.estate-message{width:88%;min-width:0;align-self:flex-start}.estate-message-outgoing{align-self:flex-end}.estate-message-internal{align-self:center;width:94%}.estate-message-bubble{background:var(--white);border:1px solid var(--line);border-radius:14px 14px 14px 3px;padding:12px 14px;overflow-wrap:anywhere}.estate-message-outgoing .estate-message-bubble{background:var(--mint);border-radius:14px 14px 3px 14px}.estate-message-internal .estate-message-bubble{border-style:dashed;border-radius:10px;background:var(--surface-soft)}.estate-message-bubble header{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:.8rem}.estate-message-bubble header time{color:var(--muted);font-size:.75rem}.estate-message-bubble h6{font-size:.95rem;margin:10px 0 6px}.estate-message-bubble p{font-size:.9rem;margin:8px 0;line-height:1.55}.estate-message-bubble .micro,.estate-message-state{font-size:.75rem!important;color:var(--muted)}.estate-message-bubble .estate-delivery{margin:8px 0 0}.estate-message-bubble details summary{font-size:.8rem;padding:8px 0}.estate-conversation-composer{margin-bottom:0}.estate-conversation-composer>form{margin-top:16px}.estate-dispatch-toggle>.estate-dispatch{border:0;padding-top:0;margin-top:12px}.estate-dispatch-toggle>summary{cursor:pointer}@media(max-width:600px){.estate-conversation-stream{padding:8px;max-height:65vh}.estate-message{width:96%}.estate-message-bubble{padding:10px}.estate-message-internal{width:100%}.estate-conversation-header h5{font-size:1rem}}
.estate-message-outgoing .estate-message-bubble time,.estate-message-outgoing .micro,.estate-message-outgoing .estate-message-state{color:var(--ink)}

.estate-powers > a,.estate-powers li > a{display:inline-block;min-height:24px;padding-block:3px}
/* Contract conversations: visible inbox state, message bubbles and a separate draft. */
.estate-contact-unread{border:2px solid var(--focus);box-shadow:0 3px 14px #18302b0b}.estate-contact>summary .estate-inbox-badge.has-unread,.estate-company-unread{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid var(--focus);border-radius:999px;background:var(--mint);color:var(--ink);font-size:.83rem;font-weight:750;line-height:1.4;white-space:normal}.estate-company-unread{margin-inline-start:12px;vertical-align:middle}.estate-contact-unread>summary{background:var(--surface-soft);border-radius:12px}.estate-contract-metadata{margin-bottom:22px;border-bottom:1px solid var(--line);padding-bottom:14px}.estate-contract-metadata>summary{font-size:.9rem;font-weight:650;cursor:pointer;padding:8px 0}.estate-conversation{border:0;padding:0}.estate-conversation-header{margin-bottom:16px}.estate-conversation-header h5{font-size:1.2rem;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.estate-conversation-header h5 small{font-size:.76rem;font-weight:500;color:var(--muted);background:var(--paper);padding:5px 8px;border-radius:8px}.estate-unread-banner{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border:2px solid var(--focus);background:var(--mint);border-radius:14px;padding:16px;margin:16px 0}.estate-unread-banner>div{flex:1;min-width:140px}.estate-unread-banner p{font-size:.85rem;margin:5px 0 0;color:var(--ink)}.estate-unread-banner strong{font-size:1rem}.estate-unread-symbol{display:grid;place-items:center;width:42px;height:42px;font-size:1.6rem;border-radius:12px;background:var(--white);color:var(--ink)}.estate-conversation-stream{padding:24px 18px;gap:24px;border:0;background:var(--paper);max-height:70vh;border-radius:16px;position:relative;scroll-behavior:smooth}.estate-message{display:flex;align-items:flex-start;gap:10px;width:85%;scroll-margin-block:18px}.estate-message-avatar{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;font-size:1.05rem;background:var(--white);color:var(--ink);border:1px solid var(--line)}.estate-message-bubble{flex:1;min-width:0;padding:16px 18px;box-shadow:0 3px 12px #102b2008;border-radius:2px 16px 16px 16px}.estate-message-outgoing{flex-direction:row-reverse}.estate-message-outgoing .estate-message-bubble{border-radius:16px 2px 16px 16px}.estate-message-outgoing .estate-message-avatar{background:var(--mint)}.estate-message-internal{width:88%}.estate-message-internal .estate-message-bubble{background:var(--white);border:1px dashed var(--line);box-shadow:none}.estate-message-unread .estate-message-bubble{border:2px solid var(--focus)}.estate-message-bubble header{justify-content:space-between;row-gap:6px}.estate-message-bubble header strong{font-size:.8rem}.estate-message-bubble h6{font-size:1.02rem}.estate-message-bubble p{line-height:1.65}.estate-message-bubble .estate-reply-new{color:var(--ink);background:var(--mint);border:1px solid var(--focus);border-radius:6px;padding:3px 7px;font-weight:750;font-size:.73rem}.estate-draft-composer{margin-top:24px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--white);box-shadow:0 4px 18px #18302b08}.estate-draft-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}.estate-draft-heading h5{font-size:1.1rem;margin:0}.estate-draft-heading p{margin:4px 0 0}.estate-draft-composer textarea{line-height:1.65;min-height:190px;resize:vertical}.estate-draft-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.estate-draft-footer .micro{flex:1;min-width:150px}.estate-conversation-composer{margin-top:16px}.estate-conversation-composer>summary{font-size:.85rem}.estate-conversation>form{margin-top:12px}@media(max-width:600px){.estate-conversation-stream{padding:16px 8px;gap:18px}.estate-message{width:97%;gap:6px}.estate-message-avatar{width:25px;height:25px;flex-basis:25px;font-size:.9rem}.estate-message-bubble{padding:12px}.estate-message-internal{width:97%}.estate-draft-composer{padding:14px}.estate-company-unread{margin:10px 0 0;display:table}.estate-unread-banner{padding:12px;gap:10px}.estate-unread-banner .button{width:100%}}@media(prefers-reduced-motion:reduce){.estate-conversation-stream{scroll-behavior:auto}}
.estate-pdf-preview{margin-top:12px;border:1px solid var(--line);border-radius:10px;background:var(--white);overflow:hidden}.estate-message-bubble .estate-pdf-preview>summary{padding:12px;font-weight:650;cursor:pointer}.estate-pdf-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:10px 12px;font-size:.8rem;border-top:1px solid var(--line)}.estate-pdf-toolbar span{overflow-wrap:anywhere;min-width:0}.estate-pdf-toolbar a{display:inline-block;min-height:24px}.estate-pdf-preview iframe{display:block;width:100%;height:min(70vh,720px);min-height:320px;border:0;border-block:1px solid var(--line);background:var(--paper)}.estate-pdf-preview>p{padding:0 12px}.estate-message:has(.estate-pdf-preview[open]){width:100%}@media(max-width:600px){.estate-pdf-preview iframe{min-height:280px;height:55vh}.estate-pdf-toolbar{padding:8px}}
.estate-statement-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.estate-statement-heading h2{margin:0 0 8px;font-size:1.2rem}.estate-statement-heading p{margin:0}.estate-statement-totals{display:flex;flex-direction:column;gap:5px;max-width:100%}.estate-statement-totals strong{font-size:1.2rem;overflow-wrap:anywhere}.estate-statement-totals small{color:var(--muted);font-size:.75rem}.estate-statement-bookings{margin:18px 0;border-block:1px solid var(--line);padding:12px 0}.estate-statement-bookings>summary{cursor:pointer;font-weight:650;padding:6px 0}.estate-statement-bookings .hero-actions{margin-top:14px}.estate-statement-booking-list{list-style:none;margin:12px 0;padding:0}.estate-statement-booking-list>li{padding:14px 0;border-bottom:1px solid var(--line)}.estate-statement-booking-list>li:last-child{border:0}.estate-statement-booking-heading{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.estate-statement-booking-heading label{margin:0}.estate-statement-booking-list blockquote{margin:8px 0;padding:12px;border-left:3px solid var(--line);font-size:.85rem}.estate-statement-booking-list p{overflow-wrap:anywhere}.estate-statement-reference-note{border-left:3px solid var(--focus);padding:10px 12px;background:var(--mint);border-radius:6px;font-size:.88rem}.estate-statement-applied{font-weight:650}.estate-statement-group form{margin-top:16px}@media(max-width:600px){.estate-statement-heading{gap:12px}.estate-statement-booking-heading{gap:10px}.estate-statement-booking-heading .micro{flex-basis:100%}}

.estate-ai-contact>a{display:inline-block;min-height:24px;padding-block:3px}

.estate-statement-workspace>a{display:inline-block;min-height:24px;padding-block:3px}

.estate-ai-contact{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.5fr);gap:20px}.estate-ai-contact>a,.estate-ai-contact>h1{grid-column:1/-1}.estate-ai-source{min-width:0;border:1px solid var(--line);padding:16px;border-radius:14px;background:var(--white);align-self:start}.estate-ai-source h2{font-size:1rem;margin:0 0 12px}.estate-ai-source img{display:block;width:100%;max-height:420px;object-fit:contain;background:#fff;border-radius:8px;margin-bottom:12px}.estate-ai-contact-result{min-width:0}.estate-ai-contact-result>p:first-child{margin-top:0}.estate-ai-contact-result .estate-fields{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:750px){.estate-ai-contact{grid-template-columns:minmax(0,1fr)}.estate-ai-source img{max-height:240px}.estate-ai-contact-result .estate-fields{grid-template-columns:minmax(0,1fr)}}

.estate-ai-contact:not(.has-source){display:block}

.estate-ai-uncertain{color:var(--focus);font-weight:700}.estate-messengers>summary{padding:10px 0;font-weight:650;cursor:pointer}

.estate-table-import{min-width:0}.estate-table-import h1{overflow-wrap:anywhere}.estate-table-import button,.estate-table-import .button{max-width:100%;white-space:normal}.estate-table-import input,.estate-table-import select,.estate-table-import textarea{max-width:100%;min-width:0}.estate-table-import .estate-fields>label{min-width:0}.estate-table-import .checkbox{overflow-wrap:anywhere}

.estate-checklist progress{width:100%;height:14px;accent-color:var(--orange)}.checklist-section{border-top:1px solid var(--line);margin-top:18px}.checklist-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.checklist-item{padding:8px 0;border-top:1px solid var(--line)}.checklist-item .checkbox{margin:0;min-height:44px;align-items:flex-start;overflow-wrap:anywhere}.checklist-item .checkbox input{flex-shrink:0;margin-top:3px}.checklist-complete .checkbox span{text-decoration:line-through;color:var(--muted)}

.site-dedication{width:100%;margin:16px 0 0;color:var(--muted);font-size:13px;line-height:1.6}

.estate-message-teaser{display:block;font-weight:400}.estate-message-full .estate-message-collapse{display:none}.estate-message-full[open] .estate-message-teaser,.estate-message-full[open] .estate-message-expand{display:none}.estate-message-full[open] .estate-message-collapse{display:inline}

.estate-email-reply{min-width:0}.estate-email-reply button,.estate-email-reply .button{max-width:100%;white-space:normal}.estate-email-reply h1{overflow-wrap:anywhere}.estate-email-reply input,.estate-email-reply select{min-width:0;max-width:100%}.estate-email-reply fieldset{min-width:0}

.estate-file-rename{margin:4px 0 12px;max-width:640px}.estate-file-rename form{padding:12px;border:1px solid var(--line);border-radius:8px}.estate-file-rename input{min-width:0;max-width:100%}.estate-file-rename button{max-width:100%;white-space:normal}

.estate-paperless progress{width:100%;height:14px;accent-color:var(--orange)}.estate-paperless button{max-width:100%;white-space:normal}.estate-paperless a{overflow-wrap:anywhere}

.cash-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.cash-summary .card{padding:18px}.cash-summary h3{font-size:15px;letter-spacing:0;margin:0 0 12px}.cash-total{font-size:24px;font-weight:750;overflow-wrap:anywhere;margin:8px 0}.cash-record{border-top:1px solid var(--line);margin-top:12px}.estate-cashbook input,.estate-cashbook select{min-width:0;max-width:100%}.estate-cashbook .estate-fields>*{min-width:0}.estate-cashbook form{margin-top:18px}.estate-cashbook button,.estate-cashbook .button{max-width:100%;white-space:normal}@media(max-width:950px){.cash-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.cash-summary{grid-template-columns:1fr}}

.estate-landing-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.estate-landing-features h3{font-size:19px;line-height:1.3;margin:18px 0 12px}.estate-landing-features p,.estate-landing-workflow p,.estate-landing-package p{line-height:1.7}.estate-landing-feature-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--mint);font-size:24px;font-weight:750}.estate-landing-art{position:relative;min-height:375px;margin:0 12px}.estate-landing-art-back{position:absolute;inset:8px 15px 20px;background:var(--mint);border:1px solid var(--line);border-radius:20px;transform:rotate(-7deg)}.estate-landing-art-front{position:relative;top:20px;transform:rotate(3deg);padding:30px;box-shadow:0 18px 40px #00000012}.estate-landing-art-front>strong{display:block;font-size:25px;margin-bottom:24px}.estate-landing-art-row{display:flex;gap:14px;align-items:center;border-top:1px solid var(--line);padding:16px 0;font-size:15px}.estate-landing-art-row>span{font-weight:800;color:var(--ink);width:22px}.estate-landing-workflow{display:flex;gap:24px;align-items:center;justify-content:space-between}.estate-landing-workflow>div{min-width:0}.estate-landing-workflow .hero-actions{flex-shrink:0}.estate-landing-price{font-size:32px;font-weight:800}.estate-landing-price span{display:block;font-size:14px;font-weight:400;color:var(--muted)}@media(max-width:850px){.estate-landing-features{grid-template-columns:repeat(2,minmax(0,1fr))}.estate-landing-workflow{display:block}}@media(max-width:600px){.estate-landing-features{grid-template-columns:1fr}.estate-landing-hero h1{font-size:42px;letter-spacing:-1.7px;overflow-wrap:anywhere}.estate-landing-art{margin:10px 6px 30px;min-height:360px}.estate-landing-art-front{padding:22px}.estate-landing-art-front>strong{font-size:23px}.estate-landing-hero{padding-top:45px;padding-bottom:35px}.estate-landing-workflow .hero-actions{flex-wrap:wrap}}

.estate-cashbook h2,.estate-cashbook h3{overflow-wrap:anywhere}

.estate-contact-transfer{min-width:0;overflow-wrap:anywhere}.estate-contact-transfer h1{overflow-wrap:anywhere}.estate-contact-transfer button,.estate-contact-transfer .button{max-width:100%;white-space:normal}.estate-contact-transfer input,.estate-contact-transfer select{max-width:100%;min-width:0}.estate-contact-transfer .hero-actions>form{max-width:100%;min-width:0}


.estate-addressbook-dialog{width:min(760px,calc(100% - 32px))}.estate-addressbook-dialog h1{font-size:1.35rem;letter-spacing:0;line-height:1.3}.estate-addressbook-dialog .estate-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}

/* Compact case identity and navigation remain available while reading. */
html{scroll-padding-top:calc(var(--estate-sticky-height,0px) + 16px)}.estate-case-navigation{position:sticky;top:0;z-index:20;background:var(--paper);border-bottom:1px solid var(--line);padding:10px 0 0;margin:20px 0;box-shadow:0 8px 14px -14px var(--ink)}.estate-case-name{display:flex;align-items:baseline;gap:10px;margin:0 0 6px;min-width:0;font-size:.9rem}.estate-case-name>span{color:var(--muted);flex-shrink:0;font-size:.75rem}.estate-case-name>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.estate-case-navigation .estate-tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:4px;border:0;margin:0;padding:4px 3px 10px;scrollbar-width:thin;scroll-padding-inline:4px}.estate-case-navigation .estate-tabs a{flex-shrink:0;white-space:nowrap;padding:10px 13px;font-size:.85rem}.estate-contact,.estate-draft-composer,[id^="nachricht-"],[id^="nachweis-"]{scroll-margin-top:calc(var(--estate-sticky-height,0px) + 16px)}@media print{.estate-case-navigation{position:static;box-shadow:none}.estate-case-navigation .estate-tabs{display:none}}@media(max-width:450px){.estate-case-name{display:block}.estate-case-name>span{display:none}.estate-case-name>strong{display:block}.estate-case-navigation{padding-top:8px}}

.estate-letter-generator-dialog{width:min(820px,calc(100% - 32px))}.estate-letter-generator-dialog .estate-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}.estate-letter-generator-dialog button{max-width:100%;white-space:normal}

.toast{color:var(--paper)}.estate-undo-toast{display:flex;align-items:center;gap:12px;flex-wrap:wrap;z-index:50;max-width:calc(100% - 24px)}.estate-undo-toast>span{flex:1;min-width:100px;overflow-wrap:anywhere}.estate-undo-toast form{margin:0}.estate-undo-toast .button{background:var(--paper);color:var(--ink);min-height:44px;padding:10px 14px}.estate-undo-close{font-size:1.2rem}.estate-undo-toast[hidden]{display:none}

.estate-case-navigation .estate-tabs a{display:inline-flex;align-items:center}[data-address-suggestions]{overflow-wrap:anywhere}[data-address-suggestion] button{max-width:100%;white-space:normal}

.estate-case-progress{display:grid;grid-template-columns:auto minmax(50px,1fr) auto;align-items:center;gap:10px;padding:2px 3px 9px;font-size:.8rem}.estate-case-progress a{white-space:nowrap;color:var(--ink);text-decoration:none}.estate-case-progress progress{display:block;width:100%;height:8px;accent-color:var(--accent,#d85a18)}.checklist-item>.checklist-action{margin:0 0 12px 30px}.estate-checklist .checklist-action{font-size:.8rem;padding:7px 12px}.estate-dialog [data-checklist-action] fieldset{margin-block:12px}.estate-dialog [data-checklist-action] details{padding:10px;border:1px solid var(--line);border-radius:8px}
/* Keep wrapped header links individually tappable on narrow English layouts. */
.header nav a{display:inline-flex;align-items:center;min-height:28px}
.estate-contract-cleanup{margin-bottom:16px}

:is(.estate-contact>summary,.estate-contract-listgroup a,.estate-partner-card>summary) .estate-contact-status{--status-ink:#805000;--status-fill:#aa6800;--status-bg:#fff3d6;display:flex;flex-direction:column;gap:6px;min-width:190px;max-width:100%;padding:10px 12px;border:1px solid var(--status-fill);border-radius:12px;background:var(--status-bg);color:var(--status-ink);font-size:.82rem;line-height:1.4}.estate-contact-status .estate-status-label{display:flex;align-items:center;gap:7px;font-weight:750}.estate-status-dot{width:9px;height:9px;flex:none;border-radius:50%;background:var(--status-fill)}.estate-status-step,.estate-status-due{font-size:.75rem}.estate-status-progress{display:block;width:100%;height:6px;margin:0;border:0;border-radius:8px;overflow:hidden;appearance:none;background:var(--line);accent-color:var(--status-fill)}.estate-status-progress::-webkit-progress-bar{background:var(--line);border-radius:8px}.estate-status-progress::-webkit-progress-value{background:var(--status-fill);border-radius:8px}.estate-status-progress::-moz-progress-bar{background:var(--status-fill);border-radius:8px}:is(.estate-contact>summary,.estate-contract-listgroup a,.estate-partner-card>summary) .estate-contact-status-red{--status-ink:#a12626;--status-fill:#b33434;--status-bg:#fff0ef}:is(.estate-contact>summary,.estate-contract-listgroup a,.estate-partner-card>summary) .estate-contact-status-green{--status-ink:#176134;--status-fill:#258345;--status-bg:#eaf7ee}:is(.estate-contact>summary,.estate-contract-listgroup a,.estate-partner-card>summary) .estate-contact-status-neutral{--status-ink:var(--muted);--status-fill:var(--muted);--status-bg:var(--paper)}[data-theme=dark] :is(.estate-contact>summary,.estate-contract-listgroup a,.estate-partner-card>summary) .estate-contact-status{--status-ink:#ffdb94;--status-fill:#e5b55a;--status-bg:#3a2e19}[data-theme=dark] :is(.estate-contact>summary,.estate-contract-listgroup a,.estate-partner-card>summary) .estate-contact-status-red{--status-ink:#ffb5af;--status-fill:#ed8b83;--status-bg:#3e2425}[data-theme=dark] :is(.estate-contact>summary,.estate-contract-listgroup a,.estate-partner-card>summary) .estate-contact-status-green{--status-ink:#a8e5bb;--status-fill:#71c58b;--status-bg:#193829}[data-theme=dark] :is(.estate-contact>summary,.estate-contract-listgroup a,.estate-partner-card>summary) .estate-contact-status-neutral{--status-ink:var(--muted);--status-fill:var(--muted);--status-bg:var(--paper)}@media(max-width:700px){:is(.estate-contact>summary,.estate-contract-listgroup a,.estate-partner-card>summary) .estate-contact-status{min-width:0;width:100%;margin-top:12px}}

.estate-local-pdf-frame{display:block;width:100%;height:70vh;min-height:400px;margin-top:20px;border:1px solid var(--line);border-radius:8px;background:var(--white)}

.estate-unread-alerts{border:2px solid var(--focus);background:var(--mint)}.estate-unread-alerts h2{font-size:1.2rem;margin-bottom:10px}.estate-unread-alerts ul{margin:0;padding-left:20px}.estate-unread-alerts li{margin:6px 0}.estate-unread-alerts a{display:inline-block;min-height:32px;padding:5px 0;overflow-wrap:anywhere}.estate-message:focus-visible{outline:3px solid var(--focus);outline-offset:4px}

#toast{display:flex;align-items:flex-start;gap:12px;z-index:100;max-width:min(600px,calc(100% - 24px))}#toast[hidden]{display:none}.toast-message{flex:1;white-space:pre-line;overflow-wrap:anywhere}.toast-close{flex:none;min-width:44px;min-height:44px;padding:6px;border:1px solid currentColor;border-radius:6px;background:transparent;color:inherit;font-size:24px;cursor:pointer}.toast-close:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

.estate-unread-alerts ul{list-style:none;padding:0}.estate-unread-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid var(--line)}.estate-unread-row>a{flex:1;min-width:0}.estate-mark-read{margin:0;flex-shrink:0}.estate-mark-read .button{min-height:44px;white-space:normal}.estate-unread-banner{flex-wrap:wrap}.estate-unread-banner .estate-mark-read{margin-inline-start:auto}
.estate-contract-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:24px}.estate-action-group{min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--white)}.estate-action-group:only-child{grid-column:1/-1}.estate-action-group>h5{margin:0 0 14px;font-size:.92rem}.estate-action-buttons{display:flex;flex-direction:column;align-items:stretch;gap:10px}.estate-action-buttons .button{margin:0;min-height:44px;text-align:center;white-space:normal;overflow-wrap:anywhere}.estate-contract-tools .section-space{margin-top:12px}.estate-contract-tools p{margin:10px 0}.estate-contract-tools .button{max-width:100%;min-height:44px;white-space:normal}.estate-contract-tools .estate-edit{margin-top:12px}.estate-contract-tools .estate-readonly{margin-top:16px}.estate-contract-admin{margin-top:24px;background:transparent}.estate-contract-cleanup{margin:0;gap:10px}.estate-dispatch-action-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;margin:20px 0}.estate-dispatch-action-groups fieldset{min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:10px}.estate-dispatch-action-groups legend{padding:0 5px;font-size:.85rem;font-weight:700}.estate-mail-send-block{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.estate-mail-send-block>h4{font-size:1rem;margin:0 0 12px}:root{--estate-danger:#9c2c21}:root[data-theme=dark]{--estate-danger:#ffb4a3}.estate-action-delete{color:var(--estate-danger)!important;border-color:currentColor!important}
@media(max-width:700px){.estate-contract-tools{grid-template-columns:1fr;gap:12px}.estate-action-group{padding:12px}.estate-unread-row{align-items:stretch;flex-direction:column;gap:10px}.estate-unread-row .estate-mark-read .button{width:100%}.estate-unread-banner .estate-mark-read{width:100%;margin-inline-start:0}.estate-unread-banner .estate-mark-read .button{width:100%}.estate-dispatch-action-groups{grid-template-columns:1fr}}

.estate-transfer-tools{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:20px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--white)}.estate-transfer-tools>div{min-width:0}.estate-transfer-tools>div:only-child{grid-column:1/-1}.estate-tool-label{display:block;font-size:.85rem;margin:0 0 10px}.estate-transfer-tools .hero-actions{margin:0;gap:8px}.estate-transfer-tools .button{max-width:100%;min-height:44px;white-space:normal}.estate-transfer-import .button{width:100%;text-align:center}@media(max-width:700px){.estate-transfer-tools{grid-template-columns:1fr;gap:16px}.estate-transfer-downloads .hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.estate-transfer-downloads .button{text-align:center;display:flex;align-items:center;justify-content:center}}

.estate-unread-alerts>.micro{color:var(--ink);line-height:1.5}.estate-contract-tools .estate-contract-metadata{margin-bottom:0;padding-bottom:0;border-bottom:0}.estate-contract-tools .estate-contract-metadata>summary::before{content:'▸';display:inline-block;margin-inline-end:8px}.estate-contract-tools .estate-contract-metadata[open]>summary::before{content:'▾'}.estate-contract-tools .estate-edit>summary{display:block;width:100%;text-align:center}

/* Keep the Telegram WebView focused on the current case. */
.telegram-mini-app{padding-top:var(--tg-content-safe-area-inset-top,0px);padding-bottom:var(--tg-content-safe-area-inset-bottom,0px)}.telegram-mini-app .header{min-height:64px;padding-top:10px;padding-bottom:10px}.telegram-mini-app .header>nav{display:none}.telegram-mini-app .brand{font-size:18px}.telegram-mini-app .brand-icon{width:34px;height:34px;font-size:28px}.telegram-mini-app .preferences{padding-top:6px}.telegram-mini-app #main-content{padding-top:12px}

.estate-partner-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:16px;margin-top:20px;align-items:start}.estate-partner-card{margin:0;min-width:0}.estate-partner-card>summary{display:flex;justify-content:space-between;gap:12px;align-items:center}.estate-partner-card>summary strong{overflow-wrap:anywhere}.estate-partner-card>summary span{font-size:.85rem;white-space:nowrap}.estate-contract-listgroup{list-style:none;padding:0;margin:0 0 16px;border:1px solid var(--line);border-radius:12px;overflow:hidden}.estate-contract-listgroup>li+li{border-top:1px solid var(--line)}.estate-contract-listgroup a{display:flex;flex-direction:column;gap:8px;padding:16px;text-decoration:none}.estate-contract-listgroup a:hover{background:var(--mint)}.estate-contract-listgroup .estate-contact-status{max-width:100%;min-width:0}.estate-contract-toc ul{columns:3;list-style:none;padding:0;gap:20px}.estate-contract-toc li{break-inside:avoid;margin-bottom:8px}.estate-contract-toc a{display:inline-block;padding:8px 0}.estate-contract-suggestions{grid-column:1/-1}.estate-contract-suggestions>.estate-partner-card{margin:12px 0}@media(max-width:700px){.estate-contract-toc ul{columns:1}}
.estate-contract-toc{display:block;font-size:1rem}.estate-contract-toc h2{font-size:1.15rem;margin-bottom:12px}.estate-contract-toc ul{margin:0}.estate-contract-toc li{overflow-wrap:anywhere}

.estate-dialog.estate-dialog-container{width:min(1160px,calc(100% - 32px));max-width:none}.estate-receipt-sources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.estate-receipt-source{min-width:0;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.estate-receipt-source h3{font-size:1rem;margin:0 0 12px}.estate-receipt-existing{grid-column:1/-1}.estate-receipt-source input[type=file]{max-width:100%}.estate-receipt-source .button{white-space:normal}@media(max-width:700px){.estate-receipt-sources{grid-template-columns:1fr}.estate-receipt-existing{grid-column:auto}}

.checklist-absent .checklist-absent-label{color:var(--estate-danger,#9c2c21);font-weight:600}.checklist-absent-label{margin:0;line-height:1.6}.checklist-resolution{margin:0 8px;font-size:.85rem}.checklist-resolution>summary{padding:8px;min-height:44px}.checklist-resolution form{min-width:min(100%,250px)}.estate-attachment-default{margin:12px 0}.estate-attachment-default .checkbox{margin-bottom:4px}

.estate-personal-signature canvas{display:block;width:min(100%,600px);height:auto;aspect-ratio:10/3;background:#fff;border:1px solid var(--line);border-radius:10px;touch-action:none;margin:12px 0}.estate-signature-preview{max-width:min(100%,300px);height:auto;background:#fff;border-radius:6px;padding:8px}.estate-personal-signature{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:12px}
.estate-letter-generator-dialog .checkbox{min-height:32px;align-items:center}.estate-letter-generator-dialog .checkbox input{width:24px;height:24px}
.estate-partner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.estate-contract-listgroup .estate-contract-row>a{flex-direction:row;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px}.estate-contract-row-name{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}.estate-contract-row-name small{color:var(--muted);font-size:.75rem}.estate-contract-listgroup a .estate-status-badge,.estate-partner-card>summary .estate-status-badge{display:inline-flex;flex:none;flex-direction:row;align-items:center;gap:6px;width:auto;min-width:0;max-width:none;margin:0;padding:4px 8px;border-radius:999px;font-size:.75rem;line-height:1.3;white-space:nowrap}.estate-contract-status-form{display:flex;align-items:center;gap:8px;margin:0;padding:0 12px 10px}.estate-contract-status-form label{margin:0;font-size:.75rem;color:var(--muted)}.estate-contract-status-form select{flex:1;min-width:0;width:auto;min-height:44px;margin:0;padding:7px 8px;font-size:.8rem}.estate-contract-status-error{padding:0 12px 12px;margin:0;color:var(--estate-danger,#9c2c21);font-size:.85rem}.estate-contract-row>a:focus-visible{outline:3px solid var(--orange);outline-offset:-3px}@media(max-width:700px){.estate-partner-grid{grid-template-columns:minmax(0,1fr)}}

.estate-partner-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}.estate-partner-heading h2{font-size:1rem;line-height:1.4;letter-spacing:normal;margin:0;overflow-wrap:anywhere;min-width:0}.estate-partner-heading>span{font-size:.8rem;white-space:nowrap;color:var(--muted)}.estate-partner-card{scroll-margin-top:180px}.estate-partner-card .estate-contract-listgroup{margin-bottom:12px}

.estate-contract-toc-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}.estate-contract-toc-types section{min-width:0}.estate-contract-toc-types h3{font-size:.9rem;margin:0 0 4px;color:var(--muted)}.estate-contract-toc-types ul{columns:auto;margin:0}.estate-contract-toc-types a{overflow-wrap:anywhere}@media(max-width:700px){.estate-contract-toc-types{grid-template-columns:minmax(0,1fr)}}
.estate-contract-tools .estate-contract-admin{margin-top:16px;padding:14px 0 0;border:0;border-top:1px solid var(--line);border-radius:0}

@media (max-width: 600px) {
    .estate-site-header { flex-wrap: wrap; gap: 8px; padding-block: 14px; }
    .estate-site-header nav { flex-wrap: wrap; }
    .estate-site-header nav > a:first-child { display: inline-block; }
}

.estate-landing-features {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
}

@media (max-width: 700px) {
    .estate-site .estate-landing-features,
    .estate-site .estate-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .estate-site .wrap {
        padding-inline: clamp(16px, 5vw, 24px);
    }

    .estate-site main {
        font-size: 1.0625rem;
        line-height: 1.55;
    }

    .estate-site main h1 {
        font-size: clamp(2rem, 8vw, 2.625rem);
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .estate-site main h2 {
        font-size: clamp(1.375rem, 5.5vw, 1.75rem);
        line-height: 1.25;
    }

    .estate-site .estate-landing-features h3 {
        font-size: 1.25rem;
    }

    .estate-site main .button,
    .estate-site main input,
    .estate-site main select,
    .estate-site main textarea,
    .estate-site dialog :is(.button, input, select, textarea) {
        font-size: 1rem;
    }

    .estate-site main .button,
    .estate-site .estate-site-header nav a {
        min-height: 44px;
    }

    .estate-site .estate-site-header nav a {
        display: inline-flex;
        align-items: center;
        font-size: .9375rem;
    }

    .estate-site .estate-landing-hero .intro {
        font-size: 1.0625rem;
    }

    .estate-site .estate-landing-hero .hero-actions > .button {
        flex: 1 1 100%;
    }
}

@media (max-width: 700px) {
    main :is(.field-pair, .address-pair, .estate-fields, .cash-summary),
    dialog :is(.field-pair, .address-pair, .estate-fields),
    .estate-transfer-downloads .hero-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    :is(main, dialog) form :is(label, legend) {
        font-size: 1rem;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    :is(main, dialog) form :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea) {
        min-width: 0;
        max-width: 100%;
        min-height: 44px;
        font-size: 1rem;
    }

    :is(main, dialog) form :is(input[type="checkbox"], input[type="radio"]) {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    :is(main, dialog) form label.checkbox {
        min-height: 44px;
        align-items: center;
    }

    :is(main, dialog) form .button,
    :is(main, dialog) summary.button {
        min-height: 44px;
        max-width: 100%;
        font-size: 1rem;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    :is(main, dialog) fieldset {
        min-inline-size: 0;
    }

    .estate-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    dialog.estate-dialog,
    dialog.estate-dialog.estate-dialog-container {
        width: calc(100% - 16px);
        max-width: none;
        max-height: calc(100dvh - 16px);
        padding: 16px;
    }

    .estate-dialog-header > :is(h1, h2) {
        min-width: 0;
        font-size: 1.375rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .estate-dialog p,
    .estate-contract-info :is(p, dd) {
        overflow-wrap: anywhere;
    }

    .estate-site .estate-company,
    .estate-site .estate-contact {
        padding: 12px;
    }

    .estate-site .estate-company-contracts {
        padding-inline-start: 0;
        border-inline-start: 0;
    }
}

@media (max-width: 800px) {
    .header:has(.app-primary-nav) {
        flex-wrap: wrap;
        gap: 8px 16px;
        padding-block: 14px;
    }

    .header .app-primary-nav {
        flex-wrap: wrap;
        gap: 4px 16px;
    }

    .header .app-primary-nav > a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-size: .9375rem;
    }
}

.app-primary-nav > a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: .3em;
}

/* Keep Home visible when the compact header hides its first legacy link. */
.header .app-primary-nav > a.nav-home:first-child {
    display: inline-flex;
    align-items: center;
}

/* Foldable inner screens and landscape phones can exceed phone-width breakpoints. */
@media (max-width: 700px), (max-width: 1050px) and (pointer: coarse) {
    main.wrap {
        font-size: 1.1875rem;
        line-height: 1.6;
        padding-inline: clamp(12px, 4vw, 24px);
    }

    main.wrap :is(h1, .page-heading h1) {
        font-size: clamp(2rem, 7vw, 2.75rem);
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    main.wrap :is(h2, .section-heading h2) {
        font-size: clamp(1.5rem, 5vw, 2rem);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    main.wrap :is(h3, .estate-landing-features h3) {
        font-size: 1.375rem;
        line-height: 1.3;
    }

    main.wrap :is(.intro, .page-heading p:not(.eyebrow), .estate-landing-hero .intro),
    dialog p {
        font-size: 1.1875rem;
    }

    main.wrap :is(.micro, small), dialog :is(.micro, small) {
        font-size: .9375rem;
    }

    :is(main.wrap, dialog.estate-dialog, dialog.ceneos-paperless-picker) :is(.button, form label, form legend, form select, form textarea,
        form input:not([type="checkbox"], [type="radio"], [type="hidden"])),
    .header.wrap .app-primary-nav > a {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    :is(main.wrap, dialog.estate-dialog, dialog.ceneos-paperless-picker) :is(.button, form select,
        form input:not([type="checkbox"], [type="radio"], [type="hidden"])),
    .header.wrap .app-primary-nav > a {
        min-height: 48px;
    }

    .header .app-primary-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 14px;
    }

    main.wrap :is(.estate-landing-features, .estate-grid, .order-grid, .checkout-grid, .account-grid),
    :is(main.wrap, dialog.estate-dialog, dialog.ceneos-paperless-picker) :is(.estate-fields, .field-pair, .address-pair) {
        grid-template-columns: minmax(0, 1fr);
    }

    main.wrap :is(.hero, .mcp-teaser) {
        grid-template-columns: minmax(0, 1fr);
    }

    main .estate-landing-art {
        width: min(calc(100% - 32px), 420px);
        min-height: 0;
        margin: 12px auto 24px;
    }

    main .estate-landing-art-front {
        top: 0;
        padding: clamp(16px, 4vw, 28px);
    }

    main .paper-art {
        display: block;
        width: min(100%, 360px);
        height: 292px;
        justify-self: center;
        margin: 12px 0 0;
        transform: none;
    }

    main .paper-back,
    main .paper-front {
        width: clamp(150px, 56vw, 210px);
        height: 235px;
        left: calc(50% - clamp(75px, 28vw, 105px));
    }

    main .paper-back {
        transform: translateX(-12px) rotate(-9deg);
    }

    main .paper-front {
        padding: 24px 18px;
        transform: translateX(10px) rotate(6deg);
    }

    main .paper-stamp {
        right: -12px;
        width: 64px;
        height: 64px;
    }

    dialog.estate-dialog,
    dialog.estate-dialog.estate-dialog-container {
        width: min(760px, calc(100% - 16px));
        max-height: calc(100dvh - 16px);
        padding: 16px;
    }

    .estate-case-navigation .estate-tabs a {
        font-size: 1rem;
        min-height: 48px;
    }
}

@media (max-width: 800px) {
    .header .app-menu-toggle {
        margin-inline-start: auto;
        min-height: 48px;
        padding: 8px 14px;
        gap: 10px;
        font-size: 1.125rem;
    }

    .header .app-primary-nav {
        flex-basis: 100%;
    }
}
