/* labScaner — стили по утверждённым макетам (холст «labScaner — макеты»). */
:root {
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --text: #161a1f;
  --muted: #5a6370;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --border: #d9dde3;
  --border-soft: #e7e9ed;

  --accent: #1e4fa3;
  --accent-hover: #163c7d;
  --accent-soft: #e6edf9;
  --brand: #2f6bd8;

  --warn-bg: #fff1d6;
  --warn-border: #e9c27a;
  --warn-text: #5e3a00;
  --danger-bg: #fce6dc;
  --danger-border: #edb49c;
  --danger-text: #6e2508;

  --nav-bg: #12161c;
  --nav-text: #c9d0da;
  --nav-muted: #7d8794;
  --nav-line: #262c35;
  --nav-active: #232a34;
  --nav-chip: #2a313b;

  --radius: 10px;
  --sidebar-w: 240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

h1 {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

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

.mono {
  font-family: var(--mono);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Каркас: меню слева, содержимое справа ---------- */
.shell {
  display: flex;
  min-height: 100vh;
}

.shell__main {
  flex: 1;
  min-width: 0;
  padding: 24px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.topbar {
  display: none;
}

.nav-toggle {
  display: none;
}

/* ---------- Боковое меню ---------- */
.sidebar {
  flex: none;
  width: var(--sidebar-w);
  background: var(--nav-bg);
  color: var(--nav-text);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 20px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand__logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.nav__section {
  height: 1px;
  background: var(--nav-line);
  margin: 10px 10px 0;
}

.nav__section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--nav-muted);
  padding: 10px 10px 6px;
}

.nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--nav-text);
  text-decoration: none;
}

.nav__item:hover {
  background: var(--nav-active);
  color: #fff;
}

.nav__item[aria-current="page"] {
  background: var(--nav-active);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--brand);
}

.nav__label {
  flex: 1;
}

.counter {
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  padding: 1px 7px;
  background: var(--nav-chip);
  color: #e4e8ee;
}

.counter--accent {
  background: var(--brand);
  color: #fff;
}

.counter--danger {
  background: #c2492a;
  color: #fff;
}

.counter--warn {
  background: #e3a33b;
  color: #1b1405;
}

.sidebar__spacer {
  flex: 1;
}

.mail-status {
  border: 1px solid #2a313b;
  border-radius: 8px;
  padding: 12px;
  margin: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mail-status__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.mail-status__badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: #e9c27a;
  border: 1px solid #6b5426;
  border-radius: 10px;
  padding: 1px 7px;
}

.mail-status__text {
  font-size: 12px;
  color: #9aa4b1;
}

.mail-status__text a {
  color: #7fb0ff;
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 0;
}

.user__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--nav-chip);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex: none;
}

.user__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.user__name {
  color: #fff;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user__role {
  color: var(--nav-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-button {
  display: flex;
  padding: 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9aa4b1;
  cursor: pointer;
}

.icon-button:hover {
  color: #fff;
  background: var(--nav-active);
}

/* ---------- Кнопки ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid #b8c6de;
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.button[disabled],
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Заголовок страницы ---------- */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 24px;
}

.page-header__text {
  flex: 1 1 320px;
}

.page-header__meta {
  font-size: 13px;
  color: var(--muted);
}

.chip {
  font-size: 13px;
  border-radius: 6px;
  padding: 6px 10px;
  background: #e8ecf2;
  color: #3c4757;
}

.chip--warn {
  background: var(--warn-bg);
  color: #7a4a00;
  font-weight: 500;
}

/* ---------- Карточки и пустые состояния ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.card__header h2 {
  flex: 1;
}

.card__body {
  padding: 16px 20px;
}

.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}

.columns > .card:first-child {
  flex: 3 1 520px;
}

.columns > .card:last-child {
  flex: 2 1 360px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 40px 24px;
  color: var(--muted);
}

.empty__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty__title {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.empty__text {
  max-width: 460px;
}

.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
}

.banner__text {
  flex: 1 1 320px;
}

.banner a {
  font-weight: 600;
  color: inherit;
}

/* Панель приёма почты на сводке */
.mail-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.mail-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.mail-panel__spacer {
  flex: 1;
}

/* Список разделов настроек */
.settings-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  padding: 16px 20px;
}

.settings-item {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-item__title {
  font-weight: 600;
}

.settings-item__text {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Вход ---------- */
.login-page {
  min-height: 100vh;
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-card .brand {
  color: var(--text);
  padding: 0;
  font-size: 18px;
}

.login-card .brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.login-card h1 {
  margin: 6px 0 0;
  font-size: 22px;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.field input {
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  min-height: 44px;
  border: 1px solid #c9cfd8;
  border-radius: 8px;
  padding: 0 12px;
}

.field input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.field--error input {
  border-color: #c2492a;
}

.login-card .button {
  min-height: 46px;
  font-size: 15px;
}

.alert {
  font-size: 13px;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}

.alert--warn {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-color: var(--warn-border);
}

.login-card__hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Телефон и узкие окна ---------- */
@media (max-width: 900px) {
  .shell {
    flex-direction: column;
  }

  .topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--nav-bg);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .topbar .brand {
    padding: 0;
  }

  .topbar__burger {
    margin-left: auto;
    color: #fff;
    cursor: pointer;
    display: flex;
    padding: 6px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: auto;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .nav-toggle:checked ~ .sidebar {
    transform: none;
    box-shadow: 0 0 0 100vmax rgb(0 0 0 / 40%);
  }

  .shell__main {
    padding: 16px;
  }

  h1 {
    font-size: 22px;
  }
}

/* ---------- Формы, таблицы, уведомления (шаг 3.1) ---------- */
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-top: -12px;
}

.notice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.notice--ok {
  background: var(--accent-soft);
  border-color: #b8c6de;
  color: #13305f;
}

.notice--error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.secret {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
}

.secret code {
  font-family: var(--mono);
  font-size: 15px;
  background: var(--surface);
  border: 1px solid #b8c6de;
  border-radius: 6px;
  padding: 2px 8px;
  user-select: all;
}

.form-card .form {
  padding: 16px 20px 20px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
}

.form--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  max-width: none;
}

.form .field input,
.form .field select,
.table input[type="date"] {
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  min-height: 38px;
  border: 1px solid #c9cfd8;
  border-radius: 6px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--text);
}

.form--inline .field {
  min-width: 180px;
}

.field__hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.form__actions {
  display: flex;
  gap: 8px;
}

.form .check {
  min-height: 38px;
}

.card__note {
  margin: 0;
  padding: 0 20px 16px;
  font-size: 13px;
}

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

.button--danger {
  color: #a33a12;
  border-color: var(--danger-border);
}

.button--danger:hover {
  color: #7a2a0c;
  border-color: #a33a12;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #3c4757;
  background: #f7f8fa;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 8px 12px;
  border-bottom: 1px solid #eef0f3;
  vertical-align: middle;
}

.table__actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.table__row--error td {
  background: var(--danger-bg);
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 8px;
  background: #eef0f3;
  color: #3c4757;
  white-space: nowrap;
}

.tag--dark {
  background: #3c4757;
  color: #fff;
}

.tag--ok {
  background: var(--accent-soft);
  color: #1e3a6e;
}

.tag--warn {
  background: var(--warn-bg);
  color: #7a4a00;
}

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

.tag--muted {
  color: #7c8796;
}

.settings-item--link {
  text-decoration: none;
  color: inherit;
}

.settings-item--link:hover {
  border-color: var(--accent);
}

.settings-item--link .settings-item__title {
  color: var(--accent);
}

/* ---------- Группы и импорт (шаг 3.2) ---------- */
.lead {
  margin: -12px 0 0;
}

.group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}

.inline-form input,
.input-small {
  font: inherit;
  font-size: 13px;
  min-height: 30px;
  border: 1px solid #c9cfd8;
  border-radius: 6px;
  padding: 0 8px;
  background: var(--surface);
}

.input-small {
  width: 150px;
  border-style: dashed;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.toolbar__search {
  font: inherit;
  font-size: 13px;
  min-height: 38px;
  border: 1px solid #c9cfd8;
  border-radius: 6px;
  padding: 0 12px;
  flex: 1 1 260px;
  max-width: 360px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.chip-mono {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg);
  border-radius: 4px;
  padding: 2px 6px;
}

.chip-mono__remove {
  border: 0;
  background: transparent;
  color: #9aa3af;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}

.chip-mono__remove:hover {
  color: #a33a12;
}

.table__row--muted td {
  color: #7c8796;
}

.table--compact td {
  padding: 5px 12px;
  font-size: 13px;
}

.card__footer-form {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border-soft);
}

.sheet-counts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sheet-error {
  margin: 12px 20px;
}

.card__header .check h2 {
  display: inline;
}

.error-text {
  color: #a33a12;
}

.warn-text {
  color: #7a4a00;
  font-size: 13px;
}

.import-summary .card__header h2 {
  flex: 1;
}

/* ---------- Предметы (шаг 3.3) ---------- */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.split__nav {
  flex: 1 1 220px;
  max-width: 280px;
  padding: 8px;
  gap: 2px;
}

.split__main {
  flex: 999 1 560px;
}

.subject-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
}

.subject-link:hover {
  background: var(--bg);
  color: var(--text);
}

.subject-link[aria-current="page"] {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.subject-link .muted {
  font-size: 12px;
}

.subject-link--archived b {
  color: #7c8796;
}

.subject-link--add {
  color: var(--accent);
  font-weight: 600;
  border: 1px dashed #b8c6de;
  margin-top: 6px;
}

.subject-form__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.subject-form .field input,
.subject-form .field select,
.subject-form .field textarea {
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  min-height: 38px;
  border: 1px solid #c9cfd8;
  border-radius: 6px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--text);
}

.subject-form .field textarea {
  padding: 8px 10px;
  line-height: 1.5;
  resize: vertical;
}

.subject-form .field input.mono {
  font-family: var(--mono);
  font-size: 13px;
}

.field__hint code {
  font-family: var(--mono);
  background: var(--bg);
  border-radius: 3px;
  padding: 0 3px;
}

.path-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  background: #f7f8fa;
  border-radius: 8px;
  padding: 10px 12px;
}

.path {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.path__seg {
  background: var(--surface);
  border: 1px solid #e1e4e9;
  border-radius: 4px;
  padding: 2px 8px;
}

.path__sep {
  color: #9aa3af;
}

.subject-form__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
}

/* Флажки и наборы флажков (группы предмета в семестре). */
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.check input,
.field .check input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--brand);
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

fieldset.field legend {
  padding: 0;
  margin-bottom: 8px;
}

/* Предмет в семестре. */
.term-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.term-new {
  border-top: 1px solid var(--border-soft);
}

.term-new h3 {
  margin: 0;
  font-size: 15px;
}

.term-new__cw {
  align-self: end;
  min-height: 38px;
}

.input-wide,
.table input[type="date"] {
  font: inherit;
  font-size: 13px;
  min-height: 32px;
  border: 1px solid #c9cfd8;
  border-radius: 6px;
  padding: 0 8px;
  background: var(--surface);
  color: var(--text);
}

.input-wide {
  width: 100%;
  min-width: 220px;
}

.form__actions--wrap {
  flex-wrap: wrap;
  align-items: center;
}

.table-wrap + .card__note {
  padding-top: 14px;
}

/* Задания предмета в семестре (шаг 3.5) */
.nowrap {
  white-space: nowrap;
}

.task-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.task-doc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px 14px;
}

.task-doc h3 {
  margin: 0;
  font-size: 14px;
}

.task-doc p {
  margin: 0;
  font-size: 13px;
}

.task-doc__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.task-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.task-copy .field {
  flex: 1 1 320px;
}

.task-copy select,
.task-table input {
  font: inherit;
  font-size: 13px;
  min-height: 34px;
  border: 1px solid #c9cfd8;
  border-radius: 6px;
  padding: 0 8px;
  background: var(--surface);
  color: var(--text);
}

.requirements summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.requirements .subject-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.requirements textarea,
.assignment-form textarea {
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid #c9cfd8;
  border-radius: 6px;
  padding: 8px 10px;
  resize: vertical;
  background: var(--surface);
  color: var(--text);
}

.warnings {
  margin: 0;
  padding: 10px 14px 10px 32px;
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.task-table td {
  vertical-align: top;
}

.task-table .task-excerpt {
  font-size: 12px;
  color: var(--muted);
  max-width: 420px;
}

.task-table details summary {
  cursor: pointer;
  font-size: 13px;
}

.task-table details ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 12px;
}

.task-table input {
  width: 100%;
  min-width: 220px;
}

.pre-text {
  font-family: inherit;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.5;
  background: #f7f8fa;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0;
  max-height: 320px;
  overflow: auto;
}

.assignment-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.assignment-nav [aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.mail-status__badge--error {
  color: #ffb4a1;
  border-color: #8a3a22;
}

/* Проверка подключений */
.check-list {
  list-style: none;
  margin: 0;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.check-list__ok {
  color: #1f6b3a;
}

.check-list__fail {
  color: #a33a12;
}

/* Яндекс Диск */
.disk-account {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.disk-account > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.disk-account .muted {
  font-size: 12px;
}

.steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}

.steps li > div,
.steps li > form {
  margin-top: 8px;
}

.code-input {
  font: inherit;
  font-family: var(--mono);
  font-size: 14px;
  min-height: 36px;
  min-width: 220px;
  border: 1px solid #c9cfd8;
  border-radius: 6px;
  padding: 0 10px;
}

.disk-path {
  font-size: 12px;
  word-break: break-word;
}

.ok-text {
  color: #1f6b3a;
}
