:root{--navy:#031b3c;--navy2:#082c59;--blue:#0867ef;--gold:#eda800;--ink:#071b3d;--muted:#617089;--line:#d9e3ef;--bg:#f3f7fb;--green:#079455;--red:#d92d20}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--bg)}a{color:inherit}.portal-shell{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:100vh}.portal-sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#02152f,#06315e);padding:25px 18px;color:#fff;display:flex;flex-direction:column}.portal-brand{display:flex;flex-direction:column;align-items:center;text-decoration:none;padding:0 8px 24px;border-bottom:1px solid #ffffff24}.portal-brand img{width:145px;height:118px;object-fit:contain}.portal-brand strong{font-family:Georgia,serif;font-size:27px;letter-spacing:.08em}.portal-brand small{margin-top:5px;color:#ffc328;letter-spacing:.22em;font-size:10px;font-weight:800}.portal-client{margin:22px 0 10px;padding:14px;border:1px solid #ffffff20;background:#ffffff0d;border-radius:12px;display:flex;flex-direction:column;gap:4px}.portal-client small{color:#9fc6f5;font-size:9px;font-weight:800;letter-spacing:.12em}.portal-client b{font-size:14px}.portal-client span{font-size:11px;color:#c8d8eb}.portal-sidebar nav{display:grid;gap:7px;margin-top:8px}.portal-sidebar nav a{display:flex;align-items:center;gap:13px;padding:14px 15px;border-radius:10px;text-decoration:none;font-size:14px;font-weight:600;color:#dce9f8}.portal-sidebar nav a.active,.portal-sidebar nav a:hover{background:#1169db;color:#fff;box-shadow:0 8px 20px #00152f55}.portal-sidebar nav a i{margin-left:auto;background:#fff;color:var(--blue);font-style:normal;border-radius:999px;min-width:20px;text-align:center;padding:2px 5px;font-size:10px}.portal-trust{margin-top:auto;padding:16px 8px 4px;display:flex;flex-direction:column;gap:5px;border-top:1px solid #ffffff20}.portal-trust b{font-size:12px;color:#ffc328}.portal-trust span{font-size:10px;line-height:1.5;color:#c8d8eb}.portal-main{min-width:0}.portal-header{height:92px;position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px}.portal-header>div:first-child{display:flex;flex-direction:column;gap:5px}.portal-header small{font-size:9px;font-weight:800;color:var(--blue);letter-spacing:.11em}.portal-header b{font-size:15px}.portal-user{display:flex;align-items:center;gap:18px}.portal-user span{display:flex;flex-direction:column;text-align:right;gap:3px}.portal-user span small{color:var(--muted);letter-spacing:0}.portal-user select{height:38px;border:1px solid var(--line);border-radius:8px;padding:0 10px;background:#fff;color:var(--ink)}.portal-user button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:10px 13px;color:var(--ink);cursor:pointer}.portal-content{padding:30px 34px 48px;max-width:1680px;margin:auto}.portal-messages p{padding:12px 15px;border-radius:9px;background:#e9f7ef;color:#087443;border:1px solid #b7e4ca}.portal-messages p.error{background:#fff0f0;color:#b42318;border-color:#ffc9c9}.portal-messages p.warning{background:#fff8e6;color:#9b6300;border-color:#f7d794}.portal-page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.portal-page-heading span,.portal-page-heading>div>span{font-size:10px;color:var(--blue);font-weight:800;letter-spacing:.12em}.portal-page-heading h1{font-size:30px;margin:5px 0 5px;letter-spacing:-.025em}.portal-page-heading p{margin:0;color:var(--muted);font-size:14px}.portal-page-heading>a{background:var(--blue);color:#fff;text-decoration:none;border-radius:9px;padding:12px 17px;font-size:13px;font-weight:700}.portal-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:18px}.portal-kpis article{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px;border-left:4px solid var(--blue);display:flex;flex-direction:column;gap:7px}.portal-kpis article:nth-child(2){border-left-color:var(--gold)}.portal-kpis article:nth-child(3){border-left-color:var(--green)}.portal-kpis article:nth-child(4){border-left-color:#7a5af8}.portal-kpis span{font-size:12px;color:var(--muted)}.portal-kpis strong{font-size:30px}.portal-kpis small{font-size:10px;color:#8290a5}.portal-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:18px}.portal-card{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.portal-card>header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line)}.portal-card>header h2,.portal-card>h2{font-size:17px;margin:0 0 3px}.portal-card>header p{font-size:11px;color:var(--muted);margin:0}.portal-card>header a{font-size:11px;color:var(--blue);font-weight:700;text-decoration:none}.portal-wide{grid-column:1/-1}.portal-case-list>a{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;border-bottom:1px solid #e8eef5;text-decoration:none}.portal-case-list>a:hover{background:#f6f9fd}.portal-case-list span{display:flex;flex-direction:column;gap:4px}.portal-case-list b{font-size:13px;color:var(--blue)}.portal-case-list small{font-size:11px;color:var(--muted)}.portal-case-list em,.portal-status{font-style:normal;font-size:10px;background:#e9f2ff;color:#075dcc;border-radius:999px;padding:6px 9px;font-weight:700}.portal-status.large{font-size:12px;padding:8px 13px}.portal-event-list{padding:5px 18px}.portal-event-list article{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid #e8eef5}.portal-event-list time{width:50px;height:50px;background:#fff7e1;color:#9b6700;border-radius:10px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-weight:800}.portal-event-list time small{font-size:9px}.portal-event-list div{display:flex;flex-direction:column;gap:4px}.portal-event-list b{font-size:12px}.portal-event-list span{font-size:10px;color:var(--muted)}.portal-message-preview{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:18px}.portal-message-preview article{border:1px solid var(--line);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:6px}.portal-message-preview article.estudio{border-left:3px solid var(--blue)}.portal-message-preview span{font-size:9px;color:var(--blue);font-weight:800}.portal-message-preview b{font-size:12px}.portal-message-preview p{font-size:11px;color:var(--muted);margin:0;line-height:1.45}.portal-message-preview time{font-size:9px;color:#8794a6}.portal-empty{padding:32px;text-align:center;color:#7b899c;font-size:12px}.portal-table-card{overflow:auto}.portal-table{border-collapse:collapse;width:100%;min-width:970px}.portal-table th{background:#f7f9fc;color:#536177;font-size:10px;text-align:left;padding:13px 15px;border-bottom:1px solid var(--line)}.portal-table td{padding:15px;border-bottom:1px solid var(--line);font-size:11px;vertical-align:middle}.portal-table td>small,.portal-table td>span{display:block;margin-top:4px;color:var(--muted);font-size:9px}.portal-row-link{color:var(--blue);font-weight:700;text-decoration:none;border:1px solid #b7d1f7;padding:7px 10px;border-radius:7px;white-space:nowrap}.portal-back{display:inline-block;margin-bottom:15px;color:var(--blue);font-size:12px;font-weight:700;text-decoration:none}.case-heading{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px}.portal-detail-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:18px}.portal-data{display:grid;grid-template-columns:repeat(2,1fr);gap:0;margin:0;padding:8px 20px}.portal-data div{padding:15px 0;border-bottom:1px solid #e8eef5}.portal-data dt{font-size:9px;color:var(--muted);margin-bottom:6px}.portal-data dd{font-size:12px;font-weight:600;margin:0}.portal-update{margin:14px 20px 20px;padding:17px;border-radius:10px;background:#f2f7ff;border-left:3px solid var(--blue)}.portal-update small{font-size:9px;color:var(--blue);font-weight:800}.portal-update p{font-size:12px;line-height:1.6}.portal-update time{font-size:9px;color:var(--muted)}.portal-doc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:18px}.portal-doc-grid.large{grid-template-columns:repeat(3,1fr)}.portal-doc-grid article{border:1px solid var(--line);border-radius:10px;padding:14px;display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center}.portal-doc-grid article>span{width:42px;height:42px;border-radius:9px;background:#fff0f0;color:#d92d20;display:grid;place-items:center;font-size:9px;font-weight:800}.portal-doc-grid article div{display:flex;flex-direction:column;gap:5px;min-width:0}.portal-doc-grid b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-doc-grid small{font-size:9px;color:var(--muted)}.portal-doc-grid a{color:var(--blue);font-size:10px;font-weight:700;text-decoration:none}.portal-messaging{display:grid;grid-template-columns:370px 1fr;gap:18px}.portal-compose{padding:20px;height:max-content}.portal-compose form{display:grid;gap:14px}.portal-compose label{display:grid;gap:6px;font-size:11px;font-weight:700}.portal-form-control,.portal-compose input,.portal-compose select,.portal-compose textarea{width:100%;border:1px solid #ccd8e6;border-radius:8px;padding:11px;background:#fff;color:var(--ink);font:inherit}.portal-compose textarea{resize:vertical}.portal-compose button{border:0;background:var(--blue);color:#fff;padding:12px;border-radius:8px;font-weight:700}.field-error{color:var(--red)!important}.portal-conversation{padding-bottom:15px}.conversation-item{margin:15px 20px;padding:15px;border:1px solid var(--line);border-radius:10px}.conversation-item.estudio{background:#f2f7ff;border-color:#c8dbf7}.conversation-item>div{display:flex;justify-content:space-between}.conversation-item span{font-size:9px;font-weight:800;color:var(--blue)}.conversation-item time{font-size:9px;color:var(--muted)}.conversation-item h3{font-size:13px;margin:8px 0 4px}.conversation-item>small{font-size:9px;color:var(--blue)}.conversation-item p{font-size:11px;line-height:1.55;margin-bottom:0}.portal-auth-body{background:linear-gradient(135deg,#02142e,#06315e);min-height:100vh;display:grid;place-items:center;padding:24px}.portal-auth{width:min(980px,100%);display:grid;grid-template-columns:1fr 440px;border-radius:20px;overflow:hidden;box-shadow:0 30px 80px #0007}.portal-auth.single{display:block;width:min(480px,100%)}.portal-auth-brand{padding:55px;color:#fff;background:linear-gradient(145deg,#041a38,#0a3c70);display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.portal-auth-brand img{width:210px;height:150px;object-fit:contain;align-self:center}.portal-auth-brand h1{font-family:Georgia,serif;font-size:44px;letter-spacing:.1em;margin:12px auto 0}.portal-auth-brand>small{color:#ffc328;letter-spacing:.22em;font-weight:800;margin:5px auto 32px}.portal-auth-brand p{font-size:15px;line-height:1.7;color:#d5e4f6}.portal-auth-card{padding:48px;background:#fff}.auth-kicker{font-size:10px;color:var(--blue);font-weight:800;letter-spacing:.12em}.portal-auth-card h2{font-size:28px;margin:8px 0}.portal-auth-card>p{font-size:13px;line-height:1.6;color:var(--muted);margin-bottom:24px}.portal-auth-card form{display:grid;gap:15px}.portal-auth-card label{font-size:11px;font-weight:700;display:grid;gap:6px}.portal-auth-card input:not([type=checkbox]){height:44px;border:1px solid #cbd7e5;border-radius:8px;padding:0 12px;font:inherit}.portal-auth-card .auth-check{display:flex;align-items:center;gap:8px;font-weight:500}.portal-auth-card button,.auth-primary-link{border:0;border-radius:8px;background:var(--blue);color:#fff;padding:13px;text-align:center;text-decoration:none;font-weight:700;cursor:pointer}.auth-alert{padding:11px;background:#fff0f0;border:1px solid #ffc8c8;color:#b42318;border-radius:8px;font-size:11px;margin-bottom:15px}.auth-recover{display:block;text-align:center;color:var(--blue);font-size:11px;margin-top:18px}.auth-note{display:block;text-align:center;color:#8794a6;font-size:9px;margin-top:24px}.auth-primary-link{display:block}.field-error{display:block;color:#b42318;font-weight:500;line-height:1.4}@media(max-width:1050px){.portal-shell{grid-template-columns:220px 1fr}.portal-kpis{grid-template-columns:repeat(2,1fr)}.portal-doc-grid.large{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.portal-shell{display:block}.portal-sidebar{position:relative;height:auto}.portal-sidebar nav{grid-template-columns:repeat(2,1fr)}.portal-trust{display:none}.portal-brand img{height:80px}.portal-header{height:auto;padding:15px;gap:12px;align-items:flex-start}.portal-user span{display:none}.portal-content{padding:20px 15px}.portal-kpis,.portal-grid,.portal-detail-grid,.portal-messaging{grid-template-columns:1fr}.portal-wide{grid-column:auto}.portal-doc-grid,.portal-doc-grid.large,.portal-message-preview{grid-template-columns:1fr}.portal-auth{grid-template-columns:1fr}.portal-auth-brand{display:none}}
.auth-session-notice {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #f0c36a;
  border-radius: 12px;
  background: #fff8e8;
  color: #6b4900;
}

.auth-session-notice strong {
  font-size: 14px;
}

.auth-session-notice span {
  font-size: 13px;
  line-height: 1.45;
}

.portal-password-change .portal-auth-card form > small.portal-password-help {
  display: block;
  margin: -8px 0 0;
  color: #66758a;
  font-size: 12px;
  line-height: 1.45;
}

.portal-field-error {
  display: block;
  margin-top: 5px;
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
}

.portal-password-wrap {
  position: relative;
  display: block;
}

.portal-password-wrap input {
  width: 100%;
  padding-right: 48px !important;
}

.portal-auth-card .portal-password-toggle {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5b6e87;
}

.portal-auth-card .portal-password-toggle:hover {
  background: #edf4ff;
  color: var(--blue);
}

.portal-auth-card .portal-password-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.portal-password-toggle svg {
  width: 20px;
  height: 20px;
}
