:root {
  --paper: #f0ead6; /* eggshell: one background for pages and sidebars */
  --surface: #fbfaf7;
  --ink: #242722;
  --muted: #777a71;
  --line: #ddd9cf;
  --accent: #bc5d3f;
  --accent-soft: #f0ddd5;
  --moss: #6d8062;
  --moss-soft: #dde4d8;
  --blue: #557689;
  --shadow: 0 18px 50px rgba(46, 44, 38, 0.1);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  min-width: 320px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 26px 18px 20px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 24px;
  font-family: "Newsreader", serif;
  font-size: 25px;
  font-weight: 500;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 50%;
  font-size: 18px;
  font-style: italic;
}
.compose {
  border: 0;
  background: var(--ink);
  color: var(--surface);
  height: 43px;
  border-radius: 9px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}
.compose kbd {
  margin-left: auto;
  color: #bcbeb7;
}
.nav-group {
  margin-top: 28px;
}
.nav-label,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 600;
  color: #8d8f86;
  margin: 0 8px 8px;
}
.nav-item {
  border: 0;
  background: transparent;
  width: 100%;
  height: 39px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  color: #65675f;
  text-align: left;
  margin: 2px 0;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}
.nav-item.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.nav-item .icon {
  width: 18px;
  text-align: center;
  font-size: 17px;
}
.nav-item .count {
  margin-left: auto;
  font-size: 11px;
  background: #e4e1da;
  padding: 2px 6px;
  border-radius: 10px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.dot.moss {
  background: var(--moss);
}
.dot.ink {
  background: #353c40;
}
.sidebar-bottom {
  margin-top: auto;
}
.integration-link {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 32px 1fr 10px;
  align-items: center;
  text-align: left;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 8px;
}
.integration-link:hover {
  background: rgba(255, 255, 255, 0.45);
}
.integration-link .stack-icon {
  width: 31px;
  height: 31px;
  background: var(--moss-soft);
  color: var(--moss);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.integration-link strong,
.integration-link small,
.user strong,
.user small {
  display: block;
}
.integration-link strong,
.user strong {
  font-size: 13px;
}
.integration-link small,
.user small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.user {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding: 17px 7px 0;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d9b6a9;
  color: #633c2f;
  font-size: 11px;
  font-weight: 600;
}
.user button,
.header-actions button,
.card-top button {
  border: 0;
  background: transparent;
}
.main {
  min-width: 0;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 42px;
  gap: 16px;
  background: rgba(240, 234, 214, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.date-chip {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse {
  width: 7px;
  height: 7px;
  background: var(--moss);
  border-radius: 50%;
}
.search-trigger {
  margin-left: auto;
  width: 250px;
  height: 36px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  text-align: left;
  color: #92948c;
  padding: 0 11px;
}
.search-trigger kbd {
  float: right;
  font-size: 10px;
  border: 1px solid #d5d2ca;
  border-radius: 4px;
  padding: 2px 5px;
}
.header-actions {
  display: flex;
  gap: 6px;
}
.header-actions button {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  position: relative;
}
.header-actions button:hover {
  background: var(--surface);
  border-color: var(--line);
}
.header-actions i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  right: 7px;
  top: 7px;
}
.mobile-menu {
  display: none;
  border: 0;
  background: transparent;
  font-size: 20px;
}
.content {
  max-width: 1300px;
  margin: auto;
  padding: 48px 44px 70px;
}
.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
}
.hero .eyebrow {
  margin-left: 1px;
}
.hero h1 {
  font-family: "Newsreader", serif;
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
  margin: 12px 0 9px;
  letter-spacing: -0.02em;
}
.hero-copy {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}
.focus-score {
  position: relative;
  width: 64px;
  height: 64px;
}
.focus-score svg {
  width: 64px;
  height: 64px;
  transform: rotate(-90deg);
}
.focus-score circle {
  fill: none;
  stroke: #dfdbd1;
  stroke-width: 3;
}
.focus-score .progress-ring {
  stroke: var(--moss);
  stroke-dasharray: 110 145;
  stroke-linecap: round;
}
.focus-score span {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.focus-score b {
  font-size: 13px;
}
.focus-score small {
  font-size: 9px;
  color: var(--muted);
}
.briefing-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 1.25fr;
  gap: 14px;
}
.brief-card,
.rail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px;
  box-shadow: 0 2px 2px rgba(49, 47, 39, 0.02);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20px;
}
.card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}
.trend {
  font-size: 11px;
  color: var(--moss);
  background: var(--moss-soft);
  padding: 4px 7px;
  border-radius: 12px;
}
.time-block {
  margin-top: 25px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--accent);
}
.time-block strong {
  font-family: "Newsreader", serif;
  font-size: 27px;
  font-weight: 500;
}
.time-block span {
  font-size: 10px;
}
.brief-card h2 {
  font-family: "Newsreader", serif;
  font-size: 22px;
  font-weight: 500;
  margin: 4px 0;
}
.brief-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.attendees {
  display: flex;
  margin: 20px 0 17px;
}
.avatar.mini {
  width: 27px;
  height: 27px;
  border: 2px solid var(--surface);
  margin-left: -6px;
}
.avatar.mini:first-child {
  margin-left: 0;
}
.a2 {
  background: #c2cec2;
  color: #435447;
}
.a3 {
  background: #c3cbd3;
  color: #3f5263;
}
.avatar.more {
  background: #e3e1da;
  color: #62645e;
}
.join-btn {
  height: 34px;
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
}
.join-btn:hover {
  background: var(--ink);
  color: white;
}
.momentum-number {
  margin-top: 30px;
}
.momentum-number span {
  font-family: "Newsreader", serif;
  font-size: 39px;
}
.momentum-number small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: -3px;
}
.bar {
  height: 5px;
  background: #e5e2db;
  border-radius: 5px;
  margin: 16px 0 14px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: var(--moss);
  border-radius: 5px;
}
.week-dots {
  height: 51px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  align-items: end;
}
.week-dots span {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  font-size: 9px;
  color: #a0a198;
}
.week-dots i {
  width: 100%;
  max-width: 18px;
  background: #dddcd5;
  border-radius: 3px 3px 0 0;
  margin-bottom: 5px;
}
.week-dots .current {
  color: var(--ink);
}
.week-dots .current i {
  background: var(--accent);
}
.activity .card-top button {
  font-size: 11px;
  color: var(--accent);
}
.activity ul {
  list-style: none;
  padding: 9px 0 0;
  margin: 0;
}
.activity li {
  display: grid;
  grid-template-columns: 31px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #e5e2db;
}
.activity li:last-child {
  border: 0;
  padding-bottom: 0;
}
.activity li strong,
.activity li small {
  display: block;
}
.activity li strong {
  font-size: 12px;
  font-weight: 500;
}
.activity li small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.app-icon {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.gmail {
  background: #f8e4df;
  color: #c34f39;
}
.outlook {
  background: #dceaf1;
  color: #32749a;
}
.slack {
  background: #e7deeb;
  color: #7e4d81;
}
.notion {
  background: #e4e3df;
  color: #363832;
}
.drive {
  background: #e1ebdf;
  color: #4d804a;
}
.teams {
  background: #e3e1f3;
  color: #635eae;
}
.salesforce {
  background: #dceef4;
  color: #2583a5;
}
.dropbox {
  background: #e0e9fa;
  color: #3769c4;
}
.work-section {
  margin-top: 45px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 13px;
}
.section-heading .eyebrow {
  margin-left: 0;
}
.section-heading h2 {
  font-family: "Newsreader", serif;
  font-size: 28px;
  font-weight: 500;
  margin: 7px 0 0;
}
.view-controls {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: #eeebe4;
}
.view-controls button {
  border: 0;
  background: transparent;
  padding: 6px 11px;
  border-radius: 5px;
  font-size: 11px;
  color: var(--muted);
}
.view-controls button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.view-controls .filter-btn {
  border-left: 1px solid var(--line);
  border-radius: 0;
  margin-left: 4px;
}
.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
}
.task-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.group-title {
  padding: 15px 19px 9px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  gap: 8px;
}
.group-title small {
  font-weight: 400;
  color: var(--muted);
}
.task {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 60px;
  gap: 10px;
  padding: 15px 18px;
  border-top: 1px solid #e8e5de;
  transition: 0.25s;
}
.task:hover {
  background: #faf8f4;
}
.check {
  width: 18px;
  height: 18px;
  border: 1px solid #bcbdb7;
  border-radius: 50%;
  background: transparent;
  margin-top: 2px;
  position: relative;
}
.task.completed {
  opacity: 0.48;
}
.task.completed strong {
  text-decoration: line-through;
}
.task.completed .check {
  background: var(--moss);
  border-color: var(--moss);
}
.task.completed .check:after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 11px;
  left: 3px;
  top: 0;
}
.task-body strong {
  font-size: 13px;
  font-weight: 500;
}
.task-body p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 10px;
}
.task-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.tag {
  padding: 3px 7px;
  border-radius: 10px;
}
.tag.launch {
  background: var(--accent-soft);
  color: #8f4934;
}
.tag.client {
  background: var(--moss-soft);
  color: #53654c;
}
.tag.studio {
  background: #e0e5e7;
  color: #4d6169;
}
.source {
  align-self: center;
  text-align: center;
}
.source .app-icon {
  margin: auto;
}
.source small {
  font-size: 9px;
  color: var(--muted);
}
.right-rail {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.rail-card {
  padding: 18px;
}
.rail-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
}
.rail-head button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 10px;
}
.timeline {
  margin-top: 21px;
}
.event {
  display: grid;
  grid-template-columns: 35px 3px 1fr;
  gap: 10px;
  min-height: 61px;
  position: relative;
}
.event time {
  font-size: 10px;
  color: var(--muted);
}
.event i {
  width: 3px;
  height: 40px;
  border-radius: 3px;
  background: var(--accent);
}
.event i.moss {
  background: var(--moss);
}
.event i.ink {
  background: #3d4c52;
}
.event strong,
.event small {
  display: block;
}
.event strong {
  font-size: 11px;
  font-weight: 500;
}
.event small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.rail-card.insight {
  display: flex;
  gap: 12px;
  background: #e8e2d7;
}
.spark {
  color: var(--accent);
  font-size: 20px;
}
.insight strong {
  font-family: "Newsreader", serif;
  font-size: 17px;
}
.insight p {
  font-size: 11px;
  color: #6e6d65;
  line-height: 1.45;
  margin: 5px 0 10px;
}
.insight button {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-size: 11px;
  font-weight: 600;
}
.modal,
.command-dialog,
.new-item-dialog {
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0;
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(35, 36, 32, 0.38);
  backdrop-filter: blur(3px);
}
.modal {
  width: min(760px, calc(100% - 28px));
  max-height: 88vh;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  padding: 28px 30px 20px;
}
.modal-header .eyebrow {
  margin-left: 0;
}
.modal-header h2 {
  font-family: "Newsreader", serif;
  font-size: 30px;
  font-weight: 500;
  margin: 6px 0;
}
.modal-header p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.close {
  border: 0;
  background: transparent;
  font-size: 25px;
  color: var(--muted);
  align-self: start;
}
.connector-search {
  margin: 0 30px 18px;
  border: 1px solid var(--line);
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}
.connector-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 13px;
}
.connector-grid {
  padding: 0 30px 27px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.connector {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  display: grid;
  grid-template-columns: 39px 1fr auto;
  align-items: center;
  gap: 10px;
}
.app-icon.large {
  width: 39px;
  height: 39px;
  border-radius: 10px;
  font-size: 15px;
}
.connector strong,
.connector small {
  display: block;
}
.connector strong {
  font-size: 12px;
}
.connector small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.connector button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 10px;
}
.connector button.connected {
  border-color: transparent;
  background: var(--moss-soft);
  color: #526849;
}
.modal-footer {
  border-top: 1px solid var(--line);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.modal-footer button,
.primary {
  border: 0;
  background: var(--ink);
  color: white;
  border-radius: 7px;
  padding: 8px 18px;
}
.command-dialog {
  width: min(560px, calc(100% - 28px));
  margin-top: 14vh;
}
.command-input {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
}
.command-input input {
  border: 0;
  outline: 0;
  font-size: 15px;
  background: transparent;
}
.command-input kbd {
  font-size: 9px;
  color: var(--muted);
}
.command-results {
  padding: 11px;
}
.command-results p {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 8px;
}
.command-results button {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 11px;
  display: grid;
  grid-template-columns: 27px 1fr auto;
  text-align: left;
}
.command-results button:hover {
  background: #eeebe4;
}
.command-results b {
  font-size: 12px;
  font-weight: 500;
}
.command-results kbd {
  font-size: 9px;
  color: var(--muted);
}
.new-item-dialog {
  width: min(500px, calc(100% - 28px));
}
.new-item-dialog form > label,
.form-row label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
}
.new-item-dialog form > label,
.form-row,
.form-actions {
  margin-left: 30px;
  margin-right: 30px;
}
.new-item-dialog input,
.new-item-dialog select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 11px;
  outline: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 23px 0;
}
.form-actions button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 7px;
  padding: 8px 16px;
}
.form-actions .primary {
  background: var(--ink);
  border-color: var(--ink);
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--ink);
  color: white;
  border-radius: 9px;
  padding: 11px 15px;
  font-size: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.25s;
  z-index: 50;
}
.toast.show {
  opacity: 1;
  transform: none;
}
@media (max-width: 1050px) {
  .briefing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .activity {
    grid-column: 1/-1;
  }
  .activity ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .activity li {
    border-bottom: 0;
  }
  .work-layout {
    grid-template-columns: 1fr;
  }
  .right-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: -260px;
    z-index: 30;
    width: 244px;
    transition: 0.25s;
    box-shadow: var(--shadow);
  }
  .sidebar.open {
    left: 0;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    padding: 0 18px;
  }
  .date-chip {
    display: none;
  }
  .search-trigger {
    width: auto;
    flex: 1;
  }
  .search-trigger kbd {
    display: none;
  }
  .content {
    padding: 32px 18px 55px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .briefing-grid {
    grid-template-columns: 1fr;
  }
  .activity {
    grid-column: auto;
  }
  .activity ul {
    display: block;
  }
  .activity li {
    border-bottom: 1px solid #e5e2db;
  }
  .work-layout {
    display: block;
  }
  .right-rail {
    display: grid;
    margin-top: 14px;
  }
  .connector-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    max-height: 92vh;
  }
  .connector-grid {
    max-height: 49vh;
    overflow: auto;
  }
  .section-heading {
    align-items: start;
    gap: 14px;
  }
  .view-controls .filter-btn {
    display: none;
  }
}
@media (max-width: 520px) {
  .hero {
    align-items: center;
  }
  .hero-copy {
    max-width: 245px;
  }
  .focus-score {
    display: none;
  }
  .right-rail {
    grid-template-columns: 1fr;
  }
  .view-controls button:nth-child(2) {
    display: none;
  }
  .task {
    grid-template-columns: 25px 1fr;
  }
  .source {
    display: none;
  }
  .connector-grid,
  .modal-header {
    padding-left: 18px;
    padding-right: 18px;
  }
  .connector-search {
    margin-left: 18px;
    margin-right: 18px;
  }
  .modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .modal-footer span {
    display: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .new-item-dialog form > label,
  .form-row,
  .form-actions {
    margin-left: 18px;
    margin-right: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.workspace-switch {
  text-decoration: none;
  color: var(--ink);
}
.workspace-switch:visited {
  color: var(--ink);
}
.workspace-switch b {
  font-size: 15px;
  color: var(--muted);
  font-weight: 400;
}
.workspace-switch:hover b {
  color: var(--accent);
}

/* LOCATION: professional workspace. SCOPE: .alba-workspace only.
   RISK: expanded navigation and board need narrow-screen layout.
   ROLLBACK: remove this block and restore index.html/app.js. */
.alba-workspace .sidebar {
  overflow-y: auto;
}
.alba-workspace .nav-group {
  margin-top: 18px;
}
.alba-workspace .nav-item {
  height: auto;
  min-height: 32px;
  font-size: 12px;
  padding: 7px 10px;
}
.alba-workspace .sidebar-bottom {
  padding-top: 20px;
}
.alba-workspace .topbar {
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr) auto;
}
.alba-workspace .search-trigger {
  justify-self: center;
  margin: 0;
  width: min(100%, 300px);
}
.alba-workspace .header-actions button {
  width: auto;
  padding: 0 8px;
  font-size: 11px;
}
.home-menu {
  display: flex;
  gap: 12px;
}
.home-menu button {
  border: 0;
  background: transparent;
  font-size: 12px;
}
.alba-workspace
  :is(
    .brief-card,
    .rail-card,
    .task-list,
    .compose,
    .nav-item,
    .search-trigger,
    .connector,
    .modal,
    .new-item-dialog,
    .command-dialog,
    .join-btn,
    .view-controls,
    .panel,
    input,
    select,
    textarea
  ) {
  border-radius: 1.3px;
}
.alba-workspace .briefing-grid {
  grid-template-columns: 1fr 1.3fr;
}
.alba-workspace [hidden] {
  display: none !important;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  margin: 18px 0;
}
.page-title {
  font-family: Newsreader, serif;
  font-size: 36px;
  font-weight: 400;
}
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.page-grid .panel {
  margin: 0;
}
.panel label {
  display: block;
  margin: 12px 0;
  font-size: 13px;
}
.panel input,
.panel select,
.panel textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px;
  margin-top: 6px;
  background: var(--surface);
}
.panel button,
.panel a {
  display: inline-block;
  margin: 8px 8px 0 0;
}
.folder-tree ul {
  padding-left: 24px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: transparent;
  border: 0;
  overflow: visible;
}
.kanban-column {
  background: #ebe7de;
  padding: 12px;
  min-width: 0;
}
.kanban-column h3 {
  font-size: 12px;
  margin: 0 0 12px;
}
.kanban .task {
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 8px 0;
  padding: 12px;
  grid-template-columns: 18px 1fr;
  gap: 8px;
}
.kanban .source {
  display: none;
}
.task-status {
  font-size: 10px;
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--line);
  padding: 5px;
}
.alba-workspace .work-layout {
  grid-template-columns: minmax(0, 1fr) 230px;
}
.prototype-note {
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .alba-workspace .date-chip {
    display: none;
  }
  .alba-workspace .topbar {
    grid-template-columns: auto 1fr auto;
  }
  .alba-workspace .work-layout {
    grid-template-columns: 1fr;
  }
  .alba-workspace .activity {
    grid-column: auto;
  }
}
@media (max-width: 760px) {
  .alba-workspace .topbar {
    grid-template-columns: auto auto 1fr auto;
    padding: 0 12px;
    gap: 8px;
  }
  .alba-workspace .briefing-grid {
    grid-template-columns: 1fr;
  }
  .alba-workspace .kanban {
    grid-template-columns: 1fr;
  }
  .alba-workspace .home-menu {
    gap: 6px;
  }
  .alba-workspace .header-actions {
    display: none;
  }
  .alba-workspace .view-controls button:nth-child(2) {
    display: block;
  }
}

/* LOCATION: professional workspace tiles. SCOPE: .alba-workspace only.
   RISK: hover lift on kanban cards; motion disabled for reduced-motion users.
   ROLLBACK: remove this block. */
.alba-workspace {
  --float: 0 1px 1px rgba(46, 44, 38, 0.03), 0 6px 12px -4px rgba(46, 44, 38, 0.06),
    0 18px 32px -10px rgba(46, 44, 38, 0.12), 0 34px 60px -24px rgba(46, 44, 38, 0.16);
  --float-hover: 0 2px 2px rgba(46, 44, 38, 0.03), 0 10px 18px -6px rgba(46, 44, 38, 0.08),
    0 26px 44px -12px rgba(46, 44, 38, 0.15), 0 48px 80px -28px rgba(46, 44, 38, 0.2);
}
.alba-workspace :is(.brief-card, .rail-card, .panel, .task-list:not(.kanban), .kanban .task) {
  border-color: rgba(221, 217, 207, 0.55);
  box-shadow: var(--float);
  transform: translateY(0);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.25s;
}
.alba-workspace :is(.brief-card, .rail-card, .page-grid .panel, .kanban .task):hover {
  transform: translateY(-4px);
  box-shadow: var(--float-hover);
}
.alba-workspace .kanban .task {
  margin: 12px 0;
}
.alba-workspace .kanban .task:hover {
  background: var(--surface);
}
.alba-workspace .kanban-column {
  background: rgba(235, 231, 222, 0.6);
  border: 2px solid #fff; /* white outline around To do / In progress / Completed */
}
@media (prefers-reduced-motion: reduce) {
  .alba-workspace :is(.brief-card, .rail-card, .panel, .task-list, .kanban .task) {
    transition: none;
  }
  .alba-workspace :is(.brief-card, .rail-card, .page-grid .panel, .kanban .task):hover {
    transform: none;
  }
}

/* LOCATION: sidebar brand, both workspaces. SCOPE: .brand-logo only.
   ROLLBACK: remove this rule and restore the .brand-mark markup in index.html/personal.html. */
.brand-logo {
  display: block;
  width: 118px;
  height: auto;
  margin-inline: auto;
}

/* LOCATION: Settings & Configuration nav. SCOPE: Client Set-up dropdown.
   ROLLBACK: remove this block and restore the single client-setup nav button. */
.nav-toggle .chevron {
  margin-left: auto;
  font-size: 11px;
  transition: transform 0.2s;
}
.nav-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}
.nav-sub .nav-item {
  padding-left: 26px;
}

/* LOCATION: professional workspace sidebar. SCOPE: .alba-workspace only.
   RISK: sidebar scrolls instead of squashing its contents on short screens.
   ROLLBACK: remove this block. */
.alba-workspace .sidebar > * {
  flex-shrink: 0;
}

/* LOCATION: Today's work heading. SCOPE: .alba-workspace, wider screens only.
   ROLLBACK: remove this block (controls return to the right edge). */
@media (min-width: 761px) {
  .alba-workspace .section-heading {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
  }
  .alba-workspace .section-heading .view-controls {
    justify-self: center;
  }
}

/* LOCATION: professional workspace sidebar. SCOPE: .alba-workspace only.
   Section labels in maroon; the page you're on is underlined in maroon.
   ROLLBACK: remove this block. */
.alba-workspace {
  --maroon: #7a1f2b;
  --maroon-deep: #5e1520;
  --maroon-soft: #f3e3e5;
}
.alba-workspace .nav-label,
.alba-workspace .integration-link strong {
  color: var(--maroon);
}
.alba-workspace .nav-item.active,
.alba-workspace .nav-item.active:hover {
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--maroon);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
/* LOCATION: Alba Pro profile page, profile settings and top bar. SCOPE: .profile-*, .photo-upload, .has-photo, .alba-workspace .topbar .search-trigger.
   Profile photo, extra profile fields, and a search bar that stops at a fixed width so Profile, Notifications and Help have room.
   ROLLBACK: remove this block, the Profile button in index.html and the profile code in professional.js. */
.alba-workspace .topbar .search-trigger {
  justify-self: start;
  width: min(100%, 730px);
}
.profile-photo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--accent-soft, #f0ddd5);
  color: var(--maroon, #7a1f2b);
  font-size: 28px;
  font-weight: 600;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-photo-row,
.profile-card {
  display: flex;
  align-items: center;
  gap: 22px;
}
.profile-card {
  align-items: flex-start;
}
.profile-photo-row {
  margin-bottom: 18px;
}
.photo-upload {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line, #ddd9cf);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.profile-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px 24px;
  margin: 16px 0 20px;
}
.profile-facts dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #777a71);
}
.profile-facts dd {
  margin: 2px 0 0;
}
.profile-section {
  margin: 0 0 18px;
}
.profile-section h3,
.favorites-editor .field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #777a71);
}
.profile-about {
  margin: 4px 0 0;
  max-width: 60ch;
  white-space: pre-wrap;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line, #ddd9cf);
  border-radius: 6px;
  background: var(--surface, #fff);
  font-size: 14px;
}
.chip-x {
  border: 0;
  background: transparent;
  color: var(--muted, #777a71);
  font-size: 16px;
  line-height: 1;
  padding: 0 0 0 2px;
  cursor: pointer;
}
.chip-x:hover {
  color: var(--maroon, #7a1f2b);
}
.favorites-editor {
  margin: 4px 0 14px;
}
.favorites-editor .prototype-note {
  margin: 2px 0 6px;
}
.favorites-add {
  display: flex;
  gap: 8px;
  align-items: center;
}
.panel .favorites-add input {
  flex: 1;
  margin: 0;
}
.feed-post {
  max-width: 760px;
  margin: 0 0 14px;
}
.feed-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feed-head > div:nth-child(2) {
  flex: 1;
}
.feed-head small {
  display: block;
  color: var(--muted, #777a71);
  font-size: 12px;
}
.feed-verb {
  color: var(--muted, #777a71);
}
.feed-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--accent-soft, #f0ddd5);
  color: var(--maroon, #7a1f2b);
  font-size: 14px;
  font-weight: 600;
}
.feed-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-about {
  margin: 12px 0 4px;
  white-space: pre-wrap;
}
.feed-demo {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid var(--line, #ddd9cf);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #777a71);
}
.feed-post .link-btn {
  border: 0;
  background: transparent;
  color: var(--muted, #777a71);
  font-size: 12px;
  cursor: pointer;
}
.feed-post .link-btn:hover {
  color: var(--maroon, #7a1f2b);
}
.avatar.has-photo {
  background-size: cover;
  background-position: center;
}
.alba-workspace .panel textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line, #ddd9cf);
  border-radius: 6px;
  font: inherit;
}

/* Alba Reset wordmark (Water Brush), both workspaces: level, never tilted. */
.brand-logo {
  width: 200px;
}

/* LOCATION: professional workspace top bar. SCOPE: .alba-workspace only.
   The Home / About links were removed; columns are date, search, actions.
   ROLLBACK: remove this block and restore the .home-menu nav in index.html. */
.alba-workspace .topbar {
  grid-template-columns: auto minmax(180px, 1fr) auto;
}
@media (max-width: 1100px) {
  .alba-workspace .topbar {
    grid-template-columns: minmax(180px, 1fr) auto;
  }
}
@media (max-width: 760px) {
  .alba-workspace .topbar {
    grid-template-columns: auto 1fr;
  }
}

/* LOCATION: Today right rail. SCOPE: .time-schedule card only.
   Focus goal (1.5 / 2.5 / 3.5 h), time tracked today, and the schedule in one card.
   ROLLBACK: remove this block and move .focus-score back into .hero in index.html. */
.time-schedule .focus-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.time-schedule .focus-score .progress-ring {
  transition: stroke-dasharray 0.4s ease;
}
.focus-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.focus-options button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--muted);
}
.focus-options button.active {
  background: var(--maroon, #7a1f2b);
  border-color: var(--maroon, #7a1f2b);
  color: #fff;
}
.tracked-today {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  color: var(--muted);
}
.tracked-today b {
  color: var(--ink);
  font-size: 13px;
}
.tracked-today:hover {
  border-color: var(--maroon, #7a1f2b);
}

/* LOCATION: Time Tracker page. SCOPE: .time-page only.
   ROLLBACK: remove this block, the Time Tracker nav button, and the time code in professional.js. */
.time-page .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.time-page .stat {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px 18px;
}
.time-page .stat small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.time-page .stat b {
  display: block;
  font-family: Newsreader, serif;
  font-size: 30px;
  font-weight: 400;
  margin-top: 6px;
}
.time-page .time-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}
.time-page .time-columns .panel {
  margin: 0;
}
.time-page .timer-display {
  font-family: Newsreader, serif;
  font-size: 40px;
  letter-spacing: 0.02em;
  margin: 4px 0 6px;
}
.time-page .timer-display.running {
  color: var(--maroon, #7a1f2b);
}
.time-page .check-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.time-page .check-label input {
  display: inline-block;
  width: auto;
  margin: 0;
}
.time-page .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}
.time-page .form-row label {
  display: block;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 400;
}
.time-page .project-bars {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.time-page .project-bars li {
  margin: 10px 0;
  font-size: 13px;
}
.time-page .project-bars .bar-track {
  height: 6px;
  background: #ebe7de;
  border-radius: 3px;
  margin-top: 5px;
  overflow: hidden;
}
.time-page .project-bars .bar-track span {
  display: block;
  height: 100%;
  background: var(--maroon, #7a1f2b);
}
.time-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.time-page th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.time-page td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.time-page td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.time-page .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
}
.time-page .badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e4e1da;
  color: #65675f;
}
.time-page .badge.billable {
  background: var(--maroon-soft, #f3e3e5);
  color: var(--maroon, #7a1f2b);
}
.time-page .table-wrap {
  overflow-x: auto;
}
.time-page .link-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 0;
  margin: 0;
}
.time-page .link-btn:hover {
  color: var(--maroon, #7a1f2b);
}

/* LOCATION: Programs list, program page and presentation. SCOPE: .program-*, .present-dialog.
   ROLLBACK: remove this block, the presentDialog in index.html, and the Programs code in professional.js. */
.program-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.program-card h2 {
  font-family: Newsreader, serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 6px;
}
.program-card p {
  color: var(--muted);
  margin: 0 0 14px;
}
.program-counts {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.program-head {
  margin-top: -8px;
}
.program-head > p {
  color: var(--muted);
  max-width: 70ch;
}
.program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.secondary-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
  padding: 8px 18px;
}
.program-page .link-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 0;
  margin: 0 0 0 10px;
}
.program-head > .link-btn {
  margin: 0;
  font-size: 12px;
}
.program-page .link-btn:hover {
  color: var(--maroon, #7a1f2b);
}
.program-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}
.program-columns .panel {
  margin: 18px 0 0;
}
.program-columns h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}
.program-count {
  font-size: 11px;
  font-weight: 500;
  background: #e4e1da;
  border-radius: 10px;
  padding: 2px 8px;
}
.program-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.program-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.program-list li > div {
  min-width: 0;
}
.program-list strong,
.program-list a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  overflow-wrap: anywhere;
}
.program-list a {
  color: var(--ink);
}
.program-list small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.program-list li > span {
  white-space: nowrap;
}

.present-dialog {
  width: min(1100px, calc(100% - 28px));
  max-width: none;
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--ink);
}
.present-dialog:fullscreen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.deck {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
.present-dialog:fullscreen .deck {
  flex: 1;
  aspect-ratio: auto;
}
.slide {
  display: none;
  position: absolute;
  inset: 0;
  padding: 6% 8%;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
}
.slide.active {
  display: flex;
}
.slide .eyebrow {
  margin: 0 0 10px;
  color: var(--maroon, #7a1f2b);
}
.slide h1,
.slide h2 {
  font-family: Newsreader, serif;
  font-weight: 400;
  margin: 0 0 16px;
}
.slide h1 {
  font-size: clamp(36px, 6vw, 64px);
}
.slide h2 {
  font-size: clamp(28px, 4vw, 44px);
}
.slide p,
.slide li {
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.5;
}
.slide small {
  color: var(--muted);
  font-size: 13px;
}
.slide a {
  color: var(--ink);
}
.slide-meta {
  color: var(--muted);
}
.slide-title {
  border-left: 6px solid var(--maroon, #7a1f2b);
}
.slide-stats {
  display: flex;
  gap: 40px;
  margin: 8px 0 20px;
}
.slide-stats b {
  display: block;
  font-family: Newsreader, serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
}
.slide-stats span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.slide-image {
  align-items: center;
}
.slide-image img {
  max-width: 100%;
  max-height: 80%;
  object-fit: contain;
}
.deck-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.deck-controls button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 6px 12px;
}
.deck-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}
.deck-controls #deckCount {
  min-width: 52px;
  text-align: center;
  color: var(--muted);
}
.deck-spacer {
  flex: 1;
}
@media (max-width: 600px) {
  .deck-controls {
    flex-wrap: wrap;
  }
  .deck-spacer {
    display: none;
  }
}
@page {
  size: landscape;
  margin: 0;
}
@media print {
  body.printing-deck > :not(#presentDialog) {
    display: none !important;
  }
  body.printing-deck {
    background: white;
  }
  body.printing-deck .present-dialog {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
    overflow: visible;
    box-shadow: none;
  }
  body.printing-deck .present-dialog::backdrop {
    display: none;
  }
  body.printing-deck .deck {
    aspect-ratio: auto;
    overflow: visible;
  }
  body.printing-deck .slide {
    display: flex;
    position: relative;
    height: 100vh;
    break-after: page;
  }
  body.printing-deck .deck-controls {
    display: none;
  }
}

/* LOCATION: Time & Schedule page. SCOPE: .ts-page only (reuses the .time-page stat tiles).
   ROLLBACK: remove this block, the Time & Schedule dropdown in index.html, and the
   Time & Schedule code at the end of professional.js. */
.ts-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}
.ts-columns .panel {
  margin: 0;
}
.ts-columns h2 {
  margin-top: 0;
}
.ts-focus {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ts-focus p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
}
.ts-page .focus-score,
.ts-page .focus-score svg {
  width: 104px;
  height: 104px;
}
.ts-page .focus-score .progress-ring {
  transition: stroke-dasharray 0.4s ease;
}
.ts-page .focus-score b {
  font-family: Newsreader, serif;
  font-size: 22px;
  font-weight: 400;
}
.ts-page .focus-score small {
  font-size: 10px;
}
.ts-progress-label {
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0 6px;
}
.ts-progress {
  height: 6px;
  background: #ebe7de;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.ts-progress span {
  display: block;
  height: 100%;
  background: var(--maroon, #7a1f2b);
}
.ts-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.ts-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.ts-list strong,
.ts-list small {
  display: block;
}
.ts-list strong {
  font-size: 13px;
  font-weight: 500;
}
.ts-list small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.ts-list b {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

/* LOCATION: program and project dates. SCOPE: .date-range, .date-edit.
   ROLLBACK: remove this block and the date fields in professional.js. */
.date-range {
  font-size: 12px;
  color: var(--maroon, #7a1f2b);
  margin: 0 0 6px;
}
.date-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 4px 0 16px;
  font-size: 12px;
  color: var(--muted);
}
.date-edit > span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.panel .date-edit label,
.date-edit label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
}
.panel .date-edit input,
.date-edit input {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 4px 6px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.date-edit.compact {
  margin: 6px 0 0;
  gap: 6px 10px;
}

/* LOCATION: Programs, status/owner, milestones, progress and hours. SCOPE: .program-status, .program-progress, .program-stats, .program-details, .pct-edit.
   ROLLBACK: remove this block and the status, owner, milestone and roll-up code for programs in professional.js. */
.program-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 10px;
}
.program-card-top small {
  color: var(--muted);
}
.program-status {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #e4e1da;
  color: #4d4f48;
}
.program-status.active {
  background: #dde4d8;
  color: #3e6455;
}
.program-status.on-hold {
  background: #f7e4d0;
  color: #8a4b1f;
}
.program-status.done {
  background: #dbe2ec;
  color: #2f4a6b;
}
.program-flag {
  font-size: 11px;
  font-weight: 600;
  color: #b3261e;
}
.program-progress {
  height: 8px;
  border-radius: 4px;
  background: #e4e1da;
  overflow: hidden;
  margin: 6px 0;
}
.program-progress span {
  display: block;
  height: 100%;
  background: var(--moss, #6d8062);
}
.program-card-progress {
  margin-bottom: 12px;
}
.program-card-progress small {
  color: var(--muted);
}
.program-details {
  max-width: 760px;
  margin: 10px 0 14px;
}
.program-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.program-stats > div {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #ddd9cf);
  border-radius: 10px;
  padding: 14px 16px;
}
.program-stats span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.program-stats b {
  display: block;
  margin: 4px 0 2px;
  font-size: 20px;
  font-weight: 500;
}
.program-stats small {
  color: var(--muted);
  font-size: 12px;
}
.pct-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.panel .pct-edit input,
.pct-edit input {
  width: 64px;
  margin: 0;
  padding: 4px 6px;
  font-size: 12px;
}
.program-stats .program-status {
  display: inline-block;
}
.panel .program-list .check-label,
.program-list .check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.panel .program-list .check-label input,
.program-list .check-label input {
  width: auto;
  margin: 0;
}
.panel .pct-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
}
.program-list li.is-done strong {
  text-decoration: line-through;
  color: var(--muted);
}
.date-edit.compact label,
.date-edit.compact input {
  font-size: 11px;
}
/* Two-column field rows (start / end date) inside page panels line up with the other fields. */
.panel .form-row {
  margin: 0;
}
.panel .form-row label {
  display: block;
  min-width: 0;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 400;
}

/* LOCATION: Today page layout. SCOPE: .alba-workspace #homeView only.
   Greeting sits higher; Connections is the middle card and Time & schedule
   sits to its right; Who's online fills the right column beside Today's work.
   ROLLBACK: remove this block, move .time-schedule back into .right-rail in
   index.html, and delete the .whos-online card. */
.alba-workspace #homeView {
  padding-top: 20px;
}
.alba-workspace .nav-item {
  font-size: 13px;
}
.alba-workspace .briefing-grid {
  grid-template-columns: 1.9fr 1.4fr 1fr;
  align-items: start;
}
.alba-workspace .briefing-grid .time-schedule {
  margin-left: 0;
}
@media (max-width: 1100px) {
  .alba-workspace .briefing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .alba-workspace .briefing-grid .time-schedule {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .alba-workspace .briefing-grid {
    grid-template-columns: 1fr;
  }
}

/* Who's online (demo data until live presence is built). */
.whos-online .rail-head {
  align-items: center;
}
.whos-online .demo-tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}
.whos-online .online-note {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 8px;
}
.online-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.online-person {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 6px;
  border-radius: 8px;
  text-align: left;
  color: inherit;
}
.online-person:hover {
  background: rgba(255, 255, 255, 0.6);
}
.online-person .who {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.online-person strong {
  font-size: 12px;
  font-weight: 500;
}
.online-person small {
  font-size: 10px;
  color: var(--muted);
}
.presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4f8a5b;
}

/* LOCATION: Time Tracker page. SCOPE: timer context line, budget status, Time Summary totals.
   ROLLBACK: remove this block. */
.timer-context {
  margin: 4px 0 12px;
  font-size: 12px;
  color: var(--muted);
}
.project-bars small {
  margin-left: 4px;
  color: var(--muted);
}
.project-bars small.over-budget {
  color: #b3261e;
  font-weight: 600;
}
.bar-track span.over {
  background: #b3261e;
}
.time-page tfoot th {
  text-align: left;
  border-top: 2px solid var(--line);
  padding-top: 10px;
}
.time-page tfoot th.num {
  text-align: right;
}

/* LOCATION: page background choice, both workspaces. SCOPE: html[data-background], .bg-*, .appearance-dialog.
   Eggshell (--paper in :root) is the default; the other backgrounds are set by assets/js/background.js.
   ROLLBACK: remove this block, assets/js/background.js and the inline <head> scripts. */
html[data-background="grey"],
html[data-background="grey"] .personal-page {
  --paper: #f4f2ee;
}
html[data-background="blue"],
html[data-background="blue"] .personal-page {
  --paper: #e9f0f6;
}
html[data-background="red"],
html[data-background="red"] .personal-page {
  --paper: #f7e4e2;
}
html[data-background="orange"],
html[data-background="orange"] .personal-page {
  --paper: #fbe8d6;
}
html[data-background="purple"],
html[data-background="purple"] .personal-page {
  --paper: #ece5f3;
}
html[data-background="brown"],
html[data-background="brown"] .personal-page {
  --paper: #e9ddd0;
}
html[data-background="slate"],
html[data-background="slate"] .personal-page {
  --paper: #e1e5e9;
}
html[data-background="navy"],
html[data-background="navy"] .personal-page {
  --paper: #dbe2ec;
}
html[data-background="forest"],
html[data-background="forest"] .personal-page {
  --paper: #dde6dd;
}
html[data-background="olive"],
html[data-background="olive"] .personal-page {
  --paper: #e5e3d2;
}
/* The see-through top bars follow whichever background is chosen. */
html[data-background] .topbar,
html[data-background] .personal-topbar {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
}
.bg-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.bg-picker .bg-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bg-picker .bg-option[aria-checked="true"] {
  border-color: var(--maroon, #7a1f2b);
  box-shadow: 0 0 0 3px var(--maroon-soft, #f3e3e5);
}
.bg-swatch {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  border: 1px solid rgba(36, 39, 34, 0.15);
}
.bg-option strong,
.bg-option small {
  display: block;
}
.bg-option strong {
  font-size: 13px;
  font-weight: 500;
}
.bg-option small {
  font-size: 11px;
  color: var(--muted);
}
.appearance-dialog {
  width: min(620px, calc(100% - 24px));
  border: 0;
  border-radius: 6px;
  padding: 26px 28px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.appearance-dialog .eyebrow {
  margin: 0 0 6px;
}
.appearance-dialog h2 {
  font-family: Newsreader, serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 6px;
}
.appearance-dialog p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.appearance-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}
.appearance-actions button {
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  padding: 9px 20px;
}
@media (max-width: 520px) {
  .bg-picker {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .bg-picker .bg-option {
    gap: 8px;
    padding: 8px;
  }
  .bg-swatch {
    width: 30px;
    height: 30px;
  }
  .appearance-dialog {
    padding: 22px 18px;
  }
}

/* LOCATION: professional workspace sidebar and top bar. SCOPE: .alba-workspace only.
   Menu text 1.5x larger (items 12px -> 18px, section labels 11px -> 16.5px), with a
   wider sidebar so longer items still fit. Search sits right after the date and
   stretches to the Notifications / Help buttons. Nested dropdowns (Settings >
   Client Set-up) indent one more step.
   ROLLBACK: remove this block. */
.alba-workspace .app-shell {
  grid-template-columns: 310px 1fr;
}
.alba-workspace .nav-item {
  font-size: 18px;
  min-height: 42px;
}
.alba-workspace .nav-label {
  font-size: 16.5px;
}
.alba-workspace .nav-sub .nav-sub .nav-item {
  padding-left: 42px;
}
.alba-workspace .search-trigger {
  justify-self: stretch;
  width: 100%;
}
@media (max-width: 760px) {
  .alba-workspace .sidebar {
    width: 310px;
    left: -330px;
  }
  .alba-workspace .sidebar.open {
    left: 0;
  }
}

/* LOCATION: workspace sidebar. SCOPE: .alba-workspace .nav-item only.
   Items in the same section sit closer together; space between sections is unchanged.
   ROLLBACK: remove this block. */
.alba-workspace .nav-item {
  min-height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin: 0;
}

/* LOCATION: professional workspace sidebar. SCOPE: .alba-workspace nav text only.
   Menu items 18px to 15px, section labels 16.5px to 14px; spacing unchanged apart from row height.
   ROLLBACK: remove this block. */
.alba-workspace .nav-item {
  font-size: 15px;
  min-height: 32px;
}
.alba-workspace .nav-label {
  font-size: 14px;
}

/* LOCATION: Alba Pro, Workspace > Teams page. SCOPE: .org-* classes only.
   Demonstration org chart: boxes joined by connector lines, pure CSS.
   ROLLBACK: remove this block, the Teams page in professional.js and the Teams button in index.html. */
.org-scroll {
  overflow-x: auto;
  padding: 8px 0 16px;
}
.org-chart {
  display: flex;
  justify-content: center;
  min-width: max-content;
  margin: 0 auto;
}
.org-chart ul {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
  position: relative;
}
.org-chart > ul {
  padding-top: 0;
}
.org-chart ul ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 22px;
  border-left: 1px solid #c9c3b4;
}
.org-chart li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 0 0;
  text-align: center;
}
.org-chart li::before,
.org-chart li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  width: 50%;
  height: 22px;
  border-top: 1px solid #c9c3b4;
}
.org-chart li::after {
  right: auto;
  left: 50%;
  border-left: 1px solid #c9c3b4;
}
.org-chart li:only-child {
  padding-top: 0;
}
.org-chart li:only-child::before,
.org-chart li:only-child::after {
  display: none;
}
.org-chart li:first-child::before,
.org-chart li:last-child::after {
  border: 0 none;
}
.org-chart li:last-child::before {
  border-right: 1px solid #c9c3b4;
  border-radius: 0 6px 0 0;
}
.org-chart li:first-child::after {
  border-radius: 6px 0 0 0;
}
.org-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 190px;
  max-width: 230px;
  margin: 0 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #ddd9cf;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(46, 44, 38, 0.06);
}
.org-card small {
  color: #777a71;
  font-size: 12px;
}
.org-teamname {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a1f2b;
}
.org-avatar {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9ddd0;
  color: #68483f;
  font-size: 11px;
  font-weight: 600;
}
.org-owner {
  border-color: #7a1f2b;
}
.org-owner .org-avatar {
  background: #7a1f2b;
  color: #fff;
}
.org-members {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ece8de;
  font-size: 12px;
  color: #777a71;
}
.org-members b {
  display: block;
  color: #242722;
  font-weight: 600;
}

/* NEW LOOK (experiment): the Personality Profile palette in Alba Pro.
   Off-white page, navy text, blue buttons and links, terracotta section labels.
   Variable names keep their old "maroon" spelling; the values are now blue.
   ROLLBACK: remove this block. */
:root,
html[data-background="eggshell"] {
  --paper: #f8f7f3;
  --surface: #ffffff;
  --ink: #192f42;
  --muted: #536371;
  --line: #d7dedf;
  --accent: #a64d32;
  --accent-soft: #f2e4de;
  --moss: #365f46;
  --moss-soft: #dfeadf;
  --blue: #234f6b;
}
.alba-workspace {
  --maroon: #234f6b;
  --maroon-deep: #193d57;
  --maroon-soft: #e7f0f5;
}
.alba-workspace .nav-label {
  color: #a64d32;
}
.alba-workspace .sidebar {
  background: linear-gradient(180deg, #edf5ed 0%, #d6e7d7 60%, #c3dac8 100%);
}
.alba-workspace .org-owner {
  border-color: #234f6b;
}
.alba-workspace .org-owner .org-avatar {
  background: #234f6b;
}
.alba-workspace .org-teamname {
  color: #a64d32;
}
.alba-workspace .topbar {
  background: linear-gradient(110deg, rgba(237, 245, 237, 0.95) 0%, rgba(214, 231, 215, 0.95) 55%, rgba(183, 209, 189, 0.95) 100%);
}

/* The backdrop fills the window behind the sidebar, which stays on top (desktop only;
   the mobile drawer keeps its own higher z-index). */
@media (min-width: 761px) {
  .alba-workspace .sidebar {
    z-index: 2;
  }
}
/* LOCATION: Today page weather backdrop. SCOPE: .weather-bg, html[data-weather], #homeView frosted cards.
   An illustrated coastline (SVG in index.html). weather.js sets data-weather; each scene only swaps the palette
   variables below and which overlays (stars, clouds, rain/snow, fog) show. */
.main {
  position: relative;
}
.weather-bg {
  --sky1: #1b1f7c;
  --sky2: #4a3ac4;
  --sea: #2f2cae;
  --far: #3d33b4;
  --mid: #241b80;
  --water: #5b54dc;
  --near: #140e52;
  --tree: #08072c;
  --flower: #5b5df0;
  --cloud: #8f8be8;
  --orb: #f2efd4;
  --stars: 1;
  --clouds: 0;
  --precip: 0;
  --fog: 0;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 62%);
}
.main > .content {
  position: relative;
  z-index: 1;
}
.wx-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wx-scene path,
.wx-scene ellipse,
.wx-scene circle,
.wx-scene rect {
  transition: fill 0.8s, opacity 0.8s;
}
.wx-orb { fill: var(--orb); opacity: 0.95; }
.wx-cloud { fill: var(--cloud); }
.wx-clouds { opacity: var(--clouds); transition: opacity 0.8s; }
.wx-sea { fill: var(--sea); }
.wx-shimmer { stroke: var(--water); stroke-width: 3; stroke-linecap: round; fill: none; opacity: 0.7; animation: wx-shimmer 6s ease-in-out infinite alternate; }
.wx-far { fill: var(--far); }
.wx-mid { fill: var(--mid); }
.wx-water { fill: var(--water); }
.wx-near, .wx-near2 { fill: var(--near); }
.wx-tree, .wx-grass { fill: var(--tree); }
.wx-flowers { fill: var(--flower); }
.wx-cloud.c1 { animation: wx-drift 90s linear infinite alternate; }
.wx-cloud.c2 { animation: wx-drift 120s linear infinite alternate-reverse; }
.wx-cloud.c3 { animation: wx-drift 100s linear infinite alternate; }
.wx-stars {
  position: absolute;
  inset: 0 0 45% 0;
  opacity: var(--stars);
  transition: opacity 0.8s;
  background: radial-gradient(2px 2px at 8% 18%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 22% 42%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 35% 12%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 48% 30%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 61% 8%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 74% 36%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 88% 22%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 15% 62%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 55% 58%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 93% 60%, #fff 50%, transparent 52%);
  animation: wx-twinkle 5s ease-in-out infinite alternate;
}
.wx-photo {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity 1s;
}
.wx-photo.ready {
  opacity: 1;
}
/* No flash of the illustration: while the photo is still loading only the page color shows, and the
   photo then fades in. The illustration and its sky appear only when there is no photo to show.
   ROLLBACK: remove this block, the data-bdphoto lines in index.html and the photoState lines in weather.js. */
.weather-bg > :not(.wx-photo) {
  transition: opacity 0.6s;
}
html[data-bdphoto="pending"] .weather-bg,
html[data-bdphoto="ready"] .weather-bg {
  background: transparent;
}
html[data-bdphoto="pending"] .weather-bg > :not(.wx-photo) {
  opacity: 0;
}
html[data-bdphoto="ready"] .wx-scene,
html[data-bdphoto="ready"] .wx-stars {
  opacity: 0;
}
/* Soft scrim keeps text readable over any photo. */
.wx-photo.ready::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 30, 0.12), rgba(10, 12, 30, 0.32));
}
.wx-precip {
  position: absolute;
  inset: 0;
  opacity: var(--precip);
  transition: opacity 0.8s;
  background-image: repeating-linear-gradient(104deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 16px);
  background-size: 100% 200%;
  animation: wx-rain 0.7s linear infinite;
}
.wx-fog {
  position: absolute;
  inset: 0;
  opacity: var(--fog);
  transition: opacity 0.8s;
  background: linear-gradient(180deg, rgba(235, 238, 238, 0.2), rgba(235, 238, 238, 0.75));
}
@keyframes wx-drift { to { transform: translateX(260px); } }
@keyframes wx-twinkle { from { opacity: calc(var(--stars) * 0.55); } to { opacity: var(--stars); } }
@keyframes wx-shimmer { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
@keyframes wx-rain { to { background-position: 0 100%; } }
/* Time of day sets the palette; weather sets clouds, rain, snow and fog on top. */
html[data-tod="dawn"] .weather-bg {
  --sky1: #5a6fc4; --sky2: #f4b58f; --sea: #6f7fc0; --far: #6c6cae; --mid: #4a4a8c; --water: #f0b9a0;
  --near: #2e2c63; --tree: #17163a; --flower: #f59a8a; --cloud: #ffd9c2; --orb: #ffe3b0; --stars: 0.25;
}
html[data-tod="day"] .weather-bg {
  --sky1: #5aaee6; --sky2: #cfe8f6; --sea: #3a8bd0; --far: #5f8ac4; --mid: #3d6b8e; --water: #7cc0ea;
  --near: #2c5b4b; --tree: #1b3a31; --flower: #f0a04b; --cloud: #fff; --orb: #fff3b8; --stars: 0;
}
html[data-tod="dusk"] .weather-bg {
  --sky1: #3f3a8c; --sky2: #f08a6c; --sea: #5a4f9c; --far: #5a4690; --mid: #3a2f70; --water: #e8907e;
  --near: #231d52; --tree: #100d2e; --flower: #f06a8a; --cloud: #f7b79c; --orb: #ffd08a; --stars: 0.35;
}
html[data-tod="night"] .weather-bg { --cloud: #6f6cc9; }
html[data-weather="clear"] .weather-bg { --clouds: 0.25; }
html[data-weather="cloudy"] .weather-bg { --clouds: 1; }
html[data-weather="cloudy"] .wx-scene,
html[data-weather="rain"] .wx-scene,
html[data-weather="storm"] .wx-scene,
html[data-weather="fog"] .wx-scene {
  filter: saturate(0.7);
}
html[data-weather="cloudy"] .weather-bg { --stars: 0.3; }
html[data-weather="rain"] .weather-bg { --clouds: 1; --precip: 1; --stars: 0; }
html[data-weather="rain"] .wx-scene { filter: saturate(0.55) brightness(0.8); }
html[data-weather="storm"] .weather-bg { --clouds: 1; --precip: 1; --stars: 0; }
html[data-weather="storm"] .wx-scene { filter: saturate(0.4) brightness(0.65); }
html[data-weather="snow"] .weather-bg { --clouds: 1; --precip: 0.5; --stars: 0; }
html[data-weather="snow"] .wx-scene { filter: saturate(0.3) brightness(1.15); }
html[data-weather="fog"] .weather-bg { --clouds: 0.6; --fog: 0.55; --stars: 0; }
html[data-weather="snow"] .wx-precip {
  background-image: radial-gradient(rgba(255, 255, 255, 0.95) 2px, transparent 3px), radial-gradient(rgba(255, 255, 255, 0.75) 1.5px, transparent 2.5px);
  background-size: 60px 60px, 90px 90px;
  background-position: 0 0, 30px 30px;
  animation: wx-snow 9s linear infinite;
}
@keyframes wx-snow { to { background-position: 20px 600px, 50px 540px; } }

.backdrop-toggle {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 16px;
  cursor: pointer;
}
.backdrop-toggle small {
  display: block;
  color: var(--muted);
}
html[data-backdrop="off"] .weather-bg {
  display: none;
}

.wx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* With WebGL the live scene replaces the illustration and its overlays. */
.weather-bg.wx-gl .wx-scene,
.weather-bg.wx-gl .wx-stars,
.weather-bg.wx-gl .wx-precip,
.weather-bg.wx-gl .wx-fog {
  display: none;
}

/* Frosted cards on Today so the weather shows through. */
html:not([data-backdrop="off"]) #homeView .brief-card,
html:not([data-backdrop="off"]) #homeView .rail-card,
html:not([data-backdrop="off"]) #homeView .kanban-column,
html:not([data-backdrop="off"]) #homeView .task-group {
  background: rgba(251, 250, 247, 0.55);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
html:not([data-backdrop="off"]) #homeView .kanban .task {
  background: rgba(251, 250, 247, 0.8);
}
/* Headings sit straight on the backdrop; give them a soft panel so they stay legible. */
html:not([data-backdrop="off"]) #homeView .hero > div,
html:not([data-backdrop="off"]) #homeView .section-heading {
  background: rgba(251, 250, 247, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 14px 18px;
}
html:not([data-backdrop="off"])[data-tod="night"] #homeView .brief-card,
html:not([data-backdrop="off"])[data-tod="night"] #homeView .rail-card,
html:not([data-backdrop="off"])[data-tod="night"] #homeView .kanban-column,
html:not([data-backdrop="off"])[data-tod="dusk"] #homeView .brief-card,
html:not([data-backdrop="off"])[data-tod="dusk"] #homeView .rail-card,
html:not([data-backdrop="off"])[data-tod="dusk"] #homeView .kanban-column {
  background: rgba(251, 250, 247, 0.8);
}
html:not([data-backdrop="off"])[data-tod="night"] #homeView .hero > div,
html:not([data-backdrop="off"])[data-tod="night"] #homeView .section-heading,
html:not([data-backdrop="off"])[data-tod="dusk"] #homeView .hero > div,
html:not([data-backdrop="off"])[data-tod="dusk"] #homeView .section-heading {
  background: rgba(251, 250, 247, 0.85);
}
@media (prefers-reduced-motion: reduce) {
  .weather-bg *,
  .weather-bg {
    animation: none !important;
    transition: none !important;
  }
}

/* Work comes first: Today's work and the task cards stay the most solid, highest-contrast
   things on the page; the backdrop is a quiet setting behind them, not a competitor. */
html:not([data-backdrop="off"]) #homeView .kanban-column,
html:not([data-backdrop="off"]) #homeView .task-group {
  background: rgba(251, 250, 247, 0.82);
  box-shadow: 0 6px 22px rgba(20, 24, 40, 0.14);
}
html:not([data-backdrop="off"]) #homeView .kanban .task,
html:not([data-backdrop="off"]) #homeView .task-group .task {
  background: #fffefb;
  border-color: rgba(30, 36, 50, 0.12);
  box-shadow: 0 2px 8px rgba(20, 24, 40, 0.14);
}
html:not([data-backdrop="off"]) #homeView .section-heading {
  background: rgba(251, 250, 247, 0.92);
  box-shadow: 0 4px 16px rgba(20, 24, 40, 0.12);
}
html:not([data-backdrop="off"])[data-tod="night"] #homeView .kanban-column,
html:not([data-backdrop="off"])[data-tod="dusk"] #homeView .kanban-column,
html:not([data-backdrop="off"])[data-tod="night"] #homeView .task-group,
html:not([data-backdrop="off"])[data-tod="dusk"] #homeView .task-group {
  background: rgba(251, 250, 247, 0.9);
}
html:not([data-backdrop="off"])[data-tod="night"] #homeView .section-heading,
html:not([data-backdrop="off"])[data-tod="dusk"] #homeView .section-heading {
  background: rgba(251, 250, 247, 0.95);
}
/* Soft veil behind the middle so the sky stays at the edges and the work stays calm. */
html:not([data-backdrop="off"]) .weather-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 55% 50%, rgba(255, 255, 255, 0.12), transparent 75%);
}

/* Live water and birds over the photo backdrop (assets/js/motion.js). */
.wx-sea-live,
.wx-birds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.wx-sea-live { opacity: 0; transition: opacity 1s; }
.wx-sea-live.ready { opacity: 1; }

/* SCOPE: Alba Pro Files and File Maintenance. ROLLBACK: remove this block. */
.alba-file-manager { margin-bottom: 24px; }
.file-toolbar { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.file-toolbar label { flex:1 1 180px; min-width:150px; font-size:12px; font-weight:600; }
.file-toolbar input,.file-toolbar select,.alba-encrypted-upload input { display:block; width:100%; margin-top:6px; padding:10px; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.file-list { display:grid; gap:10px; margin-top:14px; }
.alba-file-row { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:14px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.8); }
.alba-file-row strong,.alba-file-number { display:block; }
.alba-file-number { font-size:11px; color:#345c74; font-weight:700; margin-top:4px; letter-spacing:.04em; }
.alba-file-row p { font-size:12px; color:var(--muted); margin:6px 0 0; overflow-wrap:anywhere; }
.alba-file-actions { display:flex; flex-wrap:wrap; gap:6px; }
.alba-file-actions button,.alba-encrypted-upload button { border:1px solid var(--line); border-radius:7px; padding:8px 10px; background:var(--surface); font-size:12px; }
.alba-file-actions button:hover,.alba-encrypted-upload button:hover { background:var(--moss-soft); }
.alba-encrypted-upload { display:flex; flex-wrap:wrap; align-items:end; gap:12px; padding:16px; margin-bottom:14px; background:rgba(255,255,255,.65); border-radius:10px; }
.alba-encrypted-upload label { flex:1 1 210px; font-size:12px; }
@media (max-width:650px) { .alba-file-row { align-items:flex-start; flex-direction:column; } .alba-file-actions { width:100%; } }

/* Alba Pro 1.2: sign-in screen, version label and empty states. */
.auth-pending .app-shell,
.auth-pending .toast {
  display: none;
}
.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.auth-gate[hidden] {
  display: none;
}
.auth-card {
  width: min(420px, 100%);
  padding: 32px 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  margin: 14px 0 18px;
  font: 500 28px/1.15 "Newsreader", serif;
}
.auth-card form {
  display: grid;
  gap: 14px;
}
.auth-card label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.auth-card input {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  color: var(--ink);
}
.auth-card input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.auth-card .primary {
  width: 100%;
  margin-top: 4px;
}
.auth-card .primary:disabled {
  opacity: 0.6;
  cursor: wait;
}
.auth-logo {
  display: block;
  width: 170px;
  height: auto;
}
.auth-hint,
.auth-fine {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.auth-fine {
  margin-top: 14px;
}
.auth-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 13px;
  color: #a2402a;
}
.auth-switch {
  margin: 18px 0 0;
  font-size: 14px;
}
.auth-switch .link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}
.version-tag {
  display: inline-block;
  margin: 10px 0 0;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface);
}
.brand {
  flex-wrap: wrap;
}
.brand .version-tag {
  margin: 0 0 0 4px;
}
.empty-note {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.empty-tasks {
  padding: 28px 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.empty-tasks strong {
  font: 500 18px "Newsreader", serif;
}
.next-up .secondary-btn {
  margin-top: 14px;
}
.timeline .empty-note {
  margin: 12px 0 0;
}


/* Alba Atmospheric Horizons auth background.
   ROLLBACK: remove this block and auth-atmosphere markup/script from index.html.
   Only the authentication gate uses video; signed-in pages remain unchanged. */
.auth-gate { position: relative; isolation: isolate; overflow: hidden; background: #e5e6dc; }
.auth-atmosphere {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #4b6274 0%, #b6b9b0 35%, #e3cdb1 60%, #7f9195 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.auth-atmosphere::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,31,41,.14), transparent 45%, rgba(16,31,41,.12));
}
.auth-atmosphere-video { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 50%; }
.auth-card { position: relative; background: rgba(251,250,247,.95); box-shadow: 0 22px 72px rgba(22,39,50,.24); }
@supports (backdrop-filter: blur(8px)) { .auth-card { backdrop-filter: blur(8px); } }
@media (prefers-reduced-motion: reduce) { .auth-atmosphere-video { display: none !important; } }


/* Accessible notification top layer: clear above blurred scenic backgrounds and open dialogs. */
.toast[popover] {
  inset: auto 20px 20px auto;
  margin: 0;
  width: min(440px, calc(100vw - 40px));
  max-width: none;
  border: 1px solid #d8e2e5;
  border-left: 5px solid #557689;
  border-radius: 10px;
  background: #fdfcf9;
  color: #172b3a;
  box-shadow: 0 16px 48px rgba(8, 24, 37, 0.32);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  padding: 15px 18px;
  white-space: normal;
  overflow-wrap: anywhere;
  z-index: 2147483647;
}
@media (max-width: 600px) {
  .toast[popover] { inset: auto 12px 12px 12px; width: auto; }
}

/* Today greeting: match the Alba Reset Water Brush wordmark; scoped to home view only. */
.alba-workspace #homeView .hero h1#greeting {
  font-family: "Water Brush", cursive;
  font-weight: 400;
  font-size: clamp(46px, 5vw, 64px);
  line-height: 1.18;
  letter-spacing: normal;
}

/* My Schedule: period views and straightforward no-assignment messaging. */
.alba-workspace .my-schedule { max-width:1100px; }
.alba-workspace .my-schedule-toolbar { display:flex; flex-wrap:wrap; gap:9px; margin:0 0 16px; }
.alba-workspace .schedule-period {
  padding:11px 18px; border:1px solid #cdd7d1; border-radius:7px;
  background:#fff; color:#203246; font:inherit; font-size:13px; cursor:pointer;
}
.alba-workspace .schedule-period.active {
  background:#21364c; color:#fff; border-color:#21364c;
}
.alba-workspace .schedule-period:focus-visible { outline:3px solid #167bd9; outline-offset:2px; }
.alba-workspace .my-schedule-panel { min-height:210px; }
.alba-workspace .my-schedule-empty { color:#203246; font-size:17px; line-height:1.8; margin:22px 0 12px; }
.alba-workspace .my-schedule-empty strong { font-size:20px; }
.alba-workspace .schedule-scope-note { color:#5c6876; font-size:12px; line-height:1.6; margin:12px 0 18px; }

/* Employer Discounts: scoped offer layout. ROLLBACK: remove this section. */
.employer-discounts { max-width: 880px; }
.employer-discounts .employer-offer { margin-top: 1.5rem; padding: 1.5rem; border: 1px solid var(--line); background: var(--surface); }
.employer-discounts .employer-offer h3 { margin: 0 0 .75rem; font-family: "Newsreader", serif; font-size: 1.7rem; }
.employer-discounts .employer-offer-link { display: inline-block; margin: .7rem 0; padding: .8rem 1.2rem; background: var(--blue); color: white; text-decoration: none; font-weight: 600; }
.employer-discounts .employer-offer-link:hover, .employer-discounts .employer-offer-link:focus-visible { background: var(--ink); }
.employer-discounts .employer-offer-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Alba employee profile hub: compact responsive internal navigation */
.employee-profile-links { display:flex; flex-wrap:wrap; gap:0.7rem; margin:1rem 0; }
.employee-profile-links button { flex:1 1 140px; min-height:44px; }
