/* Relatessa V0.10: approved compact application shell and stage workspaces. */
:root{--ink:#102f45;--muted:#61768a;--teal:#008278;--line:#dce6ed;--surface:#fff;--canvas:#f2f7fa}
body{background:var(--canvas);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.55}h1,h2,h3{letter-spacing:-.025em;color:var(--ink)}a{color:#007e78;text-underline-offset:3px}button,.btn{background:var(--teal);border-radius:7px;font-size:14px;font-weight:600;padding:10px 18px;transition:background .15s,box-shadow .15s}button:hover,.btn:hover{background:#006e66}.btn-link{background:#e9f4f3;color:#087b72}.btn-link:hover{background:#dcefeb}button:disabled{opacity:.48;cursor:not-allowed}input,select,textarea{font:inherit;accent-color:var(--teal)}input:not([type=hidden]),select,textarea{border-color:#bfcfdb;border-radius:6px}input:focus,select:focus,textarea:focus{outline:2px solid #4abcb4;outline-offset:1px}:focus-visible{outline:3px solid #28a99e;outline-offset:3px}
body .app-header{display:flex;align-items:center;gap:28px;width:100%;height:auto;min-height:76px;background:white;border-bottom:1px solid var(--line);padding:10px 32px;letter-spacing:0;box-shadow:0 1px 2px #15384d05;position:sticky;top:0;z-index:30}.brand-lockup{flex:0 0 194px;display:flex;flex-direction:column;align-items:flex-start}.app-header .brand-link{width:178px;max-width:100%;display:block}.app-header .brand-logo{display:block;width:178px;height:43px;object-fit:contain;object-position:left center}.app-header .brand-lockup>span{display:block;color:#61788e;font-size:8px;font-weight:600;letter-spacing:.1em;line-height:12px;margin-left:42px;white-space:nowrap}.app-header .workspace-nav{display:flex;align-items:stretch;flex:1;min-width:0;border:0;background:none;box-shadow:none;border-radius:0;padding:0;margin:0;gap:9px}.app-header .workspace-nav>a,.app-header .nav-menu>summary{display:flex;align-items:center;gap:6px;font-weight:650;font-size:14px;color:var(--ink);padding:12px 13px;white-space:nowrap;line-height:1.3;border-radius:5px;letter-spacing:0}.app-header .home-link.is-active{color:#006e68;box-shadow:0 3px #008d80;border-radius:0}.app-header .workspace-nav>a:hover,.app-header .nav-menu>summary:hover,.app-header .nav-menu[open]>summary{background:#eef7f7;color:#006f68}.app-header .nav-menu-items{top:calc(100% + 6px);border:1px solid var(--line);box-shadow:0 12px 30px #12374e18;padding:7px;border-radius:8px}.app-header .nav-menu-items a{font-size:13px;color:var(--ink);font-weight:500}.app-header .account-menu{margin-left:auto}.app-header .account-menu summary{padding:7px 2px 7px 12px;gap:10px}.user-avatar{display:inline-flex!important;align-items:center;justify-content:center;color:white!important;background:#12354d;border-radius:50%;height:32px;width:32px;font-size:12px!important;letter-spacing:0!important}.app-header .queue-count{display:inline-block;color:#37566d;font-size:11px;line-height:1.5;letter-spacing:0;min-width:23px}.work-page main{width:calc(100% - 64px);max-width:1560px;margin:22px auto 0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}.work-page footer{max-width:1560px;width:calc(100% - 64px);font-size:11px;color:#71869a;text-align:left;margin:16px auto 22px}.page-breadcrumb{font-size:12px;color:#6c8194;margin:0 0 12px}.page-breadcrumb span{padding:0 8px;color:#91a5b5}.workspace-heading{margin:0 0 18px;align-items:center}.workspace-heading h1{font-size:29px;line-height:1.25;margin:2px 0 6px;letter-spacing:-.035em}.workspace-heading p{font-size:14px;color:var(--muted)}.workspace-heading .eyebrow{display:none}.workspace-actions .btn{font-size:13px;padding:10px 17px}.mail-status{font-size:11px;color:#6d8192;margin:0 0 17px}.mail-status span{color:#e8a40f;font-size:10px;margin-right:4px}.dashboard-tiles{gap:14px;margin:0 0 22px}.dashboard-tile{min-height:99px;padding:16px 16px 16px 76px;border-color:var(--line);border-radius:8px;box-shadow:0 2px 3px #193a4e03}.dashboard-tile span{font-size:12px;color:#4b6479}.dashboard-tile strong{font-size:30px;color:#102f45;margin-top:5px}.dashboard-tile .tile-icon{left:18px;width:40px;height:40px}.tile-icon svg{width:25px;height:25px}.dashboard-tile.selected{background:#eaf5fd;border-color:#1683ce;outline:1px solid #1683ce}.panel,.card{border-color:var(--line);box-shadow:0 2px 5px #153b5103}.grid-toolbar{padding:17px 22px}.grid-toolbar h2{font-size:21px;letter-spacing:-.02em}.grid-toolbar p{font-size:12px}.grid-filters{padding:14px 22px;gap:14px;background:#f8fbfd;align-items:end}.grid-filters label{font-size:11px;margin-bottom:4px;line-height:1.5}.grid-filters .search-field{flex:2;min-width:230px}.grid-filters input,.grid-filters select{font-size:13px;padding:10px 12px;min-height:40px;max-width:230px}.grid-filters input{max-width:none}.grid-filters button{min-height:40px;font-size:13px;padding:9px 22px}.case-grid{font-size:12px;min-width:1120px}.case-grid th{font-size:11px;color:#526e84;padding:13px 13px;background:#f8fbfd}.case-grid td{padding:16px 13px;border-color:#e7edf2;line-height:1.5}.case-grid small{font-size:10px;color:#6c8296}.case-grid .employee-cell{font-size:12px;color:#193a51}.case-grid .pill{font-size:10px;white-space:normal;background:#e8f3fd;color:#256a9a;border-radius:5px}.case-grid .restricted{background:#fbe9eb;color:#ae3044}.case-grid .case-number{font-size:11px;font-weight:650}.case-row{cursor:pointer}.case-row:hover td{background:#edf7fb}.case-row:focus-within td{background:#eef8fa}.case-row .case-number:focus-visible{outline-offset:4px}.case-grid .incident-preview{-webkit-line-clamp:2}.grid-footer{font-size:11px;padding:12px 22px}.tablewrap{border-radius:0 0 8px 8px}
.case-workspace{background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 4px 16px #163a4f05;margin-top:8px}.case-workspace-header{background:white;color:var(--ink);padding:22px 24px;border-bottom:1px solid var(--line);align-items:center}.case-workspace-header h1{font-size:25px;line-height:1.25;margin:0 0 7px;color:var(--ink)}.case-workspace-header p{font-size:12px;color:#6b8193;line-height:1.6}.workspace-case-tools select{padding:9px 10px;font-size:12px;border-color:#c9d8e2;max-width:300px}.workspace-refresh{padding:9px 14px;background:#eef7f6;color:#00776f;border:1px solid #cce5e0;border-radius:6px;font-size:12px}.case-stage-bar{display:flex;align-items:center;gap:9px;border-bottom:1px solid var(--line);padding:12px 24px;background:#fbfdfe;overflow:auto}.case-stage{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:11px;color:#8395a5}.case-stage+.case-stage:before{content:"";height:1px;width:24px;background:#dbe5eb;display:block;margin-right:3px}.stage-dot{height:21px;width:21px;border-radius:50%;border:1px solid #cfdee5;display:inline-flex;align-items:center;justify-content:center;background:white;font-size:10px}.case-stage.is-current{color:#007a71;font-weight:700}.case-stage.is-current .stage-dot{color:white;background:#00897e;border-color:#00897e}.case-stage.is-complete{color:#357b73}.case-stage.is-complete .stage-dot{background:#e9f5ef;border-color:#d4e9e2}.case-workspace-layout{grid-template-columns:215px minmax(0,1fr);min-height:580px}.workspace-rail{background:#f8fbfd;border-color:var(--line);padding:18px 12px}.workspace-rail nav{gap:5px;top:14px}.workspace-rail a{border:1px solid transparent;background:transparent;border-radius:6px;padding:11px 12px;color:#536e83;font-size:12px;font-weight:500;display:flex;gap:9px;align-items:center;line-height:1.4}.workspace-rail a:before{content:"";display:inline-block;flex:0 0 6px;height:6px;width:6px;border-radius:2px;background:#a8bbc9}.workspace-rail a:hover{background:#eef5f8}.workspace-rail a[aria-current=true]{border:1px solid #cce6e2;border-left:3px solid #00877b;padding-left:10px;color:#00786e;background:#eaf6f3;font-weight:650}.workspace-rail a[aria-current=true]:before{background:#00877b}.rail-note{border-top:1px solid var(--line);padding:14px 12px;margin-top:20px;font-size:11px;color:#7990a1}.workspace-content{padding:26px 30px 30px;background:white}.workspace-section h2{font-size:21px;margin:0 0 18px;color:#193a51}.workspace-section h3{font-size:14px;margin:20px 0 10px}.workspace-section label{font-size:12px;color:#3b586e;font-weight:600;margin:0 0 6px}.workspace-section p{font-size:13px;color:#3e5a70;line-height:1.65}.workspace-section input:not([type=checkbox]):not([type=radio]),.workspace-section select,.workspace-section textarea{padding:10px 12px;border-color:#c3d3de;border-radius:6px;font-size:13px;line-height:1.55}.workspace-section textarea{min-height:125px}.workspace-section .field-grid{gap:17px}.workspace-section .narrative-grid{gap:20px}.workspace-section .field{margin-bottom:17px}.workspace-facts{background:#f8fbfd;border:1px solid #e0eaf0;border-radius:8px;padding:17px;gap:16px}.workspace-facts dt{font-size:10px;letter-spacing:.025em;color:#758b9c}.workspace-facts dd{font-size:13px;font-weight:600;color:#294a60}.readonly-fields{background:#fbfdfe;border:1px solid #e0eaf0;border-radius:8px;padding:18px}.readonly-fields .field dt{color:#758b9c;font-size:11px}.readonly-fields .field dd{font-size:13px;color:#29495e;line-height:1.65}.workspace-actionbar{background:#fff;border-top:1px solid var(--line);padding:13px 24px;box-shadow:0 -4px 12px #16394e05;gap:8px}.workspace-actionbar button,.workspace-actionbar .btn{font-size:12px;padding:10px 17px;border-radius:6px}.workspace-readonly{padding:10px 24px;background:#fff9ea;color:#957020;border-color:#f3e7c6;font-size:11px}.compact-table{font-size:12px;border:1px solid var(--line);background:#fff;border-radius:6px}.compact-table th{font-size:11px;background:#f5f9fc;color:#617c90;padding:12px}.compact-table td{padding:12px;border-color:#e5edf3}.compact-table tr.selected td{background:#edf7fc}.record-detail{border:1px solid #dae7ed;background:#f8fcfe;border-radius:7px;padding:18px;margin-top:16px}.recipient-picker{gap:14px}.recipient-picker select[multiple]{border-color:#d2dfe7;background:#fbfdfe;line-height:1.8}.evidence-columns{gap:22px}.evidence-list{border-color:#d8e4ec;border-radius:7px;background:#fbfdfe;padding:16px;min-height:165px}.execution-upload{border:1px solid #dce7ee;background:#fbfdfe;border-radius:8px;padding:18px}.workspace-section details{background:#f9fcfe;border-color:#dce8ee;border-radius:7px;padding:12px 16px}.workspace-dialog{border-color:#cedfe7;border-radius:12px;box-shadow:0 20px 80px #12384b2b}.workspace-section .notice{border-radius:7px;padding:13px 16px}.step-guidance{font-size:12px!important;margin:0 0 18px!important;padding:12px 15px;border-left:3px solid #79bfb7;background:#f2faf7;color:#456c64!important}
.admin-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.admin-heading h1{font-size:28px;margin:3px 0 6px}.admin-heading p{margin:0;color:#708697;font-size:13px}.admin-layout{display:grid;grid-template-columns:215px minmax(0,1fr);gap:22px}.admin-sidebar{align-self:start;background:white;border:1px solid var(--line);border-radius:9px;padding:10px;position:sticky;top:18px}.admin-sidebar a{display:block;padding:10px 12px;border-radius:6px;color:#536d80;text-decoration:none;font-size:12px;margin:2px 0}.admin-sidebar a.is-active{background:#eaf6f3;color:#00796f;font-weight:650}.admin-sidebar a:hover{background:#f0f7fa}.admin-content{min-width:0}.admin-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px}.admin-card{background:white;border:1px solid var(--line);border-radius:9px;padding:22px}.admin-card h2{font-size:18px;margin:0 0 9px}.admin-card>p{font-size:12px;color:#6c8293;margin:0 0 17px}.admin-card a.admin-destination{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-top:1px solid #edf2f5;text-decoration:none;font-size:13px}.admin-count{font-size:11px;color:#6c8597;background:#f0f5f8;border-radius:5px;padding:2px 7px}.admin-panel{background:white;border:1px solid var(--line);border-radius:9px;padding:22px;margin-bottom:18px}.admin-panel h2{font-size:19px;margin:0 0 14px}.admin-panel h3{font-size:14px;margin:18px 0 9px}.admin-panel p{font-size:12px;color:#647f91}.admin-table{font-size:12px;min-width:560px}.admin-table th{background:#f7fafc;font-size:10px;letter-spacing:.025em;padding:12px;text-transform:none}.admin-table td{padding:12px;line-height:1.6}.admin-table td small{font-size:10px}.admin-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 18px}.admin-toolbar label{margin:0;font-size:12px;flex:1}.admin-toolbar input{width:100%}.admin-toolbar button,.admin-toolbar .btn{margin:0;font-size:12px}.admin-form{max-width:800px}.admin-form p{margin:0 0 17px}.admin-form label{font-size:12px;margin:0 0 6px;color:#3f6074}.admin-form input:not([type=checkbox]):not([type=radio]),.admin-form select,.admin-form textarea{display:block;width:100%;padding:10px 12px;background:#fff;border:1px solid #c2d3df;border-radius:6px;font-size:13px}.admin-form select[multiple]{min-height:180px}.admin-form input[type=checkbox]{margin-right:8px}.admin-form .helptext{display:block;font-size:11px;color:#7b8fa0;margin-top:5px}.admin-form .errorlist{font-size:12px;background:#fff2f3;padding:10px 24px;border-radius:6px}.admin-form .form-actions{border-top:1px solid var(--line);padding-top:14px;margin-top:20px}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px 20px}.permission-grid label{font-size:12px!important;font-weight:400;display:flex;align-items:start;gap:7px}.permission-grid input{width:auto!important}.admin-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.admin-summary>div{background:white;border:1px solid var(--line);border-radius:8px;padding:16px}.admin-summary strong{display:block;font-size:23px}.admin-summary span{font-size:11px;color:#71899a}.admin-pagination{display:flex;justify-content:space-between;font-size:12px;margin-top:16px}.auth-page .app-header{padding:12px 30px}.auth-page main{max-width:540px;margin:48px auto;padding:32px;border-radius:10px}.auth-page footer{text-align:center}
@media(min-width:1000px){.workspace-content{max-height:calc(100vh - 360px);min-height:470px;overflow:auto}.workspace-rail{max-height:calc(100vh - 360px)}}
@media(max-width:1180px){body .app-header{gap:15px;padding:10px 22px}.brand-lockup{flex-basis:175px}.app-header .brand-link,.app-header .brand-logo{width:160px}.app-header .workspace-nav{gap:2px}.app-header .workspace-nav>a,.app-header .nav-menu>summary{padding:11px 10px;font-size:12px}.dashboard-tile{padding-left:62px}.dashboard-tile .tile-icon{left:13px;width:34px;height:34px}.dashboard-tile span{font-size:11px}}
@media(max-width:900px){body .app-header{flex-wrap:wrap;gap:7px;padding:9px 20px}.brand-lockup{flex-basis:100%}.app-header .brand-logo{height:36px}.app-header .brand-lockup>span{font-size:7px;line-height:10px}.app-header .workspace-nav{width:100%;flex:1 0 100%}.app-header .account-menu summary{padding-left:7px}.user-avatar{height:25px;width:25px;font-size:10px!important}.work-page main{width:calc(100% - 32px);margin-top:18px}.work-page footer{width:calc(100% - 32px)}.dashboard-tiles{gap:8px}.dashboard-tile{padding-left:49px;min-height:90px}.dashboard-tile .tile-icon{left:9px;width:29px;height:29px}.dashboard-tile strong{font-size:27px}.tile-icon svg{width:20px;height:20px}.case-workspace-layout{grid-template-columns:185px minmax(0,1fr)}.workspace-content{padding:22px}.admin-layout{grid-template-columns:180px minmax(0,1fr);gap:15px}.admin-cards{grid-template-columns:1fr}.admin-summary{grid-template-columns:1fr 1fr}.admin-sidebar a{font-size:11px}}
@media(max-width:600px){body .app-header{padding:9px 14px;gap:8px}.app-header .workspace-nav{flex-wrap:wrap;gap:0;align-items:center}.app-header .workspace-nav>a,.app-header .nav-menu>summary{font-size:11px;padding:10px 8px}.app-header .account-menu{margin-left:0}.app-header .account-menu .user-avatar{display:none!important}.app-header .nav-menu-items{min-width:235px;max-width:calc(100vw - 30px)}.app-header .nav-menu:nth-last-child(2) .nav-menu-items{left:auto;right:0}.workspace-heading h1{font-size:25px}.workspace-heading .workspace-actions{margin-top:12px}.mail-status{margin-bottom:14px}.dashboard-tiles{grid-template-columns:1fr 1fr;gap:9px}.dashboard-tile{padding:14px 12px 14px 63px;min-height:90px}.dashboard-tile .tile-icon{left:13px;width:35px;height:35px}.dashboard-tile:last-child{grid-column:1/-1}.grid-toolbar,.grid-filters,.grid-footer{padding:14px}.grid-filters{gap:10px}.grid-filters select{max-width:100%;min-width:0}.grid-filters label{max-width:100%;flex:1}.case-workspace-header{padding:18px 16px;gap:12px}.case-workspace-header h1{font-size:21px}.case-workspace-header p{font-size:11px}.workspace-case-tools{max-width:100%;width:100%;display:flex}.workspace-case-tools select{max-width:none;flex:1;min-width:0}.case-stage-bar{padding:12px 16px;gap:8px}.case-stage{font-size:10px}.case-stage+.case-stage:before{width:12px}.case-workspace-layout{display:block}.workspace-rail{padding:8px;border-right:0;border-bottom:1px solid var(--line)}.workspace-rail nav{display:flex;flex-direction:row;gap:4px;overflow:auto;padding:2px;position:static}.workspace-rail a,.workspace-rail a[aria-current=true]{padding:9px 11px;font-size:11px;border:1px solid transparent;white-space:nowrap}.workspace-rail a[aria-current=true]{border-color:#bfe0d9}.workspace-rail a:before{display:none}.rail-note{display:none}.workspace-content{padding:20px 16px}.workspace-section h2{font-size:19px}.workspace-section .narrative-grid,.evidence-columns{grid-template-columns:1fr}.workspace-facts{padding:13px;gap:13px}.workspace-facts dd{font-size:12px}.workspace-actionbar{padding:10px 14px;gap:4px}.workspace-actionbar button,.workspace-actionbar .btn{padding:9px 12px;font-size:11px}.workspace-readonly{padding:10px 16px}.admin-heading{align-items:start;gap:10px}.admin-heading h1{font-size:25px}.admin-layout{display:block}.admin-sidebar{display:flex;overflow:auto;gap:4px;position:static;padding:7px;margin-bottom:15px}.admin-sidebar a{white-space:nowrap;padding:9px}.admin-panel,.admin-card{padding:17px}.admin-cards{gap:14px}.admin-summary{gap:9px}.admin-summary>div{padding:13px}.permission-grid{grid-template-columns:1fr}.auth-page main{margin:24px 14px;padding:24px}.auth-page .app-header{padding:10px 22px}}

.app-header .nav-menu-items a>span:first-child{display:inline;font-size:13px;color:inherit;letter-spacing:0;line-height:1.5}.app-header .account-role{letter-spacing:0;font-size:11px}.app-header .workspace-nav .queue-count{font-size:11px;letter-spacing:0}

.workspace-rail .section-caption{flex:1;min-width:0}.workspace-rail [data-supporting-count]{flex-shrink:0;border-radius:4px;background:#edf3f6;padding:1px 5px;font-size:10px;color:#5d7b8c;white-space:nowrap}.workspace-rail a[aria-current=true] [data-supporting-count]{background:#d8eee7;color:#08776d}
