@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..700&family=Inter:wght@400..700&display=swap');

:root {
  --bg-1: #0f0f0f;
  --bg-2: #141414;
  --bg-3: #1a1a1a;
  --bg-4: rgba(255, 255, 255, 0.03);
  --bg-5: rgba(255, 255, 255, 0.1);

  --brand-primary: #5663DC;
  --brand-primary-hover: #4A56CE;
  --brand-primary-pale: #7e8af1;

  --border-2: rgba(255, 255, 255, 0.1);
  --border-3: rgba(255, 255, 255, 0.2);
  --border-4: rgba(255, 255, 255, 0.3);

  --transition-1: 0.3s ease;

  --success: #4ade80;
  --error: #f87171;
  --info: #60a5fa;
  --danger: #DC2626;
  --danger-hover: #B91C1C;

  --feedback-blue: #3b82f6;
  --feedback-amber: #fbbf24;

  /* Text Colors */
  --text-1: #ffffff;
  --text-2: #d3d3d3;
  --text-3: #aaaaaa;
  --text-placeholder: #555555;

  /* Font Size */
  --font-xs: 0.8rem;
  --font-sm: 0.875rem;
  --font-md: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 2.25rem;
  --font-4xl: 3rem;
  --font-5xl: 4rem;

  /* Font Weight */

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Radius */
  --radius-none: 0;
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 32px;
  --radius-2xl: 40px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.35);
  --shadow-inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-inset-highlight-soft: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  /* Layout */
  --width-sm: 480px;
  --width-md: 620px;
  --width-lg: 900px;
  --width-xl: 1160px;

  /* Results Page */
  --results-surface: rgba(255, 255, 255, 0.04);
  --results-surface-soft: rgba(255, 255, 255, 0.02);
  --results-surface-strong: rgba(255, 255, 255, 0.06);
  --results-tip-bg: #1a1814;
  --results-tip-bg-strong: #252118;
  --results-tip-border: var(--border-2);
  --results-tip-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --results-blue: #7b9ad4;
  --results-blue-soft: #a3bce8;
  --results-amber: var(--brand-primary);
  --results-amber-soft: #c4a882;
  --results-line: #555555;
}

/* Global */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

textarea {
  line-height: 1.6;
}

html {
  background: var(--bg-1);
  scrollbar-color: #666666 #323232;
  scrollbar-width: auto;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: var(--font-md);
  background: var(--bg-1);
  color: var(--text-1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 22px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #323232;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #666666;
  border: 4px solid #323232;
  border-radius: var(--radius-full);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active {
  background: #7a7a7a;
}

h1 {
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  font-weight: var(--font-weight-bold);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover,
a:active {
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

:where(a, button, input, textarea, select, .dropdown-item) {
  transition:
    color var(--transition-1),
    background-color var(--transition-1),
    border-color var(--transition-1),
    box-shadow var(--transition-1),
    opacity var(--transition-1),
    transform var(--transition-1),
    text-decoration-color var(--transition-1);
}

/* Controllers */

.button-X {
  width: 2.375rem;
  height: 2.375rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-1);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background-color var(--transition-1),
    border-color var(--transition-1),
    color var(--transition-1),
    box-shadow var(--transition-1);
}

.button-X svg {
  display: block;
  flex-shrink: 0;
}

.button-X:hover,
.button-X:active,
.button-X:focus-visible {
  background: var(--brand-primary);
  border-color: var(--border-3);
  color: var(--text-1);
}

.button-trashbin {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-1);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background-color var(--transition-1),
    color var(--transition-1),
    box-shadow var(--transition-1);
}

.button-trashbin:hover,
.button-trashbin:active,
.button-trashbin:focus-visible {
  background: var(--danger);
}

.button-trashbin svg {
  display: block;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  justify-content: center;
  margin-top: 2rem;
}

.button-form {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
  transition:
    background-color var(--transition-1),
    border-color var(--transition-1),
    color var(--transition-1),
    box-shadow var(--transition-1),
    opacity var(--transition-1);
}

.button-form:disabled,
.button-form[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.button-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--text-1);
}

.button-primary:hover:not(:disabled):not([aria-disabled='true']) {
  background: var(--brand-primary-hover);
}

.button-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--text-1);
}

.button-danger:hover:not(:disabled):not([aria-disabled='true']) {
  background: var(--danger-hover);
  border-color: var(--danger-hover);
}

.button-cancel {
  background: var(--bg-4);
  border-color: var(--border-2);
  color: var(--text-1);
}

.button-cancel:hover:not(:disabled):not([aria-disabled='true']) {
  background: var(--bg-5);
  border-color: var(--border-4);
}

.button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  min-height: 1.9rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  background: var(--bg-4);
  color: var(--text-1);
  cursor: pointer;
  font-size: var(--font-xs);
  font-weight: var(--font-weight-regular);
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background-color var(--transition-1),
    border-color var(--transition-1),
    color var(--transition-1),
    box-shadow var(--transition-1),
    opacity var(--transition-1),
    transform var(--transition-1);
}

.button-small:hover:not(:disabled):not([aria-disabled='true']) {
  background: var(--brand-primary);
  color: var(--text-1);
  border-color: var(--brand-primary);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.button-small:active:not(:disabled):not([aria-disabled='true']) {
  background: var(--brand-primary);
  color: var(--text-1);
  border-color: var(--brand-primary);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.button-auto {
  width: auto;
  min-width: 150px;
}

.button-full {
  width: 100%;
}

.button-half {
  flex: 0 1 calc(50% - 0.375rem);
  width: calc(50% - 0.375rem);
  min-width: 0;
}

divider {
  display: block;
  height: 1px;
  background: var(--border-2);
  margin: 2rem 0;
  border: none;
}

/* Drop-down Menu */

.dropdown-menu {
  position: absolute;
  padding: 0.5rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  background: var(--bg-3);
  box-shadow: var(--shadow-md);
  z-index: 20;
  transform-origin: top right;
  transition:
    transform var(--transition-1),
    box-shadow var(--transition-1),
    border-color var(--transition-1),
    background-color var(--transition-1);
}

.header-dropdown-menu {
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 240px;
  max-width: 360px;
  visibility: hidden;
  transform: translateY(-0.35rem);
  pointer-events: none;
}

.header-dropdown-menu.open {
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.home-dropdown-menu {
  bottom: calc(100% + 0.5rem);
  right: 0;
  width: 11rem;
  min-width: 11rem;
  overflow: hidden;
  transform: translateY(0);
}

.home-dropdown-menu[hidden] {
  display: block !important;
  visibility: hidden;
  transform: translateY(0.35rem);
  pointer-events: none;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.5rem 1rem;
  min-height: 2.25rem;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: inherit;
  font-size: var(--font-md);
  line-height: 1.2;
  color: var(--text-1);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition:
    background-color var(--transition-1),
    color var(--transition-1),
    box-shadow var(--transition-1),
    opacity var(--transition-1),
    transform var(--transition-1);
}

.dropdown-item:hover,
.dropdown-item:active,
.dropdown-item:focus-visible {
  background-color: var(--brand-primary-hover);
  color: var(--text-1);
}

.dropdown-item svg,
.home-btn-menu svg,
.home-pres-menu-icon svg {
  display: block;
  flex-shrink: 0;
}

.dropdown-item svg {
  width: 1em;
  height: 1em;
}

.dropdown-divider {
  height: 1px;
  margin: 0.4rem;
  background: var(--border-2);
}

.dropdown-header {
  padding: 0.8rem 0.9rem 0.8rem;
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 0.3rem;
}

.dropdown-header-name {
  font-size: var(--font-lg);
  font-weight: var(--font-weight-semibold);
}

.dropdown-header-subtext {
  margin-top: 0.15rem;
  font-size: var(--font-sm);
  color: var(--text-3);
  word-break: break-word;
}

.home-pres-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Header and Footer */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.75rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.header a {
  text-decoration: none;
}

.header-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.header-logo img {
  height: 28px;
  width: auto;
  cursor: pointer;
}

.header-menu-toggle {
  display: none;
  margin-left: auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  background: var(--bg-4);
  color: var(--text-1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-menu-toggle:hover,
.header-menu-toggle:active {
  background: var(--brand-primary);
  border-color: var(--border-3);
}

.header-menu-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 0.28rem;
}

.header-menu-toggle-bar {
  width: 1.1rem;
  height: 2px;
  border-radius: var(--radius-full);
  background: currentColor;
  transition:
    transform var(--transition-1),
    opacity var(--transition-1);
}

.header.header-menu-open .header-menu-toggle-bar:nth-child(1) {
  transform: translateY(0.4rem) rotate(45deg);
}

.header.header-menu-open .header-menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.header.header-menu-open .header-menu-toggle-bar:nth-child(3) {
  transform: translateY(-0.4rem) rotate(-45deg);
}

.header-nav-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  flex: 1 1 720px;
}

.header-nav {
  display: flex;
  font-size: var(--font-md);
  align-items: center;
  flex-wrap: wrap;
}

.header-primary-nav {
  flex: 1 1 auto;
  gap: 0.15rem;
}

.header-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.header-nav a,
.header-nav-summary {
  color: var(--text-1);
  text-decoration: none;
  padding: 0.62rem 0.85rem;
  border-radius: var(--radius-full);
  transition:
    color var(--transition-1),
    text-decoration-color var(--transition-1);
}

.header-nav a:hover,
.header-nav a:active,
.header-nav-summary:hover,
.header-nav-summary:active,
.header-nav-item-has-submenu[open] > .header-nav-summary,
.header-nav-item-has-submenu:hover > .header-nav-summary {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-nav-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header-nav-summary::-webkit-details-marker {
  display: none;
}

.header-nav-summary::after {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-0.08rem);
  transition: transform var(--transition-1);
}

.header-nav-item-has-submenu[open] > .header-nav-summary::after,
.header-nav-item-has-submenu:hover > .header-nav-summary::after {
  transform: rotate(225deg) translateY(0.02rem);
}

.header-nav-summary:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.header-submenu {
  top: 100%;
  left: 0;
  width: 12.5rem;
  min-width: 12.5rem;
  max-width: 12.5rem;
  overflow: visible;
  z-index: 20;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.35rem);
  pointer-events: none;
}

.header-submenu .header-submenu-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-md);
  line-height: 1.4;
  text-decoration: none;
}

.header-submenu .header-submenu-link:hover,
.header-submenu .header-submenu-link:active,
.header-submenu .header-submenu-link:focus-visible {
  background-color: var(--brand-primary-hover);
  color: var(--text-1);
  text-decoration: none;
}

.header-nav-item-has-submenu:hover > .header-submenu,
.header-nav-item-has-submenu[open] > .header-submenu,
.header-nav-item-has-submenu:focus-within > .header-submenu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-nav-btn {
  padding: 0.6rem 1rem !important;
  background: var(--brand-primary) !important;
  color: var(--bg-1) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition:
    background var(--transition-1),
    box-shadow var(--transition-1),
    transform var(--transition-1);
}

.header-actions {
  justify-content: flex-end;
  flex-shrink: 0;
}

.header-actions[hidden] {
  display: none !important;
}

.header-user {
  position: relative;
}

.header-user[hidden] {
  display: none !important;
}

.header-avatar-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-3);
  border-radius: var(--radius-full);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.header-avatar-media {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}

.header-user-copy,
.header-avatar-caret {
  display: none;
}

.header-avatar-btn:active {
  transform: none;
}

.header-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
}

.header-avatar-btn img.header-avatar-loaded {
  opacity: 1;
}

.header-nav-btn:hover {
  background: var(--brand-primary-hover) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  opacity: 1 !important;
}

.footer {
  margin-top: auto;
  padding: 4.25rem 2rem 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border-2);
}

.footer-shell {
  max-width: var(--width-xl);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 1.8rem;
}

.footer-brand {
  max-width: 34rem;
}

.footer-overline {
  margin: 0 0 0.9rem;
  color: var(--text-3);
  font-size: var(--font-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.footer-tagline {
  margin: 0;
  color: var(--text-1);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.08;
  max-width: 11ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 2.25rem;
  width: 100%;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-column h3 {
  font-size: var(--font-xs);
  color: var(--text-1);
  opacity: 0.7;
  margin-bottom: 0.5rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--font-md);
  line-height: 1.5;
}

.footer-column a:hover {
  text-decoration: underline;
  color: var(--text-1);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: var(--font-sm);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.9rem 1rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--text-3);
  text-decoration: none;
}

.footer-bottom-links a:hover,
.footer-bottom-links a:active {
  color: var(--text-2);
  text-decoration: underline;
}

/* Modal System */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-wrapper {
  width: 100%;
  max-width: var(--modal-content-max-width, 500px);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-4);
  background: var(--bg-3);
  display: flex;
  flex-direction: column;
}

.modal-width-sm {
  --modal-content-max-width: var(--width-sm);
}

.modal-width-md {
  --modal-content-max-width: var(--width-md);
}

.modal-width-lg {
  --modal-content-max-width: var(--width-lg);
}

.modal-overlay.is-visible {
  display: flex;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 0;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: var(--font-2xl);
  font-weight: var(--font-weight-medium);
  margin-bottom: 0;
}

.modal-content {
  width: 100%;
  display: flex;
  gap: 1rem;
  text-align: left;
}

.modal-text {
  margin: 0;
}

.modal-content form {
  width: 100%;
}

/* tabel in modal */
.modal-session-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 20, 20, 0.18) var(--bg-4);
}

.modal-session-table-wrap::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}

.modal-session-table-wrap::-webkit-scrollbar-track {
  background: var(--bg-4);
  border-radius: var(--radius-full);
}

.modal-session-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(20, 20, 20, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-full);
}

.modal-session-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.modal-session-col-date {
  width: 30%;
}

.modal-session-col-time {
  width: 30%;
}

.modal-session-col-duration {
  width: 30%;
}

.modal-session-col-delete {
  width: 10%;
}

.modal-session-table th,
.modal-session-table td {
  text-align: left;
  padding: 0.75rem 1rem;
}

.modal-session-table tr {
  border-bottom: 1px solid var(--border-2);
  transition: background-color var(--transition-1);
}

.modal-session-table tbody tr:hover,
.modal-session-table tbody tr:active {
  background-color: var(--bg-4);
  cursor: pointer;
}

.modal-session-table tbody tr.is-active {
  background-color: var(--results-surface-strong);
}

.modal-session-table th {
  color: var(--text-3);
}

.modal-session-table th,
.modal-session-table td,
.modal-session-table strong,
.modal-session-table button {
  font-weight: var(--font-weight-regular);
}

/* Tooltip */

.tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.7rem);
  transform: translateX(-50%) translateY(0.25rem);
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--text-2);
  border-radius: var(--radius-sm);
  background: #000000;
  box-shadow: var(--shadow-md);
  color: var(--text-1);
  font-size: var(--font-md);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 30;
  transition:
    opacity var(--transition-1),
    transform var(--transition-1),
    visibility var(--transition-1);
}

.tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--text-2);
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  margin-top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #000000;
}

/* Responsive Design */

@media (max-width: 767px) {
  .header {
    padding: 0.95rem 1.1rem;
    gap: 0.75rem;
  }

  .header-menu-toggle {
    display: inline-flex;
  }

  .header-nav-group {
    display: none;
    order: 3;
    width: 100%;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.95rem;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    background: var(--bg-3);
    box-shadow: var(--shadow-md);
  }

  .header.header-menu-open .header-nav-group {
    display: flex;
  }

  .header-primary-nav,
  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .header-primary-nav {
    width: 100%;
    gap: 0.35rem;
  }

  .header-user {
    width: 100%;
    align-self: stretch;
    order: 3;
  }

  .header-nav-item {
    width: 100%;
  }

  .header-nav-item-has-submenu {
    display: block;
  }

  .header-nav a,
  .header-nav-summary {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 0.95rem;
    border-radius: var(--radius-md);
  }

  .header-nav a:hover,
  .header-nav a:active,
  .header-nav-summary:hover,
  .header-nav-summary:active,
  .header-nav-item-has-submenu[open] > .header-nav-summary,
  .header-nav-item-has-submenu:hover > .header-nav-summary {
    background: var(--brand-primary);
    text-decoration: none;
  }

  .header-submenu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 0.45rem;
    padding: 0.35rem;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    background: var(--bg-2);
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .header-nav-item-has-submenu[open] > .header-submenu {
    display: block;
  }

  .header-nav-item-has-submenu:not([open]) > .header-submenu {
    display: none;
  }

  .header-submenu .header-submenu-link {
    padding: 0.8rem 0.95rem;
    border-radius: var(--radius-md);
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-actions .header-nav-btn,
  .header-actions a {
    justify-content: center;
  }

  .header-user .header-avatar-btn {
    width: 100%;
    height: auto;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    background: var(--bg-4);
    box-shadow: none;
    justify-content: flex-start;
    gap: 0.8rem;
    overflow: visible;
  }

  .header-user .header-avatar-media {
    width: 2.5rem;
    height: 2.5rem;
  }

  .header-user-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }

  .header-user-name {
    font-size: var(--font-md);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
  }

  .header-user-email {
    max-width: 100%;
    font-size: var(--font-sm);
    color: var(--text-2);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-avatar-caret {
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--transition-1);
    flex-shrink: 0;
  }

  .header-avatar-btn[aria-expanded='true'] .header-avatar-caret {
    transform: rotate(225deg);
  }

  .header-user .header-dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 0.45rem;
    padding: 0.35rem;
    border-radius: var(--radius-md);
    background: var(--bg-2);
    box-shadow: none;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .header-user .header-dropdown-menu.open {
    display: block;
  }

  .header-user .dropdown-header {
    display: none;
  }

  .header-user .dropdown-item {
    padding: 0.8rem 0.95rem;
    border-radius: var(--radius-md);
  }

  .header-user .dropdown-divider {
    margin: 0.35rem;
  }

  .footer {
    padding: 3rem 1rem 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-tagline {
    max-width: none;
    font-size: clamp(1.35rem, 8vw, 2rem);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .header {
    padding: 0.95rem 1.5rem;
  }

  .header-primary-nav {
    justify-content: flex-start;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
  }
}
