/* Oficio / workspace revision 8. UI UX Pro Max applied to operational work,
   with brand colors and readable type instead of its generic landing output. */
.study-app{--ink:#172943;--muted:#465873;--blue:#2854dc;--line:#d3dce9;--surface:#f3f6fb;--nav:#142c4d;--radius:12px;background:var(--surface);padding-left:232px;color:var(--ink);font-size:16px}
.study-app button,.study-app input,.study-app select,.study-app textarea{font-family:inherit}
.study-app :focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.study-app [hidden]{display:none!important}
.study-app .studio-rail{width:232px;padding:30px 16px 22px;background:var(--nav);color:white;border:0}
.rail-brand{padding:0 16px}.rail-brand img{width:116px;content:url('assets/oficio-logo-white.svg')}
.rail-workspace{display:flex;gap:12px;padding:20px 8px;margin:28px 0 23px;border-color:#496181}
.workspace-monogram{width:38px;height:42px;background:#324e75;color:white;font-size:14px;border-radius:9px}
.rail-workspace strong{color:white;font-size:14px}.rail-workspace div>span{color:#c9d8ed;font-size:13px}
.rail-caption{display:block;color:#c9d8ed;padding-left:14px;font-size:13px;font-weight:500}
.study-app .study-nav{margin:12px 0;gap:8px}
.study-app .study-nav button{flex-direction:row;justify-content:flex-start;gap:14px;padding:14px 16px;font-size:15px;font-weight:600;min-height:52px;border-radius:9px;color:#e2ebf7}
.study-app .study-nav .icon{width:21px;height:21px;stroke-width:1.6}
.study-app .study-nav button:hover{background:#243f62}.study-app .study-nav button[aria-selected=true]{background:#eaf0ff;color:#234ab5;box-shadow:none}
.study-app .study-nav button[aria-selected=true]:before{display:none}
.rail-bottom{padding:20px 12px 0;border-color:#496181;text-align:left}.rail-bottom .demo-label{color:white;font-size:14px}.rail-bottom p{display:block;color:#c9d8ed;font-size:13px;line-height:1.6;margin-top:8px}.rail-bottom a{display:block;color:white;font-size:13px;line-height:1.6;margin-top:20px}
.studio-rail :focus-visible{outline-color:#b7d3ff}
.study-app .topbar{height:65px;padding:0 32px;background:white;border-bottom:1px solid var(--line)}
.study-app .topbar .app-name{font-size:14px;color:var(--muted);font-weight:500}.study-app #module-location{color:var(--ink);font-weight:750}.study-app .back-link{font-size:14px}
.study-app .demo-banner{padding:10px 32px;background:#e9effa;border:0;color:#354d73;font-size:13px;line-height:1.5}
.study-app .board-main{max-width:none;margin:0;padding:26px 32px 40px;background:var(--surface);border-radius:0;box-shadow:none;min-height:calc(100dvh - 105px)}
.study-app .studio-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 22px}
.study-app .studio-heading h1{font-size:30px;line-height:1.25;letter-spacing:-.04em;font-weight:750}.study-app .studio-heading p{font-size:15px;color:var(--muted);margin-top:7px;line-height:1.5}
.study-app .studio-actions{display:flex;flex-direction:row;align-items:center;gap:15px}.study-app .studio-actions .btn{background:white;font-size:14px;min-height:42px}.study-app .studio-actions .text-btn{font-size:13px;min-height:42px}
.work-progress{display:none}
.study-app .btn,.study-app .button{border-radius:7px;min-height:44px;font-size:14px;font-weight:700;border-color:#93a5bf;padding:10px 15px;box-shadow:none}
.study-app .btn.primary,.study-app .button-dark{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 3px 6px #2854dc1a}
.study-app .text-btn,.study-app .text-button{font-size:14px;min-height:44px;font-weight:650}
.study-app .studio-context{display:flex;flex-wrap:wrap;align-items:center;gap:20px;background:transparent;color:var(--ink);border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:0 0 20px;margin:0 0 24px}
.context-picker{display:flex;flex:1;gap:10px;max-width:none;align-items:end}.context-picker>.field{flex:1;font-size:13px;color:var(--muted);gap:7px;min-width:0;max-width:410px}
.study-app .context-picker select{font-size:14px;background:white;color:var(--ink);border:1px solid #93a5bf;border-radius:7px;min-height:44px;padding:9px 32px 9px 12px}
.context-picker>.btn{background:white;color:#244ab8;border-color:#93a5bf;white-space:nowrap}.study-app #all-matters{color:#244ab8;flex-basis:auto;white-space:nowrap}
.study-app .study-summary{display:flex;flex:none;width:auto;gap:21px}.study-app .study-summary>div{display:flex;gap:4px;border:0;border-left:1px solid var(--line);padding-left:20px;flex:none}.study-app .study-summary strong{font-size:20px;color:var(--ink);font-weight:750}.study-app .study-summary span{font-size:13px;color:var(--muted);max-width:15ch}
.study-app[data-module=matters] .study-summary{display:none}
/* The index owns its search; the file starts alongside it, not below it. */
.matter-desk{display:grid;grid-template-columns:285px minmax(0,1fr);gap:24px;align-items:start}
.matter-index{padding:0;background:transparent;min-width:0}.matter-index h2{font-size:16px;font-weight:750;margin:0 0 17px;line-height:1.5}
.study-app .matter-toolbar{display:grid;grid-template-columns:1fr;gap:13px;background:transparent;padding:0;border:0;margin:0}.study-app .matter-toolbar .field{width:100%;font-size:13px;gap:7px}.study-app .matter-toolbar .field input,.study-app .matter-toolbar select{min-height:44px;font-size:14px;background:white;border-color:#93a5bf;border-radius:7px;padding:10px 12px}.study-app #matter-results{font-size:13px;color:var(--muted);margin:17px 0 12px}
.file-choice{display:flex;align-items:start;gap:12px;width:100%;padding:19px 15px;border:1px solid transparent;border-radius:10px;background:transparent;text-align:left;margin:0 0 8px;position:relative;color:var(--ink)}
.file-choice:hover{background:#e9effa}.file-choice[aria-pressed=true]{background:white;border-color:#abc0e4;box-shadow:0 4px 12px #183b6510}.file-choice[aria-pressed=true]:before{content:'';position:absolute;left:-1px;top:18px;bottom:18px;width:3px;border-radius:2px;background:var(--blue)}
.file-monogram{display:grid;place-items:center;width:38px;height:40px;border-radius:50%;background:#e5ecfa;color:#274988;font-size:13px;font-weight:750;flex-shrink:0}
.file-choice-copy{display:flex;flex-direction:column;gap:8px;min-width:0}.file-choice-copy strong{font-size:16px;font-weight:750}.file-choice-copy>span{font-size:14px;line-height:1.55;color:var(--muted)}.file-choice-copy small{font-size:12px;font-weight:650;color:#315588}
.matter-file{min-width:0;background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 7px 25px #17355308}
.file-cover{display:grid;grid-template-columns:1fr auto;gap:16px 20px;padding:26px 28px 23px;border-top:4px solid var(--blue);background:white;color:var(--ink)}
.file-identity{display:flex;align-items:center;gap:14px;grid-column:1}.file-cover .file-monogram{width:50px;height:50px;font-size:17px;background:#e8eefc;border:1px solid #cedbf3}.file-identity-copy{display:flex;flex-direction:column;gap:6px}.file-eyebrow{font-size:13px;color:var(--muted)}.file-client{font-size:23px;line-height:1.25;font-weight:750;letter-spacing:-.035em}
.file-cover h2{font-size:24px;line-height:1.4;font-weight:600;letter-spacing:-.025em;max-width:34ch;color:var(--ink);grid-row:2;grid-column:1/-1;margin:0}
.study-app .file-cover .study-tag{grid-column:1;grid-row:3;justify-self:start;background:#edf4ff;color:#254b8d;border:1px solid #c4d6ef;border-radius:20px;font-size:13px;padding:5px 10px}
.study-app .file-cover .btn{grid-column:2;grid-row:1;background:white;color:#244ab8;font-size:13px;align-self:center}
.file-info{display:grid;grid-template-columns:1fr 1.4fr;gap:20px;margin:0 28px;padding:18px 0;border-block:1px solid var(--line);background:white}.file-info>div{display:flex;flex-direction:column;gap:7px;min-width:0}.file-info span{font-size:13px;color:var(--muted)}.file-info strong{font-size:14px;overflow-wrap:anywhere;font-weight:650}
.file-summary{display:flex;margin:0 28px;padding:19px 0;gap:25px;border-bottom:1px solid var(--line)}.file-summary>div{display:flex;align-items:center;gap:9px}.file-summary strong{font-size:23px;font-weight:700;color:#244ab8}.file-summary span{font-size:13px;color:var(--muted);max-width:11ch;line-height:1.5}
.file-body{display:grid;grid-template-columns:minmax(0,1fr) 225px}.file-work{padding:24px 28px;min-width:0}.file-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.file-section-heading h3,.file-notes h3{font-size:17px;font-weight:750}.file-section-heading .text-btn{font-size:13px;white-space:nowrap}
.file-task{display:grid;grid-template-columns:16px 1fr auto;gap:7px 10px;align-items:start;width:100%;padding:16px 0;text-align:left;border:0;border-bottom:1px solid var(--line);background:white;color:var(--ink)}.file-task strong{font-size:15px;font-weight:650;line-height:1.5}.file-task:hover strong{color:var(--blue);text-decoration:underline}.task-check{grid-row:1/3;width:10px;height:10px;border:2px solid #6d84a8;border-radius:50%;margin-top:6px}.file-task[data-state=doing] .task-check{border-color:var(--blue);background:var(--blue)}.file-task-date{grid-column:2/-1;font-size:13px;line-height:1.5;color:var(--muted)}.file-task-state{font-size:12px;line-height:1.5;background:#edf2f9;color:#3c557a;padding:3px 7px;border-radius:5px;white-space:nowrap}.file-task[data-state=doing] .file-task-state{color:#244ab8;background:#ecf0ff}
.file-notes{margin-top:25px}.file-notes p{font-size:15px;line-height:1.7;color:var(--muted);margin-top:11px}
.file-account{background:#f7f9fd;border-left:1px solid var(--line);padding:24px 20px}.file-account>span{font-size:13px;color:var(--muted)}.file-account>strong{display:block;margin:11px 0 8px;font-size:24px;font-weight:750;letter-spacing:-.035em}.file-account>p{font-size:13px;color:var(--muted);line-height:1.6;margin:8px 0}.study-app .file-account>.btn{font-size:13px;background:white;color:#244ab8;width:100%;margin:14px 0}.account-progress{width:100%;height:6px;appearance:none;display:block;border:0;border-radius:5px;overflow:hidden;background:#dde7f6;margin-top:7px}.account-progress::-webkit-progress-bar{background:#dde7f6}.account-progress::-webkit-progress-value{background:#2e785e}.account-progress::-moz-progress-bar{background:#2e785e}.file-account h3{font-size:15px;line-height:1.5;margin-top:23px;padding-top:20px;border-top:1px solid var(--line)}.file-account .linked-management{font-size:14px;line-height:1.5;margin:15px 0}.file-account>.text-btn{font-size:13px;padding:0;text-decoration:underline}.matter-empty{padding:35px;background:white;border:1px solid var(--line);border-radius:12px}.matter-empty h2{font-size:23px;margin-bottom:16px}
/* Tasks: more work in view, with meaningful status colors and stable cards. */
.study-app .board-heading{margin:0 0 18px;gap:16px}.study-app .board-heading h2{font-size:20px;font-weight:750}.study-app .board-heading p{font-size:14px;margin-top:5px}.view-switch{background:#e5ebf5;border:0;padding:4px;border-radius:8px}.view-switch button{font-size:13px;min-height:36px;border-radius:5px}.view-switch button[aria-pressed=true]{background:white;box-shadow:0 1px 4px #15356118}
.study-app .toolbar{margin:0 0 20px;flex-wrap:nowrap}.study-app .search-wrap input{background:white;border-color:#93a5bf;border-radius:7px}.task-filters>summary{border-color:#93a5bf;border-radius:7px}
.study-app .board-columns{gap:18px}.study-app .column{background:#eaf0f8;border:1px solid #d7e0ed;border-radius:12px;padding:0;overflow:hidden}.study-app .column-heading{padding:17px 15px;background:transparent;border:0;border-top:3px solid #889bb8;border-radius:0;margin:0;gap:10px}.study-app .column[data-state=doing] .column-heading{border-color:#4265df}.study-app .column[data-state=done] .column-heading{border-color:#438b6f}.study-app .column-heading h2{font-size:16px;font-weight:750}.study-app .column-count{background:white;border:0;font-size:13px;color:var(--ink)}
.study-app .task-list{padding:0 10px;gap:12px}.study-app .task-card{padding:17px;background:white;border:1px solid #cbd7e8;border-radius:9px;box-shadow:0 3px 6px #16355906;display:flex;flex-direction:column;transition:border-color .16s,box-shadow .16s}.study-app .task-card:hover{border-color:#7897d2;box-shadow:0 5px 12px #16355912;transform:none}.study-app .card-matter{order:0;display:flex;gap:10px;border:0;padding:0;margin-bottom:15px}.study-app .matter-initials{width:31px;height:31px;border-radius:50%;background:#e8eefb;color:#335590;font-size:11px}.study-app .card-context strong{font-size:13px;font-weight:700}.study-app .card-context>span{font-size:12px;color:var(--muted);line-height:1.5}.study-app .card-title-row{order:1}.study-app .card-title-row strong{font-size:17px;line-height:1.5;font-weight:750;letter-spacing:-.02em}.study-app .card-description{order:2;font-size:14px;line-height:1.6;margin:8px 0 13px;color:var(--muted)}.study-app .priority{order:3;align-self:start;border-radius:5px;font-size:12px;padding:3px 8px}.study-app .priority.high{color:#93401f;background:#fff0e8}.study-app .priority.normal{color:#314fa3;background:#edf1ff}.study-app .priority.low{color:#435775;background:#edf2f8}
.study-app .card-meta{order:5;border-top:1px solid #e1e7f0;padding-top:12px;margin-top:12px;font-size:13px;width:100%;gap:9px}.study-app .avatar{width:26px;height:26px;font-size:10px}.study-app .avatar.unassigned{color:#405371;background:#edf1f6}.study-app .due{font-size:12px}.study-app .check-progress{order:4;display:grid;grid-template-columns:16px auto;gap:5px;align-self:stretch;font-size:12px;margin-top:12px}.task-progress{grid-column:1/-1;height:4px}.study-app .column-add{margin:12px 10px;width:calc(100% - 20px);border:1px dashed #9fb2ce;background:transparent;color:#355580;min-height:44px;border-radius:7px;font-size:13px}.study-app .column-add:hover{background:white}.study-app .empty-column{margin:5px 10px;font-size:14px}.study-app .board-tip{font-size:13px;line-height:1.6}
.study-app .list-layout .column{background:white}.study-app .list-layout .column-heading{background:#eaf0f8}.study-app .list-layout .task-list{padding:0 18px}.study-app .list-layout .task-card{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(180px,1.2fr) 65px minmax(160px,1fr);gap:14px;border-radius:0;box-shadow:none;border:0;border-top:1px solid var(--line);padding:18px 0}.study-app .list-layout .card-matter{margin:0}.study-app .list-layout .card-meta{padding:0;margin:0;border:0}.study-app .list-layout .card-title-row strong{font-size:15px}
/* Account ledger and request desk share the shell, but keep their own layouts. */
.study-app .finance-desk{display:grid;grid-template-columns:270px minmax(0,1fr);gap:22px;align-items:start}.study-app .finance-overview{grid-column:1/-1;margin:0;border:1px solid var(--line);background:white;border-radius:12px;overflow:hidden}.study-app .finance-overview>div{background:transparent;padding:18px 22px}.study-app .finance-overview strong{font-size:27px!important;font-weight:750;color:var(--ink)}.study-app .finance-overview>div:nth-child(2){background:#edf6f2}.study-app .finance-desk>.workspace-toolbar{grid-column:1/-1;margin:0}.study-app .finance-desk>.workspace-editor:empty{display:none}.study-app .finance-desk>.workspace-editor:not(:empty){grid-column:1/-1;margin:0}
.study-app .finance-accounts{padding:0;background:transparent;border:0;min-width:0}.study-app .account-table{display:block}.study-app .account-table caption{display:block;text-align:left;font-size:16px;padding:0 0 17px}.study-app .account-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.study-app .account-table tbody{display:flex;flex-direction:column;gap:12px}.study-app .account-table tr{display:grid;grid-template-columns:1fr auto;gap:10px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:10px}.study-app .account-table .account-selected{border-color:#7897d2;box-shadow:inset 3px 0 var(--blue)}.study-app .account-table td{display:block;padding:0!important;border:0!important;font-size:14px}.study-app .account-table td:first-child{grid-column:1/-1}.study-app .account-table td strong{font-size:17px}.study-app .account-table td:first-child>span{font-size:14px!important;line-height:1.5!important;margin-top:7px}.study-app .account-table td:nth-child(2),.study-app .account-table td:nth-child(3){display:none}.study-app .account-table td:nth-child(4){grid-column:1/-1;font-size:23px;font-weight:750;padding-top:10px!important}.study-app .account-table td:nth-child(4):before{content:'Saldo';display:block;font-size:13px;font-weight:500;color:var(--muted);margin-bottom:5px}.study-app .account-table .text-button{font-size:12px;padding:0}.study-app .finance-detail{display:flex;flex-direction:column;gap:20px;margin:0;min-width:0}
.study-app .finance-statement{padding:26px!important;background:white;color:var(--ink);border:1px solid var(--line)!important;border-top:4px solid var(--blue)!important;border-radius:12px;display:grid;grid-template-columns:1fr 1fr;gap:5px 24px}.study-app .finance-statement h3{grid-column:1/-1;font-size:25px;font-weight:750;color:var(--ink)}.study-app .finance-statement p{font-size:14px;color:var(--muted)}.study-app .finance-statement>.demo-note:first-of-type{grid-column:1/-1;margin-bottom:10px}.study-app .finance-statement .finance-balance-label{grid-column:1;font-size:13px;margin:16px 0 0}.study-app .finance-statement .finance-balance{grid-column:1;font-size:36px!important;color:var(--ink);font-weight:700;letter-spacing:-.045em;line-height:1.25;margin:6px 0 13px}.study-app .finance-statement>.workspace-badge{grid-column:1;justify-self:start;font-size:13px}.study-app .finance-statement .money-totals{grid-column:2;grid-row:3/6;display:flex;flex-direction:column;gap:15px;margin:15px 0;border:0;border-left:1px solid var(--line);padding-left:25px}.study-app .finance-statement .money-totals strong{color:var(--ink);font-size:21px;font-weight:750}.study-app .finance-statement .money-totals span{font-size:13px;color:var(--muted)}.study-app .finance-statement>.demo-note:not(:first-of-type),.study-app .finance-statement>.record-notes,.study-app .finance-statement>.workspace-actions{grid-column:1/-1}.study-app .finance-statement>.workspace-actions{margin-top:14px}.study-app .finance-payments{padding:24px;border:1px solid var(--line);border-radius:12px;background:white}.study-app .finance-payments h3{font-size:20px}.study-app .finance-scope{padding:17px 22px;border:1px solid var(--line);border-radius:10px;background:white}.study-app .finance-scope summary{font-size:15px}
.study-app .workspace-metrics{background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:22px;overflow:hidden}.study-app .workspace-metrics>div{background:white;padding:18px 22px}.study-app .workspace-metrics strong{font-size:26px!important;font-weight:750}.study-app .workspace-layout{grid-template-columns:285px minmax(0,1fr);border:1px solid var(--line);border-radius:12px;overflow:hidden}.study-app .workspace-list{padding:16px 12px;background:#eaf0f8;border-color:var(--line)}.workspace-list:before{content:'Bandeja de gestiones';display:block;font-size:15px;font-weight:750;padding:0 7px 18px}.study-app .record-choice{border:1px solid transparent;border-radius:9px;padding:18px 14px;margin-bottom:12px}.study-app .record-choice.selected{background:white;border-color:#abc0e4;box-shadow:inset 3px 0 var(--blue)}.study-app .record-choice strong{font-size:16px;line-height:1.5}.study-app .record-choice span{font-size:14px;line-height:1.6}.study-app .workspace-detail{padding:26px;background:white;min-width:0}.study-app .workspace-detail .workspace-section h3{font-size:26px;font-weight:750;letter-spacing:-.035em}.study-app .workspace-detail>.workspace-section:first-child{border-bottom:1px solid var(--line);padding-bottom:20px}.study-app .workspace-detail .record-notes{font-size:15px;line-height:1.7}.study-app .demo-tabs{gap:24px}.study-app .demo-tabs .demo-tab{font-size:14px;padding:15px 0}.study-app .workspace-detail blockquote{padding:25px;background:#f7f9fc;border:1px solid var(--line);border-left:3px solid var(--blue);border-radius:4px;font-size:17px;line-height:1.8}.study-app .workspace-detail textarea{padding:16px;background:#f8faff;font-size:16px;line-height:1.8;border-radius:7px}
.study-app #task-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(620px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:16px 0 0 16px;padding:28px;box-shadow:-15px 0 60px #10274926}.study-app #task-dialog::backdrop{background:#132b4b55;backdrop-filter:blur(2px)}.study-app .dialog-heading h2{font-size:28px;font-weight:750}.study-app .dialog-heading{padding-bottom:20px}.study-app dialog input,.study-app dialog select,.study-app dialog textarea{background:#f8faff;border-color:#93a5bf;border-radius:7px}.study-app .dialog-actions{position:sticky;bottom:-28px;background:white;padding:17px 0;margin-top:24px}.study-app .editor-section{margin-top:24px}.study-app .check-row{padding:12px 0}.study-app .workspace-editor:not(:empty){background:white;border:1px solid #9db3d6;border-radius:12px;padding:24px}
@media(min-width:1700px){.study-app .board-main{padding-inline:42px}.matter-desk{grid-template-columns:320px minmax(0,1fr)}.file-body{grid-template-columns:minmax(0,1fr) 270px}}
@media(max-width:1350px){.study-app{padding-left:206px}.study-app .studio-rail{width:206px;padding-inline:12px}.study-app .board-main{padding-inline:24px}.study-app .study-summary{gap:12px}.study-app .study-summary>div{padding-left:12px}.study-app .study-summary strong{font-size:18px}.study-app .study-summary span{max-width:11ch}.matter-desk{grid-template-columns:240px minmax(0,1fr);gap:18px}.file-body{grid-template-columns:1fr}.file-account{border:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:8px 20px}.file-account>strong{margin:0}.file-account>.btn{grid-column:2;grid-row:1/4;align-self:center;justify-self:end;width:auto!important;margin:0!important}.file-account>p{margin:0}.file-account .account-progress,.file-account .collection-caption,.file-account h3,.file-account .linked-management,.file-account>.text-btn{grid-column:1/-1}.file-account .account-progress{max-width:260px}.file-account h3{margin-top:12px;padding-top:17px}.study-app .finance-desk{grid-template-columns:235px minmax(0,1fr)}.study-app .list-layout .task-card{grid-template-columns:1fr 1.3fr 65px}.study-app .list-layout .card-meta{grid-column:2/-1}}
@media(max-width:1100px){.study-app{padding-left:0;padding-bottom:90px}.study-app .studio-rail{position:fixed;inset:auto 0 0;width:100%;padding:0;z-index:20;background:var(--nav);border-top:1px solid #496181}.rail-brand,.rail-workspace,.rail-caption,.rail-bottom{display:none}.study-app .study-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom))}.study-app .study-nav button{flex-direction:column;gap:6px;padding:8px 2px;font-size:13px;min-height:59px;justify-content:center}.study-app .study-nav button[aria-selected=true]{background:#304e79;color:white}.study-app .study-nav .icon{width:22px;height:22px}.study-app .topbar .brand{display:flex}.study-app .topbar{padding:0 24px}.study-app .demo-banner{padding-inline:24px}.study-app .board-main{min-height:calc(100dvh - 190px)}.study-app :focus-visible{scroll-margin-bottom:105px}.study-app .file-cover h2{max-width:none}}
@media(max-width:800px){.study-app .studio-heading{gap:16px;align-items:start}.study-app .studio-heading h1{font-size:27px}.study-app .studio-actions{flex-direction:column;gap:0;align-items:end}.study-app .studio-context{gap:18px}.study-app .study-summary{width:100%;gap:25px}.study-app .study-summary>div{padding-left:0;border:0;flex:1}.study-app .study-summary span{max-width:none}.study-app .study-summary strong{font-size:20px}.matter-desk{grid-template-columns:220px minmax(0,1fr);gap:16px}.file-cover{padding:20px;gap:15px}.file-cover .btn{grid-row:3!important;grid-column:2!important}.file-identity{grid-column:1/-1}.file-cover h2{font-size:22px}.file-info{margin-inline:20px;grid-template-columns:1fr}.file-summary{margin-inline:20px;gap:14px;flex-wrap:wrap}.file-summary strong{font-size:20px}.file-summary span{font-size:12px}.file-work{padding:20px}.file-task{grid-template-columns:14px 1fr}.file-task-state{grid-column:2;justify-self:start}.file-task-date{grid-column:2}.study-app .finance-desk{grid-template-columns:1fr}.study-app .account-table tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.study-app .account-table td:nth-child(4){font-size:21px}.study-app .workspace-layout{grid-template-columns:230px minmax(0,1fr)}.study-app .workspace-detail{padding:22px}.study-app .board-columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.study-app .task-card{padding:13px}.study-app .card-meta{flex-direction:column;align-items:start}.study-app .card-context>span{display:none}.study-app .card-description{font-size:13px}.study-app .card-title-row strong{font-size:16px}.study-app .column-heading{padding:14px 10px}.study-app .column-heading h2{font-size:15px}}
@media(max-width:600px){.study-app .topbar{height:58px;padding-inline:16px}.study-app .topbar .app-name{display:none}.study-app .back-link{font-size:13px}.study-app .demo-banner{padding:9px 16px;font-size:12px}.study-app .board-main{padding:22px 16px 30px}.study-app .studio-heading{margin-bottom:18px;gap:12px}.study-app .studio-heading h1{font-size:25px}.study-app .studio-heading p{font-size:14px;line-height:1.5;max-width:25ch}.study-app .studio-actions .btn{font-size:13px;padding:9px 11px;min-height:44px}.study-app .studio-actions .text-btn{font-size:12px}.study-app .studio-context{padding-bottom:18px;margin-bottom:20px}.context-picker{gap:8px;flex-wrap:wrap;width:100%}.context-picker>.field{flex:1;max-width:none;font-size:12px}.study-app .context-picker select{font-size:14px;width:100%;padding-left:10px}.context-picker>.btn{font-size:12px;padding:10px}.study-app .study-summary{gap:12px}.study-app .study-summary strong{font-size:18px}.study-app .study-summary span{font-size:12px;line-height:1.5;max-width:12ch}.matter-desk{display:block}.matter-index{margin-bottom:20px}.matter-index h2{font-size:15px;margin-bottom:12px}.study-app .matter-toolbar{grid-template-columns:minmax(0,1fr) 115px;gap:10px}.study-app .matter-toolbar .field{font-size:12px}.study-app .matter-toolbar .field input,.study-app .matter-toolbar select{font-size:14px;padding:10px 8px}.study-app #matter-results{margin:13px 0}.file-choice{display:inline-flex;width:calc(50% - 5px);vertical-align:top;padding:13px 10px;gap:8px;margin-right:5px}.file-choice .file-monogram{width:27px;height:29px;font-size:10px}.file-choice-copy strong{font-size:14px}.file-choice-copy>span{font-size:13px;line-height:1.4}.file-choice-copy small{font-size:11px}.file-cover{padding:20px 18px}.file-client{font-size:22px}.file-cover h2{font-size:22px}.file-info{margin-inline:18px;grid-template-columns:1fr}.file-summary{margin-inline:18px;justify-content:space-between;gap:10px}.file-summary>div{gap:6px}.file-summary span{font-size:12px;max-width:9ch}.file-summary strong{font-size:21px}.file-work{padding:18px}.file-account{padding:20px 18px}.file-account>strong{font-size:23px}.file-task{grid-template-columns:14px 1fr auto}.file-task-state{grid-column:3;grid-row:1}.file-task-date{grid-column:2/-1}.study-app .file-cover .btn{font-size:12px;min-height:44px;padding:10px}.file-section-heading h3{font-size:17px}.study-app .board-heading{display:grid;grid-template-columns:1fr auto;gap:14px}.study-app .board-heading h2{font-size:19px}.study-app .board-heading p{font-size:13px}.study-app .board-heading .view-switch{grid-row:2;grid-column:1/-1}.study-app .board-heading>.btn{grid-column:2;grid-row:1;font-size:12px;padding:10px}.study-app .toolbar{gap:8px}.study-app .search-wrap input{font-size:15px}.task-filters>summary{font-size:13px;padding-inline:12px}.study-app .board-columns{grid-template-columns:1fr;gap:20px}.study-app .task-card{padding:18px}.study-app .card-title-row strong{font-size:18px}.study-app .card-context strong{font-size:14px}.study-app .card-context>span{display:block;font-size:13px}.study-app .card-description{font-size:15px}.study-app .card-meta{flex-direction:row;flex-wrap:wrap;align-items:center}.study-app .due,.study-app .priority,.study-app .check-progress{font-size:13px}.study-app .column-heading{padding:17px 15px}.study-app .column-heading h2{font-size:17px}.study-app .list-layout .task-card{grid-template-columns:1fr auto}.study-app .list-layout .card-matter,.study-app .list-layout .card-meta{grid-column:1/-1}.study-app .finance-overview>div{padding:15px 12px}.study-app .finance-overview strong{font-size:20px!important}.study-app .account-table tbody{grid-template-columns:1fr}.study-app .finance-statement{padding:22px 18px!important;gap:8px 15px}.study-app .finance-statement .finance-balance{font-size:28px!important}.study-app .finance-statement .money-totals{padding-left:15px}.study-app .finance-statement .money-totals strong{font-size:18px}.study-app .finance-payments{padding:20px 16px}.study-app .workspace-layout{grid-template-columns:1fr}.study-app .workspace-list{display:flex;gap:10px;overflow:auto;padding:14px;border:0;border-bottom:1px solid var(--line)}.workspace-list:before{display:none}.study-app .record-choice{flex:0 0 240px;margin:0}.study-app .workspace-detail{padding:22px 18px}.study-app .workspace-detail .workspace-section h3{font-size:24px}.study-app .workspace-detail blockquote{padding:18px;font-size:16px}.study-app .workspace-metrics>div{padding:14px 12px}.study-app .workspace-metrics strong{font-size:22px!important}.study-app #task-dialog{width:100vw;border-radius:16px 16px 0 0;height:94dvh;top:auto;padding:24px 18px}.study-app .dialog-actions{bottom:-24px}.study-app .dialog-heading h2{font-size:25px}.study-app .dialog-actions .btn{padding:10px;font-size:13px}.study-app .filter-options{max-width:calc(100vw - 32px);min-width:260px}}
@media(max-width:360px){.study-app .board-main{padding-inline:12px}.file-choice{width:100%;margin-right:0}.study-app .studio-heading h1{font-size:23px}.file-task{grid-template-columns:14px 1fr}.file-task-state{grid-row:auto;grid-column:2}.file-summary{gap:8px}.file-summary span{max-width:8ch}.study-app .finance-statement{grid-template-columns:1fr}.study-app .finance-statement .money-totals{grid-column:1;grid-row:auto;border-left:0;padding-left:0;flex-direction:row}.study-app .study-summary strong{font-size:16px}}
@media(prefers-reduced-motion:no-preference){.study-app dialog[open]{animation:workspace-enter .18s ease-out}@keyframes workspace-enter{from{opacity:.5;transform:translateX(14px)}to{opacity:1;transform:translateX(0)}}}
@media(prefers-reduced-motion:reduce){.study-app *, .study-app *::before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* One command row, so the file is reached without scrolling past controls. */
.workspace-commandbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(330px,.95fr);align-items:center;gap:25px;padding-bottom:24px;margin-bottom:23px;border-bottom:1px solid var(--line)}
.study-app .workspace-commandbar .studio-heading{margin:0}.study-app .workspace-commandbar .studio-context{margin:0;padding:0;border:0;min-width:0}.study-app .workspace-commandbar .context-picker{min-width:0;max-width:none}.study-app .workspace-commandbar .context-picker>.field{max-width:none}
.study-app .studio-context:before,.study-app .studio-context:after{content:none!important}
.study-app .topbar .studio-actions{margin-left:auto;margin-right:20px;flex-direction:row;gap:16px}.study-app .topbar .studio-actions .btn{min-height:38px;padding:7px 12px;font-size:13px}.study-app .topbar .studio-actions .text-btn{font-size:12px;min-height:38px}
.study-app .board-main>.study-summary{display:flex;justify-content:start;gap:36px;margin:0 0 24px;padding:17px 22px;border:1px solid var(--line);border-radius:10px;background:white;width:100%}.study-app .board-main>.study-summary>div{border:0;padding:0;flex:1}.study-app .board-main>.study-summary strong{font-size:25px}.study-app .board-main>.study-summary span{max-width:none;font-size:13px}.study-app[data-module=matters] .board-main>.study-summary,.study-app[data-module=finance] .board-main>.study-summary,.study-app[data-module=dispatch] .board-main>.study-summary{display:none}
.file-task-state{grid-column:3;grid-row:1;justify-self:end}.file-task strong{grid-column:2;grid-row:1}.file-task-date{grid-row:2}.study-app .study-panel{padding-top:0}.study-app .finance-desk,.study-app .demo-workspace{padding:0;background:transparent;border:0;border-radius:0}
@media(max-width:1100px){.study-app .topbar .app-name{display:none}.study-app .topbar .studio-actions{margin-left:auto}.workspace-commandbar{gap:20px}}
@media(max-width:800px){.workspace-commandbar{grid-template-columns:1fr;gap:17px}.study-app .workspace-commandbar .studio-heading p{max-width:none}.study-app .topbar .studio-actions{margin-right:10px;gap:10px}.file-task-state{grid-column:2;grid-row:3;justify-self:start}}
@media(max-width:600px){.study-app .topbar .studio-actions .text-btn{display:none}.study-app .topbar .back-link{font-size:0;gap:0}.study-app .topbar .back-link .icon{width:21px;height:21px}.study-app .topbar .back-link{min-height:44px;min-width:44px;justify-content:center}.study-app .topbar .studio-actions{margin-right:4px}.workspace-commandbar{padding-bottom:18px;margin-bottom:20px;gap:18px}.study-app .studio-heading h1{font-size:28px}.study-app .board-main>.study-summary{gap:14px;padding:16px}.study-app .board-main>.study-summary strong{font-size:21px}.study-app .board-main>.study-summary span{font-size:12px;max-width:13ch}.file-task-state{grid-column:3;grid-row:1;justify-self:end}.file-task strong{font-size:14px}.study-app .file-task-state{font-size:11px}.file-task{grid-template-columns:12px 1fr auto}.study-app .board-heading h2{font-size:18px}}
@media(max-width:360px){.file-task{grid-template-columns:12px 1fr}.file-task-state{grid-column:2;grid-row:3;justify-self:start}.study-app .board-main>.study-summary strong{font-size:18px}}
@media(max-width:600px){.study-app .topbar{height:92px}.study-app .topbar .studio-actions{flex-direction:column;gap:0}.study-app .topbar .studio-actions .text-btn{display:inline-flex;font-size:12px;min-height:40px}.study-app .topbar .studio-actions .btn{min-height:44px}}
/* Supporting text stays dark and readable at every width. */
.study-app .file-choice-copy small,.study-app .card-context>span,.study-app .priority,.study-app .due,.study-app .check-progress,.study-app .file-task-state{font-size:13px}
.study-app .finance-detail{align-items:stretch}.study-app .finance-detail>div{width:100%;min-width:0}.study-app .account-selected td:first-child{box-shadow:none}.study-app .account-table .account-selected{background:white}

/* Reserva espacio para el importe completo en el resumen móvil. */
@media(max-width:600px){.study-app .board-main>.study-summary{gap:10px;padding:14px}.study-app .board-main>.study-summary>div:nth-child(2){flex:1.6}.study-app .board-main>.study-summary strong{font-size:clamp(15px,4.4vw,18px)}}
