/* Real-product extensions for exact r8 screens only. */
.account-page{background:var(--cab);min-height:100dvh}

.notice{padding:13px 15px;border:1px solid #a8c0e61a;border-radius:11px;background:#ffffff03;color:#aab7cf;font-size:13px}
.notice.ok,.integration-success{color:#b9d1ff}
.notice.error,.integration-error{color:#e7a8b0}
.notice.pending{color:#c8b891}

/* Landing preserves the approved r8 entry composition without loading legacy styles.css. */
.r8-entry-landing{background:#08090d;color:#e7ebf4;overflow-x:hidden;min-height:100dvh}
.r8-entry-landing .page-shell{width:min(1160px,calc(100% - 40px));min-height:100dvh;margin-inline:auto}
.r8-entry-landing .r8-topbar{height:82px}
.r8-entry-landing .r8-top-action{display:inline-flex;align-items:center;min-height:44px;color:#aebbd4;font-size:13px}
.r8-entry-landing .r8-top-action:hover{color:#dbe3f5}
.r8-entry-landing .r8-auth-shell{min-height:calc(100dvh - 132px);display:grid;place-items:center;padding:40px 18px 64px}
.r8-entry-landing .r8-auth-panel{width:min(470px,100%);padding:38px;border:1px solid var(--line-2);border-radius:16px;background:var(--surface)}
.r8-entry-landing .r8-entry-panel{width:min(520px,100%)}
.r8-entry-landing .r8-auth-panel h1{margin:0;font-size:38px;line-height:1.05;letter-spacing:-.045em}
.r8-entry-landing .r8-auth-panel .lead{margin:13px 0 0;color:#8d99b0;font-size:14px;line-height:1.62}
.r8-entry-landing .r8-entry-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:10px;margin-top:24px}
.r8-entry-landing .r8-entry-actions .button{width:100%;margin:0}
.r8-entry-landing .r8-main-action{width:100%}
.r8-entry-landing .r8-entry-meta{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-top:22px;padding-top:17px;border-top:1px solid var(--line);color:#7485a4;font-size:11px;line-height:1.55}
.r8-entry-landing .r8-entry-meta a{color:#9dafcf;white-space:nowrap}
:is(.r8-entry-landing,.r8-entry-page) .compact-legal-footer{width:100%;display:grid;gap:10px;padding:22px 0 28px;color:#63718c;text-align:center;font-size:11px}
:is(.r8-entry-landing,.r8-entry-page) .compact-legal-footer .legal-links{font-size:11px;gap:12px}
@media(max-width:650px){
  .r8-entry-landing .page-shell{width:calc(100% - 36px)}
  .r8-entry-landing .r8-topbar{height:68px}
  .r8-entry-landing .r8-auth-shell{display:block;min-height:auto;padding:26px 18px 48px}
  .r8-entry-landing .r8-auth-panel{width:100%;padding:0;border:0;background:transparent}
  .r8-entry-landing .r8-auth-panel h1{font-size:34px}
  .r8-entry-landing .r8-entry-actions{grid-template-columns:1fr}
  .r8-entry-landing .r8-entry-meta{flex-direction:column;gap:8px}
}

/* Public trial / Telegram bindings absent from the approved r8 prototype. */
.text-button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:4px 6px;border:0;background:transparent;color:#8799ba;font:inherit;font-size:11px;line-height:1.4;cursor:pointer}
.expired-actions{display:grid;gap:10px;margin-top:14px}
.expired-actions form{margin:0}
.expired-actions .text-button{justify-self:start}
.r8-next-available{padding:12px 24px 0}
.r8-state-title{display:flex;align-items:center;gap:12px}
.r8-flow-error{margin:0 0 14px}

.r8-desktop-platform-picker{display:grid;gap:6px;margin-top:9px;max-width:240px}
.r8-desktop-platform-picker[hidden]{display:none}
.r8-desktop-platform-picker>span{font-size:10px;color:#687790}
.r8-desktop-platform-picker select{min-height:38px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#0b101a;color:#cdd7e9;font:500 11px/1.2 var(--font)}

.r8-manual-check{margin-top:9px;text-align:center}
.r8-manual-check.hidden{display:none}
.temp-footer-line{display:flex;justify-content:space-between;gap:14px;margin-top:13px;font-size:11px;color:#66758f}

.qr-dialog{border:0;padding:0;background:transparent;color:#dce3f1}
.qr-dialog::backdrop{background:#05060acc;backdrop-filter:blur(4px)}
.qr-dialog-card{position:relative;width:min(360px,calc(100vw - 36px));padding:20px;border:1px solid var(--line);border-radius:14px;background:#10131c}
.qr-dialog-card h2{font-size:19px}
.qr-dialog-card img{display:block;width:min(260px,100%);margin:16px auto;border-radius:10px}
.qr-dialog-card p{margin:12px 0 0;color:#71819d;font-size:11px;line-height:1.5}
.qr-dialog-close{position:absolute;right:10px;top:8px;width:34px;height:34px;border:0;background:transparent;color:#8997b1;font-size:22px;cursor:pointer}

.r8-login-temp,.r8-alt-path{margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}
.r8-login-temp p,.r8-alt-path p{margin:0 0 10px;color:#7f8ca4;font-size:12px;line-height:1.5}
.app-install-note a{color:#aab9d7;text-decoration:underline;text-underline-offset:3px}

/* Authenticated production bindings on top of exact r8. */
.account-nav a[aria-current="page"]{background:#111722;color:#dce4f6}
.field-label{display:block;margin-bottom:7px;color:#71819d;font-size:11px}
.app-help{cursor:pointer}
[data-client-card]{position:relative}
[data-client-card] input[type="radio"]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
[data-client-card]:has(input[type="radio"]:focus-visible){outline:2px solid #8da8e555;outline-offset:2px}

/* Cabinet-only production extensions absent from the approved r8 prototype. */
.svg-library{position:absolute;width:0;height:0;overflow:hidden}
.skip-link{position:fixed;top:-100px;left:16px;background:#e7ebf4;color:#08090d;padding:12px;z-index:99}
.skip-link:focus{top:16px}
.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.account-title{margin:0}
.account-subtitle{max-width:620px}
.overview-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.r8-profile-kv{margin:0}
.r8-full-button{width:100%;margin-top:14px}
.profile-footnote{margin-top:10px;color:#71819d;font-size:11px;line-height:1.55}
.referral-progress{display:block;width:100%;height:6px;margin-top:12px;border:0;border-radius:99px;overflow:hidden;background:#171d2a}
.referral-progress::-webkit-progress-bar{background:#171d2a;border-radius:99px}
.referral-progress::-webkit-progress-value{background:#9faeff;border-radius:99px}
.referral-progress::-moz-progress-bar{background:#9faeff;border-radius:99px}
.renewal-panel{margin-top:20px}
.renewal-panel h2{font-size:20px}
.renewal-panel p{margin-top:8px;color:#7f8ca4;font-size:12px;line-height:1.6}
.renewal-panel .button{margin-top:14px}

/* Support production bindings on top of exact r8. */
.support-shell{width:min(900px,calc(100% - 36px))}
.r8-support-layout{width:min(900px,100%)}
.support-inline-error{margin:14px 18px 0;color:#e7a8b0;font-size:12px;line-height:1.5}
.support-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.support-context-details{margin-top:8px;border:0;padding:0}
.support-context-details summary{cursor:pointer;color:#71819d;font-size:10px}
.support-context-grid{display:grid;gap:10px;margin-top:10px}
.reply-field{display:block;min-width:0}
.reply-field .input{width:100%}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:650px){
  .support-shell{width:calc(100% - 36px)}
}

/* Public legal and pricing pages. */
.legal-page{min-height:100dvh;background:#08090d}
.legal-page .site-header{border-bottom:1px solid var(--line)}
.legal-page .container{width:min(1160px,calc(100% - 48px));margin-inline:auto}
.legal-page .header-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.legal-page .cabinet-link{color:#9aa8c0;font-size:13px}
.legal-shell{width:min(880px,calc(100% - 48px));margin:0 auto;padding:68px 0 88px}
.legal-hero{padding-bottom:30px;border-bottom:1px solid var(--line)}
.legal-hero h1{font-size:clamp(40px,6vw,64px);line-height:1.08;letter-spacing:-.055em;margin-top:10px}
.legal-hero>p:last-child{max-width:720px;margin-top:16px;color:#8d9ab3;line-height:1.75}
.legal-card{padding:28px 0;border-bottom:1px solid var(--line)}
.legal-card h2{font-size:22px;letter-spacing:-.03em;margin-bottom:12px}
.legal-card p,.legal-card li{color:#9aa8c0;font-size:14px;line-height:1.8}
.legal-card p+p{margin-top:12px}
.legal-card ul{display:grid;gap:8px;padding-left:19px;list-style:disc}
.legal-card a,.legal-contact a{color:#becdff}
.legal-muted{margin-top:15px}
.legal-contact{display:grid;gap:5px;margin-top:30px;padding:20px;border:1px solid var(--line);border-radius:14px;background:#ffffff02;color:#8292ad;font-size:13px}
.legal-contact strong{color:#d5dded;font-weight:500}
.pricing-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:30px}
.public-pricing-grid .price-card{padding:26px;border:1px solid var(--line);border-radius:18px;background:#10141e}
.public-pricing-grid .price-card-featured{background:radial-gradient(ellipse at 100% 0,#718de020,transparent 60%),#121826;border-color:#9eb7f02b}
.public-pricing-grid .price-label{color:#8ea0bf;font-size:13px}
.public-pricing-grid .price-value{font-size:54px;letter-spacing:-.06em;line-height:1.15;margin:15px 0 10px}
.public-pricing-grid .price-value span{font-size:27px;color:#aab8d3}
.public-pricing-grid .price-card>p:last-child{color:#8d9ab3;font-size:14px;line-height:1.65}
.legal-notice{margin-top:14px;padding:18px 20px;border:1px solid #9db7f126;border-radius:14px;background:#9db7f108}
.legal-notice strong{font-size:14px;font-weight:500}
.legal-notice p{margin-top:6px;color:#8d9ab3;font-size:13px;line-height:1.7}
.legal-links{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap}
.legal-links a{color:#74839e}
.legal-links a:hover{color:#c7d4ef}
.site-footer{border-top:1px solid var(--line)}
.site-footer .container{width:min(1160px,calc(100% - 48px));margin-inline:auto}
.footer-main,.footer-meta{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0;color:#71819d;font-size:12px}
.footer-meta{border-top:1px solid var(--line)}
.footer-meta>.legal-links{flex:1}
.text-link{display:inline-flex;align-items:center;min-height:36px;color:#becdff;font-size:13px}
@media(max-width:650px){
  .legal-page .container{width:calc(100% - 40px)}
  .legal-shell{width:calc(100% - 40px);padding:42px 0 70px}
  .legal-hero h1{font-size:36px;overflow-wrap:anywhere}
  .pricing-grid{grid-template-columns:1fr}
  .price-value{font-size:50px}
  .footer-main,.footer-meta{align-items:flex-start;flex-direction:column}
  .footer-meta>.legal-links{justify-content:flex-start}
}

/* Service auth and protocol bridge screens. */
.service-form{display:grid;gap:14px;margin-top:20px}
.service-form .button{width:100%}
.service-form .field{display:grid;gap:7px}
.service-form .input{width:100%;min-height:48px;padding:11px 12px;border:1px solid #647da444;border-radius:9px;background:#0b101a;color:#d8e1f3;font:inherit;outline:none}
.service-form .input:focus{border-color:#8caff065;box-shadow:0 0 0 2px #8caff018}
.service-inline-form{margin-top:12px}
.service-status-card{max-width:470px}
.otp-input{font-variant-numeric:tabular-nums;letter-spacing:.18em}

/* Payment page bindings on exact r8. */
.panel-back{display:inline-flex;align-items:center;gap:8px;min-height:36px;margin-bottom:17px;color:#91a3c3;font-size:12px}
.panel-back .icon{width:15px;height:15px;transform:rotate(180deg)}
.account-pricing-grid{margin-top:28px}
.account-pricing-grid .button{width:100%;margin-top:18px}
.quiet-panel{padding:22px;border:1px solid var(--line);border-radius:13px;background:#ffffff02}
.quiet-panel h2{font-size:18px;letter-spacing:-.02em}
.quiet-panel p{margin-top:9px;color:#8298b8;font-size:14px;line-height:1.75}
.quiet-panel .text-link{margin-top:14px}
.button:disabled{cursor:not-allowed;pointer-events:none}

/* Owner-requested document navigation and centered login, 2026-10-01. */
.document-links{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}
.document-links h2{margin:0 0 10px;font-size:13px;line-height:1.5;letter-spacing:0;color:#c7d1e2;font-weight:600}
.document-links .legal-links{justify-content:flex-start;gap:8px 20px;font-size:13px;line-height:1.65}
.document-links .legal-links a{color:#9aa8c0;text-decoration:underline;text-decoration-color:#8498cd66;text-underline-offset:3px;overflow-wrap:anywhere}
.document-links .legal-links a:hover{color:#dfe5ff}
:is(.r8-login-page,.r8-register-page) header .shell{width:min(1160px,calc(100% - 40px))}
:is(.r8-login-page,.r8-register-page) .public-page>.shell{width:min(520px,calc(100% - 72px))}
:is(.r8-login-page,.r8-register-page) .panel{width:100%;margin-inline:auto}
@media(max-width:650px){
  :is(.r8-login-page,.r8-register-page) header .shell{width:calc(100% - 36px)}
  .document-links .legal-links a:nth-child(n+3){flex-basis:100%}
}

/* Shared entry card: explicit owner correction, 2026-10-02. */
.r8-entry-page .public-page { min-height: calc(100svh - 88px); display: flex; align-items: center; padding: 32px 0; }
.r8-entry-page .public-page > .shell { width: 100%; }
.r8-entry-page .entry-card { width: min(100%, 480px); margin: 0 auto; }
.entry-card h1 { margin-bottom: 20px; }
.entry-main { width: 100%; justify-content: center; }
.entry-alternative { display: block; margin: 18px auto 0; }
.entry-temporary { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; margin-top: 22px; }
.entry-timer { font-variant-numeric: tabular-nums; text-align: center; }
.entry-client { margin: 16px 0; }
.entry-client summary { cursor: pointer; }
.entry-client form { display: grid; gap: 12px; margin-top: 16px; }
.r8-entry-actions > form { width: 100%; margin: 0; }
.r8-entry-actions > form > .button { width: 100%; }
@media (max-width: 520px) { .r8-entry-page .public-page { align-items: flex-start; padding-top: 24px; } }

/* Owner-approved two-screen entry: both choices visible immediately. */
.r8-entry-page .entry-main { width:100%; margin-top:12px; }
.r8-entry-page h1 { font-size:clamp(24px,4vw,32px); line-height:1.2; }
.r8-entry-page .entry-temporary { margin-top:20px; }
.r8-entry-landing .r8-entry-actions { grid-template-columns:1fr; }

.r8-entry-page .public-page > .shell { width:min(480px,calc(100% - 36px)); margin-inline:auto; }
.account-page .trial-activation { display:block; }
@media(max-width:520px) { .account-page .trial-activation .button { width:100%; } }

/* The approved legal footer also belongs on the confirmation screen. */
.r8-entry-page { min-height:100svh; display:flex; flex-direction:column; }
.r8-entry-page main { flex:1; display:flex; }
.r8-entry-page .public-page { width:100%; min-height:0; }
.r8-entry-page .compact-legal-footer { padding-inline:18px; box-sizing:border-box; }
