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

:root {
  --absence-vacation-bg: #fff0df;
  --absence-vacation-hover: #ffe6ca;
  --absence-vacation-text: #9a5a18;
  --absence-vacation-muted: #b47632;
  --absence-sick-bg: #f1ebff;
  --absence-sick-hover: #e8ddff;
  --absence-sick-text: #6f4fb3;
  --absence-sick-muted: #8a6bc2;
  --absence-band-vacation-bg: #fff0df;
  --absence-band-vacation-text: #9a5a18;
  --absence-band-sick-bg: #f1ebff;
  --absence-band-sick-text: #6f4fb3;

  font-family: Geist, Arial, sans-serif;

  /* Единая типографика My Work */
  --font-body: 13px;
  --font-secondary: 12px;
  --font-small: 11px;
  --font-compact: 10px;

  font-synthesis: none;

  color-scheme: light;

  --blue: #2a9fff;

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

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

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

  --page: #f1f5fa;
  --surface: #ffffff;
  --surface-soft: #f1f5fa;
  --surface-hover: var(--hover-bg);

  --line: #d8e1ea;
  --line-strong: #cbd7e3;

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

  --focus: #83c9ff;

  --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: #f1f5fa;
  --nav-icon: #dde4eb;
  --nav-active: #d3e8fa;
  --nav-hover: #e5eff9;
  --hover-bg: #e5eff9;

  --plan-bg: #f1f5fa;
  --plan-border: #dde4eb;

  --radius: 20px;

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

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

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

:root[data-theme='dark'] {
  --absence-vacation-bg: #33291f;
  --absence-vacation-hover: #403225;
  --absence-vacation-text: #f1c482;
  --absence-vacation-muted: #d7b388;
  --absence-sick-bg: #30263d;
  --absence-sick-hover: #3a2d4a;
  --absence-sick-text: #d8b9ff;
  --absence-sick-muted: #bba4d5;
  --absence-band-vacation-bg: #33291f;
  --absence-band-vacation-text: #f1c482;
  --absence-band-sick-bg: #30263d;
  --absence-band-sick-text: #d8b9ff;

  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: 12px;
  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 {
  display: inline-block;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  background-color: currentColor;
  -webkit-mask-image: var(--icon-url);
  mask-image: var(--icon-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  vertical-align: middle;
}

.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: var(--color-on-accent);
  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: var(--color-link);
  white-space: nowrap;
}

.badge.green {
  background: #eaf8f0;
  color: var(--color-success-dark);
}

.badge.gray {
  background: #f1f3f6;
  color: var(--color-neutral);
}

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

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

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

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

.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

.empty h3 {
  color: var(--color-neutral-dark);
  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: var(--color-neutral-blue);
  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: var(--muted);
  text-align: center;
}

/* My Work v4 — единая типографика */

body {
  font-size: var(--font-body);
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font-size: var(--font-body);
}

small,
.text-small {
  font-size: var(--font-small);
}

.text-secondary,
.text-muted,
.muted {
  font-size: var(--font-secondary);
}

.text-compact {
  font-size: var(--font-compact);
}
