/* Kolme alamdomeeni visuaalne eristus */
.auth-context-business { --portal-accent: #1746a2; background:#091a38; }
.auth-context-private { --portal-accent: #087f5b; background:#eef8f4; }

/* CRM-i sisselogimine kasutab teadlikult styles.css algset kujundust. */

/* Brunex One – teravam ja ärilisem töölaud. */
.auth-context-business .login-window{background:#091a38}.auth-context-business .login-window-body{grid-template-columns:minmax(500px,1.28fr) minmax(390px,.72fr)}.auth-context-business .login-showcase{padding:0;background:#091a38}.auth-context-business .login-showcase-media{border:0;border-radius:0}.auth-context-business .login-showcase-media-overlay{background:linear-gradient(110deg,rgba(5,20,49,.94) 0%,rgba(15,54,119,.72) 55%,rgba(22,88,188,.35) 100%)}.auth-context-business .login-showcase-content{justify-content:center;height:100%;padding:clamp(44px,7vw,100px)}.auth-context-business .login-showcase-label{padding-left:14px;border-left:3px solid #5ca4ff}.auth-context-business .login-showcase-title{max-width:700px;font-size:clamp(34px,4.6vw,66px);letter-spacing:-.035em}.auth-context-business .login-showcase-text{max-width:54ch;font-size:17px}.auth-context-business .login-showcase-footer{display:none}.auth-context-business .login-form-side{background:#f5f8fc}.auth-context-business .login-form-wrap h2{font-size:36px}.auth-context-business .login-grid input{border-radius:5px;background:#fff}.auth-context-business .login-submit{border-radius:5px;background:#1746a2}.login-context-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}.login-context-pills span{padding:8px 12px;border:1px solid rgba(255,255,255,.25);border-radius:4px;background:rgba(255,255,255,.08);font-size:12px;font-weight:700;letter-spacing:.04em}

/* Brunex My – rahulik ja isiklik teenindusportaal. */
.auth-context-private .login-shell{display:grid;place-items:center;padding:32px}.auth-context-private .login-window{width:min(1080px,100%);min-height:680px;border:1px solid #d7e9e2;border-radius:28px;box-shadow:0 28px 80px rgba(35,82,66,.14);overflow:hidden}.auth-context-private .login-window-body{grid-template-columns:minmax(330px,.82fr) minmax(420px,1.18fr);min-height:680px}.auth-context-private .login-showcase{padding:0;background:#087f5b}.auth-context-private .login-showcase-media{min-height:100%;border:0;border-radius:0;background:radial-gradient(circle at 76% 18%,#55d6a9 0,transparent 32%),linear-gradient(145deg,#075a43,#0d9a70)}.auth-context-private .login-showcase-video{display:none}.auth-context-private .login-showcase-media-overlay{background:radial-gradient(circle at 18% 82%,rgba(255,255,255,.14),transparent 30%)}.auth-context-private .login-showcase-content{justify-content:flex-end;height:100%;padding:46px}.auth-context-private .login-showcase-title{font-size:clamp(34px,4vw,50px);letter-spacing:-.035em}.auth-context-private .login-showcase-text{font-size:16px}.auth-context-private .login-showcase-footer{display:none}.auth-context-private .login-form-side{padding:54px;background:#fff}.auth-context-private .login-form-wrap{width:min(390px,100%)}.auth-context-private .login-form-wrap h2{color:#123b2e;font-size:38px}.auth-context-private .login-grid input{height:48px;border-color:#d7e7e1;border-radius:14px;background:#f8fbfa}.auth-context-private .login-grid input:focus{border-color:#0b966c;box-shadow:0 0 0 3px rgba(11,150,108,.13)}.auth-context-private .login-submit{height:48px;border-radius:14px;background:#087f5b}.auth-context-private .login-forgot{color:#087f5b}.login-my-symbol{display:grid;place-items:center;width:64px;height:64px;margin-top:28px;border:1px solid rgba(255,255,255,.3);border-radius:22px;background:rgba(255,255,255,.14)}.login-my-symbol span{font-size:38px;line-height:1}

.portal-context-business { --portal-accent: #1746a2; --portal-soft: #edf4ff; }
.portal-context-private { --portal-accent: #087f5b; --portal-soft: #eaf8f3; background: #f7faf9; }
.portal-context-business .client-portal-brand-mark,
.portal-context-private .client-portal-brand-mark { background: var(--portal-accent); }
.portal-context-business .client-portal-nav a.is-active,
.portal-context-private .client-portal-nav a.is-active { color: var(--portal-accent); }

.one-command-hero,.my-welcome-card{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;padding:26px 28px;border-radius:18px;color:#fff;background:linear-gradient(135deg,#102c69,#245fca);box-shadow:0 14px 34px rgba(22,62,135,.18)}
.one-command-hero h2,.my-welcome-card h2{margin:2px 0 7px;font-size:28px}.one-command-hero p,.my-welcome-card p{margin:0;color:rgba(255,255,255,.78)}
.one-metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.one-metric-grid a{display:grid;gap:7px;padding:18px;border:1px solid #dce6f3;border-radius:15px;background:#fff;color:#6d7c91;text-decoration:none}.one-metric-grid strong{color:#173666;font-size:27px}.one-dashboard-grid,.my-content-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:16px}.one-object-list{display:grid;gap:7px}.one-object-list a{display:flex;align-items:center;gap:10px;padding:11px;border-radius:10px;background:#f6f9fd;color:#32465f;text-decoration:none}.one-object-list a>span:last-child{display:grid}.one-object-list small{color:#8491a3}

.my-welcome-card{background:linear-gradient(135deg,#075e45,#10a879)}.my-welcome-card>span{font-size:54px;color:rgba(255,255,255,.7)}.my-quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.my-quick-grid a{display:grid;gap:5px;padding:18px;border:1px solid #dbe9e4;border-radius:16px;background:#fff;color:#38544b;text-decoration:none}.my-quick-grid .material-symbols-rounded{display:grid;place-items:center;width:38px;height:38px;margin-bottom:5px;border-radius:11px;background:#e6f7f0;color:#087f5b}.my-quick-grid small{color:#7a9088}.my-contact-card dl{display:grid;gap:12px}.my-contact-card dl div{display:grid;gap:3px}.my-contact-card dt{color:#84938e;font-size:11px}.my-contact-card dd{margin:0;color:#2b423a;font-weight:600}

@media(max-width:900px){.one-metric-grid,.my-quick-grid{grid-template-columns:repeat(2,1fr)}.one-dashboard-grid,.my-content-grid{grid-template-columns:1fr}}
@media(max-width:600px){.one-command-hero,.my-welcome-card{align-items:flex-start;flex-direction:column;padding:21px}.one-command-hero h2,.my-welcome-card h2{font-size:23px}.one-metric-grid,.my-quick-grid{grid-template-columns:1fr 1fr}.one-metric-grid a,.my-quick-grid a{padding:14px}}
@media(max-width:1180px){.auth-context-business .login-window-body{grid-template-columns:1fr}.auth-context-business .login-showcase-media{min-height:390px}.auth-context-business .login-showcase-content{padding:42px}.auth-context-private .login-window-body{grid-template-columns:1fr}.auth-context-private .login-showcase-media{min-height:310px}.auth-context-private .login-showcase-content{padding:34px}.auth-context-private .login-window{min-height:0}}
@media(max-width:640px){.auth-context-private .login-shell{padding:0}.auth-context-private .login-window{min-height:100vh;border:0;border-radius:0}.auth-context-private .login-showcase-media{min-height:280px}.auth-context-private .login-form-side{padding:30px 20px}.auth-context-business .login-showcase-content{padding:30px 24px}.auth-context-business .login-showcase-title{font-size:34px}}

@media(min-width:1181px){.auth-context-private{overflow:hidden}.auth-context-private .login-window,.auth-context-private .login-window-body{min-height:min(680px,calc(100vh - 64px))}}

/* Kliendiportaalide ühine kujundussüsteem */
.portal-context-business,
.portal-context-private {
  --portal-accent: #0000f0;
  --portal-accent-dark: #0000b8;
  --portal-soft: #eeeeff;
  --portal-border: #e2e5ef;
  --portal-text: #17192b;
  --portal-muted: #6d7182;
  background: #f5f6fa;
  color: var(--portal-text);
}

.portal-context-business .client-portal-header,
.portal-context-private .client-portal-header {
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--portal-border);
}

.portal-context-business .client-portal-brand-mark,
.portal-context-private .client-portal-brand-mark {
  border: 0;
  border-radius: 12px;
  background: var(--portal-accent);
  color: #fff;
}

.portal-context-business .client-portal-nav a,
.portal-context-private .client-portal-nav a { color: #606577; }
.portal-context-business .client-portal-nav a:hover,
.portal-context-private .client-portal-nav a:hover { background: #f1f1ff; color: var(--portal-accent); }
.portal-context-business .client-portal-nav a.is-active,
.portal-context-private .client-portal-nav a.is-active { background: var(--portal-soft); color: var(--portal-accent); }

.portal-dashboard-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 390px;
  margin-bottom: 0;
  padding: 48px 52% 92px 48px;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  background: #0000f0;
  box-shadow: 0 18px 44px rgba(0,0,160,.18);
}
.portal-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 42%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.portal-context-business .portal-dashboard-hero::before { background-image: url('login-one.webp'); }
.portal-context-private .portal-dashboard-hero::before { background-image: url('login-my-phone.png'); background-position: 64% center; }
.portal-dashboard-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#0000f0 0%,#0000f0 37%,rgba(0,0,240,.97) 43%,rgba(0,0,240,.5) 61%,rgba(0,0,240,.08) 100%);
}
.portal-dashboard-hero-copy { position: relative; z-index: 1; min-width: 0; }
.portal-primary-action { position: absolute; z-index: 2; left: 48px; bottom: 38px; }
.portal-dashboard-hero .portal-eyebrow { margin-bottom: 9px; color: rgba(255,255,255,.75); letter-spacing: .08em; }
.portal-dashboard-hero h2 { margin: 0; color: #fff; font-size: clamp(28px,3.4vw,42px); line-height: 1.05; }
.portal-dashboard-hero p:last-child { max-width: 620px; margin: 11px 0 0; color: rgba(255,255,255,.82); font-size: 16px; }
.portal-primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 19px; border-radius: 13px; background: #fff; color: var(--portal-accent); font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: 0 10px 26px rgba(0,0,80,.16); }
.portal-primary-action:hover { transform: translateY(-1px); }

.portal-overview-grid { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: -34px 22px 18px; }
.portal-overview-grid a { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 92px; padding: 18px; border: 1px solid var(--portal-border); border-radius: 17px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 12px 28px rgba(21,25,54,.1); transition: border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.portal-overview-grid a:hover { border-color: #b8b8ff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21,25,54,.07); }
.portal-overview-grid a>span:last-child { display: grid; min-width: 0; }
.portal-overview-grid strong { color: var(--portal-text); font-size: 25px; line-height: 1; }
.portal-overview-grid small { margin-top: 5px; overflow: hidden; color: var(--portal-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.portal-overview-icon { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border-radius: 13px; background: var(--portal-soft); color: var(--portal-accent); font-size: 23px; }

.portal-dashboard-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(290px,1fr); gap: 16px; }
.portal-dashboard-grid .portal-card { margin-top: 0; border-color: var(--portal-border); border-radius: 18px; box-shadow: 0 8px 24px rgba(25,28,50,.045); }
.portal-dashboard-grid .portal-card-head a { color: var(--portal-accent); }
.portal-dashboard-grid .portal-list-row { border-color: #eceef4; background: #fafbfc; }
.portal-dashboard-grid .portal-list-row:hover { border-color: #cfcfff; background: #f7f7ff; }
.portal-object-list { display: grid; gap: 8px; }
.portal-object-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid #eceef4; border-radius: 13px; background: #fafbfc; color: var(--portal-text); text-decoration: none; }
.portal-object-list a>span:nth-child(2) { display: grid; min-width: 0; }
.portal-object-list a>span:first-child { color: var(--portal-accent); }
.portal-object-list small { overflow: hidden; color: var(--portal-muted); text-overflow: ellipsis; white-space: nowrap; }
.portal-row-arrow { color: #9a9eac; }
.my-contact-card h2 { margin-top: 0; font-size: 18px; }
.my-contact-card .btn.secondary { border-color: #c9c9ff; color: var(--portal-accent); }

@media(max-width:900px){
  .portal-dashboard-hero { min-height: 340px; padding-right: 44%; }
  .portal-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .portal-dashboard-grid{grid-template-columns:1fr}
}

@media(max-width:760px){
  .portal-context-business .client-portal-header,
  .portal-context-private .client-portal-header { background: rgba(255,255,255,.97); }
  .portal-context-business .client-portal-nav,
  .portal-context-private .client-portal-nav { grid-template-columns: repeat(5,minmax(0,1fr)); border-color: #dedfee; }
  .portal-context-business .client-portal-main,
  .portal-context-private .client-portal-main { width: calc(100vw - 28px); padding-top: 16px; }
  .portal-dashboard-hero { align-items: flex-start; flex-direction: column; min-height: 440px; padding: 236px 22px 78px; border-radius: 20px; }
  .portal-dashboard-hero::before { inset: 0 0 auto; height: 235px; background-position: center; }
  .portal-context-private .portal-dashboard-hero::before { background-position: 68% center; }
  .portal-dashboard-hero::after { background: linear-gradient(180deg,rgba(0,0,240,.03) 0%,rgba(0,0,240,.22) 42%,#0000f0 55%,#0000f0 100%); }
  .portal-dashboard-hero h2 { font-size: 29px; }
  .portal-dashboard-hero p:last-child { font-size: 14px; line-height: 1.45; }
  .portal-primary-action { left: 22px; right: 22px; bottom: 20px; width: auto; min-height: 49px; }
  .portal-overview-grid { gap: 9px; margin: 12px 0; }
  .portal-overview-grid a { align-items: flex-start; flex-direction: column; gap: 10px; padding: 14px; border-radius: 15px; }
  .portal-overview-grid strong { font-size: 23px; }
  .portal-overview-icon { flex-basis: 39px; width: 39px; height: 39px; }
  .portal-dashboard-grid { gap: 12px; }
  .portal-dashboard-grid .portal-card { padding: 15px; border-radius: 16px; }
}

/* Kliendiportaal v4 – külgmenüüga töölaud */
.portal-welcome { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; margin: 4px 0 28px; }
.portal-welcome h2 { margin: 0; color: #151720; font-size: 27px; line-height: 1.2; }
.portal-welcome p { max-width: 920px; margin: 5px 0 0; color: #424755; font-size: 16px; }
.portal-welcome-label { margin:0 0 5px!important; color:#777c8c!important; font-size:12px!important; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.portal-welcome-actions { display:flex; gap:9px; flex:0 0 auto; }.portal-welcome-actions .btn { min-height:44px; border-radius:10px; }.portal-welcome-actions .btn.primary { background:#0000f0; }.portal-welcome-actions .material-symbols-rounded { font-size:19px; }
.portal-status-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; margin-bottom:20px; border:1px solid #e0e1e6; border-radius:14px; overflow:hidden; background:#e0e1e6; }.portal-status-strip a { display:flex; align-items:center; justify-content:space-between; gap:15px; min-height:78px; padding:17px 20px; background:#fff; color:#555a69; text-decoration:none; }.portal-status-strip strong { color:#161924; font-size:27px; }.portal-status-strip span { font-size:14px;font-weight:600; }
.portal-simple-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.portal-simple-grid>a { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:16px; min-height:118px; padding:22px; border:1px solid #e0e1e6; border-radius:15px; background:#fff; color:#171922; text-decoration:none; box-shadow:0 2px 5px rgba(20,24,40,.045); transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease; }.portal-simple-grid>a:hover { border-color:#b7b8ff; transform:translateY(-2px); box-shadow:0 10px 25px rgba(20,24,60,.08); }.portal-simple-grid>a>span:nth-child(2) { min-width:0; }.portal-simple-grid .portal-feature-icon { margin:0; }.portal-simple-grid strong { font-size:18px; }.portal-simple-grid p { margin:5px 0 0; color:#686d7c; font-size:14px; }.portal-simple-arrow { color:#b5b8c2; }

.portal-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid #e0e1e6; border-radius: 15px; overflow: hidden; background: #fff; box-shadow: 0 2px 5px rgba(20,24,40,.08); }
.portal-feature-grid a { position: relative; display: flex; flex-direction: column; min-height: 188px; padding: 26px 52px 22px 26px; border-right: 1px solid #e0e1e6; border-bottom: 1px solid #e0e1e6; color: #17181e; text-decoration: none; transition: background .18s ease; }
.portal-feature-grid a:nth-child(2n) { border-right: 0; }
.portal-feature-grid a:nth-last-child(-n+2) { border-bottom: 0; }
.portal-feature-grid a:hover { background: #fafaff; }
.portal-feature-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px; border-radius: 11px; font-size: 22px; }
.portal-feature-icon.is-pink { color:#f03e9e; background:#ffe3f2; }.portal-feature-icon.is-purple { color:#9147ff; background:#f0e2ff; }.portal-feature-icon.is-mint { color:#11a88c; background:#d6faf1; }.portal-feature-icon.is-cyan { color:#0d9bb8; background:#d9f7fc; }.portal-feature-icon.is-blue { color:#3677ef; background:#e1ebff; }.portal-feature-icon.is-green { color:#13a85b; background:#dcf8e8; }
.portal-feature-arrow { position: absolute; top: 31px; right: 34px; color: #d6d7dc; font-size: 25px; }
.portal-feature-grid strong { font-size: 19px; line-height: 1.2; }
.portal-feature-grid p { max-width: 520px; margin: 5px 0 0; color: #343741; font-size: 15px; line-height: 1.4; }
.portal-feature-grid small { margin-top: auto; padding-top: 12px; color: #737786; font-size: 12px; }
.client-portal-brand-logo { display:block; width:100%; height:100%; object-fit:contain; filter:brightness(0) invert(1); }
.portal-section-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:18px; }
.portal-section-intro h2 { margin:0; font-size:28px; }.portal-section-intro p,.portal-help { margin:5px 0 0; color:#686d7d; }.portal-state { padding:6px 10px; border-radius:999px; background:#f0f1f4; color:#5f6472; font-size:12px; font-style:normal; font-weight:700; white-space:nowrap; }.portal-state.is-approved,.portal-state.is-confirmed,.portal-state.is-done { background:#dcf8e8;color:#08783e; }.portal-state.is-pending,.portal-state.is-new { background:#fff3ce;color:#8a6500; }.portal-state.is-rejected,.portal-state.is-cancelled { background:#ffe1e1;color:#a52b2b; }.portal-state.is-in_progress { background:#e1ebff;color:#2358bc; }.portal-empty { display:grid; justify-items:center; gap:7px; padding:44px 20px; text-align:center; color:#747989; }.portal-empty span { font-size:40px;color:#a8acb8; }.portal-empty strong { color:#292c36; }.portal-empty p { margin:0; }
.portal-state.is-unpaid { background:#fff0d6;color:#935b00; }.portal-state.is-client_reported { background:#e6edff;color:#254fba; }.portal-state.is-paid { background:#dcf8e8;color:#08783e; }
.portal-invoice-pay { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:20px; padding:28px; border:1px solid #e0e1e6; border-radius:18px; background:#fff; box-shadow:0 8px 28px rgba(20,24,50,.06); }.portal-invoice-summary { min-width:0; }.portal-back-link { display:inline-block;margin-bottom:24px;color:#555b6d;text-decoration:none;font-weight:700; }.portal-invoice-summary h2 { margin:14px 0 4px;font-size:26px; }.portal-invoice-amount { display:block;font-size:38px;line-height:1.1;color:#161923; }.portal-invoice-summary>p { color:#686d7c; }.portal-invoice-summary dl { display:grid;gap:0;margin:24px 0;border-top:1px solid #e8e9ee; }.portal-invoice-summary dl div { display:grid;grid-template-columns:110px 1fr;gap:16px;padding:12px 0;border-bottom:1px solid #e8e9ee; }.portal-invoice-summary dt { color:#747989; }.portal-invoice-summary dd { margin:0;font-weight:700;word-break:break-word; }.portal-invoice-summary dd button { margin-left:8px;border:0;background:transparent;color:#0000d8;font-weight:700;cursor:pointer; }.portal-invoice-actions { display:flex;flex-wrap:wrap;gap:10px; }.portal-payment-qr { display:flex;align-items:center;flex-direction:column;align-self:start;padding:20px;border-radius:15px;background:#f7f7fb;text-align:center; }.portal-payment-qr img { width:230px;height:230px;max-width:100%; }.portal-payment-qr strong { font-size:17px; }.portal-payment-qr p { margin:6px 0 0;color:#6a6f7f;font-size:13px; }

@media(min-width:761px){
  .client-portal-shell { min-height: 100vh; padding-left: 256px; }
  .portal-context-business .client-portal-header,
  .portal-context-private .client-portal-header { position: fixed; inset: 0 auto 0 0; z-index: 80; width: 256px; border: 0; background: #1f4fe5; box-shadow: none; }
  .portal-context-business .client-portal-header-main,
  .portal-context-private .client-portal-header-main { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; height: 100%; min-height: 100vh; padding: 20px 12px 14px; }
  .portal-context-business .client-portal-brand,
  .portal-context-private .client-portal-brand { flex: 0 0 auto; gap: 10px; padding: 0 10px 24px; color: #fff; }
  .portal-context-business .client-portal-brand-mark,
  .portal-context-private .client-portal-brand-mark { background: rgba(255,255,255,.13); border: 2px solid rgba(255,255,255,.75); color: #fff; }
  .portal-context-business .client-portal-brand-mark,
  .portal-context-private .client-portal-brand-mark { width:132px; height:45px; padding:4px 8px; border:0; border-radius:0; background:transparent; }
  .portal-context-business .client-portal-brand strong,
  .portal-context-private .client-portal-brand strong { display:none; }
  .portal-context-business .client-portal-brand strong,
  .portal-context-private .client-portal-brand strong { color: #fff; font-size: 17px; }
  .portal-context-business .client-portal-brand small,
  .portal-context-private .client-portal-brand small { max-width: 170px; color: rgba(255,255,255,.72); }
  .portal-context-business .client-portal-nav,
  .portal-context-private .client-portal-nav { position: static; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 5px; width: 100%; margin-top: 4px; }
  .portal-context-business .client-portal-nav a,
  .portal-context-private .client-portal-nav a { justify-content: flex-start; width: 100%; min-height: 42px; padding: 0 12px; border-radius: 10px; color: rgba(255,255,255,.82); font-size: 14px; }
  .portal-context-business .client-portal-nav a:hover,
  .portal-context-private .client-portal-nav a:hover { background: rgba(4,23,105,.2); color: #fff; }
  .portal-context-business .client-portal-nav a.is-active,
  .portal-context-private .client-portal-nav a.is-active { background: rgba(9,30,118,.42); color: #fff; }
  .portal-context-business .client-portal-actions,
  .portal-context-private .client-portal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; width: 100%; margin-top: auto; padding: 12px 4px 0; border-top: 1px solid rgba(255,255,255,.18); }
  .portal-context-business .client-portal-actions .btn,
  .portal-context-private .client-portal-actions .btn { display: inline-flex; justify-content: center; min-width: 0; padding: 0 8px; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; }
  .portal-context-business .client-portal-main,
  .portal-context-private .client-portal-main { width: min(1150px,calc(100vw - 316px)); margin: 0 auto; padding: 44px 0 64px; }
  .portal-context-business .client-portal-page-head,
  .portal-context-private .client-portal-page-head { display: none; }
}

@media(max-width:760px){
  .client-portal-brand-mark { width:105px; height:38px; padding:3px 5px; border:0!important; border-radius:0!important; background:transparent!important; }
  .client-portal-brand strong { display:none; }
  .client-portal-brand small { max-width:38vw; }
  .portal-section-intro { align-items:stretch; flex-direction:column; }.portal-section-intro .btn { justify-content:center; }
  .portal-invoice-pay { grid-template-columns:1fr;padding:18px; }.portal-payment-qr { order:-1; }.portal-invoice-amount { font-size:32px; }.portal-invoice-summary dl div { grid-template-columns:1fr;gap:4px; }.portal-invoice-actions,.portal-invoice-actions .btn,.portal-invoice-actions form,.portal-invoice-actions button { width:100%; }.portal-invoice-actions .btn,.portal-invoice-actions button { justify-content:center; }
  .portal-welcome { align-items:stretch; flex-direction:column; gap:16px; margin: 2px 2px 18px; }
  .portal-welcome h2 { font-size: 23px; }
  .portal-welcome p { font-size: 14px; line-height: 1.4; }
  .portal-welcome-actions { display:grid; grid-template-columns:1fr; }.portal-welcome-actions .btn { justify-content:center; }.portal-status-strip { grid-template-columns:1fr; gap:0; }.portal-status-strip a { min-height:58px; padding:12px 15px; border-bottom:1px solid #e8e9ee; }.portal-status-strip a:last-child { border-bottom:0; }.portal-status-strip strong { font-size:23px; }.portal-simple-grid { grid-template-columns:1fr; gap:10px; }.portal-simple-grid>a { min-height:94px; padding:17px; }.portal-simple-grid strong { font-size:17px; }
  .portal-feature-grid { grid-template-columns: 1fr; border-radius: 16px; }
  .portal-feature-grid a { min-height: 160px; padding: 20px 46px 18px 20px; border-right: 0; border-bottom: 1px solid #e0e1e6; }
  .portal-feature-grid a:nth-last-child(2) { border-bottom: 1px solid #e0e1e6; }
  .portal-feature-grid a:last-child { border-bottom: 0; }
  .portal-feature-icon { width: 38px; height: 38px; margin-bottom: 16px; }
  .portal-feature-arrow { top: 24px; right: 22px; }
  .portal-feature-grid strong { font-size: 17px; }
  .portal-feature-grid p { font-size: 14px; }
}
