:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-soft: #fbfbf9;
  --text: #1f1f1d;
  --muted: #7b7b75;
  --line: #e9e9e4;
  --line-strong: #ddddd6;
  --accent: #ffcc00;
  --accent-hover: #f1bf00;
  --accent-soft: #fff8d7;
  --accent-text: #493900;
  --success: #237a52;
  --success-soft: #eaf7ef;
  --danger: #c84252;
  --danger-soft: #fff0f2;
  --shadow: 0 14px 38px rgba(26, 26, 22, 0.06);
  --shadow-soft: 0 7px 22px rgba(26, 26, 22, 0.045);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.background {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 204, 0, 0.08), transparent 26%),
    radial-gradient(circle at 95% 88%, rgba(255, 204, 0, 0.06), transparent 24%),
    var(--bg);
}

.auth-background {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card,
.content-card,
.topbar {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.login-card {
  width: min(410px, 100%);
  padding: 38px 34px 34px;
  border-radius: 22px;
}

.logo {
  margin-bottom: 18px;
  text-align: center;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -2px;
}

.subtitle {
  margin: 0;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.auth-note {
  margin: 7px 0 26px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.form,
.auth-form,
.form-section { display: flex; flex-direction: column; }
.auth-form,
.form-section { gap: 17px; }

.input-group,
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.input-group label,
.filter-field label,
.section-title {
  color: #66665f;
  font-size: 12px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid #dfdfd9;
  border-radius: 11px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input::placeholder { color: #aaa9a2; }
input:focus,
select:focus {
  border-color: #e7b900;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.13);
}

.primary-button,
.small-button {
  border: 1px solid #e4b600;
  color: #2f2600;
  background: var(--accent);
  font-weight: 800;
  box-shadow: none;
  transition: background 140ms ease, transform 140ms ease;
}
.primary-button:hover,
.small-button:hover { background: var(--accent-hover); }
.primary-button:active,
.small-button:active { transform: translateY(1px); }
.full-button {
  min-height: 48px;
  margin-top: 3px;
  border-radius: 11px;
}

.topbar-shell { padding: 18px 20px 0; }
.topbar {
  width: min(1180px, 100%);
  min-height: 64px;
  margin: 0 auto;
  padding: 9px 11px 9px 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo { font-size: 20px; line-height: 1; }
.brand-name { font-weight: 800; letter-spacing: -0.3px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links form { margin: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #74746d;
  background: transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: color 140ms ease, background 140ms ease;
}
.nav-link:hover { color: var(--text); background: #f7f7f4; }
.nav-link.active { color: var(--accent-text); background: var(--accent-soft); }
.logout-button { font-family: inherit; }

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 56px;
}
.page-narrow { max-width: 720px; }
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: #917200;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.06;
  letter-spacing: -1.3px;
}
.page-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.heading-actions { display: flex; align-items: center; gap: 10px; }
.user-chip,
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #66665f;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}
.status-dot,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42a972;
}

.content-card { border-radius: 16px; }
.ticket-form { padding: 24px; }
.create-button {
  width: 100%;
  min-height: 50px;
  margin-top: 24px;
  border-radius: 11px;
}
.create-hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.create-hint a,
.alert-with-link a {
  color: #7c6200;
  font-weight: 800;
  text-decoration: none;
}
.create-hint a:hover,
.alert-with-link a:hover { text-decoration: underline; }

.alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 650;
}
.alert.error { color: var(--danger); border-color: #f5ccd2; background: var(--danger-soft); }
.alert.success { color: var(--success); border-color: #cce8d8; background: var(--success-soft); }
.alert-with-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filters {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 15px;
  margin-bottom: 14px;
  box-shadow: none;
}
.search-field { flex: 1 1 auto; }
.filter-button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 11px;
}
.search-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.search-reset:hover { color: var(--text); }

.table-card {
  overflow: hidden;
  box-shadow: none;
}
.table-scroll { width: 100%; overflow-x: auto; }
.tickets-table {
  width: 100%;
  min-width: 1140px;
  border-collapse: collapse;
}
th,
td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
th {
  color: #888880;
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}
td { color: #5f5f58; font-size: 13px; }
tbody tr { background: #fff; transition: background 120ms ease; }
tbody tr:hover { background: #fffdf4; }
tbody tr:last-child td { border-bottom: 0; }

.ticket-number {
  color: var(--text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.client-cell { min-width: 235px; }
.client-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}
.client-phone {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.center-cell { text-align: center; }

.feature-mark,
.table-check {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}
.feature-mark.yes {
  color: #5d4a00;
  background: var(--accent-soft);
}
.feature-mark.no {
  color: #aaa9a2;
  background: #f3f3f0;
}
.table-service-toggle {
  display: inline-grid;
  place-items: center;
  position: relative;
  cursor: pointer;
}
.table-service-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.table-check {
  border: 1px solid #dfdfda;
  color: #aaa9a2;
  background: #f7f7f4;
  transition: background 130ms ease, border-color 130ms ease, color 130ms ease, transform 130ms ease;
}
.table-service-toggle:hover .table-check { transform: translateY(-1px); border-color: #d9c563; }
.table-service-toggle input:checked + .table-check {
  color: #5a4700;
  border-color: #ebcf54;
  background: var(--accent-soft);
}
.table-service-toggle input:disabled + .table-check { opacity: 0.6; cursor: wait; }

.number-form {
  display: flex;
  align-items: center;
  gap: 6px;
}
.number-form input {
  width: 68px;
  min-width: 68px;
  min-height: 36px;
  padding: 0 9px;
  border-radius: 9px;
  font-weight: 750;
}
.icon-save-button {
  width: 36px;
  height: 36px;
  border: 1px solid #e2b500;
  border-radius: 9px;
  color: #352a00;
  background: var(--accent);
  font-weight: 900;
  transition: background 140ms ease, transform 140ms ease;
}
.icon-save-button:hover { background: var(--accent-hover); }
.icon-save-button:active { transform: translateY(1px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; }
.not-ready-badge { color: var(--danger); background: var(--danger-soft); }
.not-ready-badge .badge-dot { background: #df5665; }
.ready-badge { color: var(--success); background: var(--success-soft); }
.ready-badge .badge-dot { background: #42a972; }
.active-badge { color: #705800; background: var(--accent-soft); }
.active-badge .badge-dot { background: var(--accent); }

.status-select {
  width: 150px;
  min-height: 36px;
  padding: 0 30px 0 10px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}
.status-select-not-ready { color: var(--danger); border-color: #f0c9cf; background: var(--danger-soft); }
.status-select-ready { color: var(--success); border-color: #c8e5d5; background: var(--success-soft); }


.status-action-form,
.delete-form { margin: 0; }
.activate-status-button{
  min-height: 32px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 130ms ease, border-color 130ms ease;
}
.activate-status-button {
  color: #5c4900;
  border: 1px solid #e8cf62;
  background: var(--accent-soft);
}
.activate-status-button:hover { background: #fff1ad; }
.activate-status-button:disabled,
.activate-status-button:disabled:hover {
  opacity: .48;
  background: #f5f4ef;
  border-color: #e4e3dd;
  color: #85857c;
  cursor: not-allowed;
}





.delete-button {
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  color: var(--danger);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  transition: background 130ms ease;
}
.delete-button:hover { background: var(--danger-soft); }
.done-mark { color: #aaa9a2; font-size: 12px; font-weight: 700; }
.empty { padding: 44px 16px; text-align: center; color: #98988f; }

/* Старые стили под причину обращения. Поля уже нет, пока не трогаю на случай отката. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}









.ticket-action-cell { min-width: 150px; }
















[data-live-number].live-flash,
.feature-mark.live-flash { animation: liveFlash 520ms ease; }
@keyframes liveFlash {
  0% { transform: scale(1); }
  40% { transform: scale(1.13); }
  100% { transform: scale(1); }
}

/* Старые блоки хелпера не вырезал: пока держатся для совместимости. */
.helper-section { margin-top: 28px; padding-bottom: 44px; }
.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.section-heading-row h2 { margin: 4px 0 6px; font-size: 22px; letter-spacing: -0.45px; }
.section-heading-row p { margin: 0; color: var(--muted); font-size: 13px; }
.helper-ticket-list { display: grid; gap: 12px; }
.helper-ticket-card { padding: 18px; }
.helper-ticket-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.helper-ticket-name { color: var(--text); font-size: 16px; font-weight: 800; }
.helper-ticket-phone { margin-top: 4px; color: var(--muted); font-size: 13px; }
.helper-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.service-option {
  position: relative;
  min-height: 50px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: #5f5f58;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.service-option input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 2px solid #cdcdc7;
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
}
.service-option input:checked + .custom-check { border-color: #e4b700; background: var(--accent); }
.service-option input:checked + .custom-check::after { content: "✓"; color: #2f2600; font-size: 12px; font-weight: 900; }
.service-option:has(input:checked) { border-color: #ecd56f; background: #fffdf1; color: #665100; }
.save-state { min-height: 18px; margin-top: 9px; text-align: right; font-size: 11px; font-weight: 700; }
.save-state.saving { color: var(--muted); }
.save-state.saved { color: var(--success); }
.save-state.save-error { color: var(--danger); }

@media (max-width: 820px) {
  .topbar-shell { padding: 12px 12px 0; }
  .topbar {
    padding: 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .nav-links { width: 100%; flex-wrap: wrap; }
  .nav-link { min-height: 36px; }
  .page { width: min(100% - 24px, 1180px); padding-top: 30px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .filters { align-items: stretch; }
  .helper-service-grid { grid-template-columns: 1fr; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .auth-background { padding: 16px; }
  .login-card { padding: 30px 22px 26px; border-radius: 18px; }
  .logo { font-size: 30px; }
  .subtitle { font-size: 23px; }
  .brand-name { display: none; }
  .page { width: calc(100% - 18px); }
  .ticket-form { padding: 18px; }
  .filters {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  .filter-button,
  .search-reset { width: 100%; }
  .alert-with-link { align-items: flex-start; flex-direction: column; }
  .helper-ticket-main { flex-direction: column; }
  .heading-actions { width: 100%; justify-content: space-between; }
}


.processed-search-card { padding: 15px; margin-bottom: 14px; box-shadow: none; }
.processed-list-table { min-width: 750px; }
.processed-list-table th:last-child,
.processed-list-table td:last-child { white-space: nowrap; }
.processed-count-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 10px 12px;
  background: var(--accent-soft);
  color: #705800;
  font-size: 12px;
  font-weight: 650;
}
.processed-count-chip strong { font-variant-numeric: tabular-nums; }
.processed-empty-state {
  padding: 38px 16px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.processed-empty-state[hidden],
.processed-list-table tr[hidden] { display: none; }
@media (max-width: 700px) {
  .processed-count-chip { padding: 8px 11px; }
  .processed-search-card { padding: 12px; }
}


.processed-list-table { min-width: 880px; }
































/* Архив и кнопка завершения. Стили старые, зато ничего не пляшет. */



.processed-table { min-width: 1020px; }
.processed-date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.processed-table tr[hidden] { display:none; }

/* Поле коммента общее. Один редактор на всех, не ломайте синхронизацию. */
.comment-cell { min-width: 175px; max-width: 255px; vertical-align: middle; }
.ticket-comment { min-width: 150px; }
.comment-preview {
  max-width: 230px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
  color: #404039;
  max-height: 70px;
  overflow: hidden;
}
.comment-edit-button {
  border: 0;
  background: transparent;
  color: #8a7020;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 0;
  cursor: pointer;
}
.comment-edit-button:hover { color: #4d3900; text-decoration: underline; }
.comment-editor { margin-top: 6px; width: 225px; max-width: 100%; }
.comment-editor[hidden], .comment-edit-button[hidden], .comment-feedback[hidden] { display: none; }
.comment-editor textarea {
  display: block;
  width: 100%;
  min-height: 78px;
  resize: vertical;
  box-sizing: border-box;
  border: 1px solid #dddcd1;
  border-radius: 9px;
  background: #fff;
  padding: 9px;
  color: #222;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
}
.comment-editor textarea:focus { outline: 2px solid #ffe48c; border-color: #e5bb4d; }
.comment-editor-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.comment-save, .comment-cancel {
  border: 1px solid #e6dfc5;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.comment-save { background: #ffdf65; color: #352c00; }
.comment-cancel { background: #fff; color: #63635c; }
.comment-save:disabled, .comment-cancel:disabled { opacity: .5; cursor: wait; }
.comment-feedback { display: block; font-size: 11px; line-height: 1.35; color: #a03939; margin-top: 7px; }


/* Плашка занятого талона. Отдельные стили, чтобы не цепляло соседние кнопки. */




















































/* На телефоне таблицу лучше листать вбок, чем разнести всё в кашу.
   Комментарии и кнопки должны остаться кликабельными. */




/* Отступы и блоки подровнял тут. Если что-то съехало — смотри этот кусок. */


:is(#tickets-page, #processed-page) .table-card, #create-page .ticket-form{
  border-color: #eaeae6;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 24px rgba(25, 25, 20, 0.025);
}
:is(#tickets-page, #processed-page) .processed-count-chip {
  padding: 9px 13px;
  background: #fff8df;
  border: 1px solid #f5e9b9;
  color: #806512;
  font-weight: 650;
}
:is(#tickets-page, #processed-page) .processed-count-chip strong {
  color: #332a0d;
  font-weight: 800;
}

/* Поиск сделан одинаковым в списках. Не надо три разных дизайна, пожалуйста. */
:is(#tickets-page, #processed-page) :is(.filters, .processed-search-card) {
  padding: 16px 19px;
  margin-bottom: 16px;
  border: 1px solid #ededeb;
  border-radius: 15px;
  background: #fff;
  box-shadow: none;
}
:is(#tickets-page, #processed-page) .filter-field label {
  color: #767670;
  font-weight: 650;
}
:is(#tickets-page, #processed-page) input[type="search"] {
  min-height: 43px;
  background: #fcfcfb;
  border-color: #e9e9e5;
  font-size: 13px;
}
:is(#tickets-page, #processed-page) input[type="search"]:focus { background: #fff; }
#tickets-page .filter-button {
  min-height: 43px;
  padding: 0 19px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
}
#tickets-page .search-reset { min-height: 43px; }

/* Таблицы талонов: сетку выравнивал вручную. Случайная правка ширин всё разнесёт. */
:is(#tickets-page, #processed-page) .tickets-table th {
  padding: 17px 13px 14px;
  color: #8c8c85;
  background: #fcfcfa;
  border-bottom: 1px solid #eeeee8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .015em;
  text-transform: none;
}
:is(#tickets-page, #processed-page) .tickets-table td {
  padding: 19px 13px;
  border-bottom: 1px solid #efefea;
  color: #5f5f58;
  font-size: 12px;
}
:is(#tickets-page, #processed-page) .tickets-table tbody tr {
  transition: background-color 150ms ease;
}
:is(#tickets-page, #processed-page) .tickets-table tbody tr:hover {
  background: #fffdf7;
}
:is(#tickets-page, #processed-page) .tickets-table tbody tr:last-child td {
  border-bottom: 0;
}
:is(#tickets-page, #processed-page) .tickets-table .ticket-number {
  color: #8b6c00;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.2px;
  font-variant-numeric: tabular-nums;
}
:is(#tickets-page, #processed-page) .tickets-table .client-cell { min-width: 195px; }
:is(#tickets-page, #processed-page) .tickets-table .client-name {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -.12px;
  font-weight: 760;
}
:is(#tickets-page, #processed-page) .tickets-table .client-phone {
  margin-top: 4px;
  color: #96968f;
  font-size: 12px;
  line-height: 1.35;
}
:is(#tickets-page, #processed-page) .tickets-table .feature-mark,
#tickets-page .tickets-table .table-check {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 12px;
}
:is(#tickets-page, #processed-page) .tickets-table .feature-mark.no {
  color: #b6b6b0;
  background: #f7f7f5;
}


:is(#tickets-page, #processed-page) .tickets-table .comment-cell { min-width: 170px; }
:is(#tickets-page, #processed-page) .tickets-table .comment-preview {
  color: #606058;
  font-size: 12px;
  line-height: 1.5;
}
:is(#tickets-page, #processed-page) .tickets-table .comment-edit-button {
  color: #a48112;
  font-weight: 650;
}

/* Кнопки staff/helper компактные, но не настолько, чтобы по ним хрен попадёшь. */
#tickets-page .status-select {
  min-height: 35px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 750;
}
#tickets-page .number-form input {
  min-height: 35px;
  border-color: #e9e9e4;
  background: #fcfcfb;
}
#tickets-page .icon-save-button {
  width: 35px;
  height: 35px;
  border-radius: 9px;
}




#tickets-page .delete-button { padding-inline: 8px; }


/* В архиве дата и кто закрыл — мелким, чтобы главное не терялось. */
#processed-page .processed-table { min-width: 1060px; }
#processed-page .processed-date {
  color: #999990;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Форма создания простая. Не лепить здоровенные поля ради двух строк. */
#create-page .ticket-form { padding: 29px; }
#create-page .form-section { gap: 19px; }
#create-page .ticket-form .input-group label {
  color: #767670;
  font-weight: 650;
}
#create-page .ticket-form input {
  min-height: 46px;
  background: #fcfcfb;
  border-color: #e9e9e5;
  font-size: 14px;
}
#create-page .ticket-form input:focus { background: #fff; }
#create-page .create-button {
  min-height: 46px;
  margin-top: 25px;
  border-radius: 10px;
  font-weight: 750;
}


















/* Экран входа в том же стиле. Жёлтый акцент оставил, без лишнего цирка. */
#login-page {
  border-color: #eaeae6;
  box-shadow: 0 9px 30px rgba(25, 25, 20, .04);
}
#login-page .input-group label { color: #767670; font-weight: 650; }
#login-page input { background: #fcfcfb; border-color: #e9e9e5; }
#login-page input:focus { background: #fff; }
#login-page .full-button { min-height: 46px; font-weight: 750; }

/* Фокус с клавиатуры должен быть виден. Не убирай outline просто ради красоты. */


@media (max-width: 760px) {
  :is(#tickets-page, #processed-page) .page-heading { margin-bottom: 14px; }
  :is(#tickets-page, #processed-page) :is(.filters, .processed-search-card) {
    padding: 13px 14px;
  }
  :is(#tickets-page, #processed-page) .tickets-table td {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  :is(#tickets-page, #processed-page) .tickets-table th {
    padding-top: 14px;
    padding-bottom: 13px;
  }
}
@media (max-width: 520px) {
  #create-page .ticket-form { padding: 19px; }
  
  
}


/* Админку подчистил без спецэффектов. Тут важнее быстро понять, где какая учётка. */
#admin-page .admin-subtitle { color:#83837d; margin:6px 0 0; font-size:13px; }
#admin-page .admin-section { padding:27px; margin-bottom:22px; }
#admin-page .admin-section-head { margin-bottom:20px; }
#admin-page .admin-section-head h2 { margin:0 0 6px; font-size:19px; color:#292923; }
#admin-page .admin-section-head p { margin:0; font-size:13px; color:#8a8a82; }
#admin-page .admin-user-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr)); gap:14px; }
#admin-page .admin-user-card { border:1px solid #ecece8; background:#fcfcfa; border-radius:13px; padding:18px; min-width:0; }
#admin-page .admin-user-title { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:17px; }
#admin-page .admin-user-title strong { display:block; font-size:15px; overflow-wrap:anywhere; }
#admin-page .admin-user-role { display:block; font-size:12px; color:#8a8a82; margin-top:4px; }
#admin-page .admin-self-tag { font-size:11px; background:#fff2c5; border-radius:20px; padding:4px 8px; white-space:nowrap; }
#admin-page .admin-user-form { display:grid; gap:12px; }
#admin-page .admin-user-form .input-group { margin:0; }
#admin-page .input-group label { font-size:12px; color:#77776f; }
#admin-page .input-group input { background:white; border-color:#e6e6e1; min-width:0; width:100%; }
#admin-page .admin-save { padding:10px 17px; min-height:40px; border-radius:10px; font-size:13px; justify-self:start; }
#admin-page .admin-cat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr)); gap:11px; margin-bottom:19px; }
#admin-page .admin-cat-option { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; background:#fcfcfb; border:1px solid #ecece7; border-radius:12px; cursor:pointer; min-height:121px; padding:15px 9px; text-align:center; position:relative; }
#admin-page .admin-cat-option:has(input:checked) { border-color:#f0ce49; background:#fffbe7; box-shadow:0 0 0 2px rgba(242,202,49,.16); }
#admin-page .admin-cat-option input { position:absolute; top:10px; right:10px; accent-color:#e6b900; }
#admin-page .admin-cat-art { font-size:21px; font-weight:700; line-height:1.5; white-space:nowrap; }
#admin-page .admin-cat-name { font-size:12px; color:#7b7b73; }
.brand-logo[data-site-cat] { font-size:19px; white-space:nowrap; }
@media(max-width:650px) {
 #admin-page .admin-section { padding:18px; }
 #admin-page .admin-cat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #admin-page .admin-cat-art { font-size:16px; }
}
