@font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:url(vendor/material-icons.woff2) format('woff2')}.material-icons{font-family:'Material Icons';font-weight:normal;font-style:normal;font-size:24px;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;font-feature-settings:'liga'}
:root{--wine:#721c35;--deep:#491023;--rose:#f8edf0;--ink:#252a36;--muted:#78808c;--line:#e6e7eb;--gold:#c49d67;--surface:#f5f6f8}*{box-sizing:border-box}body{margin:0;font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:14px;line-height:1.6;color:var(--ink);background:var(--surface)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}h1,h2,h3,h4,p{margin:0 0 12px}h1{font-size:30px;font-weight:700;line-height:1.25;letter-spacing:-.8px}h2{font-size:20px;font-weight:650;line-height:1.35;letter-spacing:-.3px}h3{font-size:16px;font-weight:650}h4{font-weight:600}small{font-size:12px}hr{border:0;border-top:1px solid var(--line);margin:24px 0}.muted,.small-note{color:var(--muted)}.small-note{font-size:12px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:2px;color:var(--wine);margin-bottom:9px}.eyebrow.light{color:#e1b7c4}.brand{display:flex;align-items:center;gap:13px;font-size:26px;font-weight:700;letter-spacing:-.8px;line-height:1.2}.brand small{display:block;font-size:9px;letter-spacing:1.5px;font-weight:500;margin-top:7px;color:#d3aeb9}.seal{height:48px;width:48px;border:1px solid #b7768a;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:29px}.brand.dark{color:var(--wine)}.brand.dark small{color:#7b7276}.sidebar{width:260px;position:fixed;inset:0 auto 0 0;background:linear-gradient(170deg,#701b35,#491023);color:#fff;display:flex;flex-direction:column;padding:32px 18px 20px;z-index:30;overflow:auto;transition:transform .2s}.sidebar .brand{padding:0 12px 27px;border-bottom:1px solid #ffffff21}.nav-label{font-size:9px;letter-spacing:2px;color:#cda4b0;margin:23px 15px 12px}.nav-link{display:flex;gap:13px;align-items:center;padding:12px 15px;margin:3px 0;border-radius:9px;color:#e5ced5;font-size:12px;font-weight:500}.nav-link .material-icons{font-size:21px}.nav-link:hover{background:#ffffff0f}.nav-link.active{background:white;color:var(--wine);box-shadow:0 5px 18px #25071430}.sidebar-bottom{margin-top:auto;padding:30px 15px 0;display:flex;gap:12px;align-items:center;color:#cfa9b6;font-size:11px}.sidebar-bottom strong{color:#fff}.workspace{margin-left:260px;transition:margin .2s}.topbar{height:88px;background:#fff;border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20}.topbar strong{font-size:12px}.topbar small{display:block;color:var(--muted);font-size:9px;letter-spacing:1px}.top-user{display:flex;align-items:center;gap:12px}.avatar{width:38px;height:38px;background:var(--rose);border:1px solid #e9d3da;border-radius:50%;display:grid;place-items:center;font-weight:700;color:var(--wine)}.icon-button{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;width:36px;height:36px;color:var(--muted);border-radius:6px;font-size:24px}.icon-button:hover{background:var(--rose);color:var(--wine)}.main-content{padding:30px 32px;max-width:none;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:15px}.page-heading h1{font-size:27px;margin:0}.page-heading .eyebrow{margin-bottom:6px}.date-chip{font-size:11px;color:#757b85;background:#fff;border:1px solid var(--line);border-radius:6px;padding:8px 12px}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:24px;margin-bottom:24px;box-shadow:0 3px 12px #19213b03}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.panel-heading h2,.panel-heading h3{margin-bottom:5px}.panel-heading p{margin:0;font-size:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--wine);background:var(--wine);color:#fff;border-radius:7px;padding:11px 17px;font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap;transition:background .15s}.btn:hover{background:var(--deep)}.btn .material-icons{font-size:18px}.btn.secondary{background:white;border-color:#dedee5;color:var(--ink)}.btn.secondary:hover{background:#f6f4f5}.btn.ghost{background:transparent;border-color:transparent;color:var(--wine)}.btn.small{padding:7px 11px;font-size:11px}.btn.white{background:white;border-color:white;color:var(--wine)}.btn.danger{background:#fff0f1;color:#ab2943;border-color:#efc8d0}.text-link{color:var(--wine);font-weight:600;font-size:12px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field>span{font-size:12px;font-weight:600;color:#4b505b}input:not([type=checkbox]):not([type=hidden]),select,textarea{border:1px solid #cdd1da!important;border-radius:7px;padding:11px 12px;background:#fff;color:var(--ink);width:100%;min-height:43px}input:focus,select:focus,textarea:focus{outline:2px solid #721c3520;border-color:var(--wine)!important}input[type=file]{font-size:11px;padding:9px!important}textarea{resize:vertical}input[type=checkbox]{accent-color:var(--wine)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px;margin-top:20px}.span-2{grid-column:1/-1}.narrow{max-width:900px}.check-row{display:flex;gap:8px;align-items:center;font-size:12px}.filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin:0 0 24px}.filters .field{min-width:145px;max-width:250px;flex:1}.filters input,.filters select{font-size:12px}.search-row{display:flex;gap:10px;margin-bottom:20px;max-width:430px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{background:#fafafb;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 15px;color:#7e818d;font-size:10px;text-transform:uppercase;letter-spacing:.65px;font-weight:600;white-space:nowrap}td{padding:17px 15px;border-bottom:1px solid #eeeef2;vertical-align:middle}td strong{font-weight:600}td small{display:block;color:var(--muted);font-size:10px;margin-top:5px}tbody tr:hover{background:#fdfafb}.actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.actions form{margin:0}.badge{display:inline-block;padding:4px 9px;border-radius:5px;font-size:10px;font-weight:650;white-space:nowrap;background:#edf0f4;color:#61697a;text-transform:capitalize}.badge.submitted,.badge.pending{background:#fff4df;color:#9c6d1c}.badge.revision,.badge.rejected{background:#fce8ed;color:#a42d4e}.badge.assessed{background:#ece9fc;color:#6b51ae}.badge.paid,.badge.verified,.badge.released{background:#e8f5ed;color:#34805a}.badge.ready{background:#e6f1fb;color:#3972a8}.badge.cancelled{background:#edeef0;color:#82858e}.pagination{display:flex;align-items:center;justify-content:space-between;margin-top:18px;font-size:11px;color:var(--muted)}.empty{text-align:center!important;color:var(--muted);padding:30px!important}.notice{background:#fbf2e8;border:1px solid #ecd9c2;color:#8d6739;padding:16px 18px;border-radius:8px;margin-bottom:24px;display:flex;gap:12px;align-items:flex-start;font-size:12px}.notice p{margin:0}.notice:has(strong){display:block}.notice strong{display:block;margin-bottom:5px}.welcome-banner{background:linear-gradient(110deg,#721c35,#963d56);padding:27px 30px;border-radius:12px;color:white;margin-bottom:26px;display:flex;justify-content:space-between;align-items:center;overflow:hidden}.welcome-banner h2{font-size:25px}.welcome-banner p:last-child{margin:0;color:#e9cbd5;font-size:12px}.welcome-banner>.material-icons{font-size:95px;color:#ffffff22}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.stats-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card{background:white;border:1px solid var(--line);border-radius:11px;padding:21px;box-shadow:0 3px 9px #18213703}.stat-card>div{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;gap:8px}.stat-card span:not(.material-icons){font-size:11px;color:#777b89}.stat-card .material-icons{font-size:20px;color:var(--wine);padding:9px;background:var(--rose);border-radius:8px}.stat-card>strong{display:block;font-size:27px;line-height:1.3;font-weight:700;letter-spacing:-.8px;margin-bottom:10px;overflow-wrap:anywhere}.stat-card small{font-size:9px;color:#9b9eaa}.chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.chart-box{height:260px;position:relative}.chart-empty{text-align:center;font-size:11px;color:var(--muted);margin-top:12px}.office-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.office-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.feature-icon{color:var(--wine);background:var(--rose);padding:13px;border-radius:10px;font-size:28px}.code-chip{font-size:9px;letter-spacing:.5px;color:var(--muted)}.office-card .muted{font-size:12px}.document-list{border-top:1px solid var(--line);margin-top:20px}.document-list details{border-bottom:1px solid var(--line);padding:15px 0}.document-list summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:600;list-style:none}.document-list summary small{display:block;color:var(--muted);font-weight:400;font-size:11px;margin-top:4px}.document-list details>p{font-size:12px;margin-top:14px}.requirements{padding-left:20px;list-style:disc;color:#6a6f7c;margin:10px 0 20px;font-size:12px}.requirements li{margin:7px 0}.detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:24px}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:24px 0}dt{font-size:10px;color:var(--muted);margin-bottom:4px;text-transform:uppercase;letter-spacing:.7px}dd{margin:0;font-size:13px;font-weight:500}.fee{font-size:20px;font-weight:700;color:var(--wine)}.pre-wrap{white-space:pre-wrap}.file-list>a{display:flex;align-items:center;gap:11px;padding:13px;border:1px solid var(--line);border-radius:7px;margin-bottom:10px;color:var(--wine);font-size:12px}.file-list>a>span:nth-child(2){flex:1}.file-list small{display:block;color:var(--muted);font-size:10px}.timeline{list-style:none;padding:0;margin:22px 0 0}.timeline li{border-left:2px solid #e9d3da;padding:0 0 24px 18px;position:relative}.timeline li:before{content:'';width:10px;height:10px;border-radius:50%;background:var(--wine);position:absolute;left:-6px;top:5px;border:2px solid white}.timeline strong{font-size:12px}.timeline p{font-size:12px;color:#737988;margin:5px 0}.timeline small{font-size:9px;color:#999da8}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.payment-account{border:1px solid var(--line);border-radius:8px;padding:18px}.qr-preview{width:160px;height:160px;object-fit:contain;background:white}.payment-entry{border-top:1px solid var(--line);padding:20px 0}.payment-entry>p{font-size:12px}.payment-entry .notice{margin-top:20px}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;width:min(720px,calc(100% - 30px));max-height:90vh;overflow:auto;box-shadow:0 30px 80px #1e0c2840;color:var(--ink);background:white}dialog::backdrop{background:#1a102967;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:18px}.dialog-heading h2{margin:0}.dialog-heading+p{margin-top:20px}.footer{display:flex;justify-content:space-between;font-size:10px;color:#9b9faa;border-top:1px solid var(--line);padding-top:20px;margin-top:32px}.public-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 7%;background:white;border-bottom:1px solid var(--line)}.public-header nav{display:flex;gap:27px;align-items:center;font-size:12px;font-weight:600}.public-footer{text-align:center;color:var(--muted);padding:28px;font-size:11px;background:white;border-top:1px solid var(--line)}.hero{background:linear-gradient(115deg,#4d1026,#7c2643);color:white;min-height:520px;padding:65px 8%;display:flex;align-items:center;gap:60px;overflow:hidden}.hero-copy{flex:1}.hero h1{font-size:64px;letter-spacing:-2.5px;line-height:1.12;margin:25px 0}.hero h1 em{font-style:normal;color:#e0bb8a}.hero-copy>p:not(.eyebrow){font-size:16px;color:#e2c5cf;max-width:480px;line-height:1.9}.hero-actions{display:flex;align-items:center;gap:24px;margin-top:30px;font-size:12px}.hero-caption{display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:.4px;color:#c8a7b2;margin-top:35px}.hero-caption .material-icons{font-size:16px}.civic-art{width:350px;height:350px;flex-shrink:0;border:1px solid #ffffff29;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;outline:1px solid #ffffff0d;outline-offset:22px;background:radial-gradient(circle,#ffffff0a,transparent)}.civic-art>.material-icons{font-size:155px;color:#deb88b}.civic-art p{font-size:9px;letter-spacing:3px;color:#d2afbd;margin:14px 0 6px}.civic-art strong{font-size:27px;letter-spacing:5px;font-weight:500}.civic-line{height:1px;background:#cba78070;width:150px}.landing-section{padding:50px 8%}.section-title{margin-bottom:24px}.section-title h2{font-size:27px}.service-step{position:relative;padding:27px}.service-step h3{margin:20px 0 12px}.service-step p{font-size:12px;color:var(--muted);line-height:1.9}.step-number{position:absolute;right:25px;top:25px;font-size:35px;font-weight:700;color:#ede7ea}.notice-band{display:flex;align-items:center;gap:22px;margin:0 8% 50px;padding:26px 30px;background:#ece5e8;border-left:3px solid var(--wine);border-radius:8px}.notice-band>.material-icons{font-size:33px;color:var(--wine)}.notice-band h3{margin:0 0 5px}.notice-band p{margin:0;color:#7e6b73;font-size:12px}.auth-shell{display:grid;grid-template-columns:.85fr 1.15fr;max-width:1100px;margin:55px auto;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 20px 80px #29213508}.auth-story{background:linear-gradient(145deg,#701c35,#471124);padding:50px;color:#fff;display:flex;flex-direction:column;justify-content:center}.auth-story h1{font-size:38px;line-height:1.3;margin-top:18px}.auth-story>p:not(.eyebrow){font-size:13px;color:#d6b3c0;line-height:1.9}.auth-building{font-size:130px;color:#c79865;margin:45px 0 25px}.auth-story small{font-size:11px;color:#d6b3c0}.auth-form{background:white;padding:45px}.auth-form h2{font-size:29px}.auth-form>.muted{font-size:12px}.auth-switch{font-size:12px;margin-top:24px}.auth-switch a{color:var(--wine);font-weight:650}.print-toolbar{display:flex;gap:10px;margin-bottom:20px}.receipt-sheet{max-width:850px;margin:0 auto;background:white;border:1px solid #ddd;padding:55px 65px}.receipt-header{text-align:center}.receipt-header>.material-icons{font-size:55px;color:var(--wine)}.receipt-header>p{font-size:10px;letter-spacing:1px}.receipt-header h1{font-size:25px}.receipt-meta{display:flex;justify-content:space-between;margin:30px 0}.receipt-meta span{font-size:9px;color:var(--muted)}.receipt-meta strong{display:block;font-size:12px;color:var(--ink);margin-top:6px}.receipt-total{background:var(--rose);padding:20px;display:flex;justify-content:space-between;color:var(--wine);align-items:center;margin-top:20px}.receipt-total strong{font-size:26px}.receipt-signature{margin:50px 0;text-align:right}.receipt-signature strong{display:block}.receipt-signature span{font-size:10px;color:var(--muted)}.flash-fallback{position:fixed;bottom:20px;right:20px;max-width:450px;z-index:99;background:white;border:1px solid var(--wine);box-shadow:0 10px 40px #0002;padding:20px;border-radius:10px}.swal2-popup{font-size:14px!important}.swal2-confirm{background:var(--wine)!important}
@media(max-width:1200px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-grid{grid-template-columns:1fr}.hero h1{font-size:50px}.civic-art{width:280px;height:280px}.civic-art>.material-icons{font-size:120px}.main-content{padding:25px}.detail-grid{grid-template-columns:1fr}.auth-shell{margin:35px 25px}}
@media(max-width:900px){.hero{padding:45px 7%;gap:25px}.civic-art{display:none}.hero h1{font-size:54px}.auth-story{padding:30px}.auth-story h1{font-size:30px}.auth-form{padding:30px}.office-grid{grid-template-columns:1fr}.public-header .brand small{max-width:160px}.topbar{padding:0 20px}}
@media(max-width:600px){.main-content{padding:20px 14px}.page-heading{align-items:flex-start}.date-chip{display:none}.topbar{height:74px;padding:0 12px}.top-user>div{display:none}.topbar strong{font-size:10px}.topbar small{font-size:8px}.panel{padding:18px}.stats-grid{gap:10px}.stat-card{padding:15px}.stat-card>strong{font-size:24px}.stat-card .material-icons{font-size:17px;padding:7px}.stat-card small{font-size:8px}.welcome-banner{padding:22px}.welcome-banner>.material-icons{display:none}.welcome-banner h2{font-size:23px}.panel-heading{align-items:flex-start;flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.field{grid-column:1/-1}.filters .field{min-width:120px}.account-grid{grid-template-columns:1fr}.public-header{padding:18px}.public-header .brand{font-size:22px}.public-header .seal{width:38px;height:38px}.public-header nav{gap:12px}.public-header nav>a:first-child{display:none}.public-header .brand small{display:none}.public-header .btn{font-size:10px;padding:9px}.hero h1{font-size:46px}.hero-copy>p:not(.eyebrow){font-size:14px}.hero-actions{flex-wrap:wrap;gap:18px}.landing-section{padding:35px 6%}.notice-band{margin:0 6% 35px;padding:20px}.auth-shell{display:block;margin:25px 14px}.auth-story{display:none}.auth-form{padding:25px}.footer{font-size:9px}.footer span{display:none}.receipt-sheet{padding:25px 20px}.receipt-meta{gap:15px}.receipt-total strong{font-size:22px}.print-toolbar{flex-wrap:wrap}.info-grid{gap:16px}.page-heading h1{font-size:25px}.chart-box{height:230px}}
@media print{body{background:#fff;color:#000;font-size:11px}.sidebar,.topbar,.page-heading,.footer,.print-toolbar,.filters,.pagination,.flash-fallback,.swal2-container{display:none!important}.workspace{margin:0!important}.main-content{padding:0}.receipt-sheet{border:0;padding:0;max-width:none}.panel{box-shadow:none;border:0;padding:12px 0;break-inside:avoid;margin:0 0 15px}.table-wrap{overflow:visible}table{font-size:10px}td,th{padding:8px}.btn{display:none}.receipt-total{print-color-adjust:exact}.receipt-header h1{font-size:23px}.stats-grid{grid-template-columns:1fr 1fr}.stat-card{border:0}.receipt-signature{margin:35px 0}@page{size:A4;margin:16mm}}

/* Square form surfaces and white feature headings. */
.panel,dialog,.auth-shell,.auth-form,.payment-account,.logo-setting,
input:not([type=checkbox]):not([type=hidden]),select,textarea,.btn,.swal2-popup{
    border-radius:0!important;
}
.page-heading{
    background:#fff;
    border:1px solid var(--line);
    padding:22px 24px;
    border-radius:0;
}
.brand-logos{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0}
.brand-logos:empty{display:none}
.brand-logo{width:44px;height:44px;object-fit:contain;background:#fff;padding:3px;flex-shrink:0}
.brand-copy{min-width:0;overflow-wrap:anywhere}
.sidebar .brand{flex-wrap:wrap;font-size:23px}
.sidebar .brand-copy{width:100%}
.sidebar .brand small{line-height:1.6;letter-spacing:.7px}
.public-header .brand{font-size:23px;max-width:65%}
.public-header .brand small{line-height:1.5;letter-spacing:.5px}
.top-identity{display:flex;align-items:center;gap:14px;min-width:0}
.top-identity-copy{min-width:0;overflow-wrap:anywhere}
.top-identity-copy small{line-height:1.5;letter-spacing:.5px}
.top-user{flex-shrink:0}
.topbar{gap:14px;min-height:88px;height:auto;padding-top:16px;padding-bottom:16px}
.logo-setting{border:1px solid var(--line);padding:18px;display:grid;gap:14px}
.settings-logo{width:110px;height:110px;object-fit:contain;background:white}
.receipt-header .brand-logos{margin-bottom:16px}
.receipt-header .brand-logo{width:70px;height:70px}
.sidebar{transition:width .2s,padding .2s;transform:none}
.sidebar-collapsed .sidebar{width:80px;padding-left:10px;padding-right:10px}
.sidebar-collapsed .workspace{margin-left:80px}
.sidebar-collapsed .brand{justify-content:center;padding:0 0 22px;gap:0}
.sidebar-collapsed .brand-copy,.sidebar-collapsed .nav-text,.sidebar-collapsed .nav-label{display:none}
.sidebar-collapsed .brand-logos{flex-direction:column;gap:6px}
.sidebar-collapsed .brand-logo{width:38px;height:38px}
.sidebar-collapsed .nav-link{justify-content:center;padding:13px 0;margin:5px 0}
.sidebar-collapsed .sidebar nav{margin-top:16px}
.sidebar-collapsed .sidebar-bottom{justify-content:center;padding:25px 0 0}
.page-buttons{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pagination{gap:14px;flex-wrap:wrap}
@media(max-width:900px){
    .topbar{padding-left:10px;padding-right:10px}
    .top-identity{gap:8px}
    .top-identity .brand-logo{width:30px;height:30px}
    .top-identity .brand-logos{gap:4px}
    .top-identity-copy small{font-size:8px}
    .public-header{flex-wrap:wrap}
    .public-header .brand{max-width:100%}
}
@media(max-width:600px){
    .topbar{flex-wrap:wrap;padding:10px 8px;gap:6px}
    .top-identity{width:100%;flex-wrap:wrap}
    .top-identity-copy{flex:1;min-width:110px}
    .top-user{margin-left:auto}
    .top-user .avatar{display:none}
    .top-identity strong{font-size:11px}
    .top-identity .brand-logo{width:26px;height:26px}
    .page-heading{padding:17px 15px}
    .page-heading h1{font-size:22px;overflow-wrap:anywhere}
    .stats-grid{grid-template-columns:1fr}
    .stats-grid.compact{grid-template-columns:1fr}
    .panel{padding:15px;min-width:0}
    .chart-grid{min-width:0}
    .chart-grid>.panel{min-width:0}
    .pagination{align-items:flex-start}
    .public-header .brand small{display:block;max-width:210px;font-size:8px}
    .public-header nav{width:100%;justify-content:flex-end}
    .info-grid{grid-template-columns:1fr}
}
@media print{
    .workspace,.sidebar-collapsed .workspace{margin-left:0!important}
    .brand-logo{print-color-adjust:exact}
}
.payment-methods{border:1px solid var(--line);padding:16px;display:flex;gap:18px;flex-wrap:wrap}.payment-methods legend{font-weight:600;font-size:12px;padding:0 6px}.wrap-anywhere{overflow-wrap:anywhere}

/* Keep supporting notices consistent with square form surfaces. */
.panel .notice { border-radius: 0; }

/* Keep the footer at the viewport bottom on short pages, after long content. */
@media screen {
    .app-layout .workspace,
    .public-layout {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }
    .app-layout .topbar,
    .public-layout > .public-header,
    .public-layout > .public-footer {
        flex-shrink: 0;
    }
    .app-layout .main-content {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: 0;
        margin: 0 auto;
    }
    .app-layout .page-content {
        flex: 1 0 auto;
        min-width: 0;
    }
    .app-layout .footer {
        flex-shrink: 0;
    }
    .public-layout > main {
        flex: 1 0 auto;
        min-width: 0;
    }
}

/* Public navigation uses its own classes so collapsed sidebar styles cannot hide it. */
.public-layout .public-header{display:block;padding:0 clamp(18px,5vw,96px);background:#fff}
.public-header-inner{max-width:1600px;margin:0 auto;min-height:96px;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:18px 0}
.public-brand{display:flex;align-items:center;gap:16px;min-width:0;color:var(--wine);flex:1}
.public-brand-logos{display:flex;flex-direction:row;align-items:center;gap:10px;flex-shrink:0}
.public-brand-logo{display:block;width:52px;height:52px;object-fit:contain;flex-shrink:0}
.public-brand-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.public-brand-copy strong{font-size:24px;line-height:1.15;letter-spacing:-.6px;overflow-wrap:anywhere}
.public-brand-copy small{font-size:11px;line-height:1.5;color:#6d6570;letter-spacing:.3px;overflow-wrap:anywhere}
.public-brand-symbol{font-size:34px;border:1px solid var(--line);padding:10px}
.public-layout .public-header .public-navigation{display:flex;align-items:center;justify-content:flex-end;gap:25px;flex-shrink:0;width:auto;font-size:13px}
.public-layout .public-navigation>a:first-child{display:inline-flex}
.public-navigation>a{white-space:nowrap}
.public-navigation>a[aria-current=page]:not(.btn){color:var(--wine);text-decoration:underline;text-underline-offset:7px}
.public-navigation .btn{padding:11px 16px;font-size:12px}
.landing-hero{padding:60px clamp(24px,8vw,150px);gap:60px}
.landing-hero .hero-copy{min-width:0}
.municipal-identity{width:340px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.municipal-seal-frame{width:250px;height:250px;display:grid;place-items:center;border:1px solid #ffffff35;border-radius:50%;padding:18px;background:#ffffff08;margin-bottom:12px}
.municipal-hero-logo{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 14px #26091635)}
.municipal-seal-placeholder{font-size:130px;color:#deb88b}
.municipal-identity p{font-size:10px;letter-spacing:2.5px;color:#e0c1cc;margin:0}
.municipal-identity strong{font-size:24px;font-weight:600;line-height:1.35;overflow-wrap:anywhere;max-width:100%}
.municipal-identity>span{font-size:14px;letter-spacing:2px;color:#e1c1cb}
.available-documents{scroll-margin-top:24px}
.public-document-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.public-document-card{display:flex;flex-direction:column;min-width:0;padding:26px;background:#fff;border:1px solid var(--line);border-top:3px solid var(--wine);box-shadow:0 5px 18px #19213b04;overflow-wrap:anywhere}
.public-document-top{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}
.document-fee{font-size:17px;font-weight:700;color:var(--wine)}
.document-office{font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--wine);margin-bottom:8px}
.public-document-card h3{font-size:21px;line-height:1.35;margin-bottom:12px}
.document-description{font-size:13px;color:#6a707b;line-height:1.8}
.document-requirements{border-top:1px solid var(--line);padding-top:17px;margin-top:6px;margin-bottom:20px}
.document-requirements h4{font-size:12px;margin-bottom:12px}
.document-requirements ul{list-style:disc;padding-left:19px;margin:0;color:#626976;font-size:13px}
.document-requirements li{margin:7px 0}
.document-requirements>p{font-size:12px;color:var(--muted)}
.document-card-bottom{margin-top:auto}
.document-location{display:flex;align-items:flex-start;gap:7px;font-size:12px;color:#646b76}
.document-location .material-icons{font-size:18px;color:var(--wine);flex-shrink:0}
.document-card-bottom .btn{width:100%;margin-top:8px;white-space:normal;text-align:center}
.public-documents-empty{text-align:center;padding:42px 24px}
.public-documents-empty>.material-icons{font-size:36px;color:var(--wine);margin-bottom:12px}
@media(max-width:1100px){
    .public-header-inner{gap:20px}
    .public-layout .public-header .public-navigation{gap:16px}
    .public-brand-copy strong{font-size:21px}
    .public-brand-logo{width:44px;height:44px}
    .public-document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .municipal-identity{width:280px}
    .municipal-seal-frame{width:220px;height:220px}
    .landing-hero{gap:35px}
}
@media(max-width:760px){
    .public-header-inner{flex-wrap:wrap;gap:16px;padding:16px 0}
    .public-brand{flex-basis:100%}
    .public-layout .public-header .public-navigation{width:100%;justify-content:flex-start;flex-wrap:wrap;gap:18px}
    .public-brand-copy small{font-size:10px}
    .landing-hero{flex-direction:column;align-items:stretch;padding:42px 24px;gap:36px}
    .landing-hero h1{font-size:44px}
    .municipal-identity{width:100%;align-self:center}
    .municipal-seal-frame{width:180px;height:180px}
    .municipal-identity strong{font-size:21px}
    .public-document-grid{grid-template-columns:1fr}
    .public-document-card{padding:22px}
}
@media(max-width:380px){
    .public-brand-logo{width:38px;height:38px}
    .public-brand{gap:10px}
    .public-brand-logos{gap:6px}
    .public-layout .public-header .public-navigation{gap:12px;font-size:12px}
    .public-navigation .btn{padding:10px;font-size:11px}
}

/* Municipal photo remains visible beneath the maroon linear gradient. */
.landing-hero {
    background-color: var(--deep);
    background-image: linear-gradient(110deg, rgba(61, 9, 29, .94) 0%, rgba(91, 20, 47, .86) 44%, rgba(112, 27, 53, .55) 100%), url('images/municipal-hall.png');
    background-size: cover;
    background-position: center, center 48%;
    background-repeat: no-repeat;
    padding-block: clamp(40px, 5vw, 80px);
    padding-inline: max(clamp(24px, 6vw, 120px), calc((100% - 1600px) / 2));
    gap: clamp(28px, 4vw, 72px);
    min-height: 520px;
}
.landing-hero h1 { font-size: clamp(38px, 4.6vw, 68px); }
.landing-hero .hero-copy > p:not(.eyebrow) { color: #f0dce3; }
.landing-hero .hero-caption { color: #edd2dd; }
.landing-hero .municipal-identity { text-shadow: 0 2px 10px #2b061a66; }

/* Allow content to shrink within grids, without hiding page overflow. */
@media screen {
    html { -webkit-text-size-adjust: 100%; }
    body { min-width: 0; }
    img { max-width: 100%; }
    .workspace, .page-content, .panel, .auth-form, .auth-story,
    .chart-grid > *, .stats-grid > *, .detail-grid > *, .office-grid > *,
    .public-layout > main, .public-header-inner { min-width: 0; }
    .page-heading h1, .panel h2, .panel h3, .pre-wrap, dd,
    .public-footer, .footer, .notice, .brand-copy, .top-identity-copy {
        overflow-wrap: anywhere;
    }
    .table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-wrap table { min-width: 580px; }
    .chart-box { width: 100%; min-width: 0; }
    .panel-heading > div { min-width: 0; }
    .form-grid { width: 100%; }
    .form-grid > *, .filters > *, .search-row > * { min-width: 0; }
    .filters .field { max-width: 100%; }
    .search-row { width: 100%; }
    .search-row input { flex: 1; }
    .btn { max-width: 100%; }
    .form-grid .btn, .panel-heading .btn { white-space: normal; }
    .page-buttons { min-width: 0; }
    dialog { max-width: calc(100vw - 24px); max-height: 90dvh; }
    .flash-fallback { max-width: min(450px, calc(100vw - 24px)); right: 12px; }
    .receipt-sheet { width: 100%; overflow-wrap: anywhere; }
    .public-brand { max-width: 100%; }
    .public-layout .public-header .public-navigation { flex-wrap: wrap; }
    .available-documents { max-width: 1800px; margin-inline: auto; padding-inline: clamp(18px, 6vw, 96px); }
    .public-document-top { flex-wrap: wrap; }
    .document-fee { overflow-wrap: anywhere; }
}
@media (min-width: 761px) and (max-width: 1100px) {
    .public-header-inner { flex-wrap: wrap; }
    .public-brand { flex-basis: 100%; }
    .public-layout .public-header .public-navigation { width: 100%; justify-content: flex-end; }
    .landing-hero .municipal-identity { width: 240px; }
    .landing-hero .municipal-seal-frame { width: 200px; height: 200px; }
}
@media (max-width: 760px) {
    .landing-hero {
        min-height: 0;
        background-image: linear-gradient(150deg, rgba(61, 9, 29, .93) 0%, rgba(91, 20, 47, .83) 52%, rgba(112, 27, 53, .64) 100%), url('images/municipal-hall.png');
        background-position: center, 60% center;
        padding: 40px 24px;
        gap: 30px;
    }
    .landing-hero .hero-copy > p:not(.eyebrow) { font-size: 15px; }
    .hero-actions { flex-wrap: wrap; gap: 16px; }
    .hero-caption { align-items: flex-start; }
    .hero-caption .material-icons { flex-shrink: 0; }
    .auth-shell { display: block; margin: 28px 18px; }
    .auth-story { display: none; }
    .auth-form { padding: 28px; }
    .public-layout .public-header .public-navigation { justify-content: space-between; gap: 12px; }
    .public-navigation > a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 600px) {
    .app-layout .topbar { align-items: center; }
    .app-layout .top-identity { flex-wrap: nowrap; }
    .app-layout .top-identity-copy { min-width: 0; flex: 1; }
    .top-identity .brand-logos { flex-shrink: 1; }
    .top-identity .brand-logo { flex-shrink: 0; }
    .top-identity .icon-button { flex-shrink: 0; }
    .page-heading { flex-wrap: wrap; }
    .panel-heading { flex-direction: column; align-items: stretch; }
    .filters { gap: 12px; }
    .filters .field { flex-basis: 100%; min-width: 0; }
    .filters > .btn { width: 100%; }
    .info-grid { grid-template-columns: minmax(0, 1fr); }
    .notice-band { align-items: flex-start; gap: 12px; padding: 20px; }
    .notice-band > .material-icons { flex-shrink: 0; }
    input:not([type=checkbox]):not([type=hidden]), select, textarea { font-size: 16px; }
    .btn, .icon-button { min-height: 44px; }
    .actions { gap: 8px; }
    .pagination { align-items: flex-start; }
    .receipt-meta { flex-wrap: wrap; }
    .receipt-total { flex-wrap: wrap; gap: 10px; }
    .auth-form { padding: 24px 20px; }
    .form-grid { gap: 16px; }
    .file-list > a { overflow-wrap: anywhere; }
    .file-list > a > span:nth-child(2) { min-width: 0; }
}
@media (max-width: 380px) {
    .public-layout .public-header { padding-inline: 14px; }
    .public-brand-copy strong { font-size: 20px; }
    .public-brand-copy small { font-size: 9px; }
    .public-brand-logos { gap: 5px; }
    .public-brand-logo { width: 34px; height: 34px; }
    .public-layout .public-header .public-navigation { gap: 8px; }
    .public-navigation > a { font-size: 11px; }
    .public-navigation .btn { padding-inline: 9px; }
    .landing-hero { padding-inline: 18px; }
    .landing-hero h1 { font-size: 38px; letter-spacing: -1.4px; }
    .municipal-identity p { font-size: 9px; letter-spacing: 1.5px; }
    .municipal-seal-frame { width: 160px; height: 160px; }
    .public-document-card { padding: 18px; }
    .app-layout .main-content { padding-inline: 10px; }
    .app-layout .panel { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: .01ms !important; }
}

/* Administration workspace and document preview */
.workspace-toolbar .top-identity { width: auto; min-width: 0; }
.workspace-context { color: var(--muted, #64748b); font-size: 13px; font-weight: 600; }
.workspace-toolbar { justify-content: space-between; gap: 16px; }
.document-preview { width: min(800px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 0; overflow: auto; color: #253044; }
.document-preview-header { display: flex; align-items: flex-start; gap: 16px; padding: 25px 28px; background: #fbf6f8; border-bottom: 1px solid #e9dce1; }
.document-preview-header > div { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.document-preview-header h2 { margin: 6px 0; font-size: 23px; line-height: 1.3; }
.document-preview-header .eyebrow { margin: 0; }
.document-preview-header .small-note { margin: 0; }
.document-preview-icon { padding: 12px; background: #761d39; color: white; }
.document-preview-body { padding: 26px 28px; overflow-wrap: anywhere; }
.document-preview-summary { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #e2e6ed; }
.document-preview-summary > div { min-width: 0; }
.document-preview-summary strong, .document-preview-summary .small-note { display: block; }
.preview-label { display: block; margin-bottom: 8px; font-size: 12px; color: #64748b; }
.preview-fee { color: #761d39; font-size: 24px; line-height: 1.2; }
.preview-description, .preview-requirements { margin-top: 24px; }
.document-preview h3 { font-size: 15px; margin: 0 0 12px; }
.preview-description p { margin: 0; color: #526075; line-height: 1.7; }
.preview-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.preview-section-heading > span { color: #64748b; font-size: 12px; white-space: nowrap; }
.preview-checklist { list-style: none; margin: 0; padding: 0; border: 1px solid #e2e6ed; }
.preview-checklist li { display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; line-height: 1.6; }
.preview-checklist li + li { border-top: 1px solid #e2e6ed; }
.requirement-number { flex: 0 0 24px; text-align: center; background: #f6eaf0; color: #761d39; font-size: 12px; font-weight: 700; }
.preview-reminder { display: flex; gap: 10px; padding: 14px; background: #f5f7fa; color: #596779; font-size: 12px; line-height: 1.6; margin: 16px 0 0; }
.preview-reminder .material-icons { font-size: 19px; flex-shrink: 0; }
.document-preview-footer { display: flex; justify-content: flex-end; padding: 18px 28px; background: #fafbfc; border-top: 1px solid #e2e6ed; }
.gateway-layout { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.gateway-layout > *, .gateway-layout .field { min-width: 0; }
.gateway-layout .panel { width: 100%; max-width: none; margin: 0; }
.gateway-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.gateway-heading > .material-icons { color: #761d39; background: #f6eaf0; padding: 12px; }
.gateway-heading h2 { margin: 6px 0 10px; }
.gateway-heading .eyebrow { margin: 0; }
.gateway-heading p { line-height: 1.65; }
.gateway-settings-form { display: block; }
.gateway-form-section + .gateway-form-section { margin-top: 26px; padding-top: 24px; border-top: 1px solid #e2e6ed; }
.gateway-form-section h3 { font-size: 16px; margin: 0 0 16px; }
.gateway-enable { display: flex; align-items: flex-start; gap: 12px; background: #f8f9fb; border: 1px solid #e2e6ed; padding: 16px; margin-bottom: 20px; cursor: pointer; }
.gateway-enable input { margin-top: 4px; flex-shrink: 0; }
.gateway-enable strong, .gateway-enable small { display: block; }
.gateway-enable small { margin-top: 5px; color: #64748b; line-height: 1.6; }
.gateway-field-grid, .gateway-credential-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gateway-methods, .gateway-credential-card { min-width: 0; padding: 16px; border: 1px solid #dce1e9; margin: 20px 0 0; }
.gateway-methods legend, .gateway-credential-card legend { padding: 0 7px; font-weight: 600; font-size: 13px; }
.gateway-method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.gateway-method { display: flex; align-items: center; gap: 8px; padding: 11px 10px; border: 1px solid #e2e6ed; font-size: 13px; cursor: pointer; }
.gateway-method:has(input:checked) { background: #fbf2f5; border-color: #b67b8e; }
.gateway-credential-card { margin-top: 12px; }
.gateway-credential-card .field { margin-top: 16px; }
.gateway-credential-card > p { margin: 0; }
.gateway-layout .small-note { line-height: 1.65; }
.gateway-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e2e6ed; }
.gateway-form-footer p { margin: 0; }
.gateway-form-footer .btn { flex-shrink: 0; }
.gateway-support { display: grid; gap: 20px; }
.gateway-support-heading { display: flex; align-items: center; gap: 9px; }
.gateway-support-heading .material-icons { color: #761d39; }
.gateway-help h3 { font-size: 17px; margin: 0 0 14px; }
.gateway-support-heading h3 { margin: 0; }
.gateway-help p { line-height: 1.7; }
.gateway-help h4 { margin-bottom: 8px; font-size: 13px; }
.gateway-code { display: block; padding: 12px; background: #f5f6f9; border: 1px solid #e2e6ed; white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; }
.gateway-recovery form { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1200px) {
    .gateway-layout { grid-template-columns: minmax(0, 1fr); }
    .gateway-support { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .gateway-field-grid, .gateway-credential-grid, .gateway-support { grid-template-columns: minmax(0, 1fr); }
    .gateway-form-footer { align-items: stretch; flex-direction: column; }
    .gateway-heading { gap: 10px; }
    .gateway-heading > .material-icons { padding: 8px; }
    .document-preview-header, .document-preview-body { padding: 20px 16px; }
    .document-preview-footer { padding: 16px; }
    .document-preview-header { gap: 10px; }
    .document-preview-icon { display: none; }
    .document-preview-summary { grid-template-columns: 1fr 1fr; gap: 18px; }
    .document-preview-summary > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
    .workspace-toolbar { flex-wrap: nowrap; }
    .workspace-context { display: none; }
}
@media (min-width: 701px) {
    .gateway-credential-card > p { min-height: 3.3em; }
}
.gateway-field-grid input, .gateway-field-grid select { min-height: 46px; }

/* Feature pages use the full workspace width, with the existing responsive gutters. */
@media screen {
    .app-layout .page-content {
        width: 100%;
        max-width: none;
    }
    .app-layout .page-content > .narrow,
    .app-layout .page-content > .receipt-sheet {
        width: 100%;
        max-width: none;
    }
}

/* Compact, labelled Material Icon actions in record rows. */
.btn.action-icon { width: 38px; height: 38px; min-width: 38px; padding: 0; border-radius: 0; }
.btn.action-icon .material-icons { font-size: 20px; }
.actions { gap: 8px; }
.action-icon:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
