:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#28354a;background:#fff;font-size:16px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #d5dce5;border-radius:5px;background:#fff;color:#30405a;padding:9px 12px;font-size:.875rem}button:hover{background:#f1f5fa}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #216edf;outline-offset:2px}button.primary{background:#216edf;border-color:#216edf;color:white}.primary:hover{background:#195ec5}input,select,textarea{border:1px solid #d5dce5;border-radius:5px;background:#fff;padding:9px 10px;color:#28354a;font-size:.875rem}input,textarea{width:100%}[hidden]{display:none!important}h1,h2,p{margin-top:0}h1{font-size:1.7rem;letter-spacing:-.6px;margin-bottom:0}h2{font-size:1.25rem}.brand{display:flex;align-items:center;gap:8px;font-size:1.45rem;font-weight:700;letter-spacing:-.5px}.mark{background:#203858;color:#fff;padding:6px 8px;border-radius:7px;font-size:1.2rem;letter-spacing:-1px}.login{min-height:100vh;display:grid;place-items:center;background:#f3f6fb;padding:20px}.login form{max-width:420px;width:100%;background:white;padding:38px;border:1px solid #dde4ed;border-radius:12px;box-shadow:0 12px 40px #2038580d}.login h1{font-size:1.4rem;margin:30px 0 24px}.login label{display:block;font-size:.875rem;margin-bottom:18px}.login input{display:block;margin-top:7px}.login button{width:100%}.login small{color:#778297;font-size:.8rem}#login-error{color:#b3253b;margin:14px 0}#workspace{display:flex;height:100vh}aside{flex:0 0 190px;background:#f5f7fb;border-right:1px solid #e1e6ef;padding:23px 14px;position:relative}.workspace-label{font-size:.75rem;color:#8490a4;letter-spacing:.7px;margin:31px 8px 12px}.nav{width:100%;border:0;background:transparent;text-align:left;padding:11px 10px;margin-bottom:3px;display:flex;gap:8px;align-items:center}.nav.active{background:#e3edfc;color:#155ac1;font-weight:600}.group-dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:none}.aside-bottom{position:absolute;bottom:18px;left:14px;right:14px}main{flex:1;min-width:0;display:flex;flex-direction:column;padding:27px 26px 12px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.breadcrumb{font-size:.8rem;color:#8893a5;margin-bottom:11px}#count{display:inline-block;font-size:.85rem;font-weight:500;background:#edf1f6;color:#627087;padding:5px 8px;border-radius:6px;vertical-align:middle;margin-left:8px}.header-right{display:flex;gap:15px;align-items:center;font-size:.8rem;color:#6b778c}.test-badge{border:1px solid #e5d4a2;color:#795b11;background:#fffae9;padding:6px 10px;border-radius:20px}.tabs{display:flex;align-items:center;border-bottom:1px solid #dde3eb;gap:24px;font-size:.875rem}.tabs .selected{border-bottom:3px solid #216edf;padding:12px 5px;color:#216edf;font-weight:600}.tabs button{border:0;background:transparent}.source-note{margin-left:auto;color:#8490a4;font-size:.8rem}.toolbar{display:flex;gap:9px;padding:18px 0;align-items:center;flex-wrap:wrap}.search{position:relative;flex:1;min-width:190px;max-width:300px}.search span{position:absolute;left:11px;top:7px;font-size:1.4rem;color:#8b96a8}.search input{padding-left:34px}.toolbar select{max-width:190px}.message{min-height:22px;color:#536780;font-size:.8rem;margin-bottom:6px}.message.error{color:#b3253b}.table-scroll{overflow:auto;flex:1;min-height:0;border:1px solid #e0e5ed;border-radius:7px;outline-offset:3px}table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:0;font-size:.875rem}th{position:sticky;top:0;background:#f6f8fc;color:#5f6c82;height:43px;z-index:3;font-size:.8rem;font-weight:500;white-space:nowrap;text-align:center;border-bottom:1px solid #dfe5ef;border-right:1px solid #e5e9f1;position:sticky}th .heading{width:100%;border:0;background:none;padding:4px;font-size:.8rem}.resize{position:absolute;right:0;top:0;width:7px;height:100%;cursor:col-resize}td{height:42px;border-right:1px solid #e7ebf1;border-bottom:1px solid #e7ebf1;background:#fff;overflow:hidden;padding:0}.name-col{position:sticky;left:0;z-index:2;text-align:left;background:white}th.name-col{z-index:5;background:#f6f8fc}.name-cell{display:flex;align-items:center;gap:5px;padding:0 9px}.name-cell .client-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:none;text-align:left;font-weight:500;padding:10px 4px;flex:1}.expand{border:0;background:none;padding:5px;min-width:22px;color:#7d89a0}.cell{width:100%;height:41px;border:0;border-radius:0;padding:7px 11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;color:#53637d;font-size:.875rem}.cell.text{text-align:left}.cell.status{font-weight:500}.cell.long-text{max-height:41px}.cell:hover{box-shadow:inset 0 0 0 1px #b2c5e2}.link-cell{display:flex;align-items:center;height:41px;padding:0 10px;gap:4px}.link-cell a{color:#216edf;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.link-cell button{padding:2px 5px;border:0;font-size:.85rem}.protected{color:#8794a6;background:#fafbfc;font-size:.8rem}.group-row td{background:#fff;height:62px;border-right:0;padding:16px 12px 9px}.group-heading{position:sticky;left:10px;display:inline-flex;align-items:center;gap:10px;font-size:1.05rem;font-weight:600}.group-heading button{border:0;background:none;color:inherit;padding:2px 5px}.group-heading small{font-size:.8rem;font-weight:400;color:#8b96a6;margin-left:3px}.sub-row>td{background:#f8faff;padding:12px}.subtable{border:1px solid #dce3f0;min-width:0;font-size:.875rem;margin:0}.subtable th{position:static}.subtable .name-col{left:0;background:#fff}.subtable th.name-col{position:sticky;background:#f6f8fc}.empty-row td{padding:30px;color:#8b96a5;text-align:center}footer{display:flex;justify-content:space-between;font-size:.75rem;color:#8b96a6;padding-top:12px}dialog{border:1px solid #dbe1eb;border-radius:10px;padding:25px;color:#28354a;max-width:700px;width:calc(100% - 36px);box-shadow:0 24px 80px #1b2e4a30}dialog::backdrop{background:#142c4e55}.dialog-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.dialog-top h2{margin:6px 0 0}.dialog-top small{color:#8390a6}.close{border:0;padding:0 7px;font-size:1.6rem;line-height:1.3;background:none}.dialog-actions{display:flex;justify-content:space-between;gap:10px;margin-top:20px}textarea{resize:vertical;min-height:230px;line-height:1.6;white-space:pre-wrap}dialog label{display:block;font-size:.875rem;margin-bottom:14px}dialog label input,dialog label select{display:block;margin-top:5px;width:100%}#editor-fields select{width:100%}#editor-error{color:#b3253b;font-size:.875rem;margin-top:15px;margin-bottom:0}.detail{margin:0 0 0 auto;height:100vh;max-height:100vh;border-radius:0;width:min(720px,95vw)}.field-row{padding:12px 0;border-bottom:1px solid #e7ebf1}.field-row small{display:block;color:#8290a5;font-size:.8rem;margin-bottom:6px}.field-row p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:.875rem;margin:0}.comment{padding:14px 15px;background:#f5f7fb;border-radius:7px;margin:12px 0}.comment p{white-space:pre-wrap;font-size:.875rem;line-height:1.6;overflow-wrap:anywhere}.comment small{color:#7f8ba0}.reply{border-left:2px solid #cad7ea;margin:12px 0 0 8px;padding-left:14px}.detail-actions{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}.column-choice{display:flex;align-items:center;gap:9px;padding:7px 0}.column-choice input{width:auto}#column-list{max-height:65vh;overflow:auto}.report{white-space:pre-wrap;font-size:.875rem;line-height:1.6}.comment-form{margin-top:20px}.comment-form textarea{min-height:110px}.native-note{font-size:.8rem;color:#8a6a18;margin:10px 0}.row-add td{padding:6px 12px}.row-add button{border:0;color:#7285a2;background:none;font-size:.8rem}@media(max-width:900px){aside{flex-basis:160px}main{padding:22px 14px 12px}.header-right #user{display:none}.toolbar{gap:7px}.source-note{display:none}}@media(max-width:600px){aside{display:none}main{padding:16px 9px 9px}h1{font-size:1.4rem}.breadcrumb{font-size:.75rem}header{gap:5px}.header-right{gap:0}.test-badge{font-size:.75rem}.toolbar .search{max-width:none;flex-basis:calc(100% - 165px)}.toolbar select{flex:1;max-width:none}.toolbar #save-view{font-size:.8rem}footer{font-size:.75rem}#summary{max-width:60%}}

/* Explicit table widths keep long cell content from changing the column layout. */
td{height:40px}th{height:38px}
.cell{height:100%;min-height:40px;padding:3px 9px;display:flex;align-items:center;justify-content:center;white-space:normal}
.cell-preview{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cell.text{justify-content:flex-start}
.cell.text .cell-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;max-height:2.4em;line-height:1.2;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left}
.cell.status .cell-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;max-height:2.4em;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
.name-cell{min-width:0;height:100%;min-height:40px}
.name-cell .client-name{min-width:0;padding:6px 4px;white-space:nowrap;overflow-wrap:anywhere}
.expand-placeholder{width:22px;flex:none}.no-subitems{display:block;text-align:center;color:#a3adbb}
.link-cell{min-width:0;min-height:40px;height:100%}.link-cell a{min-width:0}
.group-row td{height:50px;padding:10px 12px 7px}.sub-row>td{padding:8px}
.sub-panel{position:sticky;left:12px;max-width:100%}.sub-panel h3{margin:0 0 10px;font-size:.875rem;font-weight:600;color:#5d7295}
.subtable-scroll{overflow:auto;border-radius:5px;border:1px solid #dce3f0;max-width:100%}
.subtable th{height:38px;padding:0 12px}.subtable td{padding:0;background:#fff}.subtable .heading{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.add-subitem{margin-top:10px}.sub-panel>p{margin:12px 0 0;font-size:.8rem;color:#7d8ca2;white-space:normal;overflow-wrap:anywhere}
#editor-fields textarea{max-height:60vh;min-height:260px;overflow:auto;overflow-wrap:anywhere}
#editor-fields input[readonly],#editor-fields textarea[readonly]{background:#f6f8fc}

#team-dialog{max-width:760px;max-height:90vh;overflow:auto}.account-card{border:1px solid #e1e6ef;border-radius:7px;padding:16px;margin:14px 0}.account-card h3,#team-create h3{font-size:1rem;margin:0 0 12px}.account-card form{display:grid;grid-template-columns:1fr 1fr;gap:3px 12px}.account-card button{grid-column:1/-1;justify-self:start;margin-top:12px}#team-create{border-top:1px solid #e1e6ef;padding-top:20px;margin-top:24px}#team-create small{display:block;color:#7d8ca2;font-size:.8rem;margin-top:10px}@media(max-width:600px){.account-card form{grid-template-columns:1fr}}
#security-dialog,#recovery-dialog{max-height:90vh;overflow:auto;max-width:560px}#security-content form{margin:18px 0 26px}#security-content h3{font-size:1rem;margin-top:24px}#security-content p,#recovery-dialog p{font-size:.875rem;line-height:1.5}#security-content img{display:block;max-width:100%;height:auto;margin:16px auto}#security-content textarea{min-height:230px;font-size:.8rem;font-family:monospace}#security-message,#mfa-error,#recovery-error{color:#b3253b;font-size:.875rem}#recover-access{margin-top:10px;margin-bottom:12px}#my-account{white-space:nowrap}@media(max-width:600px){#my-account{padding:6px;font-size:.75rem}}

#schema-dialog{width:min(760px,94vw)}.schema-field{display:flex;gap:12px;align-items:center;margin:10px 0}.schema-field>span{flex:1}.schema-option{display:flex;gap:8px;align-items:center;margin:10px 0}.schema-option>input:first-child{min-width:100px;flex:1}.schema-option input[type=color]{width:48px;padding:3px}.schema-option .schema-field{font-size:12px}.schema-option .schema-field input{width:auto}#schema-fields{margin-top:20px}@media(max-width:600px){.schema-option{flex-wrap:wrap}}

.content-link{display:block;overflow-wrap:anywhere;margin:8px 0;font-size:13px}
#schema-fields>.schema-field{display:grid;grid-template-columns:220px minmax(0,1fr)}#schema-fields>.schema-field>input{min-width:0;width:100%}.schema-option .schema-field{display:flex;white-space:nowrap;margin:0}.schema-option .schema-field>span{flex:none}@media(max-width:600px){#schema-fields>.schema-field{grid-template-columns:1fr}.schema-option .schema-field{white-space:normal}}
