/* MAWHIBA — bilingual product system.
   All surfaces, controls and states share semantic light/dark tokens.
   Logical properties let the same layout support RTL and LTR. */
:root {
  color-scheme: dark;
  --bg: #101722;
  --surface: #16202e;
  --surface-raised: #1b2737;
  --surface-soft: #121c29;
  --text: #f0f3f9;
  --muted: #a6b2c3;
  --subtle: #8291a7;
  --line: #2a3749;
  --primary: #dbc08b;
  --on-primary: #182232;
  --accent: #dbc08b;
  --accent-soft: #dbc08b12;
  --success: #91d3b3;
  --success-bg: #163e32;
  --danger: #f4a5a5;
  --danger-bg: #472b35;
  --info: #a8c8f7;
  --info-bg: #20354f;
  --warning: #e8c889;
  --warning-bg: #453a26;
  --header: rgba(16, 23, 34, 0.96);
  --scrim: rgba(3, 8, 17, 0.68);
  --shadow: 0 15px 45px #00000014;
  --font: "Plus Jakarta Sans", "Alexandria", system-ui, sans-serif;
  --sidebar-width: 250px;
  --radius: 16px;
  --radius-sm: 9px;
  --container: 1240px;
  --teal: var(--accent);
  --teal-dark: var(--accent);
  --gold: var(--primary);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6fa;
  --surface: #fff;
  --surface-raised: #fff;
  --surface-soft: #edf0f6;
  --text: #1b2940;
  --muted: #5d6b80;
  --subtle: #66758b;
  --line: #dce2ed;
  --primary: #233d61;
  --on-primary: #fff;
  --accent: #956b2c;
  --accent-soft: #a3783310;
  --success: #226b4f;
  --success-bg: #e4f3eb;
  --danger: #ae3542;
  --danger-bg: #fcecef;
  --info: #275a9d;
  --info-bg: #e8f0fc;
  --warning: #855d1c;
  --warning-bg: #fbf1dc;
  --header: rgba(245, 246, 250, 0.97);
  --scrim: rgba(16, 28, 47, 0.45);
  --shadow: 0 15px 45px #243d6008;
}
:root[lang="ar"] {
  --font: "Alexandria", Tahoma, Arial, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.8 var(--font);
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1;
  min-width: 0;
}
main > * {
  min-width: 0;
}
body[data-page]:not([data-page="home"]) main {
  padding-bottom: 40px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.3;
  margin: 0 0 0.5em;
  font-weight: 650;
  letter-spacing: -0.04em;
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  letter-spacing: 0;
  line-height: 1.5;
}
h1 {
  font-size: clamp(28px, 3.1vw, 40px);
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 18px;
}
p {
  margin: 0 0 1em;
  line-height: 1.85;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
  transition: color 0.18s;
}
a:hover {
  color: var(--text);
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
::selection {
  background: var(--primary);
  color: var(--on-primary);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 40px;
}
.ui-icon {
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.direction-icon {
  display: inline-block;
}
html[dir="rtl"] .direction-icon {
  transform: scaleX(-1);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 12px;
  transform: translateY(-200%);
  z-index: 500;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 20px;
  border-radius: 8px;
}
.skip-link:focus {
  transform: none;
}
/* Shared header and navigation. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header);
  border-bottom: 1px solid var(--line);
}
.site-header > .container {
  display: flex;
  align-items: center;
  gap: 25px;
  min-height: 88px;
  max-width: 1440px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand:hover {
  color: var(--text);
}
html[lang="ar"] .brand {
  letter-spacing: 0;
  font-size: 27px;
}
.brand-ar {
  display: none;
}
.header-context {
  display: none;
}
.main-nav {
  margin-inline-start: auto;
  order: 2;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  margin: 0;
}
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 9px;
}
.nav-links > li > a:hover,
.nav-links > li > a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-soft);
}
.nav-links > li > a[aria-current="page"] {
  font-weight: 650;
}
.nav-links > li > a.nav-cta {
  background: var(--primary);
  color: var(--on-primary);
  padding-inline: 20px;
  margin-inline-start: 8px;
}
.nav-links > li > a.nav-cta:hover {
  filter: brightness(1.07);
}
.nav-item-icon,
.nav-item-arrow,
.nav-toggle,
.drawer-head,
.drawer-intro,
.drawer-label,
.drawer-foot,
.drawer-backdrop,
.mobile-tabs,
.mobile-join {
  display: none;
}
.nav-sep {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin-inline: 8px;
}
.mobile-header-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 11px;
}
.preference-controls {
  display: flex;
  gap: 5px;
  align-items: center;
}
.preference-controls button {
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  transition:
    background 0.2s,
    color 0.2s;
}
.preference-controls button:hover {
  background: var(--surface-raised);
  color: var(--text);
  border-color: var(--line);
}
.preference-controls .ui-icon {
  width: 18px;
  height: 18px;
}
.language-control {
  padding-inline: 10px;
  font-size: 12px;
  white-space: nowrap;
}
.header-inbox {
  color: var(--muted);
  height: 42px;
  width: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
}
.unread-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  inset-block-start: 7px;
  inset-inline-end: 7px;
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  font-size: 10px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 5px;
}
.avatar {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  flex: none;
}
.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 11px;
}
.avatar-lg {
  height: 88px;
  width: 88px;
  border-radius: 24px;
  font-size: 29px;
}
.user-menu {
  position: relative;
}
.user-menu summary {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  cursor: pointer;
}
.user-menu summary::-webkit-details-marker {
  display: none;
}
.user-name {
  font-size: 12px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 12px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 200px;
  padding: 7px;
  list-style: none;
  margin: 0;
  z-index: 70;
}
.menu-list a,
.menu-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px;
  border: 0;
  width: 100%;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  text-align: start;
  border-radius: 8px;
}
.menu-list a:hover,
.menu-list button:hover {
  background: var(--surface-soft);
  color: var(--text);
}
.menu-role {
  font-size: 11px;
  padding: 10px;
  color: var(--subtle);
}
/* Desktop account workspace. */
@media (min-width: 1101px) {
  body[data-signed-in="true"]:not([data-page="home"]) {
    padding-inline-start: var(--sidebar-width);
  }
  body[data-signed-in="true"]:not([data-page="home"])
    .site-header
    > .container {
    max-width: none;
    min-height: 80px;
    padding-inline: 40px;
  }
  body[data-signed-in="true"]:not([data-page="home"])
    .site-header
    > .container
    > .brand {
    display: none;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .header-context {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-inline-end: auto;
    order: 1;
  }
  .header-context > span {
    font-size: 10px;
    color: var(--subtle);
    letter-spacing: 0.08em;
  }
  .header-context > strong {
    font-size: 15px;
    font-weight: 600;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .main-nav {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    padding: 0;
    margin: 0;
    background: var(--surface-soft);
    border-inline-end: 1px solid var(--line);
    overflow: auto;
    overscroll-behavior: contain;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .drawer-head {
    display: flex;
    align-items: center;
    min-height: 81px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--line);
  }
  body[data-signed-in="true"]:not([data-page="home"]) .drawer-close {
    display: none;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .drawer-intro {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 25px 19px 24px;
    padding: 14px 10px;
  }
  .drawer-intro strong {
    font-size: 13px;
    font-weight: 600;
    display: block;
    overflow-wrap: anywhere;
  }
  .drawer-intro > div > span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
  }
  .drawer-intro .avatar {
    height: 39px;
    width: 39px;
    font-size: 12px;
    border-radius: 12px;
    background: var(--surface);
  }
  body[data-signed-in="true"]:not([data-page="home"]) .drawer-label {
    display: block;
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--subtle);
    padding-inline: 28px;
    margin-bottom: 12px;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .nav-links {
    flex-direction: column;
    align-items: stretch;
    padding: 0 15px 18px;
    gap: 5px;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .nav-links > li > a {
    font-size: 13px;
    padding: 12px 14px;
    min-height: 47px;
  }
  body[data-signed-in="true"]:not([data-page="home"])
    .nav-links
    > li
    > a[aria-current="page"] {
    background: var(--accent-soft);
    color: var(--accent);
  }
  body[data-signed-in="true"]:not([data-page="home"]) .nav-item-icon {
    display: block;
    width: 19px;
    height: 19px;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .nav-item-arrow {
    display: none;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .nav-sep {
    width: calc(100% - 24px);
    height: 1px;
    margin: 15px 12px;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .user-menu {
    border-top: 1px solid var(--line);
    padding-top: 12px;
    margin-top: 9px;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .user-menu summary {
    display: none;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .menu-list {
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    min-width: 0;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .menu-role {
    display: none;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .menu-list a,
  body[data-signed-in="true"]:not([data-page="home"]) .menu-list button {
    padding: 12px 14px;
    font-size: 12px;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .drawer-foot {
    display: block;
    margin-top: auto;
    padding: 22px 25px;
    border-top: 1px solid var(--line);
  }
  .drawer-foot .preference-controls {
    display: none;
  }
  .drawer-foot > a {
    font-size: 11px;
    text-decoration: none;
    color: var(--muted);
  }
  body[data-signed-in="true"]:not([data-page="home"])
    .site-footer
    .footer-main {
    display: none;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .site-footer {
    padding-top: 0;
    margin-top: auto;
  }
  body[data-signed-in="true"]:not([data-page="home"])
    .site-footer
    .footer-bottom {
    border: 0;
  }
}
/* Controls and typography. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 47px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.5;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.btn:hover {
  box-shadow: 0 4px 18px #00000010;
}
.btn:active {
  opacity: 0.8;
}
.btn-primary,
.btn-gold {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover,
.btn-gold:hover {
  background: var(--primary);
  color: var(--on-primary);
  filter: brightness(1.06);
}
.btn-outline {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}
.btn-outline:hover {
  border-color: var(--subtle);
  background: var(--surface-raised);
}
.btn-small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
}
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover {
  background: var(--danger-bg);
  color: var(--danger);
}
.btn-danger-solid {
  background: var(--danger);
  color: var(--bg);
}
.btn:disabled {
  opacity: 0.55;
  box-shadow: none;
  filter: none;
  cursor: not-allowed;
}
.text-link {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  color: var(--text);
}
.text-link > span:last-child {
  color: var(--accent);
  font-size: 22px;
}
.link-button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 8px 0;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.link-button:hover {
  color: var(--danger);
}
label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 8px;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  background: var(--surface-soft);
  color: var(--text);
  min-height: 48px;
  line-height: 1.6;
  transition:
    box-shadow 0.18s,
    border-color 0.18s;
}
textarea {
  resize: vertical;
}
select {
  cursor: pointer;
}
input::placeholder,
textarea::placeholder {
  color: var(--subtle);
  opacity: 1;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[type="email"],
input[type="url"],
input[type="password"] {
  direction: ltr;
  text-align: start;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex: none;
}
input[type="file"] {
  font-size: 12px;
  color: var(--muted);
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
input[type="file"]::file-selector-button {
  font: inherit;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
  margin-inline-end: 12px;
  cursor: pointer;
}
.form-group {
  margin-bottom: 21px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.form-actions,
.actions-bar,
.row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.actions-bar {
  margin-top: 16px;
}
.form-error {
  margin-bottom: 20px;
}
.field-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
}
.field-error:empty {
  display: none;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
}
.hint,
.updated {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.hint a {
  color: var(--accent);
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.8;
}
.checkbox input {
  margin-top: 4px;
}
.alert {
  font-size: 13px;
  line-height: 1.8;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 17px;
  margin-bottom: 18px;
}
.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: transparent;
}
.alert-info {
  background: var(--info-bg);
  color: var(--info);
  border-color: transparent;
}
.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: transparent;
}
.role-pick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 24px;
}
.role-pick label {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 53px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  background: var(--surface-soft);
}
.role-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.role-pick label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.role-pick label:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.role-tabs {
  display: flex;
  gap: 6px;
  background: var(--surface-soft);
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.role-tabs button {
  border: 0;
  border-radius: 7px;
  padding: 10px;
  flex: 1;
  background: transparent;
  color: var(--muted);
}
.role-tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
}
/* Landing page. */
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--accent);
  display: block;
  line-height: 1.7;
}
html[lang="ar"] .eyebrow {
  letter-spacing: 0;
  font-size: 12px;
}
.landing-hero {
  position: relative;
  padding: 70px 0 0;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 85% 30%,
    var(--accent-soft),
    transparent 57%
  );
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 75px;
}
.hero-copy > .eyebrow {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 27px;
  font-size: 9px;
  letter-spacing: 0.11em;
}
.live-dot {
  height: 6px;
  width: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}
.eyebrow-rule {
  width: 25px;
  height: 1px;
  background: var(--line);
}
.hero-copy h1 {
  font-size: clamp(44px, 4.7vw, 67px);
  line-height: 1.13;
  font-weight: 600;
  letter-spacing: -0.055em;
  margin-bottom: 27px;
}
.hero-copy h1 > span {
  display: block;
}
.accent-text {
  color: var(--accent);
}
html[lang="ar"] .hero-copy h1 {
  font-size: clamp(43px, 4.8vw, 68px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  margin-bottom: 20px;
}
.hero-description {
  font-size: 15px;
  max-width: 480px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 29px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.hero-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  align-items: center;
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.8;
  margin-top: 28px;
}
.hero-assurance .ui-icon {
  color: var(--accent);
  width: 16px;
  height: 16px;
}
.assurance-divider {
  height: 13px;
  width: 1px;
  background: var(--line);
}
.hero-workspace {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  padding: 17px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.workspace-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 3px 3px 16px;
  color: var(--subtle);
  font-size: 8px;
  letter-spacing: 0.1em;
}
.workspace-heading > span:first-child {
  display: flex;
  gap: 9px;
  align-items: center;
}
.window-dot {
  height: 5px;
  width: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.workspace-index {
  direction: ltr;
}
.hero-project-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.hero-project-media {
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  background: var(--surface-soft);
}
.hero-project-media > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.55);
}
.hero-project-label {
  position: absolute;
  inset-inline-start: 14px;
  inset-block-start: 14px;
  backdrop-filter: blur(8px);
  background: #101722bf;
  color: #f5e1b9;
  padding: 5px 9px;
  border: 1px solid #ffffff22;
  border-radius: 5px;
  font-size: 8px;
  letter-spacing: 0.1em;
}
.hero-project-details {
  padding: 20px 8px 7px;
}
.hero-project-details h2 {
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: -0.025em;
  margin-top: 15px;
  margin-bottom: 10px;
}
.hero-project-details > p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.hero-project-open {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 13px;
  color: var(--accent);
}
.hero-project-open > span:last-child {
  font-size: 20px;
}
.workspace-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  color: var(--subtle);
  padding: 13px 6px 0;
}
.workspace-caption a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
}
.workspace-caption .ui-icon {
  width: 15px;
  height: 15px;
}
.workspace-accent {
  position: absolute;
  inset-inline-end: -12px;
  inset-block-start: 50px;
  width: 3px;
  height: 85px;
  background: var(--accent);
  border-radius: 2px;
}
.project-placeholder {
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  min-height: 370px;
  border-radius: 10px;
  color: var(--muted);
  padding-bottom: 20px;
  font-size: 12px;
}
.project-placeholder svg {
  width: 100%;
  height: 270px;
}
.platform-strip {
  display: grid;
  grid-template-columns: 1fr 2.8fr;
  gap: 30px;
  border-block: 1px solid var(--line);
  padding: 29px 0;
  margin-top: 65px;
  align-items: center;
}
.platform-strip > p {
  font-size: 13px;
  color: var(--muted);
  max-width: 170px;
  margin: 0;
}
.platform-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.platform-stats > div {
  padding-inline-start: 25px;
  border-inline-start: 1px solid var(--line);
}
.platform-stats strong {
  display: block;
  color: var(--text);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.platform-stats span {
  display: block;
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.7;
  margin-top: 6px;
}
.section {
  padding: 80px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 35px;
  margin-bottom: 29px;
}
.section-head .eyebrow {
  margin-bottom: 15px;
}
.section-head h2 {
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 600;
  max-width: 700px;
  margin-bottom: 13px;
}
.section-head p {
  font-size: 14px;
  color: var(--muted);
  max-width: 610px;
  margin: 0;
}
.section-head > .text-link {
  white-space: nowrap;
}
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 27px;
}
.filter-chip {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  min-height: 41px;
  padding: 9px 17px;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.filter-chip:hover {
  border-color: var(--subtle);
  color: var(--text);
}
.filter-chip.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}
.community-section {
  background: var(--surface-soft);
  border-block: 1px solid var(--line);
}
.audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.audience-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.audience-card:hover {
  border-color: var(--subtle);
}
.audience-icon {
  width: 47px;
  height: 47px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 29px;
}
.audience-card .eyebrow {
  font-size: 9px;
  margin-bottom: 15px;
}
.audience-card h3 {
  font-size: 22px;
  margin-bottom: 17px;
  font-weight: 600;
  line-height: 1.5;
}
.audience-card p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 25px;
}
.audience-card .text-link {
  margin-top: auto;
  justify-content: space-between;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
}
.step {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.step-num {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 25px;
  font-variant-numeric: tabular-nums;
}
.step h3 {
  font-size: 21px;
  margin-bottom: 15px;
  font-weight: 600;
}
.step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 315px;
}
.join-section {
  padding-bottom: 80px;
}
.join-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 45px;
}
.join-banner h2 {
  font-size: 32px;
  max-width: 600px;
  margin: 15px 0 13px;
  font-weight: 600;
}
.join-banner p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.join-banner > .btn {
  flex: none;
}
/* Cards and reusable application surfaces. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
  align-items: stretch;
}
.card-grid > * {
  min-width: 0;
}
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.card-link:hover {
  color: inherit;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.card-link:hover .card {
  border-color: var(--subtle);
  box-shadow: var(--shadow);
}
.card-cover {
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
  background: var(--surface-soft);
  filter: saturate(0.65);
}
.card-body {
  padding: 23px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.card-title {
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}
.card-title a {
  text-decoration: none;
  color: var(--text);
}
.card-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  overflow-wrap: anywhere;
}
.card-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  unicode-bidi: plaintext;
}
.card-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.card-badges,
.card-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.card-stats {
  font-size: 11px;
  color: var(--muted);
  gap: 10px;
}
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.7;
}
.tag-category {
  color: var(--accent);
  background: var(--accent-soft);
}
.tag-tech {
  background: var(--surface-soft);
  color: var(--muted);
}
a.tag {
  min-height: 31px;
}
a.tag:hover {
  color: var(--text);
  outline: 1px solid var(--subtle);
}
.badge-validated {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--success);
  background: var(--success-bg);
  padding: 3px 8px;
  border-radius: 5px;
}
.badge-validated svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.open-to-work {
  color: var(--success);
  font-size: 11px;
}
.status,
.match {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
}
.status-approved,
.status-active {
  background: var(--success-bg);
  color: var(--success);
}
.status-pending,
.match {
  background: var(--warning-bg);
  color: var(--warning);
}
.status-removed,
.status-suspended {
  background: var(--danger-bg);
  color: var(--danger);
}
.status-info {
  background: var(--info-bg);
  color: var(--info);
}
.status-muted {
  background: var(--surface-soft);
  color: var(--muted);
}
.student-head {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.student-head > div {
  min-width: 0;
}
.student-card .card-body {
  gap: 17px;
}
.panel,
.form-card,
.filters,
.auth-card,
.profile-header {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 27px;
  box-shadow: none;
  min-width: 0;
}
.panel {
  margin-bottom: 24px;
}
.panel h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 19px;
  letter-spacing: -0.02em;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 19px;
}
.panel-head h2 {
  margin: 0;
}
.page-title {
  padding: 38px 0 24px;
  margin-bottom: 10px;
}
.page-title h1 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-bottom: 13px;
}
.page-title p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 750px;
  margin: 0;
}
.page-title.section-head {
  margin-bottom: 18px;
}
.form-card {
  margin: 20px 0 35px;
  padding: 30px;
}
.form-card h2 {
  font-size: 19px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  margin: 5px 0 23px;
}
.form-card .form-actions {
  margin-top: 27px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 30px;
  align-items: start;
}
.dash-grid > div {
  min-width: 0;
}
.welcome {
  padding: 33px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  border-radius: 16px;
  margin: 30px 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.welcome h1 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 10px;
}
.welcome p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 550px;
}
.welcome .hero-actions {
  margin: 0;
}
.welcome .btn {
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin: 12px 0 27px;
}
.stat {
  padding: 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  position: relative;
  min-width: 0;
}
.stat-value {
  font-size: 31px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.8;
}
.stat.card-link:hover {
  border-color: var(--accent);
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list > li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.list > li:last-child {
  border-bottom: 0;
}
.list-main {
  min-width: 0;
}
.list-title {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.list-title a {
  color: var(--text);
  text-decoration: none;
}
.list-title a:hover {
  color: var(--accent);
}
.list-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.9;
}
.list .unread .list-title::before {
  content: "";
  height: 6px;
  width: 6px;
  display: inline-block;
  background: var(--accent);
  border-radius: 50%;
  margin-inline-end: 8px;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  padding: 8px 0;
  padding-inline-start: 26px;
  position: relative;
  font-size: 12px;
  color: var(--muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 13px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--subtle);
  border-radius: 50%;
}
.checklist li.done {
  color: var(--subtle);
}
.checklist li.done::before {
  background: var(--success);
  border-color: var(--success);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.progress {
  height: 5px;
  border-radius: 5px;
  background: var(--surface-soft);
  overflow: hidden;
  margin: 15px 0;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
}
.profile-header {
  margin-top: 30px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 25px;
  align-items: start;
  padding: 32px;
  border-top: 3px solid var(--accent);
}
.profile-header h1 {
  font-size: 31px;
}
.profile-header .card-meta {
  margin-bottom: 15px;
}
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: 220px;
}
.profile-actions .btn {
  font-size: 12px;
}
.profile-actions .updated {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 25px;
}
.profile-projects .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.plain {
  padding-inline-start: 19px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}
.breadcrumb {
  padding-top: 27px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.breadcrumb a {
  color: var(--muted);
}
.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 27px;
  margin: 20px 0 40px;
  align-items: start;
}
.project-layout h1 {
  font-size: 32px;
  margin: 15px 0 20px;
}
.project-layout > div > .card-meta {
  margin-bottom: 24px;
}
.gallery-main,
.project-hero {
  aspect-ratio: 1.5;
  width: 100%;
  border-radius: 14px;
  background: var(--surface);
  object-fit: cover;
  border: 1px solid var(--line);
}
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 13px 0 25px;
}
.thumbs button {
  width: 80px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: none;
  cursor: pointer;
}
.thumbs button[aria-pressed="true"] {
  border-color: var(--accent);
}
.thumbs img {
  aspect-ratio: 1.5;
  object-fit: cover;
}
.project-facts dl {
  margin: 0;
}
.project-facts dt {
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
  font-weight: 500;
}
.project-facts dt:first-child {
  margin-top: 0;
}
.project-facts dd {
  margin: 6px 0 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.doc-list {
  list-style: none;
  padding: 0;
}
.doc-list li {
  font-size: 13px;
  padding-block: 8px;
}
.review {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.review-head {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}
.review p {
  font-size: 13px;
  margin: 10px 0 0;
  color: var(--muted);
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 14px;
}
.project-gallery img {
  aspect-ratio: 1.5;
  object-fit: cover;
  border-radius: 8px;
}
.file-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 13px;
}
.file-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-soft);
  min-width: 0;
}
.file-item img,
.file-item .doc-icon {
  aspect-ratio: 1.5;
  object-fit: cover;
  width: 100%;
}
.file-item .doc-icon {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--surface-raised);
}
.file-meta {
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
}
.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.is-cover {
  color: var(--success);
}
/* Search, filters and data navigation. */
.search-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
  margin: 16px 0 40px;
}
.filters {
  padding: 23px;
  position: sticky;
  top: 100px;
}
.filters h2 {
  font-size: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.filters label {
  font-size: 12px;
}
.filters .form-group {
  margin-bottom: 18px;
}
.adaptive-filters {
  display: contents;
}
.adaptive-filters > summary {
  display: none;
}
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 23px;
}
.toolbar .form-group {
  margin: 0;
  min-width: 0;
  flex: 1 1 150px;
}
.toolbar label {
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs button,
.tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 12px 17px;
  font: inherit;
  font-size: 13px;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.tabs [aria-selected="true"],
.tabs [aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 12px;
}
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.9;
}
th,
td {
  text-align: start;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  background: var(--surface-soft);
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
td {
  color: var(--text);
}
td a {
  text-decoration: none;
}
td .btn {
  font-size: 10px;
  min-height: 34px;
  white-space: nowrap;
}
td .row-actions {
  gap: 6px;
}
td select {
  font-size: 12px;
  min-width: 130px;
}
.bar {
  display: inline-block;
  height: 5px;
  background: var(--accent);
  border-radius: 5px;
  vertical-align: middle;
  margin-inline-end: 10px;
}
.empty-state {
  grid-column: 1/-1;
  border: 1px dashed var(--line);
  background: var(--surface-soft);
  border-radius: 13px;
  padding: 42px 26px;
  text-align: center;
}
.empty-state h2 {
  font-size: 21px;
  margin-bottom: 14px;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.loading {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px;
  color: var(--muted);
  font-size: 13px;
}
.loading::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: none;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.message-view {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
  font-size: 14px;
  line-height: 2;
}
.message-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 19px;
}
.prose {
  max-width: 820px;
}
.prose h2 {
  font-size: 23px;
  margin-top: 34px;
  margin-bottom: 17px;
}
.prose p {
  font-size: 15px;
  color: var(--muted);
  line-height: 2;
}
.toast-box {
  position: fixed;
  inset-inline-end: 24px;
  inset-block-end: 24px;
  max-width: calc(100vw - 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 300;
}
.toast {
  padding: 15px 20px;
  max-width: 370px;
  font-size: 13px;
  line-height: 1.8;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: var(--shadow);
  border-inline-start: 3px solid var(--success);
  transition: opacity 0.3s;
}
.toast-error {
  border-inline-start-color: var(--danger);
}
.toast-hide {
  opacity: 0;
}
.dialog {
  background: var(--surface);
  color: var(--text);
  width: min(470px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.dialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(5px);
}
.dialog h2 {
  font-size: 23px;
  margin-bottom: 17px;
}
.dialog p {
  font-size: 13px;
  color: var(--muted);
}
.dialog .form-actions {
  margin-top: 25px !important;
}
/* Authentication and footer. */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 85px;
  align-items: start;
  max-width: 1120px;
}
.auth-story {
  margin-top: 70px;
  position: sticky;
  top: 115px;
  padding: 10px 0;
}
.auth-story h2 {
  font-size: 43px;
  line-height: 1.3;
  margin: 25px 0 20px;
  font-weight: 500;
}
.auth-story p {
  font-size: 14px;
  color: var(--muted);
  max-width: 400px;
}
.auth-story-foot {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--subtle);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.auth-story-illustration {
  height: 200px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  margin: 20px 0;
}
.auth-story-illustration > span {
  width: 170px;
  height: 85px;
  border: 1px solid var(--accent);
  opacity: 0.4;
  position: absolute;
  border-radius: 50%;
  transform: rotate(-40deg);
}
.auth-story-illustration > span:nth-child(2) {
  transform: rotate(40deg);
}
.auth-story-illustration > span:nth-child(3) {
  transform: rotate(90deg);
}
.auth-wrap {
  width: 100%;
  max-width: 500px !important;
  margin: 65px auto 35px;
}
.auth-card {
  padding: 33px;
}
.auth-card h1 {
  font-size: 29px !important;
  margin-bottom: 15px;
}
.auth-card > .hint {
  font-size: 13px;
  margin-bottom: 28px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.9;
}
.auth-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 45px;
  background: var(--surface-soft);
  color: var(--muted);
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 70px;
  padding-bottom: 45px;
}
.footer-identity p {
  max-width: 320px;
  font-size: 13px;
  line-height: 1.9;
  margin: 19px 0 0;
}
.footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.footer-group h2 {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  margin: 7px 0 9px;
}
.footer-group a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  min-height: 24px;
}
.footer-group a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}
/* Motion: short, one-time entry; no hidden content or decorative loops. */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes enter {
  from {
    opacity: 0.3;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-workspace {
    animation: enter 0.45s ease both;
  }
  .hero-workspace {
    animation-delay: 0.08s;
  }
  .dialog[open] {
    animation: enter 0.2s ease both;
  }
}
/* Tablet and compact navigation. */
@media (max-width: 1200px) {
  .container {
    padding-inline: 30px;
  }
  .hero-layout {
    gap: 45px;
  }
  .hero-copy h1 {
    font-size: 51px;
  }
  .nav-links > li > a {
    padding-inline: 10px;
    font-size: 12px;
  }
  .site-header > .container {
    gap: 15px;
  }
  .search-layout {
    grid-template-columns: 225px minmax(0, 1fr);
  }
  .search-layout .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-layout {
    gap: 45px;
  }
  .card-body {
    padding: 20px;
  }
  .audience-card {
    padding: 25px;
  }
}
@media (max-width: 1100px) {
  .site-header > .container {
    min-height: 76px;
    gap: 12px;
  }
  .site-header > .container > .brand {
    order: 1;
    margin-inline-end: auto;
  }
  .mobile-header-actions {
    order: 2;
    gap: 6px;
  }
  .nav-toggle {
    order: 3;
    display: grid;
    place-items: center;
    height: 44px;
    width: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0;
    background: var(--surface);
    color: var(--text);
    flex: none;
  }
  .nav-toggle .ui-icon {
    width: 22px;
    height: 22px;
  }
  .mobile-join {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-size: 12px;
    text-decoration: none;
    padding: 9px;
    min-height: 44px;
  }
  .header-inbox {
    border: 0;
    width: 37px;
  }
  .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset-block: 0;
    inset-inline-start: auto;
    inset-inline-end: 0;
    width: min(350px, 88vw);
    height: 100dvh;
    max-height: none;
    background: var(--surface);
    border-inline-start: 1px solid var(--line);
    border-radius: 20px 0 0 20px;
    margin: 0;
    overflow: auto;
    overscroll-behavior: contain;
    z-index: 120;
    visibility: hidden;
    transform: translateX(105%);
    transition:
      transform 0.26s cubic-bezier(0.2, 0.7, 0.2, 1),
      visibility 0.26s;
  }
  .main-nav.is-open {
    visibility: visible;
    transform: translateX(0);
    box-shadow: var(--shadow);
  }
  html[dir="rtl"] .main-nav {
    border-radius: 0 20px 20px 0;
    transform: translateX(-105%);
  }
  html[dir="rtl"] .main-nav.is-open {
    transform: translateX(0);
  }
  .drawer-head {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 24px 22px;
    padding-block-start: max(24px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--line);
  }
  .drawer-head .brand {
    padding: 0;
    font-size: 22px;
  }
  .drawer-close {
    height: 42px;
    width: 42px;
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
  }
  .drawer-intro {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px;
    margin: 20px 18px 25px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .drawer-intro strong {
    display: block;
    font-size: 14px;
    overflow-wrap: anywhere;
  }
  .drawer-intro > div > span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
  }
  .drawer-intro .avatar {
    height: 40px;
    width: 40px;
    font-size: 12px;
  }
  .drawer-intro .eyebrow {
    font-size: 8px;
    margin-bottom: 12px;
  }
  .drawer-intro h2 {
    font-size: 25px;
    line-height: 1.4;
    margin: 0;
  }
  body[data-signed-in="false"] .drawer-intro {
    display: block;
  }
  .drawer-label {
    display: block;
    padding-inline: 27px;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--subtle);
    margin-bottom: 12px;
  }
  .nav-links {
    padding: 0 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  .nav-links > li > a {
    display: flex;
    min-height: 47px;
    gap: 13px;
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 9px;
  }
  .nav-links > li > a[aria-current="page"] {
    color: var(--accent);
    background: var(--accent-soft);
  }
  .nav-item-icon {
    display: block;
    height: 19px;
    width: 19px;
    flex: none;
    color: var(--subtle);
  }
  .nav-item-arrow {
    display: block;
    width: 14px;
    height: 14px;
    margin-inline-start: auto;
    opacity: 0.5;
  }
  html[dir="rtl"] .nav-item-arrow {
    transform: scaleX(-1);
  }
  .nav-links > li > a[aria-current="page"] .nav-item-icon {
    color: var(--accent);
  }
  .nav-sep {
    height: 1px;
    width: calc(100% - 28px);
    margin: 13px 14px;
  }
  .user-menu {
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding-top: 10px;
  }
  .user-menu summary {
    display: none;
  }
  .menu-list {
    position: static;
    border: 0;
    box-shadow: none;
    background: transparent;
    margin: 0;
    padding: 0;
    min-width: 0;
  }
  .menu-role {
    display: none;
  }
  .menu-list a,
  .menu-list button {
    padding: 12px 14px;
    font-size: 13px;
    min-height: 47px;
    gap: 13px;
  }
  .menu-list .logout-btn {
    color: var(--danger);
  }
  .drawer-foot {
    display: block;
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding: 22px 25px max(24px, env(safe-area-inset-bottom));
    background: var(--surface-soft);
  }
  .drawer-foot .preference-controls {
    display: flex;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 20px;
  }
  .drawer-foot > a {
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
  }
  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--scrim);
    backdrop-filter: blur(5px);
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 0.23s,
      visibility 0.23s;
  }
  .drawer-open .drawer-backdrop {
    visibility: visible;
    opacity: 1;
  }
  .drawer-open {
    overscroll-behavior: none;
  }
  .drawer-open .site-header {
    background: transparent;
    border-color: transparent;
  }
  .drawer-open .site-header > .container > .brand,
  .drawer-open .mobile-header-actions,
  .drawer-open .nav-toggle {
    visibility: hidden;
  }
  .count {
    margin-inline-start: auto;
  }
  .count + .nav-item-arrow {
    margin-inline-start: 0;
  }
  .hero-layout {
    gap: 32px;
  }
  .hero-copy h1 {
    font-size: 47px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-actions .btn {
    font-size: 12px;
    padding-inline: 16px;
  }
  .hero-assurance {
    font-size: 9px;
  }
  .workspace-caption {
    font-size: 8px;
  }
  .platform-stats > div {
    padding-inline-start: 17px;
  }
  .platform-strip {
    grid-template-columns: 1fr 3.4fr;
  }
  .profile-header {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .profile-actions {
    grid-column: 1/-1;
    flex-direction: row;
    max-width: none;
    flex-wrap: wrap;
    align-items: center;
  }
  .profile-actions .updated {
    width: 100%;
  }
  .dash-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
  .auth-layout {
    gap: 35px;
  }
  .auth-story h2 {
    font-size: 36px;
  }
}
@media (max-width: 900px) {
  .landing-hero {
    padding-top: 45px;
  }
  .hero-layout {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .hero-copy h1 {
    font-size: 40px;
  }
  html[lang="ar"] .hero-copy h1 {
    font-size: 43px;
  }
  .hero-copy > .eyebrow {
    font-size: 7px;
    gap: 7px;
  }
  .hero-assurance .assurance-divider,
  .hero-assurance > span:last-child {
    display: none;
  }
  .hero-workspace {
    padding: 12px;
  }
  .hero-project-media {
    height: 175px;
  }
  .hero-project-details h2 {
    font-size: 18px;
  }
  .workspace-caption {
    line-height: 1.8;
  }
  .platform-strip {
    grid-template-columns: 1fr;
    margin-top: 40px;
    gap: 20px;
  }
  .platform-strip > p {
    max-width: none;
    font-size: 12px;
  }
  .platform-stats {
    gap: 12px;
  }
  .platform-stats > div:first-child {
    border-inline-start: 0;
    padding-inline-start: 0;
  }
  .section {
    padding-block: 60px;
  }
  .section-head h2 {
    font-size: 31px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .audience {
    gap: 15px;
  }
  .audience-card {
    padding: 23px;
  }
  .audience-card h3 {
    font-size: 20px;
  }
  .audience-card .eyebrow {
    font-size: 8px;
  }
  .audience-card p {
    font-size: 12px;
  }
  .steps {
    gap: 23px;
  }
  .step h3 {
    font-size: 18px;
  }
  .join-banner {
    padding: 33px;
  }
  .join-banner h2 {
    font-size: 28px;
  }
  .search-layout {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
  }
  .dash-grid,
  .profile-grid,
  .project-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .welcome {
    padding: 28px;
  }
  .auth-layout {
    grid-template-columns: 0.8fr 1fr;
    gap: 25px;
  }
  .auth-card {
    padding: 26px;
  }
  .auth-story h2 {
    font-size: 32px;
  }
  .footer-main {
    gap: 35px;
  }
  .form-card {
    padding: 27px;
  }
}
/* Dedicated phone layouts. */
@media (max-width: 767px) {
  :root {
    --gutter: 20px;
  }
  .container {
    padding-inline: var(--gutter);
  }
  html {
    scroll-padding-top: 90px;
  }
  body {
    font-size: 15px;
  }
  body[data-signed-in="true"]:not([data-page="home"]) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .site-header > .container {
    min-height: 70px;
    padding-block-start: env(safe-area-inset-top);
    gap: 8px;
  }
  .brand {
    font-size: 21px;
    gap: 9px;
  }
  .brand img {
    height: 33px;
    width: 33px;
  }
  html[lang="ar"] .brand {
    font-size: 24px;
  }
  .site-header > .container > .brand {
    margin-inline-end: auto;
  }
  .mobile-header-actions {
    gap: 1px;
  }
  .preference-controls {
    gap: 0;
  }
  .preference-controls .language-control {
    padding-inline: 7px;
    font-size: 10px;
    min-width: 0;
  }
  .language-control > .ui-icon {
    display: none;
  }
  .preference-controls button {
    height: 44px;
    min-width: 36px;
  }
  .preference-controls .theme-control {
    width: 36px;
  }
  .preference-controls .theme-control .ui-icon {
    width: 19px;
    height: 19px;
  }
  .header-inbox {
    width: 34px;
    height: 44px;
  }
  .header-inbox .ui-icon {
    width: 20px;
    height: 20px;
  }
  .nav-toggle {
    height: 42px;
    width: 42px;
    min-width: 42px;
    border-radius: 10px;
    margin-inline-start: 3px;
  }
  .mobile-join {
    display: none;
  }
  .drawer-head {
    padding: 22px;
  }
  .drawer-close {
    height: 44px;
    width: 44px;
  }
  .drawer-foot .language-control {
    font-size: 12px;
    padding-inline: 10px;
  }
  .drawer-foot .language-control .ui-icon {
    display: block;
  }
  .drawer-foot .theme-control {
    width: 44px;
  }
  .drawer-intro h2 {
    font-size: 25px;
  }
  .drawer-intro .eyebrow {
    font-size: 10px;
    letter-spacing: 0;
  }
  .drawer-label {
    font-size: 10px;
    letter-spacing: 0;
  }
  .mobile-tabs {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--header);
    border-top: 1px solid var(--line);
    padding: 8px 12px calc(7px + env(safe-area-inset-bottom));
  }
  body[data-page="home"] .mobile-tabs {
    display: none;
  }
  .mobile-tabs > a {
    color: var(--subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    min-height: 49px;
  }
  .tab-icon {
    width: 48px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    position: relative;
  }
  .tab-icon .ui-icon {
    width: 20px;
    height: 20px;
  }
  .tab-icon .unread-dot {
    inset-block-start: 0;
    inset-inline-end: 5px;
    width: 5px;
    height: 5px;
  }
  .mobile-tabs a[aria-current="page"] {
    color: var(--accent);
  }
  .mobile-tabs a[aria-current="page"] .tab-icon {
    background: var(--accent-soft);
  }
  .btn {
    min-height: 48px;
    font-size: 13px;
    padding: 13px 17px;
  }
  .btn-small {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 12px;
  }
  .landing-hero {
    padding-top: 35px;
  }
  .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .hero-copy {
    width: 100%;
  }
  .hero-copy > .eyebrow {
    font-size: 8px;
    gap: 10px;
    margin-bottom: 23px;
  }
  .hero-copy h1 {
    font-size: clamp(40px, 10.2vw, 61px);
    line-height: 1.17;
    margin-bottom: 22px;
    max-width: 530px;
  }
  html[lang="ar"] .hero-copy h1 {
    font-size: clamp(40px, 10.4vw, 62px);
    line-height: 1.5;
    margin-bottom: 19px;
  }
  .hero-description {
    font-size: 14px;
    line-height: 1.95;
    max-width: 490px;
    margin-bottom: 24px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  .hero-actions .btn {
    padding-inline: 10px;
    min-height: 49px;
    font-size: 12px;
    gap: 9px;
  }
  .hero-assurance {
    margin-top: 23px;
    font-size: 11px;
  }
  .hero-workspace {
    width: 100%;
    padding: 15px;
    margin: 0;
    border-radius: 15px;
  }
  .workspace-heading {
    padding-bottom: 13px;
    font-size: 8px;
  }
  .hero-project-link {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 15px;
    align-items: center;
  }
  .hero-project-media {
    height: 155px;
  }
  .hero-project-label {
    font-size: 7px;
    padding: 4px 6px;
    inset-inline-start: 8px;
    inset-block-start: 8px;
    letter-spacing: 0;
  }
  .hero-project-details {
    padding: 0;
    min-width: 0;
  }
  .hero-project-details h2 {
    font-size: 16px;
    line-height: 1.6;
    margin-block: 12px 6px;
  }
  .hero-project-details .badge-validated {
    font-size: 8px;
    padding: 3px 5px;
  }
  .hero-project-details .tag {
    font-size: 9px;
    padding: 3px 5px;
  }
  .hero-project-details > p {
    font-size: 10px;
    margin: 0;
  }
  .hero-project-open {
    font-size: 10px;
    padding-top: 8px;
    margin-top: 11px;
  }
  .workspace-caption {
    font-size: 9px;
    padding-top: 12px;
  }
  .workspace-accent {
    display: none;
  }
  .project-placeholder {
    min-height: 230px;
  }
  .project-placeholder svg {
    height: 180px;
  }
  .platform-strip {
    margin-top: 35px;
    padding: 23px 0;
    gap: 16px;
  }
  .platform-strip > p {
    font-size: 11px;
  }
  .platform-stats {
    gap: 0;
  }
  .platform-stats > div {
    padding-inline: 10px;
  }
  .platform-stats strong {
    font-size: 27px;
    line-height: 1.4;
  }
  .platform-stats span {
    font-size: 10px;
    line-height: 1.8;
    margin-top: 4px;
  }
  .section {
    padding: 45px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
  }
  .section-head .eyebrow {
    font-size: 10px;
    margin-bottom: 13px;
    letter-spacing: 0.1em;
  }
  html[lang="ar"] .section-head .eyebrow {
    letter-spacing: 0;
    font-size: 12px;
  }
  .section-head h2 {
    font-size: 30px;
    line-height: 1.4;
    margin-bottom: 13px;
  }
  .section-head p {
    font-size: 13px;
    line-height: 1.9;
  }
  .section-head > .text-link {
    font-size: 12px;
    min-height: 36px;
    gap: 18px;
  }
  .project-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 7px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 5px;
    margin-bottom: 22px;
    scroll-snap-type: x proximity;
  }
  .filter-chip {
    min-height: 44px;
    font-size: 11px;
    padding: 10px 16px;
    white-space: nowrap;
    flex: none;
    scroll-snap-align: center;
  }
  .card-grid,
  .search-layout .card-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }
  .card {
    border-radius: 14px;
  }
  .card-cover {
    aspect-ratio: 1.95;
  }
  .card-body {
    padding: 22px;
    gap: 12px;
  }
  .card-title {
    font-size: 18px;
    line-height: 1.6;
  }
  .card-meta {
    font-size: 12px;
  }
  .card-text {
    font-size: 13px;
    line-height: 1.9;
  }
  .tag {
    font-size: 11px;
  }
  .badge-validated {
    font-size: 10px;
  }
  .audience {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .audience-card {
    padding: 26px;
    position: relative;
  }
  .audience-icon {
    position: absolute;
    inset-inline-end: 24px;
    inset-block-start: 25px;
    height: 43px;
    width: 43px;
    margin: 0;
  }
  .audience-card .eyebrow {
    padding-inline-end: 52px;
    font-size: 10px;
    margin-bottom: 13px;
  }
  .audience-card h3 {
    font-size: 24px;
    padding-inline-end: 42px;
    margin-bottom: 15px;
  }
  .audience-card p {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .audience-card .text-link {
    font-size: 13px;
    padding-top: 17px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .step {
    position: relative;
    padding: 0;
    padding-inline-start: 50px;
    border: 0;
  }
  .step-num {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0;
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 11px;
  }
  .step h3 {
    font-size: 21px;
    margin-bottom: 12px;
  }
  .step p {
    font-size: 13px;
    line-height: 1.95;
    max-width: none;
    margin: 0;
  }
  .join-section {
    padding-bottom: 40px;
  }
  .join-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 25px;
    gap: 24px;
    border-radius: 14px;
  }
  .join-banner h2 {
    font-size: 28px;
    line-height: 1.5;
  }
  .join-banner p {
    font-size: 13px;
  }
  .join-banner .eyebrow {
    font-size: 11px;
    letter-spacing: 0;
  }
  .join-banner .btn {
    width: 100%;
    justify-content: space-between;
  }
  .page-title {
    padding: 26px 0 18px;
    margin: 0;
  }
  .page-title h1 {
    font-size: 31px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  .page-title p {
    font-size: 13px;
    line-height: 1.95;
  }
  .page-title.section-head {
    align-items: flex-start !important;
    gap: 15px;
    margin-bottom: 12px;
  }
  .page-title #title-actions:empty {
    display: none;
  }
  .panel,
  .form-card,
  .filters {
    padding: 23px 19px;
    border-radius: 14px;
  }
  .panel {
    margin-bottom: 18px;
  }
  .panel h2,
  .panel-head h2 {
    font-size: 19px;
  }
  .panel-head {
    gap: 11px;
    margin-bottom: 18px;
  }
  .panel-head .btn {
    font-size: 11px;
    min-height: 39px;
    padding: 9px 12px;
  }
  .welcome {
    padding: 26px 22px;
    display: block;
    margin: 21px 0 19px;
    border-radius: 15px;
  }
  .welcome h1 {
    font-size: 28px;
    line-height: 1.5;
    margin-bottom: 11px;
  }
  .welcome p {
    font-size: 13px;
    line-height: 1.9;
    max-width: none;
  }
  .welcome .hero-actions {
    margin-top: 23px !important;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 9px;
  }
  .welcome .btn {
    font-size: 11px;
    padding-inline: 8px;
    min-height: 46px;
  }
  .dash-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
  }
  .dash-grid > div,
  .dash-grid > .panel {
    width: 100%;
  }
  .list > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 19px 0;
  }
  .list-title {
    font-size: 14px;
    line-height: 1.8;
  }
  .list-sub {
    font-size: 11px;
    line-height: 1.9;
  }
  .list > li > .card-badges {
    max-width: 105px;
    justify-content: flex-end;
    gap: 7px;
  }
  .list .badge-validated,
  .list .status {
    font-size: 9px;
  }
  .list .btn {
    font-size: 11px;
    min-height: 38px;
    padding: 8px 11px;
  }
  .checklist li {
    font-size: 13px;
    padding-block: 9px;
  }
  .checklist li::before {
    inset-block-start: 15px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin: 12px 0 23px;
  }
  .stat {
    padding: 21px 17px;
    border-radius: 12px;
  }
  .stat-value {
    font-size: 30px;
  }
  .stat-label {
    font-size: 12px;
    line-height: 1.9;
  }
  .profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 29px 22px;
    gap: 19px;
    margin-top: 21px;
  }
  .profile-header > div {
    width: 100%;
    min-width: 0;
  }
  .profile-header h1 {
    font-size: 29px;
  }
  .profile-header .avatar-lg {
    width: 78px;
    height: 78px;
    font-size: 26px;
    border-radius: 23px;
  }
  .profile-header .tags,
  .profile-header .card-badges {
    justify-content: center;
  }
  .profile-header .profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .profile-actions .btn {
    font-size: 12px;
    padding: 12px 8px;
    min-height: 46px;
  }
  .profile-actions .updated,
  .profile-actions .link-button {
    grid-column: 1/-1;
    font-size: 11px;
  }
  .profile-grid {
    margin-top: 19px;
    gap: 0;
  }
  .profile-projects .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .student-head .avatar {
    width: 45px;
    height: 45px;
    border-radius: 13px;
    font-size: 13px;
  }
  .student-head .card-title {
    font-size: 18px;
  }
  .card-stats {
    font-size: 12px;
  }
  .student-card .card-body {
    padding: 23px;
  }
  .search-layout {
    display: block;
    margin-top: 10px;
  }
  .adaptive-filters {
    display: block;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    overflow: hidden;
    margin-bottom: 22px;
  }
  .adaptive-filters > summary {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 53px;
    padding: 14px 17px;
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
  }
  .adaptive-filters > summary::-webkit-details-marker {
    display: none;
  }
  .adaptive-filters > summary > .ui-icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
  }
  .filter-chevron {
    margin-inline-start: auto;
    transform: rotate(90deg);
    transition: transform 0.2s;
  }
  .adaptive-filters[open] .filter-chevron {
    transform: rotate(-90deg);
  }
  .filter-summary-count:not(:empty) {
    padding: 2px 7px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
    border-radius: 5px;
  }
  .adaptive-filters > .filters,
  .adaptive-filters > .toolbar {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 22px 17px;
    position: static;
    margin: 0;
  }
  .adaptive-filters .filters h2 {
    display: none;
  }
  .adaptive-filters .toolbar {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
  }
  .adaptive-filters .toolbar > .form-group {
    flex: 1 1 100%;
  }
  .adaptive-filters .toolbar > .btn {
    width: 100%;
  }
  .results-bar {
    font-size: 13px;
    margin-bottom: 19px;
  }
  .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .form-card {
    padding: 25px 19px;
    margin: 13px 0 25px;
  }
  .form-card h2 {
    font-size: 20px;
    padding-bottom: 17px;
    margin-bottom: 23px;
  }
  .form-card .form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .form-card .form-actions .btn {
    width: 100%;
    font-size: 12px;
    padding-inline: 8px;
  }
  label {
    font-size: 14px;
    margin-bottom: 9px;
  }
  .hint,
  .updated {
    font-size: 12px;
    line-height: 1.95;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  select,
  textarea {
    font-size: 16px;
    min-height: 51px;
    padding: 13px 14px;
    border-radius: 10px;
  }
  .checkbox {
    font-size: 13px;
    line-height: 1.95;
    gap: 11px;
  }
  .checkbox input {
    height: 19px;
    width: 19px;
    margin-top: 6px;
  }
  .auth-layout {
    display: block;
  }
  .auth-story {
    display: none;
  }
  .auth-wrap {
    margin: 35px auto 25px;
    max-width: 520px !important;
  }
  .auth-card {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
  }
  .auth-card::before {
    content: "MAWHIBA";
    display: block;
    font-size: 9px;
    letter-spacing: 0.17em;
    color: var(--accent);
    margin-bottom: 17px;
  }
  html[lang="ar"] .auth-card::before {
    content: "حيث تبدأ رحلتك";
    letter-spacing: 0;
    font-size: 12px;
  }
  .auth-card h1 {
    font-size: 33px !important;
    margin-bottom: 17px;
    line-height: 1.5;
  }
  .auth-card > .hint {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 30px;
  }
  .auth-card button[type="submit"] {
    min-height: 52px;
    font-size: 14px;
  }
  .auth-links {
    font-size: 13px;
    gap: 16px;
    padding-top: 23px;
    margin-top: 27px;
  }
  .auth-links a {
    min-height: 40px;
  }
  .role-pick {
    gap: 8px;
    margin-bottom: 26px;
  }
  .role-pick label {
    min-height: 56px;
    font-size: 12px;
    padding-inline: 4px;
  }
  .breadcrumb {
    font-size: 12px;
    padding-top: 22px;
  }
  .project-layout {
    margin-top: 17px;
    gap: 5px;
  }
  .project-layout h1 {
    font-size: 29px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  .project-facts {
    margin-top: 13px;
  }
  .project-facts dt {
    font-size: 12px;
  }
  .project-facts dd {
    font-size: 14px;
  }
  .thumbs button {
    width: 71px;
  }
  .tabs {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    gap: 4px;
    margin-bottom: 22px;
  }
  .tabs button,
  .tabs a {
    min-height: 49px;
    font-size: 13px;
    padding-inline: 15px;
  }
  .toolbar .form-group {
    flex: 1 1 100%;
  }
  .toolbar > .btn {
    width: 100%;
  }
  .table-wrap {
    border-radius: 10px;
  }
  th,
  td {
    padding: 14px 12px;
    font-size: 12px;
  }
  th {
    font-size: 11px;
  }
  .pagination {
    gap: 9px;
    font-size: 12px;
  }
  .pagination .btn {
    font-size: 11px;
    padding-inline: 13px;
  }
  .empty-state {
    padding: 35px 21px;
  }
  .empty-state h2 {
    font-size: 21px;
  }
  .empty-state p {
    font-size: 13px;
  }
  .toast-box {
    inset-inline: 16px;
    inset-block-end: calc(88px + env(safe-area-inset-bottom));
    max-width: none;
  }
  .toast {
    max-width: none;
    width: 100%;
    font-size: 13px;
  }
  .dialog {
    padding: 27px 22px;
    border-radius: 16px;
  }
  .dialog h2 {
    font-size: 23px;
  }
  .dialog p {
    font-size: 14px;
  }
  .prose h2 {
    font-size: 24px;
    line-height: 1.7;
  }
  .prose p {
    font-size: 15px;
    line-height: 2.1;
  }
  .site-footer {
    padding-top: 35px;
    margin-top: 15px;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
  }
  .footer-identity {
    grid-column: 1/-1;
  }
  .footer-identity p {
    font-size: 13px;
    max-width: 350px;
  }
  .footer-group {
    gap: 4px;
  }
  .footer-group h2 {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .footer-group a {
    font-size: 13px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
  .footer-bottom {
    gap: 15px;
    padding-block: 22px;
    font-size: 11px;
  }
  .footer-bottom > span {
    display: none;
  }
}
@media (min-width: 600px) and (max-width: 767px) {
  .card-grid,
  .search-layout .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-workspace {
    max-width: 500px;
  }
  .hero-copy {
    max-width: 600px;
  }
  .auth-wrap {
    max-width: 510px !important;
  }
  .profile-projects .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 374px) {
  :root {
    --gutter: 16px;
  }
  .brand {
    font-size: 19px;
  }
  .brand img {
    height: 29px;
    width: 29px;
  }
  html[lang="ar"] .brand {
    font-size: 22px;
  }
  .site-header > .container {
    gap: 5px;
  }
  .preference-controls .language-control {
    font-size: 10px;
    padding-inline: 5px;
  }
  .header-inbox {
    display: none;
  }
  .hero-copy h1 {
    font-size: 38px;
  }
  html[lang="ar"] .hero-copy h1 {
    font-size: 38px;
  }
  .hero-copy > .eyebrow {
    font-size: 7px;
    gap: 7px;
  }
  .hero-actions .btn {
    font-size: 11px;
    padding-inline: 8px;
    gap: 7px;
  }
  .hero-project-link {
    gap: 11px;
  }
  .hero-project-media {
    height: 155px;
  }
  .hero-project-details h2 {
    font-size: 14px;
  }
  .hero-project-details .tag {
    font-size: 8px;
  }
  .hero-project-details .badge-validated {
    font-size: 8px;
  }
  .platform-stats > div {
    padding-inline: 6px;
  }
  .platform-stats strong {
    font-size: 25px;
  }
  .platform-stats span {
    font-size: 9px;
  }
  .page-title h1 {
    font-size: 28px;
  }
  .panel {
    padding-inline: 17px;
  }
  .card-body {
    padding: 20px;
  }
  .role-pick label {
    font-size: 11px;
  }
  .mobile-tabs > a {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .site-header,
  .main-nav,
  .mobile-tabs,
  .drawer-backdrop {
    display: none !important;
  }
  body {
    padding: 0 !important;
    background: white;
    color: black;
  }
  .panel,
  .card,
  .form-card {
    break-inside: avoid;
    background: white;
    color: black;
    border-color: #ccc;
  }
  .container {
    max-width: none;
  }
  .site-footer {
    display: none;
  }
}

[data-user-content] {
  unicode-bidi: plaintext;
}
html[dir="rtl"] input[type="password"] {
  text-align: right;
}
body[data-signed-in="true"]:not([data-page="home"]) .footer-main {
  display: none;
}
body[data-signed-in="true"]:not([data-page="home"]) .site-footer {
  padding-top: 0;
}
body[data-signed-in="true"]:not([data-page="home"]) .footer-bottom {
  border: 0;
}

.settings-preferences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 22px;
}
.preference-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.settings-preferences .btn {
  justify-content: flex-start;
  width: 100%;
}
.settings-preferences .ui-icon {
  color: var(--accent);
  width: 18px;
  height: 18px;
}
:root[data-theme="light"] {
  --subtle: #5e6d83;
}

/* Cards respond to their available workspace, including the search sidebar. */
@media (min-width: 768px) {
  .search-layout .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  }
}
@media (max-width: 767px) {
  body {
    font-size: 16px;
  }
  .hero-description {
    font-size: 15px;
  }
  .audience-card p {
    font-size: 15px;
  }
  .card-text {
    font-size: 14px;
  }
  .page-title p {
    font-size: 14px;
  }
  .prose p {
    font-size: 16px;
  }
  .nav-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .preference-controls button {
    min-width: 44px;
  }
  .preference-controls .theme-control {
    width: 44px;
  }
  .header-inbox {
    width: 44px;
  }
  .btn-small,
  .panel-head .btn,
  .list .btn {
    min-height: 44px;
  }
}

/* Editorial refinement — typography, navigation and page endings. */
body {
  font-optical-sizing: auto;
  font-weight: 400;
}
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.035em;
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  line-height: 1.45;
  letter-spacing: -0.025em;
}
html[lang="ar"] .hero-copy h1 {
  font-size: clamp(42px, 4.3vw, 62px);
  line-height: 1.43;
  font-weight: 600;
}
.hero-description,
.page-title p {
  font-size: 15px;
  line-height: 1.95;
}
.card-meta,
.hint,
.updated {
  font-size: 12px;
  line-height: 1.95;
}
.list-sub {
  font-size: 12px;
}
.card-title {
  font-weight: 600;
  line-height: 1.65;
}
.eyebrow {
  font-weight: 500;
}
html[lang="ar"] .eyebrow {
  font-size: 11px;
  letter-spacing: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.brand-wordmark strong {
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
}
.brand-wordmark small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
}
html[lang="ar"] .brand-wordmark strong {
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.055em;
}
html[lang="ar"] .brand-wordmark small {
  font-size: 9px;
  letter-spacing: 0;
}
.brand {
  gap: 12px;
}
.brand img {
  width: 41px;
  height: 41px;
}

.site-header {
  padding-block: 12px;
  background: transparent;
  border: 0;
}
.site-header > .container {
  width: calc(100% - 64px);
  max-width: 1240px;
  min-height: 78px;
  padding-inline: 24px;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--header);
  backdrop-filter: blur(18px);
  box-shadow: 0 9px 32px #0000000a;
}
.main-nav {
  margin-inline: auto;
}
.nav-links {
  gap: 4px;
}
.nav-links > li > a {
  min-height: 44px;
  font-size: 12px;
  font-weight: 500;
  padding-inline: 13px;
  border-radius: 9px;
  position: relative;
}
.nav-links > li > a:hover {
  background: var(--surface-soft);
}
.nav-links > li > a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.nav-links > li > a.nav-cta {
  min-height: 45px;
  gap: 12px;
  padding-inline: 19px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--on-primary);
}
.nav-cta > .nav-item-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  color: inherit;
}
html[dir="rtl"] .nav-cta > .nav-item-icon {
  transform: scaleX(-1);
}
.preference-controls {
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}
.preference-controls button {
  min-height: 42px;
  min-width: 42px;
  border-radius: 8px;
  color: var(--muted);
}
.preference-controls button:hover {
  color: var(--text);
  background: var(--surface);
  border-color: transparent;
}
.preference-controls .language-control {
  padding-inline: 10px;
  font-size: 11px;
  gap: 8px;
}
.preference-controls .theme-control {
  border-inline-start-color: var(--line);
  border-radius: 0 8px 8px 0;
}
html[dir="rtl"] .preference-controls .theme-control {
  border-radius: 8px 0 0 8px;
}
.preference-controls .theme-control:hover {
  border-inline-start-color: var(--line);
}
.header-inbox {
  min-height: 44px;
  width: 44px;
  border-radius: 12px;
  background: var(--surface-soft);
  border-color: var(--line);
}

.site-footer {
  position: relative;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 0;
}
.footer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 44px 34px;
  border-bottom: 1px solid var(--line);
}
.footer-signature {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}
.footer-signature .brand {
  padding-inline-end: 30px;
  border-inline-end: 1px solid var(--line);
}
.footer-signature .brand img {
  width: 45px;
  height: 45px;
}
.footer-signature .brand-wordmark strong {
  font-size: 24px;
}
html[lang="ar"] .footer-signature .brand-wordmark strong {
  font-size: 29px;
}
.footer-statement {
  color: var(--text);
  font-size: 26px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0;
}
html[lang="ar"] .footer-statement {
  font-size: 25px;
  letter-spacing: -0.025em;
}
.footer-cta {
  min-height: 49px;
  font-size: 12px;
  font-weight: 600;
  flex: none;
  padding-inline: 21px;
  gap: 28px;
}
.footer-cta .ui-icon {
  width: 17px;
  height: 17px;
}
.footer-main {
  grid-template-columns: 1.55fr 1fr 1fr 1fr;
  gap: 38px;
  padding-block: 38px 34px;
}
.footer-identity p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
  max-width: 300px;
}
.footer-affiliation {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  margin-top: 25px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.8;
}
.affiliation-line {
  display: inline-block;
  width: 23px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.footer-group {
  gap: 6px;
  align-items: flex-start;
}
.footer-group h2 {
  font-size: 13px;
  line-height: 1.8;
  font-weight: 600;
  margin: 0 0 13px;
  color: var(--text);
  letter-spacing: -0.015em;
}
.footer-group a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.9;
  padding-block: 4px;
}
.footer-group a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  flex-wrap: wrap;
}
.footer-legal p {
  margin: 0;
  line-height: 1.8;
}
.footer-legal > span {
  color: var(--subtle);
  font-size: 10px;
}
.footer-bottom .footer-privacy {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  font-size: 11px;
  text-decoration: none;
}
.back-to-top .ui-icon {
  display: block;
  height: 36px;
  width: 36px;
  padding: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
  border-radius: 50%;
  transition: background 0.2s;
}
.back-to-top:hover .ui-icon {
  background: var(--accent-soft);
}
body[data-auth="guest"] .footer-topbar,
body[data-auth="guest"] .footer-main,
body[data-signed-in="true"]:not([data-page="home"]) .footer-topbar {
  display: none;
}
body[data-auth="guest"] .site-footer {
  margin-top: 24px;
}
body[data-auth="guest"] .footer-bottom {
  border: 0;
}

@media (min-width: 1101px) {
  body[data-signed-in="true"]:not([data-page="home"]) .site-header {
    padding-block: 0;
    background: var(--header);
    border-bottom: 1px solid var(--line);
  }
  body[data-signed-in="true"]:not([data-page="home"])
    .site-header
    > .container {
    width: 100%;
    min-height: 84px;
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    background: transparent;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .drawer-head {
    min-height: 85px;
    padding-inline: 24px;
  }
  body[data-signed-in="true"]:not([data-page="home"]) .drawer-head .brand img {
    width: 39px;
    height: 39px;
  }
  body[data-signed-in="true"]:not([data-page="home"])
    .drawer-head
    .brand-wordmark
    strong {
    font-size: 20px;
  }
  html[lang="ar"]
    body[data-signed-in="true"]:not([data-page="home"])
    .drawer-head
    .brand-wordmark
    strong {
    font-size: 25px;
  }
  body[data-page="home"][data-signed-in="true"]
    .nav-links
    > [data-nav-key="profile"],
  body[data-page="home"][data-signed-in="true"]
    .nav-links
    > [data-nav-key="applications"],
  body[data-page="home"][data-signed-in="true"]
    .nav-links
    > [data-nav-key="messages"],
  body[data-page="home"][data-signed-in="true"]
    .nav-links
    > [data-nav-key="notifications"] {
    display: none;
  }
}
@media (max-width: 1100px) {
  .site-header {
    padding: 0;
    background: var(--header);
    border-bottom: 1px solid var(--line);
  }
  .site-header > .container {
    width: 100%;
    min-height: 80px;
    max-width: 1240px;
    padding-inline: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }
  .main-nav {
    margin: 0;
  }
  .nav-links > li > a {
    font-size: 13px;
  }
  .drawer-head .brand {
    gap: 11px;
  }
  .drawer-head .brand img {
    width: 39px;
    height: 39px;
  }
  .drawer-head .brand-wordmark strong {
    font-size: 21px;
  }
  html[lang="ar"] .drawer-head .brand-wordmark strong {
    font-size: 26px;
  }
  .drawer-foot .preference-controls {
    margin-bottom: 18px;
  }
  .drawer-foot .preference-controls .language-control {
    font-size: 12px;
  }
  .drawer-foot .preference-controls .theme-control {
    border-inline-start-color: var(--line);
    border-radius: 8px;
  }
  .footer-signature {
    gap: 24px;
  }
  .footer-signature .brand {
    padding-inline-end: 23px;
  }
  .footer-statement {
    font-size: 23px;
  }
  .footer-main {
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 24px;
  }
  .footer-identity p {
    font-size: 13px;
  }
  .footer-group h2 {
    font-size: 12px;
  }
  .footer-group a {
    font-size: 11px;
  }
}
@media (max-width: 767px) {
  .site-header > .container {
    min-height: 74px;
    padding-inline: var(--gutter);
    gap: 7px;
  }
  .site-header > .container > .brand {
    gap: 9px;
  }
  .site-header > .container > .brand img {
    width: 34px;
    height: 34px;
  }
  .site-header > .container > .brand .brand-wordmark strong {
    font-size: 19px;
    letter-spacing: -0.06em;
  }
  html[lang="ar"] .site-header > .container > .brand .brand-wordmark strong {
    font-size: 23px;
  }
  .site-header > .container > .brand .brand-wordmark small {
    display: none;
  }
  .mobile-header-actions {
    gap: 5px;
  }
  .preference-controls {
    border-radius: 10px;
    padding: 2px;
    gap: 0;
  }
  .preference-controls button {
    min-height: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 7px;
  }
  .preference-controls .language-control {
    font-size: 10px;
    padding-inline: 7px;
    gap: 0;
  }
  .preference-controls .theme-control {
    width: 40px;
    min-width: 40px;
  }
  .preference-controls .ui-icon {
    width: 17px;
    height: 17px;
  }
  .header-inbox {
    background: transparent;
    border: 0;
    width: 34px;
    min-height: 44px;
  }
  .nav-toggle {
    height: 44px;
    width: 44px;
    min-width: 44px;
    margin-inline-start: 0;
    border-radius: 11px;
    background: var(--surface);
  }
  .drawer-head .brand .brand-wordmark small {
    display: block;
  }
  .drawer-head .brand .brand-wordmark strong {
    font-size: 21px;
  }
  html[lang="ar"] .drawer-head .brand .brand-wordmark strong {
    font-size: 26px;
  }
  .drawer-foot .preference-controls button {
    height: 44px;
    min-height: 44px;
    min-width: 44px;
  }
  .drawer-foot .preference-controls .theme-control {
    width: 44px;
  }
  html[lang="ar"] .hero-copy h1 {
    font-size: clamp(37px, 9.6vw, 56px);
    line-height: 1.5;
  }
  .hero-description,
  .page-title p {
    font-size: 14px;
    line-height: 2;
  }
  .card-meta,
  .list-sub,
  .hint {
    font-size: 12px;
    line-height: 1.95;
  }
  .section-head h2 {
    font-size: 28px;
  }
  .footer-topbar {
    padding-block: 30px 26px;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .footer-signature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }
  .footer-signature .brand {
    padding-inline-end: 18px;
    gap: 10px;
  }
  .footer-signature .brand img {
    width: 39px;
    height: 39px;
  }
  .footer-signature .brand-wordmark strong {
    font-size: 20px;
  }
  html[lang="ar"] .footer-signature .brand-wordmark strong {
    font-size: 26px;
  }
  .footer-signature .brand-wordmark small {
    font-size: 8px;
    letter-spacing: 0.07em;
  }
  html[lang="ar"] .footer-signature .brand-wordmark small {
    letter-spacing: 0;
  }
  .footer-statement,
  html[lang="ar"] .footer-statement {
    max-width: 155px;
    font-size: 20px;
    line-height: 1.7;
    letter-spacing: -0.04em;
  }
  .footer-cta {
    min-height: 49px;
    width: 100%;
    justify-content: space-between;
    font-size: 13px;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 27px 24px;
    padding-block: 28px;
  }
  .footer-identity {
    grid-column: 1 / -1;
  }
  .footer-identity p {
    max-width: 360px;
    font-size: 14px;
    line-height: 2;
  }
  .footer-affiliation {
    margin-top: 18px;
    font-size: 11px;
  }
  .footer-group {
    gap: 5px;
  }
  .footer-group:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  .footer-group:last-child h2 {
    grid-column: 1 / -1;
  }
  .footer-group h2 {
    font-size: 13px;
    margin-bottom: 9px;
  }
  .footer-group a {
    font-size: 12px;
    min-height: 40px;
    line-height: 1.9;
  }
  .footer-bottom {
    position: relative;
    padding-block: 22px;
    gap: 14px;
    align-items: center;
  }
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .footer-legal p {
    font-size: 11px;
  }
  .footer-legal > span {
    font-size: 10px;
  }
  .footer-bottom .footer-privacy {
    order: 3;
    width: 100%;
    min-height: 28px;
    font-size: 11px;
  }
  .back-to-top {
    gap: 8px;
    font-size: 10px;
  }
  .back-to-top .ui-icon {
    height: 38px;
    width: 38px;
    padding: 10px;
  }
}
@media (max-width: 374px) {
  .site-header > .container {
    gap: 5px;
  }
  .site-header > .container > .brand img {
    width: 31px;
    height: 31px;
  }
  .site-header > .container > .brand .brand-wordmark strong {
    font-size: 18px;
  }
  html[lang="ar"] .site-header > .container > .brand .brand-wordmark strong {
    font-size: 22px;
  }
  .preference-controls .language-control {
    font-size: 9px;
    padding-inline: 6px;
  }
  .mobile-header-actions {
    gap: 0;
  }
  .footer-signature {
    gap: 12px;
  }
  .footer-signature .brand {
    padding-inline-end: 13px;
    gap: 8px;
  }
  .footer-statement,
  html[lang="ar"] .footer-statement {
    font-size: 18px;
  }
  .footer-signature .brand img {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 767px) {
  .preference-controls button {
    height: 44px;
    min-height: 44px;
    min-width: 44px;
  }
  .preference-controls .theme-control {
    width: 44px;
    min-width: 44px;
  }
  .header-inbox {
    width: 44px;
  }
  .drawer-foot .preference-controls .language-control {
    gap: 8px;
  }
}

.footer-group a {
  min-height: 44px;
}
.footer-bottom .footer-privacy {
  min-height: 44px;
}
