/* Светлая тема */

:root {
  font-family: Geist, Arial, sans-serif;
  font-synthesis: none;

  color-scheme: light;

  --blue: #0088ff;

  --text: #182332;
  --muted: #84909f;
  --text-secondary: #637080;
  --text-strong: #243347;
  --text-soft: #68788b;

  --field: #ffffff;
  --field-border: #dfe5ed;

  --success: #16865c;
  --error: #bb4051;

  --page: #f6f8fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-hover: #f2f5f8;

  --line: #edf0f4;
  --line-strong: #e5eaf0;

  --danger: #bd3a4c;
  --danger-bg: #fff1f3;

  --focus: #88c7ff;

  --calendar-today: #f8fbff;
  --calendar-today-head: #eaf4ff;

  --shift-bg: #eaf4ff;
  --shift-bg-hover: #e1f0ff;
  --shift-text: #3978bb;
  --shift-strong: #316fae;
  --shift-muted: #648db7;
  --shift-duration: #7f9dbd;

  --shift-done-bg: #eaf8f1;
  --shift-done-strong: #378765;
  --shift-done-text: #60967e;
  --shift-done-muted: #78a892;

  --shift-cancelled-bg: #f3f5f7;
  --shift-cancelled-text: #8f9aa7;

  --nav-surface: #f7f9fb;
  --nav-icon: #e8eef6;
  --nav-active: #eaf5ff;
  --nav-hover: #f4f8fc;

  --plan-bg: #f7faff;
  --plan-border: #edf3fc;

  --radius: 20px;

  --field-disabled: #f3f5f7;
  --field-disabled-text: #68788b;

  color: var(--text);
  background: var(--page);
}

/* Темная тема */

:root[data-theme='dark'] {
  color-scheme: dark;

  --text: #edf3f8;
  --muted: #8f9baa;
  --text-secondary: #a9b4c1;
  --text-strong: #f2f6fa;
  --text-soft: #a1adba;

  --field: #1d2530;
  --field-border: #344150;

  --success: #57c99a;
  --error: #ff8292;

  --page: #11161d;
  --surface: #181f28;
  --surface-soft: #1d2530;
  --surface-hover: #232d39;

  --line: #28323e;
  --line-strong: #323e4c;

  --danger: #ff7f91;
  --danger-bg: #351d24;

  --focus: #4baaff;

  --calendar-today: #162536;
  --calendar-today-head: #19314a;

  --shift-bg: #193653;
  --shift-bg-hover: #204463;
  --shift-text: #8fc8ff;
  --shift-strong: #9ed0ff;
  --shift-muted: #7eb1df;
  --shift-duration: #7299bc;

  --shift-done-bg: #17352b;
  --shift-done-strong: #70d5a6;
  --shift-done-text: #65bc96;
  --shift-done-muted: #70a991;

  --shift-cancelled-bg: #252d36;
  --shift-cancelled-text: #8996a5;

  --nav-surface: #1d2530;
  --nav-icon: #263342;
  --nav-active: #193653;
  --nav-hover: #202a35;

  --plan-bg: #1a2430;
  --plan-border: #293746;

  --field-disabled: #202934;
  --field-disabled-text: #9eabba;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: wait;
}

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

button {
  border: 0;
  background: none;
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

h3 {
  font-size: 15px;
  font-weight: 600;
}

p {
  line-height: 1.65;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 11px;
  padding: 12px 17px;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}

.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 10px #0088ff16;
}

.secondary {
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.ghost {
  color: var(--muted);
}

.danger {
  color: var(--danger);
  background: var(--danger-bg);
}

.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
  stroke-width: 1.7;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -1px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: var(--blue);
  color: #fff;
  border-radius: 11px;
  letter-spacing: -3px;
  font-size: 23px;
  padding-right: 3px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 22px #233c5603;
}

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

.between {
  justify-content: space-between;
}

.stack {
  display: grid;
  gap: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 11px;
  background: #eef7ff;
  color: #0088e8;
  white-space: nowrap;
}

.badge.green {
  background: #eaf8f0;
  color: #30936d;
}

.badge.gray {
  background: #f1f3f6;
  color: #81909d;
}

:root[data-theme='dark'] .badge {
  background: rgba(0, 136, 232, 0.14);
  color: #4db2f7;
}

:root[data-theme='dark'] .badge.green {
  background: rgba(48, 147, 109, 0.16);
  color: #5fc49b;
}

:root[data-theme='dark'] .badge.gray {
  background: rgba(129, 144, 157, 0.14);
  color: #9eabb6;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.empty {
  text-align: center;
  padding: 48px 20px;
  color: #84909f;
}

.empty h3 {
  color: #536174;
  margin: 14px 0 6px;
}

.empty .icon {
  width: 30px;
  height: 30px;
}

.empty .btn {
  margin-top: 16px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef3fa;
  color: #5d7794;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.loading {
  padding: 60px;
  color: #84909f;
  text-align: center;
}
