/* Shared typography and mobile interaction rules. */
html{scroll-padding-top:20px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-size:15px;font-synthesis:none}
button,input,select,textarea,.numeric-input,.iban-input{font-family:var(--bs-body-font-family)}
h1,h2,h3,.eyebrow{letter-spacing:normal}
.brand{min-width:0}
.brand-monogram{flex-shrink:0}
.brand-copy{min-width:0}
.brand-copy strong{font-size:18px;line-height:1.8;overflow-wrap:normal}
.brand-copy small{font-size:12px}
.header-actions{flex-shrink:0}
#case-controls{padding:0;margin:0;border:0;min-width:0}
.wizard-card,.wizard-sidebar,.member-card,.member-fields,.field-grid>div,.summary-info>div{min-width:0}
.form-control,.form-select{font-size:16px;min-height:50px}
.form-control::placeholder{font-size:14px}
.numeric-input,.iban-input{font-variant-numeric:tabular-nums;letter-spacing:.3px}
.login-national{font-size:22px}
.field-help{font-size:12px}
.form-label{font-size:14px}
.check-row{min-height:44px;align-items:center;font-size:14px}
.check-row input{margin-top:0;width:21px;height:21px}
.btn,.btn-sm,.btn-quiet{min-height:44px}
.btn{font-size:14px}
.text-link{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
.alert{font-size:14px}
.notice-box{font-size:13px}
.summary-scroll-hint{display:none}
.table-scroll{max-width:100%;overscroll-behavior-inline:contain;scrollbar-width:thin}
.member-remove{min-height:44px;min-width:44px}
.member-details>summary{min-height:48px}
.step-button{min-height:44px}
.contract-links a{display:inline-flex;align-items:center;min-height:44px}
.source-name-reference{background:#f2f5f3;border:1px solid var(--border);border-radius:9px;padding:15px 17px;margin-bottom:15px}
.source-name-reference>span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}
.source-name-reference>strong{display:block;color:var(--ink);font-size:16px;font-weight:600;line-height:1.9;overflow-wrap:anywhere}
.name-entry-instruction{font-size:14px;font-weight:600;margin:0;line-height:1.95}
.required-mark{color:#a04b38}
.footer-credit{white-space:normal;overflow-wrap:break-word;line-height:2}

@media(max-width:800px){
  body{font-size:15px;line-height:1.95}
  .site-header{height:auto;min-height:94px}
  .header-inner{min-height:94px;padding-top:14px;padding-bottom:14px;gap:14px}
  .brand{gap:12px}
  .brand-copy strong{font-size:17px;line-height:1.75}
  .brand-copy small{font-size:12px}
  .brand-monogram{width:55px;height:51px;font-size:23px}
  .brand-monogram span{left:15px;bottom:9px;width:25px}
  .service-label{font-size:12px}
  .header-actions .btn{font-size:13px;min-height:44px;padding:9px 12px;gap:7px}
  .eyebrow,.intro-panel .eyebrow,.login-card .eyebrow,.page-heading .eyebrow,.wizard-card-heading .eyebrow{font-size:12px}
  .intro-copy,.login-card>.text-secondary,.page-heading p,.wizard-card-heading p{font-size:14px;line-height:2}
  .login-notice p,.login-support,.login-support strong{font-size:12px}
  .intro-benefits small{font-size:12px;white-space:normal}
  .intro-benefits strong{font-size:14px}
  .wizard-sidebar{grid-template-columns:minmax(0,1fr);gap:14px}
  .step-navigation{padding:12px;border-radius:13px}
  .step-navigation ol{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;align-items:stretch}
  .step-item{min-width:0;align-items:stretch}
  .step-button{font-size:12px;line-height:1.65;gap:7px;padding:8px 3px;min-height:89px;justify-content:flex-start}
  .step-number{width:28px;height:28px;font-size:12px}
  .step-button>span:last-child{display:block;max-width:100%;overflow-wrap:normal}
  .step-progress{margin-top:11px;height:4px}
  .step-navigation>.field-help{display:block;font-size:12px}
  .premium-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 15px;padding:18px 20px;margin:0;border-radius:13px}
  .premium-panel>span:first-of-type{grid-column:1;grid-row:1;font-size:13px;line-height:1.9}
  .premium-panel>strong{grid-column:2;grid-row:1/3;font-size:29px;line-height:1.7;margin:0}
  .premium-panel>.premium-unit{grid-column:2;grid-row:3;font-size:12px;text-align:left;margin:0}
  .premium-panel p{grid-column:1;grid-row:2/4;font-size:12px;margin-top:4px;line-height:1.8}
  .premium-icon,.premium-divider,.premium-panel small{display:none}
  .save-status{font-size:12px;margin:0;line-height:1.9}
  .field-grid{gap:20px 16px}
  .form-label,.member-fields .form-label{font-size:14px;line-height:1.9;margin-bottom:8px}
  .form-control,.form-select,.member-fields .form-control,.member-fields .form-select{font-size:16px;min-height:50px;padding:11px 12px}
  .form-select,.member-fields .form-select{padding-left:34px}
  .form-control::placeholder{font-size:14px}
  .field-help,.member-fields .field-help,.login-form .field-help{font-size:12px;line-height:1.95}
  .field-section-title{font-size:16px}
  .check-row,.member-toolbar .check-row{font-size:14px;line-height:1.9;min-height:44px;gap:11px}
  .check-row input{width:21px;height:21px;margin-top:0}
  .notice-box,.receipt-card .notice-box{font-size:13px;padding:15px 16px}
  .alert{font-size:14px;padding:14px 16px}
  .wizard-actions .btn,.family-intro .btn,.receipt-actions .btn{font-size:14px;min-height:48px;padding:11px 16px;gap:9px}
  .wizard-actions .btn-quiet{font-size:13px;min-height:44px;padding:10px 12px}
  .member-name{font-size:15px;line-height:1.8}
  .member-meta{font-size:12px;line-height:1.8}
  .member-amount{font-size:16px}
  .member-amount small{font-size:12px}
  .member-details>summary{font-size:13px;min-height:48px;line-height:2;padding:12px 16px}
  .member-remove{font-size:13px}
  .member-toolbar .badge-soft,.page-heading .badge-soft,.badge-soft{font-size:12px}
  .member-fields{padding:12px 16px 20px}
  .member-fields .field-grid{gap:18px}
  .family-intro p{font-size:13px;line-height:2}
  .contract-links{font-size:13px;line-height:1.9;flex-wrap:wrap}
  .contract-links a{font-size:13px;min-height:44px}
  .contract-accept{padding:16px}
  .contract-frame{height:350px}
  .bank-hint h3{font-size:16px}
  .bank-hint p{font-size:13px;line-height:2}
  .summary-overview span{font-size:13px}
  .summary-overview b{font-size:16px}
  .summary-overview strong{font-size:26px}
  .summary-overview strong small{font-size:13px}
  .summary-table{font-size:14px;min-width:590px}
  .summary-table th{font-size:12px;line-height:1.8;padding:13px 12px}
  .summary-table td{font-size:14px;line-height:1.9;padding:14px 12px}
  .summary-table td:first-child strong{font-size:14px}
  .summary-table td:first-child small,.summary-tag{font-size:12px}
  .summary-info span{font-size:12px}
  .summary-info strong{font-size:15px;line-height:1.9}
  .summary-info strong[dir=ltr]{display:block;overflow-wrap:anywhere}
  .summary-scroll-hint{display:block;margin-bottom:10px}
  .changes-box{padding:17px}
  .changes-box h3{font-size:15px}
  .changes-box ul{font-size:13px;line-height:2}
  .changes-box li+li{margin-top:8px}
  .final-check{padding:17px;align-items:flex-start}
  .final-check input{margin-top:3px}
  .final-check strong{font-size:14px}
  .final-check small{font-size:13px;line-height:1.95}
  .summary-info{gap:17px}
  .stat-card>span,.stat-card>small{font-size:13px}
  .stat-card>strong{font-size:33px}
  .section-heading p{font-size:13px}
  .section-heading h2{font-size:18px}
  .stat-line{font-size:14px}
  .export-panel h2{font-size:20px}
  .export-panel p{font-size:14px;line-height:2}
  .export-panel small{font-size:12px}
  .receipt-card>.text-secondary{font-size:14px}
  .receipt-card .eyebrow{font-size:12px}
  .receipt-details>div{font-size:14px;line-height:2}
  .receipt-details small{font-size:12px}
  .tracking-box>span,.tracking-box .btn{font-size:13px}
  .tracking-box .btn{min-height:44px}
  .tracking-box>strong{font-size:21px;letter-spacing:.5px}
  .site-footer{font-size:12px;line-height:1.9}
  .hr-login .text-secondary{font-size:14px}
  .error-card p{font-size:14px}
}

@media(max-width:600px){
  .app-container{padding-right:16px;padding-left:16px}
  .header-inner{gap:10px;min-height:94px}
  .brand{flex:1;gap:10px}
  .brand-copy strong{font-size:15px;line-height:1.7}
  .brand-copy small{font-size:11px;line-height:1.8;margin-top:3px}
  .brand-monogram{width:43px;height:46px;font-size:20px;border-radius:7px 7px 7px 2px}
  .brand-monogram span{width:22px;left:10px;bottom:8px}
  .header-actions .service-label{display:none}
  .header-actions .btn{font-size:12px;min-width:44px;min-height:44px;padding:8px;white-space:nowrap;gap:4px}
  .login-layout{padding-top:28px;gap:23px}
  .intro-panel h1{font-size:30px;line-height:1.7}
  .intro-copy{font-size:15px;line-height:2}
  .login-card{padding:27px 22px 23px}
  .login-card h2{font-size:25px}
  .login-card>.text-secondary{font-size:14px}
  .login-national{font-size:22px;min-height:56px}
  .login-form>.btn{font-size:15px;min-height:54px;gap:10px}
  .login-notice p{font-size:13px}
  .login-support,.login-support strong{font-size:13px}
  .site-footer{flex-direction:column;align-items:flex-start;gap:7px;margin-top:30px;font-size:12px}
  .site-footer span:last-child{text-align:right}
  .page-heading{flex-wrap:wrap;gap:12px}
  .page-heading h1{font-size:26px}
  .page-heading p{font-size:14px;max-width:none}
  .page-heading .badge-soft{font-size:12px;padding:5px 10px;margin:0}
  .wizard-layout{gap:18px}
  .wizard-card{padding:23px 18px 0}
  .wizard-card-heading{padding-bottom:20px;margin-bottom:23px}
  .wizard-card-heading h2{font-size:23px}
  .wizard-card-heading p{font-size:14px}
  .step-navigation{padding:10px 7px}
  .step-navigation ol{gap:2px}
  .step-button{font-size:12px;min-height:97px;padding:7px 2px;gap:7px;line-height:1.65}
  .step-number{width:27px;height:27px;font-size:12px}
  .step-navigation>.field-help{font-size:12px;display:block;padding:0 5px}
  .premium-panel{padding:17px;column-gap:10px}
  .premium-panel>span:first-of-type{font-size:13px}
  .premium-panel>strong{font-size:28px}
  .premium-panel>.premium-unit{font-size:12px}
  .premium-panel p{font-size:12px}
  .save-status{font-size:12px;margin-top:0}
  .field-grid,.member-fields .field-grid{grid-template-columns:minmax(0,1fr);gap:20px}
  .form-label,.member-fields .form-label{font-size:14px}
  .form-control,.form-select,.member-fields .form-control,.member-fields .form-select{font-size:16px;min-height:52px;padding:12px}
  .form-select,.member-fields .form-select{padding-left:35px}
  .field-help,.member-fields .field-help{font-size:13px}
  .iban-input{font-size:16px;letter-spacing:0}
  .decision-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .decision-option{display:grid;grid-template-columns:23px minmax(0,1fr);gap:2px 12px;align-items:center;padding:16px;min-height:91px}
  .decision-option input{grid-column:1;grid-row:1/3;margin:0;width:21px;height:21px}
  .decision-option strong{grid-column:2;font-size:16px;line-height:1.9}
  .decision-option small{grid-column:2;font-size:13px;line-height:1.9;margin:0}
  .contract-frame{height:360px}
  .contract-links{font-size:13px;gap:4px}
  .contract-links a{font-size:13px}
  .contract-accept{padding:15px}
  .check-row,.member-toolbar .check-row{font-size:14px;line-height:1.95;min-height:44px}
  .check-row input{width:21px;height:21px}
  .family-intro{flex-direction:column;align-items:stretch;gap:14px}
  .family-intro p{font-size:14px}
  .family-intro .btn{font-size:14px;width:100%;min-height:48px}
  .member-top{padding:17px 14px;display:grid;grid-template-columns:35px minmax(0,1fr);gap:9px 10px}
  .member-avatar{width:35px;height:38px;align-self:start;grid-column:1;grid-row:1/3}
  .member-top>div:nth-child(2){grid-column:2;min-width:0}
  .member-name{font-size:16px;line-height:1.8;overflow-wrap:anywhere}
  .member-meta{font-size:13px;line-height:1.9}
  .member-amount{grid-column:2;margin:4px 0 0;text-align:right;font-size:18px}
  .member-amount small{display:inline;font-size:13px;margin-right:7px}
  .member-toolbar{padding:9px 14px;flex-wrap:wrap;gap:6px 12px}
  .member-toolbar .badge-soft{font-size:12px;padding:3px 8px;margin-right:auto}
  .member-remove{font-size:13px;min-height:44px;padding:9px 5px;margin-right:auto}
  .member-details>summary{font-size:14px;padding:13px 14px;min-height:50px}
  .member-fields{padding:10px 14px 20px}
  .wizard-actions{display:grid;grid-template-columns:minmax(0,1fr);padding:20px 0;gap:12px;margin-top:27px}
  .actions-main{display:flex;flex-direction:column-reverse;gap:10px;grid-row:1;margin:0;align-items:stretch}
  .wizard-actions .btn{width:100%;font-size:15px;min-height:50px;padding:11px 14px;gap:9px}
  .wizard-actions .btn-quiet{font-size:14px;min-height:46px}
  .summary-overview{flex-direction:column;align-items:stretch;padding:18px;gap:15px}
  .summary-overview>div:last-child{text-align:right;padding-top:13px;border-top:1px solid #dce9e2}
  .summary-overview span{font-size:14px}
  .summary-overview strong{font-size:29px}
  .summary-overview strong small{font-size:14px}
  .summary-info{grid-template-columns:minmax(0,1fr);gap:17px}
  .summary-info span{font-size:13px}
  .summary-info strong{font-size:16px}
  .changes-box h3{font-size:16px}
  .changes-box ul{font-size:14px}
  .final-check strong{font-size:15px}
  .final-check small{font-size:13px}
  .notice-box,.receipt-card .notice-box{font-size:14px;line-height:2}
  .alert{font-size:14px}
  .stats-grid{grid-template-columns:minmax(0,1fr);gap:13px}
  .stat-card,.stat-card:first-child{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:20px}
  .stat-card>strong,.stat-card:first-child>strong{grid-column:2;grid-row:1/3;margin:0;font-size:35px}
  .stat-card>span,.stat-card>small{font-size:14px}
  .dashboard-section{padding:25px 20px}
  .stat-line{font-size:15px;gap:15px}
  .stat-line strong{font-size:22px}
  .export-panel p{font-size:15px}
  .export-panel small{font-size:13px}
  .export-panel .btn{font-size:15px;width:100%;min-height:50px}
  .receipt-card{padding:27px 19px}
  .receipt-card h1{font-size:26px}
  .receipt-card>.text-secondary{font-size:14px}
  .receipt-details>div{font-size:14px;align-items:flex-start;flex-direction:column;gap:5px;text-align:right}
  .receipt-details strong{font-size:15px}
  .tracking-box{padding:20px 12px}
  .tracking-box>strong{font-size:19px;letter-spacing:0}
  .tracking-box>span,.tracking-box .btn{font-size:14px}
  .receipt-actions{flex-direction:column;gap:12px}
  .receipt-actions .btn,.receipt-actions form{width:100%}
  .receipt-actions .btn{font-size:15px;min-height:50px}
  .error-card{padding:28px 22px}
  .error-card h1{font-size:24px}
  .source-name-reference{padding:14px 15px}
  .source-name-reference>span{font-size:13px}
  .source-name-reference>strong{font-size:17px}
  .name-entry-instruction{font-size:15px}
  .footer-credit{font-size:13px}
}

@media(max-width:360px){
  .app-container{padding-right:13px;padding-left:13px}
  .header-inner{gap:8px}
  .brand{gap:8px}
  .brand-copy strong{font-size:14px}
  .brand-copy small{font-size:10px}
  .brand-monogram{width:37px;height:42px;font-size:18px}
  .brand-monogram span{left:9px;width:19px}
  .header-actions .btn{font-size:12px;padding:8px 5px;gap:3px}
  .intro-panel h1{font-size:27px}
  .login-card{padding:25px 18px}
  .wizard-card{padding:22px 16px 0}
  .premium-panel{grid-template-columns:minmax(0,1fr);gap:0;padding:17px}
  .premium-panel>span:first-of-type,.premium-panel>strong,.premium-panel>.premium-unit,.premium-panel p{grid-column:1;grid-row:auto;text-align:right}
  .premium-panel>strong{font-size:30px;margin-top:3px}
  .premium-panel>.premium-unit{font-size:13px}
  .premium-panel p{font-size:13px;margin-top:8px}
  .step-button{font-size:12px;min-height:106px;padding:7px 1px}
  .tracking-box>strong{font-size:17px}
}

@media print{
  .brand-copy strong{font-size:17px}
  .receipt-details>div{flex-direction:row}
  .summary-scroll-hint{display:none}
}
