:root{font-family:Avenir Next,Hiragino Kaku Gothic ProN,Yu Gothic,sans-serif;color:#1f2d3a;background:linear-gradient(180deg,#f4f8fc,#e8f0f6);line-height:1.45}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;color:#1f2d3a;background:transparent}#root{min-height:100vh}.workspace{max-width:1480px;margin:0 auto;padding:1rem 1.2rem 1.5rem}.page-head{margin-bottom:.8rem;border-radius:14px;padding:1rem 1.1rem;background:linear-gradient(140deg,#204f79,#1f4367 55%,#173651);color:#f3f8fc;box-shadow:0 12px 28px #1b375433}.page-head h1{margin:0;font-size:clamp(1.4rem,1.7vw,2rem)}.page-head p{margin:.45rem 0 0;font-size:.93rem;opacity:.95}.flash{margin:.65rem 0;border-radius:10px;padding:.65rem .82rem;font-size:.92rem}.flash.error{background:#fde8e8;color:#8d221e}.flash.success{background:#e6f6ef;color:#195936}.card{background:#fffffff2;border:1px solid #dbe6f0;border-radius:13px;padding:.95rem;box-shadow:0 10px 24px #1e385217}.office-selector-card{margin-bottom:.8rem}.office-list-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.55rem}.office-card{border:1px solid #d8e4ef;border-radius:10px;padding:.62rem .66rem;background:#f8fbfe;display:grid;gap:.25rem}.office-card.active{background:#e5f1ff;border-color:#8ab7e2}.office-card-title{display:inline-block;font-weight:700;font-size:.98rem}.office-card small{color:#5a6f84}.office-card-actions{margin-top:.25rem;display:flex;gap:.45rem;flex-wrap:wrap}.selected-office-label{margin:.62rem 0 0;font-size:.9rem;color:#43586d}.section-head{display:flex;justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:.7rem}.section-head h2,.section-head h3,.section-head h4{margin:0}.section-head.compact{margin-bottom:.5rem}.label-title{display:inline-flex;align-items:center;gap:.38rem;font-weight:600}.required-badge{display:inline-block;border-radius:999px;padding:.08rem .42rem;background:#fde8e8;color:#8d221e;font-size:.72rem;font-weight:700;vertical-align:middle}.required-hint{margin:0;color:#4f6377;font-size:.86rem}.inline-controls{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.7rem}.selected-office{display:grid;gap:.15rem;border:1px solid #d6e4f0;border-radius:10px;padding:.6rem .72rem;background:#f7fbff}.selected-office p{margin:0}.page-nav{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:.9rem}.page-nav button{border-radius:999px;padding:.45rem .82rem;font-size:.88rem}.page-nav button.active{background:#1f5f97}.page-nav button:disabled{background:#a7b8c8;color:#eaf1f7}.page-section{margin-bottom:.9rem}.office-flow-guide h2{margin:0;font-size:1rem}.office-flow-guide p{margin:.5rem 0 0}.filter-row{display:grid;grid-template-columns:minmax(150px,.32fr) minmax(220px,1fr) auto;gap:.5rem;margin-bottom:.7rem}.table-wrap{border:1px solid #d7e2ee;border-radius:10px;overflow:auto;background:#fff}table{width:100%;border-collapse:collapse;min-width:620px}th,td{padding:.55rem .62rem;border-bottom:1px solid #e4ebf2;text-align:left;font-size:.9rem}th{background:#f3f8fc;font-size:.82rem;color:#4f6377}tbody tr{cursor:pointer}tbody tr:hover{background:#f4f9ff}tbody tr.selected{background:#dceeff}.detail-block{margin-top:.8rem;border:1px solid #d6e3ef;border-radius:10px;padding:.75rem;background:linear-gradient(180deg,#fff,#f7fbff)}.detail-head{margin-bottom:.6rem}.detail-head h3{margin:0}.detail-head p{margin:.2rem 0 0;color:#5d7084}.detail-grid{display:grid;grid-template-columns:1fr;gap:.45rem .8rem;margin-bottom:.7rem}.detail-grid p{margin:0}.status-editor{display:grid;gap:.5rem}.intake-form fieldset{margin:0 0 .95rem;border:1px solid #d8e4ef;border-radius:11px;padding:.86rem;background:linear-gradient(180deg,#fff,#f7fbfe)}.intake-form legend{padding:0 .35rem;color:#304d66;font-weight:700}.intake-section-nav{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:.8rem}.intake-section-nav button{border-radius:999px;padding:.42rem .78rem;background:#6a7f93;font-size:.86rem}.intake-section-nav button.active{background:#1f5f97}.intake-stepper{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin-bottom:.8rem}.intake-step{border:1px solid #d5e2ee;border-radius:10px;background:#f5f9fd;padding:.5rem .56rem;display:grid;gap:.2rem}.intake-step span{width:1.35rem;height:1.35rem;border-radius:999px;display:grid;place-items:center;font-size:.78rem;font-weight:700;background:#c7d7e6;color:#29435d}.intake-step small{color:#50657a;font-size:.82rem;font-weight:600}.intake-step.active{border-color:#5790c1;background:#e5f0fb}.intake-step.active span{background:#1f5f97;color:#fff}.intake-step.completed{border-color:#8cb6da;background:#edf6ff}.intake-step.completed span{background:#2b6ca4;color:#fff}.form-grid{display:grid;grid-template-columns:1fr;gap:.6rem}.span-2{grid-column:1 / -1}.address-editor{margin-top:.7rem;border:1px solid #d5e3ef;border-radius:10px;padding:.66rem;background:#fafcff}.postal-row{display:grid;grid-template-columns:minmax(180px,.45fr) auto;gap:.5rem;align-items:end;margin-bottom:.45rem}.checkbox-section{margin-top:.72rem;border:1px dashed #c9d8e6;border-radius:9px;padding:.68rem;background:#fbfdff;display:grid;gap:.45rem}.checkbox-section p{margin:0;font-weight:700;color:#465c73}.checkbox-section p .required-badge{margin-left:.42rem}.inline-check{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.45rem;margin:0;font-size:.9rem;width:100%;border:1px solid #d6e2ee;border-radius:8px;padding:.48rem .55rem;background:#fff;overflow-wrap:anywhere}.form-grid>.inline-check{grid-column:1 / -1}.inline-check input{margin-top:.16rem}.form-actions{display:flex;flex-wrap:wrap;gap:.5rem}.ai-step-actions{display:grid;gap:.45rem;margin:.55rem 0}.ai-step-actions button{justify-self:start}.master-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.78rem;align-items:start}.master-column{display:grid;gap:.7rem}.document-template-buttons{display:grid;gap:.42rem}.deadline-item{margin:0 0 .35rem;padding:.42rem .5rem;border-radius:8px;font-size:.86rem}.deadline-item.danger{background:#fde8e8;color:#8d221e}.deadline-item.warning{background:#fff3d6;color:#8c4f00}.deadline-item.attention{background:#edf5ff;color:#255c92}.deadline-item.normal{background:#eef3f8;color:#4c6175}.mini-form{display:grid;gap:.52rem;border:1px solid #d8e3ee;border-radius:10px;padding:.72rem;background:#f9fcff}.mini-form h3{margin:0;font-size:.96rem}.master-list{border:1px solid #d8e4ef;border-radius:10px;padding:.5rem;background:#fff;min-height:210px;display:grid;gap:.45rem;align-content:start}.master-list button,.master-line{border:1px solid #d8e4ef;border-radius:8px;padding:.55rem .65rem;background:#f8fbfe;text-align:left;display:grid;gap:.12rem}.master-list button.active{background:#e2f0ff;border-color:#8bb9e4}.master-list span,.master-line p{font-weight:600}.master-list small,.master-line small,.master-line p{margin:0;color:#5a6f84}.master-line{cursor:default}.detail-panel{border:1px solid #d8e4ef;border-radius:10px;padding:.72rem;background:#fff;display:grid;gap:.2rem}.detail-panel h3,.detail-panel p{margin:0}.metrics-grid{display:grid;grid-template-columns:1fr;gap:.45rem;margin-bottom:.72rem}.metric-card{border:1px solid #d8e4ef;border-radius:9px;background:#f8fbfe;padding:.56rem .62rem;display:grid;gap:.18rem}.metric-card h3,.metric-card p{margin:0}.metric-card h3{font-size:.88rem;color:#4d6278}.metric-card p{font-size:1rem;font-weight:700;color:#1f3f5f}.sub-section{margin-top:.85rem}.sub-card{margin-top:.65rem;border:1px solid #d8e4ef;border-radius:10px;padding:.7rem;background:#fbfdff}.hearing-outline textarea{min-height:170px}.placeholder{margin:0;color:#60758a;font-size:.9rem}.text-link{border:0;padding:0;text-align:left;background:transparent;color:#1f629d;font-weight:600}input,select,textarea,button{font:inherit}input,select,textarea{width:100%;border:1px solid #c8d6e3;border-radius:8px;padding:.52rem .6rem;color:#1f2d3a;background:#fff}input:required,select:required,textarea:required{border-color:#8db1d1;background:#f8fcff}textarea{min-height:84px;resize:vertical}input[type=checkbox],input[type=radio]{width:auto;height:auto;padding:0;border:0;border-radius:0;background:transparent;flex:0 0 auto}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid #90bde6;outline-offset:1px}button{border:0;border-radius:9px;padding:.55rem .88rem;background:#1f5f97;color:#fff;font-weight:700;cursor:pointer}button:hover{filter:brightness(.97)}button:disabled{opacity:.65;cursor:default}button.secondary{background:#5d7287}button.danger{background:#9f3838}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:1rem}.auth-card{width:min(520px,100%);background:#fffffff2;border:1px solid #d7e2ed;border-radius:14px;padding:1.2rem;box-shadow:0 18px 32px #1f384f29}.auth-card h1{margin-top:0}.auth-card ul{margin:0 0 .9rem;padding-left:1rem}.auth-toolbar{max-width:1480px;margin:.75rem auto 0;padding:0 1.25rem;display:flex;justify-content:flex-end;align-items:center;gap:.75rem;color:#2c4055;font-size:.9rem}@media(max-width:1200px){.master-layout{grid-template-columns:1fr}}@media(max-width:860px){.workspace{padding:.8rem}.filter-row,.form-grid,.detail-grid,.postal-row{grid-template-columns:1fr}.intake-stepper{grid-template-columns:1fr 1fr}.form-actions,.office-card-actions{flex-direction:column}.span-2{grid-column:auto}.auth-toolbar{padding:0 .8rem;justify-content:space-between}}
