﻿@font-face {
  font-family: 'Vazir';
  src: url('/font/vazir/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazir';
  src: url('/font/vazir/Vazirmatn-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazir';
  src: url('/font/vazir/Vazirmatn-SemiBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazir';
  src: url('/font/vazir/Vazirmatn-Bold.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #f97316;
  --primary-hover: #ea580c;
  --primary-soft: #ffedd5;

  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-sidebar: #ffffff;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;

  --success: #22c55e;
  --danger: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-main: 'Vazir', sans-serif;
}

[data-theme='dark'] {
  --bg-body: #0f172a;
  --bg-surface: #1e293b;
  --bg-sidebar: #1e293b;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --primary-soft: #3e2618;
}

* {
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
  transition: all 0.25s ease;
  font-feature-settings: 'ss01';
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  font-family: var(--font-main);
  user-select: none;
  white-space: nowrap;
  background: transparent;
  color: var(--text-main);
}
.btn:active {
  transform: translateY(0);
}
.btn-lg {
  padding: 13px 18px;
  font-size: 15px;
  border-radius: 14px;
}
.btn-sm {
  padding: 8px 11px;
  font-size: 12px;
  border-radius: 12px;
}
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 14px;
  font-size: 16px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.22);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(249, 115, 22, 0.2);
}
.btn-secondary:hover {
  background: #fed7aa;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: var(--bg-body);
  color: var(--text-main);
}

.btn-outline {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: rgba(249, 115, 22, 0.35);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.15);
}
.text-danger {
  color: var(--danger);
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 1000;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 14px;
  transition: 0.2s;
}
.form-control:focus {
  border-color: rgba(249, 115, 22, 0.65);
}
.helper {
  margin-top: 7px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 800;
}
.helper.error {
  color: var(--danger);
}
.section-card {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  margin: 14px 0;
}
.section-title {
  font-size: 13px;
  font-weight: 1000;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.booking-invite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.booking-invite-field {
  min-width: 0;
}
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-surface);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 900;
}
.status-pill.connected {
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.1);
}
.status-pill.disconnected {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.1);
}
.email-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  width: 100%;
  padding: 8px 10px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--bg-surface);
}
.email-chips:focus-within {
  border-color: rgba(249, 115, 22, 0.65);
}
.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.email-chip button {
  border: none;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  line-height: 1;
}
.email-input {
  flex: 1;
  min-width: 160px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 13px;
  font-family: var(--font-main);
  padding: 4px;
}
.user-picker {
  position: relative;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 100%;
  max-height: 220px;
  overflow: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
  padding: 8px;
  z-index: 2500;
  display: none;
}
.user-picker.open .user-dropdown {
  display: block;
}
.user-option {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-body);
  padding: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  text-align: right;
  transition: 0.15s;
}
.user-option:hover {
  border-color: rgba(249, 115, 22, 0.35);
  background: var(--primary-soft);
}
.user-option-name {
  font-size: 12px;
  font-weight: 900;
}
.user-option-meta {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  margin-top: 2px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-surface);
  padding: 10px;
}
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: 0.2s;
  cursor: pointer;
}
.switch-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}
.switch input:checked + .switch-slider {
  background: var(--primary);
}
.switch input:checked + .switch-slider::before {
  transform: translateX(-20px);
}
.inline-form-error {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 900;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 8px 10px;
}
.booking-datetime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.booking-datetime-grid > .form-group {
  margin-bottom: 0;
}
.booking-time-col {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.date-picker-wrap {
  position: relative;
  width: 100%;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.date-picker-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--bg-surface);
  font-size: 14px;
  font-weight: 1000;
  color: var(--text-main);
  min-height: 46px;
}
.date-picker-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 84vw);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  padding: 10px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  z-index: 2600;
}
.date-picker-static {
  position: static;
  top: auto;
  right: auto;
  width: 100%;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  box-shadow: none;
  z-index: 1;
}
.date-picker-inline {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.date-picker-wrap.date-picker-inline .date-picker-popover {
  position: static;
  top: auto;
  right: auto;
  width: 100%;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  box-shadow: none;
  z-index: 1;
}
.date-picker-wrap.date-picker-inline.open .date-picker-popover {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.date-picker-wrap.open .date-picker-popover {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.date-picker-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.date-picker-mode {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-body);
  padding: 3px;
  width: max-content;
}
.date-mode-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 900;
  font-family: var(--font-main);
  cursor: pointer;
  transition: 0.16s;
}
.date-mode-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.date-picker-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  background: var(--bg-body);
}
.date-picker-nav .btn {
  width: 30px;
  height: 30px;
  min-height: 30px;
}
.date-picker-title {
  font-size: 12px;
  font-weight: 1000;
  white-space: nowrap;
}
.date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 4px;
}
.date-picker-weekday {
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  color: var(--text-muted);
  padding: 4px 0;
}
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.date-cell {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: 10px;
  min-height: 32px;
  font-size: 11px;
  font-weight: 900;
  font-family: var(--font-main);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.16s;
  padding: 0;
}
.date-cell:hover {
  border-color: rgba(249, 115, 22, 0.35);
  background: var(--primary-soft);
  color: var(--primary);
}
.date-cell.is-outside {
  color: var(--text-muted);
  opacity: 0.55;
  background: var(--bg-body);
}
.date-cell.is-today {
  border-color: rgba(59, 130, 246, 0.44);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.26);
}
.date-cell.is-selected {
  border-color: rgba(249, 115, 22, 0.36);
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.26);
}
.date-cell:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.time-simple-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: grid;
  gap: 8px;
}
.time-spin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.time-spin-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-surface);
  padding: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
}
.time-spin-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-muted);
  text-align: center;
}
.time-spin-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-body);
  padding: 3px;
  min-width: 0;
}
.time-spin-input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 6px 4px;
  font-family: var(--font-main);
  font-weight: 900;
  color: var(--text-main);
  text-align: center;
  direction: ltr;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  outline: none;
}
.time-spin-input:focus {
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.3);
  background: var(--primary-soft);
  border-radius: 8px;
}
.time-spin-buttons {
  display: grid;
  gap: 3px;
}
.time-spin-step {
  width: 20px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: 0.16s;
  font-size: 9px;
}
.time-spin-step:hover {
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--primary);
  background: var(--primary-soft);
}
.time-duration-quick {
  display: grid;
  gap: 8px;
}
.time-duration-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--text-muted);
}
.time-duration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.time-duration-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 900;
  font-family: var(--font-main);
  padding: 8px 8px;
  cursor: pointer;
  transition: 0.16s;
  min-width: 0;
}
.time-duration-btn:hover {
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--primary);
  background: var(--primary-soft);
}
.time-duration-btn.active {
  border-color: rgba(249, 115, 22, 0.42);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}
.date-picker-wrap.date-picker-inline .date-cell {
  min-height: 34px;
}
.time-simple-disabled {
  opacity: 0.62;
  pointer-events: none;
}
.time-spin-input:disabled,
.time-spin-step:disabled,
.time-duration-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.booking-desc-group {
  margin-top: 8px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.booking-desc-input {
  min-height: 138px;
  flex: 1;
  resize: none;
  line-height: 1.6;
}
#bookingModal .modal {
  overflow-x: hidden;
}
/* Layout */
#app-container {
  width: 100%;
  display: flex;
  min-height: 100vh;
}
#app-container.hidden {
  display: none !important;
}
.auth-screen {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #ffd3a5 0%, #ffe3c7 48%, #fff4e8 100%);
}
.auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.auth-orb {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(
    circle at 28% 28%,
    rgba(255, 255, 255, 0.92),
    rgba(251, 146, 60, 0.22) 62%,
    rgba(249, 115, 22, 0.08) 100%
  );
  filter: blur(0.2px);
  opacity: 0.72;
  animation: authFloat 16s ease-in-out infinite;
  will-change: transform, opacity;
}
.auth-orb.orb-1 {
  width: 180px;
  height: 180px;
  top: 12%;
  right: 16%;
  animation-delay: 0s;
}
.auth-orb.orb-2 {
  width: 120px;
  height: 120px;
  top: 24%;
  left: 10%;
  animation-delay: -3.8s;
  animation-duration: 14s;
}
.auth-orb.orb-3 {
  width: 240px;
  height: 240px;
  bottom: 10%;
  right: 6%;
  animation-delay: -7.2s;
  animation-duration: 19s;
  opacity: 0.52;
}
.auth-orb.orb-4 {
  width: 94px;
  height: 94px;
  bottom: 22%;
  left: 22%;
  animation-delay: -2.1s;
  animation-duration: 13s;
}
.auth-orb.orb-5 {
  width: 66px;
  height: 66px;
  top: 56%;
  left: 44%;
  animation-delay: -5.3s;
  animation-duration: 11s;
  opacity: 0.64;
}
@keyframes authFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.68;
  }
  25% {
    transform: translate3d(10px, -14px, 0) scale(1.04);
    opacity: 0.78;
  }
  50% {
    transform: translate3d(-8px, 10px, 0) scale(0.97);
    opacity: 0.58;
  }
  75% {
    transform: translate3d(14px, 4px, 0) scale(1.03);
    opacity: 0.74;
  }
}
.auth-card {
  width: min(100%, 430px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  padding: 20px;
  position: relative;
  z-index: 1;
}
.auth-card .brand {
  padding-top: 4px;
  margin-bottom: 14px;
}
.auth-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 900;
  text-align: center;
  margin: -4px 0 14px;
}
.auth-status {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 900;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
}
.auth-mode.hidden {
  display: none !important;
}
.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.auth-divider {
  position: relative;
  text-align: center;
  margin: 2px 0;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 1px solid var(--border);
  transform: translateY(-50%);
}
.auth-divider span {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  padding: 0 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 900;
}
.auth-fields {
  display: grid;
  gap: 10px;
}
.auth-complete-head {
  font-size: 16px;
  font-weight: 1000;
  text-align: center;
  margin-bottom: 2px;
}
aside {
  width: 290px;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px;
  z-index: 80;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.22s ease,
    padding 0.22s ease;
  gap: 12px;
}
.sidebar-collapse-btn {
  align-self: flex-start;
  width: 36px;
  height: 36px;
  margin-bottom: -4px;
}
#app-container.sidebar-collapsed aside {
  width: 92px;
  padding: 14px 10px;
  gap: 10px;
  overflow: hidden;
}
#app-container.sidebar-collapsed aside .btn {
  justify-content: center;
  padding: 10px;
}
#app-container.sidebar-collapsed aside .btn-label,
#app-container.sidebar-collapsed aside .brand h1,
#app-container.sidebar-collapsed aside .brand-slogan,
#app-container.sidebar-collapsed aside .sidebar-footer {
  display: none;
}
#app-container.sidebar-collapsed .sidebar-primary-actions {
  gap: 10px;
}
#app-container.sidebar-collapsed #btn-sidebar-collapse i {
  transform: rotate(180deg);
}
#app-container.sidebar-collapsed aside .brand {
  padding-top: 0;
  margin-bottom: 0;
}
#app-container.sidebar-collapsed aside .brand-logo {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  margin: 0 auto 2px auto;
}
#app-container.sidebar-collapsed aside .brand-logo img {
  border-radius: 14px;
}
.brand {
  text-align: center;
  padding-top: 6px;
}
.brand-logo {
  width: 118px;
  height: 118px;
  background: transparent;
  border-radius: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0 auto 12px auto;
  box-shadow: none;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}
.brand h1 {
  font-size: 21px;
  font-weight: 1000;
  margin: 0;
  letter-spacing: -0.4px;
}
.brand-slogan {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 1000;
  margin-top: 6px;
  line-height: 1.9;
}

.sidebar-primary-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-minimal {
  justify-content: flex-start;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: none;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 800;
}
.btn-minimal:hover {
  border-color: rgba(249, 115, 22, 0.3);
  background: var(--primary-soft);
  color: var(--primary);
}
.guide-menu-action {
  justify-content: flex-start;
}
.btn-my-sessions.active {
  border-color: rgba(249, 115, 22, 0.35);
  background: var(--primary-soft);
  color: var(--primary);
}
.nav-section-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 900;
}
.my-session-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-body);
  cursor: pointer;
  transition: 0.2s;
}
.my-session-item:hover {
  border-color: rgba(249, 115, 22, 0.35);
  background: var(--primary-soft);
}
.my-session-title {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--text-main);
}
.my-session-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-session-empty {
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.sessions-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--bg-surface);
  overflow: auto;
}
.sessions-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.sessions-page-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 1000;
}
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.members-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--bg-surface);
  overflow: auto;
}
.members-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-body);
  padding: 12px;
}
.members-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.members-title {
  margin: 0;
  font-size: 14px;
  font-weight: 1000;
}
.workspace-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.workspace-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-surface);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  cursor: pointer;
  font-family: var(--font-main);
  color: var(--text-main);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}
.workspace-item:hover {
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.workspace-item.active {
  border-color: rgba(249, 115, 22, 0.32);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.12);
}
.workspace-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.workspace-item-name {
  margin: 0;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1.6;
  color: var(--text-main);
  word-break: break-word;
}
.workspace-item-role {
  width: max-content;
  border: 1px solid rgba(249, 115, 22, 0.24);
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}
.workspace-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
}
.workspace-item-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--bg-body);
}
.workspace-item-hint {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  margin-top: 2px;
}
.members-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.member-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-surface);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.member-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.member-identity {
  min-width: 0;
  flex: 1;
}
.member-name {
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.5;
  margin-bottom: 2px;
}
.member-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}
.member-role {
  width: max-content;
  border: 1px solid rgba(249, 115, 22, 0.24);
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}
.member-status {
  width: max-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid var(--border);
  background: var(--bg-body);
  color: var(--text-muted);
  line-height: 1.2;
  align-self: flex-end;
}
.member-status.active {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}
.member-status.inactive {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}
.member-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
}
.member-role-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.member-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.member-control-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-muted);
}
.member-role-select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 30px 8px 10px;
  font-size: 12px;
  font-weight: 900;
  background:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%)
      calc(100% - 14px) calc(50% + 1px) / 6px 6px no-repeat,
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%)
      calc(100% - 9px) calc(50% + 1px) / 6px 6px no-repeat,
    var(--bg-surface);
  color: var(--text-main);
  appearance: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
  cursor: pointer;
}
.member-role-select:focus {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
  outline: none;
}
.member-role-select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.member-access-btn {
  white-space: nowrap;
  min-width: 0;
  width: 100%;
  justify-content: center;
}
.member-access-btn.danger {
  border-color: rgba(239, 68, 68, 0.28);
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.06);
}
.member-access-btn.danger:hover {
  background: rgba(239, 68, 68, 0.12);
}
.member-permission-note {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 800;
  background: var(--bg-body);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}
.workspace-members-modal {
  max-width: 760px;
}
.workspace-members-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.workspace-members-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.workspace-delete-btn {
  min-width: 132px;
}
.workspace-members-title {
  margin: 0;
  font-size: 17px;
  font-weight: 1000;
  line-height: 1.6;
}
.workspace-members-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 800;
}
.workspace-members-scroll {
  max-height: min(54vh, 460px);
  overflow: auto;
  padding-inline-end: 2px;
}
.member-invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(96px, 122px) minmax(
      88px,
      106px
    );
  gap: 10px;
  align-items: start;
}
.member-invite-email-wrap {
  min-width: 0;
}
.member-invite-email-wrap.email-chips {
  max-height: 132px;
  overflow: auto;
  align-content: flex-start;
}
.member-invite-email-wrap .email-chip {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-invite-email-wrap .email-input {
  flex: 1 1 100%;
  min-width: 0;
}
.member-invite-role {
  min-height: 44px;
  max-width: 122px;
  align-self: start;
}
.member-invite-submit {
  min-width: 88px;
  max-width: 106px;
  min-height: 44px;
  height: 44px;
  padding-inline: 10px;
  align-self: start;
}
.member-invite-links {
  margin-top: 10px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg-surface);
  padding: 10px;
}
.member-invite-links-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.member-invite-links-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--text-main);
}
.member-invite-links-text {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.8;
  direction: ltr;
  text-align: left;
  white-space: pre;
}

.sidebar-footer {
  margin-top: auto;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.8;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

header {
  height: 74px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: visible;
  position: relative;
  z-index: 220;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.header-right {
  flex: 1;
  justify-content: flex-end;
  overflow: visible;
}
.workspace-switch-wrap {
  min-width: 180px;
  max-width: 230px;
  flex: 0 1 220px;
}
.workspace-select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85),
    rgba(248, 250, 252, 0.92)
  );
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 38px 8px 12px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-align: right;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9),
      rgba(248, 250, 252, 0.95)
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position:
    center,
    left 12px center;
  background-size:
    100% 100%,
    14px 14px;
}
.workspace-select:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}
.workspace-select:focus {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.workspace-select:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}
.page-title {
  margin: 0;
  font-size: 17px;
  font-weight: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-select-wrap {
  position: relative;
}
.room-filter-trigger {
  gap: 6px;
}
#active-room-label {
  display: inline-block;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.room-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  max-width: min(85vw, 190px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  padding: 8px;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: 0.18s ease;
  z-index: 2200;
}
.meeting-scope-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-body);
}
.meeting-scope-btn {
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  border-radius: 10px;
  padding: 6px 8px;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.16s ease;
}
.meeting-scope-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}
.meeting-scope-btn.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: rgba(249, 115, 22, 0.24);
}
.meeting-scope-btn:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.42);
  outline-offset: 1px;
}
.room-select-wrap.open .room-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.profile-mini-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 30;
}
.profile-mini-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 3px;
  box-sizing: border-box;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}
.profile-mini-btn.google-connected {
  border: 2px solid rgba(34, 197, 94, 0.65);
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.15),
    0 8px 20px rgba(15, 23, 42, 0.12);
}
.profile-mini-btn.google-disconnected {
  border: 2px solid rgba(239, 68, 68, 0.7);
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.14),
    0 8px 20px rgba(15, 23, 42, 0.12);
}
.profile-mini-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #fff;
  box-sizing: border-box;
  background: #e2e8f0;
  background-size: cover;
  background-position: center;
  display: block;
  flex: 0 0 auto;
}
.profile-mini-pop {
  position: absolute;
  top: 52px;
  left: 0;
  width: 240px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: 0.2s;
}
.profile-mini-wrap:hover .profile-mini-pop,
.profile-mini-wrap.open .profile-mini-pop {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.profile-mini-name {
  font-size: 13px;
  font-weight: 1000;
  margin-bottom: 2px;
}
.profile-mini-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 8px;
}
.profile-mini-actions {
  display: flex;
  gap: 6px;
  flex-direction: column;
  align-items: stretch;
}
.profile-mini-actions .btn {
  width: 100%;
  justify-content: flex-start;
}
.notif-wrap {
  position: relative;
}
.notif-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 1000;
  color: #fff;
  background: var(--danger);
  border: 2px solid var(--bg-surface);
}
.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, 92vw);
  max-height: 420px;
  overflow: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  padding: 8px;
  z-index: 2400;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: 0.18s;
  font-family: var(--font-main);
}
.notif-wrap.open .notif-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px;
  margin-bottom: 4px;
}
.notif-head-title {
  font-size: 13px;
  font-weight: 1000;
}
.notif-item {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-body);
  padding: 9px;
  margin-bottom: 6px;
  text-align: right;
  cursor: pointer;
  transition: 0.15s;
}
.notif-item:hover {
  border-color: rgba(249, 115, 22, 0.35);
  background: var(--primary-soft);
}
.notif-item.unread {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.08);
}
.notif-title {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 2px;
}
.notif-kind {
  font-size: 10px;
  font-weight: 1000;
  color: var(--primary);
  margin-bottom: 2px;
}
.notif-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}
.notif-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.notif-mark-read {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  border-radius: 9px;
  padding: 3px 7px;
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.16s ease;
}
.notif-mark-read:hover {
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--primary);
}
.notif-mark-read:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.42);
  outline-offset: 1px;
}
.profile-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 16px;
}
.profile-info-item {
  border: 1px solid var(--border);
  background: var(--bg-body);
  border-radius: 12px;
  padding: 10px;
}
.profile-info-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 900;
  margin-bottom: 4px;
}
.profile-info-value {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.8;
  word-break: break-word;
}
/* Top tools */
.calbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  max-width: none;
  overflow: visible;
  flex: 0 1 auto;
}
.toolbox {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.tool-nav .btn-sm {
  min-width: 64px;
}
.titlechip {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-weight: 1000;
  font-size: 13px;
  white-space: nowrap;
  text-align: center;
  width: 188px;
  flex: 0 0 188px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-view .btn-icon {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.chipbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-body);
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  max-width: 44vw;
  flex: 0 1 auto;
}
.chip {
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 1000;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.chip.active {
  border-color: rgba(249, 115, 22, 0.3);
  background: var(--primary-soft);
  color: var(--primary);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

/* Views */
.view-section {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 16px;
  animation: fadeIn 0.22s;
}
.view-section.active {
  display: flex;
  flex-direction: column;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Calendar wrapper */
.calendar-wrapper {
  height: 100%;
  flex: 1;
  min-height: 0;
  background: var(--bg-surface);
}
.fc {
  font-family: var(--font-main) !important;
}
.fc .fc-toolbar {
  display: none !important;
} /* we use our own calbar */
.fc-col-header-cell {
  padding: 10px 0;
  background: var(--bg-body);
  border: none !important;
  color: var(--text-muted);
}
.fc-timegrid-slot-label {
  color: var(--text-muted);
  font-weight: 900;
}
.fc .fc-timegrid-slot {
  border-top-color: rgba(100, 116, 139, 0.26) !important;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease;
}
.fc .fc-timegrid-slot-minor {
  border-top-color: rgba(100, 116, 139, 0.18) !important;
}
.fc .fc-timegrid-slot-lane {
  transition:
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}
.fc .fc-timegrid-slot-lane:hover {
  background: rgba(249, 115, 22, 0.06) !important;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.2);
}
.fc .fc-timegrid-now-indicator-line {
  border-color: rgba(249, 115, 22, 0.72) !important;
  border-top-width: 1px !important;
}
.fc .fc-timegrid-now-indicator-line::before {
  content: '';
  position: absolute;
  right: -3px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--bg-surface);
}
.jagir-slot-selected {
  background: rgba(249, 115, 22, 0.1) !important;
  box-shadow: inset 0 0 0 2px rgba(249, 115, 22, 0.36) !important;
}
.slot-preview-tooltip {
  position: fixed;
  z-index: 2405;
  min-width: 138px;
  max-width: 220px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: 12px;
  padding: 7px 9px;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.7;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}
.slot-preview-tooltip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.slot-preview-tooltip .busy {
  color: var(--danger);
  font-weight: 1000;
}
.fc .fc-event {
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}
.fc .fc-event:hover {
  transform: translateY(-1px);
  filter: saturate(1.03);
}
.fc-event.jagir-event-mine {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 4px 0 0 rgba(255, 255, 255, 0.92);
}
.fc-event.jagir-event-mine::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.95;
}

/* Responsive */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1150;
  display: none;
  backdrop-filter: blur(2px);
}
.mobile-hide {
  display: flex;
}
.mobile-fabbar {
  display: none;
}
#auth-screen:not(.hidden) ~ #mobile-fabbar {
  display: none !important;
}
#app-container.hidden ~ #mobile-fabbar {
  display: none !important;
}

@media (max-width: 920px) {
  .chipbar {
    max-width: 36vw;
  }
  .calbar {
    max-width: 52vw;
  }
}

@media (max-width: 768px) {
  .auth-card {
    padding: 16px;
  }
  .auth-card .brand {
    margin-bottom: 8px;
  }
  .auth-card .brand h1,
  .auth-subtitle {
    display: none !important;
  }
  .auth-actions {
    margin-top: 0;
    gap: 8px;
  }
  #app-container.sidebar-collapsed aside {
    width: 78vw;
    max-width: 78vw;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  }
  aside {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    transform: translateX(100%);
    width: 78vw;
    max-width: 78vw;
    height: 100dvh;
    border-left: none;
    border-radius: 0;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    z-index: 1200;
  }
  aside.open {
    transform: translateX(0);
  }
  .mobile-overlay.visible {
    display: block;
  }
  header {
    position: relative;
    padding: 10px 12px 10px;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .header-left {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    position: relative;
    padding: 0 54px;
  }
  #mobile-menu-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .header-right {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(104px, 1fr) minmax(116px, 1.25fr) minmax(
        70px,
        0.85fr
      );
    grid-template-areas:
      'room date caltype'
      'views nav bell';
    align-items: stretch;
    gap: 8px 8px;
    overflow: visible;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-body);
    padding: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
  }
  .workspace-switch-wrap {
    display: none;
  }
  .profile-mini-wrap {
    position: absolute;
    top: 8px;
    left: 10px;
    z-index: 260;
  }
  .profile-mini-pop {
    left: 0;
    right: auto;
    width: min(242px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }
  .member-invite-row {
    grid-template-columns: 1fr;
  }
  .member-invite-submit {
    width: 100%;
  }
  #btn-theme {
    display: none !important;
  }
  .page-title {
    font-size: 18px;
    max-width: 70%;
    text-align: center;
  }
  .calbar {
    width: auto;
    display: contents;
  }
  .toolbox {
    width: auto;
    justify-content: center;
    min-height: 42px;
    border-radius: 12px;
    padding: 4px 6px;
  }
  #btn-open-room-filter {
    grid-area: room;
  }
  .room-filter-trigger {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    padding: 8px 10px;
  }
  .titlechip {
    grid-area: date;
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 0 0 auto;
    font-size: 12px;
    padding: 9px 8px;
  }
  #btn-cal-type {
    grid-area: caltype;
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 8px 6px;
    min-height: 42px;
  }
  .tool-view {
    grid-area: views;
    width: 100%;
    margin: 0;
    gap: 4px;
    justify-content: space-evenly;
  }
  .tool-nav {
    grid-area: nav;
    width: 100%;
    margin: 0;
    justify-content: center;
  }
  .tool-view .btn-icon {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .tool-nav .btn-icon {
    width: 36px;
    height: 36px;
  }
  .tool-nav .btn-sm {
    min-width: 56px;
    padding: 7px 10px;
  }
  .titlechip {
    margin: 0;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .notif-wrap {
    grid-area: bell;
    width: 100%;
  }
  #btn-notifications {
    width: 100%;
    height: 100%;
    min-height: 42px;
    border-radius: 12px;
  }
  #view-calendar {
    padding: 0 !important;
  }
  .calendar-wrapper {
    height: 100%;
  }
  .mobile-hide {
    display: flex !important;
  }
  .sidebar-primary-actions {
    display: none;
  }
  #btn-sidebar-collapse {
    display: none !important;
  }
  #btn-open-my-sessions {
    display: inline-flex !important;
  }
  .mobile-fabbar {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  }
  .fab-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-body);
    color: var(--text-main);
    display: grid;
    place-items: center;
    font-size: 18px;
  }
  .fab-btn.primary {
    background: var(--primary);
    border-color: transparent;
    color: #fff;
  }
  body.sidebar-mobile-open .mobile-fabbar {
    opacity: 0;
    pointer-events: none;
  }
  .btn-icon {
    width: 42px;
    height: 42px;
  }
  .guide-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .guide-actions .flex {
    width: 100%;
  }
  .guide-actions .btn {
    width: 100%;
  }
  .sessions-grid {
    grid-template-columns: 1fr;
  }
  .members-list {
    grid-template-columns: 1fr;
  }
  .workspace-cards {
    grid-template-columns: 1fr;
  }
  .member-controls {
    grid-template-columns: 1fr;
  }
  .member-actions-row {
    grid-template-columns: 1fr;
  }
  .member-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .member-badges {
    flex-direction: row;
    align-items: center;
  }
  .member-access-btn {
    width: 100%;
    justify-content: center;
  }
  .workspace-members-modal {
    max-width: 100%;
  }
  .workspace-members-modal-head {
    margin-bottom: 10px;
  }
  .workspace-members-modal-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .workspace-delete-btn {
    min-width: 0;
  }
  .workspace-members-scroll {
    max-height: min(60vh, 520px);
  }
  .room-dropdown {
    width: 170px;
    max-width: 82vw;
  }
  .notif-panel {
    left: auto;
    right: 0;
    width: min(320px, 88vw);
  }
  .booking-datetime-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }
  .booking-invite-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .date-picker-popover {
    width: min(340px, 90vw);
  }
  .time-spin-grid {
    grid-template-columns: 1fr;
  }
  .time-spin-input {
    font-size: 14px;
  }
  .booking-desc-input {
    min-height: 122px;
  }
}

@media (max-width: 430px) {
  .booking-datetime-grid {
    gap: 8px;
  }
  .header-right {
    grid-template-columns: minmax(98px, 1fr) minmax(110px, 1.2fr) minmax(
        66px,
        0.7fr
      );
  }
  .page-title {
    font-size: 16px;
  }
  #active-room-label {
    max-width: 72px;
  }
  .titlechip {
    font-size: 11px;
    padding: 8px 6px;
  }
  #btn-cal-type {
    padding: 7px 5px;
    font-size: 11px;
  }
  .time-duration-grid {
    grid-template-columns: 1fr;
  }
  .time-duration-btn {
    padding: 7px 8px;
    font-size: 11px;
  }
  .date-picker-wrap.date-picker-inline {
    padding: 6px;
  }
  .date-picker-wrap.date-picker-inline .date-cell {
    min-height: 30px;
    font-size: 10px;
  }
  .time-spin-item {
    padding: 6px;
  }
  .time-spin-control {
    gap: 4px;
    padding: 3px;
  }
  .time-spin-input {
    font-size: 13px;
    min-height: 34px;
  }
  .booking-desc-input {
    min-height: 106px;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
  place-items: center;
  backdrop-filter: blur(4px);
  padding: 14px;
}
#guideModal {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: none;
}
.modal-overlay.open {
  display: grid;
}
.modal {
  background: var(--bg-surface);
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.22);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--border);
}
.guide-modal {
  max-width: 520px;
}
.guide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.guide-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-body);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.guide-title {
  font-size: 18px;
  font-weight: 1000;
  margin: 0 0 8px;
  line-height: 1.6;
}
.guide-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.9;
  min-height: 66px;
}
.guide-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.guide-highlight {
  position: relative;
  z-index: 1205 !important;
  outline: 3px solid rgba(249, 115, 22, 0.42);
  outline-offset: 4px;
  border-radius: 14px;
  filter: none !important;
  opacity: 1 !important;
  transition: outline-color 0.2s ease;
}
.room-filter-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 220px;
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  max-width: none;
}
.room-filter-grid .chip {
  width: 100%;
  max-width: 100%;
  justify-content: space-between;
  white-space: nowrap;
  text-align: right;
  direction: rtl;
}
.room-filter-grid .chip span:last-child {
  max-width: 122px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Legacy segmented (kept for compatibility) */
.seg {
  display: flex;
  border: 1px solid var(--border);
  background: var(--bg-body);
  border-radius: 16px;
  padding: 4px;
  gap: 4px;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  transition: 0.25s;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 5000;
  opacity: 0;
  max-width: min(92vw, 560px);
  font-weight: 900;
}

/* Utils */
.hidden {
  display: none !important;
}
.flex {
  display: flex;
}
.gap-2 {
  gap: 8px;
}
.w-full {
  width: 100%;
}
.muted {
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .auth-orb {
    animation: none !important;
  }
}
