:root{--ink:#181818;--quiet:#737373;--line:#e6e6e6}body{background:#f6f6f5}.compact-ui{max-width:1180px;padding-top:30px}.compact-ui h1{font-size:30px;font-weight:750;letter-spacing:-1px}.compact-ui h2{font-size:23px;font-weight:700;letter-spacing:-.6px}.compact-ui p{font-size:13px;line-height:1.55}.compact-ui .btn{font-size:13px;min-height:42px;padding:10px 17px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:9px}.compact-ui .btn svg{width:17px;height:17px}.compact-ui .btn:disabled{background:#ededed;color:#929292;border-color:#e3e3e3;cursor:not-allowed}.compact-ui button{transition:background .15s,border-color .15s}.compact-ui button:focus-visible,.compact-ui summary:focus-visible{outline:2px solid #181818;outline-offset:3px}.compact-ui .form{font-size:14px;min-height:43px}.compact-ui .formlabel{font-size:13px}.compact-ui .section{border-radius:12px}.compact-ui .sectionbody{padding:24px}.compact-ui .sectionhead{padding:22px 24px}.compact-ui .table{font-size:13px}.compact-ui .table th{font-size:11px;letter-spacing:0;text-transform:none}.compact-ui .table td,.compact-ui .table th{padding:14px 16px}.compact-ui .table input{font-size:14px;min-height:41px;width:145px}.compact-ui .empty>svg{width:43px;height:43px;margin-bottom:14px}.compact-ui .empty{padding:48px 20px}.compact-ui .empty h2{font-size:22px}.compact-ui .empty p{margin:8px 0 20px}.choice{min-height:150px;padding:22px}.choice .letter{display:flex;align-items:center;justify-content:space-between}.choice .letter svg{width:28px;height:28px}.choice .letter span{font-size:12px;border:1px solid #ddd;width:27px;height:27px;display:grid;place-items:center;border-radius:50%}.choice strong{font-size:16px}.choice p{margin-bottom:0}.choice.selected{border:2px solid #181818;padding:21px}.case-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.case-heading h1{margin-top:15px}.case-heading p{margin-bottom:0}.case-heading p span{margin:0 6px}.back-link,.text-button{border:0;background:none;color:#555;padding:5px 0;font-size:13px;cursor:pointer}.text-button{text-decoration:underline;text-underline-offset:3px}.back-link:hover,.text-button:hover{color:#000}.case-tools{display:flex;align-items:center;gap:13px;flex-shrink:0}.case-tools #saveStatus{font-size:11px;color:#777;max-width:155px}.case-options{position:relative}.case-options summary{list-style:none;cursor:pointer;padding:11px;border:1px solid #ddd;border-radius:7px;font-size:15px;letter-spacing:2px}.case-options summary::-webkit-details-marker{display:none}.case-options>div{position:absolute;right:0;top:48px;width:210px;z-index:8;background:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 8px 25px #0000000c;padding:7px;display:flex;flex-direction:column;gap:5px}.case-options .btn{border:0;justify-content:flex-start}.workflow{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-bottom:22px;border-bottom:1px solid #d7d7d7}.workflow-step{display:flex;align-items:center;gap:13px;border:0;background:none;text-align:left;padding:17px 20px 20px;color:#888;border-bottom:3px solid transparent;margin-bottom:-1px;cursor:pointer}.workflow-step strong{display:block;font-size:15px;font-weight:650}.workflow-step small{display:block;margin-top:5px;font-size:11px}.step-number{width:33px;height:33px;border:1px solid #d0d0d0;border-radius:50%;display:grid;place-items:center;font-size:13px;flex-shrink:0}.workflow-step.active{border-bottom-color:#181818;color:#181818}.workflow-step.active .step-number{background:#181818;border-color:#181818;color:#fff}.workflow-step:hover{background:#efefee}.task-surface{background:#fff;border:1px solid #e1e1e1;border-radius:12px;overflow:hidden}.privacy-line{text-align:center;color:#888;font-size:11px;margin:20px 0}.privacy-line button{font-size:11px;color:#777;margin-left:5px}.upload-surface .files{padding:35px 20px;margin-top:25px;background:#fafafa;min-height:230px}.upload-surface .files svg{width:34px;height:34px}.upload-surface .files b{font-size:17px}.upload-surface .fileitem .muted{font-size:12px}.upload-surface .sectionbody+.sectionbody{border-top:1px solid #eee}.upload-surface input[type=file]{font-size:13px;max-width:100%}.task-next{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #eee;padding:20px 24px}.task-next>.muted{font-size:12px}.review-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:25px 24px 15px}.review-heading p{margin:6px 0}.review-progress{font-size:12px;white-space:nowrap;color:#777}.review-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 24px}.filter-group{display:flex;gap:5px}.filter{font-size:12px;padding:9px 12px;border:1px solid transparent;background:none;color:#777;border-radius:6px;cursor:pointer}.filter.active{border-color:#dedede;background:#f5f5f5;color:#111;font-weight:700}.filter span{margin-left:6px;font-size:11px}.review-tools{display:flex;align-items:center;gap:18px;font-size:11px}.review-tools .text-button{font-size:12px}.technical-toggle{display:flex;align-items:center;gap:5px;color:#777;white-space:nowrap}.review-search{display:flex;gap:12px;padding:4px 24px 20px}.review-search select{width:45%}.review-search input{flex:1;min-width:0}.review-grid{max-height:560px;border-top:1px solid #eee}.review-grid .table th:first-child{width:60%}.sheet-label{display:inline-block;color:#888;font-size:11px;margin-top:5px}.cell-details{display:none;font-size:10px;color:#888;overflow-wrap:anywhere}.show-technical .cell-details{display:inline}.field-blank{display:inline-block;font-size:10px;color:#777;font-weight:400;border:1px solid #e0e0e0;border-radius:4px;padding:2px 6px;margin-left:8px}.review-grid input:disabled{background:#f6f6f6;border-color:#eee;color:#888}.review-grid input.changed{border-color:#333}.review-hint{padding:0 24px;font-size:11px!important}.download-heading{padding:28px 28px 8px}.download-heading p{margin:8px 0}.output-list{padding:0 28px}.output-file{display:flex;gap:23px;align-items:center;padding:28px 0;border-bottom:1px solid #e9e9e9}.output-icon{height:75px;width:61px;background:#f7f7f7;display:grid;place-items:center;border:1px solid #e6e6e6;border-radius:8px;flex-shrink:0}.output-icon svg{width:35px;height:35px}.output-copy{flex:1;min-width:0}.format-label{font-size:10px;color:#888;font-weight:600;letter-spacing:1px}.output-copy h3{font-size:19px;margin:7px 0}.output-copy p{color:#777;font-size:12px;margin:5px 0 12px}.file-state{font-size:12px;font-weight:600}.output-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}.output-actions .btn{min-width:130px}.output-actions #genXml{min-width:60px}.draft-label{font-size:12px;padding:20px 28px;color:#666}.inline-details{margin:0 28px;border-top:1px solid #e9e9e9;padding:17px 0;color:#777;font-size:12px}.inline-details summary{cursor:pointer;color:#555;font-size:12px}.inline-details p{font-size:12px}.inline-details>div{margin-top:15px}.inline-details:last-child{margin-bottom:10px}.download-blockers{margin:20px 28px 0;background:#f7f7f7;border-left:2px solid #777;padding:16px 20px;font-size:13px}.download-blockers p{margin:7px 0;font-size:12px}.download-blockers .text-button{font-size:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:850px){.case-heading{align-items:flex-start}.case-tools{flex-wrap:wrap;justify-content:flex-end;max-width:180px}.case-tools #saveStatus{order:3;width:100%;text-align:right;max-width:none}.review-toolbar{flex-wrap:wrap}.output-actions{flex-direction:column;align-items:stretch}.output-actions .btn{min-width:120px}}
@media(max-width:600px){.compact-ui{padding:20px 12px 40px}.compact-ui h1{font-size:23px}.compact-ui h2{font-size:21px}.case-heading{flex-wrap:wrap;gap:15px;margin-bottom:22px}.case-heading>div:first-child{width:100%}.case-tools{max-width:none;width:100%;justify-content:flex-start}.case-tools #saveStatus{order:0;text-align:left;width:auto;flex:1}.case-heading h1{overflow-wrap:anywhere}.workflow{margin-bottom:16px}.workflow-step{padding:12px 5px 16px;gap:6px;flex-direction:column;text-align:center}.workflow-step strong{font-size:12px}.workflow-step small{display:none}.step-number{width:27px;height:27px;font-size:11px}.compact-ui .sectionbody{padding:20px 16px}.task-next{padding:16px;align-items:flex-start}.task-next>.muted{max-width:42%;font-size:11px}.task-next .btn{font-size:12px;padding:10px 13px}.review-heading{padding:21px 16px 8px;flex-wrap:wrap;gap:5px}.review-heading p{font-size:12px}.review-progress{font-size:11px}.review-toolbar{padding:12px 16px;gap:8px}.filter-group{gap:1px;width:100%;justify-content:space-between}.filter{padding:9px 7px;font-size:11px}.review-tools{width:100%;justify-content:space-between;margin-top:5px}.review-search{padding:4px 16px 16px;flex-wrap:wrap}.review-search select,.review-search input{width:100%;flex:auto}.review-grid .table{min-width:550px}.review-grid .table th:first-child{width:52%}.review-grid .table input{width:110px}.compact-ui .table td,.compact-ui .table th{padding:12px}.review-hint{padding:0 16px}.download-heading{padding:23px 18px 0}.output-list{padding:0 18px}.output-file{gap:15px;flex-wrap:wrap;padding:24px 0}.output-icon{width:47px;height:61px}.output-icon svg{width:29px}.output-copy h3{font-size:17px}.output-copy p{font-size:11px}.output-actions{width:100%;flex-direction:row;padding-left:62px}.output-actions .btn{flex:1;min-width:0}.output-actions #genXml{flex:0}.inline-details{margin:0 18px}.download-blockers{margin:20px 18px 0;padding:12px 14px}.draft-label{padding:18px;font-size:11px}.privacy-line{line-height:1.6}.compact-ui .modegrid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.compact-ui button{transition:none}}

/* Keep the active task close to the case title. */
.crumbbar{display:none}.compact-ui{padding-top:24px}.case-heading{margin-bottom:20px}.case-heading h1{margin-top:8px}.workflow-step{padding-top:12px;padding-bottom:15px}.download-heading{padding-top:23px}.output-file{padding:22px 0}.header-meta .badge:last-child{display:none}

/* A single compact layout for phones and the desktop phone preview. */
.app{container-type:inline-size}
@container (max-width:600px){
 .app .header-inner{min-height:64px;padding:12px 16px;gap:8px;flex-wrap:nowrap}
 .app .wordmark{font-size:18px;padding:0;white-space:normal}
 .app .wordmark small{font-size:7px;max-width:200px;line-height:1.4}
 .app .topnav{order:0;width:auto;margin:0 0 0 auto;padding:0;border:0}
 .app .topnav .nav{min-height:44px;padding:10px 14px;font-size:13px}
 .app .header-meta{display:none}
 .app #toggleMobile{display:none}
 .app .compact-ui{padding:20px 12px 32px}
 .app .compact-ui h1{font-size:24px;overflow-wrap:anywhere}
 .app .compact-ui h2{font-size:21px}
 .app .compact-ui .btn{min-height:44px;font-size:14px;white-space:normal}
 .app .compact-ui .form,.app .compact-ui input[data-edit]{font-size:16px;min-height:44px}
 .app .compact-ui .grid,.app .compact-ui .modegrid{grid-template-columns:1fr}
 .app .compact-ui .sectionbody,.app .compact-ui .sectionhead{padding:20px 16px}
 .app .compact-ui .sectionhead{flex-wrap:wrap}
 .app #newCase{width:100%;margin-bottom:4px}
 .app .case-list{min-width:0;width:100%}
 .app .case-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .app .case-list tbody{display:block}
 .app .case-list tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:18px 16px;border-bottom:1px solid var(--line)}
 .app .case-list td{display:block;padding:0;border:0;min-width:0;font-size:13px;overflow-wrap:anywhere}
 .app .case-list td:first-child,.app .case-list td:last-child{grid-column:1/-1}
 .app .case-list td:first-child b{font-size:16px;display:block;margin-bottom:5px}
 .app .case-list td:not(:first-child):not(:last-child):before{content:attr(data-label);display:block;font-size:11px;color:#777;margin-bottom:4px}
 .app .case-list td:last-child .btn{width:100%;margin-top:3px}
 .app .section:has(.case-list) .table-scroll{max-height:none}
 .app .case-heading{flex-wrap:wrap;gap:12px;margin-bottom:18px}
 .app .case-heading>div:first-child{width:100%}
 .app .case-heading p{font-size:12px;overflow-wrap:anywhere}
 .app .case-tools{max-width:none;width:100%;justify-content:flex-start}
 .app .case-tools #saveStatus{order:0;flex:1;width:auto;text-align:left}
 .app .case-options summary{min-height:44px;min-width:44px;display:grid;place-items:center;padding:8px}
 .app .back-link{min-height:44px;padding:10px 0}
 .app .workflow{margin-bottom:16px}
 .app .workflow-step{padding:12px 3px;gap:7px;flex-direction:column;text-align:center;min-width:0}
 .app .workflow-step strong{font-size:12px}
 .app .workflow-step small{display:none}
 .app .step-number{width:28px;height:28px;font-size:12px}
 .app .upload-surface .files{padding:24px 14px;min-height:0;margin-top:18px}
 .app .upload-surface .files b{font-size:16px}
 .app .upload-surface .fileitem{flex-wrap:wrap;align-items:flex-start}
 .app .upload-surface .fileitem>div{min-width:0}
 .app .task-next{padding:16px;flex-direction:column;align-items:stretch;gap:10px}
 .app .task-next>.muted{max-width:none;font-size:12px}
 .app .task-next .btn{width:100%}
 .app .review-heading{padding:20px 16px 8px;flex-wrap:wrap;gap:5px}
 .app .review-toolbar{padding:12px 12px;flex-wrap:wrap;gap:10px}
 .app .filter-group{width:100%;gap:2px;justify-content:space-between}
 .app .filter{min-height:44px;font-size:12px;padding:8px 6px}
 .app .filter span{margin-left:3px}
 .app .review-tools{width:100%;justify-content:space-between;gap:8px}
 .app .review-tools .text-button,.app .technical-toggle{min-height:44px;display:inline-flex;align-items:center;font-size:12px}
 .app .review-search{padding:0 16px 16px;flex-direction:column;gap:10px}
 .app .review-search select,.app .review-search input{width:100%;flex:auto;min-width:0}
 .app .review-grid{max-height:65vh;max-height:65dvh;overscroll-behavior-y:contain}
 .app .review-grid .table{min-width:0;width:100%;table-layout:fixed}
 .app .review-grid thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .app .review-grid tbody{display:block}
 .app .review-grid tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:16px;border-bottom:1px solid var(--line)}
 .app .review-grid td{display:block;padding:0;border:0;min-width:0}
 .app .review-grid td:first-child{grid-column:1/-1;overflow-wrap:anywhere}
 .app .review-grid .label{font-size:14px;line-height:1.5}
 .app .review-grid td:nth-child(2):before,.app .review-grid td:nth-child(3):before{display:block;color:#777;font-size:12px;margin-bottom:6px}
 .app .review-grid td:nth-child(2):before{content:'Current year'}
 .app .review-grid td:nth-child(3):before{content:'Previous year'}
 .app .review-grid input[data-edit]{width:100%;min-width:0;max-width:none;text-align:left;padding:10px 8px}
 .app .review-hint{padding:0 16px;line-height:1.6}
 .app .download-heading{padding:22px 16px 0}
 .app .output-list{padding:0 16px}
 .app .output-file{gap:12px;flex-wrap:wrap;padding:22px 0}
 .app .output-icon{width:42px;height:56px}
 .app .output-icon svg{width:27px;height:27px}
 .app .output-copy h3{font-size:17px}
 .app .output-copy p{font-size:12px}
 .app .output-actions{width:100%;padding-left:0;flex-direction:row;gap:8px}
 .app .output-actions .btn{flex:1;min-width:0}
 .app .output-actions #genXml{flex:0 0 65px}
 .app .inline-details{margin:0 16px;overflow-wrap:anywhere}
 .app .inline-details summary{min-height:44px;align-content:center;line-height:1.6}
 .app .inline-details .table{min-width:0}
 .app .inline-details .table th,.app .inline-details .table td{padding:8px;font-size:12px;overflow-wrap:anywhere}
 .app .download-blockers{margin:16px 16px 0;padding:12px}
 .app .draft-label{padding:18px 16px;line-height:1.6}
 .app .privacy-line{line-height:1.7;padding:0 8px}
 .app .privacy-line .text-button{min-height:44px;display:inline-flex;align-items:center}
 .app #wordCards .flex>label{width:100%}
 .app #wordCards blockquote{margin:12px 0}
}
@media(min-width:601px){
 body.phone-sim .app .header-inner{flex-wrap:wrap}
 body.phone-sim .app .topnav{width:100%;order:3;margin:6px 0 0;border-top:1px solid #eee;padding-top:6px}
 body.phone-sim .app #toggleMobile{display:inline-flex}
}
