:root {
  --ink:#26362f;
  --muted:#68756e;
  --line:#dfe5de;
  --paper:#fff;
  --teal:#28634e;
  --teal-light:#edf4ee;
  --red:#a63c36;
  --bg:#f5f6f2;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none
}

* {
  box-sizing:border-box
}

body {
  margin:0
}

button,input,select,textarea {
  font:inherit
}

button,a,input,select,textarea,summary {
  outline-offset:4px
}

button {
  cursor:pointer
}

button:disabled {
  cursor:wait;
  opacity:.55
}

a {
  color:var(--teal)
}

.topbar {
  height:82px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 34px
}

.brand {
  display:flex;
  gap:13px;
  align-items:center;
  text-decoration:none;
  color:var(--ink);
  font-size:17px;
  font-weight:750;
  letter-spacing:2px;
  white-space:nowrap
}

.brand-mark {
  position:relative;
  isolation:isolate;
  display:grid;
  place-items:center;
  flex:none;
  width:52px;
  height:52px;
  overflow:hidden;
  border-radius:27%;
  background:#12392f;
  box-shadow:0 3px 7px #143f321c,0 8px 20px #143f3210;
  transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s
}

.brand-mark img {display:block;width:100%;height:100%}
.brand:is(:hover,:focus-visible) .brand-mark {
  transform:translateY(-1px);
  box-shadow:0 5px 12px #143f3226,0 0 0 3px #a7d8bc29,0 10px 24px #143f3218
}
@media(prefers-reduced-motion:reduce) {
  .brand-mark {transition:none}
  .brand:is(:hover,:focus-visible) .brand-mark {transform:none}
}

.brand small {
  font-size:10px;
  letter-spacing:2.5px;
  display:block;
  margin-top:5px;
  color:var(--muted)
}

@media(max-width:380px) {
  .brand {gap:10px;font-size:15px;letter-spacing:1.5px}
  .brand-mark {width:44px;height:44px}
  .brand small {font-size:8px;letter-spacing:2px}
}

/* Public account chrome. Study settings arrive only with the private app. */
[hidden]{display:none!important}
.account-menu{position:relative;z-index:100;min-width:0}
.profile-toggle{display:grid;grid-template-columns:minmax(0,1fr) 16px;gap:3px 9px;align-items:center;max-width:280px;padding:9px 12px;background:#fff;border:1px solid var(--line);border-radius:9px;color:var(--ink);text-align:left}
.profile-toggle #account-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650}
.profile-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;transition:transform .15s}
.profile-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.profile-toggle-hint{font-size:10px;color:var(--muted);grid-column:1/-1}
.profile-toggle:hover,.profile-close:hover,.profile-signout:hover{background:var(--teal-light)}
.profile-panel{position:absolute;top:calc(100% + 12px);right:0;width:360px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 100px);overflow:auto;padding:22px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 16px 48px #172d3426;color:var(--ink)}
.profile-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.profile-heading h2{font-size:21px;letter-spacing:-.4px;margin:0;font-weight:650}
.profile-close{width:34px;height:34px;flex:none;border:0;border-radius:50%;background:var(--bg);color:var(--ink);font-size:23px;line-height:1}
.profile-identity{font-size:13px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere;margin:9px 0 0}
.profile-signout{display:block;width:100%;text-align:left;margin-top:20px;padding:13px 0 0;border:0;border-top:1px solid var(--line);background:#fff;color:var(--ink);font-size:13px;font-weight:600}
@media(max-width:720px){.topbar{gap:12px;padding:0 16px;height:72px}.profile-toggle{max-width:160px;padding:8px 10px}.profile-panel{top:calc(100% + 10px);max-height:calc(100dvh - 90px)}}
[hidden]{display:none!important}
.auth-layout{min-height:calc(100vh - 85px);display:grid;place-items:center;padding:60px 24px}
.auth-card{max-width:560px;width:100%;padding:56px;background:#fff;border:1px solid #dfe6df;border-radius:12px;box-shadow:0 12px 45px #17392c06}
.auth-card h1{font-family:Georgia,serif;font-size:44px;line-height:1.15;font-weight:400;letter-spacing:-1.5px;margin:20px 0}
.auth-card p{color:#647267;line-height:1.75;font-size:16px}
.auth-card .auth-detail{font-size:13px;margin-top:24px}
.google-button{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;margin-top:28px;padding:16px;background:#fff;color:#27372f;border:1px solid #bac8bd;border-radius:6px;font-weight:600}
.google-button:hover{background:#f4f7f3}
.site-home-link{text-decoration:none}
.site-recovery-button{display:block;margin:16px auto 0;padding:10px;background:none;border:0;color:#27372f;text-decoration:underline;font-size:14px}
.site-recovery-notice{padding:16px 24px;border-bottom:1px solid #dfe6df;background:#f4f7f3;color:#27372f;text-align:center;font-size:14px;line-height:1.5}
.site-recovery-notice a{color:inherit;font-weight:600}
.construction-mark{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:#f7f2e4;color:#8c713c;margin-bottom:28px;font-size:28px}
@media(max-width:600px){.auth-card{padding:32px 24px}.auth-card h1{font-size:36px}}
