:root {
  --bg: #1A1A1D;
  --panel: rgb(26 26 29 / 0.62);
  --panel-strong: rgb(78 78 80 / 0.22);
  --glass: rgb(78 78 80 / 0.18);
  --glass-hover: rgb(78 78 80 / 0.28);
  --line: rgb(195 7 63 / 0.20);
  --line-strong: rgb(195 7 63 / 0.36);
  --gold: #C3073F;
  --gold-soft: #ff6d93;
  --gold-glass: rgb(195 7 63 / 0.14);
  --gold-glass-strong: rgb(195 7 63 / 0.24);
  --gold-line: rgb(195 7 63 / 0.36);
  --ink: oklch(0.97 0.003 90);
  --muted: oklch(0.74 0.012 90);
  --dim: oklch(0.56 0.012 90);
  --danger: oklch(0.64 0.18 25);
  --ok: oklch(0.68 0.12 145);
  --info: oklch(0.72 0.09 230);
  --shadow: oklch(0 0 0 / 0.42);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgb(195 7 63 / 0.46) rgb(26 26 29 / 0.55);
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: rgb(26 26 29 / 0.55);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid rgb(26 26 29 / 0.55);
  border-radius: 999px;
  background: rgb(195 7 63 / 0.46);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgb(195 7 63 / 0.68);
}

html,
body,
#app {
  min-height: 100%;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgb(195 7 63 / 0.12), transparent 34%),
    radial-gradient(circle at 88% 82%, rgb(111 34 50 / 0.16), transparent 38%),
    linear-gradient(145deg, #121215, #241018 58%, #0a090a);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -24%;
  z-index: 0;
  pointer-events: none;
  filter: blur(14px);
  transform: translate3d(0, 0, 0);
  will-change: opacity, transform;
}

body::before {
  background:
    radial-gradient(circle at 18% 20%, rgb(195 7 63 / 0.22), transparent 30%),
    radial-gradient(circle at 74% 78%, rgb(149 7 64 / 0.18), transparent 36%),
    linear-gradient(135deg, rgb(255 255 255 / 0.035), transparent 44%, rgb(0 0 0 / 0.18));
  animation: hubGlowBreath 18s ease-in-out infinite;
}

body::after {
  background:
    radial-gradient(circle at 68% 16%, rgb(195 7 63 / 0.15), transparent 28%),
    radial-gradient(circle at 30% 82%, rgb(78 78 80 / 0.18), transparent 34%),
    linear-gradient(120deg, transparent 20%, rgb(195 7 63 / 0.055), transparent 66%);
  animation: hubGlowDrift 26s ease-in-out infinite;
}

#app {
  position: relative;
  z-index: 1;
}

@keyframes hubGlowBreath {
  0%,
  100% {
    opacity: .46;
    transform: scale(1) translate3d(0, 0, 0);
  }

  42% {
    opacity: .78;
    transform: scale(1.08) translate3d(1.4%, -1.1%, 0);
  }

  72% {
    opacity: .56;
    transform: scale(1.03) translate3d(-1.1%, 1.2%, 0);
  }
}

@keyframes hubGlowDrift {
  0%,
  100% {
    opacity: .24;
    transform: translate3d(-2%, 1%, 0) scale(1);
  }

  50% {
    opacity: .54;
    transform: translate3d(3%, -2%, 0) scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

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

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
}

.glass {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px) saturate(1.12);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.08), 0 24px 70px var(--shadow);
}

.auth {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  gap: 34px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 13px;
  background:
    linear-gradient(145deg, oklch(1 0 0 / 0.09), transparent 44%),
    var(--gold-glass-strong);
  color: var(--gold-soft);
  font-size: 27px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 5px 8px rgb(0 0 0 / 0.16);
}

.brand-title {
  display: grid;
  gap: 2px;
}

.brand-title strong {
  font-size: 20px;
  line-height: 1;
}

.brand-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-copy {
  min-height: 454px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 28px 0;
}

.auth-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.auth-copy p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 650;
}

.auth-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--gold-soft);
  background: oklch(1 0 0 / 0.045);
  font-size: 13px;
  font-weight: 850;
}

.auth-card {
  position: relative;
  overflow: hidden;
  min-height: 454px;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 18px;
  padding: 28px;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: radial-gradient(circle at 26% 0%, rgb(195 7 63 / 0.16), transparent 42%);
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--glass);
  outline: none;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.06);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.input,
.select {
  height: 48px;
  padding: 0 13px;
}

.textarea {
  min-height: 92px;
  resize: vertical;
  padding: 12px 13px;
}

.input::placeholder,
.textarea::placeholder {
  color: oklch(0.64 0.012 90);
  opacity: 1;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--gold);
  background: var(--glass-hover);
}

.custom-control {
  position: relative;
  min-width: 0;
}

.custom-control-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-color: rgb(149 7 64 / 0.38);
  color: var(--ink);
  font-weight: 950;
  text-align: left;
  cursor: pointer;
}

.custom-control-button:hover,
.custom-control.is-open .custom-control-button {
  border-color: rgb(195 7 63 / 0.72);
  background: rgb(195 7 63 / 0.09);
}

.control-icon {
  flex: 0 0 auto;
  color: var(--gold-soft);
  font-size: 14px;
  line-height: 1;
  transition: transform .18s ease;
}

.custom-control.is-open .control-icon {
  transform: rotate(180deg);
}

.custom-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 14;
  width: max-content;
  min-width: 100%;
  max-width: min(320px, calc(100vw - 42px));
  border: 1px solid rgb(149 7 64 / 0.42);
  border-radius: 14px;
  padding: 10px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgb(195 7 63 / 0.12), transparent 42%),
    oklch(0.18 0.018 355 / 0.98);
  box-shadow: 0 18px 34px rgb(0 0 0 / 0.36);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
}

.custom-control.is-open .custom-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-menu button {
  color: inherit;
  font: inherit;
}

.custom-menu-head {
  display: grid;
  grid-template-columns: 34px minmax(138px, 1fr) 34px;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}

.custom-menu-head strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-align: center;
}

.custom-menu-head button {
  min-height: 30px;
  border: 1px solid rgb(195 7 63 / 0.28);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.035);
  cursor: pointer;
}

.custom-menu-head button:hover {
  border-color: rgb(195 7 63 / 0.58);
  background: rgb(195 7 63 / 0.12);
}

.date-weekdays,
.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 30px);
  gap: 4px;
}

.date-weekdays {
  margin-bottom: 5px;
}

.date-weekdays span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
}

.date-option,
.time-option {
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.date-option {
  min-width: 30px;
  height: 30px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.date-option.is-muted {
  color: rgb(224 213 218 / 0.44);
}

.date-option:hover,
.date-option.is-selected,
.time-option:hover,
.time-option.is-selected {
  color: var(--gold-soft);
  background: rgb(195 7 63 / 0.28);
}

.date-option.is-selected,
.time-option.is-selected {
  box-shadow: inset 0 0 0 1px rgb(255 95 139 / 0.36);
}

.time-menu {
  right: 0;
  left: auto;
  width: 100%;
  min-width: 100%;
  max-height: 222px;
  display: grid;
  gap: 3px;
  overflow: auto;
}

.time-option {
  min-height: 32px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-align: left;
}

.primary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background:
    linear-gradient(145deg, oklch(1 0 0 / 0.08), transparent 48%),
    var(--gold-glass-strong);
  color: var(--gold-soft);
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 5px 8px rgb(0 0 0 / 0.16);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.primary:hover {
  transform: translateY(-1px);
  border-color: rgb(255 109 147 / 0.48);
  background:
    linear-gradient(145deg, oklch(1 0 0 / 0.11), transparent 48%),
    rgb(195 7 63 / 0.30);
}

.secondary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--glass);
  font-weight: 850;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.secondary:hover {
  border-color: var(--line-strong);
  background: var(--glass-hover);
  transform: translateY(-1px);
}

.error {
  border: 1px solid oklch(0.70 0.16 25 / 0.4);
  border-radius: 12px;
  padding: 11px 12px;
  color: oklch(0.86 0.06 25);
  background: oklch(0.42 0.12 25 / 0.18);
  font-size: 13px;
  font-weight: 800;
}

.hint {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 750;
}

.shell {
  width: min(1420px, calc(100% - 44px));
  margin: 0 auto;
  padding: 26px 0 42px;
}

.topbar {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-radius: 16px;
  padding: 15px 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.logout-button {
  min-width: 112px;
}

.notification-wrap {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.notification-button {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 42px;
  color: var(--muted);
}

.notification-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-button.has-unread {
  border-color: var(--gold-line);
  color: var(--gold-soft);
  background: var(--gold-glass);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 109 147 / 0.52);
  border-radius: 999px;
  color: var(--ink);
  background: #C3073F;
  font-size: 10px;
  font-weight: 950;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: min(380px, calc(100vw - 34px));
  display: grid;
  gap: 12px;
  border-radius: 16px;
  padding: 14px;
}

.notification-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.notification-head strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.1;
}

.notification-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.notification-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 8px;
  background: oklch(1 0 0 / 0.03);
}

.notification-item.is-unread {
  border-color: var(--gold-line);
  background: rgb(195 7 63 / 0.10);
}

.notification-main {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.notification-main span {
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 950;
}

.notification-main strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-main small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.notification-read {
  white-space: nowrap;
}

.notification-empty {
  border: 1px dashed var(--line);
  border-radius: 13px;
  padding: 18px 12px;
  color: var(--muted);
  background: oklch(1 0 0 / 0.025);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.user-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px 0 6px;
  color: var(--muted);
  background: var(--glass);
  font-size: 13px;
  font-weight: 850;
}

.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-glass-strong);
  color: var(--gold-soft);
  font-weight: 950;
}

.view {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.page-title h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.06;
  letter-spacing: 0;
}

.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  border-radius: 18px;
  padding: 20px;
  text-align: left;
  color: var(--ink);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: var(--glass-hover);
}

.module-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.module-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--gold-soft);
  background: oklch(1 0 0 / 0.045);
  font-size: 17px;
  font-weight: 950;
}

.status {
  height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--gold-soft);
  background: oklch(1 0 0 / 0.035);
  font-size: 12px;
  font-weight: 850;
}

.module-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.module-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.module-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 850;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
  gap: 18px;
}

.widget-stack {
  display: grid;
  gap: 14px;
}

.widget {
  border-radius: 18px;
  padding: 18px;
}

.widget h3 {
  margin: 0 0 13px;
  font-size: 17px;
}

.list {
  display: grid;
  gap: 8px;
}

.list-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 12px;
  color: var(--muted);
  background: oklch(1 0 0 / 0.035);
  font-size: 13px;
  font-weight: 800;
}

.list-item b {
  color: var(--ink);
}

.dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: radial-gradient(circle, var(--gold-soft), rgb(195 7 63 / 0.32));
  box-shadow: 0 0 12px rgb(195 7 63 / 0.2);
}

.quick-grid {
  display: grid;
  gap: 8px;
}

.quick-button {
  min-height: 42px;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.workspace {
  min-height: 620px;
  border-radius: 18px;
  padding: 20px;
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.workspace-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.back-button {
  flex: 0 0 auto;
}

.workspace-head h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
}

.workspace-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.calendar-workspace .workspace-head {
  gap: 12px;
  min-width: 0;
  padding-bottom: 13px;
}

.calendar-workspace .workspace-title-row {
  gap: 10px;
  min-width: 0;
}

.calendar-workspace .workspace-head h1 {
  font-size: 30px;
  line-height: 1;
}

.calendar-workspace .workspace-head p {
  max-width: 720px;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.32;
}

.calendar-workspace .back-button,
.calendar-workspace .topbar-actions > .secondary {
  min-height: 36px;
}

.calendar-nav {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 4px;
  background: oklch(1 0 0 / 0.035);
}

.calendar-nav span {
  min-width: 150px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.calendar-workspace .calendar-nav {
  min-height: 36px;
  padding: 3px;
}

.calendar-workspace .calendar-nav span {
  min-width: 136px;
  font-size: 12px;
}

.calendar-workspace .icon-button {
  min-width: 30px;
  min-height: 30px;
}

.icon-button {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.calendar-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, clamp(360px, 34vw, 440px));
  gap: 24px;
  align-items: start;
  padding-top: 18px;
}

.calendar-workspace .calendar-shell {
  padding-top: 14px;
}

.calendar-shell.is-calendar-only {
  grid-template-columns: minmax(0, 1fr);
}

.month {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-self: start;
  align-content: start;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.weekdays span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.day {
  position: relative;
  min-height: 78px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 9px 28px;
  color: var(--muted);
  background: oklch(1 0 0 / 0.032);
  font-weight: 850;
  text-align: initial;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.day:hover {
  border-color: var(--line-strong);
  background: var(--glass-hover);
  transform: translateY(-1px);
}

.day.has-event {
  border-color: rgb(195 7 63 / 0.38);
  background: rgb(195 7 63 / 0.08);
}

.day.is-selected {
  border-color: var(--gold-line);
  background: var(--gold-glass-strong);
  outline: 1px solid rgb(195 7 63 / 0.32);
  outline-offset: -3px;
}

.day.is-muted {
  opacity: .48;
}

.day-number {
  width: 100%;
  display: block;
  align-self: start;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  text-align: center;
}

.day.is-today .day-number {
  color: var(--gold-soft);
}

.day-events {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: start;
}

.day-events small {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-soft);
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.day-events small span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.day-events small b {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
}

.day em {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgb(0 0 0 / 0.16);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.meeting-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 12px;
  align-self: start;
}

.panel-title-row,
.form-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-title-row h3,
.form-title-row h3 {
  margin: 0;
}

.meeting-list,
.meeting-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.meeting-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px;
  background: oklch(1 0 0 / 0.035);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.meeting-item:hover,
.meeting-item:focus-visible,
.meeting-item.is-viewing {
  border-color: rgb(195 7 63 / 0.46);
  background: rgb(195 7 63 / 0.075);
}

.meeting-item:hover,
.meeting-item:focus-visible {
  transform: translateY(-1px);
}

.meeting-item:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 3px;
}

.meeting-item.is-editing {
  border-color: var(--gold-line);
  background: var(--gold-glass);
}

.meeting-time {
  min-width: 54px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 11px;
  color: var(--gold-soft);
  background: rgb(195 7 63 / 0.1);
  font-size: 12px;
  font-weight: 950;
}

.meeting-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.meeting-item b,
.meeting-item strong {
  color: var(--ink);
  line-height: 1.2;
}

.meeting-item span,
.meeting-item small {
  color: var(--muted);
  line-height: 1.35;
  font-weight: 750;
}

.meeting-item small {
  font-size: 11px;
}

.meeting-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meeting-detail-card {
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.detail-head div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.detail-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px;
  background: linear-gradient(145deg, rgb(195 7 63 / 0.12), oklch(1 0 0 / 0.025) 62%);
}

.detail-time {
  min-width: 78px;
  min-height: 62px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--gold-line);
  border-radius: 13px;
  color: var(--gold-soft);
  background: rgb(195 7 63 / 0.12);
}

.detail-time b {
  font-size: 18px;
  font-weight: 950;
}

.detail-time small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.detail-hero h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
  text-wrap: balance;
}

.detail-hero p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

.detail-grid div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
  background: oklch(1 0 0 / 0.028);
}

.detail-grid dt {
  color: var(--dim);
  font-size: 11px;
  font-weight: 900;
}

.detail-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.detail-note {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: oklch(1 0 0 / 0.025);
}

.detail-note span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 900;
}

.detail-note p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.detail-section {
  display: grid;
  gap: 8px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-title-row strong {
  color: var(--ink);
  font-size: 13px;
}

.section-title-row span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-soft);
  background: oklch(1 0 0 / 0.035);
  font-size: 11px;
  font-weight: 950;
}

.participant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.participant-chips span,
.participant-chips em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--ink);
  background: oklch(1 0 0 / 0.032);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.1;
}

.participant-chips small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compact-textarea {
  min-height: 74px;
}

.check-list {
  max-height: 170px;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.participant-search-field {
  margin-top: 8px;
}

.reminders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 10px;
  color: var(--muted);
  background: oklch(1 0 0 / 0.035);
  font-size: 12px;
  font-weight: 800;
}

.check span {
  margin-left: auto;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
}

.person-check {
  min-height: 48px;
  align-items: flex-start;
  padding: 8px 10px;
}

.person-text {
  min-width: 0;
  display: grid;
  gap: 3px;
  margin-left: 0 !important;
  color: var(--ink) !important;
  font-size: 12px !important;
}

.person-text b {
  min-width: 0;
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
}

.person-text small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.check input {
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--gold);
}

.conflict-panel {
  display: grid;
  gap: 6px;
  border: 1px solid rgb(195 7 63 / 0.42);
  border-radius: 12px;
  padding: 10px 11px;
  color: var(--gold-soft);
  background: rgb(195 7 63 / 0.1);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.conflict-panel strong {
  color: var(--ink);
  font-size: 13px;
}

.conflict-panel span {
  color: var(--muted);
}

.chat-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  padding-top: 18px;
}

.channels {
  display: grid;
  gap: 8px;
  align-content: start;
}

.channel {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--muted);
  background: oklch(1 0 0 / 0.035);
  font-weight: 850;
}

.channel.is-active {
  color: var(--gold-soft);
  background: var(--gold-glass-strong);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}

.messages {
  display: grid;
  gap: 10px;
}

.message {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: oklch(1 0 0 / 0.035);
}

.message b {
  display: block;
  margin-bottom: 5px;
}

.message p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 700;
}

.empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
  line-height: 1.5;
}

.empty.compact {
  min-height: 86px;
  padding: 14px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: 360px;
  border-radius: 14px;
  padding: 13px 15px;
  color: var(--ink);
  font-weight: 850;
}

.hidden {
  display: none !important;
}

@media (max-width: 1320px) {
  .calendar-shell.has-panel {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .calendar-shell.has-panel .meeting-panel {
    width: min(100%, 780px);
    justify-self: center;
  }
}

@media (max-width: 1120px) {
  .auth,
  .content-grid,
  .calendar-shell,
  .chat-shell {
    grid-template-columns: 1fr;
  }

  .auth-copy h1 {
    font-size: 44px;
  }
}

@media (max-width: 860px) {
  .auth {
    width: min(100% - 28px, 1180px);
    padding: 20px 0;
  }

  .shell {
    width: min(100% - 24px, 1420px);
    padding-top: 12px;
  }

  .topbar,
  .hero-row,
  .workspace-head {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .workspace-title-row {
    flex-direction: column;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .topbar-actions > *,
  .calendar-nav {
    width: 100%;
  }

  .notification-wrap {
    width: 100%;
  }

  .notification-button {
    width: 100%;
  }

  .notification-panel {
    right: 0;
    width: 100%;
  }

  .logout-button {
    width: 100%;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .weekdays,
  .days {
    gap: 5px;
  }

  .day {
    min-height: 54px;
    padding: 7px;
  }

  .form-row,
  .meeting-item {
    grid-template-columns: 1fr;
  }

  .meeting-actions {
    grid-column: 1;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .auth-copy h1,
  .page-title h1,
  .workspace-head h1 {
    font-size: 31px;
  }

  .auth-card,
  .workspace,
  .widget,
  .module-card {
    border-radius: 14px;
  }

  .reminders {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
