/* Global styles */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f5f7fa;
    color: #182438;
    margin: 40px auto;
    max-width: 1080px;
    padding: 0 24px;
}

h1 { color: #123b63; }
nav {
    display: flex;
    gap: 22px;
    padding: 18px;
    background: #fff;
    border-radius: 10px;
    margin: 20px 0;
}
a { color: #1463a0; text-decoration: none; }
section { background: #fff; padding: 22px; border-radius: 10px; margin: 20px 0; }
input, select, button {
    padding: 10px;
    margin: 4px;
    border: 1px solid #bbc8d3;
    border-radius: 6px;
}
button { background: #155c9c; color: white; cursor: pointer; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { padding: 13px; text-align: left; border-bottom: 1px solid #e4e9ef; }
.stats { display: flex; gap: 18px; }
.stats div {
    background: #fff;
    padding: 25px;
    min-width: 150px;
    border-radius: 10px;
    display: grid;
    gap: 8px;
}
.stats strong { font-size: 30px; }
.note {
    padding: 14px;
    background: #fff0d9;
    border: 1px solid #e0bc7c;
    border-radius: 6px;
}

/* Login and registration pages */
.account-panel {
    max-width: 440px;
    margin: 8vh auto;
    padding: 28px;
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(18, 59, 99, 0.06);
}
.account-form { display: grid; gap: 16px; }
.account-form label { display: block; font-weight: 600; }
.account-form input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 6px 0 0;
    font: inherit;
    font-weight: normal;
}
.account-form button {
    justify-self: start;
    margin: 0;
    padding: 10px 20px;
}

/* Interview and validation */
.form-error {
    color: #9f2231;
    padding: 12px;
    background: #fff0f1;
    border-radius: 6px;
}
.interview-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 24px;
    align-items: start;
}
.estimate-summary {
    position: sticky;
    top: 24px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #c9d6e3;
}
.estimate-summary dd {
    margin: 4px 0 18px;
    font-size: 1.35rem;
    font-weight: 600;
}
.status-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.status-cards button {
    padding: 20px;
    background: white;
    color: #123b63;
    border: 2px solid #c9d6e3;
}
.status-cards button.selected {
    border-color: #155c9c;
    background: #eaf3ff;
}
section > label {
    display: block;
    margin: 12px 0;
}
textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    border: 1px solid #bbc8d3;
    border-radius: 6px;
    font: inherit;
}
@media (max-width: 720px) {
    .interview-layout { grid-template-columns: 1fr; }
    .estimate-summary { position: static; }
    .status-cards { grid-template-columns: 1fr; }
    nav { flex-wrap: wrap; }
}

.status-cards button span {
    display: block;
    margin-top: 10px;
    font-size: .9rem;
    line-height: 1.4;
}

/* Approved Users/account design */
:root { color-scheme: light dark; --tp-page:light-dark(#f3f7f5,#102924); --tp-surface:light-dark(#ffffff,#19352e); --tp-text:light-dark(#233d35,#e2efe8); --tp-muted:light-dark(#61786e,#abc0b5); --tp-line:light-dark(#dce6e0,#3a5449); --tp-green:light-dark(#197653,#63d5a3); --tp-soft:light-dark(#e8f5ed,#244e3b); --tp-red:light-dark(#b02d3d,#ff98a6); }
body { margin:0;max-width:none;padding:0;background:var(--tp-page);color:var(--tp-text);font-size:14px;line-height:1.5; }
* { box-sizing:border-box; } h1 {color:var(--tp-text);font-size:28px;margin:0 0 5px;letter-spacing:-.6px;} h2{font-size:19px;margin:0 0 12px;} p{color:var(--tp-muted);} a{color:var(--tp-green);}button,input,select,textarea{font:inherit;}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;}input,select,textarea{color:var(--tp-text);background:var(--tp-surface);border-color:var(--tp-line);}button:disabled{opacity:.45;cursor:not-allowed;}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--tp-green);outline-offset:3px;}
.tp-app{min-height:100vh}.tp-top{display:flex;align-items:center;justify-content:space-between;padding:16px 28px;border-bottom:1px solid var(--tp-line);background:var(--tp-surface);gap:18px}.tp-brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:650;overflow-wrap:anywhere}.tp-brand img{max-width:120px;max-height:42px;object-fit:contain}.tp-top-actions{display:flex;align-items:center;gap:12px}.tp-top-actions form{margin:0}.tp-profile{padding:0;margin:0;border:0;background:transparent;color:var(--tp-text);text-align:left;gap:10px}.tp-profile small{display:block;color:var(--tp-muted);font-size:12px;font-weight:400}.tp-shell{display:grid;grid-template-columns:196px minmax(0,1fr)}.tp-sidebar{background:var(--tp-surface);border-right:1px solid var(--tp-line);padding:25px 14px}.tp-sidebar a{display:flex;align-items:center;gap:11px;padding:12px;border-radius:8px;color:var(--tp-muted);margin-bottom:7px}.tp-sidebar a.active{background:var(--tp-soft);color:var(--tp-green);font-weight:600}.tp-content{padding:32px;min-width:0;max-width:1500px;width:100%;margin:0 auto}.tp-page-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.tp-page-heading p{margin:0}.tp-primary{background:light-dark(#197653,#4fc793);color:light-dark(#fff,#09291c);border:1px solid transparent;padding:10px 17px;font-weight:600;margin:0}.tp-secondary{background:var(--tp-surface);color:var(--tp-text);border:1px solid var(--tp-line);margin:0}.tp-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;background:transparent;color:var(--tp-muted);border:0;padding:9px;margin:0;border-radius:6px;min-width:36px;min-height:36px}.tp-icon:hover{background:var(--tp-soft)}.tp-icon.tp-delete{color:var(--tp-red)}.tp-text{background:none;border:0;color:var(--tp-green);padding:4px 0;margin:0;font-size:12px;text-align:left}.tp-role-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:22px 0;border-bottom:1px solid var(--tp-line)}.tp-role-tabs button{background:transparent;color:var(--tp-muted);border:0;border-bottom:3px solid transparent;border-radius:0;padding:10px 12px;margin:0}.tp-role-tabs button.active{border-bottom-color:var(--tp-green);color:var(--tp-green)}.tp-role-tabs span{background:var(--tp-soft);border-radius:10px;padding:0 7px;font-size:12px}.tp-toolbar{display:flex;gap:12px;align-items:center;margin:22px 0 17px;flex-wrap:wrap}.tp-toolbar select{margin:0;max-width:100%}.tp-search{display:flex;align-items:center;background:var(--tp-surface);border:1px solid var(--tp-line);border-radius:7px;padding:0 12px;gap:8px;flex:1;min-width:200px}.tp-search input{border:0;margin:0;width:100%;min-width:0;outline-offset:0}.tp-search svg{color:var(--tp-muted)}.tp-table-wrap{overflow-x:auto;border:1px solid var(--tp-line);border-radius:10px;background:var(--tp-surface)}table.tp-users{background:var(--tp-surface);min-width:600px}table.tp-users th{background:light-dark(#f8faf9,#203c32);font-size:12px;color:var(--tp-muted);font-weight:500}table.tp-users th,table.tp-users td{padding:16px 20px;border-color:var(--tp-line)}table.tp-users tr:last-child td{border-bottom:0}.tp-person{display:flex;align-items:center;gap:12px}.tp-person strong{font-weight:600}.tp-person small{display:block;color:var(--tp-muted);font-size:12px}.tp-avatar{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex-shrink:0;border-radius:50%;background:var(--tp-soft);color:var(--tp-green);font-weight:600;overflow:hidden}.tp-avatar img{width:100%;height:100%;object-fit:cover}.tp-avatar.tp-large{height:76px;width:76px;font-size:23px;object-fit:cover}.tp-role{display:inline-block;padding:4px 10px;border-radius:6px;font-size:12px;background:var(--tp-soft);color:var(--tp-green);white-space:nowrap}.tp-status{display:inline-flex;align-items:center;gap:7px;color:var(--tp-green);font-size:12px;white-space:nowrap}.tp-status:before{content:"";background:currentColor;width:7px;height:7px;border-radius:50%;flex-shrink:0}.tp-status.tp-disabled{color:var(--tp-red)}.tp-row-actions{display:flex;gap:6px;justify-content:flex-end}.tp-right{text-align:right}.tp-protected{display:flex;align-items:center;gap:6px;color:var(--tp-muted);font-size:12px}.tp-muted,small{color:var(--tp-muted)}.tp-list-footer{display:flex;justify-content:space-between;gap:15px;color:var(--tp-muted);font-size:12px;margin-top:14px}.tp-empty{text-align:center;color:var(--tp-muted)}.tp-tax-links{font-size:12px;margin-top:5px}.tp-tax-links summary{color:var(--tp-green);cursor:pointer}.tp-tax-links .tp-text{display:block}.tp-message:empty,.tp-error:empty{display:none}.tp-message{color:var(--tp-green)}.tp-error{color:var(--tp-red);font-size:13px}.tp-dialog{color:var(--tp-text);background:var(--tp-surface);padding:0;border:1px solid var(--tp-line);border-radius:13px;width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);box-shadow:0 20px 70px #0004}.tp-dialog::backdrop{background:#071d1880}.tp-dialog-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--tp-line);padding:18px 24px}.tp-dialog-head h2{margin:0;font-size:21px}.tp-dialog-body{padding:22px 24px}.tp-dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;border-top:1px solid var(--tp-line);padding:16px 24px}.tp-dialog form{margin:0}.tp-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tp-form-grid label,.tp-config>label{display:grid;gap:5px;font-size:13px;font-weight:500;margin:0}.tp-form-grid input,.tp-form-grid select,.tp-form-grid textarea,.tp-config input,.tp-config select{width:100%;min-width:0;margin:0;padding:9px 11px}.tp-form-grid textarea{resize:vertical}.tp-form-grid small,.tp-photo-edit small,.tp-access small{display:block;font-size:12px;font-weight:400}.tp-span{grid-column:1/-1}.tp-photo-edit{display:flex;gap:18px;align-items:center;margin-bottom:24px}.tp-file-label{display:block;font-size:13px;color:var(--tp-green)}.tp-file-label input[type=file]{display:block;border:0;margin:5px 0;padding:0;font-size:12px;max-width:100%;width:100%}.tp-photo-edit>div{min-width:0}.tp-access{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:22px;border-top:1px solid var(--tp-line);padding-top:18px}.tp-access .tp-status{margin-left:10px}.tp-success-outline{background:var(--tp-soft);border-color:var(--tp-green);color:var(--tp-green);white-space:nowrap}.tp-danger-outline{background:transparent;border-color:var(--tp-red);color:var(--tp-red);white-space:nowrap}.tp-danger{color:light-dark(#fff,#30080e);background:light-dark(#b02d3d,#ff98a6);border-color:transparent}.tp-config{background:var(--tp-surface);border:1px solid var(--tp-line);max-width:760px}.tp-config>label{margin:18px 0;max-width:450px}.tp-config input[type=checkbox]{width:auto}.tp-config-tabs{display:flex;gap:24px;flex-wrap:wrap;margin:26px 0;border-bottom:1px solid var(--tp-line);padding-bottom:13px}.tp-config-tabs strong{color:var(--tp-green);font-weight:600}.tp-logo-preview{max-width:180px;max-height:80px;object-fit:contain}.tp-notification{padding:14px 28px;border-bottom:1px solid var(--tp-line);background:var(--tp-surface);color:var(--tp-muted)}
@media(max-width:850px){.tp-shell{grid-template-columns:1fr}.tp-sidebar{display:flex;flex-wrap:wrap;padding:8px;border-bottom:1px solid var(--tp-line);border-right:0;gap:4px}.tp-sidebar a{margin:0;padding:10px;font-size:12px}.tp-content{padding:24px}.tp-top{padding:14px 20px}.tp-top-actions{gap:6px}.tp-brand{font-size:18px}}
@media(max-width:540px){.tp-content{padding:18px 14px}.tp-top{padding:12px;gap:8px}.tp-profile>span:not(.tp-avatar){display:none}.tp-top-actions{gap:4px}.tp-profile .tp-avatar{width:32px;height:32px}.tp-brand{font-size:16px}.tp-brand img{max-width:70px;max-height:30px}.tp-form-grid{grid-template-columns:1fr}.tp-span{grid-column:auto}.tp-dialog-body,.tp-dialog-head,.tp-dialog-footer{padding:17px}.tp-page-heading{align-items:start}h1{font-size:25px}.tp-toolbar{gap:8px}.tp-toolbar select{flex:1;min-width:0}.tp-search{flex-basis:100%}.tp-list-footer{align-items:start}.tp-access{flex-wrap:wrap}input,select,textarea{font-size:16px}.tp-sidebar a{font-size:11px;padding:9px}.tp-sidebar svg{display:none}button{min-height:40px}.tp-config-tabs{gap:15px}}
.tp-status.tp-pending{color:light-dark(#9a610a,#e6b863)}
.tp-config-fields{border:0;padding:0;margin:0;min-width:0}
.tp-photo-button{position:relative;display:inline-flex;border-radius:50%;flex-shrink:0;cursor:pointer}.tp-photo-button input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;padding:0;cursor:pointer}.tp-photo-button:focus-within{outline:3px solid var(--tp-green);outline-offset:4px}.tp-photo-camera{position:absolute;bottom:0;right:0;display:flex;align-items:center;justify-content:center;width:27px;height:27px;border-radius:50%;background:var(--tp-green);color:light-dark(#fff,#0e2b20);border:2px solid var(--tp-surface)}.tp-photo-camera svg{width:15px;height:15px}.tp-position-options{display:flex;gap:14px 24px;flex-wrap:wrap;margin-top:18px}.tp-position-options label{display:flex;gap:8px;align-items:center;font-size:14px}.tp-position-options input[type=checkbox]{width:auto;margin:0;accent-color:var(--tp-green)}.tp-tax-profile{margin-top:8px}.tp-tax-profile+.tp-tax-profile{border-top:1px solid var(--tp-line);padding-top:8px}
.tp-user-filters{border:0;padding:0;margin:0;min-width:0}
.tp-config table{background:var(--tp-surface);color:var(--tp-text)}.tp-config th,.tp-config td{border-color:var(--tp-line)}.tp-config input[type=checkbox]{accent-color:var(--tp-green)}
.tp-record-options{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.25rem 0}.tp-record-options a{display:inline-flex;align-items:center;gap:.5rem;text-decoration:none}.tp-dialog-body>label{display:flex;flex-direction:column;gap:.4rem;margin-top:1rem}.tp-text{display:inline-flex;align-items:center;gap:.4rem}.tp-text svg{width:18px;height:18px}.tp-brand>svg{width:32px;height:32px;color:#299853}

.tp-record-options{gap:12px;margin:20px 0 24px;align-items:stretch}
.tp-record-options>a,.tp-record-options>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;margin:0;border-radius:7px;line-height:1.4}
.tp-assignment{margin-top:24px;padding:20px;border:1px solid var(--tp-line);border-radius:9px}
.tp-assignment>label{display:grid;gap:8px;margin:16px 0 20px;max-width:100%}
.tp-assignment select{width:100%;margin:0;min-height:44px}
@media(max-width:420px){.tp-record-options>a,.tp-record-options>button{flex:1 1 140px}}
/* Guided Tax Interview */
.ti-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0 24px}.ti-heading p{margin:4px 0;color:var(--tp-muted)}.ti-year{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.ti-year label{display:grid;gap:5px}.ti-year input{width:120px;margin:0}.ti-year button{margin:0}.ti-documents{padding:16px 20px;border:1px solid var(--tp-line);border-radius:10px;background:var(--tp-surface);margin:18px 0}.ti-documents summary{color:var(--tp-green);font-weight:600}.ti-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:24px 0}.ti-step{background:transparent;color:var(--tp-muted);border:0;border-top:3px solid var(--tp-line);border-radius:0;text-align:left;margin:0;padding:12px 4px}.ti-step[aria-current=step]{border-color:var(--tp-green);color:var(--tp-green);font-weight:600}.ti-columns{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.ti-paper{margin:0;padding:24px;border:1px solid var(--tp-line);border-radius:12px;background:var(--tp-surface);min-width:0}.ti-paper h2{margin:0 0 8px}.ti-paper p{color:var(--tp-muted)}.ti-fields-root{border:0;padding:0;margin:0;min-width:0}.ti-statuses{display:grid;gap:12px;margin:22px 0 28px}.ti-choice{display:flex;align-items:start;gap:10px;padding:16px;border:1px solid var(--tp-line);border-radius:9px}.ti-choice:has(input:checked){background:var(--tp-soft);border-color:var(--tp-green)}.ti-choice input{width:auto;margin:4px 0 0;accent-color:var(--tp-green)}.ti-choice small{display:block;margin-top:3px}.ti-standard{display:block;color:var(--tp-green);margin-top:7px}.ti-check{display:flex;align-items:start;gap:10px;padding:16px 0;border-bottom:1px solid var(--tp-line);margin:5px 0}.ti-check input{width:auto;margin:4px 0 0;accent-color:var(--tp-green);flex-shrink:0}.ti-check span small{display:block;color:var(--tp-muted);margin-top:4px}.ti-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ti-fields label,.ti-detail>label,.ti-extracted,.ti-notes{display:grid;gap:6px;min-width:0}.ti-fields input,.ti-detail>label input,.ti-extracted input,.ti-notes textarea{width:100%;margin:0;min-width:0}.ti-wide{grid-column:1/-1}.ti-dependent,.ti-income-entry{padding:16px;background:var(--tp-soft);border-radius:8px;margin:15px 0}.ti-income-entry>.tp-text{display:block;margin-top:10px}.ti-detail{padding:8px 0 22px 27px}.ti-upload{position:relative;display:grid;justify-items:start;gap:8px;padding:18px;border:1px dashed var(--tp-line);border-radius:9px;margin:20px 0 10px;overflow-wrap:anywhere;min-width:0}.ti-upload input[type=file]{width:100%;max-width:100%;padding:0;border:0;min-width:0}.ti-upload small{color:var(--tp-muted)}.ti-dragging{background:var(--tp-soft);border-color:var(--tp-green)}.ti-file-list{display:grid;gap:12px;margin:12px 0}.ti-file-list>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;overflow-wrap:anywhere;padding:10px 0;border-bottom:1px solid var(--tp-line)}.ti-file-list span{flex-basis:100%;font-size:13px}.ti-review-row{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--tp-line);overflow-wrap:anywhere}.ti-review-row span{color:var(--tp-muted)}.ti-review-row strong{text-align:right;font-variant-numeric:tabular-nums}.ti-summary h2{font-size:18px}.ti-tax{font-size:29px;font-weight:600;font-variant-numeric:tabular-nums;margin:8px 0}.ti-summary>.ti-review-row{font-size:13px}.ti-estimate-note{font-size:12px;margin-top:18px}.ti-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:26px;border-top:1px solid var(--tp-line);padding-top:20px}.ti-actions>span{color:var(--tp-muted);font-size:12px}.ti-actions button{margin:0}.ti-bottom{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:22px 0}.ti-bottom>span{flex-basis:100%;color:var(--tp-green)}.ti-other{margin-top:20px;padding-top:12px;border-top:1px solid var(--tp-line)}.ti-other h3 small{font-weight:400;font-size:12px;margin-left:7px}.ti-notes{margin-top:20px}.ti-notes textarea{min-height:110px}.ti-notice{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:16px;background:var(--tp-soft);border-radius:9px}.ti-notice span{color:var(--tp-muted)}.ti-extracted{margin:14px 0}.ti-pdf{width:100%;height:400px;border:1px solid var(--tp-line)}
@media(max-width:1050px){.ti-columns{grid-template-columns:minmax(0,1fr) 240px;gap:16px}.ti-paper{padding:20px}}
@media(max-width:730px){.ti-columns{grid-template-columns:1fr}.ti-summary{grid-row:1}.ti-heading{align-items:start;flex-wrap:wrap}.ti-fields{grid-template-columns:1fr}.ti-wide{grid-column:auto}.ti-detail{padding-left:10px}.ti-steps{gap:6px}.ti-step{font-size:12px;padding:10px 0}.ti-paper{padding:18px}.ti-review-row{flex-wrap:wrap}.ti-standard{font-size:13px}.ti-upload{padding:14px}.ti-actions{flex-wrap:wrap}}

/* Compact interview controls */
.ti-statuses{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0 20px}.ti-choice{padding:12px}.ti-paper{padding:20px}.ti-check{padding:10px 0}.ti-upload{padding:12px;margin:12px 0}.ti-actions{position:sticky;bottom:0;background:var(--tp-surface);z-index:2;padding:12px 0;margin-top:16px}.ti-upload-button{position:relative;display:inline-flex;align-items:center;gap:8px;color:var(--tp-green);border:1px solid var(--tp-line);padding:8px;border-radius:6px}.ti-upload-button input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.ti-upload-button:focus-within{outline:2px solid var(--tp-green)}.ti-upload-label{font-size:13px}@media(max-width:730px){.ti-statuses{grid-template-columns:1fr}.ti-actions{bottom:0}}

.tp-customer-details{border-top:1px solid var(--tp-line);border-bottom:1px solid var(--tp-line);margin-top:18px;padding:12px 0}.tp-customer-details summary{font-weight:600;color:var(--tp-green)}.tp-customer-details summary small{display:inline;font-weight:400;color:var(--tp-muted)}.tp-customer-details .tp-form-grid{margin-top:15px}.tp-dependent-edit{padding:12px;background:var(--tp-soft);border-radius:8px}.tp-dependent-edit .tp-form-grid{margin:0}

.ti-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.ti-category{min-width:0}.ti-category .ti-detail{padding-left:10px}@media(max-width:730px){.ti-category-grid{grid-template-columns:1fr}}

.tp-year-import{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tp-year-import button{margin:0}
.tp-dialog.tp-dialog-wide{width:min(1160px,96vw);max-width:1160px}.tp-document-review-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(280px,1fr);gap:22px}.tp-document-heading{margin-bottom:16px}.tp-document-heading small{display:block}.tp-document-actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.tp-document-field{padding:12px 0}.tp-document-review-grid .ti-pdf{height:620px;width:100%}.tp-detection{padding:12px;border:1px solid var(--tp-line)}.ti-dependent summary{cursor:pointer;padding:8px 0;font-weight:600}.tp-return-actions{display:flex;gap:10px;flex-wrap:nowrap}.tp-return-filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin:16px 0}.tp-return-person{display:flex;gap:10px;align-items:center}.tp-return-person small{display:block}.tp-rule-bottom{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap}.tp-return-actions .tp-primary:disabled{opacity:.4}.tp-return-audit{font-size:.9em}
@media(max-width:760px){.tp-document-review-grid{grid-template-columns:1fr}.tp-document-review-grid .ti-pdf{height:360px}}
/* v10 compact review and year-based return controls */
.tp-page-preview{border:1px solid var(--tp-line);border-radius:7px;overflow:hidden;background:var(--tp-surface)}.tp-preview-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:var(--tp-soft);color:var(--tp-text)}.tp-preview-tools>div{display:flex;align-items:center;gap:8px}.tp-preview-canvas{overflow:auto;max-height:680px}.tp-preview-canvas img{display:block;height:auto}.tp-document-field{padding:12px!important;margin:10px 0!important}.tp-document-field>label:first-child{display:flex;flex-direction:column;gap:7px}.tp-document-field input[type=text]{width:100%;max-width:250px}.tp-danger-text{color:var(--tp-red)!important}.ti-top-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;background:var(--tp-soft);border-radius:8px;padding:16px;margin:16px 0;color:var(--tp-text)}.ti-top-summary strong{display:block;font-size:1.45rem}.ti-top-summary small{display:block}.ti-embedded .ti-columns{display:block}.ti-embedded .ti-paper{width:100%}.tp-return-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;flex-wrap:wrap;margin-bottom:25px}.tp-return-create{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.tp-return-create label{display:flex;flex-direction:column;gap:5px}.tp-return-create input{max-width:100px}.tp-return-filters .tp-search{flex:1}.tp-return-actions{justify-content:flex-end}.tp-return-actions+.tp-muted{display:none}.ti-upload-progress{padding:10px 14px;margin:10px 0;background:var(--tp-soft);border-radius:6px}.ti-upload-progress progress{width:100%;height:12px}.tp-dialog-interview{width:min(1280px,96vw)!important}.tp-progress-status{font-size:.9rem}.tp-page-preview button{min-width:36px}@media(max-width:700px){.ti-top-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-return-create{width:100%}.tp-return-filters{flex-wrap:wrap}}
/* v11: compact interview comparison, shared data and one persistent footer. */
.tp-heading-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.tp-field-unresolved{border:2px solid var(--tp-red)!important}.ti-embedded .ti-heading{margin:0 0 8px}.ti-embedded .ti-heading p{display:inline;margin-left:10px;font-size:13px}.ti-embedded .ti-top-summary{margin:8px 0;padding:12px}.ti-embedded .ti-estimate-note{margin:6px 0;font-size:12px}.ti-embedded .ti-steps{margin:10px 0;gap:6px}.ti-embedded .ti-step{padding:8px 4px}.ti-embedded .ti-paper{padding:12px;border:0}.ti-embedded .ti-paper h2{font-size:18px}.ti-embedded .ti-paper p{margin:5px 0 10px}.ti-embedded .ti-income-entry{margin:8px 0;padding:10px}.ti-embedded .ti-detail{padding:6px 0 10px 12px}.ti-embedded .ti-fields{gap:10px}.ti-embedded .ti-file-list{gap:5px;margin:5px 0}.ti-embedded .ti-file-list>div{padding:6px 0}.ti-embedded .ti-file-list span{flex-basis:auto}.ti-embedded .ti-upload{margin:8px 0;padding:9px;gap:5px}.ti-embedded .ti-upload-progress{margin:6px 0;padding:8px 10px}.ti-unified-footer{position:sticky;bottom:0;z-index:3;background:var(--tp-surface);padding:12px 0 6px;border-top:1px solid var(--tp-line);display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap}.ti-unified-footer>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ti-footer-step{font-size:12px;color:var(--tp-muted)}.ti-save-message{margin:5px 0;font-size:13px;color:var(--tp-green)}.ti-layout-switch{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}.ti-layout-switch small{color:var(--tp-muted)}.ti-collapsible{border:1px solid var(--tp-line);border-radius:7px;min-width:0;padding:8px;margin-bottom:8px}.ti-collapsible>summary{color:var(--tp-green);padding:5px;cursor:pointer}.ti-collapsible>summary small{float:right;color:var(--tp-muted)}.ti-layout-original .ti-collapsible{border:0;padding:0}.ti-layout-original .ti-collapsible>summary{display:none}.ti-layout-original .ti-collapsible:not([open])>*{display:revert}.ti-layout-collapse .ti-category-grid{grid-template-columns:1fr}.tp-dialog-interview>.tp-dialog-head{padding:12px 20px}.tp-interview-body{padding:10px 20px!important}.tp-returns th:last-child{text-align:right}.tp-document-review-grid>div{min-width:0}
@media(max-width:700px){.ti-footer-step{display:none}.ti-unified-footer>div{flex:1;justify-content:flex-end}.ti-embedded .ti-heading p{display:block;margin-left:0}.ti-collapsible>summary small{float:none;display:block}.ti-layout-switch small{display:none}}
/* v12 compact interview and review actions */
.ti-heading>div:first-child{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}.ti-heading{margin-bottom:.65rem}.ti-heading small{font-size:.78rem}.ti-embedded .ti-paper{padding:1rem}.ti-embedded .ti-top-summary{padding:.75rem 1rem}.ti-embedded .ti-steps{margin:.65rem 0}.ti-embedded .ti-paper h2{margin-top:0}.ti-embedded .ti-notes textarea{min-height:4rem}.ti-footer-confirm{margin:.5rem 0;padding:.5rem 0;border-top:1px solid var(--tp-line)}.tp-overdue{display:inline-block;color:#b42318;background:#fff0ee;border-radius:5px;padding:.2rem .4rem;font-size:.78rem;margin:.2rem .3rem}.tp-confirmed{color:#157454}.tp-bracket-grid input{width:100%;min-width:6rem}.tp-bracket-grid td{padding:.35rem .6rem}.ti-extracted{display:flex;flex-direction:column;gap:.35rem;min-width:0}.ti-extracted .ti-check{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:.5rem;white-space:normal;overflow-wrap:anywhere}.ti-extracted input[type=checkbox]{width:auto;min-width:1rem;flex:0 0 auto}.tp-document-review-grid>div{min-width:0}.tp-return-actions{justify-content:flex-end}.tp-returns th:last-child{text-align:right}.ti-unified-footer>div{display:flex;gap:.5rem;flex-wrap:wrap}

.ti-embedded .ti-heading{margin:.25rem 0 .6rem}.ti-embedded .ti-review-row{padding:.55rem 0}.ti-other>summary{cursor:pointer;color:var(--tp-green)}.ti-embedded .ti-other{padding:.6rem 0;margin:.5rem 0}.ti-embedded .ti-paper>p{margin:.4rem 0 .8rem}

/* V13 activity center */
input[type=checkbox],input[type=radio]{accent-color:#187b59}.tp-bell{position:relative}.tp-bell-unread{color:#187b59}.tp-bell-count{position:absolute;right:-5px;bottom:-4px;min-width:16px;height:16px;border:2px solid white;border-radius:12px;background:#187b59;color:white;font-size:10px;line-height:12px;padding:0 2px}.tp-notice-tabs{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:12px}.tp-notice-row{border-top:1px solid #d5e3de;padding:16px 0}.tp-notice-row summary{display:flex;gap:12px;align-items:center;cursor:pointer}.tp-notice-row summary small{margin-left:auto;white-space:nowrap}.tp-unread-dot{width:8px;height:8px;flex-shrink:0;background:#187b59;border-radius:50%}.tp-queued{opacity:.65;background:#f5f7f6}.tp-warning-badge{color:#805c0a;background:#fff0c9;padding:4px 8px;border-radius:5px}.tp-import-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:20px 0}.tp-dropzone{border:1px dashed #9ebbb1;border-radius:8px;padding:20px;background:#f7fbf9}.tp-notice-row p{overflow-wrap:anywhere}@media(max-width:700px){.tp-import-columns{grid-template-columns:1fr}}

.tp-dropzone{position:relative;padding-bottom:55px}.tp-dropzone input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.tp-dropzone::after{content:"Browse files";display:inline-block;border:1px solid #9ebbb1;border-radius:5px;padding:8px 12px;color:#187b59;pointer-events:none}.tp-invalid{border-color:#cf2035!important}

.ti-prepared-action{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.ti-prepared-action small{font-size:11px}.tp-dropzone:focus-within{outline:2px solid #187b59;outline-offset:3px}

.tp-dialog.tp-notification-dialog{width:min(840px,94vw);max-height:85vh;overflow:hidden}.tp-notification-dialog .tp-dialog-body{max-height:60vh;overflow:auto}.tp-notice-row summary::after{content:"⌄";color:var(--tp-green)}.tp-notice-row[open] summary::after{content:"⌃"}.tp-notification-dialog .tp-dialog-footer{background:var(--tp-surface)}
