/* ===== Typography: Beiruti (assets/fonts), used by every page through --font-family ===== */
@font-face { font-family: "Beiruti"; src: url("assets/fonts/Beiruti-ExtraLight.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Beiruti"; src: url("assets/fonts/Beiruti-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Beiruti"; src: url("assets/fonts/Beiruti-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Beiruti"; src: url("assets/fonts/Beiruti-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Beiruti"; src: url("assets/fonts/Beiruti-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Beiruti"; src: url("assets/fonts/Beiruti-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Beiruti"; src: url("assets/fonts/Beiruti-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Beiruti"; src: url("assets/fonts/Beiruti-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
:root {
  --font-family: "Beiruti", Tahoma, Arial, sans-serif;
  --navy-950: #001b48;
  --navy-800: #02457a;
  --cyan-600: #018abe;
  --cyan-300: #97cadb;
  --cyan-100: #d6e8ee;
  --text: #0e2942;
  --muted: #8193a1;
  --surface: #ffffff;
  --surface-soft: #f5f8fa;
  --line: #e7edf1;
  --shadow: 0 1px 3px rgba(0, 27, 72, 0.05);
  --sidebar-width: 188px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--text);
  font-family: var(--font-family);
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell {
  min-height: 100vh;
  background: #fff;
}

.sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  width: var(--sidebar-width);
  min-height: 100vh;
  padding: 16px 0 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 20;
  color: #fff;
  background: #008BBF;
  border-radius: 16px 0 0 16px;
  box-shadow: -8px 0 30px rgba(0, 27, 72, .08);
}

.sidebar__brand {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 16px auto 54px;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.sidebar__brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.sidebar__nav,
.sidebar__bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar__nav {
  padding: 0 14px 0 12px;
}

.sidebar__bottom {
  margin-top: auto;
  padding: 0 14px 0 12px;
}

.nav-item {
  position: relative;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 0 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  direction: rtl;
  color: rgba(255,255,255,.92);
  background: transparent;
  border: 0;
  border-radius: 12px 0 0 12px;
  box-sizing: border-box;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease;
}

.nav-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.nav-item.is-active {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.nav-item.is-active::before {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 28px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 27, 72, 0.10);
}

.nav-item.is-active::after {
  content: none;
}

.nav-item__icon-wrap {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: grid;
  place-items: center;
  position: relative;
}

.nav-item__icon {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.icon-filled { opacity: 0; }
.nav-item.is-active .icon-outline { opacity: 0; }
.nav-item.is-active .icon-filled { opacity: 1; }

.nav-item__label {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}


.nav-item__icon-wrap--svg { color: #fff; }
.nav-item__svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar__separator {
  height: 1px;
  margin: 10px 2px 13px;
  background: rgba(255,255,255,.42);
}

.storage-block {
  padding: 0 3px;
  margin: 0 0 11px;
}
.storage-block__header {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255,255,255,.96);
  font-size: 12.5px;
  font-weight: 500;
}
.storage-block__header svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.storage-block__track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.32);
}
.storage-block__track span {
  display: block;
  height: 100%;
  margin-left: auto;
  border-radius: inherit;
  background: #fff;
}

.main-content {
  margin-right: var(--sidebar-width);
  margin-left: 0;
  min-height: 100vh;
  padding: 25px clamp(22px, 3.4vw, 64px) 0;
}

.topbar {
  max-width: 1520px;
  height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr 375px;
  align-items: center;
  direction: ltr;
  gap: 24px;
}

.search-box {
  grid-column: 3;
  justify-self: end;
  width: 372px;
  height: 46px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  direction: rtl;
  background: #f3f5f7;
  border: 1px solid #eef1f3;
  border-radius: 16px;
  transition: .2s ease;
}


.search-box svg {
  width: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: #a9bdc6;
  stroke-width: 2;
  stroke-linecap: round;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.search-box input::placeholder { color: #b6c0c6; }

.profile {
  grid-column: 1;
  justify-self: start;
  min-width: 172px;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  direction: rtl;
  background: transparent;
  border: 0;
  color: var(--text);
}

.profile__avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background:
    linear-gradient(145deg, #f7fafb, #e7eef2);
  border: 2px solid #fff;
  box-shadow: inset 0 0 0 1px #d8e5ea;
}

.profile__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.profile__text strong { font-size: 15px; font-weight: 700; }
.profile__text small { margin-top: 4px; color: #9aa9b1; font-size: 12.5px; }

.profile {
  align-self: start;
  margin-top: -84px;
}
.profile__text { margin-top: -1px; }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  max-width: 1520px;
  min-height: 270px;
  margin: 0 auto 38px;
  padding: clamp(30px, 4vw, 54px) clamp(34px, 5vw, 76px);
  display: flex;
  align-items: center;
  border-radius: 38px;
  background: linear-gradient(180deg, #cde9f1 0%, #81cfe2 29%, #29add1 65%, #078fbd 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(0,85,143,.07));
}

.hero__content {
  position: absolute;
  z-index: 2;
  right: clamp(38px, 5vw, 72px);
  top: 50%;
  transform: translateY(-50%);
  width: min(640px, 72%);
  margin: 0;
  text-align: right;
  direction: rtl;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,66,112,.13);
}

.hero__content p { margin: 0 0 4px; font-size: clamp(27.5px, 2.42vw, 43.5px); font-weight: 500; }
.hero__content h1 { margin: 0 0 12px; font-size: clamp(32px, 2.88vw, 51.5px); font-weight: 800; letter-spacing: -.6px; }
.hero__content span { font-size: clamp(16px, 1.26vw, 22px); font-weight: 500; opacity: .96; }

.hero__logo-watermark {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: clamp(180px, 22vw, 350px);
  opacity: .09;
  filter: grayscale(1) brightness(8);
  pointer-events: none;
}
.hero__logo-watermark img { display: block; width: 100%; }

.dashboard-grid {
  max-width: 1520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .9fr);
  gap: clamp(26px, 3vw, 50px);
  align-items: start;
}

.dashboard-main { min-width: 0; }
.calendar-panel { min-width: 0; }

.section-heading {
  height: 42px;
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-heading h2 { margin: 0; color: var(--navy-950); font-size: 23px; font-weight: 800; }
.link-button { padding: 6px 0; color: var(--cyan-600); background: transparent; border: 0; font-size: 14px; font-weight: 600; }
.link-button:hover { color: var(--navy-800); }

.project-card,
.meetings-card,
.calendar-card {
  background: #fff;
  border: 1px solid #edf1f3;
  border-radius: 17px;
  box-shadow: var(--shadow);
}

.project-card {
  min-height: 198px;
  padding: 14px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  direction: rtl;
}

.project-card__visual {
  min-height: 168px;
  border-radius: 13px;
  background:
    linear-gradient(135deg, #f5f8f9, #eaf1f4);
  border: 1px dashed #d6e2e7;
  position: relative;
  overflow: hidden;
}
.project-card__visual::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: url("assets/tammha-mini.png") center/contain no-repeat;
  opacity: .09;
}

.project-card__body { min-width: 0; padding: 20px 4px 10px 8px; display: flex; flex-direction: column; justify-content: center; }
.project-card__topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.project-card__topline h3 { margin: 0 0 7px; font-size: 23px; font-weight: 800; color: #202d35; }
.project-card__topline p { margin: 0; font-size: 14px; color: #a2acb1; }
.round-arrow {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  display: grid;
  place-items: center;
  color: var(--cyan-600);
  background: #f6fbfc;
  border: 0;
  border-radius: 50%;
  transition: .2s ease;
}
.round-arrow:hover { background: var(--cyan-100); transform: translateX(-2px); }
.round-arrow svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.progress-row { margin-top: 26px; display: flex; align-items: center; gap: 13px; direction: ltr; }
.progress-row strong { flex: 0 0 auto; font-size: 15px; color: #525f65; }
.progress-track { height: 6px; flex: 1; overflow: hidden; border-radius: 999px; background: #e9edef; }
.progress-track span { display: block; height: 100%; margin-left: auto; border-radius: inherit; background: linear-gradient(90deg, var(--cyan-600), #08a0cf); }
.project-card__date { margin: 10px 0 0; color: #a5afb4; font-size: 11.5px; text-align: right; }

.section-heading--meetings { margin-top: 30px; }
.meetings-card { padding: 10px 16px; overflow: hidden; }
.meeting-row {
  position: relative;
  min-height: 92px;
  display: grid;
  grid-template-columns: 8px 40px minmax(170px,1fr) 150px 38px;
  gap: 14px;
  align-items: center;
  direction: rtl;
}
.meeting-accent { width: 4px; height: 55px; justify-self: end; border-radius: 4px; background: var(--cyan-600); }
.meeting-type-icon,
.calendar-mini-icon { display: grid; place-items: center; color: var(--cyan-600); }
.meeting-type-icon svg { width: 24px; }
.calendar-mini-icon svg { width: 19px; }
.meeting-type-icon svg,
.calendar-mini-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meeting-info { min-width: 0; }
.meeting-info h3 { margin: 0 0 5px; color: #203744; font-size: 15px; font-weight: 700; }
.meeting-info p { margin: 0; color: #a7b1b6; font-size: 11.5px; }
.meeting-time { text-align: center; color: var(--cyan-600); }
.meeting-time strong { display: block; font-size: 12.5px; font-weight: 700; }
.meeting-time span { display: block; margin-top: 4px; color: #a7b1b6; font-size: 10.5px; }
.meeting-divider { height: 1px; margin: 0 66px 0 16px; background: #f0f3f4; }

.calendar-heading { direction: rtl; }
.calendar-card { min-height: 392px; padding: 20px 22px 18px; }
.calendar-toolbar {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  direction: ltr;
}
.calendar-toolbar strong { text-align: center; color: #243944; font-size: 16px; }
.calendar-arrow { width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy-800); background: transparent; border: 0; border-radius: 50%; }
.calendar-arrow:hover { background: #f2f8fa; }
.calendar-arrow svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.calendar-weekdays,
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.calendar-weekdays { margin-bottom: 9px; color: #a2afb5; font-size: 11.5px; font-weight: 500; }
.calendar-days { row-gap: 3px; }
.calendar-day {
  position: relative;
  width: 31px;
  height: 31px;
  margin: auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #52656f;
  font-size: 11.5px;
  transition: .18s ease;
}
.calendar-day:not(.is-empty):hover { background: #f1f8fa; color: var(--navy-800); }
.calendar-day.is-selected { color: #fff; background: #018abe; }
.calendar-day.has-event:not(.is-selected)::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e5b948;
}
.calendar-day.is-muted { color: #cad3d8; }
.calendar-day.is-empty { cursor: default; }

.footer {
  max-width: 1520px;
  margin: 70px auto 0;
  padding: 34px 0 28px;
  text-align: center;
  color: #818d93;
  font-size: 12.5px;
}

@media (max-width: 1180px) {
  :root { --sidebar-width: 174px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .calendar-panel { order: 2; }
  .dashboard-main { order: 1; }
  .calendar-card { min-height: auto; }
  .project-card { grid-template-columns: 150px 1fr; }
}

@media (max-width: 760px) {
  :root { --sidebar-width: 74px; }
  .sidebar {
    width: var(--sidebar-width);
    padding: 14px 8px;
    border-radius: 14px 0 0 14px;
  }
  .sidebar__brand { width: 48px; height: 48px; margin: 8px auto 36px; }
  .sidebar__brand img { width: 48px; height: 48px; }
  .sidebar__nav, .sidebar__bottom { padding: 0 6px; gap: 8px; }
  .sidebar__separator, .storage-block { display: none; }
  .nav-item { min-height: 48px; padding: 0; justify-content: center; border-radius: 12px; }
  .nav-item__label { display: none; }
  .nav-item__icon-wrap { width: 24px; height: 24px; }
  .nav-item.is-active::before, .nav-item.is-active::after { display: none; }
  .main-content { margin-right: var(--sidebar-width); margin-left: 0; padding: 16px 14px 40px; }
  .topbar { height: 72px; grid-template-columns: 1fr auto; gap: 12px; }
  .search-box { grid-column: 2; width: 56px; padding: 0; justify-content: center; }
  .search-box input { display: none; }
  .profile { grid-column: 1; min-width: auto; }
  .profile__avatar { width: 42px; height: 42px; flex-basis: 42px; }
  .profile__text strong { font-size: 14px; }
  .hero { min-height: 220px; border-radius: 27px; padding: 28px 25px; }
  .hero__content { right: 25px; width: calc(100% - 50px); }
  .hero__logo-watermark { left: -10px; width: 210px; }
  .project-card { grid-template-columns: 105px 1fr; gap: 13px; min-height: 160px; padding: 10px; }
  .project-card__visual { min-height: 140px; }
  .project-card__body { padding: 10px 0; }
  .project-card__topline h3 { font-size: 18.5px; }
  .progress-row { margin-top: 19px; }
  .meeting-row { grid-template-columns: 5px 29px minmax(110px, 1fr) 105px; gap: 8px; }
  .calendar-mini-icon { display: none; }
  .meeting-time strong { font-size: 10.5px; }
  .meeting-info h3 { font-size: 12.5px; }
  .calendar-card { padding: 20px 12px; }
  .footer { margin-top: 35px; }
}

@media (max-width: 480px) {
  .profile__text { display: none; }
  .hero { min-height: 190px; }
  .project-card { grid-template-columns: 1fr; }
  .project-card__visual { display: none; }
  .meeting-row { grid-template-columns: 5px 28px 1fr; padding: 12px 0; }
  .meeting-time { grid-column: 3; text-align: right; margin-top: -8px; }
  .meeting-divider { margin-right: 47px; }
  .calendar-day { width: 30px; height: 30px; }
}


/* ===== Projects page ===== */
.projects-page { background: #f8fafb; }
.projects-main-content { background: #f8fafb; min-height: 100vh; }
.projects-hero {
  max-width: 1520px;
  min-height: 185px;
  margin: 0 auto 38px;
  padding: 34px clamp(34px, 5vw, 74px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(0deg, #008fbe 0%, #3fb2d0 41%, #73c3d9 74%, #9acddd 100%);
}
.projects-hero__content { width: 100%; text-align: right; color: #fff; }

.projects-hero__content h1 { margin: 0 0 8px; font-size: clamp(35.5px, 3.22vw, 53px); font-weight: 800; }
.projects-hero__content p { margin: 0; font-size: 15px; font-weight: 500; opacity: .95; }
.projects-toolbar {
  max-width: 1520px;
  margin: 0 auto 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-bottom: 1px solid #e6edf0;
  direction: rtl;
}
/* Project filters: one connected tab bar (same pattern as the Tasks page). */
.project-filters { display: flex; align-items: flex-end; gap: 24px; margin-bottom: -1px; }
.project-filter { height: 40px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #71858f; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .15s ease; }
.project-filter span { margin-right: 3px; color: #a0aeb6; font-weight: 600; }
.project-filter:hover { color: #274b61; }
.project-filter.is-active { color: #008bbf; border-bottom-color: #008bbf; }
.add-project-button { height: 36px; margin-bottom: 7px; padding: 0 16px; border: 0; border-radius: 8px; color: #fff; background: #008bbf; font-size: 13px; font-weight: 700; cursor: pointer; }
.projects-list { max-width: 1520px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; align-items: start; }
.projects-list .projects-empty-state { grid-column: 1 / -1; min-height: 300px; }
.projects-empty-state {
  min-height: 430px;
  width: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  text-align: center;
  color: #718089;
  background: #fff;
  border: 1px dashed #dce8ed;
  border-radius: 17px;
}
.projects-empty-state[hidden] { display: none; }
.projects-empty-state__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 17px;
  color: #008bbf;
  background: #eef9fc;
}
.projects-empty-state__icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.projects-empty-state h2 {
  margin: 0;
  color: #173447;
  font-size: 23px;
  font-weight: 800;
}
.projects-empty-state p {
  margin: 0;
  color: #98a5ac;
  font-size: 14px;
  font-weight: 500;
}

/* Projects: a grid of simple project cards. Each card reads top to bottom:
   identity (logo, name, supervisor) → progress → last update and the open link. */
.projects-list-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 18px; background: #fff; border: 1px solid #e6edf0; border-radius: 12px; transition: border-color .15s ease; }
.projects-list-card:hover { border-color: #cfe0e7; }
.projects-list-card[hidden] { display: none; }
.project-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* Keeps the Tammha logo concept: blue tile with the white mark. */
.project-identity__logo { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(125deg, #0094c2 0%, #4ab9d5 60%, #bfe3ee 100%); }
.project-identity__logo img { width: 30px; height: 30px; object-fit: contain; filter: grayscale(1) brightness(8); }
.project-identity__text { flex: 1; display: grid; gap: 3px; min-width: 0; }
.project-identity__text h2 { margin: 0; color: #173447; font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-identity__text p { margin: 0; color: #8b9ca6; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-status { flex: 0 0 auto; align-self: flex-start; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px; color: #146f92; background: #eaf5f9; font-size: 11.5px; font-weight: 700; line-height: 1; white-space: nowrap; }
.project-status--progress { color: #146f92; background: #eaf5f9; }
.project-status--completed { color: #19784f; background: #e9f6ef; }
.project-status--pending,
.project-status--archived { color: #5f7480; background: #f0f3f5; }
.project-progress { display: grid; gap: 7px; }
.project-progress__label { display: flex; align-items: baseline; justify-content: space-between; color: #7d909b; font-size: 12.5px; }
.project-progress__label strong { color: #173d57; font-size: 14px; font-weight: 800; }
.project-progress__track { height: 5px; overflow: hidden; border-radius: 3px; background: #e8edef; }
.project-progress__track > span { display: block; max-width: 100%; height: 100%; border-radius: inherit; background: #0a9ac9; }
.project-progress__track > span.is-completed { background: #2fae7f; }
.project-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid #eef2f4; }
.project-updated { color: #8b9ca6; font-size: 12.5px; }
.project-card-action { display: inline-flex; align-items: center; gap: 4px; color: #0a7fab; font-size: 13px; font-weight: 700; text-decoration: none; }
.project-card-action svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.project-card-action:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .project-filters { gap: 16px; overflow-x: auto; }
}
.add-project-button:hover { background: #0077a5; transform: translateY(-1px); }
.projects-footer { margin-top: 110px; }

@media (max-width: 980px) {
}
@media (max-width: 760px) {
  .projects-empty-state { min-height: 320px; }
  .projects-hero { min-height: 150px; margin-bottom: 26px; border-radius: 24px; }
  .projects-footer { margin-top: 60px; }
}


/* ===== Project details / stages page ===== */
.project-details-page { background: #f7f9fb; }
.project-details-page .app-shell { background: #f7f9fb; }
.project-details-main {
  padding-top: 20px;
  padding-bottom: 24px;
  background: #f7f9fb;
}
.project-details-main .topbar { height: 70px; }

.project-detail-hero {
  position: relative;
  overflow: hidden;
  max-width: 1520px;
  min-height: 160px;
  margin: 0 auto;
  padding: 30px 42px;
  display: flex;
  align-items: center;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #9bd2e1 0%, #70c4db 50%, #5abbd4 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.project-detail-hero__content {
  width: 100%;
  color: #fff;
  text-align: right;
  direction: rtl;
}
.project-detail-hero__content h1 {
  margin: 0 0 9px;
  font-size: clamp(28.5px, 2.3vw, 39px);
  font-weight: 800;
}
.project-detail-hero__content p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.95);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}

.project-summary {
  max-width: 1520px;
  min-height: 76px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  direction: rtl;
  background: #fff;
  border: 1px solid #e9eef1;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 7px 22px rgba(0,27,72,.035);
}
.summary-item {
  min-width: 0;
  padding: 13px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-left: 1px solid #edf1f3;
  text-align: right;
}
.summary-item:last-child { border-left: 0; }
.summary-item span { color: #9aabb4; font-size: 11.5px; font-weight: 500; }
.summary-item strong { color: #163650; font-size: 14px; font-weight: 800; }
.summary-item--progress strong { align-self: flex-start; }
.summary-progress {
  width: 100%;
  height: 5px;
  margin-top: 2px;
  overflow: hidden;
  direction: ltr;
  border-radius: 999px;
  background: #e8eef1;
}
.summary-progress span {
  display: block;
  height: 100%;
  margin-left: auto;
  border-radius: inherit;
  background: #0ba2ce;
}

.project-tabs {
  max-width: 1520px;
  height: 50px;
  margin: 0 auto 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8edf0;
  border-radius: 13px;
}
.project-tab {
  border: 0;
  border-left: 1px solid #eef2f4;
  background: #fff;
  color: #526b79;
  font-size: 14px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease;
}
.project-tab:last-child { border-left: 0; }
.project-tab:hover { background: #f4fafc; }
.project-tab.is-active { color: #048fbe; background: #e9f6fb; font-weight: 800; }
.project-details-footer { margin-top: 32px; padding-bottom: 12px; }

@media (max-width: 980px) {
  .project-summary { grid-template-columns: repeat(2, 1fr); }
  .summary-item:nth-child(2) { border-left: 0; }
  .summary-item:nth-child(-n+2) { border-bottom: 1px solid #edf1f3; }
}

@media (max-width: 700px) {
  .project-detail-hero { min-height: 135px; padding: 24px 22px; }
  .project-summary { grid-template-columns: 1fr 1fr; }
  .project-tabs { height: 46px; }
}

/* ===== V18 project details refinements ===== */





/* ===== V19 project stages alignment refinements ===== */
.project-detail-hero__content p { display: none; }





/* ===== V20 completed stage bar ===== */

.project-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

/* ===== Project overview page ===== */
.project-overview-page { background: #f7f9fb; }
.project-overview-page .app-shell { background: #f7f9fb; }
.project-overview-main {
  padding-top: 20px;
  padding-bottom: 24px;
  background: #f7f9fb;
}
.project-overview-main .topbar { height: 70px; }
.project-overview-main .profile {
  align-self: start;
  margin-top: -102px;
}
.project-overview-main .profile__text { transform: translateY(-2px); }

.overview-layout {
  max-width: 1520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  gap: 18px;
  direction: ltr;
}
.overview-team,
.overview-panel,
.overview-stats {
  background: #fff;
  border: 1px solid #e9eef1;
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(0,27,72,.03);
}
.overview-team {
  padding: 18px 16px;
  direction: rtl;
  align-self: start;
}
.overview-team h2,
.overview-panel h2 {
  margin: 0 0 15px;
  color: #163650;
  font-size: 17px;
  font-weight: 800;
}
.team-list { display: grid; gap: 10px; }
.team-member {
  min-height: 63px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #edf0f2;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,27,72,.025);
}
.team-member__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #dbe5e9;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.9), transparent 35%),
    repeating-radial-gradient(circle at 50% 50%, #eff4f6 0 1px, #fff 1px 3px);
}
.team-member__name {
  color: #17384f;
  font-size: 12.5px;
  font-weight: 700;
  text-align: right;
}
.team-member__role {
  min-width: 42px;
  text-align: left;
  color: #76909e;
  font-size: 10.5px;
  font-weight: 700;
}
.overview-content {
  min-width: 0;
  display: grid;
  gap: 14px;
  direction: rtl;
}
.overview-panel { padding: 18px 22px; text-align: right; }
.overview-panel p {
  margin: 0;
  color: #8798a2;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 2;
}
.overview-panel--idea { min-height: 112px; }
.overview-panel--goals { min-height: 142px; }
.overview-goals {
  margin: 0;
  padding: 0 18px 0 0;
  display: grid;
  gap: 8px;
  color: #718894;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.8;
}
.overview-goals li::marker { color: #008bbf; }
.overview-stats {
  min-height: 88px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  direction: rtl;
  overflow: hidden;
}
.overview-stat {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  border-left: 1px solid #edf1f3;
}
.overview-stat:last-child { border-left: 0; }
.overview-stat span { color: #7f949f; font-size: 11.5px; font-weight: 600; }
.overview-stat strong { color: #123c57; font-size: 12.5px; font-weight: 800; }
.overview-stat--status strong { color: #008bbf; }
.project-overview-footer { margin-top: 36px; padding-bottom: 12px; }

@media (max-width: 980px) {
  .overview-layout { grid-template-columns: 220px minmax(0,1fr); }
  .overview-stats { grid-template-columns: repeat(2,1fr); }
  .overview-stat:nth-child(2) { border-left: 0; }
  .overview-stat:nth-child(-n+2) { border-bottom: 1px solid #edf1f3; }
}
@media (max-width: 700px) {
  .project-overview-main .profile { margin-top: -88px; }
  .overview-layout { grid-template-columns: 1fr; direction: rtl; }
  .overview-team { order: 2; }
  .overview-content { order: 1; }
  .overview-stats { grid-template-columns: 1fr 1fr; }
}


/* ===== V21 project stages refinement ===== */


/* ===== Profile / settings page ===== */
.settings-page { background: #fff; }
.settings-main-content {
  position: relative;
  min-height: 100vh;
  padding: 22px 34px 0;
  display: flex;
  flex-direction: column;
}
.settings-topbar {
  width: 100%;
  max-width: none;
  height: 78px;
  margin: 0 auto;
}
.settings-topbar .search-box { width: min(500px, 42vw); }
.settings-profile { align-self: center; }

.settings-section {
  width: min(1180px, calc(100vw - var(--sidebar-width) - 80px));
  margin: 22px auto 0;
  direction: rtl;
}
.settings-page-title {
  margin: 0 0 28px;
  color: #008bbf;
  font-size: clamp(39px, 3.1vw, 53px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.8px;
  text-align: right;
}
.settings-content-grid {
  display: grid;
  grid-template-columns: 230px minmax(520px, 680px) 220px;
  grid-template-areas: "photo form menu";
  gap: 32px;
  align-items: start;
  justify-content: center;
}
.settings-menu-card,
.profile-photo-card {
  background: #fff;
  border: 1px solid #e3e9ed;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,27,72,.08), 0 2px 5px rgba(0,27,72,.05);
}
.settings-menu-card {
  grid-area: menu;
  min-height: 410px;
  padding: 20px 0 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.settings-menu-item {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 0 26px;
  border: 0;
  background: transparent;
  color: #173d57;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}
.settings-menu-item:hover { background: #f7fbfc; }
.settings-menu-item.is-active {
  color: #0a3d5b;
  background: #f4fbfd;
}
.settings-menu-item.is-active::after {
  content: "";
  position: absolute;
  inset: 11px 0 11px auto;
  width: 4px;
  background: #008bbf;
  border-radius: 999px 0 0 999px;
}
.settings-menu-item--logout {
  margin-top: auto;
  color: #e65d64;
}

.profile-form-card {
  grid-area: form;
  min-width: 0;
  padding: 0 4px 0;
}
.profile-form-heading {
  margin: 0 0 20px;
  text-align: right;
}
.profile-form-heading h2 {
  margin: 0 0 7px;
  color: #173d57;
  font-size: 31px;
  line-height: 1.2;
  font-weight: 800;
}
.profile-form-heading p {
  margin: 0;
  color: #9baab3;
  font-size: 15px;
  font-weight: 500;
}
.profile-form { display: grid; gap: 16px; }
.profile-field { display: grid; gap: 8px; text-align: right; }
.profile-field > span { color: #153b55; font-size: 15px; font-weight: 700; }
.profile-field input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #dfe7eb;
  border-radius: 10px;
  outline: 0;
  background: #fbfcfd;
  color: #5c7483;
  font-size: 16px;
  text-align: right;
  transition: .2s ease;
  box-sizing: border-box;
}
.profile-field input:focus {
  background: #fff;
  border-color: rgba(0,139,191,.48);
  box-shadow: 0 0 0 4px rgba(0,139,191,.07);
}
.profile-save-button,
.profile-photo-button {
  border: 0;
  color: #fff;
  background: #008bbf;
  font-weight: 700;
  cursor: pointer;
}
.profile-save-button {
  width: 140px;
  height: 46px;
  margin-top: 12px;
  justify-self: start;
  border-radius: 9px;
  font-size: 15px;
}

.profile-photo-card {
  grid-area: photo;
  min-height: 295px;
  margin-top: 102px;
  padding: 30px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.profile-photo-placeholder {
  position: relative;
  width: 102px;
  height: 102px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #7bc7da 0%, #1298c6 100%);
}
.profile-photo-placeholder > span { font-size: 35.5px; font-weight: 600; }
.profile-photo-add {
  position: absolute;
  left: -2px;
  bottom: 3px;
  width: 29px;
  height: 29px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #d5dee3;
  border-radius: 50%;
  color: #6b8290;
  background: #fff;
  font-size: 20.5px;
  line-height: 1;
}
.profile-photo-card h2 { margin: 0 0 7px; color: #173b56; font-size: 17px; font-weight: 800; }
.profile-photo-card p { margin: 0 0 20px; color: #a3afb6; font-size: 12.5px; line-height: 1.6; }
.profile-photo-button { width: 105px; height: 40px; border-radius: 8px; font-size: 12.5px; }
.settings-footer { margin-top: auto; padding-top: 60px; padding-bottom: 18px; }

@media (max-width: 1260px) {
  .settings-section { width: min(1020px, calc(100vw - var(--sidebar-width) - 54px)); }
  .settings-content-grid {
    grid-template-columns: 205px minmax(440px, 1fr) 195px;
    gap: 22px;
  }
}
@media (max-width: 1030px) {
  .settings-content-grid {
    grid-template-columns: minmax(0,1fr) 190px;
    grid-template-areas: "form menu" "photo menu";
  }
  .profile-photo-card { margin-top: 0; width: 240px; min-height: 240px; justify-self: start; }
}
@media (max-width: 760px) {
  .settings-main-content { padding: 16px 14px 0; }
  .settings-section { width: 100%; margin-top: 14px; }
  .settings-page-title { font-size: 37px; margin-bottom: 20px; }
  .settings-content-grid { grid-template-columns: 1fr; grid-template-areas: "menu" "form" "photo"; gap: 22px; }
  .settings-menu-card { min-height: auto; }
  .settings-menu-item--logout { margin-top: 10px; }
  .profile-photo-card { width: min(340px,100%); justify-self: center; }
}

/* V24: robust native navigation links */
a.profile { text-decoration: none; color: inherit; }
a.link-button, a.round-arrow { text-decoration: none; }

/* ===== V26 settings tabs: fixed page shell, changing center only ===== */
.settings-content-grid {
  grid-template-columns: 230px minmax(540px, 700px) 230px;
  grid-template-areas: "menu form photo";
}
.settings-menu-card { grid-area: menu; }
.profile-photo-card { grid-area: photo; }
.settings-tab-area {
  grid-area: form;
  min-width: 0;
  min-height: 520px;
}
.settings-tab-panel { min-width: 0; }
.settings-tab-panel[hidden] { display: none !important; }
.settings-tab-panel.is-active { display: block; }

/* Keep side cards fixed so switching tabs never moves the page */
.settings-menu-card,
.profile-photo-card { position: sticky; top: 118px; }
.profile-photo-card { margin-top: 0; min-height: 320px; }
.settings-menu-card { min-height: 430px; }

/* Storage tab */
.storage-overview-card,
.storage-detail-card,
.security-card,
.security-option-card,
.language-option {
  border: 1px solid #e2e9ed;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(0,27,72,.045);
}
.storage-overview-card { padding: 24px 26px; margin-bottom: 20px; }
.storage-overview-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.storage-overview-card__header > div { display: grid; gap: 5px; }
.storage-overview-card__header strong { color:#173d57; font-size:18.5px; }
.storage-overview-card__header span:not(.storage-percent) { color:#91a3ae; font-size:14px; }
.storage-percent { color:#008bbf; font-size:27.5px; font-weight:800; }
.storage-overview-track,
.storage-mini-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #eaf1f4;
}
.storage-overview-track span,
.storage-mini-track span {
  display: block;
  height:100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#00a4d8,#008bbf);
}
.storage-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:18px; }
.storage-detail-card { padding:18px; display:grid; grid-template-columns:42px 1fr; gap:12px; align-items:center; }
.storage-detail-icon {
  width:42px; height:42px; border-radius:12px; display:grid; place-items:center;
  background:#eef9fc; color:#008bbf;
}
.storage-detail-icon svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.storage-detail-copy { display:grid; gap:4px; }
.storage-detail-copy strong { color:#173d57; font-size:15px; }
.storage-detail-copy span { color:#97a7b0; font-size:12.5px; }
.storage-mini-track { grid-column:1 / -1; height:6px; }
.storage-mini-track--soft span { background:#97cadb; }
.settings-info-note {
  display:flex; gap:12px; align-items:flex-start; padding:16px 18px; border-radius:12px;
  background:#f5fbfd; color:#5b7787; font-size:14px; line-height:1.7;
}
.settings-info-note p { margin:0; }
.settings-info-note__icon { width:24px; height:24px; flex:0 0 24px; border-radius:50%; display:grid; place-items:center; background:#dff3f9; color:#008bbf; font-weight:800; }

/* Security tab */
.security-form { display:grid; gap:16px; }
.security-card { padding:22px 24px; display:grid; gap:14px; }
.security-card__title { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-bottom:4px; }
.security-card__title > div { display:grid; gap:5px; }
.security-card__title strong { color:#173d57; font-size:18.5px; }
.security-card__title span:not(.security-lock) { color:#95a6af; font-size:12.5px; line-height:1.6; }
.security-lock { width:42px; height:42px; border-radius:12px; background:#eef9fc; color:#008bbf; display:grid; place-items:center; flex:0 0 auto; }
.security-lock svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; }
.security-save-button { width:160px; }
.security-option-card { min-height:84px; padding:16px 20px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.security-option-card > div { display:grid; gap:5px; }
.security-option-card strong { color:#173d57; font-size:15px; }
.security-option-card span { color:#98a7af; font-size:12.5px; line-height:1.6; }
.toggle-switch { position:relative; width:48px; height:27px; flex:0 0 auto; }
.toggle-switch input { position:absolute; opacity:0; pointer-events:none; }
.toggle-switch span { position:absolute; inset:0; border-radius:999px; background:#d6e1e6; transition:.2s; }
.toggle-switch span::after { content:""; position:absolute; width:21px; height:21px; top:3px; right:3px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.15); transition:.2s; }
.toggle-switch input:checked + span { background:#008bbf; }
.toggle-switch input:checked + span::after { transform:translateX(-21px); }
.security-secondary-button { height:38px; padding:0 16px; border:1px solid #d9e5ea; border-radius:9px; background:#fff; color:#0b7096; font-weight:700; cursor:pointer; }

/* Language tab */
.language-options { display:grid; gap:14px; }
.language-option { position:relative; min-height:78px; padding:17px 20px; display:grid; grid-template-columns:1fr auto; align-items:center; text-align:right; border:1px solid #e2e9ed; cursor:pointer; color:#173d57; }
.language-option span:first-child { font-size:16px; font-weight:800; }
.language-option small { grid-column:1; color:#96a7af; margin-top:4px; }
.language-option.is-selected { border-color:rgba(0,139,191,.35); background:#f7fcfe; }
.language-check { grid-column:2; grid-row:1 / span 2; width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:#008bbf; color:#fff; font-weight:800; }

.settings-menu-item { cursor:pointer; }

@media (max-width:1260px){
  .settings-content-grid { grid-template-columns:205px minmax(450px,1fr) 205px; gap:22px; }
}
@media (max-width:1030px){
  .settings-content-grid { grid-template-columns:minmax(0,1fr) 200px; grid-template-areas:"form photo" "menu menu"; }
  .settings-menu-card,.profile-photo-card { position:static; }
  .settings-menu-card { flex-direction:row; flex-wrap:wrap; min-height:auto; padding:10px; }
  .settings-menu-item { width:auto; flex:1 1 150px; min-height:48px; text-align:center; }
  .settings-menu-item.is-active::after { inset:auto 18px 0; width:auto; height:3px; border-radius:999px 999px 0 0; }
  .settings-menu-item--logout { margin-top:0; }
  .profile-photo-card { width:auto; min-height:260px; }
}
@media (max-width:760px){
  .settings-content-grid { grid-template-columns:1fr; grid-template-areas:"photo" "menu" "form"; }
  .storage-detail-grid { grid-template-columns:1fr; }
  .security-option-card { align-items:flex-start; }
}

/* ===== V27: language state + profile photo upload ===== */
.language-option { outline: none; }
.language-option:focus-visible { outline: 2px solid #cfd9de; outline-offset: 2px; }
.language-option.is-selected {
  border: 2px solid #008bbf;
  background: #f4fbfe;
  box-shadow: 0 7px 18px rgba(0,139,191,.08);
}
.language-option:not(.is-selected) .language-check { display:none; }
.language-option small { min-height: 18px; }

.profile-photo-placeholder { overflow: visible; }
.profile-photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.profile-photo-placeholder.has-image .profile-photo-initial { display:none; }
.profile.settings-profile .profile__avatar.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,27,72,.32);
  backdrop-filter: blur(4px);
}
.profile-upload-modal[hidden] { display:none !important; }
.profile-upload-dialog {
  position: relative;
  width: min(520px, calc(100vw - 36px));
  padding: 30px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,27,72,.2);
  direction: rtl;
}
.profile-upload-close {
  position:absolute;
  top:16px;
  left:16px;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:#f2f7f9;
  color:#173d57;
  font-size:27.5px;
  line-height:1;
  cursor:pointer;
}
.profile-upload-heading { padding-left: 40px; margin-bottom: 20px; }
.profile-upload-heading h2 { margin:0 0 7px; color:#173d57; font-size:25.5px; }
.profile-upload-heading p { margin:0; color:#95a6af; font-size:14px; line-height:1.7; }
.profile-upload-zone {
  min-height: 190px;
  padding: 26px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:8px;
  border:1.5px dashed #cfd9de;
  border-radius:12px;
  background:#fafbfc;
  color:#173d57;
  text-align:center;
  cursor:pointer;
  transition:.2s ease;
}
.profile-upload-zone:hover { border-color:#b8c6cd; background:#f5f7f8; }
.profile-upload-icon {
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:transparent;
  color:#7d909b;
}
.profile-upload-icon svg { width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.profile-upload-zone strong { font-size:17px; }
.profile-upload-zone small { color:#97a8b1; font-size:12.5px; }
.profile-upload-preview {
  margin-top:16px;
  padding:12px;
  display:flex;
  align-items:center;
  gap:14px;
  border:1px solid #e2e9ed;
  border-radius:14px;
  background:#fff;
}
.profile-upload-preview[hidden] { display:none !important; }
.profile-upload-preview img { width:68px; height:68px; object-fit:cover; border-radius:14px; }
.profile-upload-preview > div { min-width:0; display:grid; gap:5px; }
.profile-upload-preview strong { max-width:320px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#173d57; font-size:15px; }
.profile-upload-preview small { color:#98a7af; font-size:12.5px; }
.profile-upload-actions { margin-top:20px; display:flex; justify-content:flex-start; gap:10px; }
.profile-upload-cancel,
.profile-upload-apply {
  height:42px;
  padding:0 22px;
  border-radius:10px;
  font-family:inherit;
  font-weight:700;
  cursor:pointer;
}
.profile-upload-cancel { border:1px solid #dbe5ea; background:#fff; color:#5c7482; }
.profile-upload-apply { border:0; background:#008bbf; color:#fff; }
.profile-upload-apply:disabled { opacity:.45; cursor:not-allowed; }
@media (max-width:600px){
  .profile-upload-dialog { padding:24px 18px 20px; }
  .profile-upload-zone { min-height:160px; }
}

/* =========================================================
   V28 - Password recovery flow
   Standalone pre-auth screens. No backend integration yet.
   ========================================================= */
.auth-flow-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(151,202,219,.18), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(1,139,191,.10), transparent 28%),
    #fbfdfe;
  color: #173d57;
  font-family: var(--font-family);
}
.auth-flow-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 26px 34px 18px;
}
.auth-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
}
.auth-flow-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #02457a;
}
.auth-flow-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.auth-flow-logo span {
  font-size: 23px;
  font-weight: 800;
}
.auth-flow-step {
  font-size: 14px;
  font-weight: 700;
  color: #8ba1ae;
  background: #f2f7f9;
  border: 1px solid #e4edf1;
  border-radius: 999px;
  padding: 8px 14px;
}
.auth-flow-main {
  display: grid;
  place-items: center;
  padding: 28px 0;
}
.auth-flow-card {
  width: min(760px, 100%);
  border: 1px solid #e2ebef;
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 60px rgba(13,74,103,.08);
  padding: 44px 54px;
  text-align: right;
  direction: rtl;
}
.auth-flow-card--compact { width: min(680px, 100%); }
.auth-flow-card--center { text-align: center; }
.auth-flow-visual {
  width: 168px;
  height: 168px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}
.auth-flow-visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.auth-flow-visual--small { width: 142px; height: 142px; }
.auth-flow-success-visual { position: relative; }
.auth-flow-success-badge {
  position: absolute;
  right: 5px;
  top: 6px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg,#20d58e,#02a96d);
  color: white;
  box-shadow: 0 8px 18px rgba(2,169,109,.28);
  font-size: 32px;
  font-weight: 800;
  border: 4px solid #fff;
}
.auth-flow-title {
  margin: 0 0 8px;
  color: #0d3b63;
  font-size: clamp(30px,3.45vw,39px);
  line-height: 1.25;
  font-weight: 800;
}
.auth-flow-subtitle {
  margin: 0 0 28px;
  color: #93a7b3;
  font-size: 17px;
  line-height: 1.9;
}
.auth-flow-card--center .auth-flow-subtitle { margin-inline: auto; max-width: 540px; }
.auth-flow-form { display: grid; gap: 20px; }
.auth-field { display: grid; gap: 9px; }
.auth-field label {
  color: #173d57;
  font-size: 16px;
  font-weight: 800;
}
.auth-input-wrap { position: relative; }
.auth-input {
  width: 100%;
  height: 54px;
  border: 1px solid #d8e5ea;
  border-radius: 13px;
  background: #fff;
  color: #173d57;
  padding: 0 16px;
  font-family: inherit;
  font-size: 17px;
  outline: none;
  box-sizing: border-box;
}
.auth-password-toggle {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #83a0ae;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 7px;
}
.auth-error {
  min-height: 18px;
  margin: 0;
  color: #d94f4f;
  font-size: 14px;
  font-weight: 600;
}
.auth-primary-button,
.auth-secondary-button {
  min-height: 52px;
  border-radius: 13px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.auth-primary-button {
  width: 100%;
  border: 0;
  background: linear-gradient(90deg,#086fe2,#018bbf);
  color: #fff;
  box-shadow: 0 10px 22px rgba(8,111,226,.16);
}
.auth-primary-button:hover { filter: brightness(.98); transform: translateY(-1px); }
.auth-secondary-button {
  width: 100%;
  border: 1px solid #168ed4;
  background: #fff;
  color: #0875ca;
}
.auth-text-link {
  border: 0;
  background: transparent;
  color: #087bce;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.auth-helper-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: #9aabb4;
  font-size: 14px;
}
.auth-email-value {
  direction: ltr;
  display: inline-block;
  color: #0d3b63;
  font-weight: 800;
  font-size: 17px;
  margin: -8px 0 18px;
}
.auth-requirements {
  display: grid;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}
.auth-requirement {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #78909c;
  font-size: 15px;
}
.auth-requirement::before {
  content: '✓';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf2f4;
  color: #9badb5;
  font-size: 14px;
  font-weight: 800;
  flex: 0 0 20px;
}
.auth-requirement.is-valid { color: #53717f; }
.auth-requirement.is-valid::before { background: #20c997; color: #fff; }
.auth-flow-footer {
  text-align: center;
  color: #8da0aa;
  font-size: 14px;
  padding-top: 10px;
}
.auth-flow-note {
  color: #7f96a3;
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 24px;
}
.auth-flow-actions { display: grid; gap: 12px; }
.auth-demo-link {
  margin-top: 8px;
  text-align: center;
  font-size: 12.5px;
  color: #a0afb7;
}
@media (max-width: 720px) {
  .auth-flow-shell { padding: 18px 16px 14px; }
  .auth-flow-header { align-items: flex-start; }
  .auth-flow-logo span { display: none; }
  .auth-flow-step { font-size: 11.5px; padding: 7px 10px; }
  .auth-flow-card { padding: 30px 20px; border-radius: 22px; }
  .auth-flow-visual { width: 135px; height: 135px; }
  .auth-flow-title { font-size: 28.5px; }
  .auth-flow-subtitle { font-size: 15px; }
}

/* =========================================================
   V29 - Password flow refinements
   ========================================================= */
.auth-flow-logo {
  width: 138px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}
.auth-flow-logo img {
  width: 138px;
  height: 52px;
  object-fit: contain;
  object-position: center;
}
.auth-flow-logo span { display: none !important; }

/* Give the recovery illustrations more presence without making the cards larger. */
.auth-flow-visual { width: 205px; height: 205px; margin-bottom: 16px; }
.auth-flow-visual--small { width: 185px; height: 185px; }
.auth-flow-success-visual { width: 195px; height: 195px; }

/* Reset-password form is intentionally a little tighter than the email step. */
.auth-flow-card--reset {
  width: min(660px, 100%);
  padding: 38px 48px;
}
.auth-flow-card--reset .auth-flow-form { gap: 16px; }
.auth-flow-card--reset .auth-field { gap: 7px; }
.auth-flow-card--reset .auth-field label { font-size: 15px; }
.auth-flow-card--reset .auth-input {
  height: 46px;
  border-radius: 11px;
  font-size: 16px;
  padding-inline: 14px 62px;
}
.auth-flow-card--reset .auth-password-toggle {
  left: 10px;
  font-size: 14px;
}
.auth-flow-card--reset .auth-requirements {
  gap: 6px;
  margin-top: 2px;
}
.auth-flow-card--reset .auth-requirement { font-size: 14px; }
.auth-flow-card--reset .auth-primary-button { min-height: 48px; }

@media (max-width: 720px) {
  .auth-flow-logo { width: 116px; height: 44px; }
  .auth-flow-logo img { width: 116px; height: 44px; }
  .auth-flow-visual { width: 165px; height: 165px; }
  .auth-flow-visual--small { width: 155px; height: 155px; }
  .auth-flow-card--reset { padding: 28px 20px; }
}

/* =========================================================
   V30 - Password recovery screens: tighter proportions
   ========================================================= */
.auth-flow-shell {
  padding: 18px 30px 14px;
}
.auth-flow-header {
  min-height: 58px;
}
.auth-flow-logo {
  width: 190px;
  height: 62px;
  flex: 0 0 auto;
}
.auth-flow-logo img {
  width: 190px;
  height: 62px;
  object-fit: contain;
  object-position: center;
}
.auth-flow-main {
  padding: 8px 0 18px;
}
.auth-flow-card {
  width: min(600px, 100%);
  border-radius: 22px;
  padding: 30px 40px;
  box-shadow: 0 18px 48px rgba(13,74,103,.07);
}
.auth-flow-card--compact {
  width: min(540px, 100%);
}
.auth-flow-title {
  font-size: clamp(27.5px, 2.76vw, 33.5px);
  margin-bottom: 6px;
}
.auth-flow-subtitle {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.auth-flow-step {
  font-size: 12.5px;
  padding: 7px 12px;
}
.auth-flow-visual {
  width: 168px;
  height: 168px;
  margin-bottom: 12px;
}
.auth-flow-visual--small {
  width: 158px;
  height: 158px;
}
.auth-flow-success-visual {
  width: 170px;
  height: 170px;
}
.auth-flow-success-badge {
  width: 44px;
  height: 44px;
  font-size: 26.5px;
  border-width: 3px;
}
.auth-flow-form {
  gap: 15px;
}
.auth-field {
  gap: 7px;
}
.auth-field label {
  font-size: 15px;
}
.auth-input {
  height: 44px;
  border-radius: 11px;
  font-size: 15px;
  padding: 0 14px;
}
.auth-primary-button,
.auth-secondary-button {
  min-height: 46px;
  border-radius: 11px;
  font-size: 15px;
}
.auth-helper-row {
  margin-top: 14px;
  font-size: 13px;
}
.auth-email-value {
  font-size: 16px;
  margin: -5px 0 14px;
}
.auth-flow-note {
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.auth-flow-footer {
  font-size: 12.5px;
}

/* The two supplied PDF screens are intentionally more compact. */
.auth-page-sent .auth-flow-card {
  width: min(560px, 100%);
  padding: 28px 42px 30px;
}
.auth-page-sent .auth-flow-visual {
  width: 170px;
  height: 170px;
  margin-bottom: 10px;
}
.auth-page-sent .auth-flow-title {
  font-size: 28.5px;
}
.auth-page-sent .auth-flow-actions--single {
  display: block;
}
.auth-page-sent .auth-secondary-button {
  width: 100%;
}

.auth-page-reset .auth-flow-card--reset {
  width: min(570px, 100%);
  padding: 30px 42px 32px;
}
.auth-page-reset .auth-flow-card--reset .auth-flow-form {
  gap: 13px;
}
.auth-page-reset .auth-flow-card--reset .auth-field {
  gap: 6px;
}
.auth-page-reset .auth-flow-card--reset .auth-field label {
  font-size: 14.5px;
}
.auth-page-reset .auth-flow-card--reset .auth-input {
  height: 42px;
  border-radius: 10px;
  font-size: 15px;
  padding-inline: 13px 58px;
}
.auth-page-reset .auth-flow-card--reset .auth-password-toggle {
  font-size: 12.5px;
}
.auth-page-reset .auth-flow-card--reset .auth-requirements {
  gap: 5px;
  margin-top: 0;
}
.auth-page-reset .auth-flow-card--reset .auth-requirement {
  font-size: 13px;
}
.auth-page-reset .auth-flow-card--reset .auth-requirement::before {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  font-size: 11.5px;
}
.auth-page-reset .auth-flow-card--reset .auth-primary-button {
  min-height: 44px;
  margin-top: 2px;
}

.auth-page-forgot .auth-flow-card {
  width: min(540px, 100%);
}
.auth-page-forgot .auth-flow-visual {
  width: 170px;
  height: 170px;
}
.auth-page-changed .auth-flow-card {
  width: min(520px, 100%);
  padding: 30px 38px;
}

@media (max-width: 720px) {
  .auth-flow-shell { padding: 14px 14px 12px; }
  .auth-flow-header { min-height: 48px; }
  .auth-flow-logo,
  .auth-flow-logo img { width: 150px; height: 50px; }
  .auth-flow-card,
  .auth-page-sent .auth-flow-card,
  .auth-page-reset .auth-flow-card--reset,
  .auth-page-changed .auth-flow-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .auth-flow-visual,
  .auth-page-sent .auth-flow-visual,
  .auth-page-forgot .auth-flow-visual,
  .auth-flow-success-visual {
    width: 142px;
    height: 142px;
  }
  .auth-flow-title,
  .auth-page-sent .auth-flow-title { font-size: 26.5px; }
}


/* =========================================================
   V31 refinements
   ========================================================= */
/* Auth headers: no top-left state chip on sent/reset screens. */
.auth-page-sent .auth-flow-header,
.auth-page-reset .auth-flow-header {
  justify-content: flex-start;
}

/* Password visibility icon replaces text control. */
.auth-page-reset .auth-password-toggle {
  width: 38px;
  height: 38px;
  padding: 7px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: transparent;
  overflow: hidden;
}
.auth-page-reset .auth-password-toggle img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: .62;
  transition: opacity .18s ease, transform .18s ease;
}
.auth-page-reset .auth-password-toggle:hover img,
.auth-page-reset .auth-password-toggle:focus-visible img { opacity: .92; }
.auth-page-reset .auth-password-toggle.is-visible img { opacity: .82; transform: scale(.95); }

/* Cleaner files icon in the sidebar. */
.nav-item__svg--files {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

/* New success illustration supplied by the user. */
.auth-page-changed .auth-flow-success-visual {
  width: 218px;
  height: 174px;
  margin-bottom: 10px;
}
.auth-page-changed .auth-flow-success-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.auth-page-changed .auth-flow-success-badge { display: none !important; }




/* ===== V33 safe layout fixes ===== */
/* Use the settings search field proportions across all signed-in pages. */
.topbar .search-box {
  width: min(500px, 42vw);
  height: 46px;
  border-radius: 16px;
}

/* Sidebar footer now contains settings only. */
.sidebar__bottom {
  margin-top: auto;
  padding-bottom: 26px;
}
.sidebar__bottom .nav-item { margin-bottom: 0; }

/* Keep the center settings panel visually anchored while the page scrolls. */
.settings-tab-area {
  position: sticky;
  top: 112px;
  align-self: start;
  max-height: calc(100vh - 138px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,139,191,.22) transparent;
}
.settings-tab-area::-webkit-scrollbar { width: 6px; }
.settings-tab-area::-webkit-scrollbar-thumb { background: rgba(0,139,191,.22); border-radius: 999px; }
.settings-tab-area::-webkit-scrollbar-track { background: transparent; }

/* No letter/text is shown inside the profile image circle before upload. */
.profile-photo-initial { display: none !important; }

/* The security heading no longer reserves space for a lock icon. */
.security-card__title { justify-content: flex-start; }

@media (max-width: 1030px) {
  .settings-tab-area { position: static; max-height: none; overflow: visible; }
}

/* ===== V34 requested refinements ===== */
/* Settings page: keep the page title and outer shell fixed on desktop. */
@media (min-width: 1031px) {
  .settings-section {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
  }
  .settings-page-title {
    flex: 0 0 auto;
    margin-bottom: 24px;
  }
  .settings-content-grid {
    flex: 1 1 auto;
    min-height: 0;
  }
  .settings-tab-area {
    position: static;
    height: 100%;
    max-height: none;
    overflow-y: auto;
    padding-inline: 2px 8px;
  }
  .settings-menu-card,
  .profile-photo-card {
    position: static;
  }
}

/* Storage account plan note. */
.storage-plan-note {
  min-height: 82px;
  margin-bottom: 18px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(0,139,191,.17);
  border-right: 5px solid #008bbf;
  border-radius: 13px;
  background: linear-gradient(90deg, #f7fcfe 0%, #eef9fc 100%);
}
.storage-plan-note__copy { display: grid; gap: 5px; text-align: right; }
.storage-plan-note__copy strong { color: #153b55; font-size: 17px; font-weight: 800; }
.storage-plan-note__copy span { color: #7e929e; font-size: 13px; line-height: 1.7; }
.storage-plan-note__badge {
  min-width: 68px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #008bbf;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  direction: ltr;
}
.storage-capacity-row {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8fa1ab;
  font-size: 12px;
}


/* ===== Meetings page ===== */
.meetings-page,
.meetings-page .app-shell { background: #f7f9fb; }
.meetings-main-content { padding-top: 20px; padding-bottom: 18px; background: #f7f9fb; }
.meetings-main-content .topbar { height: 70px; }
.meetings-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1520px;
  min-height: 218px;
  margin: 0 auto 22px;
  padding: 36px clamp(34px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 30px;
  background: linear-gradient(0deg, #018abe 0%, #53b8d3 48%, #b9e0ea 100%);
}
.meetings-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 24% 36%, rgba(255,255,255,.18), transparent 18%),
    radial-gradient(circle at 39% 76%, rgba(0,27,72,.10), transparent 22%);
}
.meetings-hero__mark {
  position: absolute;
  left: 7%;
  top: 50%;
  width: 230px;
  height: 180px;
  transform: translateY(-50%) rotate(-8deg);
  opacity: .14;
  filter: grayscale(1) brightness(7);
}
.meetings-hero__mark img { width: 100%; height: 100%; object-fit: contain; }
.meetings-hero__content { position: relative; z-index: 1; max-width: 560px; text-align: right; color: #fff; }
.meetings-hero__content h1 { margin: 0 0 10px; font-size: clamp(34.5px, 3.45vw, 50.5px); font-weight: 800; }
.meetings-hero__content p { margin: 0; color: rgba(255,255,255,.9); font-size: 16px; font-weight: 500; }

.meetings-toolbar {
  max-width: 1520px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  direction: rtl;
}
.meeting-filters { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.meeting-filter {
  min-width: 88px;
  height: 38px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #6c8290;
  font-size: 14px;
  font-weight: 600;
  transition: .18s ease;
}
.meeting-filter:hover { background: #eef7fa; color: #14789d; }
.meeting-filter.is-active {
  color: #fff;
  background: #008bbf;
}
.add-meeting-button {
  min-width: 170px;
  height: 42px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #008bbf;
  font-size: 14px;
  font-weight: 700;
}
.add-meeting-button span { font-size: 20.5px; line-height: 1; }
.add-meeting-button:hover { background: #0077a5; transform: translateY(-1px); }

.meetings-section { max-width: 1520px; margin: 0 auto; }
.meetings-section__heading {
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.meetings-section__heading > div { display: flex; align-items: center; gap: 9px; }
.meetings-section__heading h2 { margin: 0; color: #183c55; font-size: 20.5px; font-weight: 800; }
.meetings-section__icon { width: 28px; height: 28px; display: grid; place-items: center; color: #008bbf; }
.meetings-section__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meetings-count { color: #94a5ae; font-size: 12.5px; font-weight: 600; }
.meetings-list { display: grid; gap: 11px; }
.meeting-list-card {
  min-height: 86px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 50px minmax(0,1fr) 175px 42px;
  align-items: center;
  gap: 14px;
  direction: rtl;
  background: #fff;
  border: 1px solid #e9eef1;
  border-radius: 15px;
  transition: .18s ease;
}
.meeting-list-card:hover { background: #fbfcfd; }
.meeting-list-card[hidden] { display: none !important; }
.meeting-list-card__type {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.meeting-list-card__type svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meeting-list-card__type--video { color: #327bdc; background: #eaf2ff; }
.meeting-list-card__type--team { color: #18a06c; background: #eaf8f2; }
.meeting-list-card__type--presentation { color: #7b64d8; background: #f0edff; }
.meeting-list-card__copy { min-width: 0; text-align: right; }
.meeting-list-card__copy h3 { margin: 0 0 6px; color: #153b55; font-size: 16px; font-weight: 800; }
.meeting-list-card__copy p { margin: 0; color: #9aa8af; font-size: 12px; font-weight: 500; }
.meeting-list-card__copy p span { margin: 0 4px; color: #c5cfd4; }
.meeting-list-card__schedule {
  padding-right: 16px;
  display: grid;
  gap: 5px;
  border-right: 1px solid #edf1f3;
  text-align: right;
}
.meeting-list-card__schedule span { color: #99a9b2; font-size: 11.5px; }
.meeting-list-card__schedule strong { color: #173d57; font-size: 12.5px; direction: rtl; }
.meeting-list-card__arrow {
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #008bbf;
  background: #eef8fb;
  font-size: 28.5px;
  line-height: 1;
  font-family: Arial, sans-serif;
}
.meetings-empty-state {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  color: #82949e;
}
.meetings-empty-state[hidden] { display: none !important; }
.meetings-empty-state__icon {
  width: 60px;
  height: 60px;
  margin-bottom: 4px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #008bbf;
  background: #eef9fc;
}
.meetings-empty-state__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meetings-empty-state h3 { margin: 0; color: #183c55; font-size: 19.5px; }
.meetings-empty-state p { margin: 0; font-size: 13px; }
.meetings-footer { margin-top: 52px; }

.meeting-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(0,27,72,.28);
  backdrop-filter: blur(4px);
}
.meeting-modal[hidden] { display: none !important; }
.meeting-modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 22px 24px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0,27,72,.16);
}
.meeting-modal__close {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: #f2f5f7;
  color: #5d7280;
  font-size: 23px;
  line-height: 1;
}
.meeting-modal__close:hover { background: #e8eef1; }
.meeting-modal__heading { margin-bottom: 16px; padding-left: 40px; text-align: right; }
.meeting-modal__heading h2 { margin: 0 0 4px; color: #173d57; font-size: 22px; }
.meeting-modal__heading p { margin: 0; color: #98a7af; font-size: 12.5px; }
.meeting-modal__form { display: grid; gap: 16px; }
.meeting-modal__form label { display: grid; gap: 6px; color: #274b61; font-size: 12.5px; font-weight: 700; }
.meeting-modal__actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; border-top: 1px solid #eef2f4; }
.meeting-modal__submit,
.meeting-modal__cancel {
  height: 36px;
  padding: 0 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
}
.meeting-modal__submit { border: 0; color: #fff; background: #008bbf; }
.meeting-modal__submit:hover { background: #0077a5; }
.meeting-modal__cancel { border: 1px solid #dfe7eb; color: #4f6876; background: #fff; }
.meeting-modal__cancel:hover { background: #f5f8f9; }

/* Small centered notes dialog shown on the Meetings page after leaving a meeting. */
.meeting-ended-dialog { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(10,35,54,.18); }
.meeting-ended-dialog[hidden] { display: none; }
.meeting-ended-dialog__box { width: min(440px, 100%); padding: 18px 20px; background: #fff; border: 1px solid #e3eaee; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,27,72,.10); }
.meeting-ended-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.meeting-ended-dialog__head h2 { margin: 0; color: #173d57; font-size: 17px; font-weight: 800; }
.meeting-ended-dialog__head p { margin: 3px 0 0; color: #7d909b; font-size: 12.5px; }
.meeting-ended-dialog__close { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: #7d909b; font-size: 20.5px; line-height: 1; cursor: pointer; }
.meeting-ended-dialog__close:hover { background: #f2f5f7; }
.meeting-ended-dialog textarea { box-sizing: border-box; width: 100%; height: 110px; padding: 10px 12px; border: 1px solid #dfe7eb; border-radius: 8px; resize: vertical; font-family: inherit; font-size: 14px; line-height: 1.7; color: #3f5d6c; }
.meeting-ended-dialog__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.meeting-ended-dialog__actions small { margin-left: auto; color: #19784f; font-size: 12px; font-weight: 600; }
.meeting-ended-dialog__cancel,
.meeting-ended-dialog__save { height: 32px; padding: 0 16px; border-radius: 7px; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.meeting-ended-dialog__cancel { border: 1px solid #dfe7eb; background: #fff; color: #4f6876; }
.meeting-ended-dialog__save { border: 0; background: #008bbf; color: #fff; }
.meeting-ended-dialog__save:hover { background: #0077a5; }

@media (max-width: 980px) {
  .meetings-hero { min-height: 185px; }
  .meetings-hero__mark { width: 175px; height: 140px; }
  .meeting-list-card { grid-template-columns: 48px minmax(0,1fr) 150px 38px; gap: 10px; }
}
@media (max-width: 760px) {
  body.settings-page { height: auto; overflow: auto; }
  .settings-main-content { height: auto; overflow: visible; }
  .settings-section { display: block; }
  .settings-tab-area { height: auto; overflow: visible; padding: 0; }
  .meetings-toolbar { flex-direction: column; align-items: stretch; }
  .add-meeting-button { align-self: flex-start; }
  .meeting-list-card { grid-template-columns: 44px 1fr 36px; }
  .meeting-list-card__schedule { grid-column: 2; border-right: 0; padding-right: 0; }
  .meeting-list-card__arrow { grid-column: 3; grid-row: 1 / span 2; }
  .meeting-modal__row { grid-template-columns: 1fr; }
}


/* ===== V35 requested refinements ===== */
/* Meetings: title on the right and a clean table-like layout. */
.meetings-hero { justify-content: flex-start; direction: rtl; }
.meetings-hero__content,
.meetings-hero__content--right { width: 100%; max-width: none; text-align: right; }
.meetings-hero__content h1 { text-align: right; }
.meetings-list { gap: 9px; }
.meeting-table-header,
.meeting-list-card--table {
  display: grid;
  grid-template-columns: 72px minmax(190px,1.5fr) minmax(150px,1.1fr) 132px 142px 122px;
  gap: 12px;
  align-items: center;
  direction: rtl;
}
.meeting-table-header {
  min-height: 44px;
  padding: 0 18px;
  color: #5f7582;
  background: #eef5f8;
  border: 1px solid #e2ebef;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 800;
}
.meeting-list-card--table {
  min-height: 74px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid #e8eef1;
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(0,27,72,.035);
}
.meeting-list-card__kind {
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  direction: rtl;
}
.meeting-kind-line { width: 4px; height: 45px; border-radius: 999px; background: #008bbf; }
.meeting-kind-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #008bbf; }
.meeting-kind-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meeting-list-card__name { color: #173d57; font-size: 14.5px; font-weight: 800; text-align: right; }
.meeting-list-card__supervisor,
.meeting-list-card__date,
.meeting-list-card__time { color: #697f8b; font-size: 12.5px; font-weight: 600; text-align: right; }
.meeting-list-card__action { display: flex; justify-content: center; }
.meeting-action-button {
  min-width: 106px;
  height: 34px;
  padding: 0 14px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 800;
}
.meeting-action-button--join { border: 0; color: #fff; background: #008bbf; }
.meeting-action-button--notes { border: 1px solid #b9dce8; color: #087aa4; background: #f7fcfe; }
.meeting-list-card__type,
.meeting-list-card__copy,
.meeting-list-card__schedule,
.meeting-list-card__arrow { display: none !important; }
@media (max-width: 1100px) {
  .meeting-table-header,
  .meeting-list-card--table { grid-template-columns: 62px 1.35fr 1fr 112px 126px 110px; gap: 8px; }
}
@media (max-width: 820px) {
  .meeting-table-header { display: none; }
  .meeting-list-card--table {
    grid-template-columns: 56px 1fr 1fr;
    grid-template-areas:
      "kind name name"
      "kind supervisor supervisor"
      "kind date time"
      "kind action action";
  }
  .meeting-list-card__kind { grid-area: kind; }
  .meeting-list-card__name { grid-area: name; }
  .meeting-list-card__supervisor { grid-area: supervisor; }
  .meeting-list-card__date { grid-area: date; }
  .meeting-list-card__time { grid-area: time; }
  .meeting-list-card__action { grid-area: action; justify-content: flex-start; }
}

/* Settings: compact enough to fit desktop without an inner scroll; keep sidebar identical to other pages. */
@media (min-width: 1031px) {
  .settings-main-content { padding-top: 10px; }
  .settings-topbar { height: 58px; }
  .settings-section { margin-top: 2px; min-height: 0; }
  .settings-page-title { margin-bottom: 12px; font-size: 34.5px; }
  .settings-content-grid {
    grid-template-columns: 185px minmax(450px, 610px) 180px;
    gap: 18px;
    align-items: start;
  }
  .settings-tab-area {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
  }
  .settings-menu-card { min-height: 342px; padding: 10px 0; }
  .settings-menu-item { min-height: 46px; padding: 0 18px; font-size: 14px; }
  .profile-photo-card { min-height: 238px; padding: 20px 16px; }
  .profile-photo-placeholder { width: 82px; height: 82px; margin-bottom: 12px; }
  .profile-photo-card p { margin-bottom: 13px; font-size: 11px; }
  .profile-photo-button { width: 96px; height: 34px; }
  .profile-form-heading { margin-bottom: 12px; }
  .profile-form-heading h2 { margin-bottom: 4px; font-size: 24px; }
  .profile-form-heading p { font-size: 12px; }
  .profile-form { gap: 10px; }
  .profile-field { gap: 5px; }
  .profile-field > span { font-size: 12.5px; }
  .profile-field input { height: 42px; padding: 0 14px; font-size: 14px; }
  .profile-save-button { width: 124px; height: 38px; margin-top: 4px; font-size: 12.5px; }
  .storage-plan-note { min-height: 62px; margin-bottom: 10px; padding: 11px 14px; }
  .storage-plan-note__copy strong { font-size: 14.5px; }
  .storage-plan-note__copy span { font-size: 11px; line-height: 1.5; }
  .storage-plan-note__badge { min-width: 60px; height: 31px; font-size: 12.5px; }
  .storage-overview-card { padding: 15px 17px; margin-bottom: 10px; }
  .storage-overview-card__header { margin-bottom: 10px; }
  .storage-overview-card__header strong { font-size: 15px; }
  .storage-overview-card__header span:not(.storage-percent) { font-size: 11px; }
  .storage-percent { font-size: 22px; }
  .storage-detail-grid { gap: 10px; margin-bottom: 10px; }
  .storage-detail-card { padding: 11px; grid-template-columns: 34px 1fr; gap: 8px; }
  .storage-detail-icon { width: 34px; height: 34px; }
  .settings-info-note { padding: 10px 12px; font-size: 11px; line-height: 1.5; }
  .security-form { gap: 10px; }
  .security-card { padding: 14px 16px; gap: 9px; }
  .security-card__title strong { font-size: 15px; }
  .security-card__title span:not(.security-lock) { font-size: 11px; }
  .security-option-card { min-height: 66px; padding: 11px 14px; }
  .language-options { gap: 10px; }
  .language-option { min-height: 64px; padding: 12px 15px; }
  .settings-footer { padding-top: 10px; padding-bottom: 8px; font-size: 10.5px; }
}

/* Home calendar agenda panel. */
.calendar-card { min-height: 0; }
.calendar-agenda {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf1f3;
}
.calendar-agenda__heading {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: right;
}
.calendar-agenda__heading strong { color: #173d57; font-size: 12.5px; }
.calendar-agenda__heading span { color: #9aa8af; font-size: 10.5px; }
.calendar-agenda__content { display: grid; gap: 7px; }
.calendar-agenda__item {
  min-height: 42px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #edf1f3;
  border-radius: 10px;
  background: #fbfdfe;
}
.calendar-agenda__dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #008bbf; }
.calendar-agenda__item--task .calendar-agenda__dot { background: #2fc38b; }
.calendar-agenda__item div { display: grid; gap: 2px; text-align: right; }
.calendar-agenda__item strong { color: #173d57; font-size: 11.5px; }
.calendar-agenda__item small { color: #9aa8af; font-size: 10px; }
.calendar-agenda__empty {
  min-height: 48px;
  display: grid;
  place-items: center;
  color: #98a7af;
  background: #fbfdfe;
  border: 1px dashed #dfe8ec;
  border-radius: 10px;
  font-size: 11px;
}


/* ===== V36 refinements ===== */
/* Settings: aligned three-column layout and a larger right menu under the title. */
@media (min-width: 1031px) {
  .settings-main-content {
    margin-right: var(--sidebar-width) !important;
    width: auto !important;
  }
  .settings-section {
    width: min(1240px, calc(100vw - var(--sidebar-width) - 54px));
    margin-top: 2px;
  }
  .settings-page-title {
    margin: 0 0 14px;
    font-size: 37px;
    text-align: right;
  }
  .settings-content-grid {
    grid-template-columns: 245px minmax(560px, 1fr) 235px;
    grid-template-areas: "menu form photo";
    gap: 22px;
    align-items: start;
    justify-content: stretch;
  }
  .settings-menu-card,
  .profile-photo-card,
  .settings-tab-area {
    position: static !important;
    top: auto !important;
    align-self: start;
    max-height: none !important;
    overflow: visible !important;
  }
  .settings-menu-card {
    min-height: 370px;
    padding: 12px 0;
  }
  .settings-menu-item {
    min-height: 50px;
    padding: 0 20px;
    font-size: 14.5px;
  }
  .profile-photo-card {
    min-height: 370px;
    margin-top: 0 !important;
    padding: 24px 18px;
  }
  .settings-tab-area { min-height: 370px; }
  .security-card { padding: 13px 16px; gap: 8px; }
  .security-option-card { min-height: 58px; padding: 10px 13px; }
  .security-secondary-button {
    height: 32px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 11.5px;
    white-space: nowrap;
  }
}

/* Storage notice: keep the number inside the detailed usage card, not as a top badge. */
.storage-plan-note { grid-template-columns: 1fr !important; }
.storage-plan-note__badge { display: none !important; }

/* Meetings: one continuous white table instead of separate cards. */
.meetings-list {
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid #e4edf1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,27,72,.035);
}
.meeting-table-header {
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid #e7eef2 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.meeting-list-card--table {
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #edf2f4 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}
.meeting-list-card--table:last-child { border-bottom: 0 !important; }
.meeting-list-card--table:hover { background: #fbfdfe !important; box-shadow: none !important; transform: none !important; }

/* Meeting notes dialog. */
.meeting-notes-modal__dialog { max-width: 520px; }
.meeting-notes-content {
  min-height: 120px;
  margin: 8px 0 20px;
  padding: 18px;
  border: 1px solid #e2e9ed;
  border-radius: 12px;
  background: #fbfdfe;
  color: #526c7b;
  font-size: 15px;
  line-height: 1.9;
  text-align: right;
}
.meeting-notes-close-button {
  width: 110px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: #008bbf;
  color: #fff;
  font-weight: 700;
}

/* Home agenda: no framed empty state and no colored dots when items exist. */
.calendar-agenda__empty {
  min-height: 42px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #93a3ac;
  font-size: 11.5px;
  text-align: center;
}
.calendar-agenda__dot { display: none !important; }
.calendar-agenda__item { padding-right: 10px; gap: 0; }


/* ===== V37 final refinement: connected sidebar active state ===== */
.sidebar__nav,.sidebar__bottom{padding-right:14px;padding-left:12px;overflow:visible}
.nav-item.is-active{
  margin-right:-14px;
  width:calc(100% + 14px);
  padding-right:28px;
  border-radius:12px 0 0 12px;
  background:rgba(151,202,219,.22);
}
.nav-item.is-active::before{
  right:0;
  width:6px;
  height:100%;
  border-radius:10px 0 0 10px;
  background:#fff;
  box-shadow:none;
}

/* ===== V37 settings: cleaner, compact, close to original concept ===== */
.settings-main-content{padding-top:20px;}
.settings-section--clean{width:min(1120px,calc(100vw - var(--sidebar-width) - 64px));margin:8px auto 0;}
.settings-section--clean .settings-page-title{margin:0 0 16px;font-size:39px;line-height:1;text-align:right;}
.settings-content-grid--clean{
  display:grid;
  grid-template-columns:230px minmax(500px,1fr) 205px;
  grid-template-areas:"menu form photo";
  gap:24px;
  align-items:start;
  direction:rtl;
}
.settings-menu-card--clean{grid-area:menu;position:static!important;min-height:360px;padding:12px 0 14px;border-radius:16px;}
.settings-menu-heading{padding:8px 20px 12px;color:#9baab3;font-size:12.5px;font-weight:700;text-align:right;}
.settings-menu-card--clean .settings-menu-item{min-height:50px;padding:0 20px;font-size:15px;}
.settings-menu-card--clean .settings-menu-item--logout{margin-top:auto;}
.settings-tab-area--clean{grid-area:form;position:static!important;min-height:0;height:auto!important;overflow:visible!important;padding:0;}
.settings-tab-area--clean .profile-form-heading{margin-bottom:16px;}
.settings-tab-area--clean .profile-form-heading h2{font-size:28.5px;margin-bottom:5px;}
.settings-tab-area--clean .profile-form-heading p{font-size:14px;}
.profile-form--compact{gap:14px;}
.profile-fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 16px;}
.settings-tab-area--clean .profile-field{gap:6px;}
.settings-tab-area--clean .profile-field>span{font-size:14px;}
.settings-tab-area--clean .profile-field input{height:48px;font-size:15px;border-radius:10px;}
.settings-tab-area--clean .profile-save-button{height:42px;margin-top:2px;}
.profile-photo-card--clean{grid-area:photo;position:static!important;margin-top:0!important;min-height:270px;padding:26px 18px 22px;border-radius:16px;}
.profile-photo-card--clean .profile-photo-placeholder{width:94px;height:94px;margin-bottom:16px;}
.profile-photo-card--clean p{margin-bottom:17px;font-size:12px;}
.storage-overview-card--clean{padding:20px 22px;margin-bottom:14px;}
.storage-detail-grid{gap:12px;margin-bottom:14px;}
.settings-tab-area--clean .storage-detail-card{padding:16px;grid-template-columns:1fr;gap:8px;}
.settings-info-note--clean{padding:14px 16px;font-size:13px;}
.security-form--clean{gap:12px;}
.security-card--clean{padding:16px 18px;gap:11px;}
.security-fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px 14px;}
.security-fields-grid .profile-field:last-child{grid-column:1/-1;}
.security-option-card--clean{min-height:66px;padding:12px 16px;}
.security-option-card--clean .security-secondary-button{height:32px;padding:0 14px;font-size:12px;}
.language-options--clean{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.language-options--clean .language-option{min-height:90px;}
.settings-footer{padding-top:28px;}
@media(max-width:1150px){.settings-content-grid--clean{grid-template-columns:200px minmax(430px,1fr) 185px;gap:18px}.settings-section--clean{width:calc(100vw - var(--sidebar-width) - 40px)}}
@media(max-width:920px){.settings-content-grid--clean{grid-template-columns:1fr;grid-template-areas:"menu" "form" "photo"}.profile-photo-card--clean{width:min(320px,100%);justify-self:center}.profile-fields-grid,.security-fields-grid,.language-options--clean{grid-template-columns:1fr}.security-fields-grid .profile-field:last-child{grid-column:auto}}

/* ===== V37 login/register ===== */
.auth-access-page{margin:0;min-height:100vh;font-family:var(--font-family);background:#0b4f85;overflow:auto;}
.auth-access-shell{min-height:100vh;box-sizing:border-box;padding:24px clamp(18px,6vw,90px);display:flex;align-items:center;justify-content:flex-start;background:linear-gradient(90deg,rgba(0,27,72,.10),rgba(0,27,72,.02)),url("assets/auth-background.png") center/cover no-repeat;}
/* Login / register card: one clean white form, every field the same width and height. */
.auth-access-card{box-sizing:border-box;width:min(380px,100%);padding:28px 30px 24px;display:flex;flex-direction:column;background:#fff;border-radius:14px;box-shadow:0 12px 32px rgba(0,27,72,.18);}
.auth-access-card--register{width:min(480px,100%);padding:22px 28px 20px;}
.auth-access-card--register .auth-access-brand{margin-bottom:6px;}
.auth-access-card--register .auth-access-brand img{width:48px;height:48px;}
.auth-access-card--register .auth-access-heading{margin-bottom:14px;}
.auth-access-card--register .auth-access-form{gap:10px;}
.auth-access-card--register .auth-access-form input{height:40px;}
.auth-access-card--register .auth-access-switch{margin-top:12px;}
.auth-access-brand{display:flex;justify-content:center;margin-bottom:10px;}
.auth-access-brand img{width:56px;height:56px;object-fit:contain;}
.auth-access-brand strong{display:none;}
.auth-access-heading{text-align:center;margin-bottom:18px;}
.auth-access-heading h1{margin:0 0 4px;color:#12384f;font-size:24px;font-weight:800;}
.auth-access-heading p{margin:0;color:#8b9ca6;font-size:12.5px;}
.auth-access-form{display:grid;gap:12px;}
.auth-access-form label{display:grid;gap:6px;min-width:0;text-align:right;color:#274b61;font-size:12.5px;font-weight:700;}
.auth-access-form input{box-sizing:border-box;width:100%;min-width:0;height:42px;padding:0 12px;border:1px solid #dfe7eb;border-radius:8px;outline:0;background:#fff;color:#2f4b5b;font-family:inherit;font-size:14.5px;text-align:right;}
.auth-access-form input::placeholder{color:#a3b1b9;}
.auth-access-forgot{justify-self:end;margin-top:-4px;color:#147da3;font-size:12.5px;font-weight:600;text-decoration:none;}
.auth-access-primary{height:42px;margin-top:4px;border:0;border-radius:8px;background:#087fbd;color:#fff;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;}
.auth-access-primary:hover{background:#0671a8;}
.auth-access-switch{margin:16px 0 0;text-align:center;color:#718894;font-size:12.5px;}
.auth-access-switch a{color:#087fbd;font-weight:800;text-decoration:none;}
.auth-access-two{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
@media(max-width:700px){.auth-access-shell{justify-content:center;padding:20px 14px}.auth-access-card{padding:24px 20px 20px}.auth-access-two{grid-template-columns:1fr}}

/* ===== V38 refinements ===== */

/* 3) Settings internal tab: keep only the soft active shadow/background, no cyan rail. */
.settings-menu-card--clean .settings-menu-item.is-active{
  background:#eef8fb;
  box-shadow:inset 0 0 0 1px rgba(0,139,191,.06);
}
.settings-menu-card--clean .settings-menu-item.is-active::after{display:none!important;content:none!important;}

/* 4) Never show any fallback text inside the profile-photo circle. */
.profile-photo-image[hidden]{display:none!important;}
.profile-photo-placeholder{font-size:0;color:transparent;}
.profile-photo-placeholder .profile-photo-add{font-size:20.5px;color:#6b8290;}

/* 5) Main sidebar active state: light-blue surface and white rail are one connected piece. */
.sidebar__nav,.sidebar__bottom{padding-right:14px;padding-left:12px;overflow:visible;}
.nav-item.is-active{
  margin-right:-14px;
  width:calc(100% + 14px);
  padding-right:28px;
  border-radius:12px 0 0 12px;
  background:linear-gradient(to left,#fff 0 6px,rgba(151,202,219,.22) 6px 100%)!important;
}
.nav-item.is-active::before,.nav-item.is-active::after{display:none!important;content:none!important;}

/* 6) Meeting notes: two logical sections. */
.meeting-notes-modal__dialog{max-width:560px;}
.meeting-notes-sections{display:grid;gap:14px;margin:10px 0 20px;}
.meeting-notes-section{
  padding:16px 18px;
  border:1px solid #e2e9ed;
  border-radius:12px;
  background:#fbfdfe;
  text-align:right;
}
.meeting-notes-section--improvements{background:#f5fbfd;border-color:#d9edf4;}
.meeting-notes-section h3{margin:0 0 8px;color:#173d57;font-size:16px;font-weight:800;}
.meeting-notes-section p{margin:0;color:#526c7b;font-size:14.5px;line-height:1.9;}
.meeting-notes-content{display:none!important;}

/* 7) Meetings header: profile aligned on the same horizontal axis as search. */
.meetings-main-content .topbar{align-items:center;}
.meetings-main-content .topbar>.search-box,
.meetings-main-content .topbar>.profile{grid-row:1;}
.meetings-main-content .profile{
  align-self:center!important;
  margin-top:0!important;
  transform:none!important;
}
.meetings-main-content .profile__text{margin-top:0!important;transform:none!important;}

/* ===== V39 refinements ===== */
/* 1) Meeting notes: labels outside, matching note boxes inside. */
.meeting-notes-sections{display:grid;gap:16px;margin:12px 0 20px;}
.meeting-notes-field{text-align:right;}
.meeting-notes-field h3{margin:0 2px 7px;color:#173d57;font-size:15.5px;font-weight:800;}
.meeting-notes-box{min-height:82px;padding:14px 16px;border:1px solid #dfe8ec;border-radius:12px;background:#f8fbfc;box-shadow:inset 0 1px 0 rgba(255,255,255,.8);}
.meeting-notes-field--improvements .meeting-notes-box{background:#f8fbfc;border-color:#dfe8ec;}
.meeting-notes-box p{margin:0;color:#536d7c;font-size:14.5px;line-height:1.9;}
.meeting-notes-section{display:none!important;}



/* 4) Project files page. */
.project-files-page .project-detail-hero{min-height:118px;}
.project-files-panel{margin-top:14px;padding:18px;background:#fff;border:1px solid #edf1f3;border-radius:14px;}
.project-files-toolbar{display:grid;grid-template-columns:1fr auto;align-items:end;gap:18px;margin-bottom:16px;}
.project-files-title{display:flex;align-items:center;gap:12px;justify-content:flex-start;}
.project-files-title h2{margin:0;color:#173d57;font-size:20.5px;font-weight:800;}
.project-files-title p{margin:4px 0 0;color:#91a0aa;font-size:12.5px;}
.project-files-count{padding:5px 9px;border-radius:999px;background:#eef8fb;color:#008bbf;font-size:12px;font-weight:800;white-space:nowrap;}
.project-files-actions{display:flex;align-items:center;gap:10px;direction:rtl;}
.project-file-upload{height:36px;padding:0 16px;display:flex;align-items:center;border:0;border-radius:8px;background:#008bbf;color:#fff;font-family:inherit;font-size:12.5px;font-weight:700;cursor:pointer;}.project-file-upload:hover{background:#0077a5;}
.project-files-search{width:250px;height:38px;display:flex;align-items:center;gap:8px;padding:0 12px;border-radius:11px;background:#f4f7f9;border:1px solid #edf1f3;color:#9cb0bb;}
.project-files-search svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;}
.project-files-search input{width:100%;border:0;outline:0;background:transparent;color:#456170;font-size:12.5px;text-align:right;}
/* Files table — shared by Project Files (project-files.html) and Global Files (files.html). */
.project-files-table-wrap{max-width:1180px;margin:0 auto;border:1px solid #edf1f3;border-radius:12px;}
.project-files-table{width:100%;}
.project-files-row{display:grid;grid-template-columns:minmax(280px,2.15fr) minmax(72px,.65fr) minmax(130px,1fr) minmax(74px,.58fr) minmax(145px,1.05fr) 64px;align-items:center;min-height:64px;padding:0 14px;border-bottom:1px solid #edf1f3;color:#587080;font-size:12.5px;text-align:right;}
.project-files-row:last-child{border-bottom:0;}
.project-files-row[hidden]{display:none;}
.project-files-row--head{min-height:44px;border-radius:12px 12px 0 0;background:#f7fafb;color:#31566d;font-weight:800;font-size:12px;}
.project-files-row>span{min-width:0;padding:0 8px;text-align:center;}
.project-files-row>span:nth-child(2){border-right:1px solid #edf2f4;}
.project-files-row--head>span:first-child{text-align:right;padding-right:56px;}
.file-name-cell{display:flex;align-items:center;gap:10px;min-width:0;padding:8px;}
.file-name-cell img{width:38px;height:38px;object-fit:contain;flex:0 0 38px;}
.file-name-cell>div{min-width:0;}
.file-name-cell strong{display:block;color:#173d57;font-size:12.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.file-name-cell small{display:block;margin-top:2px;color:#9aabb5;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.file-type{color:#496777;font-size:11px;font-weight:700;}
.file-project{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2f5468;font-size:12px;font-weight:700;}
/* Row actions: one three-dot button with a small View / Download menu. */
.file-actions{position:relative;display:flex;justify-content:center;}
.file-more{width:30px;height:30px;display:grid;place-items:center;padding:0;border:0;border-radius:7px;background:transparent;color:#5d7280;cursor:pointer;}
.file-more svg{width:16px;height:16px;fill:currentColor;}
.file-more:hover,.file-more[aria-expanded="true"]{background:#eef2f4;color:#274b61;}
.file-action-menu{position:absolute;top:calc(100% + 4px);left:0;z-index:30;min-width:140px;padding:4px;background:#fff;border:1px solid #e3e9ec;border-radius:8px;box-shadow:0 4px 12px rgba(0,27,72,.08);}
.file-action-menu[hidden]{display:none;}
.file-action-menu__item{width:100%;height:32px;display:flex;align-items:center;gap:8px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:#274b61;font-family:inherit;font-size:12px;font-weight:600;text-align:right;cursor:pointer;}
.file-action-menu__item svg{width:15px;height:15px;flex:0 0 15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:#6b8290;}
.file-action-menu__item:hover,.file-action-menu__item:focus-visible{background:#f2f6f8;outline:none;}
.project-files-empty{padding:38px;text-align:center;color:#91a0aa;font-size:14px;}
.project-files-footer{margin-top:18px;}
@media(max-width:1180px){.project-files-search{width:210px}}
@media(max-width:1050px){.project-files-table-wrap{max-width:100%;}.project-files-row{grid-template-columns:minmax(230px,2fr) 72px 118px 72px 125px 56px;font-size:11px;}.project-files-row--head>span:first-child{padding-right:48px;}}
@media(max-width:860px){.project-files-toolbar{grid-template-columns:1fr}.project-files-actions{justify-content:space-between}.project-files-table-wrap{overflow-x:auto}.project-files-table{min-width:780px}}

/* ===== Global Files page (files.html): table/card toggle and file cards ===== */
.files-view:not([hidden]){animation:files-view-in .2s ease;}
@keyframes files-view-in{from{opacity:0}to{opacity:1}}
.files-view-toggle{display:inline-flex;align-items:center;gap:2px;height:38px;padding:3px;border-radius:9px;background:#f2f5f7;}
.files-view-toggle__button{height:32px;display:inline-flex;align-items:center;gap:6px;padding:0 12px;border:1px solid transparent;border-radius:7px;background:transparent;color:#6b8290;font-family:inherit;font-size:12px;font-weight:700;transition:background-color .2s ease,color .2s ease;}
.files-view-toggle__button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.files-view-toggle__button:hover{color:#274b61;}
.files-view-toggle__button.is-active{background:#fff;border-color:#dfe7eb;color:#008bbf;}
.project-files-table--global .project-files-row{grid-template-columns:minmax(250px,2fr) minmax(110px,1fr) minmax(72px,.6fr) minmax(120px,.95fr) minmax(70px,.55fr) 64px;}
/* Card view: no framed panel — the cards sit on the page background. */
.project-files-panel.is-card-view{padding:0;background:transparent;border:0;}
.file-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;}
.file-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:14px 16px;background:#fff;border:1px solid #e3e9ec;border-radius:10px;}
.file-card[hidden]{display:none;}
.file-card__head{display:flex;align-items:center;gap:10px;min-width:0;}
.file-card__icon{width:36px;height:36px;flex:0 0 36px;object-fit:contain;}
.file-card__name{min-width:0;margin:0;color:#173d57;font-size:14.5px;font-weight:800;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.file-card__meta{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:0;}
.file-card__meta div{display:grid;gap:2px;min-width:0;}
.file-card__meta-wide{grid-column:1/-1;}
.file-card__meta dt{color:#93a4ae;font-size:11px;font-weight:500;}
.file-card__meta dd{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3d5866;font-size:12.5px;font-weight:600;text-align:right;}
.file-card__actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:12px;border-top:1px solid #eef2f4;}
.file-card__button{height:30px;display:inline-flex;align-items:center;gap:6px;padding:0 12px;border:0;border-radius:7px;background:#f2f5f7;color:#274b61;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:background-color .15s ease;}
.file-card__button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.file-card__button:hover{background:#e6ebee;}
@media(max-width:1050px){.project-files-table--global .project-files-row{grid-template-columns:minmax(220px,2fr) 100px 66px 112px 66px 56px;}}
@media(max-width:860px){.files-view-toggle__button span{display:none}.files-view-toggle__button{padding:0 10px}}
@media(max-width:600px){.settings-logout span{display:none}.settings-logout{padding:0 10px}}
@media(max-width:560px){.project-files-actions{flex-wrap:wrap}.project-files-search{flex:1 1 180px;width:auto}.file-cards-grid{grid-template-columns:1fr}}


/* ===== V40 product flows ===== */

.file-modal,.wizard-modal{position:fixed;inset:0;z-index:120;background:rgba(10,35,54,.35);display:grid;place-items:center;padding:20px;backdrop-filter:blur(4px);}
.file-modal[hidden],.wizard-modal[hidden]{display:none!important;}
.file-modal__dialog,.wizard-dialog{position:relative;width:min(520px,94vw);background:#fff;border-radius:18px;padding:24px;box-shadow:0 24px 70px rgba(0,27,72,.18);}
.file-modal__close,.wizard-close{position:absolute;top:14px;left:16px;width:34px;height:34px;border:0;background:#f3f7f9;border-radius:50%;font-size:25.5px;color:#547080;}
.file-modal__heading h2,.wizard-heading h2{margin:0 0 5px;color:#173d57;font-size:24px;}.file-modal__heading p,.wizard-heading p{margin:0;color:#95a4ad;font-size:12.5px;}
.file-modal__form{display:grid;gap:15px;margin-top:20px}.file-modal__form label{display:grid;gap:7px;font-size:12.5px;font-weight:700;color:#244a62}.file-modal__form input{height:44px;border:1px solid #dfe7eb;border-radius:10px;padding:0 12px;font-family:inherit;outline:0}.file-drop-zone{min-height:126px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #9bcfe0;border-radius:14px;background:#f7fcfe;cursor:pointer;text-align:center}.file-drop-zone__icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#008bbf;color:white;font-size:24px}.file-drop-zone small{color:#9aabb5;font-weight:500}.file-modal__actions{display:flex;gap:10px;justify-content:flex-end}.button-primary,.button-secondary{height:40px;padding:0 18px;border-radius:9px;font-family:inherit;font-weight:800;font-size:12.5px}.button-primary{border:0;background:#008bbf;color:#fff}.button-secondary{border:1px solid #dfe7eb;background:#fff;color:#527080}.file-preview-dialog{text-align:center}.file-preview-icon img{width:92px;height:92px;object-fit:contain}.file-preview-dialog h2{color:#173d57}.file-preview-dialog p{color:#7f929d;font-size:14px;line-height:1.8}.file-preview-dialog .button-primary{min-width:120px}

/* Project wizard */
.wizard-dialog{width:min(720px,94vw);padding:26px}.wizard-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}.wizard-tab{height:54px;border:1px solid #e3eaee;background:#fbfcfd;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:8px;color:#78909c;font-family:inherit;font-weight:700}.wizard-tab b{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#edf3f6;color:#628090}.wizard-tab.is-active{background:#eef8fb;border-color:#bfe2ee;color:#008bbf}.wizard-tab.is-active b{background:#008bbf;color:#fff}.wizard-panel{min-height:280px;padding:8px 2px}.wizard-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.wizard-grid label,.post-meeting-field{display:grid;gap:7px;color:#244a62;font-size:12.5px;font-weight:700}.wizard-grid input,.wizard-grid textarea,.invite-row input,.post-meeting-field textarea{border:1px solid #dfe7eb;border-radius:10px;padding:11px 12px;font-family:inherit;outline:0}.wizard-grid input{height:44px}.wizard-grid textarea{min-height:92px;resize:vertical}.wizard-full{grid-column:1/-1}.wizard-actions{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;border-top:1px solid #eef2f4;padding-top:16px}.invite-section{display:grid;grid-template-columns:1fr 1fr;gap:14px}.invite-block{border:1px solid #e5ecef;border-radius:13px;padding:16px;background:#fbfdfe}.invite-block>div:first-child{display:grid;gap:4px}.invite-block strong{color:#173d57}.invite-block small{color:#96a5ae;font-size:11.5px}.invite-row{display:flex;gap:8px;margin-top:14px}.invite-row input{flex:1;min-width:0;height:40px}.invite-row button,.stages-builder__head button{border:0;border-radius:9px;background:#008bbf;color:white;font-family:inherit;font-weight:700;padding:0 12px}.invite-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.invite-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;background:#eef8fb;color:#26708f;font-size:11.5px}.invite-chip button{border:0;background:transparent;color:#8197a2}.stages-builder__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.stages-builder__head div{display:grid;gap:3px}.stages-builder__head strong{color:#173d57}.stages-builder__head small{color:#96a5ae;font-size:11.5px}.stages-builder__head button{height:34px}.wizard-stages{display:grid;grid-template-columns:1fr 1fr;gap:9px}.wizard-stages label{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #e7edf0;border-radius:10px;background:#fbfdfe;color:#32566c;font-size:12.5px}.wizard-stages input{accent-color:#008bbf}

/* Meeting create */
.meeting-create-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px}.meeting-create-wide{grid-column:span 2}.meeting-create-full{grid-column:1/-1}.meeting-create-grid input,.meeting-create-grid select{height:38px}.meeting-create-grid textarea{height:68px;min-height:56px;resize:vertical;line-height:1.6}.meeting-create-grid input,.meeting-create-grid select,.meeting-create-grid textarea{width:100%;border:1px solid #dfe7eb;border-radius:8px;padding:0 11px;font-family:inherit;font-size:14px;color:#3f5d6c;background:#fff}.meeting-create-grid textarea{padding:8px 11px}@media(max-width:640px){.meeting-create-grid{grid-template-columns:1fr 1fr}.meeting-create-wide{grid-column:1/-1}}.meeting-action-button--join{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}

/* Settings V40: one cohesive workspace */
.settings-section--clean{width:min(1220px,calc(100vw - var(--sidebar-width) - 54px))!important;margin:0 auto!important}.settings-v40-head{display:flex;justify-content:flex-start;margin:10px 0 14px}.settings-v40-head span{display:block;color:#008bbf;font-size:11.5px;font-weight:800}.settings-v40-head h1{margin:2px 0 2px;color:#008bbf;font-size:37px}.settings-v40-head p{margin:0;color:#94a4ae;font-size:12.5px}.settings-v40-workspace{display:grid;grid-template-columns:220px minmax(520px,1fr) 210px;gap:18px;min-height:520px;padding:16px;background:#fff;border:1px solid #e7edf0;border-radius:18px;box-shadow:0 12px 34px rgba(0,27,72,.07)}.settings-v40-nav{display:flex;flex-direction:column;padding:8px;background:#f8fbfc;border-radius:14px}.settings-v40-nav .settings-menu-item{min-height:58px;border-radius:10px;padding:8px 12px;display:grid;gap:3px;text-align:right}.settings-v40-nav .settings-menu-item span{font-weight:800;color:#173d57}.settings-v40-nav .settings-menu-item small{font-size:10.5px;color:#9aabb5}.settings-v40-nav .settings-menu-item.is-active{background:#eaf6fa!important;box-shadow:none!important}.settings-v40-nav__spacer{flex:1}.settings-v40-center{padding:12px 16px;min-width:0}.settings-v40-center .settings-tab-panel{height:100%}.settings-v40-photo{border:1px solid #e7edf0;border-radius:14px;background:#fbfdfe;padding:20px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.settings-v40-photo .profile-photo-placeholder{width:105px;height:105px}.settings-v40-photo>strong{margin-top:12px;color:#173d57}.settings-v40-photo>p{color:#9aabb5;font-size:11.5px;line-height:1.7}.settings-v40-photo .profile-photo-button{width:120px}.settings-v40-center .security-secondary-button{height:36px!important;min-width:100px!important;padding:0 12px!important;font-size:11.5px!important}

/* Prejoin */
.prejoin-page{margin:0;background:#f4f8fa;font-family:var(--font-family);color:#173d57}.prejoin-shell{min-height:100vh;display:grid;place-items:center;padding:28px}.prejoin-card{width:min(1000px,94vw);display:grid;grid-template-columns:1.45fr .75fr;gap:18px;background:#fff;border-radius:22px;padding:18px;box-shadow:0 18px 55px rgba(0,27,72,.1)}.prejoin-preview{min-height:530px;border-radius:18px;background:linear-gradient(135deg,#123b55,#0b2333);position:relative;display:grid;place-items:center;overflow:hidden}.prejoin-preview.camera-on{background:linear-gradient(135deg,#0f4867,#0b6e93)}.prejoin-avatar{width:120px;height:120px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#2bc4ef,#0070d9);color:#fff;font-size:48.5px;font-weight:800}.prejoin-camera-off{position:absolute;top:20px;right:20px;padding:6px 10px;border-radius:999px;background:rgba(0,0,0,.35);color:#fff;font-size:12.5px}.prejoin-controls{position:absolute;bottom:24px;display:flex;gap:12px}.prejoin-control{width:54px;height:54px;border-radius:50%;border:0;background:#fff;color:#314f61;font-size:23px}.prejoin-control.is-on{background:#008bbf;color:#fff}.prejoin-info{display:flex;flex-direction:column;justify-content:center;padding:16px}.prejoin-info img{width:72px;height:72px;object-fit:contain;margin-bottom:16px}.prejoin-info>span{color:#008bbf;font-size:12.5px;font-weight:800}.prejoin-info h1{font-size:27.5px;margin:4px 0 8px}.prejoin-info>p{font-size:12.5px;color:#93a3ad;line-height:1.8}.prejoin-status{display:grid;gap:8px;margin:18px 0}.prejoin-status>div{padding:11px;border:1px solid #e7edf0;border-radius:10px;background:#fbfdfe}.prejoin-status b{display:block;font-size:12.5px}.prejoin-status small{font-size:10.5px;color:#96a7b1}.prejoin-join{text-decoration:none;display:flex;align-items:center;justify-content:center}.prejoin-back{text-align:center;margin-top:10px;color:#6d8795;font-size:11.5px;text-decoration:none}
/* Meeting room */
.meeting-room-page{margin:0;background:#0d1720;font-family:var(--font-family);color:#fff}.meeting-room-shell{min-height:100vh;display:grid;grid-template-rows:auto 1fr auto}.meeting-room-header{display:flex;align-items:center;gap:12px;padding:14px 22px;background:#121f29;border-bottom:1px solid rgba(255,255,255,.08)}.meeting-room-header img{width:46px;height:46px;object-fit:contain}.meeting-room-header span{font-size:10.5px;color:#4fd0fa}.meeting-room-header h1{margin:2px 0 0;font-size:18.5px}.meeting-room-time{margin-right:auto;color:#9eb1bc}.meeting-room-stage{display:grid;grid-template-columns:2fr 1fr;gap:12px;padding:14px}.meeting-participant{position:relative;border-radius:16px;background:#182833;display:grid;place-items:center;min-height:260px}.meeting-participant--main{min-height:560px}.meeting-participant-avatar{width:120px;height:120px;border-radius:50%;display:grid;place-items:center;background:#008bbf;font-size:48.5px;font-weight:800}.meeting-participant-avatar--soft{background:#34546a}.meeting-participant>span{position:absolute;bottom:14px;right:16px;font-size:12.5px}.meeting-room-controls{display:flex;align-items:center;justify-content:center;gap:10px;padding:14px;background:#121f29}.room-control{min-width:48px;height:48px;border:0;border-radius:50%;background:#233743;color:#fff}.room-control--end{border-radius:999px;background:#e34e55;padding:0 22px;font-family:inherit;font-weight:800}.post-meeting-dialog{width:min(620px,94vw)}.post-meeting-field{margin-bottom:14px}.post-meeting-field textarea{min-height:110px}
@media(max-width:950px){.settings-v40-workspace{grid-template-columns:1fr;}.settings-v40-nav{display:grid;grid-template-columns:repeat(2,1fr)}.settings-v40-nav__spacer{display:none}.prejoin-card{grid-template-columns:1fr}.prejoin-preview{min-height:420px}.meeting-room-stage{grid-template-columns:1fr}.meeting-participant--main{min-height:420px}.meeting-participant{min-height:180px}.wizard-grid,.invite-section{grid-template-columns:1fr}.meeting-create-grid{grid-template-columns:1fr 1fr}.meeting-create-wide{grid-column:1/-1}.wizard-full{grid-column:auto}.wizard-stages{grid-template-columns:1fr}}
.prejoin-preview video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}.prejoin-avatar,.prejoin-camera-off,.prejoin-controls{z-index:1}


/* ===== V41 refinements ===== */
/* Files: gray chooser and no visible counts. */
.file-drop-zone{background:#f3f5f7!important;border-color:#d9e1e6!important;color:#526c7b!important;}
.file-drop-zone:hover{background:#eef2f4!important;border-color:#cbd8de!important;}
.project-files-count,.meetings-count{display:none!important;}

/* Settings: no cyan rail inside settings tabs; sidebar flush to viewport edge. */
.settings-v40-nav .settings-menu-item.is-active::after,
.settings-v40-nav .settings-menu-item.is-active::before{display:none!important;content:none!important;}
.settings-v40-nav .settings-menu-item.is-active{background:#eaf6fa!important;box-shadow:none!important;border:0!important;}

/* Full-screen prejoin. */
.prejoin-page--v41{background:#eef4f7;overflow:hidden;}
.prejoin-shell--full{min-height:100vh;padding:0;display:block;}
.prejoin-full-layout{width:100vw;height:100vh;display:grid;grid-template-columns:minmax(0,1fr) 330px;direction:ltr;background:#eef4f7;}
.prejoin-preview--full{direction:rtl;min-height:100vh;border-radius:0;margin:0;background:linear-gradient(145deg,#173d57,#0c2738);}
.prejoin-preview--full.camera-on{background:linear-gradient(145deg,#0e4c6a,#087da7);}
.prejoin-info--full{direction:rtl;background:#008bbf;color:#fff;padding:40px 30px;display:flex;flex-direction:column;justify-content:center;box-shadow:-12px 0 35px rgba(0,27,72,.09);}
.prejoin-brand-mark{width:82px!important;height:82px!important;object-fit:contain;margin:0 0 30px auto!important;filter:none!important;}
.prejoin-info--full>span{color:#dff7ff;font-size:12.5px;font-weight:800;}
.prejoin-info--full h1{color:#fff;font-size:27.5px;margin:6px 0 10px;line-height:1.5;}
.prejoin-info--full>p{color:rgba(255,255,255,.78);font-size:12.5px;line-height:1.9;}
.prejoin-info--full .prejoin-status{margin:20px 0;}
.prejoin-info--full .prejoin-status>div{border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.1);}
.prejoin-info--full .prejoin-status b{color:#fff}.prejoin-info--full .prejoin-status small{color:rgba(255,255,255,.68)}
.prejoin-join-full{height:44px;border-radius:10px;background:#fff;color:#008bbf;text-decoration:none;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;box-shadow:0 8px 22px rgba(0,27,72,.12);}
.prejoin-back--full{color:rgba(255,255,255,.78);margin-top:12px;}
.prejoin-controls--svg .prejoin-control svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.prejoin-controls--svg .prejoin-control{display:grid;place-items:center;}
.prejoin-preview--full .prejoin-avatar{width:132px;height:132px;font-size:53px;}
@media(max-width:800px){.prejoin-full-layout{grid-template-columns:1fr;grid-template-rows:1fr auto}.prejoin-preview--full{min-height:62vh}.prejoin-info--full{padding:22px}.prejoin-brand-mark{width:58px!important;height:58px!important;margin-bottom:12px!important}}

/* White, compact meeting room. */
.meeting-room-page--v41{background:#f3f6f8;color:#173d57;padding:18px;overflow:hidden;}
.meeting-room-shell--v41{position:relative;width:min(1080px,calc(100vw - 36px));height:min(720px,calc(100vh - 36px));min-height:0;margin:0 auto;background:#fff;border:1px solid #e4ebef;border-radius:20px;box-shadow:0 16px 45px rgba(0,27,72,.09);overflow:hidden;display:grid;grid-template-rows:66px 1fr 78px;}
.meeting-room-header--v41{padding:10px 18px;background:#fff;border-bottom:1px solid #edf1f3;display:flex;align-items:center;gap:12px;}
.meeting-room-brand{display:flex;align-items:center;gap:10px}.meeting-room-brand img{width:42px;height:42px;object-fit:contain}.meeting-room-brand span{font-size:10.5px;color:#008bbf}.meeting-room-brand h1{margin:2px 0 0;font-size:17px;color:#173d57}.meeting-room-time{margin-right:auto;color:#6f8794;font-size:14px;font-weight:700;}
.meeting-room-stage--v41{display:grid;grid-template-columns:2fr 1fr;gap:12px;padding:14px;background:#f8fafb;min-height:0;}
.meeting-participant--light{background:#fff;border:1px solid #e5ecef;min-height:0;border-radius:15px;box-shadow:0 5px 16px rgba(0,27,72,.04);}
.meeting-participant--main.meeting-participant--light{min-height:0;}
.meeting-participant--light .meeting-participant-avatar{width:96px;height:96px;font-size:39px;background:linear-gradient(135deg,#20bce9,#0077d5);}
.meeting-participant--light .meeting-participant-avatar--soft{background:#dcebf1;color:#31566d;}
.meeting-participant--light>span{color:#173d57;font-weight:700;}
.meeting-room-controls--v41{padding:12px;background:#fff;border-top:1px solid #edf1f3;gap:9px;}
.room-control--v41{width:44px;min-width:44px;height:44px;border-radius:50%;border:1px solid #dfe7eb;background:#f7fafb;color:#496777;display:grid;place-items:center;}
.room-control--v41 svg,.room-exit-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.room-control--v41.is-on{background:#eaf7fb;color:#008bbf;border-color:#bfe3ee;}
.room-exit-button{height:44px;padding:0 18px;border:0;border-radius:999px;background:#ef5b61;color:#fff;display:flex;align-items:center;gap:7px;font-family:inherit;font-weight:800;}


@media(max-width:760px){.meeting-room-page--v41{padding:8px}.meeting-room-shell--v41{width:calc(100vw - 16px);height:calc(100vh - 16px)}.meeting-room-stage--v41{grid-template-columns:1fr;grid-template-rows:2fr 1fr}}


/* ===== V42 refinements ===== */
/* Project creation wizard: smaller controls and a connected dot stepper. */
.wizard-dialog{width:min(640px,92vw)!important;padding:22px 24px 20px!important;border-radius:16px!important;}
.wizard-heading h2{font-size:22px!important}.wizard-heading p{font-size:12px!important}
.wizard-tabs--dots{display:grid!important;grid-template-columns:auto 1fr auto 1fr auto!important;align-items:start!important;gap:8px!important;margin:18px 34px 20px!important;}
.wizard-tabs--dots .wizard-tab{height:auto!important;min-width:76px!important;border:0!important;background:transparent!important;border-radius:0!important;padding:0!important;display:grid!important;justify-items:center!important;gap:7px!important;box-shadow:none!important;}
.wizard-tabs--dots .wizard-tab b{width:25px!important;height:25px!important;border:2px solid #dbe6eb!important;background:#fff!important;color:#8ba0ab!important;font-size:12px!important;position:relative;z-index:2;}
.wizard-tabs--dots .wizard-tab span{font-size:11px!important;color:#8b9da7!important;white-space:nowrap;}
.wizard-tabs--dots .wizard-tab.is-active b{background:#008bbf!important;border-color:#008bbf!important;color:#fff!important;box-shadow:0 0 0 5px rgba(0,139,191,.08)!important;}
.wizard-tabs--dots .wizard-tab.is-active span{color:#008bbf!important;font-weight:800!important;}
.wizard-step-line{height:2px;background:#e2eaee;margin-top:12px;border-radius:999px;min-width:52px;}
.wizard-panel{min-height:235px!important;padding:4px 2px!important;}
.wizard-grid{gap:11px!important}.wizard-grid label,.post-meeting-field{gap:5px!important;font-size:12px!important}.wizard-grid input{height:40px!important}.wizard-grid textarea{min-height:76px!important}.wizard-grid input,.wizard-grid textarea,.invite-row input{padding:9px 11px!important;border-radius:9px!important;font-size:12.5px!important}
.invite-section{gap:11px!important}.invite-block{padding:13px!important;border-radius:11px!important}.invite-row{margin-top:10px!important}.invite-row input{height:38px!important}.invite-row button{font-size:11.5px!important;padding:0 10px!important}.stages-builder__head{margin-bottom:9px!important}.wizard-stages{gap:7px!important}.wizard-stages label{padding:9px 10px!important;font-size:12px!important;border-radius:9px!important}.wizard-actions{padding-top:13px!important}.wizard-actions .button-primary,.wizard-actions .button-secondary{height:38px!important;font-size:12px!important;}

/* Settings: move the whole settings workspace up and make sidebar truly flush. */
.settings-main-content{padding-top:8px!important;}
.settings-section--clean{margin-top:-4px!important;}
.settings-v40-head{margin:2px 0 8px!important;}
.settings-v40-head h1{font-size:34.5px!important;}
.settings-v40-head p{font-size:12px!important;}
.settings-v40-workspace{min-height:490px!important;padding:14px!important;gap:16px!important;grid-template-columns:210px minmax(500px,1fr) 200px!important;}
.settings-v40-nav{padding:7px!important}.settings-v40-nav .settings-menu-item{min-height:54px!important;padding:7px 11px!important}.settings-v40-center{padding:8px 12px!important}.settings-v40-photo{padding:16px 12px!important}.settings-v40-photo .profile-photo-placeholder{width:96px!important;height:96px!important;}
@media(max-width:1180px){.settings-v40-workspace{grid-template-columns:195px minmax(440px,1fr) 185px!important;gap:13px!important}}

/* Prejoin: white, balanced, full-screen composition. */
.prejoin-page--v42{margin:0;background:#fff;font-family:var(--font-family);color:#173d57;overflow:hidden;}
.prejoin-v42-shell{width:100vw;height:100vh;background:#fff;display:grid;grid-template-rows:72px 1fr;}
.prejoin-v42-header{display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid #edf1f3;background:#fff;}
.prejoin-v42-logo{width:54px;height:54px;object-fit:contain;}
.prejoin-v42-back{display:inline-flex;align-items:center;gap:7px;color:#5d7684;text-decoration:none;font-size:12.5px;font-weight:700}.prejoin-v42-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.prejoin-v42-content{width:min(1180px,calc(100vw - 80px));margin:auto;display:grid;grid-template-columns:minmax(0,1.45fr) 340px;gap:38px;align-items:center;direction:ltr;}
.prejoin-v42-preview{direction:rtl;position:relative;height:min(68vh,610px);min-height:430px;border-radius:22px;background:#f3f6f8;border:1px solid #e3eaee;display:grid;place-items:center;overflow:hidden;box-shadow:0 12px 34px rgba(0,27,72,.06);}
.prejoin-v42-preview.camera-on{background:#eef7fa}.prejoin-v42-preview video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.prejoin-v42-avatar{width:120px;height:120px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#22bee8,#008bbf);color:#fff;font-size:48.5px;font-weight:800;z-index:1}.prejoin-v42-camera-label{position:absolute;top:18px;right:18px;padding:6px 10px;border-radius:999px;background:#fff;border:1px solid #e2eaee;color:#708793;font-size:11.5px;z-index:2}.prejoin-v42-controls{position:absolute;bottom:22px;display:flex;gap:10px;z-index:2}.prejoin-v42-control{width:48px;height:48px;border-radius:50%;border:1px solid #dce5e9;background:#fff;color:#637b88;display:grid;place-items:center;box-shadow:0 5px 14px rgba(0,27,72,.07)}.prejoin-v42-control.is-on{background:#eaf7fb;color:#008bbf;border-color:#bfe3ee}.prejoin-v42-control svg,.device-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.prejoin-v42-info{direction:rtl;background:#fff;padding:8px 4px;}.prejoin-v42-eyebrow{color:#008bbf;font-size:11.5px;font-weight:800}.prejoin-v42-info h1{margin:6px 0 8px;font-size:30px;color:#173d57;line-height:1.45}.prejoin-v42-info>p{margin:0;color:#8ea0aa;font-size:12.5px;line-height:1.9}.prejoin-v42-device-list{display:grid;gap:9px;margin:22px 0 18px}.prejoin-v42-device-list>div{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #e4ebef;border-radius:11px;background:#fbfdfe}.device-icon{width:36px;height:36px;border-radius:10px;background:#eef8fb;color:#008bbf;display:grid;place-items:center;flex:0 0 auto}.prejoin-v42-device-list b{display:block;font-size:12.5px;color:#173d57}.prejoin-v42-device-list small{display:block;margin-top:2px;font-size:10.5px;color:#9aabb5}.prejoin-v42-join{height:44px;border-radius:10px;background:#008bbf;color:#fff;text-decoration:none;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;box-shadow:0 8px 20px rgba(0,139,191,.16)}.prejoin-v42-note{text-align:center!important;margin-top:10px!important;font-size:10.5px!important;color:#a0adb5!important;}
@media(max-width:900px){.prejoin-v42-content{grid-template-columns:1fr;width:min(720px,calc(100vw - 32px));gap:18px;padding:18px 0}.prejoin-v42-preview{height:48vh;min-height:320px}.prejoin-v42-info{padding-bottom:24px}.prejoin-page--v42{overflow:auto}.prejoin-v42-shell{height:auto;min-height:100vh}.prejoin-v42-header{padding:0 18px}}

/* Meeting room: white, compact and organized. */
.meeting-room-page--v42{margin:0;background:#fff;font-family:var(--font-family);color:#173d57;overflow:hidden;}
.meeting-room-v42-shell{position:relative;width:100vw;height:100vh;background:#fff;display:grid;grid-template-rows:70px 1fr 88px;}
.meeting-room-v42-header{display:flex;align-items:center;justify-content:space-between;padding:0 34px;border-bottom:1px solid #edf1f3;background:#fff}.meeting-room-v42-title{display:flex;align-items:center;gap:11px}.meeting-room-v42-title img{width:48px;height:48px;object-fit:contain}.meeting-room-v42-title span{font-size:10.5px;color:#008bbf;font-weight:800}.meeting-room-v42-title h1{margin:2px 0 0;font-size:18.5px;color:#173d57}.meeting-room-v42-meta{display:flex;align-items:center;gap:8px;color:#657d89;font-size:12.5px}
.meeting-room-v42-stage{padding:22px 34px;background:#fff;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,.7fr);gap:16px;min-height:0}.meeting-tile{position:relative;border:1px solid #e2eaee;border-radius:12px;background:#f7fafb;display:grid;place-items:center;min-height:0}.meeting-tile--main{background:#f2f8fa}.meeting-tile-avatar{width:108px;height:108px;border-radius:50%;display:grid;place-items:center;background:#0a93c4;color:#fff;font-size:43.5px;font-weight:800}.meeting-tile-avatar--soft{background:#dceaf0;color:#31576b}.meeting-tile>span{position:absolute;bottom:20px;right:20px;font-size:14px;color:#173d57;font-weight:800}.meeting-tile>small{position:absolute;bottom:21px;right:122px;color:#9aabb5;font-size:10.5px}
.meeting-room-v42-toolbar{display:flex;align-items:center;justify-content:center;gap:9px;padding:12px 24px;border-top:1px solid #edf1f3;background:#fff}.meeting-tool{height:40px;padding:0 14px;border:0;border-radius:10px;background:#f1f4f6;color:#3d5866;font-family:inherit;font-size:11.5px;font-weight:600;display:inline-flex;align-items:center;gap:7px;cursor:pointer;transition:background-color .15s ease,color .15s ease}.meeting-tool:hover{background:#e6ebee}.meeting-tool svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.meeting-tool.is-on:not([data-device]){background:#e2f1f7;color:#00759f}.meeting-tool[data-device]:not(.is-on){background:#fbeaeb;color:#c8424a}.meeting-tool--exit{background:#dc4b52;color:#fff}.meeting-tool--exit:hover{background:#c63c43}
/* Room body: stage on the right; Chat / Participants panel on the left (part of the layout, not a popup). */
.meeting-room-body{display:grid;grid-template-columns:minmax(0,1fr);min-height:0;}
.meeting-room-body.has-panel{grid-template-columns:minmax(0,1fr) 340px;}
.meeting-room-body .meeting-room-v42-stage{min-height:0;}
.room-side{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;background:#fff;border-right:1px solid #edf1f3;}
.room-side[hidden]{display:none;}
.room-side__head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid #edf1f3;}
.room-side__head h2{margin:0;color:#173d57;font-size:15px;font-weight:800;}
.room-side__close{width:28px;height:28px;border:0;border-radius:7px;background:transparent;color:#718994;font-size:20.5px;line-height:1;cursor:pointer;}
.room-side__close:hover{background:#f2f5f7;}
.room-side__view{min-height:0;}
.room-side__view[hidden]{display:none;}
.room-chat{display:grid;grid-template-rows:minmax(0,1fr) auto;}
.room-chat__messages{overflow-y:auto;padding:14px 18px;display:grid;align-content:start;gap:12px;}
.room-chat__message{display:grid;gap:4px;justify-items:start;}
.room-chat__message b{color:#173d57;font-size:12px;font-weight:700;}
.room-chat__message p{margin:0;max-width:100%;padding:8px 10px;border-radius:8px;background:#f2f5f7;color:#3d5866;font-size:12.5px;line-height:1.7;overflow-wrap:anywhere;}
.room-chat__message small{color:#9aabb5;font-size:10.5px;}
.room-chat__message--mine p{background:#e6f2f7;}
.room-chat__input{display:flex;gap:8px;padding:12px 14px;border-top:1px solid #edf1f3;}
.room-chat__input input{flex:1;min-width:0;height:36px;padding:0 10px;border:1px solid #dfe7eb;border-radius:8px;font-family:inherit;font-size:13px;}
.room-chat__input button{height:36px;padding:0 14px;border:0;border-radius:8px;background:#008bbf;color:#fff;font-family:inherit;font-size:12.5px;font-weight:700;cursor:pointer;}
.room-people{list-style:none;margin:0;padding:6px 0;overflow-y:auto;}
.room-people li{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 18px;border-bottom:1px solid #f0f3f5;}
.room-people li:last-child{border-bottom:0;}
.room-people__avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e9eef1;color:#476272;font-size:14px;font-weight:800;}
.room-people b{display:block;color:#173d57;font-size:13px;font-weight:700;}
.room-people small{color:#93a4ae;font-size:11px;}
.room-people__state{display:inline-flex;align-items:center;gap:5px;color:#6b8290;font-size:11.5px;font-weight:600;white-space:nowrap;}
.room-people__state svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.room-people__state[data-state="speaking"]{color:#00759f;}
.room-people__state[data-state="muted"]{color:#9aabb5;}
.meeting-tool-sep{width:1px;height:24px;margin:0 4px;background:#e3e9ec;}
.meeting-tool small{font-size:inherit;color:#7d909b;font-weight:600;}
.meeting-tool.is-on small{color:inherit;}
@media(max-width:800px){.meeting-room-body.has-panel{grid-template-columns:1fr}.meeting-room-body.has-panel .meeting-room-v42-stage{display:none}.room-side{border-right:0}.meeting-tool-sep{display:none}}
@media(max-width:800px){.meeting-room-v42-stage{grid-template-columns:1fr;grid-template-rows:1.5fr .75fr;padding:12px 14px}.meeting-room-v42-header{padding:0 16px}.meeting-room-v42-toolbar{overflow-x:auto;justify-content:flex-start}.meeting-tool{flex:0 0 auto}.meeting-tile>small{display:none}}


/* ===== V43 requested refinements ===== */
/* Remove the active blue halo from project wizard dots. */
.wizard-tabs--dots .wizard-tab.is-active b{box-shadow:none!important;}

/* Meeting create: account invitation is a text input, not a list. */
.meeting-create-grid input#meetingCreateAudience{direction:rtl;text-align:right;}

/* New clean white prejoin screen. */
.prejoin-v43-page{margin:0;background:#fff;color:#173d57;font-family:var(--font-family);min-height:100vh;}
.prejoin-v43-shell{width:min(1240px,calc(100vw - 48px));margin:0 auto;padding:10px 0 16px;}
.prejoin-v43-header{height:52px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf2f4;}
.prejoin-v43-logo{width:42px;height:42px;object-fit:contain;}
.prejoin-v43-back{display:inline-flex;align-items:center;gap:7px;color:#607b89;text-decoration:none;font-size:12.5px;font-weight:700;}
.prejoin-v43-back svg{width:18px;height:18px;fill:none;stroke:#008bbf;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.prejoin-v43-title{text-align:right;padding:14px 0 12px;}.prejoin-v43-title>span{font-size:11.5px;color:#008bbf;font-weight:800;}.prejoin-v43-title h1{margin:0;font-size:24px;color:#173d57;}.prejoin-v43-title p{margin:0;color:#8fa0aa;font-size:12.5px;}
.prejoin-v43-grid{display:grid;grid-template-columns:minmax(0,1.7fr) 340px;gap:20px;align-items:stretch;}
.prejoin-v43-preview{height:clamp(300px,calc(100vh - 160px),560px);min-height:0;border:1px solid #e5ecef;border-radius:14px;background:#f6f9fa;display:grid;place-items:center;overflow:hidden;position:relative;}
.prejoin-v43-preview video{width:100%;height:100%;object-fit:cover;}.prejoin-v43-avatar{width:118px;height:118px;border-radius:50%;display:grid;place-items:center;background:#0a93c4;color:#fff;font-size:48.5px;font-weight:800;}
.prejoin-v43-panel{border:1px solid #e5ecef;border-radius:14px;background:#fff;padding:20px;align-self:stretch;display:flex;flex-direction:column;}
.prejoin-v43-panel h2{margin:0;font-size:19.5px;color:#173d57;}.prejoin-v43-meeting{margin:8px 0 0;padding:10px 0;border-top:1px solid #eef2f4;border-bottom:1px solid #eef2f4;display:grid;gap:3px;}.prejoin-v43-meeting span{color:#93a4ae;font-size:11px;}.prejoin-v43-meeting strong{color:#173d57;font-size:14.5px;}
.prejoin-v43-panel>p{margin:6px 0 16px;color:#8fa0aa;font-size:12px;line-height:1.8;}
.prejoin-v43-toggles{display:grid;gap:10px;}
.prejoin-v43-toggle{width:100%;min-height:54px;border:1px solid #e3e9ec;border-radius:10px;background:#fff;padding:8px 12px;display:grid;grid-template-columns:30px 1fr 34px;gap:10px;align-items:center;text-align:right;font-family:inherit;color:#5d7280;cursor:pointer;transition:border-color .2s ease;}
.prejoin-v43-toggle:hover{border-color:#d3dde2;}
.prejoin-v43-toggle-icon{width:30px;height:30px;border-radius:8px;background:#f2f5f7;display:grid;place-items:center;}
.prejoin-v43-toggle-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.prejoin-v43-toggle-copy{display:grid;gap:2px;}.prejoin-v43-toggle-copy b{font-size:12px;color:#173d57;}.prejoin-v43-toggle-copy small{font-size:10px;color:#9aabb5;}
/* Switch: gray when off, blue only on the switch itself when on. */
.prejoin-v43-switch{width:34px;height:19px;border-radius:999px;background:#cfd8dd;padding:2px;display:flex;justify-content:flex-start;transition:background-color .2s ease;}
.prejoin-v43-switch i{width:15px;height:15px;border-radius:50%;background:#fff;transition:transform .2s ease;}
.prejoin-v43-toggle.is-on .prejoin-v43-switch{background:#008bbf;}
.prejoin-v43-toggle.is-on .prejoin-v43-switch i{transform:translateX(-15px);}
.prejoin-v43-join{margin-top:auto;height:40px;border-radius:8px;background:#008bbf;color:#fff;text-decoration:none;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:700;}.prejoin-v43-join:hover{background:#0077a5;}
@media(max-width:850px){.prejoin-v43-shell{width:calc(100vw - 28px)}.prejoin-v43-grid{grid-template-columns:1fr}.prejoin-v43-preview{height:320px}.prejoin-v43-panel{min-height:280px}}

/* Meeting room: make mic/camera regular toggle buttons instead of circles. */
.room-control--pill{width:auto!important;min-width:96px!important;padding:0 14px!important;border-radius:10px!important;display:flex!important;gap:8px!important;font-family:inherit!important;font-weight:700!important;}

/* Settings V43: horizontal tabs + one clean content surface. */
.settings-main-content{padding-top:12px!important;}
.settings-v43{width:min(1100px,calc(100vw - var(--sidebar-width) - 70px));min-width:0;max-width:100%;margin:4px auto 28px;}
.settings-v43-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:14px;}.settings-v43-kicker{font-size:10.5px;color:#008bbf;font-weight:800;}.settings-v43-head h1{margin:3px 0 3px;font-size:34.5px;color:#008bbf;}.settings-v43-head p{margin:0;color:#93a4ae;font-size:12px;}
/* Settings tab bar: text tabs with a sliding underline, logout at the far end. */
.settings-v43-tabbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px;border-bottom:1px solid #e6edf0;}
.settings-v43-tabs{position:relative;display:flex;align-items:flex-end;gap:28px;min-width:0;margin-bottom:-1px;overflow-x:auto;scrollbar-width:none;}
.settings-v43-tabs::-webkit-scrollbar{display:none;}
.settings-v43-tab{height:44px;padding:0 2px;border:0;background:transparent;color:#7b8f9a;font-family:inherit;font-size:14px;font-weight:700;white-space:nowrap;cursor:pointer;transition:color .25s ease;}
.settings-v43-tab:hover{color:#274b61;}
.settings-v43-tab.is-active{color:#008bbf;font-weight:800;}
.settings-v43-tabs__ink{position:absolute;bottom:0;left:0;width:var(--ink-width,0);height:3px;border-radius:3px 3px 0 0;background:#008bbf;transform:translateX(var(--ink-x,0));pointer-events:none;}
.settings-v43-tabs.is-ready .settings-v43-tabs__ink{transition:transform .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1);}
.settings-logout{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;height:30px;margin-bottom:7px;padding:0 14px;border:0;border-radius:7px;background:#dc4b52;color:#fff;font-family:inherit;font-size:11px;font-weight:600;text-decoration:none;cursor:pointer;transition:background-color .2s ease;}
.settings-logout:hover{background:#c63c43;}
.settings-logout svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.settings-v43-content{background:#fff;border:1px solid #e5ecef;border-radius:14px;box-shadow:none;padding:22px;min-height:0;}.settings-v43-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;}.settings-v43-panel-head h2{margin:0;color:#173d57;font-size:22px;}.settings-v43-panel-head p{margin:4px 0 0;color:#97a6ae;font-size:11.5px;}
.settings-v43-profile-grid{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:22px;}.settings-v43-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-content:start;}.settings-v43-form label,.settings-v43-security label{display:grid;gap:6px;}.settings-v43-form label span,.settings-v43-security label span{font-size:11.5px;color:#274b61;font-weight:800;}.settings-v43-form input,.settings-v43-security input{height:38px;border:1px solid #dfe7eb;border-radius:8px;background:#fbfcfd;padding:0 12px;font-family:inherit;font-size:14px;color:#3f5d6c;outline:none;}.settings-v43-primary{height:30px;min-width:0;border:0;border-radius:7px;background:#008bbf;color:#fff;font-family:inherit;font-size:11px;font-weight:600;line-height:1;padding:0 14px;justify-self:start;cursor:pointer;transition:background-color .2s ease;}.settings-v43-primary:hover{background:#0077a5;}.settings-v43-form .settings-v43-primary{grid-column:1/-1;}
.settings-v43-photo-card{border:1px solid #e6edf0;border-radius:14px;background:#fbfdfe;padding:20px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;}.settings-v43-photo-card .profile-photo-placeholder{width:104px;height:104px;}.settings-v43-photo-card p{font-size:10.5px;color:#9aabb5;line-height:1.7;margin:12px 0;}.settings-v43-secondary{height:28px;border:1px solid #dfe7eb;border-radius:7px;background:#fff;color:#3d5866;font-family:inherit;font-size:11px;font-weight:600;line-height:1;padding:0 12px;}
.settings-v43-storage-summary{border:1px solid #e5ecef;border-radius:14px;background:#fbfdfe;padding:20px;}.settings-v43-storage-top,.settings-v43-storage-meta{display:flex;align-items:center;justify-content:space-between;}.settings-v43-storage-top div{display:grid;gap:2px;}.settings-v43-storage-top strong{font-size:23px;color:#173d57}.settings-v43-storage-top span,.settings-v43-storage-meta{font-size:10.5px;color:#94a5ae}.settings-v43-storage-top>b{font-size:16px;color:#008bbf}.settings-v43-track{height:8px;border-radius:999px;background:#e9eff2;overflow:hidden;margin:14px 0 8px}.settings-v43-track span{display:block;height:100%;background:linear-gradient(90deg,#018abe,#24b9df);border-radius:999px}.settings-v43-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.settings-v43-stat-grid article{border:1px solid #e6edf0;border-radius:12px;padding:14px;background:#fff}.settings-v43-stat-grid article>div:first-child{display:flex;justify-content:space-between;gap:10px}.settings-v43-stat-grid strong{font-size:11.5px;color:#274b61}.settings-v43-stat-grid span{font-size:10.5px;color:#81949f}.settings-v43-mini-track{height:6px;background:#edf2f4;border-radius:999px;overflow:hidden;margin-top:12px}.settings-v43-mini-track span{display:block;height:100%;background:#008bbf}.settings-v43-mini-track--soft span{background:#88cfe3}
.settings-v43-security{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;align-items:end}.settings-v43-security .settings-v43-primary{grid-column:1/-1}.settings-v43-session-card{margin-top:14px;border:1px solid #e5ecef;border-radius:12px;padding:14px;display:flex;align-items:center;justify-content:space-between;background:#fbfdfe}.settings-v43-session-card div{display:grid;gap:3px}.settings-v43-session-card strong{font-size:12.5px;color:#173d57}.settings-v43-session-card span{font-size:10.5px;color:#97a6ae}.settings-v43-session-card button{height:28px;border:1px solid #dbe4e8;border-radius:7px;background:#fff;color:#496777;font-family:inherit;font-size:11px;font-weight:600;line-height:1;padding:0 12px}
.settings-v43-language{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:760px}.settings-v43-language .language-option{min-height:110px}
@media(max-width:1000px){.settings-v43{width:auto}.settings-v43-tabs{gap:20px}.settings-v43-profile-grid{grid-template-columns:1fr}.settings-v43-form{grid-template-columns:1fr}.settings-v43-security{grid-template-columns:1fr}.settings-v43-stat-grid{grid-template-columns:1fr}}


/* ===== V44 requested refinements ===== */
/* Inputs everywhere: gray border at rest and while focused (no blue ring or glow).
   A red border appears only for a real validation error (.is-invalid / aria-invalid). */
input:focus,
textarea:focus,
select:focus,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: #cfd9de !important;
}
.search-box:focus-within,
.project-files-search:focus-within {
  border-color: #d6dfe3 !important;
  box-shadow: none !important;
}
input.is-invalid,
textarea.is-invalid,
select.is-invalid,
input[aria-invalid="true"],
textarea[aria-invalid="true"],
input.is-invalid:focus,
textarea.is-invalid:focus,
input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus {
  border-color: #d64545 !important;
  box-shadow: none !important;
}
.field-error { display: block; margin-top: 2px; color: #c43c3c; font-size: 11.5px; font-weight: 600; text-align: right; }
.field-error[hidden] { display: none; }

/* Login/register: gently zoom the existing background image without changing the card. */
.auth-access-shell {
  background-image: linear-gradient(90deg,rgba(0,27,72,.10),rgba(0,27,72,.02)), url("assets/auth-background.png") !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 108% auto !important;
  background-color: #0b4f85 !important;
}
@media(max-aspect-ratio: 45/32){
  .auth-access-shell { background-size: auto 108% !important; }
}

/* ===== Tasks page (tasks.html) ===== */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.tasks-section{max-width:1520px;margin:8px auto 0;}
.tasks-add{height:36px;padding:0 16px;border:0;border-radius:8px;background:#008bbf;color:#fff;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;}
.tasks-add:hover{background:#0077a5;}
.tasks-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px;border-bottom:1px solid #e6edf0;}
.tasks-filters{display:flex;gap:24px;margin-bottom:-1px;}
.tasks-filter{height:38px;padding:0 2px;border:0;border-bottom:2px solid transparent;background:transparent;color:#71858f;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer;}
.tasks-filter span{margin-right:3px;color:#a0aeb6;font-weight:600;}
.tasks-filter:hover{color:#274b61;}
.tasks-filter.is-active{color:#008bbf;border-bottom-color:#008bbf;}

.tasks-table{background:#fff;border:1px solid #e6edf0;border-radius:12px;}
.tasks-row{display:grid;grid-template-columns:minmax(0,2.6fr) minmax(110px,1fr) 110px 130px 76px;align-items:center;gap:14px;min-height:62px;padding:10px 18px;border-bottom:1px solid #eef2f4;color:#4f6876;font-size:12.5px;}
#tasksBody .tasks-row:last-child{border-bottom:0;}
.tasks-row--head{min-height:42px;border-radius:12px 12px 0 0;background:#f7fafb;color:#31566d;font-size:12px;font-weight:800;}
.tasks-row__main{display:grid;gap:3px;min-width:0;}
.tasks-row__main strong{color:#173d57;font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tasks-row__main small{color:#91a2ac;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tasks-row__due--late{color:#c43c3c;font-weight:700;}
.task-status{display:inline-block;padding:3px 8px;border-radius:5px;font-size:11.5px;font-weight:700;white-space:nowrap;}
.task-status--progress{color:#146f92;background:#eaf5f9;}
.task-status--completed{color:#19784f;background:#e9f6ef;}
.task-status--overdue{color:#b73a3a;background:#fbecec;}
.tasks-row__open{display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:#147da3;font-family:inherit;font-size:12.5px;font-weight:700;cursor:pointer;}
.tasks-row__open svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.tasks-row__open:hover{background:#eef5f8;}
.tasks-empty{margin:0;padding:34px;text-align:center;color:#91a0aa;font-size:14px;}
/* Task details: a side panel on the left. */
.task-drawer{position:fixed;inset:0;z-index:110;background:rgba(10,35,54,.22);}
.task-drawer[hidden]{display:none;}
.task-drawer__panel{position:absolute;top:0;bottom:0;left:0;width:min(440px,100%);display:grid;grid-template-rows:auto minmax(0,1fr);background:#fff;border-right:1px solid #e3e9ec;box-shadow:8px 0 30px rgba(0,27,72,.12);}
.task-drawer__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 22px 16px;border-bottom:1px solid #edf1f3;}
.task-drawer__project{color:#8a9ba5;font-size:12px;font-weight:600;}
.task-drawer__head h2{margin:3px 0 0;color:#173d57;font-size:19.5px;font-weight:800;line-height:1.5;}
.task-drawer__close{flex:0 0 auto;width:30px;height:30px;border:0;border-radius:7px;background:transparent;color:#718994;font-size:23px;line-height:1;cursor:pointer;}
.task-drawer__close:hover{background:#f2f5f7;}
.task-drawer__body{overflow-y:auto;padding:18px 22px 24px;}
.task-drawer__facts{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;margin:0 0 20px;}
.task-drawer__facts div{display:grid;gap:4px;}
.task-drawer__facts dt{color:#93a4ae;font-size:11.5px;}
.task-drawer__facts dd{margin:0;color:#173d57;font-size:14px;font-weight:700;}
.task-drawer__block{padding-top:16px;margin-top:16px;border-top:1px solid #eef2f4;}
.task-drawer__block[hidden]{display:none;}
.task-drawer__block h3{margin:0 0 8px;color:#274b61;font-size:13px;font-weight:800;}
.task-drawer__block p{margin:0;color:#4f6876;font-size:14px;line-height:1.9;}
.task-drawer__files,.task-drawer__comments{list-style:none;margin:0;padding:0;display:grid;gap:10px;}
.task-drawer__files a{color:#147da3;font-size:13px;font-weight:600;text-decoration:none;}
.task-drawer__files a:hover{text-decoration:underline;}
.task-drawer__comments b{color:#173d57;font-size:12.5px;}
.task-drawer__comments p{margin:3px 0 0;font-size:13px;}
.task-drawer__none{color:#9aabb5;font-size:12.5px;}
@media(max-width:900px){.tasks-row{grid-template-columns:minmax(0,1fr) 100px 86px;}.tasks-row>:nth-child(2),.tasks-row>:nth-child(4){display:none;}}
@media(max-width:600px){.tasks-toolbar{flex-direction:column;align-items:stretch;}.tasks-filters{gap:16px;overflow-x:auto;}.tasks-toolbar .project-files-search{width:auto;}.tasks-row{grid-template-columns:minmax(0,1fr) 70px;}.tasks-row>:nth-child(3){display:none;}.tasks-head{flex-wrap:wrap;}}

/* ===== Project stages (project-details.html): one connected table ===== */
.stages-table{margin-top:14px;background:#fff;border:1px solid #e6edf0;border-radius:12px;}
.stages-row{position:relative;display:grid;grid-template-columns:minmax(0,2.4fr) 150px minmax(150px,1fr) minmax(110px,.8fr) 70px;align-items:center;gap:14px;min-height:66px;padding:10px 18px;border-bottom:1px solid #eef2f4;color:#4f6876;font-size:12.5px;}
.stages-row:last-child{border-bottom:0;}
.stages-row--head{min-height:42px;border-radius:12px 12px 0 0;background:#f7fafb;color:#31566d;font-size:12px;font-weight:800;}
.stages-row--head>span:first-child{padding-right:42px;}
.stages-row--progress{background:#fafcfd;}
.stages-row--progress::before{content:"";position:absolute;top:0;bottom:0;right:0;width:3px;background:#008bbf;}
.stages-row__stage{display:flex;align-items:center;gap:12px;min-width:0;}
.stages-row__stage>div{display:grid;gap:3px;min-width:0;}
.stages-row__stage strong{color:#173d57;font-size:14px;font-weight:800;}
.stages-row__stage small{color:#91a2ac;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
/* Step number; completed steps show a check, so progression reads top to bottom. */
.stages-row__step{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;border:1px solid #dbe4e8;border-radius:50%;color:#6b8290;font-size:12.5px;font-weight:800;}
.stages-row__step svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.stages-row--completed .stages-row__step{border-color:#bfe3d1;color:#19784f;}
.stages-row--progress .stages-row__step{border-color:#008bbf;color:#008bbf;}
.stage-state{display:inline-block;padding:3px 8px;border-radius:5px;font-size:11.5px;font-weight:700;}
.stage-state--completed{color:#19784f;background:#e9f6ef;}
.stage-state--progress{color:#146f92;background:#eaf5f9;}
.stage-state--pending{color:#5f7480;background:#f0f3f5;}
.stages-row>span small{margin-right:8px;color:#173d57;font-size:12.5px;font-weight:800;}
.stages-row__link{color:#147da3;font-size:12.5px;font-weight:700;text-decoration:none;}
.stages-row__link:hover{text-decoration:underline;}
@media(max-width:900px){.stages-row{grid-template-columns:minmax(0,1fr) 120px 60px}.stages-row>:nth-child(3),.stages-row>:nth-child(4){display:none}}

/* ===== Link dialog (files pages) ===== */
.link-dialog{position:fixed;inset:0;z-index:125;display:grid;place-items:center;padding:20px;background:rgba(10,35,54,.18);}
.link-dialog[hidden]{display:none;}
.link-dialog__box{width:min(440px,100%);padding:18px 20px;background:#fff;border:1px solid #e3eaee;border-radius:12px;box-shadow:0 8px 24px rgba(0,27,72,.10);}
.link-dialog__head{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.link-dialog__head img{width:34px;height:34px;object-fit:contain;}
.link-dialog__head>div{flex:1;min-width:0;}
.link-dialog__head h2{margin:0;color:#173d57;font-size:16px;font-weight:800;}
.link-dialog__head p{margin:2px 0 0;color:#8a9ba5;font-size:12px;}
.link-dialog__close{width:28px;height:28px;border:0;border-radius:7px;background:transparent;color:#7d909b;font-size:20.5px;line-height:1;cursor:pointer;}
.link-dialog__close:hover{background:#f2f5f7;}
.link-dialog__label{display:block;margin-bottom:6px;color:#274b61;font-size:12.5px;font-weight:700;}
.link-dialog__url{box-sizing:border-box;width:100%;height:38px;padding:0 10px;border:1px solid #dfe7eb;border-radius:8px;background:#f8fafb;color:#2f4b5b;font-family:inherit;font-size:14px;text-align:left;}
.link-dialog__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:14px;}
.link-dialog__actions small{margin-left:auto;color:#19784f;font-size:12px;font-weight:600;}
.link-dialog__button{height:32px;display:inline-flex;align-items:center;padding:0 14px;border:1px solid #dfe7eb;border-radius:7px;background:#fff;color:#4f6876;font-family:inherit;font-size:12.5px;font-weight:700;text-decoration:none;cursor:pointer;}
.link-dialog__button--primary{border-color:#008bbf;background:#008bbf;color:#fff;}
.link-dialog__button--primary:hover{background:#0077a5;}

/* ===== Select boxes: one clean chevron, centred, on the left side (RTL) ===== */
select {
  -webkit-appearance: none;
  appearance: none;
  padding-left: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b8290' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 12px center !important;
  background-size: 14px 14px !important;
  cursor: pointer;
}
.settings-v43-stat-grid--single{grid-template-columns:1fr;}

/* ===== Date picker (all date fields): blue header with month/year selects, white day grid ===== */
.date-field{position:relative;display:block;}
.date-field__input{width:100%;height:38px;padding:0 12px 0 36px !important;border:1px solid #dfe7eb;border-radius:8px;background:#fff;color:#2f4b5b;font-size:13px;text-align:right;cursor:pointer;}
.date-field__input::placeholder{color:#a3b1b9;}
.date-field svg{position:absolute;left:12px;top:50%;width:16px;height:16px;transform:translateY(-50%);fill:none;stroke:#6b8290;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;}
.datepicker{position:fixed;z-index:200;width:292px;overflow:hidden;direction:rtl;background:#fff;border:1px solid #dfe7eb;border-radius:12px;box-shadow:0 8px 24px rgba(0,27,72,.12);font-family:var(--font-family);}
.datepicker[hidden]{display:none;}
.datepicker__top{padding:12px 12px 6px;background:#0a7fae;color:#fff;}
.datepicker__head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;}
.datepicker__nav{width:30px;height:30px;display:grid;place-items:center;flex:0 0 30px;border:0;border-radius:7px;background:transparent;color:#fff;cursor:pointer;}
.datepicker__nav:hover{background:rgba(255,255,255,.14);}
.datepicker__nav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.datepicker__selects{display:flex;gap:6px;}
.datepicker .datepicker__select{height:30px;padding:0 10px 0 28px !important;border:0;border-radius:7px;background-color:rgba(255,255,255,.16);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;background-position:left 9px center !important;background-size:12px 12px !important;color:#fff;font-family:inherit;font-size:13px;font-weight:600;}
.datepicker .datepicker__select:hover{background-color:rgba(255,255,255,.24);}
.datepicker .datepicker__select:focus{border-color:transparent !important;}
.datepicker__select option{color:#173d57;background:#fff;}
.datepicker__weekdays,.datepicker__grid{display:grid;grid-template-columns:repeat(7,1fr);}
.datepicker__weekdays span{padding:4px 0;color:rgba(255,255,255,.72);font-size:12px;font-weight:600;text-align:center;}
.datepicker__grid{padding:8px 10px 10px;row-gap:2px;}
.datepicker__day{height:36px;width:36px;justify-self:center;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:#24404f;font-family:inherit;font-size:14px;font-weight:500;cursor:pointer;}
.datepicker__day:hover{background:#eef5f8;}
.datepicker__day.is-outside{color:#bcc8ce;}
.datepicker__day.is-today{color:#0a7fae;font-weight:800;}
.datepicker__day.is-selected,.datepicker__day.is-selected:hover{background:#0a7fae;color:#fff;font-weight:700;}
.wizard-new-step__head{display:grid;gap:3px;margin-bottom:12px}.wizard-new-step__head strong{color:#173d57}.wizard-new-step__head small{color:#96a5ae;font-size:11.5px}

/* ===== Settings: compact storage summary ===== */
.storage-compact{padding:16px 18px;border:1px solid #e6edf0;border-radius:10px;background:#fff;}
.storage-compact__head{display:flex;align-items:baseline;gap:8px;}
.storage-compact__head strong{color:#173d57;font-size:20px;font-weight:800;}
.storage-compact__head>span{color:#8b9ca6;font-size:12px;}
.storage-compact__head b{margin-right:auto;color:#0a7fae;font-size:14px;font-weight:800;}
.storage-compact__track{height:6px;margin:10px 0 12px;overflow:hidden;border-radius:3px;background:#e8eef1;}
.storage-compact__track span{display:block;height:100%;border-radius:inherit;background:#0a7fae;}
.storage-compact__meta{display:flex;flex-wrap:wrap;gap:8px 28px;margin:0;}
.storage-compact__meta div{display:flex;align-items:baseline;gap:6px;}
.storage-compact__meta dt{color:#8b9ca6;font-size:12px;}
.storage-compact__meta dd{margin:0;color:#274b61;font-size:12.5px;font-weight:700;}

/* ===== Settings: compact language choice (radio list) ===== */
.settings-lang{display:grid;max-width:420px;border:1px solid #e6edf0;border-radius:10px;overflow:hidden;}
.settings-lang .language-option{position:relative;min-height:0;height:52px;display:flex;align-items:center;gap:10px;padding:0 16px;margin:0;border:0;border-bottom:1px solid #eef2f4;border-radius:0;background:#fff;box-shadow:none;text-align:right;color:#274b61;cursor:pointer;}
.settings-lang .language-option:last-child{border-bottom:0;}
.settings-lang .language-option:hover{background:#fafcfd;}
.settings-lang .language-option::before{content:"";flex:0 0 16px;width:16px;height:16px;box-sizing:border-box;border:1.5px solid #c3cfd5;border-radius:50%;background:#fff;}
.settings-lang .language-option.is-selected{border:0;border-bottom:1px solid #eef2f4;background:#fff;box-shadow:none;}
.settings-lang .language-option.is-selected:last-child{border-bottom:0;}
.settings-lang .language-option.is-selected::before{border:5px solid #0a7fae;}
.settings-lang .language-option span:first-child{font-size:14px;font-weight:700;}
.settings-lang .language-option.is-selected span:first-child{color:#0a7fae;}
.settings-lang .language-option small{min-height:0;margin:0 auto 0 0;color:#93a4ae;font-size:11.5px;}
.settings-lang .language-check{display:none;}

/* Compact blue banner (Tasks page) — same identity as the other page banners, less height. */
.projects-hero.page-banner--compact{min-height:120px;margin-bottom:24px;padding:24px clamp(28px,4vw,60px);border-radius:20px;}
.page-banner--compact .projects-hero__content h1{margin-bottom:4px;font-size:36px;}
.tasks-toolbar__end{display:flex;align-items:center;gap:10px;margin-bottom:8px;}
.tasks-toolbar__end .project-files-search{margin-bottom:0;}

/* ===== University handbook (guide.html): upload → analyze → review → add to tasks ===== */
.handbook-steps{max-width:1520px;margin:0 auto 14px;padding:0;list-style:none;display:flex;gap:26px;counter-reset:hb;color:#93a4ae;font-size:13.5px;font-weight:700;}
.handbook-steps li{counter-increment:hb;display:flex;align-items:center;gap:8px;}
.handbook-steps li::before{content:counter(hb);width:22px;height:22px;display:grid;place-items:center;border:1.5px solid #d3dde2;border-radius:50%;font-size:11.5px;}
.handbook-steps li.is-current{color:#0a7fae;}
.handbook-steps li.is-current::before{border-color:#0a7fae;background:#0a7fae;color:#fff;}
.handbook-steps li.is-done{color:#3d5866;}
.handbook-steps li.is-done::before{content:"✓";border-color:#9fc9da;color:#0a7fae;}
.handbook-panel{max-width:1520px;margin:0 auto;padding:20px 22px;background:#fff;border:1px solid #e6edf0;border-radius:12px;}
.handbook-panel[hidden]{display:none;}
.handbook-drop{display:grid;justify-items:center;gap:6px;padding:38px 20px;border:1.5px dashed #cfd9de;border-radius:10px;background:#fafbfc;text-align:center;cursor:pointer;transition:border-color .15s ease,background-color .15s ease;}
.handbook-drop:hover,.handbook-drop.is-over{border-color:#9fb6c1;background:#f5f8f9;}
.handbook-drop svg{width:28px;height:28px;margin-bottom:4px;fill:none;stroke:#7d909b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.handbook-drop strong{color:#173d57;font-size:16px;font-weight:800;}
.handbook-drop small{color:#93a4ae;font-size:12.5px;}
.handbook-drop__button{margin-top:8px;height:34px;display:inline-flex;align-items:center;padding:0 16px;border-radius:8px;background:#008bbf;color:#fff;font-size:13px;font-weight:700;}
.handbook-panel>.field-error{margin-top:8px;font-size:12.5px;}
.handbook-sample{display:block;margin:12px auto 0;border:0;background:transparent;color:#0a7fae;font-size:13px;font-weight:700;cursor:pointer;}
.handbook-sample:hover{text-decoration:underline;}
.handbook-doc{display:flex;align-items:center;gap:12px;}
.handbook-doc img{width:36px;height:36px;object-fit:contain;}
.handbook-doc>div{flex:1;display:grid;gap:2px;min-width:0;}
.handbook-doc strong{color:#173d57;font-size:15px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.handbook-doc small{color:#8b9ca6;font-size:12.5px;}
.handbook-doc__change{height:32px;padding:0 12px;border:1px solid #dfe7eb;border-radius:8px;background:#fff;color:#3d5866;font-size:12.5px;font-weight:700;cursor:pointer;}
.handbook-analyzing__text{margin:18px 0 8px;color:#3d5866;font-size:14px;}
.handbook-analyzing__bar{height:4px;overflow:hidden;border-radius:2px;background:#e8eef1;}
.handbook-analyzing__bar span{display:block;width:35%;height:100%;border-radius:inherit;background:#0a7fae;animation:hb-load 1.1s ease-in-out infinite;}
@keyframes hb-load{from{transform:translateX(200%)}to{transform:translateX(-300%)}}
.handbook-results .handbook-doc{padding-bottom:14px;border-bottom:1px solid #eef2f4;}
.handbook-results__bar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:16px 0 6px;}
.handbook-results__bar h2{margin:0 0 3px;color:#173d57;font-size:18px;font-weight:800;}
.handbook-results__bar p{margin:0;color:#8b9ca6;font-size:13px;}
.handbook-results__actions{display:flex;align-items:center;gap:14px;}
.handbook-results__actions .tasks-add:disabled{background:#b9d9e6;cursor:default;}
.handbook-check{display:inline-flex;align-items:center;gap:7px;color:#3d5866;font-size:13px;font-weight:600;cursor:pointer;}
.handbook-check input{width:16px;height:16px;margin:0;accent-color:#0a7fae;cursor:pointer;}
.handbook-group{margin-top:14px;}
.handbook-group h3{margin:0 0 4px;padding:8px 0;color:#31566d;font-size:13.5px;font-weight:800;border-bottom:1px solid #eef2f4;}
.handbook-group ul{list-style:none;margin:0;padding:0;}
.handbook-item{display:grid;grid-template-columns:24px minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid #f0f3f5;}
.handbook-item:last-child{border-bottom:0;}
.handbook-item__text{display:grid;gap:3px;min-width:0;}
.handbook-item__text strong{color:#173d57;font-size:14.5px;font-weight:700;}
.handbook-item__text small{color:#7d909b;font-size:12.5px;line-height:1.6;}
.handbook-item__meta{display:flex;gap:14px;color:#7d909b;font-size:12.5px;white-space:nowrap;}
.handbook-item__add{height:30px;padding:0 12px;border:1px solid #d3e3ea;border-radius:7px;background:#fff;color:#0a7fab;font-size:12.5px;font-weight:700;white-space:nowrap;cursor:pointer;}
.handbook-item__add:hover{background:#f1f8fb;}
.handbook-item__done{color:#19784f;font-size:12.5px;font-weight:700;text-decoration:none;white-space:nowrap;}
.handbook-item__done::before{content:"✓ ";}
.handbook-item.is-added .handbook-item__text strong{color:#5d7280;}
.handbook-status{margin:12px 0 0;color:#19784f;font-size:13px;font-weight:600;}
.handbook-status a{color:#0a7fae;}
@media(max-width:760px){.handbook-item{grid-template-columns:24px minmax(0,1fr);}.handbook-item__meta{grid-column:2;}.handbook-item__add,.handbook-item__done{grid-column:2;justify-self:start;}.handbook-steps{gap:14px;font-size:12px;}}
.custom-stage-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;}.custom-stage-form input{flex:1 1 220px;height:38px;padding:0 12px;border:1px solid #dfe7eb;border-radius:8px;font-size:13px}.custom-stage-form .button-primary,.custom-stage-form .button-secondary{height:38px}.custom-stage-form .field-error{flex-basis:100%}
.stages-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px;}.stages-toolbar h2{margin:0;color:#173d57;font-size:18px;font-weight:800;}
.stage-modal{width:min(480px,100%);}
.stages-table{margin-top:0;}


/* ===== Time picker (same family as the date picker) ===== */
.timepicker{width:236px;}
.timepicker__top{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;}
.timepicker__value{color:#fff;font-size:26px;font-weight:800;letter-spacing:.5px;direction:ltr;}
.timepicker__period{display:flex;gap:2px;padding:2px;border-radius:8px;background:rgba(255,255,255,.16);}
.timepicker__period button{height:28px;min-width:36px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:rgba(255,255,255,.85);font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;}
.timepicker__period button.is-active{background:#fff;color:#0a7fae;}
.timepicker__cols{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 10px 4px;}
.timepicker__col>span{display:block;margin-bottom:6px;color:#93a4ae;font-size:12px;font-weight:600;text-align:center;}
.timepicker__list{height:180px;overflow-y:auto;display:grid;align-content:start;gap:2px;padding:0 4px;scrollbar-width:thin;}
.timepicker__list button{height:32px;border:0;border-radius:7px;background:transparent;color:#24404f;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;direction:ltr;}
.timepicker__list button:hover{background:#eef5f8;}
.timepicker__list button.is-selected{background:#0a7fae;color:#fff;}
.timepicker__foot{display:flex;justify-content:flex-end;padding:6px 10px 10px;border-top:1px solid #eef2f4;margin-top:6px;}
.timepicker__foot button{height:30px;padding:0 14px;border:0;border-radius:7px;background:#0a7fae;color:#fff;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;}



/* ===== Login / register: account type (student or academic supervisor) ===== */
.auth-access-form [hidden]{display:none !important;}
.auth-role{margin:0 0 2px;padding:0;border:0;min-width:0;}
.auth-role legend{margin-bottom:6px;padding:0;float:right;width:100%;text-align:right;color:#274b61;font-size:12.5px;font-weight:700;}
.auth-role__options{clear:both;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#f3f6f8;border:1px solid #e3eaee;border-radius:10px;}
.auth-access-form .auth-role__option{position:relative;display:block;margin:0;text-align:center;cursor:pointer;}
.auth-role__option input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none;}
.auth-role__option span{display:flex;align-items:center;justify-content:center;height:34px;border-radius:7px;color:#5d7584;font-size:13.5px;font-weight:700;transition:background-color .15s ease,color .15s ease;}
.auth-role__option:hover span{color:#274b61;}
.auth-role__option input:checked + span{background:#087fbd;color:#fff;}
.auth-role__option input:focus-visible + span{outline:2px solid #087fbd;outline-offset:2px;}
/* Academic supervisor: the supervisor identity color #98CBDC for active states and primary actions.
   Text on it uses the main text color #393939. */
.auth-access-card.is-supervisor .auth-role__option input:checked + span{background:#98cbdc;color:#f8f5ee;}
.auth-access-card.is-supervisor .auth-role__option input:focus-visible + span{outline-color:#5fa9c2;}
.auth-access-card.is-supervisor .auth-access-primary{background:#98cbdc;color:#f8f5ee;}
.auth-access-card.is-supervisor .auth-access-primary:hover{background:#82bfd3;}
.auth-access-card.is-supervisor .auth-access-forgot,
.auth-access-card.is-supervisor .auth-access-switch a{color:#393939;}
/* Main text color for the login / register forms. */
.auth-access-heading h1,.auth-access-form label,.auth-role legend,.auth-access-form input{color:#393939;}
.auth-access-form .field-error{color:#c43c3c;}

/* ===== V82: shared status vocabulary (domain.js) ===== */
.task-status--idle{color:#6b7c86;background:#f0f3f5;}
.task-status--review{color:#6a4fb3;background:#f1edfb;}
.task-status--blocked{color:#8a5a00;background:#fdf4e3;}
.task-status--cancelled{color:#6b7c86;background:#f0f3f5;text-decoration:line-through;}
.task-status--archived{color:#6b7c86;background:#f0f3f5;}
.sv-review--rejected{color:#b73a3a;background:#fbecec;}
/* V82: task drawer — status change, supervisor feedback, comments */
.task-drawer__hint{margin:8px 0 0 !important;color:#7a8d97 !important;font-size:12.5px !important;line-height:1.7 !important;}
.task-drawer__hint[hidden]{display:none;}
.task-drawer__count{color:#8fa0a9;font-weight:700;}
.task-status-form{display:flex;gap:8px;align-items:center;}
.task-status-form[hidden]{display:none;}
.task-status-form select{flex:1;height:38px;padding:0 10px;border:1px solid #d9e3e8;border-radius:10px;background:#fff;color:#173d57;font-family:inherit;font-size:14px;}
.task-status-form__save,.task-comment-form__send{height:38px;padding:0 16px;border:0;border-radius:10px;background:#008bbf;color:#fff;font-family:inherit;font-size:13.5px;font-weight:800;cursor:pointer;}
.task-status-form__save:hover,.task-comment-form__send:hover{background:#0079a6;}
.task-feedback__list{list-style:none;margin:0;padding:0;display:grid;gap:10px;}
.task-feedback__list li{padding:10px 12px;border-radius:10px;background:#f3f9fc;border-inline-start:3px solid #008bbf;}
.task-feedback__list li p{font-size:13.5px !important;}
.task-comment__meta{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;}
.task-comment__meta time,.task-comment__meta em{color:#8fa0a9;font-size:11.5px;font-style:normal;}
.task-comment__actions{display:flex;gap:12px;margin-top:6px;}
.task-comment__actions button{padding:0;border:0;background:none;color:#008bbf;font-family:inherit;font-size:12.5px;font-weight:700;cursor:pointer;}
.task-comment__actions button.is-danger{color:#b73a3a;}
.task-comment textarea,.task-comment-form textarea{width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid #d9e3e8;border-radius:10px;font-family:inherit;font-size:14px;resize:vertical;}
.task-comment-form{display:grid;gap:8px;margin-top:12px;}
.task-comment-form__send{justify-self:start;}
.task-comment-form textarea.is-invalid,.task-comment textarea.is-invalid{border-color:#d64545;}
.task-feedback__list li.task-drawer__none{padding:0;background:none;border:0;}
/* V82: editable meeting notes */
.meeting-notes-actions{display:flex;gap:10px;justify-content:flex-start;flex-wrap:wrap;}
.meeting-notes-actions .meeting-notes-close-button{background:#eef4f7;color:#274b61;font-family:inherit;cursor:pointer;}
.meeting-notes-edit-button{min-width:110px;height:38px;padding:0 16px;border:0;border-radius:9px;background:#008bbf;color:#fff;font-family:inherit;font-weight:700;cursor:pointer;}
.meeting-notes-edit-button[hidden]{display:none;}
.meeting-notes-input{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #d9e3e8;border-radius:10px;font-family:inherit;font-size:14px;line-height:1.8;resize:vertical;}
.meeting-notes-input.is-invalid{border-color:#d64545;}
.meeting-notes-field label h3{cursor:pointer;}
.meeting-notes-meta{margin:-8px 0 14px;color:#7a8d97;font-size:12.5px;}
.meeting-notes-meta[hidden]{display:none;}
/* V82: auth notices (e-mail verification, supervisor accounts) */
.auth-access-notice{margin:0 0 14px;padding:10px 12px;border-radius:10px;background:#eaf6fb;color:#185a78;font-size:13.5px;line-height:1.8;}
.auth-access-notice[hidden]{display:none;}
.auth-access-notice a{color:#008bbf;font-weight:700;}
.auth-access-two[hidden],.auth-access-primary[hidden]{display:none;}

/* V82: project wizard — required fields, team name, handbook step */
.wizard-grid select,.wizard-handbook select{height:40px;padding:0 10px;border:1px solid #dfe7eb;border-radius:9px;background:#fff;color:#173d57;font-family:inherit;font-size:12.5px;}
.wizard-input{width:100%;box-sizing:border-box;height:38px;margin-top:10px;padding:9px 11px;border:1px solid #dfe7eb;border-radius:9px;font-family:inherit;font-size:12.5px;}
.wizard-grid .is-invalid,.wizard-input.is-invalid,.invite-row input.is-invalid,.wizard-handbook select.is-invalid{border-color:#d64545;}
.invite-section .invite-block:first-child{grid-column:1/-1;}
.wizard-handbook{display:grid;gap:10px;}
.wizard-handbook>div:first-child{display:grid;gap:4px;}
.wizard-handbook strong{color:#173d57;}
.wizard-handbook small{color:#96a5ae;font-size:11.5px;}
.wizard-choice{display:flex;align-items:center;gap:8px;color:#244a62;font-size:13px;font-weight:700;}
.wizard-choice input{accent-color:#008bbf;}
.wizard-handbook__field{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-inline-start:24px;}
.wizard-handbook__field[hidden]{display:none;}
.wizard-handbook__field select{flex:1;min-width:240px;}
.wizard-handbook__link{color:#008bbf;font-size:12.5px;font-weight:700;}
.wizard-note{margin:0;padding:8px 12px;border-radius:9px;background:#f3f9fc;color:#35617a;font-size:12.5px;}
.wizard-note[hidden]{display:none;}
.wizard-handbook .field-error,.wizard-grid .field-error,.invite-block .field-error{color:#c53b3b;font-size:11.5px;font-weight:600;}
.wizard-tabs--dots{grid-template-columns:auto 1fr auto 1fr auto 1fr auto!important;}
#fbTaskWrap[hidden]{display:none!important;}

/* ===== V83: Graduation Project Handbook (guide.html) ===== */
.hb-selected,.hb-options,.hb-note,.hb-ai{max-width:1520px;margin-inline:auto;}
.hb-selected{margin-bottom:14px;padding:16px 20px;background:#fff;border:1px solid #e6edf0;border-radius:12px;}
.hb-selected__head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px;}
.hb-selected__head h2,.hb-option h2{margin:0;color:#173d57;font-size:16px;font-weight:800;}
.hb-project,.hb-field{display:flex;align-items:center;gap:8px;color:#5c7482;font-size:13px;font-weight:700;}
.hb-field{flex-direction:column;align-items:stretch;gap:6px;margin-bottom:12px;}
.hb-project select,.hb-field select{height:40px;padding:0 10px;border:1px solid #d9e3e8;border-radius:10px;background:#fff;color:#173d57;font-family:inherit;font-size:14px;}
.hb-empty{margin:0;color:#5c7482;font-size:14px;line-height:1.9;}
.hb-file{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.hb-file img{width:32px;height:32px;flex:none;}
.hb-file__text{display:grid;gap:3px;flex:1;min-width:200px;}
.hb-file__text strong{color:#173d57;font-size:15px;overflow-wrap:anywhere;}
.hb-file__text small{color:#6b7f8a;font-size:12.5px;line-height:1.7;}
.hb-file__text .hb-file__note{color:#0b6f97;}
.hb-file--option{padding:12px;border:1px solid #e6edf0;border-radius:10px;background:#fafcfd;}
.hb-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.hb-option{padding:18px 20px;background:#fff;border:1px solid #e6edf0;border-radius:12px;min-width:0;}
.hb-option__hint{margin:6px 0 14px;color:#5c7482;font-size:13.5px;line-height:1.8;}
.hb-drop{min-height:150px;}
.hb-unavailable{padding:12px 14px;border:1px dashed #cdd9df;border-radius:10px;background:#fafcfd;}
.hb-unavailable strong{color:#274b61;font-size:14px;}
.hb-unavailable p{margin:4px 0 0;color:#5c7482;font-size:13px;line-height:1.8;}
.hb-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;}
.hb-btn{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 16px;border:0;border-radius:10px;background:#008bbf;color:#fff;font-family:inherit;font-size:13.5px;font-weight:800;text-decoration:none;cursor:pointer;}
.hb-btn:hover{background:#0079a6;}
.hb-btn:disabled{opacity:.55;cursor:not-allowed;}
.hb-btn--ghost{background:#eef6fa;color:#0b6f97;}
.hb-btn--ghost:hover{background:#e0eff6;}
.hb-link{padding:0 4px;border:0;background:none;color:#0b6f97;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;}
.hb-link:hover{text-decoration:underline;}
.hb-in-use{padding:7px 12px;border-radius:999px;background:#eef6fa;color:#0b6f97;font-size:12.5px;font-weight:800;}
.hb-note{margin-top:10px;margin-bottom:16px;color:#5c7482;font-size:13px;line-height:1.8;}
.hb-ai{padding:4px 0 8px;}
.hb-tabs{display:flex;gap:22px;border-bottom:1px solid #e6edf0;margin-bottom:12px;}
.hb-demo{margin:0 0 14px;padding:10px 14px;border:1px solid #d9e7ee;border-radius:10px;background:#f4f9fc;color:#35617a;font-size:13px;line-height:1.8;}
.hb-panel[hidden]{display:none;}
.hb-start,.hb-error{padding:18px 20px;border:1px solid #e6edf0;border-radius:12px;background:#fff;}
.hb-start p,.hb-error p{margin:0 0 12px;color:#4f6876;font-size:14px;line-height:1.9;}
.hb-error{border-color:#f0d4d4;}
.hb-error strong{display:block;margin-bottom:6px;color:#9b2c2c;font-size:15px;}
.hb-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;align-items:stretch;}
.hb-card{display:flex;flex-direction:column;gap:8px;min-height:170px;padding:16px 18px;background:#fff;border:1px solid #e6edf0;border-radius:12px;}
.hb-card h3{display:flex;align-items:center;gap:10px;margin:0;color:#173d57;font-size:15.5px;font-weight:800;line-height:1.6;}
.hb-card__num{display:inline-grid;place-items:center;flex:none;width:26px;height:26px;border-radius:8px;background:#eef6fa;color:#0b6f97;font-size:13px;font-weight:800;}
.hb-card p{margin:0;color:#36566a;font-size:14px;line-height:1.9;}
.hb-card ul{display:grid;gap:8px;margin:0;padding:0;list-style:none;}
.hb-card li{display:grid;gap:4px;padding-inline-start:12px;border-inline-start:2px solid #cfe5ee;color:#36566a;font-size:13.5px;line-height:1.8;}
.hb-refs{display:flex;flex-wrap:wrap;gap:4px;}
.hb-page{display:inline-block;padding:1px 8px;border-radius:6px;background:#eef3f6;color:#4f6876;font-size:11.5px;font-weight:700;}
.hb-unverified{color:#8a5a00;font-size:12px;font-style:normal;}
.hb-card__note{color:#6b7f8a !important;font-size:12.5px !important;}
.hb-card.is-empty{justify-content:flex-start;}
.hb-card__none{color:#8a9aa3 !important;font-weight:700;}
.hb-disclaimer{margin:14px 0 0;color:#7a8d97;font-size:12.5px;line-height:1.8;}
.hb-tasks__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px;}
.hb-suggestions{display:grid;gap:8px;margin:0;padding:0;list-style:none;}
.lib-toast,.hb-toast{position:fixed;inset-inline:0;bottom:24px;width:max-content;max-width:calc(100% - 32px);margin:0 auto;padding:10px 16px;border-radius:10px;background:#173d57;color:#fff;font-size:14px;z-index:60;}
.lib-toast[hidden],.hb-toast[hidden]{display:none;}
@media(max-width:900px){.hb-options{grid-template-columns:1fr;}}
@media(max-width:560px){.hb-selected,.hb-option{padding:14px;}.hb-cards{grid-template-columns:1fr;}.hb-card{min-height:0;}}
.stages-toolbar__desc{margin:4px 0 0;color:#5c7482;font-size:13.5px;line-height:1.8;max-width:760px;}
.hero__content .hero__desc{display:block;max-width:640px;font-size:clamp(15px,1.1vw,18px);line-height:1.9;}
/* V83: language switch (i18n.js) */
.lang-toggle{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 14px;border:1px solid #d9e3e8;border-radius:999px;background:#fff;color:#0b6f97;font-family:inherit;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap;}
.lang-toggle:hover{border-color:#8cc6dc;background:#f4f9fc;}
.lang-toggle:focus-visible{outline:2px solid #008bbf;outline-offset:2px;}
.lang-toggle--floating{position:fixed;top:16px;inset-inline-end:16px;z-index:50;}
.topbar > .lang-toggle{grid-column:2;grid-row:1;justify-self:start;}

/* Demonstration label of the meeting pages (until LiveKit is connected) */
.demo-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#eef7fb;border:1px solid #cfe6f1;color:#0b6e99;font-size:11.5px;font-weight:800;white-space:nowrap}
.demo-note{margin:10px 0 0;padding:9px 12px;border-radius:10px;background:#eef7fb;border:1px solid #cfe6f1;color:#0b6e99;font-size:12.5px;line-height:1.7}
