:root {
  --ink: #172331;
  --navy: #132f4a;
  --navy-2: #1d476b;
  --paper: #f7f6f1;
  --surface: #fff;
  --line: #dfe4e1;
  --accent: #b24f43;
  --accent-soft: #f9e8e4;
  --mint: #e7f2ef;
  --mint-strong: #29766e;
  --muted: #637181;
  --shadow: 0 12px 30px rgba(18, 43, 65, 0.08);
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--paper);
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% -12%, #e8f2ef 0, transparent 29rem),
    var(--paper);
  color: var(--ink);
  font:
    16px/1.55 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  min-height: 100vh;
}
header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  background: rgba(19, 47, 74, 0.98);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}
header strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}
header > span {
  opacity: 0.62;
  font-size: 0.78rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 12px;
}
nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
nav a {
  font-size: 0.86rem;
  opacity: 0.85;
  padding: 9px 10px;
  border-radius: 8px;
  transition: 0.16s ease;
}
nav a:hover,
nav a.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}
main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 28px 88px;
}
.login {
  background:
    radial-gradient(circle at 100% 0, #dbece8, transparent 34rem), var(--paper);
}
.login main {
  max-width: 520px;
  padding-top: 14vh;
}
.eyebrow,
small {
  display: block;
  letter-spacing: 0.11em;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
}
h1,
h2,
h3 {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  color: var(--navy);
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  line-height: 1.02;
  margin: 0.3rem 0 1rem;
  max-width: 880px;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0.25rem 0 0.6rem;
}
.lede {
  font-size: 1.1rem;
  max-width: 720px;
  color: var(--muted);
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 38px 0;
}
.cards article,
.list {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.cards article {
  position: relative;
  overflow: hidden;
}
.cards article:after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.55;
}
.cards article > * {
  position: relative;
  z-index: 1;
}
.list {
  padding: 0;
  overflow: hidden;
}
.list > div {
  display: grid;
  grid-template-columns: 1.2fr 1.7fr auto;
  gap: 16px;
  align-items: center;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s;
}
.list > div:hover {
  background: #fcfdfc;
}
.list > div:last-child {
  border: 0;
}
.list span {
  color: var(--muted);
  font-size: 0.9rem;
}
.list em {
  font-style: normal;
  font-size: 0.74rem;
  color: var(--accent);
  text-align: right;
  font-weight: 700;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--mint);
  border-radius: 99px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 750;
  color: #21645d;
}
.badge:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.pending {
  background: #f7ead2;
  color: #8b5a10;
}
.badge.pending:before {
  background: #c88412;
}
.nav-notification,
.notification b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: auto;
  border-radius: 99px;
  background: #d9534f;
  color: #fff;
  font: 800 0.68rem/1 ui-sans-serif, system-ui, sans-serif;
}
.notification {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 1.1rem;
}
.notification-bell { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.notification.has-notifications { box-shadow: 0 0 0 4px #f8e1de; }
.notification b { position: absolute; top: -6px; right: -7px; margin: 0; }
.new-message-alert {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 20px 0;
  padding: 16px 18px;
  background: #fff4f1;
  border: 1px solid #f0c9c2;
  border-left: 5px solid var(--accent);
  border-radius: 12px;
}
.new-message-alert > div { display: flex; gap: 12px; align-items: center; }
.new-message-alert > div > span { font-size: 1.4rem; color: var(--accent); }
.new-message-alert b { display:block; color: var(--navy); }
.new-message-alert small { letter-spacing: 0; color: var(--muted); }
.new-message-alert a { color: var(--navy); font-weight: 800; white-space: nowrap; }
@media (max-width: 640px) {
  .new-message-alert { align-items: flex-start; flex-direction: column; gap: 10px; }
}
form {
  margin-top: 30px;
}
label {
  display: block;
  margin: 15px 0;
  font-weight: 700;
  color: var(--navy);
}
input,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid #cbd4d2;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  box-shadow: 0 1px 0 rgba(12, 30, 45, 0.03);
}
input:focus,
textarea:focus {
  outline: 3px solid #c9e2dd;
  border-color: #75aa9f;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 11px 16px;
  font: 700 0.9rem/1.2 inherit;
  letter-spacing: 0.01em;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(178, 79, 67, 0.2);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(178, 79, 67, 0.28);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
.secondary {
  background: var(--navy);
  box-shadow: 0 4px 10px rgba(19, 47, 74, 0.18);
}
.fine {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 28px;
}
.alert {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 12px 14px;
  border-radius: 8px;
  color: #743b34;
}
.account-bar {
  backdrop-filter: blur(8px);
}
@media (max-width: 700px) {
  header {
    padding: 12px 18px;
    flex-wrap: wrap;
    min-height: 0;
  }
  header > span {
    font-size: 0.72rem;
  }
  nav {
    width: 100%;
    margin: 0;
    justify-content: space-between;
    gap: 0;
    overflow-x: auto;
  }
  nav a {
    padding: 7px 7px;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  main {
    padding: 44px 18px 92px;
  }
  h1 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }
  .lede {
    font-size: 1rem;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 28px 0;
  }
  .cards article {
    padding: 20px;
  }
  .list > div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 15px 17px;
  }
  .list em {
    text-align: left;
  }
  .account-bar {
    font-size: 0.75rem !important;
    padding: 11px 12px !important;
  }
}

/* Native-app inspired visual layer: original styling, optimised for iPhone-sized screens. */
:root {
  --ios-blue: #0a84ff;
  --ios-indigo: #5e5ce6;
  --ios-bg: #f2f2f7;
  --ios-separator: rgba(60, 60, 67, 0.14);
  --ios-card: rgba(255, 255, 255, 0.86);
  --radius: 22px;
  --shadow: 0 10px 28px rgba(25, 30, 60, 0.09);
}
html {
  background: var(--ios-bg);
}
body {
  background: linear-gradient(145deg, #f8fbff 0%, #f2f2f7 48%, #edf2f8 100%);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", sans-serif;
  letter-spacing: -0.012em;
}
header {
  min-height: 58px;
  background: rgba(248, 250, 255, 0.78);
  color: #14151a;
  border-bottom: 1px solid rgba(60, 60, 67, 0.12);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}
header strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}
header > span {
  color: #6b6b73;
  opacity: 1;
  border-color: var(--ios-separator);
  font-size: 0.72rem;
}
nav a {
  color: #4b4b55;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 7px 10px;
  border-radius: 10px;
}
nav a:hover,
nav a.active {
  color: var(--ios-blue);
  background: rgba(10, 132, 255, 0.1);
}
main {
  max-width: 1080px;
  padding-top: 52px;
}
.eyebrow,
small {
  color: var(--ios-blue);
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}
h1,
h2,
h3 {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: #17171c;
  font-weight: 780;
  letter-spacing: -0.05em;
}
h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.25rem);
  line-height: 0.98;
}
h2 {
  font-size: 1.35rem;
}
.lede {
  color: #6b6b73;
  font-size: 1.04rem;
  max-width: 650px;
}
.cards article,
.list,
.travel-card,
.month,
.access,
.composer,
.message {
  background: var(--ios-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.cards article:after {
  background: radial-gradient(circle, #cfe7ff, transparent 66%);
  opacity: 0.9;
}
.list > div {
  border-bottom-color: var(--ios-separator);
  padding: 17px 20px;
}
.list > div:hover {
  background: rgba(10, 132, 255, 0.035);
}
.list em {
  color: var(--ios-blue);
}
.badge {
  background: #e1f0ff;
  color: #0066cc;
  padding: 5px 10px;
  font-weight: 750;
}
.badge.pending {
  background: #fff1d6;
  color: #a75b00;
}
button,
.button {
  background: linear-gradient(135deg, #0a84ff, #0071e3);
  border-radius: 13px;
  padding: 12px 17px;
  box-shadow: 0 7px 17px rgba(10, 132, 255, 0.22);
}
.secondary {
  background: rgba(120, 120, 128, 0.12);
  color: #126dd1;
  box-shadow: none;
}
button:hover,
.button:hover {
  box-shadow: 0 9px 20px rgba(10, 132, 255, 0.24);
}
input,
textarea {
  border-color: rgba(60, 60, 67, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
}
input:focus,
textarea:focus {
  outline: 3px solid rgba(10, 132, 255, 0.22);
  border-color: #0a84ff;
}
.surface-note {
  background: rgba(10, 132, 255, 0.08);
  border-color: rgba(10, 132, 255, 0.13);
  color: #31536f;
  border-radius: 16px;
}
.section-links a {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(60, 60, 67, 0.12);
  color: #33343b;
  box-shadow: 0 2px 7px rgba(30, 35, 55, 0.05);
}
.section-links a:hover {
  background: #e1f0ff;
  border-color: #9dcbff;
  color: #0066cc;
}
.step-rail b {
  background: #dceeff;
  color: #0066cc;
}
.step-rail .active b {
  background: var(--ios-blue);
}
.step-rail div:not(:last-child):after {
  background: #b7d9ff;
}
.step-rail .locked b {
  background: #e8e8ed;
  color: #8e8e93;
}
.app-footer-note {
  border-top-color: var(--ios-separator);
}
@media (max-width: 700px) {
  body {
    padding-bottom: 78px;
  }
  header {
    position: sticky;
    min-height: 52px;
    padding: 0 18px;
  }
  header > span {
    display: none;
  }
  header strong:before {
    content: "●";
    color: var(--ios-blue);
    font-size: 0.7rem;
    margin-right: 6px;
    vertical-align: 1px;
  }
  header nav {
    position: fixed;
    z-index: 50;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0;
    overflow: visible;
    padding: 7px 7px max(7px, env(safe-area-inset-bottom));
    background: rgba(250, 250, 252, 0.88);
    border-top: 1px solid var(--ios-separator);
    box-shadow: 0 -5px 20px rgba(30, 30, 40, 0.07);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
  }
  header nav a {
    flex: 1;
    max-width: 78px;
    padding: 7px 3px;
    color: #777780;
    font-size: 0.62rem;
    line-height: 1.1;
    text-align: center;
  }
  header nav a:before {
    display: block;
    margin-bottom: 4px;
    font-size: 1.08rem;
    line-height: 1;
  }
  header nav a:nth-child(1):before {
    content: "⌂";
  }
  header nav a:nth-child(2):before {
    content: "▦";
  }
  header nav a:nth-child(3):before {
    content: "⌁";
  }
  header nav a:nth-child(4):before {
    content: "▤";
  }
  header nav a:nth-child(5):before {
    content: "◌";
  }
  header nav a:nth-child(6) {
    display: none;
  }
  header nav a.active {
    color: var(--ios-blue);
    background: transparent;
  }
  main {
    padding: 31px 16px 30px;
  }
  h1 {
    font-size: 2.35rem;
    letter-spacing: -0.055em;
  }
  .cards article,
  .travel-card,
  .month,
  .access,
  .composer,
  .message {
    border-radius: 20px !important;
  }
  .cards article {
    padding: 19px;
  }
  .list {
    border-radius: 18px;
  }
  .list > div {
    padding: 15px 16px;
  }
  .button,
  button {
    min-height: 44px;
  }
}

.context-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.context-bar:before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}
.surface-note {
  background: linear-gradient(100deg, #f1f7f5, #f9fbfa);
  border: 1px solid #d8e8e3;
  border-radius: 12px;
  padding: 14px 16px;
  color: #46635f;
  font-size: 0.88rem;
}
.surface-note b {
  color: var(--navy);
}
.section-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.section-links a {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 99px;
  padding: 7px 11px;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 750;
}
.section-links a:hover {
  border-color: #8bb7af;
  background: var(--mint);
}
.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.status-row .fine {
  margin: 0;
}
.step-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 8px;
}
.step-rail div {
  position: relative;
  padding: 0 16px 0 0;
  min-height: 62px;
}
.step-rail div:not(:last-child):after {
  content: "";
  height: 2px;
  background: #c8ddd8;
  position: absolute;
  top: 13px;
  left: 27px;
  right: 0;
}
.step-rail b {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d9ece8;
  color: #24675f;
  font-size: 0.78rem;
}
.step-rail span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}
.step-rail .active b {
  background: var(--navy);
  color: #fff;
}
.step-rail .locked b {
  background: #eff2f1;
  color: #7a8785;
}
.app-footer-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
@media (max-width: 700px) {
  .context-bar {
    margin-top: 18px;
  }
  .step-rail {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .step-rail div {
    padding-left: 39px;
    min-height: 36px;
  }
  .step-rail div:not(:last-child):after {
    width: 2px;
    height: calc(100% + 8px);
    top: 27px;
    left: 13px;
    right: auto;
  }
  .step-rail b {
    position: absolute;
    left: 0;
    top: 0;
  }
  .step-rail span {
    margin: 0;
  }
  .app-footer-note {
    display: block;
  }
  .app-footer-note span {
    display: block;
    margin-top: 5px;
  }
}

/* App shell */
.app-body {
  min-height: 100vh;
  background: #f5f9ff;
  color: #152443;
}
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  padding: 22px 12px 18px;
  background: rgba(255, 255, 255, 0.8);
  border-right: 1px solid #e1ebf8;
  backdrop-filter: blur(20px);
  z-index: 5;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 8px 24px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #11aaff, #2266ff);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 7px 14px #1e76ef35;
}

/* The compact Hearthlane monogram remains legible in the small brand tile. */
.brand-mark,
.login-mark {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: -.08em;
}
.brand b {
  display: block;
  font-size: 0.98rem;
  color: #102447;
  letter-spacing: -0.04em;
}
.brand small {
  display: block;
  color: #72809a;
  font-size: 0.62rem;
  letter-spacing: 0;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}
.side-nav a,
.side-nav-muted {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  color: #405170;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 650;
}
.side-nav a:hover,
.side-nav a.active {
  color: #087af5;
  background: #e4f1ff;
}
.side-nav i,
.side-nav-muted i {
  font-style: normal;
  width: 16px;
  color: #557092;
  text-align: center;
}
.side-nav-muted {
  opacity: 0.58;
  cursor: default;
}
.side-nav-muted em {
  font-size: 0.57rem;
  margin-left: auto;
  font-style: normal;
  color: #687793;
}
.side-user {
  margin-top: auto;
  border-radius: 12px;
  padding: 12px 10px;
  background: #f0f6ff;
  color: #687793;
  font-size: 0.68rem;
}
.side-user b {
  color: #284261;
}
.side-user small {
  display: block;
  margin-left: 18px;
  font-size: 0.62rem;
}
.presence {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c98b;
  margin-right: 6px;
}
.app-main {
  margin-left: 232px;
  min-height: 100vh;
}
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 68px;
  padding: 0 34px;
  background: rgba(245, 249, 255, 0.8);
  border: 0;
  box-shadow: none;
  display: flex;
  justify-content: space-between;
  color: #172640;
  backdrop-filter: blur(18px);
}
.app-search {
  margin: 0;
  display: flex;
  align-items: center;
  width: min(430px, 52vw);
  background: #fff;
  border: 1px solid #dce8f8;
  border-radius: 22px;
  padding: 0 13px;
  color: #59708f;
}
.app-search span {
  font-size: 21px;
  line-height: 1;
  transform: rotate(-20deg);
}
.app-search input {
  margin: 0;
  padding: 9px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.78rem;
}
.app-search kbd { margin-left:auto; padding:2px 5px; border:1px solid #d9e4f0; border-radius:5px; color:#8192a8; background:#f7faff; font:700 .62rem/1 ui-monospace,monospace; }
.top-summary { display:flex; align-items:center; gap:10px; margin-left:auto; margin-right:18px; color:#70819a; font-size:.7rem; white-space:nowrap; }.top-summary a { padding:5px 8px; border-radius:99px; color:#2f6b9e; background:#eaf4ff; font-weight:750; text-decoration:none; }
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.content-toolbar { display:flex; align-items:center; gap:9px; margin:18px 0 22px; padding:10px; border:1px solid #dfeaf5; border-radius:13px; background:#fbfdff; }.content-toolbar input,.content-toolbar select { width:auto; min-width:155px; margin:0; padding:9px 11px; font-size:.78rem; }.content-toolbar input { flex:1; }.content-toolbar button { margin:0; padding:9px 13px; font-size:.76rem; }.content-toolbar a { color:#2d6fa9; font-size:.78rem; font-weight:750; }
.shortcut-toast { position:fixed; z-index:50; left:50%; bottom:26px; max-width:min(92vw,500px); padding:11px 15px; border-radius:11px; background:#17324d; color:#fff; box-shadow:0 13px 30px #10294735; font-size:.8rem; font-weight:700; opacity:0; pointer-events:none; transform:translate(-50%,14px); transition:opacity .2s ease,transform .2s ease; }.shortcut-toast.visible { opacity:1; transform:translate(-50%,0); }
.search-page { max-width:920px; }.search-large { display:flex; gap:10px; margin:25px 0 20px; }.search-large input { margin:0; font-size:1rem; }.search-large button { margin:0; white-space:nowrap; }.search-results { margin-top:24px; border:1px solid #dfeaf5; border-radius:15px; overflow:hidden; background:#fff; }.search-results > a { display:flex; align-items:center; gap:15px; padding:16px 19px; border-bottom:1px solid #e8eff6; color:#253f60; text-decoration:none; transition:background .16s ease,transform .16s ease; }.search-results > a:last-child { border:0; }.search-results > a:hover { background:#f4f9ff; }.search-results > a b,.search-results > a small { display:block; }.search-results > a small { margin-top:3px; color:#71839a; font-size:.72rem; letter-spacing:0; }.search-results > a em { margin-left:auto; color:#6480a0; font-size:1.2rem; font-style:normal; }.search-kind { flex:0 0 74px; padding:5px 7px; border-radius:7px; background:#e5f2ff; color:#1974c6; font-size:.65rem; font-weight:850; text-align:center; }
:focus-visible { outline:3px solid #9ccff5; outline-offset:3px; }
.theme-dark .content-toolbar,.theme-dark .search-results { border-color:#2c4662; background:#172231; }.theme-dark .content-toolbar select,.theme-dark .content-toolbar input { background:#102033; border-color:#34506e; color:#edf5ff; }.theme-dark .search-results > a { border-color:#2c4662; color:#edf5ff; }.theme-dark .search-results > a:hover { background:#1d3045; }.theme-dark .top-summary { color:#a9bacb; }.theme-dark .top-summary a { background:#24384b; color:#b9dcfb; }
@media (max-width: 900px) { .top-summary { display:none; } }
@media (max-width: 620px) { .content-toolbar,.search-large { flex-wrap:wrap; }.content-toolbar input,.content-toolbar select { flex:1 1 130px; min-width:0; }.content-toolbar button { flex:1; }.app-search kbd { display:none; } }
.notification {
  position: relative;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #365170;
  box-shadow: none;
  font-size: 22px;
}
.notification b {
  position: absolute;
  top: -3px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fc5264;
  color: #fff;
  font-size: 8px;
}
.profile-avatar,
.child-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}
.profile-avatar {
  width: 33px;
  height: 33px;
  background: #193d66;
  color: #fff;
  font-size: 0.76rem;
}
.profile-name {
  font-size: 0.8rem;
  font-weight: 750;
}
.chevron {
  color: #60708a;
}
.overview {
  max-width: 1320px;
  padding: 18px 28px 42px;
}
.welcome-hero {
  min-height: 230px;
  border-radius: 17px;
  padding: 28px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  background: linear-gradient(115deg, #b8e9ff, #e5f9ff 50%, #f9f6d9);
  box-shadow: 0 12px 27px #0e5a9c1c;
}
.welcome-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(2.35rem, 4.1vw, 3.45rem);
  color: #0d1c3f;
}
.welcome-hero p:not(.eyebrow) {
  max-width: 490px;
  line-height: 1.3;
  color: #47627d;
}
.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.primary-action,
.secondary-action,
.wide-primary,
.wide-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 0.78rem;
  font-weight: 780;
}
.primary-action,
.wide-primary {
  background: #087df4;
  color: #fff;
  box-shadow: 0 8px 15px #087df436;
}
.secondary-action,
.wide-secondary {
  border: 1px solid #bcd9fd;
  background: #fff;
  color: #0877e6;
}
.hero-art {
  position: relative;
  overflow: hidden;
}
.sun {
  position: absolute;
  right: 85px;
  top: 32px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #fff6b8;
  box-shadow: 0 0 35px #fff9d4;
}
.hill {
  position: absolute;
  bottom: -25px;
  border-radius: 50% 50% 0 0;
  background: #b9e2bd;
}
.hill-one {
  right: -70px;
  width: 370px;
  height: 150px;
}
.hill-two {
  right: 100px;
  width: 250px;
  height: 95px;
  background: #96cce2;
}
.child-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 12px;
  margin: 13px 0 18px;
}
.child-cards article {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e9f0fa;
  box-shadow: 0 5px 15px #2444680a;
}
.child-cards .child-card-link { min-height: 74px; display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #e9f0fa; border-radius: 14px; background: #fff; box-shadow: 0 5px 15px #2444680a; color: var(--ink); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.child-cards .child-card-link:hover { transform: translateY(-2px); border-color: #a9cff3; box-shadow: 0 10px 22px #2444681c; }
.child-cards .child-card-link:focus-visible { outline: 3px solid #b6dcfb; outline-offset: 2px; }
.child-profile-page { max-width: 1040px; }
.child-back { display: inline-block; margin-bottom: 22px; color: #1676d2; font-size: .84rem; font-weight: 750; text-decoration: none; }
.child-profile-hero { display: flex; align-items: center; gap: 21px; padding: 30px; border-radius: 20px; background: linear-gradient(115deg,#e5f4ff,#f8f6ff); border: 1px solid #d7e9f7; }
.child-profile-hero .eyebrow { margin: 0 0 7px; }.child-profile-hero h1 { margin: 0; }.child-profile-hero p:not(.eyebrow) { margin: 7px 0 0; color: #60748d; }
.child-profile-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 86px; height: 86px; border-radius: 28px; background: linear-gradient(135deg,#a9e0ff,#e8ddff); color: #176ebc; font-size: 2rem; font-weight: 850; }
.child-profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 17px; }.child-profile-grid h2 { margin-top: 0; }.child-profile-grid p { color: #546983; line-height: 1.65; }
.child-profile-grid dl { margin: 0; }.child-profile-grid dl > div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid #e7eef7; }.child-profile-grid dl > div:last-child { border-bottom: 0; }.child-profile-grid dt { color: #71829a; font-size: .8rem; }.child-profile-grid dd { margin: 0; color: #253f60; font-size: .86rem; font-weight: 750; text-align: right; }.child-profile-note { padding-top: 13px; border-top: 1px solid #e7eef7; font-size: .78rem; }
.child-profile-actions { display: flex; gap: 10px; margin-top: 18px; }.theme-dark .child-cards .child-card-link,.theme-dark .child-profile-hero { background:#172231; border-color:#2b4662; color:#edf5ff; }.theme-dark .child-profile-hero p:not(.eyebrow),.theme-dark .child-profile-grid p,.theme-dark .child-profile-grid dt { color:#a9bacb; }.theme-dark .child-profile-grid dd { color:#edf5ff; }.theme-dark .child-profile-grid dl > div,.theme-dark .child-profile-note { border-color:#2b4662; }
@media (max-width: 620px) { .child-profile-hero { align-items:flex-start; padding:22px; }.child-profile-avatar { width:64px; height:64px; border-radius:21px; font-size:1.5rem; }.child-profile-grid { grid-template-columns:1fr; }.child-profile-actions { flex-direction:column; align-items:stretch; }.child-profile-actions a { justify-content:center; } }
.child-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  background: #cce7ff;
  color: #097af1;
  font-size: 0.85rem;
}
.avatar-2 {
  background: #e3d4ff;
  color: #8049d7;
}
.child-cards b {
  display: block;
  font-size: 0.78rem;
}
.child-cards small {
  color: #71809b;
  font-size: 0.64rem;
  line-height: 1.4;
  letter-spacing: 0;
}
.child-cards i {
  margin-left: auto;
  font-size: 24px;
  color: #8a9ab1;
  font-style: normal;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
  gap: 14px;
}
.dashboard-main,
.dashboard-side {
  display: grid;
  gap: 14px;
  align-content: start;
}
.panel {
  border: 1px solid #e7eef9;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 6px 20px #1b47720c;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}
.panel-title h2 {
  font-size: 1rem;
  margin: 0;
  color: #122546;
}
.panel-title > div h2 {
  margin: 0;
}
.panel-title small {
  color: #7c8ca5;
  letter-spacing: 0;
  font-size: 0.62rem;
}
.panel-title > a {
  margin-left: auto;
  color: #087af5;
  font-size: 0.68rem;
  font-weight: 750;
}
.panel-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  font-size: 0.87rem;
}
.panel-icon.blue {
  background: #e0f1ff;
  color: #087af5;
}
.panel-icon.orange {
  background: #fff0df;
  color: #ff7a25;
}
.panel-icon.green {
  background: #dff7ec;
  color: #09995f;
}
.panel-icon.coral {
  background: #ffe8e4;
  color: #fa6553;
}
.panel-icon.purple {
  background: #eee4ff;
  color: #8154e5;
}
.week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 0 4px 10px;
}
.week-days span {
  padding: 6px 0;
  border-radius: 9px;
}
.week-days small {
  color: #697a98;
  font-size: 0.62rem;
  letter-spacing: 0;
}
.week-days b {
  display: block;
  font-size: 0.77rem;
}
.week-days .today {
  background: #087df4;
  color: #fff;
  box-shadow: 0 5px 12px #087df44a;
}
.week-days .today small {
  color: #fff;
}
.week-events a,
.compact-list a,
.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1c2c48;
}
.week-events a {
  padding: 10px 4px;
  border-top: 1px solid #edf2fa;
}
.week-events span,
.mini-row span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.week-events b,
.compact-list b,
.mini-row b {
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.week-events small,
.mini-row small {
  letter-spacing: 0;
  color: #71819b;
  font-size: 0.64rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.week-events em,
.mini-row em {
  margin-left: auto;
  font-style: normal;
  color: #7890af;
}
.event-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #18bd7c;
  flex: 0 0 auto;
}
.event-dot.holiday {
  background: #ff6a70;
}
.compact-list a {
  padding: 9px 3px;
  border-top: 1px solid #edf2fa;
}
.event-bar {
  width: 4px;
  height: 21px;
  border-radius: 5px;
  background: #9056f7;
}
.event-bar.holiday {
  background: #ff6871;
}
.compact-list span {
  margin-left: auto;
  color: #6e809d;
  font-size: 0.66rem;
}
.status-pill {
  font-style: normal;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 0.57rem;
  font-weight: 800;
  white-space: nowrap;
}
.status-pill.proposed {
  background: #e4f2ff;
  color: #087af5;
}
.compact-list strong {
  font-size: 20px;
  color: #8495ad;
  font-weight: 400;
}
.focus-event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  margin: 10px 0 12px;
}
.focus-event b,
.handover-panel > b {
  font-size: 0.78rem;
}
.focus-event small {
  display: block;
  color: #73829d;
  font-size: 0.64rem;
  line-height: 1.4;
}
.wide-primary,
.wide-secondary {
  display: flex;
  width: 100%;
  padding: 9px;
  margin-top: 7px;
  border-radius: 8px;
  font-size: 0.68rem;
}
.handover-panel strong {
  display: block;
  font-size: 1rem;
  margin-top: 4px;
}
.handover-panel p {
  margin: 8px 0;
  color: #71809a;
  font-size: 0.68rem;
}
.route-preview {
  height: 58px;
  border-radius: 9px;
  background: repeating-linear-gradient(
    35deg,
    #e0edf0 0 15px,
    #f7f5e6 15px 30px
  );
  position: relative;
  margin-bottom: 8px;
}
.route-preview i {
  position: absolute;
  left: 26%;
  right: 24%;
  top: 48%;
  border-top: 3px solid #1687f8;
  transform: rotate(-8deg);
}
.route-preview span,
.route-preview b {
  position: absolute;
  top: 18px;
  font-size: 22px;
  color: #087df4;
}
.route-preview span {
  left: 20%;
}
.route-preview b {
  right: 18%;
  color: #ff5e70;
}
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.quick {
  min-height: 88px;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #203451;
}
.quick b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 17px;
  background: #0b9c61;
  color: #fff;
}
.quick span {
  font-size: 0.65rem;
  font-weight: 750;
}
.quick small {
  display: block;
  font-size: 0.57rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #6d7b91;
}
.quick.green {
  background: #e0f9ea;
}
.quick.purple {
  background: #f0e5ff;
}
.quick.purple b {
  background: #893de9;
}
.quick.blue {
  background: #e2f2ff;
}
.quick.blue b {
  background: #087df4;
}
.quick.amber {
  background: #fff5df;
}
.quick.amber b {
  background: #df9815;
}
.quick.disabled {
  opacity: 0.7;
}
.bottom-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.mini-panel {
  min-height: 210px;
}
.mini-row {
  padding: 9px 2px;
  border-top: 1px solid #edf2fa;
}
.doc-icon,
.message-avatar,
.activity-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e7f2ff;
  color: #087af5;
  font-style: normal;
  font-size: 0.8rem;
  flex: 0 0 auto;
}
.message-avatar {
  border-radius: 50%;
  background: #d7e7f8;
  color: #557493;
  font-size: 0.65rem;
}
.activity-icon {
  background: #efe5ff;
  color: #8951e4;
}
.empty-state {
  font-size: 0.72rem;
  color: #71819b;
}
@media (hover: hover) and (min-width: 681px) {
  .brand-mark { animation: hearthlane-mark-float 4.2s ease-in-out infinite; }
  .side-nav a { position: relative; overflow: hidden; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
  .side-nav a::before { content:""; position:absolute; left:0; top:10px; bottom:10px; width:3px; border-radius:0 5px 5px 0; background:#1686f5; transform:scaleY(0); transform-origin:center; transition:transform .2s ease; }
  .side-nav a::after { content:""; position:absolute; inset:0; background:linear-gradient(100deg,transparent 20%,rgba(255,255,255,.42) 48%,transparent 75%); transform:translateX(-125%); pointer-events:none; }
  .side-nav a:hover { transform:translateX(4px); box-shadow:0 7px 15px rgba(22,118,210,.08); }
  .side-nav a:hover::before,.side-nav a.active::before { transform:scaleY(1); }
  .side-nav a:hover::after { animation: sidebar-sheen .55s ease; }
  .side-nav a.active { box-shadow:0 7px 16px rgba(22,118,210,.1); animation: sidebar-active-settle .42s ease both; }
  .side-nav a i { transition:transform .2s ease,color .2s ease; }
  .side-nav a:hover i { transform:scale(1.18) rotate(-5deg); color:#087af5; }
  .side-user { transition:transform .22s ease, box-shadow .22s ease; }.side-user:hover { transform:translateY(-2px); box-shadow:0 9px 18px rgba(26,83,139,.1); }
}
@keyframes hearthlane-mark-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-3px)} }
@keyframes sidebar-sheen { to { transform:translateX(125%); } }
@keyframes sidebar-active-settle { from { transform:translateX(-4px); opacity:.68; } to { transform:translateX(0); opacity:1; } }
@media (prefers-reduced-motion: reduce) { .brand-mark,.side-nav a,.side-nav a i,.side-user { animation:none !important; transition:none !important; } }
.app-footer {
  margin: 0 28px;
  padding: 17px 0;
  border-top: 1px solid #e1ebf8;
  display: flex;
  justify-content: space-between;
  color: #71819b;
  font-size: 0.65rem;
}
.app-footer i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #21c38a;
  margin-right: 6px;
}
@media (max-width: 900px) {
  .app-sidebar {
    width: 190px;
  }
  .app-main {
    margin-left: 190px;
  }
  .overview {
    padding: 14px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-side {
    grid-template-columns: repeat(3, 1fr);
  }
  .bottom-panels {
    grid-template-columns: 1fr 1fr;
  }
  .app-topbar {
    padding: 0 18px;
  }
}
@media (max-width: 680px) {
  .app-sidebar {
    position: static;
    width: auto;
    min-height: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid #e1ebf8;
  }
  .brand {
    padding: 0;
  }
  .side-nav {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .side-nav a,
  .side-nav-muted {
    padding: 8px 5px;
    font-size: 0.64rem;
    gap: 4px;
    justify-content: center;
  }
  .side-nav-muted em {
    display: none;
  }
  .side-user {
    display: none;
  }
  .app-main {
    margin: 0;
  }
  .app-topbar {
    height: 55px;
    padding: 0 13px;
  }
  .app-search {
    width: 70%;
    height: 34px;
  }
  .profile-name,
  .chevron {
    display: none;
  }
  .overview {
    padding: 12px;
  }
  .welcome-hero {
    grid-template-columns: 1fr;
    min-height: 250px;
    padding: 21px;
  }
  .welcome-hero h1 {
    font-size: 2.25rem;
  }
  .hero-art {
    position: absolute;
    inset: auto 0 0;
    height: 70px;
    opacity: 0.65;
  }
  .child-cards {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-side {
    grid-template-columns: 1fr;
  }
  .bottom-panels {
    grid-template-columns: 1fr;
  }
  .compact-list span {
    display: none;
  }
  .app-footer {
    margin: 0 14px;
    display: block;
    line-height: 1.8;
  }
}

.profile-menu { position: relative; }
.profile-menu summary { display:flex; align-items:center; gap:10px; cursor:pointer; list-style:none; }
.profile-menu summary::-webkit-details-marker { display:none; }
.profile-menu[open] .chevron { transform: rotate(180deg); }
.profile-dropdown { position:absolute; right:0; top:46px; z-index:30; width:220px; padding:12px; border:1px solid #dbe5ef; border-radius:12px; background:#fff; box-shadow:0 16px 36px rgba(20,48,74,.16); }
.profile-dropdown strong,.profile-dropdown span { display:block; }
.profile-dropdown span { color:#6b7d91; font-size:.75rem; margin:2px 0 10px; }
.profile-dropdown a { display:block; padding:9px 8px; border-radius:7px; color:#17324d; font-size:.84rem; font-weight:700; }
.profile-dropdown a:hover { background:#eef5fb; }
.profile-dropdown .logout-link { color:#a63e35; border-top:1px solid #e6edf3; margin-top:5px; }
.profile-dropdown form { margin:0; }
.profile-dropdown .theme-toggle { width:100%; margin:0; padding:9px 8px; justify-content:flex-start; background:transparent; color:#17324d; box-shadow:none; border-radius:7px; font-size:.84rem; }
.profile-dropdown .theme-toggle:hover { background:#eef5fb; transform:none; }
.settings-page { max-width:1040px; }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:30px; }
.settings-grid .panel { padding:24px; }
.settings-grid form { margin-top:16px; }
.settings-notice { margin:18px 0; padding:12px 14px; border-radius:10px; background:#e7f2ef; border:1px solid #c9e1db; color:#21645d; font-weight:700; }
.photo-row { display:flex; align-items:center; gap:16px; }
.settings-avatar { width:72px; height:72px; flex:0 0 72px; display:grid; place-items:center; border-radius:50%; object-fit:cover; background:#193d66; color:#fff; font-size:1.45rem; font-weight:800; }
.profile-avatar { object-fit:cover; }
@media (max-width:720px) { .settings-grid { grid-template-columns:1fr; } .profile-name { display:none; } }

/* Per-account dark theme for every signed-in workspace page. */
.theme-dark { --paper:#101824; --surface:#172231; --ink:#ecf3fb; --navy:#edf5ff; --muted:#a9bacb; --line:#2b3b4d; background:#101824; color:#ecf3fb; }
.theme-dark.app-body, .theme-dark .app-main { background:radial-gradient(circle at 85% -12%,#1a3140 0,transparent 29rem),#101824; color:#ecf3fb; }
.theme-dark .app-topbar { background:rgba(16,24,36,.9); color:#ecf3fb; }
.theme-dark .app-sidebar { background:#132030; border-color:#293b4d; }
.theme-dark .brand, .theme-dark .side-nav a, .theme-dark .side-user, .theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark b { color:#edf5ff; }
.theme-dark .side-nav a:hover, .theme-dark .side-nav a.active, .theme-dark .profile-dropdown a:hover, .theme-dark .profile-dropdown .theme-toggle:hover { background:#24384b; }
.theme-dark .panel, .theme-dark .cards article, .theme-dark .list, .theme-dark .message, .theme-dark .composer, .theme-dark .month, .theme-dark .settings-grid .panel, .theme-dark .welcome-hero, .theme-dark .child-cards article { background:#172231; border-color:#2b3b4d; box-shadow:0 12px 30px rgba(0,0,0,.22); }
.theme-dark .message.mine { background:#18362f; border-color:#286354; }
.theme-dark .app-search, .theme-dark input, .theme-dark textarea, .theme-dark .notification, .theme-dark .profile-dropdown { background:#1d2b3a; border-color:#34495d; color:#edf5ff; }
.theme-dark input, .theme-dark textarea { color:#edf5ff; }
.theme-dark .profile-dropdown strong, .theme-dark .profile-dropdown span, .theme-dark .profile-dropdown a, .theme-dark .profile-dropdown .theme-toggle { color:#edf5ff; }
.theme-dark .profile-dropdown .logout-link { color:#ff9f96; border-color:#34495d; }
.theme-dark .week-events a, .theme-dark .compact-list a, .theme-dark .mini-row, .theme-dark .documents > div, .theme-dark .calendar > div { border-color:#2b3b4d; }
.theme-dark .fine, .theme-dark small, .theme-dark p, .theme-dark .lede, .theme-dark .list span, .theme-dark .message small { color:#a9bacb; }
.theme-dark .new-message-alert { background:#352522; border-color:#6b413b; }

.calendar-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.calendar-page-head .eyebrow {
  margin: 0;
}
.calendar-request {
  margin: 0;
  min-height: 40px;
  cursor: default;
}

/* Finished sign-in experience */
.login-premium {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #eef6ff;
}
.login-premium .login-shell {
  width: min(1080px, 100%);
  min-height: 650px;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 65px rgba(26, 71, 114, 0.18);
}
.login-art {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px;
  background:
    linear-gradient(90deg, rgba(8, 41, 75, 0.42), rgba(8, 41, 75, 0.03)),
    url("/static/assets/bsalt-login-landscape.png") center/cover;
}
.login-art:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(4, 38, 74, 0.1),
    rgba(5, 34, 57, 0.28)
  );
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
}
.login-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: linear-gradient(135deg, #0caeff, #2a65ff);
  box-shadow: 0 8px 18px rgba(0, 59, 123, 0.35);
  color: #fff;
}
.login-brand b {
  display: block;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
}
.login-brand small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.67rem;
  letter-spacing: 0;
}
.login-art-copy {
  color: #fff;
  max-width: 410px;
}
.login-art-copy p {
  margin: 0 0 9px;
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  line-height: 0.98;
  font-weight: 790;
  letter-spacing: -0.055em;
}
.login-art-copy span {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.9);
}
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(32px, 6vw, 76px);
  background: linear-gradient(145deg, #fff, #f9fbff);
}
.login-copy .eyebrow {
  margin: 0 0 8px;
}
.login-copy h1 {
  margin: 0;
  font-size: 2.45rem;
}
.login-copy p:not(.eyebrow) {
  margin: 8px 0 22px;
  color: #71819a;
  font-size: 0.93rem;
}
.login-form {
  margin: 0;
}
.login-form label {
  font-size: 0.76rem;
  margin: 15px 0;
  color: #334968;
}
.login-form input {
  height: 48px;
  margin-top: 7px;
  border-radius: 12px;
  border-color: #dce6f4;
  background: #fff;
}
.login-form button {
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a84ff, #076cdb);
  font-size: 0.84rem;
}
.login-form button span {
  font-size: 1.15rem;
  margin-left: 4px;
}
.login-security {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #5f718d;
  font-size: 0.7rem;
}
.login-security i {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #dff6ea;
  color: #12965b;
  font-style: normal;
  font-weight: 800;
}
.login-legal {
  margin: 28px 0 0;
  color: #8794a8;
  font-size: 0.66rem;
  line-height: 1.55;
}
.login-standards-link {
  margin: 10px 0 0;
  font-size: .66rem;
  line-height: 1.45;
}
.login-standards-link a {
  color: #376aab;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gallery-upload { display: grid; grid-template-columns: minmax(190px,.7fr) minmax(0,1.6fr); gap: 28px; margin: 28px 0 32px; padding: 26px; border: 1px solid #dce9f4; border-radius: 18px; background: linear-gradient(135deg,#f7fbff,#fff); }
.gallery-upload h2 { margin: 0 0 8px; color: #1b314f; font-size: 1.18rem; }
.gallery-upload p { margin: 0; color: #60728a; font-size: .84rem; line-height: 1.6; }
.gallery-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery-form label { color: #334968; font-size: .76rem; font-weight: 750; }
.gallery-form input, .gallery-form textarea { box-sizing: border-box; width: 100%; margin-top: 6px; border: 1px solid #d5e2ef; border-radius: 10px; padding: 10px; background: #fff; color: #263b55; font: inherit; }
.gallery-form input[type=file] { padding: 8px; font-size: .72rem; }
.gallery-form textarea { resize: vertical; }
.gallery-form .gallery-activity { grid-column: 1 / -1; }
.gallery-form button { justify-self: start; margin-top: 2px; padding: 10px 17px; border: 0; border-radius: 10px; background: #126dca; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gallery-card { overflow: hidden; border: 1px solid #dce9f4; border-radius: 16px; background: #fff; box-shadow: 0 10px 24px #2450780d; }
.gallery-photo-link { display: block; aspect-ratio: 1 / .82; background: #e7f0f7; overflow: hidden; }
.gallery-card > .gallery-photo-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery-photo-link:hover img { transform: scale(1.025); }
.gallery-card-body { padding: 15px; }
.gallery-parent { display: flex; align-items: center; gap: 7px; color: #314a68; font-size: .76rem; }
.gallery-parent span, .gallery-parent img { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #d9edfc; color: #1b6db9; object-fit: cover; }
.gallery-parent time { margin-left: auto; color: #7c8ca0; font-size: .65rem; }
.gallery-location { margin: 14px 0 5px; color: #176ebc; font-size: .77rem; font-weight: 800; }
.gallery-activity-text { margin: 0; color: #4e6178; font-size: .82rem; line-height: 1.5; white-space: pre-wrap; }
.gallery-empty { padding: 54px 20px; border: 1px dashed #c8dbe9; border-radius: 18px; color: #6c8097; text-align: center; }
.gallery-empty > span { color: #1676d2; font-size: 1.8rem; }.gallery-empty h2 { margin: 9px 0 5px; color: #294667; font-size: 1rem; }.gallery-empty p { margin: 0; font-size: .84rem; }
.theme-dark .gallery-upload,.theme-dark .gallery-card { border-color: #2c4662; background: #17263a; }.theme-dark .gallery-upload h2,.theme-dark .gallery-parent,.theme-dark .gallery-empty h2 { color: #e7f2ff; }.theme-dark .gallery-upload p,.theme-dark .gallery-activity-text { color: #b7c8da; }.theme-dark .gallery-form input,.theme-dark .gallery-form textarea { border-color: #34506e; background: #102033; color: #e8f2ff; }
@media (max-width: 850px) { .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .gallery-upload,.gallery-form { grid-template-columns: 1fr; }.gallery-grid { grid-template-columns: 1fr; }.gallery-form .gallery-activity { grid-column: auto; } }
.standards-page {
  min-height: 100vh;
  margin: 0;
  padding: 50px 22px;
  color: #1c2e47;
  background: #edf6fc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.standards-shell {
  max-width: 920px;
  margin: 0 auto;
}
.standards-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1c2e47;
  text-decoration: none;
}
.standards-brand .login-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg,#2f9cf5,#1959b5); color: #fff; }
.standards-brand b, .standards-brand small { display: block; }
.standards-brand b { font-size: .9rem; }
.standards-brand small { margin-top: 1px; color: #71829a; font-size: .63rem; }
.standards-back { float: right; margin-top: 9px; color: #376aab; font-size: .8rem; text-decoration: none; }
.standards-page .eyebrow { margin: 58px 0 10px; color: #1676d2; font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.standards-page h1 { margin: 0; color: #13243b; font-size: clamp(2rem,5vw,3.5rem); letter-spacing: -.06em; line-height: 1.02; }
.standards-lede { max-width: 730px; margin: 19px 0 32px; color: #61728a; font-size: 1rem; line-height: 1.65; }
.standards-card { margin: 16px 0; padding: 28px 30px; border: 1px solid #dce9f4; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px #2450780d; }
.standards-card h2 { margin: 0 0 16px; color: #1b314f; font-size: 1.1rem; }
.standards-card p { color: #52657d; font-size: .9rem; line-height: 1.7; }
.standards-card p:last-child { margin-bottom: 0; }
.standards-card a { color: #126dca; font-weight: 700; }
.standards-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.standards-grid article { padding: 17px; border-radius: 13px; background: #f5f9fd; }
.standards-grid h3 { margin: 0 0 6px; font-size: .9rem; color: #224365; }
.standards-grid p { margin: 0; font-size: .8rem; line-height: 1.55; }
.standards-updated { margin: 24px 0 0; color: #7d8da2; font-size: .72rem; text-align: center; }
@media (max-width: 620px) { .standards-page { padding: 28px 15px; } .standards-page .eyebrow { margin-top: 46px; } .standards-card { padding: 22px 19px; } .standards-grid { grid-template-columns: 1fr; } }
.login-mobile-brand {
  display: none;
}
.login-premium .alert {
  font-size: 0.75rem;
  margin: 4px 0 8px;
}
@media (max-width: 720px) {
  .login-premium {
    display: block;
    padding: 0;
    background: #fff;
  }
  .login-premium .login-shell {
    display: block;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
  .login-art {
    min-height: 245px;
    padding: 25px;
    background-position: 62% center;
  }
  .login-art-copy {
    max-width: 280px;
  }
  .login-art-copy p {
    font-size: 2.2rem;
  }
  .login-panel {
    padding: 32px 25px 42px;
    min-height: calc(100vh - 245px);
    justify-content: flex-start;
  }
  .login-mobile-brand {
    display: none;
  }
  .login-copy h1 {
    font-size: 2.15rem;
  }
  .login-legal {
    margin-top: 23px;
  }
}
/* Some mobile browsers request a desktop-sized CSS viewport.  Touch capability
   keeps the sign-in experience usable there without changing desktop layout. */
@media (hover: none) and (pointer: coarse) {
  .login-premium {
    display: block;
    min-height: 100svh;
    padding: 0;
    background: #eaf5ff;
  }
  .login-premium .login-shell {
    width: 100%;
    min-height: 100svh;
    display: block;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .login-art {
    min-height: 300px;
    box-sizing: border-box;
    padding: 27px 24px 76px;
    background-position: 58% center;
  }
  .login-art-copy {
    max-width: 330px;
  }
  .login-art-copy p {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }
  .login-art-copy span {
    font-size: .82rem;
  }
  .login-panel {
    min-height: calc(100svh - 266px);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    margin-top: -34px;
    padding: 33px 23px 30px;
    justify-content: flex-start;
    border-radius: 30px 30px 0 0;
    background: linear-gradient(160deg,#fff,#f7fbff);
    box-shadow: 0 -10px 28px rgba(18,67,105,.13);
  }
  .login-panel::before { content: ""; width: 37px; height: 4px; margin: -19px auto 21px; border-radius: 99px; background: #d7e5f0; }
  .login-copy h1 {
    font-size: 2.35rem;
  }
  .login-copy p:not(.eyebrow) {
    margin-bottom: 18px;
  }
  .login-form label {
    margin: 13px 0;
    font-size: .8rem;
  }
  .login-form input,
  .login-form button {
    min-height: 56px;
    font-size: 16px;
  }
  .login-security {
    margin-top: 17px;
    font-size: .72rem;
  }
  .login-legal {
    margin-top: auto;
    padding-top: 25px;
    font-size: .7rem;
  }
  .login-standards-link {
    margin-top: 9px;
    font-size: .7rem;
  }
}
/* Android desktop-mode can keep a wide CSS viewport even on a phone.  Scale the
   touch layout only in that mode so its controls remain genuinely touch-sized. */
@media (hover: none) and (pointer: coarse) and (min-width: 600px) {
  .login-art { min-height: 440px; padding: 40px 40px 104px; }
  .login-brand b { font-size: 1.45rem; }.login-brand small { font-size: .82rem; }
  .login-mark { width: 50px; height: 50px; border-radius: 17px; }
  .login-art-copy { max-width: 530px; }.login-art-copy p { font-size: 3.25rem; }.login-art-copy span { font-size: 1.15rem; }
  .login-panel { min-height: calc(100svh - 390px); margin-top: -48px; padding: 48px 42px 42px; border-radius: 42px 42px 0 0; }
  .login-panel::before { width: 54px; height: 6px; margin: -27px auto 29px; }
  .login-copy .eyebrow { font-size: .85rem; }.login-copy h1 { font-size: 3.25rem; }.login-copy p:not(.eyebrow) { font-size: 1.18rem; }
  .login-form label { font-size: 1rem; }.login-form input,.login-form button { min-height: 70px; font-size: 22px; border-radius: 16px; }
  .login-security { font-size: .92rem; }.login-security i { width: 25px; height: 25px; }.login-legal,.login-standards-link { font-size: .86rem; }
}
@media (max-width: 680px) {
  .calendar-page-head {
    margin-top: 4px;
  }
  .calendar-request {
    padding: 9px 13px;
    font-size: 0.7rem;
  }
}
