@font-face {
  font-family: Geist;
  src: url('/fonts/geist-cyrillic-ext-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: Geist;
  src: url('/fonts/geist-cyrillic-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0301, U+0400-045F, U+0490-04FF, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: Geist;
  src: url('/fonts/geist-latin-ext-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: Geist;
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* My Work Admin — permanent dark theme */
:root {
  font-family: Geist, Arial, sans-serif;
  font-synthesis: none;
  color-scheme: dark;
  --blue: #2a9fff;
  --text: #edf3f8;
  --muted: #a9b4c1;
  --text-secondary: #a9b4c1;
  --text-strong: #f2f6fa;
  --text-soft: #a1adba;
  --field: #1d2530;
  --field-border: #344150;
  --success: #57c99a;
  --error: #ff8292;
  --page: #11161d;
  --background: #181f28;
  --surface-soft: #1d2530;
  --surface-hover: #232d39;
  --line: #344150;
  --line-strong: #435267;
  --danger: #ff7f91;
  --danger-bg: #351d24;
  --focus: #4baaff;
  --nav-surface: #1d2530;
  --nav-icon: #9bacc0;
  --nav-active: #193653;
  --nav-hover: #202a35;
  --radius: 20px;
  color: var(--text);
  background: var(--page);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  color: var(--text);
  background: var(--page);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.boot,
.loading {
  padding: 60px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

/* Buttons — same scale as My Work */
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 11px;
  padding: 12px 17px;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 10px #0088ff16;
}
.btn:hover {
  filter: brightness(0.985);
}
.btn.secondary {
  background: var(--background);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn.secondary:hover {
  background: var(--surface-hover);
}
.btn.danger {
  color: var(--danger);
  background: var(--danger-bg);
  box-shadow: none;
}

/* Login */
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(430px, 100%);
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 18px 50px rgba(31, 45, 61, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -1px;
  color: var(--text);
}
.login-card .brand {
  margin-bottom: 35px;
  color: var(--blue);
}
.login h1 {
  margin-bottom: 8px;
}
.login h1 + .muted {
  font-size: 13px;
  line-height: 1.55;
}
.field {
  display: grid;
  gap: 7px;
  margin: 18px 0;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.input,
.select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--field-border);
  background: var(--field);
  color: var(--text);
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 13px;
  outline: none;
  box-shadow: none;
}
.input::placeholder {
  color: var(--muted);
}
.input:focus,
.select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.08);
}
.login .btn {
  width: 100%;
  margin-top: 8px;
}
.error {
  min-height: 18px;
  color: var(--error);
  font-size: 12px;
  margin-top: 12px;
}

/* Application shell */
.layout {
  display: grid;
  grid-template-columns: 266px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 16px auto 16px 16px;
  width: 234px;
  padding: 32px 19px 18px;
  display: flex;
  flex-direction: column;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(31, 45, 61, 0.08);
  z-index: 20;
}
.sidebar .brand {
  padding: 0 13px;
  margin-bottom: 35px;
  font-size: 17px;
  color: var(--blue);
  white-space: nowrap;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin: 0 15px 11px;
  padding: 0;
  font-weight: 400;
}
.nav {
  display: block;
}
.nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-align: left;
}
.nav button:hover {
  background: var(--nav-hover);
}
.nav button.active {
  background: var(--nav-active);
  color: var(--blue);
  font-weight: 550;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 7px 0;
}
.who {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
}
.role {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.sidebar-foot .btn {
  width: 100%;
  margin-top: 14px !important;
}

.main {
  grid-column: 2;
  min-width: 0;
  padding: 34px 38px 60px;
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.topbar h1 {
  margin-bottom: 6px;
}
.topbar .muted {
  font-size: 12px;
}
.top-actions {
  display: flex;
  gap: 10px;
}

/* Metrics */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}
.card {
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 22px #233c5603;
}
.metric-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.metric-value {
  margin: 15px 0 7px;
  color: var(--text-strong);
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -1px;
}
.metric-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

/* Sections */
.section {
  overflow: hidden;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 22px #233c5603;
}
.section-head {
  min-height: 62px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.section-head h2 {
  margin: 0;
}
.section-body {
  padding: 20px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar .input {
  max-width: 330px;
}
.toolbar .select {
  width: auto;
  min-width: 170px;
}

/* Tables */
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: var(--surface-hover);
}
.table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.table td {
  color: var(--text-secondary);
}
.table td strong {
  color: var(--text);
  font-weight: 600;
}
.sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.actions .btn {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 11px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  padding: 5px 8px;
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.badge.good {
  background: #17352b;
  color: #70d5a6;
}
.badge.bad {
  background: var(--danger-bg);
  color: var(--danger);
}
.badge.blue {
  background: #193653;
  color: #8fc8ff;
}

.empty {
  padding: 48px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
.empty b {
  display: block;
  margin-bottom: 6px;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 600;
}
.empty p {
  font-size: 12px;
}
.status-list {
  display: grid;
  gap: 0;
}
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.status-row:last-child {
  border-bottom: 0;
}
.dot {
  width: 6px;
  height: 6px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--success);
}
.dot.warn {
  background: #e7a13b;
}

/* Dialogs */

/* Редактор истории обновлений */
.release-editor-field {
  display: grid;
  gap: 8px;
}

.release-editor {
  overflow: hidden;
  border: 1px solid var(--line, #d9d9d9);
  border-radius: 12px;
  background: #fff;
}

.release-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #e8e8e8;
}

.release-editor-toolbar button {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #333;
  font: inherit;
  cursor: pointer;
}

.release-editor-toolbar button:hover {
  background: #f1f3f6;
}

.release-editor-separator {
  width: 1px;
  height: 20px;
  margin: 0 5px;
  background: #e1e1e1;
}

.release-editor-content {
  min-height: 150px;
  padding: 14px;
  outline: none;
  color: #222;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.release-editor-content:empty::before {
  content: attr(data-placeholder);
  color: #999;
  pointer-events: none;
}

.release-editor-content ul,
.release-editor-content ol {
  margin: 10px 0;
  padding-left: 24px;
}

.release-editor-content li {
  margin: 5px 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 9, 15, 0.72);
  backdrop-filter: blur(2px);
}
.modal {
  width: min(450px, 100%);
  padding: 24px;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.18);
}
.modal h3 {
  margin: 0 0 10px;
}
.modal .muted {
  font-size: 12px;
  line-height: 1.6;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  padding: 12px 16px;
  background: #1c2735;
  color: #f1f5f9;
  border: 1px solid #344557;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgb(0 0 0 / 28%);
  font-size: 12px;
}

@media (max-width: 1050px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    margin: 12px;
    padding: 20px 16px;
    border-radius: 18px;
  }
  .sidebar .brand {
    margin-bottom: 20px;
  }
  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .sidebar-foot {
    margin-top: 16px;
  }
  .main {
    padding: 22px 16px 50px;
  }
  .topbar {
    align-items: flex-start;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 25px;
  }
  .login-card {
    padding: 26px 22px;
  }
  .nav {
    grid-template-columns: 1fr;
  }
  .topbar {
    flex-direction: column;
  }
  .top-actions,
  .top-actions .btn {
    width: 100%;
  }
  .toolbar .input,
  .toolbar .select {
    width: 100%;
    max-width: none;
  }
}

.brand img {
  display: block;
  width: auto;
  height: 28px;
  max-width: 100%;
}

/* Kontur icons */
.admin-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-image: var(--admin-icon-url);
  mask-image: var(--admin-icon-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.nav button {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav button .admin-icon {
  width: 17px;
  height: 17px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Server monitoring */
.monitor-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 20px;
  background: #e9eef2;
  margin: 12px 0;
}

.monitor-progress > div {
  height: 100%;
  border-radius: inherit;
  transition: width 0.3s ease;
}

.monitor-disk {
  margin-bottom: 26px;
}

.monitor-disk:last-child {
  margin-bottom: 0;
}

.monitor-disk-head,
.monitor-disk-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.monitor-disk-info {
  color: var(--muted, #64748b);
  font-size: 12px;
  flex-wrap: wrap;
}

.monitor-updated {
  color: var(--muted, #64748b);
  font-size: 12px;
  text-align: right;
  margin-top: 16px;
}

/* Server service monitoring */
.monitor-services-section {
  margin-bottom: 20px;
}

.monitor-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.monitor-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  min-width: 0;
}

.monitor-service-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.monitor-service-main strong {
  font-size: 13px;
}

.monitor-service-detail {
  color: #64748b;
  font-size: 11px;
  margin-top: 4px;
}

.monitor-service-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
}

.monitor-service-dot.good {
  background: #16a34a;
}
.monitor-service-dot.bad {
  background: #dc3545;
}
.monitor-service-dot.unknown {
  background: #94a3b8;
}

.monitor-service-status {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.monitor-service-status.good {
  color: #16a34a;
}
.monitor-service-status.bad {
  color: #dc3545;
}
.monitor-service-status.unknown {
  color: #64748b;
}

@media (max-width: 900px) {
  .monitor-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .monitor-services-grid {
    grid-template-columns: 1fr;
  }
}

/* Infrastructure health */
.monitor-health {
  margin-top: 20px;
}

.monitor-task-result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.monitor-task-result small {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}

@media (max-width: 560px) {
  .monitor-task-result small {
    max-width: 145px;
    overflow-wrap: anywhere;
  }
}

.monitor-s3-details {
  margin-top: 16px;
  display: grid;
  gap: 9px;
}

.monitor-s3-details > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.monitor-s3-details span {
  color: #64748b;
}

.monitor-s3-details b {
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: right;
}

.monitor-ok {
  color: #16a34a;
}
.monitor-warning {
  color: #dc3545;
}

/* Feedback moderation */
.feedback-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.feedback-admin-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
}

.feedback-admin-stat span {
  font-size: 12px;
  color: var(--muted, #7c8796);
}

.feedback-admin-stat strong {
  font-size: 25px;
  font-weight: 650;
}

.feedback-admin-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.feedback-admin-filters input {
  flex: 1 1 260px;
}

.feedback-admin-filters select {
  min-width: 170px;
}

.feedback-admin-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-admin-card {
  padding: 22px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
}

.feedback-admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.feedback-admin-card h3 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.5;
}

.feedback-admin-votes {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.feedback-admin-description {
  margin: 18px 0 24px;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.feedback-admin-edit {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 18px;
}

.feedback-admin-edit label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
}

.feedback-admin-edit textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}

.feedback-admin-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.feedback-admin-empty {
  padding: 50px 18px;
  text-align: center;
  color: var(--muted, #7c8796);
}

@media (max-width: 800px) {
  .feedback-admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-admin-edit {
    grid-template-columns: 1fr;
  }

  .feedback-admin-card {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .feedback-admin-card-head {
    flex-direction: column;
  }
}

/* Feedback pagination */
.feedback-admin-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line, #e2e8f0);
}

.feedback-admin-page-summary {
  color: var(--muted, #7c8796);
  font-size: 12px;
}

.feedback-admin-page-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.feedback-admin-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line, #dce3ec);
  border-radius: 9px;
  background: var(--background, #fff);
  color: var(--text, #283447);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.feedback-admin-page-button.active {
  background: #e5efff;
  color: #1682ef;
  border-color: #2a9fff;
  font-weight: 600;
}

.feedback-admin-page-button:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 600px) {
  .feedback-admin-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .feedback-admin-page-buttons {
    justify-content: center;
  }
}

/* Компактные и раскрытые карточки в админке */
.feedback-admin-expand {
  display: block;
  padding: 0;
  margin: 0 0 7px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.feedback-admin-expand:hover {
  color: #2a9fff;
}

.feedback-admin-expand:focus-visible {
  outline: 2px solid #2a9fff;
  outline-offset: 3px;
  border-radius: 3px;
}

.feedback-admin-card:not(.expanded) .feedback-admin-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin-bottom: 0;
}

.feedback-admin-card:not(.expanded) .feedback-admin-edit,
.feedback-admin-card:not(.expanded) .feedback-admin-actions {
  display: none;
}

/* My Work Admin — Monochrome Light */
:root {
  color-scheme: light;
  --blue: #171717;
  --text: #171717;
  --muted: #737373;
  --text-secondary: #737373;
  --text-strong: #111111;
  --text-soft: #858585;
  --field: #ffffff;
  --field-border: #dedede;
  --success: #525252;
  --error: #525252;
  --page: #f7f7f7;
  --background: #ffffff;
  --surface-soft: #f5f5f5;
  --surface-hover: #eeeeee;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --danger: #333333;
  --danger-bg: #eeeeee;
  --focus: #525252;
  --nav-surface: #f5f5f5;
  --nav-icon: #737373;
  --nav-active: #eaeaea;
  --nav-hover: #f0f0f0;
}

/* Monochrome controls */
.btn {
  color: #ffffff;
  box-shadow: none;
}
.btn.secondary {
  color: var(--text);
}
.badge.good,
.badge.blue {
  background: #ebebeb;
  color: #404040;
}
.dot.warn {
  background: #737373;
}
.toast {
  background: #ffffff;
  color: #171717;
  border: 1px solid #dedede;
}
.modal-backdrop {
  background: rgb(0 0 0 / 35%);
}
.feedback-admin-page-button.active {
  background: #eaeaea;
  color: #171717;
  border-color: #a3a3a3;
}

/* Monochrome details */
.monitor-service-dot.good,
.monitor-service-dot.bad,
.monitor-service-dot.unknown {
  background: #737373;
}
.monitor-service-status.good,
.monitor-service-status.bad,
.monitor-service-status.unknown {
  color: #525252;
}
.feedback-admin-expand:hover {
  color: #171717;
}
.feedback-admin-expand:focus-visible {
  outline-color: #525252;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline-color: #525252;
}

/* Users status radio filter */
.users-status-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #dedede;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 0;
}

.users-status-filter label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  cursor: pointer;
}

.users-status-filter input {
  accent-color: #171717;
}

@media (max-width: 700px) {
  .users-status-filter {
    flex-wrap: wrap;
  }
}

/* Users toolbar alignment */
.toolbar:has(.users-status-filter) {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar:has(.users-status-filter) > #q,
.toolbar:has(.users-status-filter) > .users-status-filter {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  margin: 0;
}

.toolbar:has(.users-status-filter) > #q {
  flex: 0 1 300px;
  min-width: 180px;
}

.toolbar:has(.users-status-filter) > .users-status-filter {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  padding: 0 14px;
}

.toolbar:has(.users-status-filter) label {
  margin: 0;
}

@media (max-width: 800px) {
  .toolbar:has(.users-status-filter) {
    flex-wrap: wrap;
  }

  .toolbar:has(.users-status-filter) > #q {
    flex: 1 1 100%;
  }

  .toolbar:has(.users-status-filter) > .users-status-filter {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Compact user actions */
.users-menu-trigger {
  width: 32px;
  height: 32px;
  margin-left: 10px;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fff;
  color: #333;
  font-size: 22px;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
}

.users-menu-trigger:hover {
  background: #f2f2f2;
}

.users-actions-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 6px;
  width: 192px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  color: #171717;
  box-shadow: 0 12px 32px #0002;
}

.users-menu-actions {
  display: grid;
  gap: 3px;
}

.users-menu-actions .btn {
  width: 100%;
  min-height: 34px;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  border: 0;
  color: #262626;
}

.users-menu-actions .btn:hover {
  background: #f2f2f2;
}

.users-menu-actions [data-delete] {
  color: #9f3030;
}

.users-menu-actions [data-delete]:hover {
  background: #fff0f0;
}

#content .table tbody td:first-child {
  white-space: nowrap;
}

#content .table tbody td:last-child {
  white-space: nowrap;
}

/* Users menu anchor positioning */
.users-menu-trigger {
  anchor-name: --user-actions;
}

.users-actions-popover:popover-open {
  position: fixed;
  position-anchor: --user-actions;
  top: anchor(bottom);
  right: anchor(right);
  left: auto;
  bottom: auto;
  margin: 6px 0 0;
  position-try-fallbacks: flip-block, flip-inline;
}

.license-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.license-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

#license-result {
  display: grid;
  gap: 10px;
}

#license-result:empty {
  display: none;
}

@media (max-width: 800px) {
  .license-form {
    grid-template-columns: 1fr;
  }
}
