/* Kit VPN application shell. Shared studio/marketing rules remain in app.css. */
.app-shell {
  --bg:#08121d; --surface:#101e2b; --line:#293c4c; --muted:#a1b3c2;
  --text:#edf4f7; --mint:#79e4c8; --accent:#79e4c8; --app-radius:16px;
  background:var(--bg); color:var(--text); font:14px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  min-height:100dvh; font-variant-numeric:tabular-nums;
}
.app-shell :focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.icon-definitions {position:absolute;width:0;height:0;overflow:hidden}
.app-shell svg:not(.whale) {width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.app-sidebar {width:232px;position:fixed;inset:0 auto 0 0;padding:30px 18px;display:flex;flex-direction:column;border-right:1px solid var(--line);background:#0b1722;z-index:10}
.app-sidebar .brand {min-height:44px;padding:0 13px;margin-bottom:50px;font-size:32px;letter-spacing:-1.4px}
.app-shell .brand-sub {font-size:11px;letter-spacing:2px;color:var(--muted)}
.app-shell .brand-icon {background:var(--mint);color:#103a3b}
.sidebar-caption {font-size:10px;letter-spacing:1.3px;color:var(--muted);margin:0 14px 16px}
.app-navigation {display:flex;flex-direction:column;gap:6px}
.app-navigation a {min-height:48px;display:flex;align-items:center;gap:13px;padding:12px 14px;border:1px solid transparent;border-radius:9px;color:var(--muted);font-size:14px;transition:background .15s,color .15s}
.app-navigation a:hover {background:#172735;color:var(--text)}
.app-navigation a[aria-current=page] {color:var(--accent);background:#163336;border-color:#28504e}
.sidebar-bottom {margin-top:auto;padding:23px 13px 0;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}
.sidebar-bottom .status-dot {background:#8ba2b6;width:5px;height:5px;box-shadow:none}
.sidebar-bottom>a {display:block;margin-top:10px;min-height:44px;padding-top:10px;color:var(--text);font-size:13px}
.app-workspace {margin-left:232px;min-height:100dvh;max-height:100dvh;display:flex;flex-direction:column;background:var(--bg)}
.app-topbar {display:flex;justify-content:space-between;align-items:center;padding:19px 38px;border-bottom:1px solid var(--line);gap:20px;min-height:92px;background:#0b1722}
.topbar-context {font-size:10px;letter-spacing:1.5px;color:var(--muted)}
.app-topbar h1 {font-size:22px;letter-spacing:-.5px;line-height:1.3;font-weight:550;margin:2px 0 0}
.topbar-actions {display:flex;gap:16px;align-items:center;min-width:0}
.topbar-actions .badge {font-size:10px;letter-spacing:.6px;border-radius:6px;color:#edc18b;border-color:#655039;background:#2b251f}
.profile-control {display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;padding:10px 13px;min-height:44px;font-size:13px;max-width:210px}
.profile-control:hover {background:#172735}
.profile-control span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-shell main {max-width:1320px;width:100%;padding:34px 38px;margin:0 auto;overflow-y:auto;overscroll-behavior:contain;flex:1;scroll-behavior:smooth}
.app-screen {padding-bottom:20px}
.screen-intro {margin-bottom:27px}
.screen-intro .eyebrow {font-size:10px;letter-spacing:1.4px;margin-bottom:10px;color:var(--mint)}
.screen-intro h2 {font-size:32px;letter-spacing:-1px;font-weight:550;line-height:1.25}
.screen-intro>p:last-child {font-size:14px;line-height:1.7;color:var(--muted);margin:12px 0 0;max-width:690px}
.overview-grid {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:20px}
.subscription-card {border:1px solid #356b68;background:linear-gradient(115deg,#164842,#15333f 80%);border-radius:var(--app-radius);padding:30px;position:relative;overflow:hidden;min-height:305px}
.card-label {display:flex;align-items:center;font-size:11px;letter-spacing:1.3px;color:#c6e8df;position:relative;z-index:1}
.card-label .status-dot {width:5px;height:5px;background:#b9d9d3;box-shadow:none}
.card-brand {margin-left:auto;color:#b1cecb;font-size:10px}
.subscription-card h3 {font-size:31px;font-weight:550;letter-spacing:-.9px;margin:32px 0 10px;max-width:310px;position:relative;z-index:1;line-height:1.25}
.subscription-card>p {font-size:14px;color:#c4dad9;max-width:290px;position:relative;z-index:1;line-height:1.7}
.subscription-card .button {position:relative;z-index:1;margin-top:12px}
.compact-whale {width:240px;height:230px;position:absolute;right:-25px;top:48px;opacity:.4;pointer-events:none}
.compact-whale .whale {animation:none;transform:rotate(-14deg);width:100%;left:0}
.card-bottom-line {border-top:1px solid #80c8bd40;margin-top:26px;padding-top:16px;display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#bcd8d7;position:relative;z-index:1}
.connection-card.panel {padding:28px;display:flex;flex-direction:column;align-items:start}
.round-icon {width:46px;height:46px;background:#183440;border:1px solid #2c4b56;border-radius:12px;display:grid;place-items:center;color:#8bbbf1;margin-bottom:24px}
.connection-card h3 {font-size:22px;font-weight:550}
.connection-card>p {font-size:14px;color:var(--muted);margin:0 0 18px;line-height:1.7}
.connection-card .text-link {font-size:14px;color:var(--accent);display:flex;gap:18px;align-items:center;margin-top:auto;min-height:44px}
.connection-card .small {font-size:12px;color:var(--muted);margin-top:15px;margin-bottom:0}
.summary-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}
.summary-card {padding:23px;border:1px solid var(--line);border-radius:var(--app-radius);background:var(--surface);display:flex;flex-direction:column;gap:20px;transition:background .15s,border-color .15s}
.summary-card:hover {background:#162937;border-color:#507980;color:var(--text)}
.summary-label {font-size:10px;color:var(--muted);letter-spacing:1.3px}
.summary-card>strong {font-size:29px;line-height:1.2;font-weight:550;letter-spacing:-.7px;white-space:nowrap}
.summary-card small {font-size:12px;color:var(--muted);font-weight:400;letter-spacing:0}
.summary-card .summary-text {font-size:21px;white-space:normal;line-height:1.45}
.summary-card>span:last-child {font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:10px;line-height:1.5}
.summary-card b {color:var(--accent);font-size:17px;font-weight:400}
.app-callout {border:1px solid var(--line);background:#101d29;border-radius:10px;display:flex;gap:14px;align-items:center;padding:16px 19px;margin-top:24px}
.app-callout p {font-size:12px;color:var(--muted);line-height:1.7;margin:0}
.app-callout p strong {color:var(--text);font-weight:550}
.app-callout a {margin-left:auto;white-space:nowrap;font-size:12px;color:var(--accent);min-height:44px;display:flex;align-items:center}
.callout-mark {border:1px solid #667d8f;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;font-size:12px;color:#bad0dc;flex-shrink:0}
.app-footer {max-width:none;border-top:1px solid var(--line);padding:14px 38px;margin:0;display:flex;justify-content:space-between;color:var(--muted);font-size:11px}
.app-shell .panel {border:1px solid var(--line);border-radius:var(--app-radius);background:var(--surface);padding:26px}
.app-shell .button {border-radius:9px;min-height:44px;font-size:13px;gap:15px;transition:background .15s,border-color .15s;line-height:1.4}
.app-shell .button:hover {transform:none}
.app-shell .button:active {transform:translateY(1px)}
.app-shell .primary {background:var(--mint);color:#092e2d}
.app-shell .primary:hover {background:#a2efdc}
.app-shell .secondary {border-color:#3a5061;background:#162634}
.app-shell .secondary:hover {background:#223b4c}
.app-shell input,.app-shell select {min-height:46px;background:#0b1722;border:1px solid #4b6072;border-radius:8px;color:var(--text);font:inherit;padding:11px 13px}
.app-shell label {font-size:13px;color:var(--text)}
.app-shell #notice {position:sticky;top:0;z-index:4;box-shadow:0 8px 22px #0003;margin-bottom:20px;font-size:13px;background:#173832;border:1px solid #417567;color:#d4f4e9;border-radius:10px}
.app-shell #notice.error {background:#3c2329;border-color:#a55e6e;color:#ffd5de}
.app-shell .section {border:0;padding:0}
.app-shell #account {padding:0}
.app-shell .section-heading {margin-bottom:26px}
.app-shell .section-heading h2 {font-size:30px}
.app-shell .section-heading .eyebrow {font-size:10px}
.app-shell .section-heading>p {font-size:14px;line-height:1.7}
.app-shell .auth-panel {grid-template-columns:.9fr 1fr;gap:38px;padding:34px}
.app-shell .auth-panel form {max-width:430px}
.app-shell .auth-panel h3 {font-size:26px;font-weight:550;letter-spacing:-.5px;line-height:1.3}
.app-shell .auth-panel p {font-size:14px;line-height:1.7;color:var(--muted)}
.app-shell .user-panel {gap:24px}
.app-shell .user-panel>div {min-width:0;flex:1}
.app-shell #user-name {overflow-wrap:anywhere}
.app-shell #vpn-devices-panel {border:1px solid var(--line);padding:26px;margin:0;background:var(--surface);border-radius:var(--app-radius)}
.app-shell #vpn-devices-panel>h4 {display:none}
.app-shell #vpn-devices-panel>p {font-size:13px;color:var(--muted)}
.app-shell #vpn-devices-panel>p>a {color:var(--mint);display:inline-flex;align-items:center;min-height:44px}
.app-shell #vpn-device-list>.order {border-color:var(--line);gap:14px;min-height:90px}
.app-shell #vpn-device-list .button {font-size:12px;padding:11px 14px}
.app-shell .orders-panel {margin-top:25px}
.app-shell .orders-heading h3 {font-size:21px}
.app-shell .text-button {min-height:44px;min-width:44px;padding:10px;color:var(--mint)}
.app-shell .order-info p {font-size:13px}
.app-shell .plans {gap:18px}
.app-shell .plan {border-radius:var(--app-radius);padding:25px;background:var(--surface);border-color:var(--line)}
.app-shell .plan:last-child {background:#14312f;border-color:#39766a}
.app-shell .plan h3 {font-size:22px}
.app-shell .plan .price {font-size:36px}
.app-shell .plan p {font-size:13px;line-height:1.6}
.app-shell .plan:last-child:before {font-size:10px;letter-spacing:1px;color:var(--mint)}
.signed-out-state {max-width:600px;text-align:center;margin:20px auto;padding:40px!important}
.signed-out-state>svg {width:40px!important;height:40px!important;color:var(--accent);margin-bottom:22px}
.signed-out-state p {color:var(--muted);font-size:14px;margin-bottom:24px}
.help-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:36px}
.help-grid .panel {display:flex;flex-direction:column;align-items:start}
.help-grid .panel h3 {font-size:20px}
.help-grid p {font-size:14px;line-height:1.7;color:var(--muted);margin-bottom:22px}
.help-grid .button {margin-top:auto}
.step-number {font:12px ui-monospace,monospace;color:var(--accent);border:1px solid #3c6268;padding:9px 12px;border-radius:9px;margin-bottom:23px}
.app-shell .faq-section {gap:35px}
.app-shell .faq-section h2 {font-size:28px}
.app-shell .faq-list summary {font-size:14px;min-height:44px;align-items:center;line-height:1.5}
.app-shell .faq-list p {font-size:14px;line-height:1.7}
.app-shell .faq-section>div>.muted {font-size:14px;line-height:1.7}
.app-shell .app-screen:focus,.app-topbar h1:focus {outline:0}
.mobile-mark {display:none}
.support-identity {margin:24px 0 0;padding-top:20px;border-top:1px solid var(--line)}
.support-identity code {display:block;overflow-wrap:anywhere;font-size:12px;color:var(--text);margin:7px 0}
@media(min-width:1500px) {.app-shell main{padding-top:42px}.compact-whale{right:-10px;width:290px;height:240px}}
@media(max-width:1150px) {
  .app-sidebar{width:208px;padding:28px 15px}.app-workspace{margin-left:208px}.app-shell main{padding:28px}.app-topbar{padding:20px 28px}
  .overview-grid{grid-template-columns:1.3fr 1fr}.subscription-card{padding:25px}.subscription-card h3{font-size:28px}.compact-whale{width:180px;right:-35px;opacity:.25}
  .summary-card{padding:20px 17px}.summary-card>strong{font-size:25px}.summary-card .summary-text{font-size:18px}
  .help-grid{grid-template-columns:1fr}.help-grid .panel{display:grid;grid-template-columns:42px 1fr auto;column-gap:20px;align-items:center}
  .step-number{grid-row:1/3;margin:0;padding:9px}.help-grid h3{margin:0}.help-grid p{grid-column:2;margin:6px 0 0}.help-grid .button{grid-column:3;grid-row:1/3}
  .app-shell .plans{grid-template-columns:1fr}.app-shell .plan{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;align-items:center}
  .app-shell .plan:last-child:before{grid-column:1/3;margin-bottom:15px}.app-shell .plan .price{margin:0 0 15px}.app-shell .plan h3{margin:0 0 15px}.app-shell .plan p{margin:0 0 10px}
  .app-shell .plan .button{grid-column:2;grid-row:2/4}.app-shell .plan:last-child .button{grid-row:3/5}
}
@media(max-width:760px) {
  .app-sidebar{position:fixed;inset:auto 0 0;width:100%;padding:0;background:#0d1d2af5;border:0;border-top:1px solid #3a5061;backdrop-filter:blur(16px)}
  .app-sidebar>.brand,.sidebar-caption,.sidebar-bottom{display:none}.app-navigation{flex-direction:row;justify-content:space-around;gap:0;padding:6px 8px calc(6px + env(safe-area-inset-bottom))}
  .app-navigation a{flex:1;flex-direction:column;gap:4px;font-size:11px;padding:7px 4px;min-height:58px;border:0;border-radius:8px;max-width:100px}
  .app-navigation a[data-nav=account]{display:none}.app-navigation a[aria-current=page]{background:#1b383b}.app-workspace{margin:0;min-height:100dvh;max-height:100dvh;padding-bottom:calc(77px + env(safe-area-inset-bottom))}
  .app-topbar{padding:15px 20px;gap:12px;min-height:79px}.topbar-context{font-size:9px}.app-topbar h1{font-size:21px}.topbar-actions{gap:10px}.topbar-actions>.badge{display:none}
  .profile-control{padding:10px;max-width:145px;gap:8px}.profile-control span{font-size:12px}.mobile-mark{display:grid;place-items:center;float:left;margin:6px 12px 0 0;width:32px;height:32px;border-radius:10px 13px 9px 13px;background:var(--accent);color:#073a44;font-size:31px;line-height:1;transform:rotate(-12deg)}
  .app-shell main{padding:26px 18px;overscroll-behavior:auto}.screen-intro h2{font-size:28px}.screen-intro>p:last-child{font-size:13px}.screen-intro .eyebrow{font-size:9px;line-height:1.8}
  .overview-grid{grid-template-columns:1fr;gap:16px}.subscription-card{padding:24px;min-height:300px}.subscription-card h3{font-size:29px;max-width:260px}.compact-whale{width:210px;height:210px;right:-45px;opacity:.3}.card-brand{font-size:9px}
  .connection-card.panel{padding:23px;display:grid;grid-template-columns:44px 1fr;column-gap:16px}.round-icon{grid-row:1/3;margin:0}.connection-card h3{font-size:20px;margin-bottom:7px}
  .connection-card>p{font-size:13px;grid-column:2;margin:0}.connection-card .text-link{grid-column:2;margin-top:10px}.connection-card .small{grid-column:1/3;margin-top:15px;font-size:12px}
  .summary-grid{grid-template-columns:1fr 1fr;margin-top:16px;gap:13px}.summary-card{gap:16px;padding:18px}.summary-card>strong{font-size:24px;white-space:normal}.summary-card small{font-size:11px}
  .summary-card:nth-child(3){grid-column:1/3;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.summary-card:nth-child(3)>.summary-label{grid-column:1/3}.summary-card .summary-text{font-size:19px}
  .summary-card:nth-child(3)>span:last-child{font-size:0}.summary-card:nth-child(3)>span:last-child b{font-size:20px}.summary-label{font-size:9px;letter-spacing:1px}.summary-card>span:last-child{font-size:11px}
  .app-callout{padding:16px;gap:12px;flex-wrap:wrap}.app-callout a{margin-left:0}.app-footer{display:none}.app-shell .panel{padding:23px}.app-shell .auth-panel{display:block}.app-shell .auth-panel>div{margin-bottom:25px}
  .app-shell .section-heading{display:block}.app-shell .section-heading>p{margin-top:12px}.app-shell .section-heading h2{font-size:28px}.app-shell .user-panel{display:flex;flex-direction:column}
  .app-shell #vpn-devices-panel{padding:20px}.app-shell #vpn-device-list .order>strong{font-size:15px;width:100%;overflow-wrap:anywhere}.app-shell #vpn-device-list .order{padding:20px 0}
  .app-shell #vpn-add-device-form{display:block}.app-shell #vpn-add-device-form .button{width:100%;margin-top:12px}.app-shell .plan{display:block;padding:25px}.app-shell .plan h3{margin-bottom:20px}.app-shell .plan .price{font-size:39px;margin-bottom:20px}.app-shell .plan .button{margin-top:16px}
  .app-shell .orders-heading h3{font-size:19px}.app-shell .order-info{min-width:130px}.help-grid .panel{display:flex;gap:0;align-items:start}.step-number{margin-bottom:20px}.help-grid p{margin:10px 0 20px}.help-grid .button{margin-top:0}
  .app-shell .faq-section{display:block}.app-shell .faq-list{margin-top:25px}.app-shell input{font-size:16px}.app-shell .form-actions .button{font-size:13px}
}
@media(prefers-reduced-motion:reduce) {.app-shell *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
