/* routine-lab.app: what every page shares. From the website design canvas (HP-202):
   the .ws frame (header, footer, buttons), the .lg reading layout of the legal pages,
   support (.sp-) and contact (.ct-). Colours come only from tokens.css. */

html{background:var(--bg);-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* Moving between pages: a short crossfade where the browser has cross-document View
   Transitions, none under Reduce Motion. Elsewhere the page simply changes. */
@media (prefers-reduced-motion: no-preference){
  @view-transition{navigation:auto}
  ::view-transition-old(root),::view-transition-new(root){animation-duration:.25s}
}
body{margin:0}
.ws{container-type:inline-size;min-height:100vh;font-family:var(--font);-webkit-font-smoothing:antialiased;background:var(--bg);color:var(--t1);font-size:17px;line-height:1.5}
.ws *{box-sizing:border-box}
.ws h1,.ws h2,.ws h3,.ws p,.ws ul,.ws ol,.ws figure{margin:0;padding:0}
.ws ul{list-style:none}
.ws a{color:var(--acct)}
.ws a:hover{color:var(--acc)}
.ws button{font:inherit;color:inherit;border:0;background:none;padding:0;margin:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ws a:focus-visible,.ws button:focus-visible{outline:3px solid var(--acc);outline-offset:3px}
.ws [hidden]{display:none!important}
/* In-page targets land below the floating header; a target that gets focus after a jump
   draws no ring of its own (site.js gives it tabindex="-1"). */
.ws [id]{scroll-margin-top:104px}
.ws [tabindex="-1"]:focus{outline:none}
.ws .t2{color:var(--t2)}
.ws .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ws .ws-skip{position:absolute;left:16px;top:-80px;z-index:40;height:44px;padding:0 18px;border-radius:999px;background:var(--acc);color:var(--onacc);font-weight:600;text-decoration:none;display:inline-flex;align-items:center}
.ws .ws-skip:focus{top:12px;color:var(--onacc)}
.ws .ws-wrap{width:100%;max-width:1200px;margin:0 auto;padding:0 40px}
.ws .ws-cta{height:56px;padding:0 28px;border-radius:999px;background:var(--acc);color:var(--onacc);box-shadow:var(--ctashadow);font-size:17px;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
.ws .ws-cta:hover{color:var(--onacc)}
.ws .ws-cta.ghost{background:var(--ghost);color:var(--t1);box-shadow:inset 0 0 0 1px var(--ghostb)}
.ws .ws-cta.ghost:hover{color:var(--t1)}
.ws .ws-glass{background:var(--glass);-webkit-backdrop-filter:var(--glassfx);backdrop-filter:var(--glassfx);box-shadow:var(--gshadow)}
.ws .ws-card{background:var(--el);border-radius:24px;box-shadow:var(--shadow)}
.ws .ws-eyebrow{font-size:13px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--t2)}
.ws .ws-mark{width:36px;height:36px;border-radius:8px;box-shadow:0 0 0 1px var(--div);overflow:hidden;display:block;flex:none}
/* the app icon itself, from docs/brand/app-icon */
.ws .ws-mark picture,.ws .ws-mark img{display:block;width:36px;height:36px}
.ws .ws-small{font-size:13px;line-height:1.55;color:var(--t2)}

/* the top bar. Legal pages: name left, links and the app on the right. */
.ws .ws-head{position:sticky;top:0;z-index:20;padding:16px 0}
.ws .ws-head .ws-wrap{position:relative}
.ws .ws-bar{height:64px;border-radius:999px;padding:0 10px 0 12px;display:flex;align-items:center;gap:8px}
.ws .ws-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--t1);font-size:19px;font-weight:700;letter-spacing:-.01em;padding-right:8px;min-height:44px}
.ws .ws-brand:hover{color:var(--t1)}
.ws .ws-nav{display:flex;gap:2px;margin-left:auto}
.ws .ws-nav a{height:44px;padding:0 16px;border-radius:999px;display:flex;align-items:center;font-size:15px;font-weight:500;color:var(--t1);text-decoration:none}
.ws .ws-nav a:hover{background:var(--ghost)}
.ws .ws-bar .ws-cta{height:44px;padding:0 20px;font-size:15px}
.ws .ws-menu{display:none;width:44px;height:44px;border-radius:999px;align-items:center;justify-content:center}
.ws .ws-end{display:flex;align-items:center;gap:6px}

/* the landing's bar: name left, sections centred, the app on the right */
.ws .ws-bar.mid{display:grid;grid-template-columns:1fr auto 1fr}
.ws .ws-bar.mid .ws-brand{justify-self:start;padding-right:0}
.ws .ws-bar.mid .ws-nav{margin-left:0}
.ws .ws-bar.mid .ws-nav a{padding:0 18px;color:var(--t2);transition:color .2s,background .2s}
.ws .ws-bar.mid .ws-nav a:hover{color:var(--t1)}
.ws .ws-bar.mid .ws-end{justify-self:end}

/* the phone menu: a solid card under the glass bar */
.ws .ws-sheet{display:none;position:absolute;left:16px;right:16px;top:calc(100% + 8px);padding:8px;border-radius:24px;background:var(--el);box-shadow:var(--pop)}
.ws .ws-sheet a{min-height:52px;padding:0 16px;border-radius:16px;display:flex;align-items:center;font-size:17px;font-weight:500;color:var(--t1);text-decoration:none}
.ws .ws-sheet a:hover{background:var(--ghost)}
.ws .ws-sheet a:focus-visible{outline-offset:-3px}

/* Chinese, Japanese and Korean: headings break between phrases, not between any two
   characters ("今日か / ら。"). Korean keeps words whole everywhere, as Korean text does.
   Chinese and Japanese headings break at punctuation and at zero-width spaces (U+200B) in
   their strings; Chromium also finds Japanese phrases itself (auto-phrase). overflow-wrap
   still breaks a phrase that can't fit, so nothing overflows at 320 px. */
:lang(ko){word-break:keep-all}
:lang(ja) :is(h1,h2,.dk-t),:lang(zh) :is(h1,h2,.dk-t){word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance}
:lang(ja) :is(h1,h2,.dk-t){word-break:auto-phrase}

/* the footer */
.ws .ws-foot{border-top:1px solid var(--div);padding:48px 0 40px}
.ws .ws-foot-in{display:flex;flex-direction:column;gap:28px}
.ws .ws-foot-row{position:relative;display:flex;flex-wrap:wrap;gap:24px 48px;align-items:center;justify-content:space-between}
.ws .ws-foot nav{display:flex;flex-wrap:wrap;gap:0 28px}
.ws .ws-foot nav a{color:var(--t1);text-decoration:none;font-size:15px;font-weight:500;min-height:44px;display:inline-flex;align-items:center}
.ws .ws-foot nav a:hover{color:var(--acct)}
.ws .ws-foot nav a[aria-current]{color:var(--acct)}

/* the language picker, last in the footer row: a pill that opens a card of the 12 languages
   above the row, at its right edge. Below 820 px the picker takes a line of its own and the
   list opens in normal flow under the pill, so on a short page no language ends up above
   the top of the document. A <details>, so it works without JavaScript; site.js closes it on Escape or a
   tap outside. */
.ws .ws-lang{height:44px;padding:0 16px;border-radius:999px;background:var(--ghost);box-shadow:inset 0 0 0 1px var(--ghostb);display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:500;color:var(--t1);cursor:pointer;list-style:none;user-select:none}
.ws .ws-lang::-webkit-details-marker{display:none}
.ws .ws-lang svg:last-child{transition:transform .2s}
.ws .ws-lang-pick[open] .ws-lang svg:last-child{transform:rotate(180deg)}
.ws .ws-lang-list{position:absolute;right:0;bottom:calc(100% + 8px);z-index:20;margin:0;padding:8px;list-style:none;width:max-content;min-width:220px;border-radius:24px;background:var(--el);box-shadow:var(--pop)}
.ws .ws-lang-list a{min-height:44px;padding:0 16px;border-radius:16px;display:flex;align-items:center;font-size:15px;font-weight:500;color:var(--t1);text-decoration:none}
.ws .ws-lang-list a:hover{background:var(--ghost)}
.ws .ws-lang-list a[aria-current]{color:var(--acct)}
.ws .ws-lang-list a:focus-visible{outline-offset:-3px}

@container (max-width: 820px){
  .ws .ws-wrap{padding:0 16px}
  .ws .ws-head{padding:10px 0}
  .ws .ws-bar{height:56px;padding:0 6px 0 8px}
  .ws .ws-bar.mid{grid-template-columns:1fr auto}
  .ws .ws-nav{display:none}
  .ws .ws-end{margin-left:auto}
  .ws .ws-bar .ws-cta{padding:0 16px}
  .ws .ws-menu{display:flex}
  .ws .ws-sheet:not([hidden]){display:block}
  .ws .ws-foot nav{gap:0 20px}
  .ws .ws-lang-pick{flex-basis:100%}
  .ws .ws-lang-list{position:static;margin-top:8px}
}

/* the reading layout every legal page shares */
.lg .lg-top{padding:56px 0 40px;display:flex;flex-direction:column;gap:16px}
.lg .lg-h1{font-size:56px;line-height:1.05;font-weight:700;letter-spacing:-.03em}
.lg .lg-lead{font-size:21px;line-height:1.5;color:var(--t2);max-width:46ch}
.lg .lg-lead.w48{max-width:48ch}
.lg .lg-meta{display:flex;flex-wrap:wrap;gap:8px}
.lg .lg-meta span{height:32px;padding:0 12px;border-radius:999px;background:var(--ghost);box-shadow:inset 0 0 0 1px var(--ghostb);font-size:13px;font-weight:500;color:var(--t2);display:inline-flex;align-items:center}
.lg .lg-body{display:flex;flex-wrap:wrap;gap:48px;align-items:flex-start;padding-bottom:120px}
.lg .lg-toc{flex:1 1 240px;max-width:280px;display:flex;flex-direction:column;gap:2px}
.lg .lg-toc a{min-height:40px;padding:8px 12px;border-radius:12px;font-size:15px;font-weight:500;color:var(--t2);text-decoration:none;display:flex;align-items:center;line-height:1.3}
.lg .lg-toc a:hover{background:var(--ghost);color:var(--t1)}
.lg .lg-art{flex:999 1 560px;min-width:0;max-width:720px;display:flex;flex-direction:column;gap:40px}
.lg .lg-art h2{font-size:24px;line-height:1.25;font-weight:700;letter-spacing:-.015em;scroll-margin-top:100px}
.lg .lg-art section{display:flex;flex-direction:column;gap:14px}
.lg .lg-art p,.lg .lg-art li{font-size:17px;line-height:1.6}
.lg .lg-art ul.lg-list{display:flex;flex-direction:column;gap:10px}
.lg .lg-art ul.lg-list li{padding-left:22px;position:relative}
.lg .lg-art ul.lg-list li::before{content:'';position:absolute;left:4px;top:.72em;width:7px;height:7px;border-radius:999px;background:var(--t3)}
.lg .lg-sum{padding:8px 24px}
.lg .lg-sum li{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--div)}
.lg .lg-sum li:last-child{border-bottom:0}
.lg .lg-sum svg{flex:none;color:var(--acc);margin-top:1px}
.lg .lg-sum strong{font-weight:600}
.lg .lg-fill{background:var(--accm);color:var(--acct);border-radius:6px;padding:0 5px;font-weight:600;white-space:nowrap}
.lg .lg-table{border-radius:20px;background:var(--el);box-shadow:var(--shadow);overflow-x:auto}
.lg .lg-table table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.45;min-width:520px}
.lg .lg-table th{text-align:left;font-size:13px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--t2);padding:14px 16px;border-bottom:1px solid var(--div)}
.lg .lg-table td{padding:14px 16px;border-bottom:1px solid var(--div);vertical-align:top}
.lg .lg-table td+td{color:var(--t2)}
.lg .lg-table tr:last-child td{border-bottom:0}
@container (max-width: 820px){
  .lg .lg-top{padding:24px 0 24px}
  .lg .lg-h1{font-size:38px}
  .lg .lg-toc{display:none}
  .lg .lg-body{gap:32px;padding-bottom:72px}
  .lg .lg-art{gap:32px}
  .lg .lg-art h2{font-size:22px}
  .lg .lg-sum{padding:4px 18px}
  .lg .lg-fill{white-space:normal;-webkit-box-decoration-break:clone;box-decoration-break:clone}
}

/* support */
.lg .sp-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding-bottom:72px}
.lg .sp-topic{min-height:88px;padding:16px 20px;display:flex;align-items:center;gap:16px;text-decoration:none}
.lg .sp-topic:hover{box-shadow:inset 0 0 0 2px var(--acc),var(--shadow)}
.lg .sp-ic{width:48px;height:48px;flex:none;border-radius:16px;color:var(--t1);display:flex;align-items:center;justify-content:center}
.lg .sp-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.lg .sp-tn{font-size:17px;font-weight:600;color:var(--t1)}
.lg .sp-td{font-size:13px;color:var(--t2)}
.lg .sp-ic.phone{background:color-mix(in srgb,#0993D2 24%,var(--el))}
.lg .sp-ic.sync{background:color-mix(in srgb,#4588F7 24%,var(--el))}
.lg .sp-ic.purchases{background:color-mix(in srgb,#BE7C05 24%,var(--el))}
.lg .sp-ic.data{background:color-mix(in srgb,#1D9E4D 24%,var(--el))}
.lg .sp-ic.widgets{background:color-mix(in srgb,#A46FF1 24%,var(--el))}
.lg .sp-ic.contact{background:color-mix(in srgb,#5F6670 24%,var(--el))}
@media (prefers-color-scheme: dark){
  .lg .sp-ic.phone{background:color-mix(in srgb,#34ACEE 24%,var(--el))}
  .lg .sp-ic.sync{background:color-mix(in srgb,#6AA2FF 24%,var(--el))}
  .lg .sp-ic.purchases{background:color-mix(in srgb,#DF9201 24%,var(--el))}
  .lg .sp-ic.data{background:color-mix(in srgb,#41B865 24%,var(--el))}
  .lg .sp-ic.widgets{background:color-mix(in srgb,#B88DFE 24%,var(--el))}
  .lg .sp-ic.contact{background:color-mix(in srgb,#A3ABB6 24%,var(--el))}
}
.lg .sp-faq{display:flex;flex-direction:column;gap:48px;max-width:820px}
.lg .sp-group{display:flex;flex-direction:column;gap:14px;scroll-margin-top:100px}
.lg .sp-group h2{scroll-margin-top:100px;font-size:24px;line-height:1.25;font-weight:700;letter-spacing:-.015em;padding:0 4px}
.lg .sp-list{padding:0 24px}
.lg .sp-q{border-bottom:1px solid var(--div)}
.lg .sp-q:last-child{border-bottom:0}
.lg .sp-q summary{min-height:64px;padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:17px;font-weight:600;cursor:pointer;list-style:none}
.lg .sp-q summary::-webkit-details-marker{display:none}
.lg .sp-q summary:focus-visible{outline:3px solid var(--acc);outline-offset:2px;border-radius:8px}
.lg .sp-q summary svg{flex:none;color:var(--t3);transition:transform .25s}
.lg .sp-q[open] summary svg{transform:rotate(180deg)}
.lg .sp-a{padding:0 0 20px;display:flex;flex-direction:column;gap:12px;color:var(--t2);max-width:64ch}
.lg .sp-a p{font-size:17px;line-height:1.6}
.lg .sp-still{margin:72px 0 120px;padding:36px 40px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;max-width:820px;scroll-margin-top:100px}
.lg .sp-still-tx{display:flex;flex-direction:column;gap:8px;flex:999 1 420px;min-width:0}
.lg .sp-still h2{font-size:28px;line-height:1.15;font-weight:700;letter-spacing:-.02em}
.lg .sp-still .ws-cta{flex:none}
@container (max-width: 820px){
  .lg .sp-topics{grid-template-columns:minmax(0,1fr);gap:10px;padding-bottom:48px}
  .lg .sp-topic{min-height:72px}
  .lg .sp-faq{gap:36px}
  .lg .sp-list{padding:0 18px}
  .lg .sp-still{margin:48px 0 72px;padding:24px 20px}
  .lg .sp-still .ws-cta{width:100%}
}

/* contact */
.lg .ct-body{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start;padding-bottom:120px}
.lg .ct-main{flex:999 1 560px;min-width:0;max-width:760px;padding:36px 40px}
.lg .ct-side{flex:1 1 280px;max-width:360px;display:flex;flex-direction:column;gap:12px}
.lg .ct-aside{padding:20px;display:flex;gap:14px;align-items:flex-start;text-decoration:none;color:var(--t1)}
.lg a.ct-aside:hover{color:var(--t1);box-shadow:inset 0 0 0 2px var(--acc),var(--shadow)}
.lg .ct-aside-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.lg .ct-aside-tx.gap6{gap:6px}
.lg .ct-aside-t{font-weight:600;color:var(--t1)}
.lg .ct-aside-d{font-size:15px;color:var(--t2)}
.lg .ct-ic{width:44px;height:44px;flex:none;border-radius:14px;background:var(--accm);color:var(--acct);display:flex;align-items:center;justify-content:center}
.lg .ct-form{display:flex;flex-direction:column;gap:24px}
.lg .ct-h2{font-size:24px;line-height:1.25;font-weight:700;letter-spacing:-.015em}
.lg .ct-field{display:flex;flex-direction:column;gap:8px}
.lg fieldset.ct-field{border:0;margin:0;padding:0;min-width:0}
.lg .ct-field label,.lg .ct-field legend{font-size:15px;font-weight:600;display:flex;align-items:center;gap:8px;padding:0}
.lg .ct-field legend{margin-bottom:8px}
.lg .ct-labelrow{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.lg .ct-req,.lg .ct-opt{font-size:12px;font-weight:600;height:20px;padding:0 7px;border-radius:999px;display:inline-flex;align-items:center}
.lg .ct-req{background:var(--accm);color:var(--acct)}
.lg .ct-opt{background:var(--ghost);color:var(--t2)}
.lg .ct-field input,.lg .ct-field textarea{font:inherit;font-size:17px;color:var(--t1);width:100%;min-height:52px;padding:13px 16px;border:0;border-radius:14px;background:var(--el2);box-shadow:inset 0 0 0 1px var(--ghostb);outline:none;transition:box-shadow .2s}
.lg .ct-field textarea{min-height:180px;resize:vertical;line-height:1.5}
.lg .ct-field input::placeholder,.lg .ct-field textarea::placeholder{color:var(--t2);opacity:.75}
.lg .ct-field input:focus,.lg .ct-field textarea:focus{box-shadow:inset 0 0 0 2px var(--acc)}
.lg .ct-field input.bad,.lg .ct-field textarea.bad{box-shadow:inset 0 0 0 2px var(--danger)}
.lg .ct-err{font-size:15px;font-weight:500;color:var(--danger);display:flex;gap:6px}
.lg .ct-hint{font-size:13px;color:var(--t2)}
.lg .ct-hint.up{margin-top:-12px}
.lg .ct-num{font-variant-numeric:tabular-nums}
.lg .ct-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.lg .ct-chips{display:flex;flex-wrap:wrap;gap:8px}
.lg .ct-chip{position:relative;height:44px;padding:0 18px;border-radius:999px;background:var(--ghost);box-shadow:inset 0 0 0 1px var(--ghostb);font-size:15px;font-weight:500!important;display:inline-flex;align-items:center;cursor:pointer;transition:background .2s,color .2s}
.lg .ct-chip:has(.ct-radio:checked){background:var(--accm);color:var(--acct);box-shadow:none}
.lg .ct-field label.ct-chip{display:inline-flex;padding:0 18px;font-size:15px;font-weight:500;gap:0}
.lg .ct-chip:has(.ct-radio:focus-visible){outline:3px solid var(--acc);outline-offset:2px}
.lg .ct-radio{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.lg .ct-hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.lg .ct-turnstile{width:300px;max-width:100%;min-height:65px}
.lg .ct-send{align-self:flex-start;min-width:200px}
.lg .ct-send[disabled]{opacity:.7;cursor:default}
.lg .ct-spin{width:18px;height:18px;border-radius:999px;border:2.5px solid currentColor;border-right-color:transparent;animation:ct-spin .8s linear infinite}
@keyframes ct-spin{to{transform:rotate(360deg)}}
.lg .ct-alert{display:flex;gap:12px;padding:16px 18px;border-radius:16px;font-size:15px;line-height:1.5}
.lg .ct-alert>svg{flex:none}
.lg .ct-alert strong{font-weight:600}
.lg .ct-alert-tx{display:flex;flex-direction:column;gap:4px}
.lg .ct-alert-tx.gap10{gap:10px}
.lg .ct-row{display:flex;flex-wrap:wrap;gap:8px}
.lg .ct-alert.bad{background:var(--dangerm);color:var(--t1)}
.lg .ct-alert.bad svg{color:var(--danger)}
.lg .ct-alert.bad a{color:var(--danger);font-weight:500}
.lg .ct-alert.warn{background:color-mix(in srgb,var(--warn) 14%,var(--el));color:var(--t1)}
.lg .ct-alert.warn>svg{color:var(--warn)}
.lg .ct-small{height:40px;padding:0 16px;border-radius:999px;background:var(--acc)!important;color:var(--onacc)!important;font-size:15px!important;font-weight:600!important}
.lg .ct-small.ghost{background:var(--ghost)!important;color:var(--t1)!important;box-shadow:inset 0 0 0 1px var(--ghostb)}
.lg .ct-sent{min-height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:18px}
.lg .ct-sent:focus{outline:none}
.lg .ct-sent-p{font-size:19px;color:var(--t2);max-width:36ch}
.lg .ct-sent-p strong{color:var(--t1);font-weight:600}
.lg .ct-done{width:104px;height:104px;border-radius:999px;background:var(--acc);color:var(--onacc);box-shadow:var(--ctashadow);display:flex;align-items:center;justify-content:center;animation:ct-pop .5s cubic-bezier(.3,1.4,.5,1) backwards}
@keyframes ct-pop{0%{opacity:0;transform:scale(.5)}100%{opacity:1;transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.lg *{animation-duration:.01s!important;animation-iteration-count:1!important}}
@container (max-width: 820px){
  .lg .ct-main{padding:24px 18px}
  .lg .ct-side{max-width:none;flex-basis:100%}
  .lg .ct-two{grid-template-columns:minmax(0,1fr)}
  .lg .ct-send{align-self:stretch}
  .lg .ct-body{padding-bottom:72px}
}

/* the 404 page */
.lg .nf{padding-bottom:120px}
.lg .nf-row{display:flex;flex-wrap:wrap;gap:12px;padding-top:8px}
@container (max-width: 820px){
  .lg .nf{padding-bottom:72px}
}

/* Under 375 px the bar can't hold the name, the button and the menu: the header keeps
   the mark, and the name stays the link's accessible name. */
@container (max-width: 374px){
  .ws .ws-head .ws-brand-tx{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
}
