/* Entry and console only. Palette, Golos Text and product marks follow site/site.css.
   State tokens: accent = action/focus, tint = product surface; red is reserved for errors. */
.portal{--accent:#2655d8;--accent-hover:#1b44b8;--tint:#edf2ff;--accent-line:#c6d5fa;--story:#122643;--story-text:#d1e0fa;min-height:100dvh;display:flex;flex-direction:column}
.tone-blue{--accent:#2655d8;--accent-hover:#1b44b8;--tint:#edf2ff;--accent-line:#c6d5fa;--story:#122643;--story-text:#d1e0fa}
.tone-teal{--accent:#0f766e;--accent-hover:#095e58;--tint:#e1f4f0;--accent-line:#acd9d2;--story:#103e3b;--story-text:#c2e8e2}
.tone-purple{--accent:#5b45d6;--accent-hover:#4935b7;--tint:#efecff;--accent-line:#d3cafa;--story:#2c2556;--story-text:#ded8fb}
.tone-amber{--accent:#925710;--accent-hover:#75440b;--tint:#fcf3e2;--accent-line:#e9d3ac;--story:#302a21;--story-text:#e8dbc2}
.portal [hidden]{display:none!important}
.portal a:focus-visible,.portal button:focus-visible,.portal summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.portal-wrap{width:min(1184px,100%);margin-inline:auto;padding-inline:32px}
.portal-top{background:#fff;border-bottom:1px solid var(--line)}
.portal-top-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.portal-nav{display:flex;align-items:center;gap:6px}
.portal-nav a,.portal-nav button{display:inline-flex;align-items:center;min-height:44px;padding:10px 15px;border:0;border-radius:12px;background:transparent;color:var(--text);font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap}
.portal-nav a:hover,.portal-nav button:hover{background:var(--bg);color:var(--ink)}
.portal-nav a[aria-current]{background:var(--blue-soft);color:var(--blue)}
.portal-nav form{margin:0}
.portal-main{flex:1;padding-top:52px;padding-bottom:48px}
.portal-footer{display:flex;justify-content:space-between;gap:16px;padding-top:22px;padding-bottom:26px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}
.portal-footer a{display:inline-flex;align-items:center;gap:10px;color:var(--muted)}
.portal-kicker{display:block;color:var(--accent);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.13em;line-height:1.5}
.portal-heading{margin-bottom:30px}
.portal-heading h1{margin:12px 0 14px;font-size:clamp(32px,3.8vw,46px);line-height:1.12;letter-spacing:-.035em}
.portal-heading p{color:var(--text);font-size:17px;line-height:1.65}
.portal-heading-row{display:flex;align-items:center;justify-content:space-between;gap:24px}
.entry-steps{display:flex;gap:32px;align-items:center;margin:0 0 28px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.entry-steps li{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:14px}
.entry-steps li span{width:27px;height:27px;display:grid;place-items:center;background:#e7ecf3;border-radius:50%;font-size:12px;font-weight:700;color:var(--text)}
.entry-steps li[aria-current]{color:var(--ink);font-weight:600}
.entry-steps li[aria-current] span{background:var(--blue);color:#fff}
.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.product-card{position:relative;display:flex;flex-direction:column;padding:26px 28px 22px;background:#fff;border:1px solid var(--line);border-radius:20px;color:var(--ink);transition:transform .18s,border-color .18s,box-shadow .18s;overflow:hidden}
.product-card::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--accent)}
.product-card:hover{color:var(--ink);border-color:var(--accent-line);box-shadow:0 12px 30px -18px rgba(18,38,67,.3);transform:translateY(-3px)}
.product-card-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.product-card .p-ico{width:48px;height:48px;border-radius:14px}
.product-label{font-size:12px;color:var(--accent);background:var(--tint);border-radius:30px;padding:5px 11px}
.product-card h2{font-size:24px;line-height:1.2;letter-spacing:-.025em;margin-bottom:10px}
.product-card p{font-size:15px;line-height:1.65;color:var(--muted);margin-bottom:24px;max-width:48ch}
.product-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:18px;border-top:1px solid var(--line-2);font-size:13px;color:var(--muted)}
.product-card-bottom strong{display:inline-flex;align-items:center;gap:10px;color:var(--accent);font-size:14px;white-space:nowrap}
.product-count{color:var(--ink);font-size:23px;font-weight:700;margin-right:5px;font-variant-numeric:tabular-nums}
.portal-note{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px;padding:18px 22px;border:1px solid var(--line);border-radius:14px;color:var(--muted);font-size:14px;line-height:1.6}
.portal-note strong{color:var(--ink);font-weight:600}
.portal-note a,.section-caption a{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-size:14px;font-weight:600}
.section-caption{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:38px 0 18px}
.section-caption h2{font-size:18px;letter-spacing:-.015em}
.count-badge{padding:4px 8px;background:var(--blue-soft);color:var(--blue);border-radius:7px;font-size:12px}
.back-link{display:inline-flex;align-items:center;min-height:44px;margin:-16px 0 18px;color:var(--muted);font-size:14px}
.back-link:hover{color:var(--accent)}
.entry-layout{display:grid;grid-template-columns:1.05fr 1fr;max-width:1040px;margin:0 auto;border:1px solid var(--line);border-radius:26px;overflow:hidden;background:#fff;box-shadow:0 20px 60px -42px rgba(18,38,67,.32)}
.entry-story{position:relative;padding:40px;background:var(--story);color:#fff;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start}
.entry-story::after{content:"";position:absolute;width:330px;height:330px;right:-180px;bottom:-190px;border:1px solid #ffffff14;border-radius:50%;box-shadow:0 0 0 40px #ffffff04,0 0 0 80px #ffffff03;pointer-events:none}
.entry-product{display:flex;align-items:center;gap:13px;margin-bottom:42px;font-size:16px;font-weight:600;color:#fff}
.entry-product .p-ico{width:54px;height:54px;border-radius:15px;flex-shrink:0}
.entry-story .portal-kicker{color:var(--story-text)}
.entry-story h2{font-size:clamp(30px,3.2vw,39px);line-height:1.16;letter-spacing:-.035em;margin:14px 0 20px;text-wrap:initial}
.entry-story>p{color:var(--story-text);font-size:16px;line-height:1.75;max-width:37ch}
.entry-story-note{display:flex;gap:10px;align-items:center;margin-top:30px;font-size:12px;line-height:1.5;color:var(--story-text)}
.entry-dot{width:6px;height:6px;background:var(--story-text);border-radius:50%;flex-shrink:0}
.entry-motif{display:flex;align-items:center;width:100%;max-width:270px;margin-top:auto;padding-top:46px;opacity:.7}
.entry-motif span{display:block;width:28px;height:28px;border:1px solid var(--story-text);border-radius:7px;flex-shrink:0}
.entry-motif span:nth-of-type(2){transform:rotate(45deg);background:#ffffff15;border-radius:5px}
.entry-motif span:last-child{border-radius:50%;background:var(--story-text);width:12px;height:12px}
.entry-motif i{height:1px;flex:1;background:var(--story-text)}
.entry-benefits{display:grid;gap:15px;margin-top:30px;font-size:14px;color:var(--story-text)}
.entry-benefits li{display:flex;align-items:center;gap:12px}
.entry-benefits span{font-size:11px;letter-spacing:.05em;opacity:.75}
.entry-panel{padding:42px 40px;align-self:center;min-width:0}
.panel-heading{margin-bottom:28px}
.panel-heading h1{font-size:27px;line-height:1.2;letter-spacing:-.03em;margin:10px 0}
.panel-heading p{font-size:14px;line-height:1.65;color:var(--muted)}
.entry-form{display:grid;gap:21px}
.field{display:flex;flex-direction:column;gap:8px;min-width:0}
.field label{font-size:14px;font-weight:600;color:var(--ink)}
.field input{width:100%;min-width:0;height:54px;background:var(--soft);border:1px solid #c6d0dd;border-radius:12px;padding:13px 15px;font-size:16px;line-height:1.5;transition:border-color .15s,box-shadow .15s;box-shadow:none}
.field input::placeholder{color:#798598;opacity:1}
.field input:hover{border-color:#97a7ba}
.field input:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--tint);background:#fff}
.field input[aria-invalid]{border-color:#b84136}
.field small{color:var(--muted);font-size:12px;line-height:1.6}
.field .code-input{height:70px;text-transform:uppercase;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:28px;font-weight:600;letter-spacing:.2em;color:var(--accent);background:var(--tint);border-color:var(--accent-line)}
.field .code-input[aria-invalid]{border-color:#b84136}
.code-cells{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.field .code-cell{height:76px;padding:0;text-align:center;border-radius:14px;background:#fff;font:600 27px/1 ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase;color:var(--accent);caret-color:var(--accent)}
.field .code-cell.is-filled{border-color:var(--accent-line)}
.field .code-cell:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--tint)}
.field .code-cell[aria-invalid]{border-color:#b84136}
.password-field{position:relative}
.password-field:has(.password-toggle:not([hidden])) input{padding-right:100px}
.password-toggle{position:absolute;right:7px;top:7px;min-height:40px;padding:8px 10px;border:0;border-radius:8px;color:var(--accent);background:transparent;cursor:pointer;font-size:12px;font-weight:600}
.password-toggle:hover{background:var(--tint)}
.field .caps-warning{color:#8a520e}
.portal-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:50px;padding:13px 20px;background:var(--accent);border:1px solid transparent;border-radius:12px;color:#fff;font-size:15px;font-weight:600;cursor:pointer;transition:background .15s;line-height:1.5}
.portal-button:hover{background:var(--accent-hover);color:#fff}
.portal-button:disabled{opacity:.65;cursor:wait}
.portal-button-ghost{border-color:var(--line);background:#fff;color:var(--ink)}
.portal-button-ghost:hover{border-color:var(--accent);background:#fff;color:var(--ink)}
.form-error{display:grid;gap:4px;margin-bottom:20px;padding:14px 16px;background:#fff2ef;border:1px solid #edc8c1;border-radius:12px;color:#9b3228;font-size:13px;line-height:1.6}
.form-error strong{font-weight:600}
.entry-help{margin-top:22px;padding-top:20px;border-top:1px solid var(--line-2);font-size:13px}
.entry-help summary{cursor:pointer;color:var(--text);font-weight:600;min-height:32px}
.entry-help p{color:var(--muted);line-height:1.65;margin-top:10px}
.entry-panel-foot{margin-top:22px;font-size:12px;color:var(--muted);line-height:1.7}
.entry-panel-foot a{display:inline-flex;align-items:center;gap:6px;color:var(--accent);font-weight:600}
@media(min-width:1500px){.portal-main{padding-top:64px}}
@media(max-width:900px){.brand-name span{display:none}.portal-home{display:none!important}.entry-story{padding:30px}.entry-panel{padding:32px 28px}.entry-story h2{font-size:32px}.portal-heading-row{align-items:flex-start}}
@media(max-width:700px){
  .portal-wrap{padding-inline:20px}.portal-top-inner{min-height:74px;gap:12px}.portal-nav{gap:0}.portal-nav a,.portal-nav button{padding-inline:11px;font-size:12px}.brand-name b{font-size:18px}.brand{gap:6px}.brand img{width:30px;height:30px}
  .portal-main{padding-top:32px;padding-bottom:32px}.portal-heading h1{font-size:32px}.portal-heading p{font-size:15px}.desktop-break{display:none}
  .entry-steps{gap:18px;align-items:flex-start}.entry-steps li{flex:1;flex-direction:column;align-items:flex-start;gap:7px;font-size:12px}.entry-steps li span{flex-shrink:0}
  .product-grid{grid-template-columns:1fr;gap:16px}.product-card{padding:22px}.product-card h2{font-size:22px}.product-card-top{margin-bottom:16px}.product-card p{margin-bottom:20px}
  .portal-note{flex-direction:column;align-items:flex-start;padding:16px 18px}.portal-heading-row{flex-direction:column}.section-caption{align-items:flex-start}.section-caption a{font-size:12px;white-space:normal}.section-caption h2{font-size:16px}
  .entry-layout{grid-template-columns:1fr;border-radius:20px}.entry-story{padding:20px 24px}.entry-product{margin-bottom:0;font-size:15px}.entry-motif,.entry-benefits,.entry-story h2,.entry-story>.portal-kicker,.entry-story>p,.entry-story-note{display:none}.entry-panel{padding:28px 24px}.panel-heading{margin-bottom:24px}.panel-heading h1{font-size:25px}.back-link{margin-top:-10px;margin-bottom:12px}
  .portal-footer{font-size:11px}.portal-footer a{gap:5px}
  .code-cells{gap:6px}.field .code-cell{height:64px;border-radius:12px;font-size:24px}
}
@media(max-width:380px){.portal-wrap{padding-inline:14px}.portal-nav a,.portal-nav button{padding-inline:8px}.portal-top .brand-name{display:none}.product-card{padding:20px}.product-label{font-size:11px}.product-card-bottom{font-size:12px}.entry-panel{padding:24px 20px}}
@media(prefers-reduced-motion:reduce){.portal *{scroll-behavior:auto;transition:none!important}.product-card:hover{transform:none}}
