/* Шрифты бренда web-leads.ru: Nunito для заголовков, Nunito Sans для текста.
   Файлы лежат у нас же, в /fonts, — чтобы не зависеть от чужого сервера. */
@font-face { font-family: 'WL Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/nunito-sans-400.ttf') format('truetype'); }
@font-face { font-family: 'WL Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/nunito-sans-600.ttf') format('truetype'); }
@font-face { font-family: 'WL Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/nunito-sans-700.ttf') format('truetype'); }
@font-face { font-family: 'WL Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/nunito-700.ttf') format('truetype'); }
@font-face { font-family: 'WL Display'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/nunito-800.ttf') format('truetype'); }
@font-face { font-family: 'WL Display'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/nunito-900.ttf') format('truetype'); }

:root {
  font-family: 'WL Sans', 'Nunito Sans', 'Segoe UI Variable', 'Segoe UI', Arial, sans-serif;
  color: #090d0b;
  background: #f4f8f3;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #090d0b;
  --muted: #66736b;
  --soft: #7f8a84;
  --line: #e2e9e3;
  --line-strong: #cfdbd3;
  --surface: #ffffff;
  --surface-soft: #f3f8f3;
  --surface-warm: #fbf7ee;
  /* фирменная зелень web-leads.ru */
  --green-950: #07140e;
  --green-900: #0b2619;
  --green-800: #063d27;
  --green-700: #0b7e39;
  --green-600: #0e8f42;
  --green-100: #e6f7ec;
  --accent: #19b84f;
  --accent-soft: rgba(25, 184, 79, 0.12);
  --brand-grad: linear-gradient(135deg, #0b2619 0%, #128a42 58%, #2fc45b 100%);
  --brand-grad-hover: linear-gradient(135deg, #0b2619 0%, #0f7a3b 45%, #22b14f 100%);
  --panel-grad: linear-gradient(180deg, #07140e 0%, #06281a 58%, #063d27 100%);
  --blue-600: #315f89;
  --blue-100: #e9f0f7;
  --orange-600: #a05f31;
  --orange-100: #f5ebe3;
  --red-600: #b34242;
  --red-100: #faeaea;
  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-field: 11px;
  --shadow-small: 0 6px 20px rgba(8, 40, 24, 0.07);
  --shadow-modal: 0 28px 80px rgba(6, 36, 22, 0.24);
}

/* Заголовки — более плотным Nunito, как на сайте */
.topbar h1,
.login-brand strong,
.brand-row strong,
.overview-intro strong,
.metric strong,
.empty-state h2,
.board-column h2,
.report-group > header h2,
.admin-head strong {
  font-family: 'WL Display', 'Nunito', 'WL Sans', 'Segoe UI', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f4f8f3;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(25, 184, 79, 0.3);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.login-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: radial-gradient(circle at 78% 14%, rgba(25, 184, 79, 0.28), rgba(0, 0, 0, 0) 42%), var(--panel-grad);
}

.login-card {
  display: grid;
  gap: 16px;
  width: min(360px, 100%);
  padding: 32px 28px 28px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow-modal);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.login-brand strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.login-brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.login-error {
  margin: -6px 0 0;
  color: var(--red-600);
  font-size: 12px;
  font-weight: 700;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 264px;
  flex-direction: column;
  padding: 22px 16px 16px;
  color: #e9f2ec;
  background: var(--panel-grad);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.brand-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 48px;
  padding: 0 5px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: var(--brand-grad);
  border-radius: 13px;
  font-size: 15px;
  font-weight: 800;
}

.brand-row strong,
.brand-row span {
  display: block;
}

.brand-row strong {
  color: #ffffff;
  font-size: 15px;
}

.brand-row span {
  margin-top: 2px;
  color: #91a59b;
  font-size: 11px;
}

.brand-row .brand-position {
  margin-top: 1px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.sidebar-close {
  display: none !important;
}

.sidebar-create {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 46px;
  margin: 24px 0 16px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--brand-grad);
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}

.sidebar-create:hover {
  background: var(--brand-grad-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(25, 184, 79, 0.28);
}

kbd {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  padding: 0 5px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(18, 33, 27, 0.12);
  border-radius: 4px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
}

.main-nav,
.area-list {
  display: grid;
  gap: 3px;
}

.main-nav button,
.area-list button,
.sidebar-footer button {
  display: grid;
  width: 100%;
  min-height: 42px;
  align-items: center;
  color: #a9bcb2;
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  transition: color 140ms ease, background 140ms ease;
}

.main-nav button {
  grid-template-columns: 22px 1fr auto;
  gap: 9px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 600;
}

.main-nav button:hover,
.area-list button:hover,
.sidebar-footer button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.main-nav button.active {
  color: #ffffff;
  background: rgba(25, 184, 79, 0.16);
  box-shadow: inset 2px 0 0 var(--accent);
}

.main-nav small,
.area-list small {
  min-width: 22px;
  padding: 2px 6px;
  color: #b9c7c0;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  font-size: 10px;
  text-align: center;
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 10px 8px;
  color: #6f8278;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-section-title .icon-button {
  color: #71847a;
}

.area-list button {
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  padding: 0 11px;
  font-size: 13px;
}

.area-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer button {
  grid-template-columns: 22px 1fr;
  gap: 9px;
  padding: 0 11px;
  font-size: 12px;
}

.main-content {
  min-height: 100vh;
  margin-left: 264px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(22px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar h1,
.topbar p {
  margin: 0;
}

.topbar h1 {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.25;
}

.topbar p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-field {
  display: flex;
  width: min(330px, 30vw);
  height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 13px;
  color: var(--soft);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
}

.search-field:focus-within {
  background: #ffffff;
  border-color: rgba(25, 184, 79, 0.45);
}

.search-field input {
  min-width: 0;
  flex: 1;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.search-field button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.search-field kbd {
  color: #8d9892;
  background: #ffffff;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.primary-button {
  color: #ffffff;
  background: var(--brand-grad);
  border: 1px solid transparent;
  box-shadow: 0 6px 18px rgba(12, 110, 55, 0.22);
}

.primary-button:hover:not(:disabled) {
  background: var(--brand-grad-hover);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(12, 110, 55, 0.3);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.secondary-button {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
}

.secondary-button:hover,
.secondary-button.active {
  background: var(--green-100);
  border-color: rgba(25, 184, 79, 0.45);
}

.content-wrap {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 28px clamp(22px, 4vw, 54px) 60px;
}

.overview {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(130px, 0.65fr));
  min-height: 132px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 96% 0%, rgba(25, 184, 79, 0.2), rgba(0, 0, 0, 0) 38%), var(--panel-grad);
  border: 1px solid #07140e;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-small);
}

.overview > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 23px 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.overview > div:first-child {
  border-left: 0;
}

.overview-intro .eyebrow {
  color: var(--accent);
}

.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--green-600);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.overview-intro strong {
  font-size: 21px;
}

.overview-intro p {
  margin: 6px 0 0;
  color: #a9b9b1;
  font-size: 11px;
}

.metric span {
  color: #94a79e;
  font-size: 10px;
}

.metric strong {
  margin-top: 7px;
  font-size: 23px;
  line-height: 1.15;
}

.metric-money {
  background: rgba(255, 255, 255, 0.05);
}

.metric-money strong {
  color: #ffe6b8;
  font-size: 19px;
}

.quick-add {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  margin-top: 18px;
  padding: 0 10px 0 19px;
  color: var(--accent);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-small);
}

.quick-add input {
  min-width: 0;
  height: 52px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.quick-add button {
  min-width: 86px;
  height: 38px;
  color: #ffffff;
  background: var(--brand-grad);
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.quick-add button:disabled {
  color: #87928c;
  background: #edf1ef;
  cursor: not-allowed;
}

.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  margin-top: 12px;
}

.view-mode-switch {
  display: inline-flex;
  padding: 3px;
  background: #e5ece6;
  border-radius: var(--radius-pill);
}

.view-mode-switch button {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.view-mode-switch button.active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(18, 33, 27, 0.09);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.filter-indicator {
  width: 6px;
  height: 6px;
  background: var(--orange-600);
  border-radius: 50%;
}

.sort-select {
  position: relative;
  display: flex;
  height: 42px;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.sort-select span {
  color: var(--soft);
  font-size: 10px;
}

.sort-select select {
  appearance: none;
  padding: 0 19px 0 2px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 11px;
  font-weight: 700;
}

.sort-select svg {
  position: absolute;
  right: 10px;
  pointer-events: none;
}

.filter-bar {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: -1px 0 14px;
  padding: 15px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.filter-bar label {
  display: grid;
  gap: 5px;
}

.filter-bar label span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.filter-bar select {
  min-width: 190px;
  height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
}

.filter-bar > button {
  height: 38px;
  margin-left: auto;
  padding: 0 10px;
  color: var(--green-600);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}

.reports-view {
  display: grid;
  gap: 16px;
}

.reports-filter {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 15px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.reports-copy-all {
  margin-left: auto;
}

.reports-filter label {
  display: grid;
  gap: 5px;
}

.reports-filter label span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.reports-filter select {
  min-width: 220px;
  height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
}

.report-group {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.report-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.report-group > header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.report-day {
  padding: 4px 18px 14px;
}

.report-day h3 {
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 4px 0 4px 22px;
  color: var(--ink);
}

.report-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.report-list li::marker {
  color: var(--muted);
  font-weight: 700;
}

.report-list li:last-child {
  border-bottom: 0;
}

.report-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-task-delete {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.report-list li:hover .report-task-delete {
  opacity: 1;
}

.report-task-delete:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

@media (hover: none) {
  .report-task-delete {
    opacity: 1;
  }
}

.bulk-hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.task-list {
  overflow: visible;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow-small);
}

.task-list-head,
.task-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 100px 150px 100px 70px 40px;
  gap: 14px;
  align-items: center;
}

.task-list-head {
  position: relative;
  min-height: 38px;
  padding: 0 13px 0 81px;
  color: var(--soft);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  border-radius: 7px 7px 0 0;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.task-list-head .task-select {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
}

.selection-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--green-800);
  border-radius: 7px 7px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.selection-bar span {
  margin-right: auto;
}

.selection-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}

.selection-bar button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.selection-bar button.danger {
  background: var(--red-600);
}

.selection-bar button.danger:hover {
  background: #9c3838;
}

.task-row {
  position: relative;
  min-height: 78px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid #e9edea;
  transition: background 130ms ease;
}

.task-row.priority-high {
  padding-left: 13px;
  background: #f6e8e8;
  border-left: 3px solid var(--red-600);
}

.task-row.priority-medium {
  padding-left: 13px;
  background: #f4ece6;
  border-left: 3px solid var(--orange-600);
}

.task-row.priority-low {
  padding-left: 13px;
  background: #e6ecf1;
  border-left: 3px solid var(--blue-600);
}

.task-row.priority-high:hover {
  background: #f1dcdc;
}

.task-row.priority-medium:hover {
  background: #efe3d9;
}

.task-row.priority-low:hover {
  background: #dbe4ec;
}

.task-row:last-child {
  border-bottom: 0;
}

.task-row:hover {
  background: #fbfcfb;
}

.task-row.completed {
  background: #fafbfa;
}

.task-row.selected {
  background: var(--green-100);
}

.task-row.selected:hover {
  background: var(--green-100);
}

.task-row.completed .task-title-line strong {
  color: #8b948f;
  text-decoration: line-through;
}

.task-row-controls {
  position: absolute;
  left: 13px;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translateY(-50%);
}

.task-select {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green-600);
  cursor: pointer;
}

.task-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  color: #ffffff;
  background: #ffffff;
  border: 1.5px solid #b9c4be;
  border-radius: 50%;
}

.task-row.completed .task-check {
  background: var(--green-600);
  border-color: var(--green-600);
}

.task-select-btn {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  color: #ffffff;
  background: #ffffff;
  border: 1.5px solid #b9c4be;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 120ms ease, background 120ms ease, border-color 120ms ease;
}

.task-select-btn.checked {
  background: var(--green-600);
  border-color: var(--green-600);
  opacity: 1;
}

@media (hover: hover) {
  .task-row:hover .task-select-btn {
    opacity: 1;
  }
}

@media (hover: none) {
  .task-select-btn {
    opacity: 1;
  }
}

.task-main {
  display: block;
  min-width: 0;
  margin-left: 64px;
  padding: 2px 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.task-title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.task-title-line strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-mark {
  display: block;
  width: 3px;
  height: 18px;
  flex: 0 0 3px;
  background: var(--line-strong);
  border-radius: 2px;
}

.priority-mark.high {
  background: var(--red-600);
}

.priority-mark.medium {
  background: var(--orange-600);
}

.priority-mark.low {
  background: var(--blue-600);
}

.task-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.task-meta > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.task-note {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: var(--soft);
  font-size: 11px;
  font-style: italic;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-note svg {
  flex-shrink: 0;
  margin-right: 5px;
  vertical-align: -2px;
  color: var(--soft);
}

.status-select {
  position: relative;
  display: flex;
  width: 132px;
  height: 32px;
  align-items: center;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.status-select::before {
  width: 7px;
  height: 7px;
  margin-left: 10px;
  content: '';
  background: #a2ada7;
  border-radius: 50%;
}

.status-select.status-doing::before,
.status-dot.status-doing {
  background: var(--blue-600);
}

.status-select.status-waiting::before,
.status-dot.status-waiting {
  background: var(--orange-600);
}

.status-select.status-done::before,
.status-dot.status-done {
  background: var(--green-600);
}

.status-select.status-inbox::before,
.status-dot.status-inbox {
  background: #8c778f;
}

.status-select.status-todo::before,
.status-dot.status-todo {
  background: #8b9690;
}

.status-select select {
  min-width: 0;
  height: 100%;
  flex: 1;
  appearance: none;
  padding: 0 24px 0 7px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 10px;
  font-weight: 700;
}

.status-select svg {
  position: absolute;
  right: 7px;
  pointer-events: none;
}

.due-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.due-date.overdue,
.board-task footer .overdue {
  color: var(--red-600);
}

.no-date {
  color: #a4ada8;
}

.due-time {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.priority-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 700;
}

.priority-dot {
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--line-strong);
  border-radius: 50%;
}

.priority-cell.priority-high {
  color: var(--red-600);
}

.priority-cell.priority-high .priority-dot {
  background: var(--red-600);
}

.priority-cell.priority-medium {
  color: var(--orange-600);
}

.priority-cell.priority-medium .priority-dot {
  background: var(--orange-600);
}

.priority-cell.priority-low {
  color: var(--blue-600);
}

.priority-cell.priority-low .priority-dot {
  background: var(--blue-600);
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
}

.icon-button:hover {
  color: var(--ink);
  background: rgba(18, 33, 27, 0.06);
}

.task-menu-wrap {
  position: relative;
}

.task-menu {
  position: absolute;
  z-index: 15;
  top: 39px;
  right: 0;
  width: 185px;
  padding: 5px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(18, 33, 27, 0.15);
}

.task-menu button {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  text-align: left;
}

.task-menu button:hover {
  background: var(--surface-soft);
}

.task-menu button.danger {
  color: var(--red-600);
}

.empty-state {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--green-600);
  background: var(--green-100);
  border-radius: 50%;
}

.empty-state h2 {
  margin: 16px 0 5px;
  color: var(--ink);
  font-size: 18px;
}

.empty-state p {
  margin: 0 0 20px;
  font-size: 12px;
}

.board-wrap {
  max-width: calc(100vw - 318px);
  overflow-x: auto;
  padding-bottom: 12px;
}

.task-board {
  display: grid;
  min-width: 1260px;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 10px;
}

.board-column {
  min-height: 450px;
  padding: 0 9px 12px;
  background: #e7ebe8;
  border: 1px solid #d8dfda;
  border-radius: 7px;
}

.board-column.drag-active {
  border-color: #b7c7be;
}

.board-column > header {
  display: grid;
  grid-template-columns: 8px 1fr auto 30px;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 0 2px 0 4px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.board-column h2 {
  margin: 0;
  font-size: 11px;
}

.board-column header small {
  color: var(--soft);
  font-size: 10px;
}

.board-column header .icon-button {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.board-items {
  display: grid;
  align-content: start;
  gap: 8px;
}

.board-task {
  padding: 13px;
  background: #ffffff;
  border: 1px solid #d9e0dc;
  border-radius: 6px;
  box-shadow: 0 2px 7px rgba(18, 33, 27, 0.04);
  cursor: grab;
}

.board-task.priority-high {
  padding-left: 10px;
  background: #f6e8e8;
  border-left: 3px solid var(--red-600);
}

.board-task.priority-medium {
  padding-left: 10px;
  background: #f4ece6;
  border-left: 3px solid var(--orange-600);
}

.board-task.priority-low {
  padding-left: 10px;
  background: #e6ecf1;
  border-left: 3px solid var(--blue-600);
}

.board-task:active {
  cursor: grabbing;
}

.board-task:hover {
  border-color: #bac8c0;
  box-shadow: 0 5px 15px rgba(18, 33, 27, 0.08);
}

.board-task.priority-high:hover {
  background: #f1dcdc;
  border-left-color: var(--red-600);
}

.board-task.priority-medium:hover {
  background: #efe3d9;
  border-left-color: var(--orange-600);
}

.board-task.priority-low:hover {
  background: #dbe4ec;
  border-left-color: var(--blue-600);
}

.board-task-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  color: #a1aaa5;
}

.board-area {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-area i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
}

.board-task-top .priority-mark {
  width: 14px;
  height: 3px;
  margin-left: auto;
  flex-basis: 14px;
}

.board-task > strong {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.48;
}

.board-task > p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.board-task footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding-top: 10px;
  color: var(--soft);
  border-top: 1px solid #edf0ee;
  font-size: 9px;
}

.board-task footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.board-empty {
  display: grid;
  min-height: 74px;
  place-items: center;
  color: #99a39d;
  border: 1px dashed #c8d1cc;
  border-radius: 6px;
  font-size: 9px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 23, 18, 0.55);
  backdrop-filter: blur(4px);
}

.modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  box-shadow: var(--shadow-modal);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.modal form {
  padding: 22px 24px 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.area-editor-row > input {
  width: 100%;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  font-size: 12px;
}

.field input,
.field select,
.area-editor-row > input {
  height: 43px;
  padding: 0 12px;
}

.field textarea {
  min-height: 105px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.55;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.area-editor-row > input:focus {
  background: #ffffff;
  border-color: #9ab8ab;
}

.field-wide > input {
  height: 50px;
  font-size: 14px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.settings-modal {
  width: min(680px, 100%);
}

.settings-section {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.settings-section:last-child {
  border-bottom: 0;
}

.settings-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.settings-section h3 {
  margin: 0;
  font-size: 14px;
}

.settings-section p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.area-editor {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.area-editor-row {
  display: grid;
  grid-template-columns: 34px 1fr 70px 36px;
  gap: 9px;
  align-items: center;
}

.area-editor-row > span {
  color: var(--soft);
  font-size: 10px;
  text-align: right;
}

.color-input {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.color-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.color-input span {
  display: block;
  width: 34px;
  height: 34px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.data-section {
  background: var(--surface-soft);
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
}

.text-danger-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 8px;
  color: var(--red-600);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}

.toast {
  position: fixed;
  z-index: 150;
  right: 24px;
  bottom: 24px;
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--panel-grad);
  border: 1px solid rgba(25, 184, 79, 0.35);
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 35px rgba(6, 36, 22, 0.3);
  font-size: 11px;
  font-weight: 700;
}

.mobile-menu-button,
.mobile-nav,
.mobile-fab,
.sidebar-backdrop {
  display: none;
}

@media (max-width: 1180px) {
  .overview {
    grid-template-columns: minmax(250px, 1.2fr) repeat(3, minmax(105px, 0.55fr));
  }

  .overview > div {
    padding: 20px;
  }

  .task-list-head,
  .task-row {
    grid-template-columns: minmax(220px, 1fr) 84px 132px 88px 60px 36px;
    gap: 10px;
  }

  .status-select {
    width: 122px;
  }
}

@media (max-width: 960px) {
  .sidebar {
    width: 244px;
    transform: translateX(-100%);
    transition: transform 190ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: inline-grid !important;
    color: #aab9b1;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 29;
    display: block;
    background: rgba(10, 20, 16, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 190ms ease;
  }

  .sidebar-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-button {
    display: inline-grid;
  }

  .board-wrap {
    max-width: calc(100vw - 44px);
  }
}

@media (max-width: 760px) {
  body {
    background: #f4f6f5;
  }

  .topbar {
    position: static;
    display: grid;
    min-height: auto;
    gap: 14px;
    padding: 16px 16px 13px;
  }

  .topbar h1 {
    font-size: 19px;
  }

  .topbar p {
    display: none;
  }

  .topbar-actions {
    width: 100%;
  }

  .search-field {
    width: 100%;
  }

  .search-field kbd,
  .desktop-add {
    display: none;
  }

  .content-wrap {
    padding: 14px 12px 100px;
  }

  .overview {
    grid-template-columns: 1.25fr 0.75fr;
    min-height: 0;
  }

  .overview-intro {
    grid-row: span 2;
  }

  .overview > div {
    min-height: 76px;
    padding: 16px;
  }

  .overview > div:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .overview .metric-money {
    display: none;
  }

  .overview-intro strong {
    font-size: 17px;
  }

  .overview-intro p {
    max-width: 180px;
    line-height: 1.45;
  }

  .metric strong {
    font-size: 18px;
  }

  .quick-add {
    grid-template-columns: 19px 1fr 36px;
    padding-right: 9px;
  }

  .quick-add button {
    width: 36px;
    min-width: 36px;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .quick-add button::after {
    color: #ffffff;
    content: '+';
    font-size: 20px;
  }

  .view-toolbar {
    min-height: 58px;
  }

  .view-mode-switch button {
    width: 38px;
    justify-content: center;
    padding: 0;
  }

  .view-mode-switch button span,
  .sort-select span,
  .sort-select svg {
    display: none;
  }

  .secondary-button {
    min-width: 40px;
    padding: 0 11px;
  }

  .view-toolbar .secondary-button {
    font-size: 0;
  }

  .view-toolbar .secondary-button svg {
    width: 18px;
    height: 18px;
  }

  .sort-select {
    width: 100px;
    padding: 0 8px;
  }

  .sort-select select {
    width: 100%;
    padding: 0;
    font-size: 10px;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filter-bar select {
    width: 100%;
    min-width: 0;
  }

  .filter-bar > button {
    grid-column: 1 / -1;
    margin: 0;
  }

  .task-list {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .task-list-head {
    display: none;
  }

  .priority-cell,
  .due-time {
    display: none;
  }

  .task-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    min-height: 112px;
    margin-bottom: 8px;
    padding: 14px 9px 12px 13px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: 0 3px 10px rgba(18, 33, 27, 0.04);
  }

  .task-row.priority-high,
  .task-row.priority-medium,
  .task-row.priority-low {
    padding-left: 10px;
  }

  .task-row:hover {
    background: #ffffff;
  }

  .task-row-controls {
    left: 13px;
    top: 23px;
    transform: none;
  }

  .task-main {
    grid-column: 1 / -1;
    margin-left: 60px;
    padding-right: 34px;
  }

  .task-title-line strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.45;
    text-overflow: initial;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .task-meta {
    gap: 5px 9px;
    margin-top: 7px;
  }

  .task-meta > span:nth-child(n + 4) {
    display: none;
  }

  .status-select {
    grid-column: 1;
    grid-row: 2;
    width: 122px;
    height: 30px;
    margin-left: 60px;
  }

  .due-date {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    padding-right: 4px;
  }

  .task-menu-wrap {
    position: absolute;
    top: 10px;
    right: 8px;
  }

  .task-menu {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 82px;
    left: 12px;
    width: auto;
    padding: 7px;
  }

  .task-menu button {
    min-height: 44px;
  }

  .board-wrap {
    max-width: calc(100vw - 24px);
  }

  .task-board {
    min-width: 1120px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 8px 8px 0 0;
  }

  .modal-header {
    min-height: 72px;
    padding: 14px 16px;
  }

  .modal-header h2 {
    font-size: 17px;
  }

  .modal form,
  .settings-section {
    padding: 17px 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modal-actions {
    position: sticky;
    bottom: 0;
    margin: 18px -16px -17px;
    padding: 12px 16px;
    background: #ffffff;
  }

  .modal-actions .primary-button {
    flex: 1;
  }

  .area-editor-row {
    grid-template-columns: 34px 1fr 34px;
  }

  .area-editor-row > span {
    display: none;
  }

  .settings-section-head {
    align-items: center;
  }

  .settings-section-head .secondary-button {
    font-size: 0;
  }

  .settings-section-head .secondary-button svg {
    margin: 0;
  }

  .data-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .data-actions .secondary-button {
    padding: 0 8px;
  }

  .text-danger-button {
    grid-column: 1 / -1;
    justify-content: center;
    margin: 0;
  }

  .mobile-nav {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: 68px;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(18, 33, 27, 0.07);
    backdrop-filter: blur(14px);
  }

  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #79847e;
    background: transparent;
    border: 0;
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-nav button > span {
    position: relative;
    display: block;
    height: 22px;
  }

  .mobile-nav button small {
    position: absolute;
    top: -5px;
    right: -9px;
    display: grid;
    min-width: 16px;
    height: 16px;
    place-items: center;
    color: #ffffff;
    background: var(--orange-600);
    border: 2px solid #ffffff;
    border-radius: 8px;
    font-size: 8px;
  }

  .mobile-nav button.active {
    color: var(--green-700);
  }

  .mobile-fab {
    position: fixed;
    z-index: 55;
    right: 16px;
    bottom: 82px;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    padding: 0;
    color: #ffffff;
    background: var(--brand-grad);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(25, 184, 79, 0.4);
  }

  .toast {
    right: 12px;
    bottom: 82px;
    left: 12px;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .overview {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .overview > div {
    padding: 14px;
  }

  .overview-intro strong {
    font-size: 16px;
  }

  .overview-intro p {
    font-size: 10px;
  }

  .metric strong {
    font-size: 17px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-bar > button {
    grid-column: 1;
  }

  .toolbar-right {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.notes-page {
  display: grid;
  gap: 10px;
}

.notes-add {
  display: grid;
  gap: 10px;
  padding: 16px 17px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow-small);
}

.notes-add textarea {
  min-height: 70px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  resize: vertical;
}

.notes-add .primary-button {
  justify-self: end;
}

.notes-list {
  display: grid;
  gap: 10px;
}

.note-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow-small);
}

.note-card.priority-high {
  background: #f6e8e8;
  border-color: var(--red-600);
}

.note-card.priority-medium {
  background: #f4ece6;
  border-color: var(--orange-600);
}

.note-card.priority-low {
  background: #e6ecf1;
  border-color: var(--blue-600);
}

.note-pin-badge {
  position: absolute;
  top: -7px;
  right: 12px;
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--green-600);
  border-radius: 50%;
  font-size: 10px;
  box-shadow: 0 1px 3px rgba(18, 33, 27, 0.25);
}

.note-card-text {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  cursor: text;
}

.note-card-edit {
  display: grid;
  gap: 8px;
}

.note-card-edit-textarea {
  min-height: 70px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--green-600);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  font-family: inherit;
  resize: vertical;
}

.note-card-edit-actions {
  display: flex;
  gap: 8px;
}

.note-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.note-card-date {
  color: var(--soft);
  font-size: 11px;
}

.note-card-actions {
  display: flex;
  gap: 6px;
}

.notes-empty {
  color: var(--muted);
  font-size: 13px;
}

.notes-add-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notes-add-meta input,
.notes-add-meta select {
  padding: 8px 10px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
}

.note-card-reminder {
  padding: 6px 10px;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}


/* ---- экран «Сотрудники» (админка) ---- */
.admin-view {
  display: grid;
  gap: 16px;
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-small);
}

.admin-head strong {
  display: block;
  font-size: 17px;
}

.admin-head p {
  margin: 5px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 12px;
}

.admin-form,
.admin-edit {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  background: var(--green-100);
  border: 1px solid rgba(25, 184, 79, 0.3);
  border-radius: var(--radius-card);
}

.admin-edit {
  margin-top: 14px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.admin-grid .field span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-grid .field input,
.admin-grid .field select {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-field);
  font-size: 13px;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-card {
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-small);
}

.admin-card.is-off {
  background: #fbfbfa;
  border-color: var(--line-strong);
  opacity: 0.85;
}

.admin-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.admin-ava {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: var(--brand-grad);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
}

.admin-ava img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-who strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}

.admin-who span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.admin-who small {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: 11px;
}

.admin-badge {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-badge-role {
  color: #ffffff;
  background: var(--brand-grad);
}

.admin-badge-off {
  color: var(--red-600);
  background: var(--red-100);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.admin-actions button {
  min-height: 36px;
  font-size: 11px;
}

.admin-error {
  margin: 0;
  padding: 12px 16px;
  color: var(--red-600);
  background: var(--red-100);
  border-radius: var(--radius-card);
  font-size: 12px;
  font-weight: 700;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-hint {
  margin: 0;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .admin-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-actions button {
    flex: 1 1 140px;
  }
}
