:root {
  --ink: #172c3b;
  --teal: #087f80;
  --teal-dark: #086465;
  --coral: #f17957;
  --paper: #f7f8fa;
  --line: #e5e9ed;
  --muted: #65757e;
  --serif: Georgia, "Times New Roman", serif;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #f17957;
  outline-offset: 4px;
}
button,
input {
  border-radius: 9px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
h1 {
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  font-weight: 650;
  letter-spacing: -1.15px;
  line-height: 1.18;
}
h2 {
  font-size: 1.1rem;
  letter-spacing: -0.3px;
  font-weight: 650;
}
h3 {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.muted {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 1.7px;
  color: var(--teal);
  margin-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  display: block;
  object-fit: contain;
}
.button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  min-height: 46px;
  padding: 11px 18px;
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:not(:disabled):active {
  transform: translateY(1px);
}
.primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 3px 6px #087f8015;
}
.primary:hover {
  background: var(--teal-dark);
}
.secondary {
  background: #fff;
  border-color: #cbd9da;
  color: var(--teal-dark);
}
.secondary:hover {
  background: #f0f8f7;
}
.ghost {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.danger {
  background: #a83931;
  color: white;
}
.little-dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: white;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
[hidden] {
  display: none !important;
}
.form-error {
  padding: 12px 14px;
  background: #fff0ec;
  color: #96372b;
  border: 1px solid #efc9c0;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.notice {
  padding: 14px 18px;
  border-radius: 9px;
  border: 1px solid #d1dfdf;
  background: #edf7f5;
  color: #245652;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.notice[data-error="true"] {
  background: #fff0ec;
  border-color: #efc9c0;
  color: #96372b;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 0;
}
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 22px 0 9px;
}
input {
  width: 100%;
  height: 48px;
  border: 1px solid #d8dfe3;
  background: white;
  padding: 12px 14px;
  color: var(--ink);
  box-shadow: 0 1px 2px #172c3b04;
}
input::placeholder {
  color: #87949c;
}
input:focus {
  border-color: var(--teal);
}
/* A quiet, architectural login using the doorway from the brand. */
.login-page {
  background: #fff;
}
.login-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: #edf3f1;
  position: relative;
  padding: 38px 54px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 750px;
}
.login-brand {
  margin-left: -17px;
  align-self: flex-start;
}
.story-content {
  margin: auto 0;
  position: relative;
  padding-top: 48px;
}
.story-content h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4vw, 4.3rem);
  font-weight: 400;
  letter-spacing: -2.4px;
  line-height: 1.1;
}
.story-content p {
  margin-top: 23px;
  color: #58716e;
  line-height: 1.8;
  font-size: 1rem;
}
.door-art {
  width: 285px;
  height: 285px;
  position: relative;
  margin: 30px auto 0;
  transform: rotate(-7deg);
}
.door-arch {
  position: absolute;
  left: 45px;
  top: 27px;
  width: 154px;
  height: 215px;
  border: 17px solid var(--teal);
  border-bottom: 0;
  border-radius: 68px 68px 0 0;
  display: grid;
  place-items: center;
  box-shadow: inset 0 8px 18px #087f8010;
}
.door-arch span {
  font-family: var(--serif);
  font-size: 78px;
  color: var(--teal);
  letter-spacing: -4px;
  margin-top: 20px;
}
.door-art i {
  position: absolute;
  background: var(--coral);
  height: 16px;
  border-radius: 8px;
  width: 38px;
}
.knock-one {
  left: 213px;
  top: 29px;
  transform: rotate(-45deg);
}
.knock-two {
  left: 228px;
  top: 79px;
}
.door-floor {
  position: absolute;
  width: 205px;
  border-bottom: 2px solid #cdded7;
  top: 248px;
  left: 24px;
}
.story-foot {
  font-size: 0.79rem;
  color: #53706b;
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 20px;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 70px 40px;
}
.login-box {
  width: 100%;
  max-width: 370px;
  margin-top: -20px;
}
.small-label {
  font-size: 0.7rem;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: #73828b;
  display: flex;
  gap: 8px;
  align-items: center;
}
.small-label svg {
  width: 16px;
  height: 16px;
}
.login-box h2 {
  font-size: 2rem;
  letter-spacing: -1px;
  margin: 23px 0 9px;
}
.login-box form {
  margin-top: 32px;
}
.password-label {
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.password-label .text-button {
  margin-bottom: 5px;
}
.login-submit {
  width: 100%;
  justify-content: space-between;
  margin-top: 23px;
  min-height: 50px;
}
.login-box .form-error {
  margin-top: 16px;
}
.access-note {
  font-size: 0.79rem;
  color: #73818a;
  line-height: 1.85;
  text-align: center;
  margin: 25px 0;
}
.login-footer {
  position: absolute;
  bottom: 28px;
  font-size: 0.76rem;
  color: #7b8991;
}
.login-footer span {
  padding: 0 8px;
  color: #b2c0c4;
}
/* Private workspace. */
.sidebar {
  width: 244px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.sidebar > .brand {
  margin-left: -7px;
  margin-bottom: 27px;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}
.workspace-avatar {
  width: 32px;
  height: 32px;
  background: #edf5f2;
  color: var(--teal);
  border: 1px solid #dcebe5;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}
.workspace-label small {
  display: block;
  font-size: 0.7rem;
  color: #7b8890;
  font-weight: 400;
  margin-top: 4px;
}
.workspace-label svg {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: #8a969c;
}
.nav-label {
  font-size: 0.65rem;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: #87939a;
  margin: 30px 12px 13px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 12px;
  border-radius: 8px;
  color: #64747d;
  font-size: 0.86rem;
  font-weight: 550;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  min-height: 46px;
}
.nav-item + .nav-item {
  margin-top: 7px;
}
.nav-item svg {
  width: 18px;
  height: 18px;
}
.nav-item:hover {
  background: #f5f8f8;
}
.nav-item.active {
  background: #eaf4f2;
  color: var(--teal-dark);
  font-weight: 650;
}
.nav-count {
  font-size: 0.7rem;
  margin-left: auto;
  color: #7b878e;
  min-width: 20px;
  text-align: center;
  background: #f0f3f4;
  border-radius: 5px;
  padding: 3px 5px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.pilot-note {
  border-bottom: 1px solid var(--line);
  font-size: 0.77rem;
  padding: 20px 10px;
  color: var(--teal-dark);
  font-weight: 600;
}
.pilot-note .little-dot {
  margin-right: 5px;
}
.pilot-note p {
  font-size: 0.75rem;
  font-weight: 400;
  color: #7a8990;
  line-height: 1.7;
  margin-top: 9px;
}
.logout {
  margin-top: 12px;
}
.app-body {
  margin-left: 244px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  font-size: 0.79rem;
  color: #859099;
  gap: 20px;
}
.topbar strong {
  color: #41545f;
  font-weight: 550;
}
.breadcrumb-divider {
  margin: 0 14px;
  color: #c1c9cf;
}
.private-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e3e9e7;
  background: #fcfefd;
  border-radius: 30px;
  padding: 7px 11px;
  color: #697f76;
  font-size: 0.7rem;
}
.private-badge .little-dot {
  width: 5px;
  height: 5px;
}
.main-content {
  max-width: 1490px;
  padding: 40px 38px 20px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 29px;
}
.page-heading h1 {
  margin-bottom: 11px;
}
.page-heading > .button {
  margin-top: 24px;
}
.setup-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f5f6;
  border: 1px solid #dce6e8;
  border-radius: 10px;
  padding: 15px 17px;
  margin-bottom: 24px;
  color: #5d737c;
  font-size: 0.8rem;
  line-height: 1.7;
}
.setup-banner p {
  flex: 1;
}
.setup-banner strong {
  font-weight: 600;
  color: #395c66;
}
.banner-symbol {
  border: 1.5px solid #7d9da5;
  color: #658992;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.75rem;
  text-align: center;
  line-height: 15px;
  flex: none;
  font-family: var(--serif);
  font-weight: bold;
}
.outline-badge {
  font-size: 0.6rem;
  letter-spacing: 0.8px;
  white-space: nowrap;
  border: 1px solid #cddce0;
  border-radius: 5px;
  padding: 3px 7px;
  color: #65808a;
  font-weight: 650;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 29px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.stat > span {
  font-size: 0.78rem;
  color: #657781;
  font-weight: 550;
}
.stat > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 11px;
  gap: 8px;
}
.stat strong {
  font-size: 2rem;
  letter-spacing: -0.8px;
  font-weight: 600;
  line-height: 1.2;
}
.stat strong.stat-word {
  font-size: 1.6rem;
}
.stat svg {
  width: 19px;
  height: 19px;
  color: #9aaaae;
}
.stat small {
  font-size: 0.7rem;
  color: #859199;
  line-height: 1.6;
}
.stat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}
.stat-dot.teal {
  background: #78b8aa;
  box-shadow: 0 0 0 5px #edf6f3;
}
.stat-dot.coral {
  background: #eeb294;
  box-shadow: 0 0 0 5px #fcf3ee;
}
.journeys-panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  overflow: hidden;
  scroll-margin-top: 25px;
}
.section-heading {
  padding: 23px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-heading p {
  font-size: 0.79rem;
  margin-top: 5px;
}
.count-badge {
  font-size: 0.67rem;
  color: #74858d;
  background: #f1f4f5;
  border: 1px solid #e9edef;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 500;
}
.section-caption {
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 1px;
  color: #95a0a7;
}
.empty-state {
  text-align: center;
  padding: 36px 24px 31px;
}
.empty-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  height: 78px;
  margin: 0 auto 18px;
}
.mini-page {
  width: 50px;
  height: 62px;
  border: 1.5px solid #c5d7d4;
  border-radius: 6px;
  background: #fbfdfc;
  padding: 13px 8px;
  transform: rotate(-7deg);
}
.mini-page i {
  display: block;
  height: 3px;
  background: #dbe6e3;
  margin-bottom: 6px;
  border-radius: 2px;
}
.mini-page i:nth-child(2) {
  width: 70%;
}
.mini-page b {
  display: block;
  background: #a7d0c4;
  width: 20px;
  height: 10px;
  margin-top: 7px;
  border-radius: 3px;
}
.path-dots {
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: #a9c4ba;
}
.mini-door {
  font-family: var(--serif);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  border: 5px solid #7db4a7;
  border-bottom: 0;
  border-radius: 23px 23px 0 0;
  width: 44px;
  height: 59px;
  transform: rotate(5deg);
}
.empty-state h3 {
  margin-bottom: 10px;
}
.empty-state p {
  color: #7a8991;
  font-size: 0.84rem;
  line-height: 1.8;
}
.empty-state .button {
  margin-top: 23px;
  font-size: 0.8rem;
}
.empty-caption {
  display: block;
  font-size: 0.69rem;
  color: #94a0a6;
  margin-top: 18px;
}
.loading-state {
  padding: 100px 20px;
  text-align: center;
  color: #7b8b93;
  font-size: 0.9rem;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-top: 22px;
}
.scope-card,
.activity-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px 24px;
}
.compact {
  border: 0;
  padding: 0;
}
.scope-card h2,
.activity-card h2 {
  font-size: 0.92rem;
}
.scope-card > p {
  color: #7a8a92;
  font-size: 0.79rem;
  line-height: 1.85;
  margin: 12px 0 16px;
  max-width: 460px;
}
.small-door {
  font-size: 1.2rem;
  color: #9badae;
}
.scope-tags {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.68rem;
  color: #788d8e;
}
.scope-tags span:nth-child(odd) {
  border: 1px solid #e0e8e7;
  border-radius: 5px;
  padding: 5px 9px;
  background: #f8fbfa;
}
.activity-card > #activity {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.activity-dot {
  width: 8px;
  height: 8px;
  background: #b7c6cc;
  border-radius: 50%;
  margin-top: 5px;
  flex: none;
}
.activity-card strong {
  font-size: 0.79rem;
  font-weight: 550;
}
.activity-card p {
  font-size: 0.75rem;
  color: #839098;
  line-height: 1.8;
  margin-top: 4px;
}
.dashboard-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  font-size: 0.66rem;
  color: #94a0a6;
  padding: 0 3px;
}
.footer-dot {
  padding: 0 10px;
  color: #c0cbcd;
}
.journey-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.journey-row:last-child {
  border-bottom: 0;
}
.journey-row h3 {
  font-size: 0.96rem;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.journey-path {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #74858e;
  line-height: 1.6;
}
.journey-path a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.journey-meta {
  font-size: 0.7rem;
  color: #89969e;
  margin-top: 10px;
  line-height: 1.7;
}
.journey-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  align-self: start;
}
.status-pill {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid #e0e6e9;
  border-radius: 30px;
  font-size: 0.68rem;
  color: #7a8991;
  background: #f7f9fa;
  white-space: nowrap;
}
.remove-button {
  background: transparent;
  border: 1px solid #e5e9ed;
  color: #87949b;
  padding: 8px;
  display: flex;
  border-radius: 7px;
}
.remove-button:hover {
  background: #fff0ec;
  color: #96372b;
}
.remove-button svg {
  width: 16px;
  height: 16px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  width: calc(100% - 32px);
  max-width: 500px;
  box-shadow: 0 20px 80px #172c3b30;
  color: var(--ink);
  max-height: 90svh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #122f3c70;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 15px;
}
.dialog-heading h2 {
  font-size: 1.5rem;
}
.dialog-heading .eyebrow {
  font-size: 0.66rem;
  margin-bottom: 7px;
}
.close-button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  background: white;
  font-size: 1.5rem;
  color: #7c8b94;
}
.field-note {
  font-size: 0.76rem;
  color: #7c8d96;
  line-height: 1.7;
  margin-top: 12px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}
dialog .form-error {
  margin-top: 15px;
}
#delete-dialog > p {
  margin-top: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
@media (min-width: 1500px) {
  .main-content {
    padding-top: 48px;
  }
  .empty-state {
    padding-top: 50px;
    padding-bottom: 43px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 215px;
    padding: 20px 14px;
  }
  .app-body {
    margin-left: 215px;
  }
  .main-content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat small {
    font-size: 0.67rem;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading h1 {
    font-size: 1.8rem;
  }
  .setup-banner {
    flex-wrap: wrap;
  }
  .outline-badge {
    display: none;
  }
  .login-story {
    padding: 30px 36px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 190px;
    padding: 20px 10px;
  }
  .sidebar > .brand img {
    width: 167px;
  }
  .workspace-label {
    font-size: 0.75rem;
  }
  .workspace-label svg {
    display: none;
  }
  .app-body {
    margin-left: 190px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading {
    flex-direction: column;
    gap: 18px;
  }
  .page-heading > .button {
    margin: 0;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .stat small {
    font-size: 0.73rem;
  }
  .section-caption {
    display: none;
  }
  .login-story {
    padding: 28px;
  }
  .story-content h1 {
    font-size: 3rem;
  }
  .door-art {
    margin-left: -10px;
  }
  .login-panel {
    padding: 50px 28px;
  }
  .login-box h2 {
    font-size: 1.8rem;
  }
  .journey-row {
    grid-template-columns: 1fr;
  }
  .journey-actions {
    justify-content: space-between;
  }
}
@media (max-width: 600px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .sidebar > .brand {
    margin: 0 auto 0 -10px;
  }
  .sidebar > .brand img {
    width: 154px;
    height: 49px;
  }
  .workspace-label,
  .nav-label,
  .sidebar nav,
  .pilot-note {
    display: none;
  }
  .sidebar-bottom {
    margin: 0;
    padding: 0;
  }
  .logout {
    margin: 0;
    width: auto;
    padding: 10px;
    font-size: 0.78rem;
  }
  .logout svg {
    width: 17px;
  }
  .app-body {
    margin: 0;
  }
  .topbar {
    height: 53px;
    padding: 0 20px;
    font-size: 0.72rem;
  }
  .private-badge {
    font-size: 0.6rem;
    padding: 5px 8px;
  }
  .main-content {
    padding: 26px 20px 24px;
  }
  .eyebrow {
    font-size: 0.65rem;
  }
  .page-heading h1 {
    font-size: 1.85rem;
    max-width: 310px;
  }
  .page-heading > .button {
    width: 100%;
  }
  .page-heading .muted {
    font-size: 0.86rem;
  }
  .setup-banner {
    padding: 12px;
    align-items: start;
    font-size: 0.74rem;
    gap: 9px;
  }
  .banner-symbol {
    margin-top: 3px;
  }
  .stats {
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 17px 14px;
  }
  .stat > span {
    font-size: 0.72rem;
  }
  .stat strong {
    font-size: 1.8rem;
  }
  .stat strong.stat-word {
    font-size: 1.45rem;
  }
  .stat small {
    font-size: 0.68rem;
  }
  .section-heading {
    padding: 20px;
  }
  .section-heading h2 {
    font-size: 1rem;
  }
  .empty-state {
    padding: 30px 17px;
  }
  .empty-state h3 {
    font-size: 1.1rem;
  }
  .empty-state p {
    font-size: 0.78rem;
  }
  .desktop-break {
    display: none;
  }
  .bottom-grid {
    gap: 16px;
  }
  .scope-card,
  .activity-card {
    padding: 21px;
  }
  .dashboard-footer {
    font-size: 0.63rem;
    flex-direction: column;
    gap: 9px;
  }
  .journey-row {
    padding: 20px;
    gap: 14px;
  }
  .login-layout {
    display: block;
  }
  .login-story {
    min-height: 0;
    padding: 14px 28px;
    background: #edf3f1;
  }
  .login-brand {
    margin-left: -15px;
  }
  .login-brand img {
    width: 180px;
    height: 57px;
  }
  .story-content,
  .story-foot {
    display: none;
  }
  .login-panel {
    min-height: calc(100svh - 85px);
    padding: 60px 28px 90px;
    align-items: flex-start;
  }
  .login-box {
    margin: 0;
    max-width: 390px;
  }
  .login-box h2 {
    font-size: 2rem;
  }
  .login-footer {
    bottom: 25px;
  }
  dialog {
    padding: 24px;
  }
  .dialog-actions .button {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
