/* Кухонные дела: виджеты уведомлений и формы заявок. Только новые классы nt-* / fb-* / .feedback-nav-link. */

/* ---------- Ссылка «Ошибки / Предложения» в навигации ---------- */
.feedback-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.feedback-nav-link:hover {
  background: rgba(255, 255, 255, 0.14);
}
.feedback-nav-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ---------- Виджет уведомлений ---------- */
.nt-widget {
  position: relative;
  display: inline-block;
  color: #ffffff;
}
.nt-widget > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
}
.nt-widget > summary::-webkit-details-marker {
  display: none;
}
.nt-widget > summary:hover {
  background: rgba(255, 255, 255, 0.14);
}
.nt-widget > summary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.nt-bell {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #ffffff;
  stroke: currentColor;
}
.nt-count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #c62828;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.nt-count[hidden] {
  display: none;
}
.nt-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  width: min(380px, calc(100vw - 24px));
  max-height: 400px;
  overflow-y: auto;
  background: #ffffff;
  color: #11243f;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(17, 36, 63, 0.18);
}
.nt-dropdown-head {
  position: sticky;
  top: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #e3e7ee;
  background: #ffffff;
  color: #11243f;
  font-weight: 700;
}
.nt-list {
  display: flex;
  flex-direction: column;
}
.nt-item {
  display: block;
  margin: 0;
  border-bottom: 1px solid #eef1f6;
}
.nt-item:last-child {
  border-bottom: 0;
}
.nt-item-button {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #11243f;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nt-item-button:hover {
  background: #f4f7fb;
}
.nt-item-button:focus-visible {
  outline: 2px solid #11243f;
  outline-offset: -2px;
}
.nt-item-title {
  color: #11243f;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.nt-item-body {
  color: #4a5a70;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.nt-item-time {
  color: #7c8798;
  font-size: 12px;
}
.nt-item.nt-unread {
  background: #f2f7ff;
  box-shadow: inset 3px 0 0 #2f6fd0;
}
.nt-item.nt-unread .nt-item-title {
  font-weight: 700;
}
.nt-empty {
  margin: 0;
  padding: 18px 14px;
  color: #6d7889;
  text-align: center;
}
.nt-dropdown-foot {
  padding: 10px 14px;
  border-top: 1px solid #e3e7ee;
  text-align: center;
}
.nt-all-link {
  color: #11243f;
  font-weight: 600;
  text-decoration: underline;
}
.nt-all-link:hover {
  color: #2f6fd0;
}
.nt-all-link:focus-visible {
  outline: 2px solid #11243f;
  outline-offset: 2px;
}

/* ---------- Страница уведомлений ---------- */
.nt-page {
  max-width: 860px;
}
.nt-page-title {
  margin: 0 0 16px;
  color: #11243f;
}
.nt-list-page {
  gap: 10px;
}
.nt-item-page {
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}
.nt-item-page:last-child {
  border-bottom: 1px solid #e3e7ee;
}
.nt-item-page.nt-unread {
  background: #f7faff;
  box-shadow: inset 3px 0 0 #2f6fd0;
}
.nt-item-state {
  color: #7c8798;
  font-size: 12px;
}
.nt-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: #11243f;
}
.nt-empty-page {
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  background: #ffffff;
}

/* ---------- Заявки: формы ---------- */
.fb-page {
  max-width: 860px;
}
.fb-title {
  margin: 0 0 8px;
  color: #11243f;
}
.fb-lead {
  margin: 0 0 18px;
  color: #4a5a70;
}
.fb-subtitle {
  margin: 24px 0 12px;
  color: #11243f;
}
.fb-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
}
.fb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.fb-field-wide {
  grid-column: 1 / -1;
}
.fb-label {
  color: #11243f;
  font-size: 13px;
  font-weight: 600;
}
.fb-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #d6dbe3;
  border-radius: 10px;
  background: #ffffff;
  color: #11243f;
  font: inherit;
}
.fb-input:focus-visible {
  outline: 2px solid #2f6fd0;
  outline-offset: 1px;
  border-color: #2f6fd0;
}
.fb-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.fb-files {
  gap: 10px;
}
.fb-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.fb-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.fb-file-button {
  cursor: pointer;
}
.fb-file-input:focus-visible ~ .fb-file-row .fb-file-button {
  outline: 2px solid #2f6fd0;
  outline-offset: 2px;
}
.fb-file-limits {
  color: #6d7889;
  font-size: 12px;
}
.fb-paste {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px dashed #c3ccd9;
  border-radius: 12px;
  background: #fbfcfe;
  color: #4a5a70;
}
.fb-paste:focus-visible {
  outline: 2px solid #2f6fd0;
  outline-offset: 2px;
  border-color: #2f6fd0;
}
.fb-paste-title {
  color: #11243f;
  font-weight: 600;
}
.fb-paste-text {
  font-size: 13px;
}
.fb-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.fb-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
}
.fb-preview-thumb {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: cover;
  background: #f4f7fb;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
}
.fb-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.fb-preview-name {
  color: #11243f;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.fb-preview-size {
  color: #7c8798;
  font-size: 12px;
}
.fb-preview-remove {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #d6dbe3;
  border-radius: 8px;
  background: #ffffff;
  color: #11243f;
  font-size: 12px;
  cursor: pointer;
}
.fb-preview-remove:hover {
  border-color: #c62828;
  color: #c62828;
}
.fb-preview-remove:focus-visible {
  outline: 2px solid #2f6fd0;
  outline-offset: 2px;
}
.fb-hint {
  min-height: 18px;
  color: #4a5a70;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.fb-hint-error {
  color: #b3261e;
}
.fb-note {
  margin: 0;
  color: #6d7889;
  font-size: 13px;
}
.fb-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

/* ---------- Заявки: список администратора ---------- */
.fb-admin {
  margin-top: 26px;
}
.fb-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.fb-filter .fb-input {
  width: auto;
  min-width: 180px;
}
.fb-tickets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fb-ticket {
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
}
.fb-ticket-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.fb-ticket-title {
  color: #11243f;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.fb-ticket-title:hover {
  text-decoration: underline;
}
.fb-ticket-title:focus-visible {
  outline: 2px solid #2f6fd0;
  outline-offset: 2px;
}
.fb-ticket-body {
  margin: 0 0 8px;
  color: #4a5a70;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fb-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: #6d7889;
  font-size: 13px;
}
.fb-kind {
  padding: 2px 8px;
  border: 1px solid #e3e7ee;
  border-radius: 999px;
  background: #f7f9fc;
  color: #11243f;
}
.fb-status {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.fb-status-new {
  border: 1px solid #f0cf8a;
  background: #fff5dd;
  color: #8a5b00;
}
.fb-status-resolved {
  border: 1px solid #a9d9bb;
  background: #e8f6ed;
  color: #1d6b3a;
}
.fb-status-rejected {
  border: 1px solid #d8dde5;
  background: #eef1f5;
  color: #556070;
}
.fb-empty {
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  color: #6d7889;
}

/* ---------- Заявки: детали ---------- */
.fb-detail-body {
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  color: #11243f;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fb-shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fb-shot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
}
.fb-shot-link {
  display: block;
}
.fb-shot-link:focus-visible {
  outline: 2px solid #2f6fd0;
  outline-offset: 2px;
  border-radius: 8px;
}
.fb-shot-img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #f7f9fc;
  border: 1px solid #eef1f6;
  border-radius: 8px;
}
.fb-shot-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #7c8798;
  font-size: 12px;
}
.fb-shot-name {
  color: #11243f;
  overflow-wrap: anywhere;
}
.fb-shot-download {
  color: #11243f;
  font-weight: 600;
  text-decoration: underline;
}
.fb-shot-download:focus-visible {
  outline: 2px solid #2f6fd0;
  outline-offset: 2px;
}
.fb-status-card {
  margin-top: 22px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
}
.fb-status-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.fb-status-form .fb-input {
  width: auto;
  min-width: 180px;
}

/* ---------- Узкие экраны ---------- */
@media (max-width: 700px) {
  .fb-form {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .fb-previews {
    grid-template-columns: 1fr;
  }
  .fb-shots {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .fb-actions .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nt-dropdown {
    right: -8px;
    width: calc(100vw - 16px);
    max-height: 70vh;
  }
}
/* Match the existing header link specificity; keep the dropdown readable. */
.topbar nav .nt-all-link{color:#11243f}
.topbar nav .feedback-nav-link{font-size:13px;white-space:nowrap}
.fb-detail{max-width:960px}.fb-detail-body{margin-top:18px}
@media(max-width:700px){.nt-dropdown{position:fixed;top:100px;left:12px;right:12px;width:auto;max-height:65vh}}

/* Dashboard: compact row and status pills */
.project-row{grid-template-columns:auto minmax(0,1fr) minmax(150px,220px) auto auto;gap:14px 16px;padding:14px 18px;align-items:center}
.project-row .project-main{min-width:0}
.project-row .project-main strong,.project-row .project-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-row .project-meta{min-width:0;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-state-pill{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:2px 9px;border:1px solid transparent;border-radius:999px;font-size:12px;line-height:1.2;font-weight:700;white-space:nowrap}
.project-state-pill.project-state-new{color:#475569;background:#f1f5f9;border-color:#cbd5e1}
.project-state-pill.project-state-processing{color:#92400e;background:#fff7ed;border-color:#fdba74}
.project-state-pill.project-state-reviewed{color:#1e40af;background:#eff6ff;border-color:#93c5fd}
.project-state-pill.project-state-closed{color:#166534;background:#f0fdf4;border-color:#86efac}
@media (max-width:850px){
.project-row{grid-template-columns:auto minmax(0,1fr) auto;gap:8px 10px;padding:12px 14px;align-items:start}
.project-row .project-state-pill{grid-column:1;grid-row:1;align-self:center}
.project-row .project-main{grid-column:2;grid-row:1;min-width:0}
.project-row .arrow{grid-column:3;grid-row:1;align-self:center}
.project-row .project-progress{grid-column:1/-1;grid-row:2;min-width:0}
.project-row .project-meta{display:none}
}
/* Header controls */
.settings-menu>summary{display:inline-flex;align-items:center;justify-content:center;width:42px;height:36px;min-height:36px;padding:4px 10px;border:1px solid rgba(255,255,255,.45);border-radius:12px;background:transparent;color:#fff;box-sizing:border-box;cursor:pointer;list-style:none}
.settings-menu>summary::-webkit-details-marker{display:none}
.settings-menu>summary::after{content:none}
.settings-menu>summary svg{display:block;width:20px;height:20px}
.settings-menu>summary:hover{background:rgba(255,255,255,.14)}
.settings-menu>summary:focus-visible{outline:2px solid #fff;outline-offset:2px}
.feedback-nav-link,.nt-widget>summary{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:36px}

.project-row .project-state-pill{min-width:100px;justify-self:start}
